Class: Google::Apis::VmmigrationV1::Tag
- Inherits:
-
Object
- Object
- Google::Apis::VmmigrationV1::Tag
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/vmmigration_v1/classes.rb,
lib/google/apis/vmmigration_v1/representations.rb,
lib/google/apis/vmmigration_v1/representations.rb
Overview
Tag is an AWS tag representation.
Instance Attribute Summary collapse
-
#key ⇒ String
Required.
-
#value ⇒ String
Required.
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.
3914 3915 3916 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 3914 def initialize(**args) update!(**args) end |
Instance Attribute Details
#key ⇒ String
Required. Key of tag.
Corresponds to the JSON property key
3907 3908 3909 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 3907 def key @key end |
#value ⇒ String
Required. Value of tag.
Corresponds to the JSON property value
3912 3913 3914 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 3912 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3919 3920 3921 3922 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 3919 def update!(**args) @key = args[:key] if args.key?(:key) @value = args[:value] if args.key?(:value) end |