Google Cloud BigQuery Data Policies V1 Client - Class UpdateDataPolicyRequest (0.5.5)

Reference documentation and code samples for the Google Cloud BigQuery Data Policies V1 Client class UpdateDataPolicyRequest.

Response message for the UpdateDataPolicy method.

Generated from protobuf message google.cloud.bigquery.datapolicies.v1.UpdateDataPolicyRequest

Namespace

Google \ Cloud \ BigQuery \ DataPolicies \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ data_policy Google\Cloud\BigQuery\DataPolicies\V1\DataPolicy

Required. Update the data policy's metadata. The target data policy is determined by the name field. Other fields are updated to the specified values based on the field masks.

↳ update_mask Google\Protobuf\FieldMask

The update mask applies to the resource. For the FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask If not set, defaults to all of the fields that are allowed to update. Updates to the name and dataPolicyId fields are not allowed.

getDataPolicy

Required. Update the data policy's metadata.

The target data policy is determined by the name field. Other fields are updated to the specified values based on the field masks.

Returns
Type Description
Google\Cloud\BigQuery\DataPolicies\V1\DataPolicy|null

hasDataPolicy

clearDataPolicy

setDataPolicy

Required. Update the data policy's metadata.

The target data policy is determined by the name field. Other fields are updated to the specified values based on the field masks.

Parameter
Name Description
var Google\Cloud\BigQuery\DataPolicies\V1\DataPolicy
Returns
Type Description
$this

getUpdateMask

The update mask applies to the resource. For the FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask If not set, defaults to all of the fields that are allowed to update.

Updates to the name and dataPolicyId fields are not allowed.

Returns
Type Description
Google\Protobuf\FieldMask|null

hasUpdateMask

clearUpdateMask

setUpdateMask

The update mask applies to the resource. For the FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask If not set, defaults to all of the fields that are allowed to update.

Updates to the name and dataPolicyId fields are not allowed.

Parameter
Name Description
var Google\Protobuf\FieldMask
Returns
Type Description
$this

static::build

Parameters
Name Description
dataPolicy Google\Cloud\BigQuery\DataPolicies\V1\DataPolicy

Required. Update the data policy's metadata.

The target data policy is determined by the name field. Other fields are updated to the specified values based on the field masks.

updateMask Google\Protobuf\FieldMask

The update mask applies to the resource. For the FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask If not set, defaults to all of the fields that are allowed to update.

Updates to the name and dataPolicyId fields are not allowed.

Returns
Type Description
Google\Cloud\BigQuery\DataPolicies\V1\UpdateDataPolicyRequest