Compute V1 Client - Class GlobalSetPolicyRequest (1.12.1)

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

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

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ bindingsarray<Google\Cloud\Compute\V1\Binding>

Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify bindings.

↳ etagstring

Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify the etag.

↳ policyGoogle\Cloud\Compute\V1\Policy

REQUIRED: The complete policy to be applied to the 'resource'. The size of the policy is limited to a few 10s of KB. An empty policy is in general a valid policy but certain services (like Projects) might reject them.

getBindings

Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify bindings.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setBindings

Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify bindings.

Parameter
NameDescription
vararray<Google\Cloud\Compute\V1\Binding>
Returns
TypeDescription
$this

getEtag

Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify the etag.

Returns
TypeDescription
string

hasEtag

clearEtag

setEtag

Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify the etag.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getPolicy

REQUIRED: The complete policy to be applied to the 'resource'. The size of the policy is limited to a few 10s of KB. An empty policy is in general a valid policy but certain services (like Projects) might reject them.

Returns
TypeDescription
Google\Cloud\Compute\V1\Policy|null

hasPolicy

clearPolicy

setPolicy

REQUIRED: The complete policy to be applied to the 'resource'. The size of the policy is limited to a few 10s of KB. An empty policy is in general a valid policy but certain services (like Projects) might reject them.

Parameter
NameDescription
varGoogle\Cloud\Compute\V1\Policy
Returns
TypeDescription
$this