Class: Google::Apis::ComputeAlpha::HealthSourceHealth

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ HealthSourceHealth

Returns a new instance of HealthSourceHealth.



23418
23419
23420
# File 'lib/google/apis/compute_alpha/classes.rb', line 23418

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

Instance Attribute Details

#health_stateString

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

Returns:

  • (String)


23405
23406
23407
# File 'lib/google/apis/compute_alpha/classes.rb', line 23405

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)


23411
23412
23413
# File 'lib/google/apis/compute_alpha/classes.rb', line 23411

def kind
  @kind
end

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

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



23416
23417
23418
# File 'lib/google/apis/compute_alpha/classes.rb', line 23416

def sources
  @sources
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



23423
23424
23425
23426
23427
# File 'lib/google/apis/compute_alpha/classes.rb', line 23423

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