Class: Google::Apis::ManagerV1beta2::MetadataItem
- Inherits:
-
Object
- Object
- Google::Apis::ManagerV1beta2::MetadataItem
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/manager_v1beta2/classes.rb,
generated/google/apis/manager_v1beta2/representations.rb,
generated/google/apis/manager_v1beta2/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
648 649 650 |
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 648 def initialize(**args) update!(**args) end |
Instance Attribute Details
#key ⇒ String
A metadata key.
Corresponds to the JSON property key
641 642 643 |
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 641 def key @key end |
#value ⇒ String
A metadata value.
Corresponds to the JSON property value
646 647 648 |
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 646 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
653 654 655 656 |
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 653 def update!(**args) @key = args[:key] if args.key?(:key) @value = args[:value] if args.key?(:value) end |