Class: Google::Apis::ComputeV1::HealthSourceHealth

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 RegionHealthSources.GetHealth

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ HealthSourceHealth

Returns a new instance of HealthSourceHealth.



19122
19123
19124
# File 'lib/google/apis/compute_v1/classes.rb', line 19122

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

Instance Attribute Details

#health_stateString

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

Returns:

  • (String)


19109
19110
19111
# File 'lib/google/apis/compute_v1/classes.rb', line 19109

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)


19115
19116
19117
# File 'lib/google/apis/compute_v1/classes.rb', line 19115

def kind
  @kind
end

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

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



19120
19121
19122
# File 'lib/google/apis/compute_v1/classes.rb', line 19120

def sources
  @sources
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



19127
19128
19129
19130
19131
# File 'lib/google/apis/compute_v1/classes.rb', line 19127

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