Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

DataPolicy

import type { DataPolicy } from "https://googleapis.deno.dev/v1/bigquerydatapolicy:v2.ts";

Represents the label-policy binding.

interface DataPolicy {
dataMaskingPolicy?: DataMaskingPolicy;
readonly dataPolicyId?: string;
dataPolicyType?:
| "DATA_POLICY_TYPE_UNSPECIFIED"
| "DATA_MASKING_POLICY"
| "RAW_DATA_ACCESS_POLICY"
| "COLUMN_LEVEL_SECURITY_POLICY";
etag?: string;
grantees?: string[];
name?: string;
readonly policyTag?: string;
readonly version?: "VERSION_UNSPECIFIED" | "V1" | "V2";
}

§Properties

§
dataMaskingPolicy?: DataMaskingPolicy
[src]

Optional. The data masking policy that specifies the data masking rule to use. It must be set if the data policy type is DATA_MASKING_POLICY.

§
readonly dataPolicyId?: string
[src]

Output only. User-assigned (human readable) ID of the data policy that needs to be unique within a project. Used as {data_policy_id} in part of the resource name.

§
dataPolicyType?: "DATA_POLICY_TYPE_UNSPECIFIED" | "DATA_MASKING_POLICY" | "RAW_DATA_ACCESS_POLICY" | "COLUMN_LEVEL_SECURITY_POLICY"
[src]

Required. Type of data policy.

§
etag?: string
[src]

The etag for this Data Policy. This field is used for UpdateDataPolicy calls. If Data Policy exists, this field is required and must match the server's etag. It will also be populated in the response of GetDataPolicy, CreateDataPolicy, and UpdateDataPolicy calls.

§
grantees?: string[]
[src]

Optional. The list of IAM principals that have Fine Grained Access to the underlying data goverened by this data policy. Uses the IAM V2 principal syntax Only supports principal types users, groups, serviceaccounts, cloudidentity. This field is supported in V2 Data Policy only. In case of V1 data policies (i.e. verion = 1 and policy_tag is set), this field is not populated.

§
name?: string
[src]

Identifier. Resource name of this data policy, in the format of projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}.

§
readonly policyTag?: string
[src]

Output only. Policy tag resource name, in the format of projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{policyTag_id}. policy_tag is supported only for V1 data policies.

§
readonly version?: "VERSION_UNSPECIFIED" | "V1" | "V2"
[src]

Output only. The version of the Data Policy resource.