Class: Google::Apis::ComputeAlpha::InstanceGroupManagerAutoHealingPolicy

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ InstanceGroupManagerAutoHealingPolicy

Returns a new instance of InstanceGroupManagerAutoHealingPolicy



10153
10154
10155
# File 'generated/google/apis/compute_alpha/classes.rb', line 10153

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

Instance Attribute Details

#health_checkString

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

Returns:

  • (String)


10131
10132
10133
# File 'generated/google/apis/compute_alpha/classes.rb', line 10131

def health_check
  @health_check
end

#initial_delay_secFixnum

The number of seconds that the managed instance group waits before it applies autohealing policies to new instances or recently recreated instances. This initial delay allows instances to initialize and run their startup scripts before the instance group determines that they are UNHEALTHY. This prevents the managed instance group from recreating its instances prematurely. This value must be from range [0, 3600]. Corresponds to the JSON property initialDelaySec

Returns:

  • (Fixnum)


10141
10142
10143
# File 'generated/google/apis/compute_alpha/classes.rb', line 10141

def initial_delay_sec
  @initial_delay_sec
end

#max_unavailableGoogle::Apis::ComputeAlpha::FixedOrPercent

Encapsulates numeric value that can be either absolute or relative. Corresponds to the JSON property maxUnavailable



10146
10147
10148
# File 'generated/google/apis/compute_alpha/classes.rb', line 10146

def max_unavailable
  @max_unavailable
end

#modeString

Defines operating mode for this policy. Corresponds to the JSON property mode

Returns:

  • (String)


10151
10152
10153
# File 'generated/google/apis/compute_alpha/classes.rb', line 10151

def mode
  @mode
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10158
10159
10160
10161
10162
10163
# File 'generated/google/apis/compute_alpha/classes.rb', line 10158

def update!(**args)
  @health_check = args[:health_check] if args.key?(:health_check)
  @initial_delay_sec = args[:initial_delay_sec] if args.key?(:initial_delay_sec)
  @max_unavailable = args[:max_unavailable] if args.key?(:max_unavailable)
  @mode = args[:mode] if args.key?(:mode)
end