class Google::Apis::ReplicapoolV1beta2::ReplicaPoolAutoHealingPolicy

Attributes

action_type[RW]

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` @return [String]

health_check[RW]

The URL for the HealthCheck that signals autohealing. Corresponds to the JSON property `healthCheck` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/replicapool_v1beta2/classes.rb, line 619
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/replicapool_v1beta2/classes.rb, line 624
def update!(**args)
  @action_type = args[:action_type] if args.key?(:action_type)
  @health_check = args[:health_check] if args.key?(:health_check)
end