Class: Google::Apis::ComputeV1::HealthSourcesScopedList

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



19122
19123
19124
# File 'lib/google/apis/compute_v1/classes.rb', line 19122

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

Instance Attribute Details

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

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



19114
19115
19116
# File 'lib/google/apis/compute_v1/classes.rb', line 19114

def health_sources
  @health_sources
end

#warningGoogle::Apis::ComputeV1::HealthSourcesScopedList::Warning

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



19120
19121
19122
# File 'lib/google/apis/compute_v1/classes.rb', line 19120

def warning
  @warning
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



19127
19128
19129
19130
# File 'lib/google/apis/compute_v1/classes.rb', line 19127

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