Class: Google::Apis::ReplicapoolV1beta1::MetadataItem
- Inherits:
-
Object
- Object
- Google::Apis::ReplicapoolV1beta1::MetadataItem
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/replicapool_v1beta1/classes.rb,
generated/google/apis/replicapool_v1beta1/representations.rb,
generated/google/apis/replicapool_v1beta1/representations.rb
Overview
A Compute Engine metadata item, defined as a key:value pair. Identical to the metadata on the corresponding Compute Engine resource.
Instance Attribute Summary collapse
-
#key ⇒ String
A metadata key.
-
#value ⇒ String
A metadata value.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MetadataItem
constructor
A new instance of MetadataItem.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ MetadataItem
Returns a new instance of MetadataItem
320 321 322 |
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 320 def initialize(**args) update!(**args) end |
Instance Attribute Details
#key ⇒ String
A metadata key.
Corresponds to the JSON property key
313 314 315 |
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 313 def key @key end |
#value ⇒ String
A metadata value.
Corresponds to the JSON property value
318 319 320 |
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 318 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
325 326 327 328 |
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 325 def update!(**args) @key = args[:key] if args.key?(:key) @value = args[:value] if args.key?(:value) end |