Method: projects.locations.dataPolicies.patch

Updates the metadata for the specified data policy.

HTTP request

PATCH https://bigquerydatapolicy.googleapis.com/v1beta1/{dataPolicy.name=projects/*/locations/*/dataPolicies/*}

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
dataPolicy.name

string

Output only. Resource name of this data policy, in the format of projects/{project_number}/locations/{locationId}/dataPolicies/{dataPolicyId}.

Query parameters

Parameters
updateMask

string (FieldMask format)

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.

This is a comma-separated list of fully qualified names of fields. Example: "user.displayName,photo".

Request body

The request body contains an instance of DataPolicy.

Response body

If successful, the response body contains an instance of DataPolicy.

Authorization Scopes

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/bigquery
  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.

IAM Permissions

Requires the following IAM permission on the name resource:

  • bigquery.dataPolicies.update

For more information, see the IAM documentation.