Class: Google::Apis::ComputeV1::HealthStatusForNetworkEndpoint

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

Returns a new instance of HealthStatusForNetworkEndpoint.



9783
9784
9785
# File 'lib/google/apis/compute_v1/classes.rb', line 9783

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

Instance Attribute Details

#backend_serviceGoogle::Apis::ComputeV1::BackendServiceReference

URL of the backend service associated with the health state of the network endpoint. Corresponds to the JSON property backendService



9748
9749
9750
# File 'lib/google/apis/compute_v1/classes.rb', line 9748

def backend_service
  @backend_service
end

#forwarding_ruleGoogle::Apis::ComputeV1::ForwardingRuleReference

URL of the forwarding rule associated with the health state of the network endpoint. Corresponds to the JSON property forwardingRule



9754
9755
9756
# File 'lib/google/apis/compute_v1/classes.rb', line 9754

def forwarding_rule
  @forwarding_rule
end

#health_checkGoogle::Apis::ComputeV1::HealthCheckReference

A full or valid partial URL to a health check. For example, the following are valid URLs:



9764
9765
9766
# File 'lib/google/apis/compute_v1/classes.rb', line 9764

def health_check
  @health_check
end

#health_check_serviceGoogle::Apis::ComputeV1::HealthCheckServiceReference

A full or valid partial URL to a health check service. For example, the following are valid URLs:



9775
9776
9777
# File 'lib/google/apis/compute_v1/classes.rb', line 9775

def health_check_service
  @health_check_service
end

#health_stateString

Health state of the network endpoint determined based on the health checks configured. Corresponds to the JSON property healthState

Returns:

  • (String)


9781
9782
9783
# File 'lib/google/apis/compute_v1/classes.rb', line 9781

def health_state
  @health_state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9788
9789
9790
9791
9792
9793
9794
# File 'lib/google/apis/compute_v1/classes.rb', line 9788

def update!(**args)
  @backend_service = args[:backend_service] if args.key?(:backend_service)
  @forwarding_rule = args[:forwarding_rule] if args.key?(:forwarding_rule)
  @health_check = args[:health_check] if args.key?(:health_check)
  @health_check_service = args[:health_check_service] if args.key?(:health_check_service)
  @health_state = args[:health_state] if args.key?(:health_state)
end