Class: Google::Apis::ComputeV1::HealthChecksScopedList

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) ⇒ HealthChecksScopedList

Returns a new instance of HealthChecksScopedList.



9919
9920
9921
# File 'lib/google/apis/compute_v1/classes.rb', line 9919

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

Instance Attribute Details

#health_checksArray<Google::Apis::ComputeV1::HealthCheck>

A list of HealthChecks contained in this scope. Corresponds to the JSON property healthChecks



9911
9912
9913
# File 'lib/google/apis/compute_v1/classes.rb', line 9911

def health_checks
  @health_checks
end

#warningGoogle::Apis::ComputeV1::HealthChecksScopedList::Warning

Informational warning which replaces the list of backend services when the list is empty. Corresponds to the JSON property warning



9917
9918
9919
# File 'lib/google/apis/compute_v1/classes.rb', line 9917

def warning
  @warning
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9924
9925
9926
9927
# File 'lib/google/apis/compute_v1/classes.rb', line 9924

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