Reference documentation and code samples for the Google Cloud Recaptcha Enterprise V1 Client class UpdatePolicyRequest.
The request message to update a policy.
Generated from protobuf message google.cloud.recaptchaenterprise.v1.UpdatePolicyRequest
Namespace
Google \ Cloud \ RecaptchaEnterprise \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ policy |
Policy
Required. The Policy's name is used to identify the policy to update, in the format |
↳ update_mask |
Google\Protobuf\FieldMask
Optional. The mask to control which fields of the policy get updated. If the mask is not present, all fields are updated. |
getPolicy
Required. The Policy's name is used to identify the policy to update, in
the format projects/{project}/keys/{key}/policy.
| Returns | |
|---|---|
| Type | Description |
Policy|null |
|
hasPolicy
clearPolicy
setPolicy
Required. The Policy's name is used to identify the policy to update, in
the format projects/{project}/keys/{key}/policy.
| Parameter | |
|---|---|
| Name | Description |
var |
Policy
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getUpdateMask
Optional. The mask to control which fields of the policy get updated. If the mask is not present, all fields are updated.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\FieldMask|null |
|
hasUpdateMask
clearUpdateMask
setUpdateMask
Optional. The mask to control which fields of the policy get updated. If the mask is not present, all fields are updated.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Protobuf\FieldMask
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
static::build
| Parameters | |
|---|---|
| Name | Description |
policy |
Policy
Required. The Policy's name is used to identify the policy to update, in
the format |
updateMask |
Google\Protobuf\FieldMask
Optional. The mask to control which fields of the policy get updated. If the mask is not present, all fields are updated. |
| Returns | |
|---|---|
| Type | Description |
UpdatePolicyRequest |
|