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:v2.ts";

Allows users to manage BigQuery data policies.

class BigQueryDataPolicy {
constructor(client?: CredentialsClient, baseUrl?: string);
async projectsLocationsDataPoliciesAddGrantees(dataPolicy: string, req: AddGranteesRequest): Promise<DataPolicy>;
async projectsLocationsDataPoliciesCreate(parent: string, req: CreateDataPolicyRequest): 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 projectsLocationsDataPoliciesRemoveGrantees(dataPolicy: string, req: RemoveGranteesRequest): 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

§
projectsLocationsDataPoliciesAddGrantees(dataPolicy: string, req: AddGranteesRequest): Promise<DataPolicy>
[src]

Adds new grantees to a data policy. The new grantees will be added to the existing grantees. If the request contains a duplicate grantee, the grantee will be ignored. If the request contains a grantee that already exists, the grantee will be ignored.

@param dataPolicy

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

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

Creates a new data policy under a project with the given data_policy_id (used as the display name), 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/{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/{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

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

§
projectsLocationsDataPoliciesRemoveGrantees(dataPolicy: string, req: RemoveGranteesRequest): Promise<DataPolicy>
[src]

Removes grantees from a data policy. The grantees will be removed from the existing grantees. If the request contains a grantee that does not exist, the grantee will be ignored.

@param dataPolicy

Required. Resource name of this data policy, in the format of 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.