Class: Google::Apis::ContaineranalysisV1alpha1::Digest
- Inherits:
-
Object
- Object
- Google::Apis::ContaineranalysisV1alpha1::Digest
- 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
Digest information.
Instance Attribute Summary collapse
-
#algo ⇒ String
SHA1,SHA512etc. -
#digest_value ⇒ String
Value of the digest encoded.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Digest
constructor
A new instance of Digest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Digest
Returns a new instance of Digest.
2367 2368 2369 |
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 2367 def initialize(**args) update!(**args) end |
Instance Attribute Details
#algo ⇒ String
SHA1, SHA512 etc.
Corresponds to the JSON property algo
2359 2360 2361 |
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 2359 def algo @algo end |
#digest_value ⇒ String
Value of the digest encoded. For example: SHA512 - base64 encoding, SHA1 - hex
encoding.
Corresponds to the JSON property digestValue
2365 2366 2367 |
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 2365 def digest_value @digest_value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2372 2373 2374 2375 |
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 2372 def update!(**args) @algo = args[:algo] if args.key?(:algo) @digest_value = args[:digest_value] if args.key?(:digest_value) end |