Class: Google::Apis::ContaineranalysisV1::Digest
- Inherits:
-
Object
- Object
- Google::Apis::ContaineranalysisV1::Digest
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/containeranalysis_v1/classes.rb,
lib/google/apis/containeranalysis_v1/representations.rb,
lib/google/apis/containeranalysis_v1/representations.rb
Overview
Digest information.
Instance Attribute Summary collapse
-
#algo ⇒ String
SHA1,SHA512etc. -
#digest_bytes ⇒ String
Value of the digest.
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.
2688 2689 2690 |
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 2688 def initialize(**args) update!(**args) end |
Instance Attribute Details
#algo ⇒ String
SHA1, SHA512 etc.
Corresponds to the JSON property algo
2680 2681 2682 |
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 2680 def algo @algo end |
#digest_bytes ⇒ String
Value of the digest.
Corresponds to the JSON property digestBytes
NOTE: Values are automatically base64 encoded/decoded in the client library.
2686 2687 2688 |
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 2686 def digest_bytes @digest_bytes end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2693 2694 2695 2696 |
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 2693 def update!(**args) @algo = args[:algo] if args.key?(:algo) @digest_bytes = args[:digest_bytes] if args.key?(:digest_bytes) end |