Class: Google::Apis::OndemandscanningV1::Fingerprint
- Inherits:
-
Object
- Object
- Google::Apis::OndemandscanningV1::Fingerprint
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/ondemandscanning_v1/classes.rb,
lib/google/apis/ondemandscanning_v1/representations.rb,
lib/google/apis/ondemandscanning_v1/representations.rb
Overview
A set of properties that uniquely identify a given Docker image.
Instance Attribute Summary collapse
-
#v1_name ⇒ String
Required.
-
#v2_blob ⇒ Array<String>
Required.
-
#v2_name ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Fingerprint
constructor
A new instance of Fingerprint.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Fingerprint
Returns a new instance of Fingerprint.
935 936 937 |
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 935 def initialize(**args) update!(**args) end |
Instance Attribute Details
#v1_name ⇒ String
Required. The layer ID of the final layer in the Docker image's v1
representation.
Corresponds to the JSON property v1Name
921 922 923 |
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 921 def v1_name @v1_name end |
#v2_blob ⇒ Array<String>
Required. The ordered list of v2 blobs that represent a given image.
Corresponds to the JSON property v2Blob
926 927 928 |
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 926 def v2_blob @v2_blob end |
#v2_name ⇒ String
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.
Corresponds to the JSON property v2Name
933 934 935 |
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 933 def v2_name @v2_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
940 941 942 943 944 |
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 940 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 |