Reference documentation and code samples for the Compute V1 Client class RegionSetPolicyRequest.
Generated from protobuf message google.cloud.compute.v1.RegionSetPolicyRequest
Namespace
Google \ Cloud \ Compute \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ bindings |
array<Binding>
Flatten Policy to create a backwacd 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 |
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 backwacd compatible wire-format. Deprecated. Use 'policy' to specify bindings.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\RepeatedField |
|
setBindings
Flatten Policy to create a backwacd compatible wire-format. Deprecated. Use 'policy' to specify bindings.
| Parameter | |
|---|---|
| Name | Description |
var |
array<Binding>
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getEtag
Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify the etag.
| Returns | |
|---|---|
| Type | Description |
string |
|
hasEtag
clearEtag
setEtag
Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify the etag.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$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 | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
var |
Policy
|
| Returns | |
|---|---|
| Type | Description |
$this |
|