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.



19653
19654
19655
# File 'lib/google/apis/compute_beta/classes.rb', line 19653

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



19645
19646
19647
# File 'lib/google/apis/compute_beta/classes.rb', line 19645

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



19651
19652
19653
# File 'lib/google/apis/compute_beta/classes.rb', line 19651

def warning
  @warning
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



19658
19659
19660
19661
# File 'lib/google/apis/compute_beta/classes.rb', line 19658

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