Class: Google::Apis::ContaineranalysisV1alpha1::Fingerprint

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/containeranalysis_v1alpha1/classes.rb,
lib/google/apis/containeranalysis_v1alpha1/representations.rb,
lib/google/apis/containeranalysis_v1alpha1/representations.rb

Overview

A set of properties that uniquely identify a given Docker image.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Fingerprint

Returns a new instance of Fingerprint.



3032
3033
3034
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 3032

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#v1_nameString

The layer-id of the final layer in the Docker image's v1 representation. This field can be used as a filter in list requests. Corresponds to the JSON property v1Name

Returns:

  • (String)


3018
3019
3020
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 3018

def v1_name
  @v1_name
end

#v2_blobArray<String>

The ordered list of v2 blobs that represent a given image. Corresponds to the JSON property v2Blob

Returns:

  • (Array<String>)


3023
3024
3025
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 3023

def v2_blob
  @v2_blob
end

#v2_nameString

Output only. The name of the image's v2 blobs computed via: [bottom] := v2_blobbottom := sha256(v2_blob[N] + " " + v2_name[N+1]) Only the name of the final blob is kept. This field can be used as a filter in list requests. Corresponds to the JSON property v2Name

Returns:

  • (String)


3030
3031
3032
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 3030

def v2_name
  @v2_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3037
3038
3039
3040
3041
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 3037

def update!(**args)
  @v1_name = args[:v1_name] if args.key?(:v1_name)
  @v2_blob = args[:v2_blob] if args.key?(:v2_blob)
  @v2_name = args[:v2_name] if args.key?(:v2_name)
end