Class: Google::Apis::ComputeAlpha::HealthSourceHealth
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::HealthSourceHealth
- 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 RegionHealthSources.GetHealth
Instance Attribute Summary collapse
-
#health_state ⇒ String
Health state of the HealthSource.
-
#kind ⇒ String
Output only.
-
#sources ⇒ Array<Google::Apis::ComputeAlpha::HealthSourcesGetHealthResponseSourceInfo>
Health state details of the sources.
Instance Method Summary collapse
-
#initialize(**args) ⇒ HealthSourceHealth
constructor
A new instance of HealthSourceHealth.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ HealthSourceHealth
Returns a new instance of HealthSourceHealth.
22494 22495 22496 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 22494 def initialize(**args) update!(**args) end |
Instance Attribute Details
#health_state ⇒ String
Health state of the HealthSource.
Corresponds to the JSON property healthState
22481 22482 22483 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 22481 def health_state @health_state end |
#kind ⇒ String
Output only. [Output Only] Type of resource. Alwayscompute#healthSourceHealth
for the health of health sources.
Corresponds to the JSON property kind
22487 22488 22489 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 22487 def kind @kind end |
#sources ⇒ Array<Google::Apis::ComputeAlpha::HealthSourcesGetHealthResponseSourceInfo>
Health state details of the sources.
Corresponds to the JSON property sources
22492 22493 22494 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 22492 def sources @sources end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
22499 22500 22501 22502 22503 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 22499 def update!(**args) @health_state = args[:health_state] if args.key?(:health_state) @kind = args[:kind] if args.key?(:kind) @sources = args[:sources] if args.key?(:sources) end |