Class: Google::Apis::ComputeAlpha::InstanceGroupManagerStandbyPolicy
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::InstanceGroupManagerStandbyPolicy
- 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
Instance Attribute Summary collapse
-
#initial_delay_sec ⇒ Fixnum
Corresponds to the JSON property
initialDelaySec
. -
#mode ⇒ String
Defines how a MIG resumes or starts VMs from a standby pool when the group scales out.
Instance Method Summary collapse
-
#initialize(**args) ⇒ InstanceGroupManagerStandbyPolicy
constructor
A new instance of InstanceGroupManagerStandbyPolicy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ InstanceGroupManagerStandbyPolicy
Returns a new instance of InstanceGroupManagerStandbyPolicy.
18033 18034 18035 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 18033 def initialize(**args) update!(**args) end |
Instance Attribute Details
#initial_delay_sec ⇒ Fixnum
Corresponds to the JSON property initialDelaySec
18025 18026 18027 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 18025 def initial_delay_sec @initial_delay_sec end |
#mode ⇒ String
Defines how a MIG resumes or starts VMs from a standby pool when the group
scales out. The default mode is MANUAL
.
Corresponds to the JSON property mode
18031 18032 18033 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 18031 def mode @mode end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
18038 18039 18040 18041 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 18038 def update!(**args) @initial_delay_sec = args[:initial_delay_sec] if args.key?(:initial_delay_sec) @mode = args[:mode] if args.key?(:mode) end |