Reference documentation and code samples for the Data Loss Prevention V2 Client class UpdateContentPolicyRequest.
Request message for UpdateContentPolicy.
Generated from protobuf message google.privacy.dlp.v2.UpdateContentPolicyRequest
Namespace
Google \ Cloud \ Dlp \ V2Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ name |
string
Required. Resource name in the format: |
↳ content_policy |
ContentPolicy
Required. The content_policy with new values for the relevant fields. |
↳ update_mask |
Google\Protobuf\FieldMask
Optional. Mask to control which fields get updated. |
getName
Required. Resource name in the format:
projects/{project}/locations/{location}/contentPolicies/{content_policy}.
| Returns | |
|---|---|
| Type | Description |
string |
|
setName
Required. Resource name in the format:
projects/{project}/locations/{location}/contentPolicies/{content_policy}.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getContentPolicy
Required. The content_policy with new values for the relevant fields.
| Returns | |
|---|---|
| Type | Description |
ContentPolicy|null |
|
hasContentPolicy
clearContentPolicy
setContentPolicy
Required. The content_policy with new values for the relevant fields.
| Parameter | |
|---|---|
| Name | Description |
var |
ContentPolicy
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getUpdateMask
Optional. Mask to control which fields get updated.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\FieldMask|null |
|
hasUpdateMask
clearUpdateMask
setUpdateMask
Optional. Mask to control which fields get updated.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Protobuf\FieldMask
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
static::build
| Parameters | |
|---|---|
| Name | Description |
name |
string
Required. Resource name in the format:
|
contentPolicy |
ContentPolicy
Required. The content_policy with new values for the relevant fields. |
updateMask |
Google\Protobuf\FieldMask
Optional. Mask to control which fields get updated. |
| Returns | |
|---|---|
| Type | Description |
UpdateContentPolicyRequest |
|