Class: Google::Apis::StorageV1::HmacKey
- Inherits:
-
Object
- Object
- Google::Apis::StorageV1::HmacKey
- 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
-
#kind ⇒ String
The kind of item this is.
-
#metadata ⇒ Google::Apis::StorageV1::HmacKeyMetadata
JSON template to produce a JSON-style HMAC Key metadata resource.
-
#secret ⇒ String
HMAC secret key material.
Instance Method Summary collapse
-
#initialize(**args) ⇒ HmacKey
constructor
A new instance of HmacKey.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ HmacKey
Returns a new instance of HmacKey.
1978 1979 1980 |
# File 'lib/google/apis/storage_v1/classes.rb', line 1978 def initialize(**args) update!(**args) end |
Instance Attribute Details
#kind ⇒ String
The kind of item this is. For HMAC keys, this is always storage#hmacKey.
Corresponds to the JSON property kind
1966 1967 1968 |
# File 'lib/google/apis/storage_v1/classes.rb', line 1966 def kind @kind end |
#metadata ⇒ Google::Apis::StorageV1::HmacKeyMetadata
JSON template to produce a JSON-style HMAC Key metadata resource.
Corresponds to the JSON property metadata
1971 1972 1973 |
# File 'lib/google/apis/storage_v1/classes.rb', line 1971 def @metadata end |
#secret ⇒ String
HMAC secret key material.
Corresponds to the JSON property secret
1976 1977 1978 |
# File 'lib/google/apis/storage_v1/classes.rb', line 1976 def secret @secret end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1983 1984 1985 1986 1987 |
# File 'lib/google/apis/storage_v1/classes.rb', line 1983 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 |