Class: Google::Apis::VmmigrationV1alpha1::Tag
- Inherits:
-
Object
- Object
- Google::Apis::VmmigrationV1alpha1::Tag
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/vmmigration_v1alpha1/classes.rb,
lib/google/apis/vmmigration_v1alpha1/representations.rb,
lib/google/apis/vmmigration_v1alpha1/representations.rb
Overview
Tag is an AWS tag representation.
Instance Attribute Summary collapse
-
#key ⇒ String
Key of tag.
-
#value ⇒ String
Value of tag.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Tag
constructor
A new instance of Tag.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Tag
Returns a new instance of Tag.
2572 2573 2574 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2572 def initialize(**args) update!(**args) end |
Instance Attribute Details
#key ⇒ String
Key of tag.
Corresponds to the JSON property key
2565 2566 2567 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2565 def key @key end |
#value ⇒ String
Value of tag.
Corresponds to the JSON property value
2570 2571 2572 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2570 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2577 2578 2579 2580 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2577 def update!(**args) @key = args[:key] if args.key?(:key) @value = args[:value] if args.key?(:value) end |