Reference documentation and code samples for the Google Cloud Network Services V1 Client class ServiceLbPolicy.
ServiceLbPolicy holds global load balancing and traffic distribution configuration that can be applied to a BackendService.
Generated from protobuf message google.cloud.networkservices.v1.ServiceLbPolicy
Namespace
Google \ Cloud \ NetworkServices \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
Identifier. Name of the ServiceLbPolicy resource. It matches pattern projects/{project}/locations/{location}/serviceLbPolicies/{service_lb_policy_name}
.
↳ create_time
↳ update_time
↳ labels
array| Google\Protobuf\Internal\MapField
Optional. Set of label tags associated with the ServiceLbPolicy resource.
↳ description
string
Optional. A free-text description of the resource. Max length 1024 characters.
↳ load_balancing_algorithm
int
Optional. The type of load balancing algorithm to be used. The default behavior is WATERFALL_BY_REGION.
↳ auto_capacity_drain
ServiceLbPolicy\AutoCapacityDrain
Optional. Configuration to automatically move traffic away for unhealthy IG/NEG for the associated Backend Service.
↳ failover_config
↳ isolation_config
ServiceLbPolicy\IsolationConfig
Optional. Configuration to provide isolation support for the associated Backend Service.
getName
Identifier. Name of the ServiceLbPolicy resource. It matches pattern projects/{project}/locations/{location}/serviceLbPolicies/{service_lb_policy_name}
.
string
setName
Identifier. Name of the ServiceLbPolicy resource. It matches pattern projects/{project}/locations/{location}/serviceLbPolicies/{service_lb_policy_name}
.
var
string
$this
getCreateTime
Output only. The timestamp when this resource was created.
hasCreateTime
clearCreateTime
setCreateTime
Output only. The timestamp when this resource was created.
$this
getUpdateTime
Output only. The timestamp when this resource was last updated.
hasUpdateTime
clearUpdateTime
setUpdateTime
Output only. The timestamp when this resource was last updated.
$this
getLabels
Optional. Set of label tags associated with the ServiceLbPolicy resource.
setLabels
Optional. Set of label tags associated with the ServiceLbPolicy resource.
$this
getDescription
Optional. A free-text description of the resource. Max length 1024 characters.
string
setDescription
Optional. A free-text description of the resource. Max length 1024 characters.
var
string
$this
getLoadBalancingAlgorithm
Optional. The type of load balancing algorithm to be used. The default behavior is WATERFALL_BY_REGION.
int
setLoadBalancingAlgorithm
Optional. The type of load balancing algorithm to be used. The default behavior is WATERFALL_BY_REGION.
var
int
$this
getAutoCapacityDrain
Optional. Configuration to automatically move traffic away for unhealthy IG/NEG for the associated Backend Service.
hasAutoCapacityDrain
clearAutoCapacityDrain
setAutoCapacityDrain
Optional. Configuration to automatically move traffic away for unhealthy IG/NEG for the associated Backend Service.
$this
getFailoverConfig
Optional. Configuration related to health based failover.
hasFailoverConfig
clearFailoverConfig
setFailoverConfig
Optional. Configuration related to health based failover.
$this
getIsolationConfig
Optional. Configuration to provide isolation support for the associated Backend Service.
hasIsolationConfig
clearIsolationConfig
setIsolationConfig
Optional. Configuration to provide isolation support for the associated Backend Service.
$this