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.



18718
18719
18720
# File 'lib/google/apis/compute_beta/classes.rb', line 18718

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



18710
18711
18712
# File 'lib/google/apis/compute_beta/classes.rb', line 18710

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



18716
18717
18718
# File 'lib/google/apis/compute_beta/classes.rb', line 18716

def warning
  @warning
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



18723
18724
18725
18726
# File 'lib/google/apis/compute_beta/classes.rb', line 18723

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