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

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) ⇒ ManagedInstanceInstanceHealth

Returns a new instance of ManagedInstanceInstanceHealth



15268
15269
15270
# File 'generated/google/apis/compute_alpha/classes.rb', line 15268

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

Instance Attribute Details

#health_checkString

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

Returns:

  • (String)


15261
15262
15263
# File 'generated/google/apis/compute_alpha/classes.rb', line 15261

def health_check
  @health_check
end

#health_stateString

[Output Only] The current instance health state. Corresponds to the JSON property healthState

Returns:

  • (String)


15266
15267
15268
# File 'generated/google/apis/compute_alpha/classes.rb', line 15266

def health_state
  @health_state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



15273
15274
15275
15276
# File 'generated/google/apis/compute_alpha/classes.rb', line 15273

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