Compute V1 Client - Class GlobalOrganizationSetPolicyRequest (1.12.1)

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

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

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ bindings array<Google\Cloud\Compute\V1\Binding>

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

↳ etag string

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

↳ policy Google\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
var array<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
var string
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
var Google\Cloud\Compute\V1\Policy
Returns
TypeDescription
$this