class ProjectsLocationsConnections extends Resource (View source)

The "connections" collection of methods.

Typical usage is:

 $beyondcorpService = new Google\Service\BeyondCorp(...);
 $connections = $beyondcorpService->connections;

Methods

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

Creates a new Connection in a given project and location.

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

Deletes a single Connection. (connections.delete)

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

Gets details of a single Connection. (connections.get)

getIamPolicy(string $resource, 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 = [])

Lists Connections in a given project and location.

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

Updates the parameters of a single Connection. (connections.patch)

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

Resolves connections details for a given connector. An internal method called by a connector to find connections to connect to. (connections.resolve)

setIamPolicy(string $resource, GoogleIamV1SetIamPolicyRequest $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, GoogleIamV1TestIamPermissionsRequest $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

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

Creates a new Connection in a given project and location.

(connections.create)

Parameters

string $parent

Required. The resource project name of the connection location using the form: projects/{project_id}/locations/{location_id}

Connection $postBody
array $optParams

Optional parameters.

Return Value

GoogleLongrunningOperation

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

Deletes a single Connection. (connections.delete)

Parameters

string $name

Required. BeyondCorp Connector name using the form: projects/{project_id}/locations/{location_id}/connections/{connection_id}

array $optParams

Optional parameters.

Return Value

GoogleLongrunningOperation

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

Gets details of a single Connection. (connections.get)

Parameters

string $name

Required. BeyondCorp Connection name using the form: projects/{project_id}/locations/{location_id}/connections/{connection_id}

array $optParams

Optional parameters.

Return Value

Connection

GoogleIamV1Policy getIamPolicy(string $resource, 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.

array $optParams

Optional parameters.

Return Value

GoogleIamV1Policy

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

Lists Connections in a given project and location.

(connections.listProjectsLocationsConnections)

Parameters

string $parent

Required. The resource name of the connection location using the form: projects/{project_id}/locations/{location_id}

array $optParams

Optional parameters.

Return Value

ListConnectionsResponse

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

Updates the parameters of a single Connection. (connections.patch)

Parameters

string $name

Required. Unique resource name of the connection. The name is ignored when creating a connection.

Connection $postBody
array $optParams

Optional parameters.

Return Value

GoogleLongrunningOperation

ResolveConnectionsResponse resolve(string $parent, array $optParams = [])

Resolves connections details for a given connector. An internal method called by a connector to find connections to connect to. (connections.resolve)

Parameters

string $parent

Required. The resource name of the connection location using the form: projects/{project_id}/locations/{location_id}

array $optParams

Optional parameters.

Return Value

ResolveConnectionsResponse

GoogleIamV1Policy setIamPolicy(string $resource, GoogleIamV1SetIamPolicyRequest $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.

GoogleIamV1SetIamPolicyRequest $postBody
array $optParams

Optional parameters.

Return Value

GoogleIamV1Policy

GoogleIamV1TestIamPermissionsResponse testIamPermissions(string $resource, GoogleIamV1TestIamPermissionsRequest $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.

GoogleIamV1TestIamPermissionsRequest $postBody
array $optParams

Optional parameters.

Return Value

GoogleIamV1TestIamPermissionsResponse