Class: Google::Apis::ComputeV1::NetworkEndpointWithHealthStatus

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ NetworkEndpointWithHealthStatus

Returns a new instance of NetworkEndpointWithHealthStatus.



37350
37351
37352
# File 'lib/google/apis/compute_v1/classes.rb', line 37350

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

Instance Attribute Details

#healthsArray<Google::Apis::ComputeV1::HealthStatusForNetworkEndpoint>

Output only. [Output only] The health status of network endpoint. Optional. Displayed only if the network endpoint has centralized health checking configured. Corresponds to the JSON property healths



37343
37344
37345
# File 'lib/google/apis/compute_v1/classes.rb', line 37343

def healths
  @healths
end

#network_endpointGoogle::Apis::ComputeV1::NetworkEndpoint

The network endpoint. Corresponds to the JSON property networkEndpoint



37348
37349
37350
# File 'lib/google/apis/compute_v1/classes.rb', line 37348

def network_endpoint
  @network_endpoint
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



37355
37356
37357
37358
# File 'lib/google/apis/compute_v1/classes.rb', line 37355

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