class OrganizationsLocationsConnections extends Resource (View source)

The "connections" collection of methods.

Typical usage is:

 $dlpService = new Google\Service\DLP(...);
 $connections = $dlpService->organizations_locations_connections;

Methods

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

Create a Connection to an external data source. (connections.create)

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

Delete a Connection. (connections.delete)

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

Get a Connection by name. (connections.get)

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

Lists Connections in a parent. Use SearchConnections to see all connections within an organization. (connections.listOrganizationsLocationsConnections)

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

Update a Connection. (connections.patch)

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

Searches for Connections in a parent. (connections.search)

Details

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

Create a Connection to an external data source. (connections.create)

Parameters

string $parent

Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization):

  • Projects scope: projects/PROJECT_ID/locations/LOCATION_ID + Organizations scope: organizations/ORG_ID/locations/LOCATION_ID
GooglePrivacyDlpV2CreateConnectionRequest $postBody
array $optParams

Optional parameters.

Return Value

GooglePrivacyDlpV2Connection

Exceptions

Exception

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

Delete a Connection. (connections.delete)

Parameters

string $name

Required. Resource name of the Connection to be deleted, in the format: projects/{project}/locations/{location}/connections/{connection}.

array $optParams

Optional parameters.

Return Value

GoogleProtobufEmpty

Exceptions

Exception

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

Get a Connection by name. (connections.get)

Parameters

string $name

Required. Resource name in the format: projects/{project}/locations/{location}/connections/{connection}.

array $optParams

Optional parameters.

Return Value

GooglePrivacyDlpV2Connection

Exceptions

Exception

GooglePrivacyDlpV2ListConnectionsResponse listOrganizationsLocationsConnections(string $parent, array $optParams = [])

Lists Connections in a parent. Use SearchConnections to see all connections within an organization. (connections.listOrganizationsLocationsConnections)

Parameters

string $parent

Required. Resource name of the organization or project, for example, organizations/433245324/locations/europe or projects/project- id/locations/asia.

array $optParams

Optional parameters.

Return Value

GooglePrivacyDlpV2ListConnectionsResponse

Exceptions

Exception

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

Update a Connection. (connections.patch)

Parameters

string $name

Required. Resource name in the format: projects/{project}/locations/{location}/connections/{connection}.

GooglePrivacyDlpV2UpdateConnectionRequest $postBody
array $optParams

Optional parameters.

Return Value

GooglePrivacyDlpV2Connection

Exceptions

Exception

Searches for Connections in a parent. (connections.search)

Parameters

string $parent

Required. Resource name of the organization or project with a wildcard location, for example, organizations/433245324/locations/- or projects/project-id/locations/-.

array $optParams

Optional parameters.

Return Value

GooglePrivacyDlpV2SearchConnectionsResponse

Exceptions

Exception