Google Cloud Network Security V1 Client - Class Target (1.3.0)

Reference documentation and code samples for the Google Cloud Network Security V1 Client class Target.

Specifies the set of targets to which this policy should be applied to.

Generated from protobuf message google.cloud.networksecurity.v1.AuthzPolicy.Target

Namespace

Google \ Cloud \ NetworkSecurity \ V1 \ AuthzPolicy

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ load_balancing_scheme int

Optional. All gateways and forwarding rules referenced by this policy and extensions must share the same load balancing scheme. Supported values: INTERNAL_MANAGED and EXTERNAL_MANAGED. For more information, refer to Backend services overview.

↳ resources string[]

Required. A list of references to the Forwarding Rules on which this policy will be applied.

getLoadBalancingScheme

Optional. All gateways and forwarding rules referenced by this policy and extensions must share the same load balancing scheme. Supported values: INTERNAL_MANAGED and EXTERNAL_MANAGED. For more information, refer to Backend services overview.

Returns
Type Description
int Enum of type LoadBalancingScheme.

setLoadBalancingScheme

Optional. All gateways and forwarding rules referenced by this policy and extensions must share the same load balancing scheme. Supported values: INTERNAL_MANAGED and EXTERNAL_MANAGED. For more information, refer to Backend services overview.

Parameter
Name Description
var int

Enum of type LoadBalancingScheme.

Returns
Type Description
$this

getResources

Required. A list of references to the Forwarding Rules on which this policy will be applied.

Returns
Type Description
Google\Protobuf\RepeatedField<string>

setResources

Required. A list of references to the Forwarding Rules on which this policy will be applied.

Parameter
Name Description
var string[]
Returns
Type Description
$this