Class: Google::Apis::ComputeAlpha::SchedulingDynamicResizeProperties

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SchedulingDynamicResizeProperties

Returns a new instance of SchedulingDynamicResizeProperties.



38666
38667
38668
# File 'lib/google/apis/compute_alpha/classes.rb', line 38666

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

Instance Attribute Details

#enable_hot_standbyBoolean Also known as: enable_hot_standby?

Set to true if this VM is supporting HotStandby modes (b/235044648). Corresponds to the JSON property enableHotStandby

Returns:

  • (Boolean)


38658
38659
38660
# File 'lib/google/apis/compute_alpha/classes.rb', line 38658

def enable_hot_standby
  @enable_hot_standby
end

#hot_standby_stateString

Current Hot Standby state of VM. Corresponds to the JSON property hotStandbyState

Returns:

  • (String)


38664
38665
38666
# File 'lib/google/apis/compute_alpha/classes.rb', line 38664

def hot_standby_state
  @hot_standby_state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



38671
38672
38673
38674
# File 'lib/google/apis/compute_alpha/classes.rb', line 38671

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