Class: Google::Apis::ComputeAlpha::ManagedInstanceInstanceHealth

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ManagedInstanceInstanceHealth

Returns a new instance of ManagedInstanceInstanceHealth.



42123
42124
42125
# File 'lib/google/apis/compute_alpha/classes.rb', line 42123

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

Instance Attribute Details

#detailed_health_stateString

Output only. [Output Only] The current detailed instance health state. Corresponds to the JSON property detailedHealthState

Returns:

  • (String)


42106
42107
42108
# File 'lib/google/apis/compute_alpha/classes.rb', line 42106

def detailed_health_state
  @detailed_health_state
end

#health_checkString

Output only. [Output Only] The URL for the health check that verifies whether the instance is healthy. Corresponds to the JSON property healthCheck

Returns:

  • (String)


42113
42114
42115
# File 'lib/google/apis/compute_alpha/classes.rb', line 42113

def health_check
  @health_check
end

#health_stateString

Output only. [Output Only] The current instance health state. This field will not get promoted to beta/GA and might be removed from alpha APIs after 01/12/2019. Please use detailed_health_state field instead. Corresponds to the JSON property healthState

Returns:

  • (String)


42121
42122
42123
# File 'lib/google/apis/compute_alpha/classes.rb', line 42121

def health_state
  @health_state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



42128
42129
42130
42131
42132
# File 'lib/google/apis/compute_alpha/classes.rb', line 42128

def update!(**args)
  @detailed_health_state = args[:detailed_health_state] if args.key?(:detailed_health_state)
  @health_check = args[:health_check] if args.key?(:health_check)
  @health_state = args[:health_state] if args.key?(:health_state)
end