Compute V1 Client - Class BackendServiceHAPolicyLeader (1.32.0)

Reference documentation and code samples for the Compute V1 Client class BackendServiceHAPolicyLeader.

Generated from protobuf message google.cloud.compute.v1.BackendServiceHAPolicyLeader

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ backend_group string

A fully-qualified URL (starting with https://www.googleapis.com/) of the zonal Network Endpoint Group (NEG) with GCE_VM_IP endpoints that the leader is attached to. The leader's backendGroup must already be specified as a backend of this backend service. Removing a backend that is designated as the leader's backendGroup is not permitted.

↳ network_endpoint BackendServiceHAPolicyLeaderNetworkEndpoint

The network endpoint within the leader.backendGroup that is designated as the leader. This network endpoint cannot be detached from the NEG specified in the haPolicy.leader.backendGroup until the leader is updated with another network endpoint, or the leader is removed from the haPolicy.

getBackendGroup

A fully-qualified URL (starting with https://www.googleapis.com/) of the zonal Network Endpoint Group (NEG) with GCE_VM_IP endpoints that the leader is attached to. The leader's backendGroup must already be specified as a backend of this backend service. Removing a backend that is designated as the leader's backendGroup is not permitted.

Returns
Type Description
string

hasBackendGroup

clearBackendGroup

setBackendGroup

A fully-qualified URL (starting with https://www.googleapis.com/) of the zonal Network Endpoint Group (NEG) with GCE_VM_IP endpoints that the leader is attached to. The leader's backendGroup must already be specified as a backend of this backend service. Removing a backend that is designated as the leader's backendGroup is not permitted.

Parameter
Name Description
var string
Returns
Type Description
$this

getNetworkEndpoint

The network endpoint within the leader.backendGroup that is designated as the leader. This network endpoint cannot be detached from the NEG specified in the haPolicy.leader.backendGroup until the leader is updated with another network endpoint, or the leader is removed from the haPolicy.

Returns
Type Description
BackendServiceHAPolicyLeaderNetworkEndpoint|null

hasNetworkEndpoint

clearNetworkEndpoint

setNetworkEndpoint

The network endpoint within the leader.backendGroup that is designated as the leader. This network endpoint cannot be detached from the NEG specified in the haPolicy.leader.backendGroup until the leader is updated with another network endpoint, or the leader is removed from the haPolicy.

Parameter
Name Description
var BackendServiceHAPolicyLeaderNetworkEndpoint
Returns
Type Description
$this