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

BigQueryConnection

import { BigQueryConnection } from "https://googleapis.deno.dev/v1/bigqueryconnection:v1.ts";

Allows users to manage BigQuery connections to external data sources.

class BigQueryConnection {
constructor(client?: CredentialsClient, baseUrl?: string);
async projectsLocationsConnectionsCreate(
parent: string,
): Promise<Connection>;
async projectsLocationsConnectionsDelete(name: string): Promise<Empty>;
async projectsLocationsConnectionsGet(name: string): Promise<Connection>;
async projectsLocationsConnectionsGetIamPolicy(resource: string, req: GetIamPolicyRequest): Promise<Policy>;
async projectsLocationsConnectionsList(parent: string, opts?: ProjectsLocationsConnectionsListOptions): Promise<ListConnectionsResponse>;
async projectsLocationsConnectionsPatch(
name: string,
): Promise<Connection>;
async projectsLocationsConnectionsSetIamPolicy(resource: string, req: SetIamPolicyRequest): Promise<Policy>;
async projectsLocationsConnectionsTestIamPermissions(resource: string, req: TestIamPermissionsRequest): Promise<TestIamPermissionsResponse>;
}

§Constructors

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

§Methods

§
projectsLocationsConnectionsCreate(parent: string, req: Connection, opts?: ProjectsLocationsConnectionsCreateOptions): Promise<Connection>
[src]

Creates a new connection.

@param parent

Required. Parent resource name. Must be in the format projects/{project_id}/locations/{location_id}

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

Deletes connection and associated credential.

@param name

Required. Name of the deleted connection, for example: projects/{project_id}/locations/{location_id}/connections/{connection_id}

§
projectsLocationsConnectionsGet(name: string): Promise<Connection>
[src]

Returns specified connection.

@param name

Required. Name of the requested connection, for example: projects/{project_id}/locations/{location_id}/connections/{connection_id}

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

Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.

@param resource

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

§
projectsLocationsConnectionsList(parent: string, opts?: ProjectsLocationsConnectionsListOptions): Promise<ListConnectionsResponse>
[src]

Returns a list of connections in the given project.

@param parent

Required. Parent resource name. Must be in the form: projects/{project_id}/locations/{location_id}

§
projectsLocationsConnectionsPatch(name: string, req: Connection, opts?: ProjectsLocationsConnectionsPatchOptions): Promise<Connection>
[src]

Updates the specified connection. For security reasons, also resets credential if connection properties are in the update field mask.

@param name

Required. Name of the connection to update, for example: projects/{project_id}/locations/{location_id}/connections/{connection_id}

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

Sets the access control policy on the specified resource. Replaces any existing policy. Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.

@param resource

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

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

Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.

@param resource

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