Reference documentation and code samples for the Google Cloud Org Policy V2 Client class UpdatePolicyRequest.
The request sent to the [UpdatePolicyRequest] [google.cloud.orgpolicy.v2.OrgPolicy.UpdatePolicy] method.
Generated from protobuf message google.cloud.orgpolicy.v2.UpdatePolicyRequest
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ policy |
Google\Cloud\OrgPolicy\V2\Policy
Required. |
↳ update_mask |
Google\Protobuf\FieldMask
Field mask used to specify the fields to be overwritten in the policy by the set. The fields specified in the update_mask are relative to the policy, not the full request. |
getPolicy
Required. Policy
to update.
Returns | |
---|---|
Type | Description |
Google\Cloud\OrgPolicy\V2\Policy|null |
hasPolicy
clearPolicy
setPolicy
Required. Policy
to update.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\OrgPolicy\V2\Policy
|
Returns | |
---|---|
Type | Description |
$this |
getUpdateMask
Field mask used to specify the fields to be overwritten in the policy by the set. The fields specified in the update_mask are relative to the policy, not the full request.
Returns | |
---|---|
Type | Description |
Google\Protobuf\FieldMask|null |
hasUpdateMask
clearUpdateMask
setUpdateMask
Field mask used to specify the fields to be overwritten in the policy by the set. The fields specified in the update_mask are relative to the policy, not the full request.
Parameter | |
---|---|
Name | Description |
var |
Google\Protobuf\FieldMask
|
Returns | |
---|---|
Type | Description |
$this |