Class: Google::Apis::ReplicapoolV1beta2::ReplicaPoolAutoHealingPolicy
- Inherits:
-
Object
- Object
- Google::Apis::ReplicapoolV1beta2::ReplicaPoolAutoHealingPolicy
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/replicapool_v1beta2/classes.rb,
generated/google/apis/replicapool_v1beta2/representations.rb,
generated/google/apis/replicapool_v1beta2/representations.rb
Instance Attribute Summary collapse
-
#action_type ⇒ String
The action to perform when an instance becomes unhealthy.
-
#health_check ⇒ String
The URL for the HealthCheck that signals autohealing.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ReplicaPoolAutoHealingPolicy
constructor
A new instance of ReplicaPoolAutoHealingPolicy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ReplicaPoolAutoHealingPolicy
Returns a new instance of ReplicaPoolAutoHealingPolicy
621 622 623 |
# File 'generated/google/apis/replicapool_v1beta2/classes.rb', line 621 def initialize(**args) update!(**args) end |
Instance Attribute Details
#action_type ⇒ String
The action to perform when an instance becomes unhealthy. Possible values are
RECREATE or REBOOT. RECREATE replaces an unhealthy instance with a new
instance that is based on the instance template for this managed instance
group. REBOOT performs a soft reboot on an instance. If the instance cannot
reboot, the instance performs a hard restart.
Corresponds to the JSON property actionType
614 615 616 |
# File 'generated/google/apis/replicapool_v1beta2/classes.rb', line 614 def action_type @action_type end |
#health_check ⇒ String
The URL for the HealthCheck that signals autohealing.
Corresponds to the JSON property healthCheck
619 620 621 |
# File 'generated/google/apis/replicapool_v1beta2/classes.rb', line 619 def health_check @health_check end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
626 627 628 629 |
# File 'generated/google/apis/replicapool_v1beta2/classes.rb', line 626 def update!(**args) @action_type = args[:action_type] if args.key?(:action_type) @health_check = args[:health_check] if args.key?(:health_check) end |