Class: Google::Apis::VmmigrationV1::AdaptationModifier
- Inherits:
-
Object
- Object
- Google::Apis::VmmigrationV1::AdaptationModifier
- 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
-
#modifier ⇒ String
Optional.
-
#value ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AdaptationModifier
constructor
A new instance of AdaptationModifier.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#modifier ⇒ String
Optional. The modifier name.
Corresponds to the JSON property modifier
65 66 67 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 65 def modifier @modifier end |
#value ⇒ String
Optional. The value of the modifier. The actual value depends on the modifier
and can also be empty.
Corresponds to the JSON property value
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 |