Class: Google::Apis::ReplicapoolV1beta2::ReplicaPoolAutoHealingPolicy

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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_typeString

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

Returns:

  • (String)


614
615
616
# File 'generated/google/apis/replicapool_v1beta2/classes.rb', line 614

def action_type
  @action_type
end

#health_checkString

The URL for the HealthCheck that signals autohealing. Corresponds to the JSON property healthCheck

Returns:

  • (String)


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