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

BigQueryDataPolicy

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

Allows users to manage BigQuery data policies.

class BigQueryDataPolicy {
constructor(client?: CredentialsClient, baseUrl?: string);
async projectsLocationsDataPoliciesCreate(parent: string, req: DataPolicy): Promise<DataPolicy>;
async projectsLocationsDataPoliciesDelete(name: string): Promise<Empty>;
async projectsLocationsDataPoliciesGet(name: string): Promise<DataPolicy>;
async projectsLocationsDataPoliciesGetIamPolicy(resource: string, req: GetIamPolicyRequest): Promise<Policy>;
async projectsLocationsDataPoliciesList(parent: string, opts?: ProjectsLocationsDataPoliciesListOptions): Promise<ListDataPoliciesResponse>;
async projectsLocationsDataPoliciesPatch(
name: string,
): Promise<DataPolicy>;
async projectsLocationsDataPoliciesRename(name: string, req: RenameDataPolicyRequest): Promise<DataPolicy>;
async projectsLocationsDataPoliciesSetIamPolicy(resource: string, req: SetIamPolicyRequest): Promise<Policy>;
async projectsLocationsDataPoliciesTestIamPermissions(resource: string, req: TestIamPermissionsRequest): Promise<TestIamPermissionsResponse>;
}

§Constructors

§
new BigQueryDataPolicy(client?: CredentialsClient, baseUrl?: string)
[src]

§Methods

§
projectsLocationsDataPoliciesCreate(parent: string, req: DataPolicy): Promise<DataPolicy>
[src]

Creates a new data policy under a project with the given dataPolicyId (used as the display name), policy tag, and data policy type.

@param parent

Required. Resource name of the project that the data policy will belong to. The format is projects/{project_number}/locations/{location_id}.

§
projectsLocationsDataPoliciesDelete(name: string): Promise<Empty>
[src]

Deletes the data policy specified by its resource name.

@param name

Required. Resource name of the data policy to delete. Format is projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}.

§
projectsLocationsDataPoliciesGet(name: string): Promise<DataPolicy>
[src]

Gets the data policy specified by its resource name.

@param name

Required. Resource name of the requested data policy. Format is projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}.

§
projectsLocationsDataPoliciesGetIamPolicy(resource: string, req: GetIamPolicyRequest): Promise<Policy>
[src]

Gets the IAM policy for the specified data policy.

@param resource

REQUIRED: The resource for which the policy is being requested. See Resource names for the appropriate value for this field.

§
projectsLocationsDataPoliciesList(parent: string, opts?: ProjectsLocationsDataPoliciesListOptions): Promise<ListDataPoliciesResponse>
[src]

List all of the data policies in the specified parent project.

@param parent

Required. Resource name of the project for which to list data policies. Format is projects/{project_number}/locations/{location_id}.

§
projectsLocationsDataPoliciesPatch(name: string, req: DataPolicy, opts?: ProjectsLocationsDataPoliciesPatchOptions): Promise<DataPolicy>
[src]

Updates the metadata for an existing data policy. The target data policy can be specified by the resource name.

@param name

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

§
projectsLocationsDataPoliciesRename(name: string, req: RenameDataPolicyRequest): Promise<DataPolicy>
[src]

Renames the id (display name) of the specified data policy.

@param name

Required. Resource name of the data policy to rename. The format is projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}

§
projectsLocationsDataPoliciesSetIamPolicy(resource: string, req: SetIamPolicyRequest): Promise<Policy>
[src]

Sets the IAM policy for the specified data policy.

@param resource

REQUIRED: The resource for which the policy is being specified. See Resource names for the appropriate value for this field.

§
projectsLocationsDataPoliciesTestIamPermissions(resource: string, req: TestIamPermissionsRequest): Promise<TestIamPermissionsResponse>
[src]

Returns the caller's permission on the specified data policy resource.

@param resource

REQUIRED: The resource for which the policy detail is being requested. See Resource names for the appropriate value for this field.