Class: Google::Apis::ReplicapoolupdaterV1beta1::RollingUpdate::Policy
- Inherits:
-
Object
- Object
- Google::Apis::ReplicapoolupdaterV1beta1::RollingUpdate::Policy
- 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
-
#auto_pause_after_instances ⇒ Fixnum
Number of instances to update before the updater pauses the rolling update.
-
#instance_startup_timeout_sec ⇒ Fixnum
The maximum amount of time that the updater waits for a HEALTHY state after all of the update steps are complete.
-
#max_num_concurrent_instances ⇒ Fixnum
The maximum number of instances that can be updated simultaneously.
-
#max_num_failed_instances ⇒ Fixnum
The maximum number of instance updates that can fail before the group update is considered a failure.
-
#min_instance_update_time_sec ⇒ Fixnum
The minimum amount of time that the updater spends to update each instance.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Policy
constructor
A new instance of Policy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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_instances ⇒ Fixnum
Number of instances to update before the updater pauses the rolling update.
Corresponds to the JSON property autoPauseAfterInstances
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_sec ⇒ Fixnum
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
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_instances ⇒ Fixnum
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
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_instances ⇒ Fixnum
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
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_sec ⇒ Fixnum
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
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 |