Network Services V1 API - Class Google::Cloud::NetworkServices::V1::ServiceLbPolicy (v2.2.0)

Reference documentation and code samples for the Network Services V1 API class Google::Cloud::NetworkServices::V1::ServiceLbPolicy.

ServiceLbPolicy holds global load balancing and traffic distribution configuration that can be applied to a BackendService.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#auto_capacity_drain

def auto_capacity_drain() -> ::Google::Cloud::NetworkServices::V1::ServiceLbPolicy::AutoCapacityDrain
Returns

#auto_capacity_drain=

def auto_capacity_drain=(value) -> ::Google::Cloud::NetworkServices::V1::ServiceLbPolicy::AutoCapacityDrain
Parameter
Returns

#create_time

def create_time() -> ::Google::Protobuf::Timestamp
Returns

#description

def description() -> ::String
Returns
  • (::String) — Optional. A free-text description of the resource. Max length 1024 characters.

#description=

def description=(value) -> ::String
Parameter
  • value (::String) — Optional. A free-text description of the resource. Max length 1024 characters.
Returns
  • (::String) — Optional. A free-text description of the resource. Max length 1024 characters.

#failover_config

def failover_config() -> ::Google::Cloud::NetworkServices::V1::ServiceLbPolicy::FailoverConfig
Returns

#failover_config=

def failover_config=(value) -> ::Google::Cloud::NetworkServices::V1::ServiceLbPolicy::FailoverConfig
Parameter
Returns

#labels

def labels() -> ::Google::Protobuf::Map{::String => ::String}
Returns
  • (::Google::Protobuf::Map{::String => ::String}) — Optional. Set of label tags associated with the ServiceLbPolicy resource.

#labels=

def labels=(value) -> ::Google::Protobuf::Map{::String => ::String}
Parameter
  • value (::Google::Protobuf::Map{::String => ::String}) — Optional. Set of label tags associated with the ServiceLbPolicy resource.
Returns
  • (::Google::Protobuf::Map{::String => ::String}) — Optional. Set of label tags associated with the ServiceLbPolicy resource.

#load_balancing_algorithm

def load_balancing_algorithm() -> ::Google::Cloud::NetworkServices::V1::ServiceLbPolicy::LoadBalancingAlgorithm
Returns

#load_balancing_algorithm=

def load_balancing_algorithm=(value) -> ::Google::Cloud::NetworkServices::V1::ServiceLbPolicy::LoadBalancingAlgorithm
Parameter
Returns

#name

def name() -> ::String
Returns
  • (::String) — Identifier. Name of the ServiceLbPolicy resource. It matches pattern projects/{project}/locations/{location}/serviceLbPolicies/{service_lb_policy_name}.

#name=

def name=(value) -> ::String
Parameter
  • value (::String) — Identifier. Name of the ServiceLbPolicy resource. It matches pattern projects/{project}/locations/{location}/serviceLbPolicies/{service_lb_policy_name}.
Returns
  • (::String) — Identifier. Name of the ServiceLbPolicy resource. It matches pattern projects/{project}/locations/{location}/serviceLbPolicies/{service_lb_policy_name}.

#update_time

def update_time() -> ::Google::Protobuf::Timestamp
Returns