Class: Google::Apis::ReplicapoolupdaterV1beta1::RollingUpdate::Policy

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/replicapoolupdater_v1beta1/classes.rb,
generated/google/apis/replicapoolupdater_v1beta1/representations.rb,
generated/google/apis/replicapoolupdater_v1beta1/representations.rb

Overview

Parameters of the update process.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Policy

Returns a new instance of Policy.



680
681
682
# File 'generated/google/apis/replicapoolupdater_v1beta1/classes.rb', line 680

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

Instance Attribute Details

#auto_pause_after_instancesFixnum

Number of instances to update before the updater pauses the rolling update. Corresponds to the JSON property autoPauseAfterInstances

Returns:

  • (Fixnum)


646
647
648
# File 'generated/google/apis/replicapoolupdater_v1beta1/classes.rb', line 646

def auto_pause_after_instances
  @auto_pause_after_instances
end

#instance_startup_timeout_secFixnum

The maximum amount of time that the updater waits for a HEALTHY state after all of the update steps are complete. If the HEALTHY state is not received before the deadline, the instance update is considered a failure. Corresponds to the JSON property instanceStartupTimeoutSec

Returns:

  • (Fixnum)


653
654
655
# File 'generated/google/apis/replicapoolupdater_v1beta1/classes.rb', line 653

def instance_startup_timeout_sec
  @instance_startup_timeout_sec
end

#max_num_concurrent_instancesFixnum

The maximum number of instances that can be updated simultaneously. An instance update is considered complete only after the instance is restarted and initialized. Corresponds to the JSON property maxNumConcurrentInstances

Returns:

  • (Fixnum)


660
661
662
# File 'generated/google/apis/replicapoolupdater_v1beta1/classes.rb', line 660

def max_num_concurrent_instances
  @max_num_concurrent_instances
end

#max_num_failed_instancesFixnum

The maximum number of instance updates that can fail before the group update is considered a failure. An instance update is considered failed if any of its update actions (e.g. Stop call on Instance resource in Rolling Reboot) failed with permanent failure, or if the instance is in an UNHEALTHY state after it finishes all of the update actions. Corresponds to the JSON property maxNumFailedInstances

Returns:

  • (Fixnum)


669
670
671
# File 'generated/google/apis/replicapoolupdater_v1beta1/classes.rb', line 669

def max_num_failed_instances
  @max_num_failed_instances
end

#min_instance_update_time_secFixnum

The minimum amount of time that the updater spends to update each instance. Update time is the time it takes to complete all update actions (e.g. Stop call on Instance resource in Rolling Reboot), reboot, and initialize. If the instance update finishes early, the updater pauses for the remainder of the time before it starts the next instance update. Corresponds to the JSON property minInstanceUpdateTimeSec

Returns:

  • (Fixnum)


678
679
680
# File 'generated/google/apis/replicapoolupdater_v1beta1/classes.rb', line 678

def min_instance_update_time_sec
  @min_instance_update_time_sec
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



685
686
687
688
689
690
691
# File 'generated/google/apis/replicapoolupdater_v1beta1/classes.rb', line 685

def update!(**args)
  @auto_pause_after_instances = args[:auto_pause_after_instances] if args.key?(:auto_pause_after_instances)
  @instance_startup_timeout_sec = args[:instance_startup_timeout_sec] if args.key?(:instance_startup_timeout_sec)
  @max_num_concurrent_instances = args[:max_num_concurrent_instances] if args.key?(:max_num_concurrent_instances)
  @max_num_failed_instances = args[:max_num_failed_instances] if args.key?(:max_num_failed_instances)
  @min_instance_update_time_sec = args[:min_instance_update_time_sec] if args.key?(:min_instance_update_time_sec)
end