Class: Google::Apis::ComputeBeta::InstanceGroupManagerStandbyPolicy

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/compute_beta/classes.rb,
lib/google/apis/compute_beta/representations.rb,
lib/google/apis/compute_beta/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ InstanceGroupManagerStandbyPolicy

Returns a new instance of InstanceGroupManagerStandbyPolicy.



16720
16721
16722
# File 'lib/google/apis/compute_beta/classes.rb', line 16720

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

Instance Attribute Details

#initial_delay_secFixnum

Corresponds to the JSON property initialDelaySec

Returns:

  • (Fixnum)


16713
16714
16715
# File 'lib/google/apis/compute_beta/classes.rb', line 16713

def initial_delay_sec
  @initial_delay_sec
end

#modeString

Defines behaviour of using instances from standby pool to resize MIG. Corresponds to the JSON property mode

Returns:

  • (String)


16718
16719
16720
# File 'lib/google/apis/compute_beta/classes.rb', line 16718

def mode
  @mode
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



16725
16726
16727
16728
# File 'lib/google/apis/compute_beta/classes.rb', line 16725

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