ServiceLbPolicy(mapping=None, *, ignore_unknown_fields=False, **kwargs)ServiceLbPolicy holds global load balancing and traffic distribution configuration that can be applied to a BackendService.
Attributes |
|
|---|---|
| Name | Description |
name |
str
Identifier. Name of the ServiceLbPolicy resource. It matches pattern projects/{project}/locations/{location}/serviceLbPolicies/{service_lb_policy_name}.
|
create_time |
google.protobuf.timestamp_pb2.Timestamp
Output only. The timestamp when this resource was created. |
update_time |
google.protobuf.timestamp_pb2.Timestamp
Output only. The timestamp when this resource was last updated. |
labels |
MutableMapping[str, str]
Optional. Set of label tags associated with the ServiceLbPolicy resource. |
description |
str
Optional. A free-text description of the resource. Max length 1024 characters. |
load_balancing_algorithm |
google.cloud.network_services_v1.types.ServiceLbPolicy.LoadBalancingAlgorithm
Optional. The type of load balancing algorithm to be used. The default behavior is WATERFALL_BY_REGION. |
auto_capacity_drain |
google.cloud.network_services_v1.types.ServiceLbPolicy.AutoCapacityDrain
Optional. Configuration to automatically move traffic away for unhealthy IG/NEG for the associated Backend Service. |
failover_config |
google.cloud.network_services_v1.types.ServiceLbPolicy.FailoverConfig
Optional. Configuration related to health based failover. |
isolation_config |
google.cloud.network_services_v1.types.ServiceLbPolicy.IsolationConfig
Optional. Configuration to provide isolation support for the associated Backend Service. |
Classes
AutoCapacityDrain
AutoCapacityDrain(mapping=None, *, ignore_unknown_fields=False, **kwargs)Option to specify if an unhealthy IG/NEG should be considered for global load balancing and traffic routing.
FailoverConfig
FailoverConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)Option to specify health based failover behavior. This is not related to Network load balancer FailoverPolicy.
IsolationConfig
IsolationConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)Configuration to provide isolation support for the associated Backend Service.
IsolationGranularity
IsolationGranularity(value)The granularity of this isolation restriction.
IsolationMode
IsolationMode(value)The mode of this isolation restriction, defining whether clients in a given region are allowed to reach out to another region.
LabelsEntry
LabelsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)The abstract base class for a message.
| Parameters | |
|---|---|
| Name | Description |
kwargs |
dict
Keys and values corresponding to the fields of the message. |
mapping |
Union[dict,
A dictionary or message to be used to determine the values for this message. |
ignore_unknown_fields |
Optional(bool)
If True, do not raise errors for unknown fields. Only applied if |
LoadBalancingAlgorithm
LoadBalancingAlgorithm(value)The global load balancing algorithm to be used.