Class: Google::Apis::ComputeV1::CompositeHealthCheckHealth

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

Overview

Response message for RegionCompositeHealthChecks.GetHealth

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CompositeHealthCheckHealth

Returns a new instance of CompositeHealthCheckHealth.



8615
8616
8617
# File 'lib/google/apis/compute_v1/classes.rb', line 8615

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

Instance Attribute Details

#health_sourcesArray<Google::Apis::ComputeV1::CompositeHealthChecksGetHealthResponseHealthSourceHealth>

Health sources and their corresponding health states. Corresponds to the JSON property healthSources



8601
8602
8603
# File 'lib/google/apis/compute_v1/classes.rb', line 8601

def health_sources
  @health_sources
end

#health_stateString

Health state of the CompositeHealthCheck. Corresponds to the JSON property healthState

Returns:

  • (String)


8606
8607
8608
# File 'lib/google/apis/compute_v1/classes.rb', line 8606

def health_state
  @health_state
end

#kindString

Output only. [Output Only] Type of resource. Alwayscompute# compositeHealthCheckHealth for the health of composite health checks. Corresponds to the JSON property kind

Returns:

  • (String)


8613
8614
8615
# File 'lib/google/apis/compute_v1/classes.rb', line 8613

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8620
8621
8622
8623
8624
# File 'lib/google/apis/compute_v1/classes.rb', line 8620

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