Class: Google::Apis::VmmigrationV1::Tag

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Tag

Returns a new instance of Tag.



4744
4745
4746
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 4744

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#keyString

Required. Key of tag. Corresponds to the JSON property key

Returns:

  • (String)


4737
4738
4739
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 4737

def key
  @key
end

#valueString

Required. Value of tag. Corresponds to the JSON property value

Returns:

  • (String)


4742
4743
4744
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 4742

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4749
4750
4751
4752
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 4749

def update!(**args)
  @key = args[:key] if args.key?(:key)
  @value = args[:value] if args.key?(:value)
end