class Google::Apis::StorageV1::HmacKey
JSON template to produce a JSON-style HMAC Key resource for Create responses.
Attributes
kind[RW]
The kind of item this is. For HMAC keys, this is always storage#hmacKey. Corresponds to the JSON property `kind` @return [String]
metadata[RW]
JSON template to produce a JSON-style HMAC Key metadata resource. Corresponds to the JSON property `metadata` @return [Google::Apis::StorageV1::HmacKeyMetadata]
secret[RW]
HMAC secret key material. Corresponds to the JSON property `secret` @return [String]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/storage_v1/classes.rb, line 1136 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/storage_v1/classes.rb, line 1141 def update!(**args) @kind = args[:kind] if args.key?(:kind) @metadata = args[:metadata] if args.key?(:metadata) @secret = args[:secret] if args.key?(:secret) end