Class: Google::Apis::CloudkmsV1::Digest
- Inherits:
-
Object
- Object
- Google::Apis::CloudkmsV1::Digest
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudkms_v1/classes.rb,
lib/google/apis/cloudkms_v1/representations.rb,
lib/google/apis/cloudkms_v1/representations.rb
Overview
A Digest holds a cryptographic message digest.
Instance Attribute Summary collapse
-
#sha256 ⇒ String
A message digest produced with the SHA-256 algorithm.
-
#sha384 ⇒ String
A message digest produced with the SHA-384 algorithm.
-
#sha512 ⇒ String
A message digest produced with the SHA-512 algorithm.
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.
991 992 993 |
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 991 def initialize(**args) update!(**args) end |
Instance Attribute Details
#sha256 ⇒ String
A message digest produced with the SHA-256 algorithm.
Corresponds to the JSON property sha256
NOTE: Values are automatically base64 encoded/decoded in the client library.
977 978 979 |
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 977 def sha256 @sha256 end |
#sha384 ⇒ String
A message digest produced with the SHA-384 algorithm.
Corresponds to the JSON property sha384
NOTE: Values are automatically base64 encoded/decoded in the client library.
983 984 985 |
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 983 def sha384 @sha384 end |
#sha512 ⇒ String
A message digest produced with the SHA-512 algorithm.
Corresponds to the JSON property sha512
NOTE: Values are automatically base64 encoded/decoded in the client library.
989 990 991 |
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 989 def sha512 @sha512 end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
996 997 998 999 1000 |
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 996 def update!(**args) @sha256 = args[:sha256] if args.key?(:sha256) @sha384 = args[:sha384] if args.key?(:sha384) @sha512 = args[:sha512] if args.key?(:sha512) end |