Class: Google::Apis::ComputeV1::HealthSourcesScopedList

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

Defined Under Namespace

Classes: Warning

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ HealthSourcesScopedList

Returns a new instance of HealthSourcesScopedList.



18615
18616
18617
# File 'lib/google/apis/compute_v1/classes.rb', line 18615

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

Instance Attribute Details

#health_sourcesArray<Google::Apis::ComputeV1::HealthSource>

A list of HealthSources contained in this scope. Corresponds to the JSON property healthSources



18607
18608
18609
# File 'lib/google/apis/compute_v1/classes.rb', line 18607

def health_sources
  @health_sources
end

#warningGoogle::Apis::ComputeV1::HealthSourcesScopedList::Warning

Informational warning which replaces the list of health sources when the list is empty. Corresponds to the JSON property warning



18613
18614
18615
# File 'lib/google/apis/compute_v1/classes.rb', line 18613

def warning
  @warning
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



18620
18621
18622
18623
# File 'lib/google/apis/compute_v1/classes.rb', line 18620

def update!(**args)
  @health_sources = args[:health_sources] if args.key?(:health_sources)
  @warning = args[:warning] if args.key?(:warning)
end