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.



3953
3954
3955
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 3953

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

Instance Attribute Details

#keyString

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

Returns:

  • (String)


3946
3947
3948
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 3946

def key
  @key
end

#valueString

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

Returns:

  • (String)


3951
3952
3953
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 3951

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3958
3959
3960
3961
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 3958

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