Class: Google::Apis::VmmigrationV1alpha1::Tag

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Tag

Returns a new instance of Tag.



2664
2665
2666
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2664

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

Instance Attribute Details

#keyString

Key of tag. Corresponds to the JSON property key

Returns:

  • (String)


2657
2658
2659
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2657

def key
  @key
end

#valueString

Value of tag. Corresponds to the JSON property value

Returns:

  • (String)


2662
2663
2664
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2662

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2669
2670
2671
2672
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2669

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