Class: Google::Apis::ComputeAlpha::CompositeHealthCheckHealth

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

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.



10401
10402
10403
# File 'lib/google/apis/compute_alpha/classes.rb', line 10401

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

Instance Attribute Details

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

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



10387
10388
10389
# File 'lib/google/apis/compute_alpha/classes.rb', line 10387

def health_sources
  @health_sources
end

#health_stateString

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

Returns:

  • (String)


10392
10393
10394
# File 'lib/google/apis/compute_alpha/classes.rb', line 10392

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)


10399
10400
10401
# File 'lib/google/apis/compute_alpha/classes.rb', line 10399

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10406
10407
10408
10409
10410
# File 'lib/google/apis/compute_alpha/classes.rb', line 10406

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