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

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
NameDescription
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
TypeDescription
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
NameDescription
var Google\Cloud\BigQuery\DataPolicies\V1\DataPolicy
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var Google\Protobuf\FieldMask
Returns
TypeDescription
$this

static::build

Parameters
NameDescription
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
TypeDescription
Google\Cloud\BigQuery\DataPolicies\V1\UpdateDataPolicyRequest