Class: Google::Apis::ComputeAlpha::HealthSourcesScopedList

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/compute_alpha/classes.rb,
lib/google/apis/compute_alpha/representations.rb,
lib/google/apis/compute_alpha/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.



19151
19152
19153
# File 'lib/google/apis/compute_alpha/classes.rb', line 19151

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

Instance Attribute Details

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

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



19143
19144
19145
# File 'lib/google/apis/compute_alpha/classes.rb', line 19143

def health_sources
  @health_sources
end

#warningGoogle::Apis::ComputeAlpha::HealthSourcesScopedList::Warning

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



19149
19150
19151
# File 'lib/google/apis/compute_alpha/classes.rb', line 19149

def warning
  @warning
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



19156
19157
19158
19159
# File 'lib/google/apis/compute_alpha/classes.rb', line 19156

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