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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/storage_v1/classes.rb,
generated/google/apis/storage_v1/representations.rb,
generated/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.



1129
1130
1131
# File 'generated/google/apis/storage_v1/classes.rb', line 1129

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)


1117
1118
1119
# File 'generated/google/apis/storage_v1/classes.rb', line 1117

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



1122
1123
1124
# File 'generated/google/apis/storage_v1/classes.rb', line 1122

def 
  @metadata
end

#secretString

HMAC secret key material. Corresponds to the JSON property secret

Returns:

  • (String)


1127
1128
1129
# File 'generated/google/apis/storage_v1/classes.rb', line 1127

def secret
  @secret
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1134
1135
1136
1137
1138
# File 'generated/google/apis/storage_v1/classes.rb', line 1134

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