Class: Google::Apis::StorageV1::HmacKey

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/storage_v1/classes.rb,
lib/google/apis/storage_v1/representations.rb,
lib/google/apis/storage_v1/representations.rb

Overview

JSON template to produce a JSON-style HMAC Key resource for Create responses.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ HmacKey

Returns a new instance of HmacKey.



1191
1192
1193
# File 'lib/google/apis/storage_v1/classes.rb', line 1191

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#kindString

The kind of item this is. For HMAC keys, this is always storage#hmacKey. Corresponds to the JSON property kind

Returns:

  • (String)


1179
1180
1181
# File 'lib/google/apis/storage_v1/classes.rb', line 1179

def kind
  @kind
end

#metadataGoogle::Apis::StorageV1::HmacKeyMetadata

JSON template to produce a JSON-style HMAC Key metadata resource. Corresponds to the JSON property metadata



1184
1185
1186
# File 'lib/google/apis/storage_v1/classes.rb', line 1184

def 
  @metadata
end

#secretString

HMAC secret key material. Corresponds to the JSON property secret

Returns:

  • (String)


1189
1190
1191
# File 'lib/google/apis/storage_v1/classes.rb', line 1189

def secret
  @secret
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1196
1197
1198
1199
1200
# File 'lib/google/apis/storage_v1/classes.rb', line 1196

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