Class: Google::Apis::VmmigrationV1::AdaptationModifier

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

AdaptationModifier a modifier to be used for configuration of the OS adaptation process.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AdaptationModifier

Returns a new instance of AdaptationModifier.



73
74
75
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 73

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

Instance Attribute Details

#modifierString

Optional. The modifier name. Corresponds to the JSON property modifier

Returns:

  • (String)


65
66
67
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 65

def modifier
  @modifier
end

#valueString

Optional. The value of the modifier. The actual value depends on the modifier and can also be empty. Corresponds to the JSON property value

Returns:

  • (String)


71
72
73
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 71

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



78
79
80
81
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 78

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