class ProjectsLocationsConnections extends Resource (View source)

The "connections" collection of methods.

Typical usage is:

 $bigqueryconnectionService = new Google\Service\BigQueryConnectionService(...);
 $connections = $bigqueryconnectionService->projects_locations_connections;

Methods

create(string $parent, Connection $postBody, array $optParams = [])

Creates a new connection. (connections.create)

delete(string $name, array $optParams = [])

Deletes connection and associated credential. (connections.delete)

get(string $name, array $optParams = [])

Returns specified connection. (connections.get)

getIamPolicy(string $resource, GetIamPolicyRequest $postBody, array $optParams = [])

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

listProjectsLocationsConnections(string $parent, array $optParams = [])

Returns a list of connections in the given project.

patch(string $name, Connection $postBody, array $optParams = [])

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

setIamPolicy(string $resource, SetIamPolicyRequest $postBody, array $optParams = [])

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

testIamPermissions(string $resource, TestIamPermissionsRequest $postBody, array $optParams = [])

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.

Details

Connection create(string $parent, Connection $postBody, array $optParams = [])

Creates a new connection. (connections.create)

Parameters

string $parent

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

Connection $postBody
array $optParams

Optional parameters.

Return Value

Connection

Exceptions

Exception

BigqueryconnectionEmpty delete(string $name, array $optParams = [])

Deletes connection and associated credential. (connections.delete)

Parameters

string $name

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

array $optParams

Optional parameters.

Return Value

BigqueryconnectionEmpty

Exceptions

Exception

Connection get(string $name, array $optParams = [])

Returns specified connection. (connections.get)

Parameters

string $name

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

array $optParams

Optional parameters.

Return Value

Connection

Exceptions

Exception

Policy getIamPolicy(string $resource, GetIamPolicyRequest $postBody, array $optParams = [])

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

Parameters

string $resource

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

GetIamPolicyRequest $postBody
array $optParams

Optional parameters.

Return Value

Policy

Exceptions

Exception

ListConnectionsResponse listProjectsLocationsConnections(string $parent, array $optParams = [])

Returns a list of connections in the given project.

(connections.listProjectsLocationsConnections)

Parameters

string $parent

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

array $optParams

Optional parameters.

Return Value

ListConnectionsResponse

Exceptions

Exception

Connection patch(string $name, Connection $postBody, array $optParams = [])

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

(connections.patch)

Parameters

string $name

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

Connection $postBody
array $optParams

Optional parameters.

Return Value

Connection

Exceptions

Exception

Policy setIamPolicy(string $resource, SetIamPolicyRequest $postBody, array $optParams = [])

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

Parameters

string $resource

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

SetIamPolicyRequest $postBody
array $optParams

Optional parameters.

Return Value

Policy

Exceptions

Exception

TestIamPermissionsResponse testIamPermissions(string $resource, TestIamPermissionsRequest $postBody, array $optParams = [])

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. (connections.testIamPermissions)

Parameters

string $resource

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

TestIamPermissionsRequest $postBody
array $optParams

Optional parameters.

Return Value

TestIamPermissionsResponse

Exceptions

Exception