Class: Google::Apis::ComputeBeta::HealthSourcesScopedList

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

Defined Under Namespace

Classes: Warning

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ HealthSourcesScopedList

Returns a new instance of HealthSourcesScopedList.



20386
20387
20388
# File 'lib/google/apis/compute_beta/classes.rb', line 20386

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

Instance Attribute Details

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

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



20378
20379
20380
# File 'lib/google/apis/compute_beta/classes.rb', line 20378

def health_sources
  @health_sources
end

#warningGoogle::Apis::ComputeBeta::HealthSourcesScopedList::Warning

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



20384
20385
20386
# File 'lib/google/apis/compute_beta/classes.rb', line 20384

def warning
  @warning
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



20391
20392
20393
20394
# File 'lib/google/apis/compute_beta/classes.rb', line 20391

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