Class: Google::Apis::ComputeBeta::HealthSourceHealth

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

Overview

Response message for RegionHealthSources.GetHealth

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ HealthSourceHealth

Returns a new instance of HealthSourceHealth.



20016
20017
20018
# File 'lib/google/apis/compute_beta/classes.rb', line 20016

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

Instance Attribute Details

#health_stateString

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

Returns:

  • (String)


20003
20004
20005
# File 'lib/google/apis/compute_beta/classes.rb', line 20003

def health_state
  @health_state
end

#kindString

Output only. [Output Only] Type of resource. Alwayscompute#healthSourceHealth for the health of health sources. Corresponds to the JSON property kind

Returns:

  • (String)


20009
20010
20011
# File 'lib/google/apis/compute_beta/classes.rb', line 20009

def kind
  @kind
end

#sourcesArray<Google::Apis::ComputeBeta::HealthSourcesGetHealthResponseSourceInfo>

Health state details of the sources. Corresponds to the JSON property sources



20014
20015
20016
# File 'lib/google/apis/compute_beta/classes.rb', line 20014

def sources
  @sources
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



20021
20022
20023
20024
20025
# File 'lib/google/apis/compute_beta/classes.rb', line 20021

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