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.



19042
19043
19044
# File 'lib/google/apis/compute_beta/classes.rb', line 19042

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



19034
19035
19036
# File 'lib/google/apis/compute_beta/classes.rb', line 19034

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



19040
19041
19042
# File 'lib/google/apis/compute_beta/classes.rb', line 19040

def warning
  @warning
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



19047
19048
19049
19050
# File 'lib/google/apis/compute_beta/classes.rb', line 19047

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