Class: Google::Apis::ComputeAlpha::SchedulingDynamicResizeProperties
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::SchedulingDynamicResizeProperties
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/compute_alpha/classes.rb,
lib/google/apis/compute_alpha/representations.rb,
lib/google/apis/compute_alpha/representations.rb
Overview
Configuration for properties related to dynamic assignment of computing resources to VM (CPU and RAM).
Instance Attribute Summary collapse
-
#enable_hot_standby ⇒ Boolean
(also: #enable_hot_standby?)
Set to true if this VM is supporting HotStandby modes (b/235044648).
-
#hot_standby_state ⇒ String
Current Hot Standby state of VM.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SchedulingDynamicResizeProperties
constructor
A new instance of SchedulingDynamicResizeProperties.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SchedulingDynamicResizeProperties
Returns a new instance of SchedulingDynamicResizeProperties.
38668 38669 38670 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 38668 def initialize(**args) update!(**args) end |
Instance Attribute Details
#enable_hot_standby ⇒ Boolean Also known as: enable_hot_standby?
Set to true if this VM is supporting HotStandby modes (b/235044648).
Corresponds to the JSON property enableHotStandby
38660 38661 38662 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 38660 def enable_hot_standby @enable_hot_standby end |
#hot_standby_state ⇒ String
Current Hot Standby state of VM.
Corresponds to the JSON property hotStandbyState
38666 38667 38668 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 38666 def hot_standby_state @hot_standby_state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
38673 38674 38675 38676 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 38673 def update!(**args) @enable_hot_standby = args[:enable_hot_standby] if args.key?(:enable_hot_standby) @hot_standby_state = args[:hot_standby_state] if args.key?(:hot_standby_state) end |