class ProjectsLocationsConnectors extends Resource (View source)

The "connectors" collection of methods.

Typical usage is:

 $vpcaccessService = new Google\Service\ServerlessVPCAccess(...);
 $connectors = $vpcaccessService->projects_locations_connectors;

Methods

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

Creates a Serverless VPC Access connector, returns an operation.

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

Deletes a Serverless VPC Access connector. Returns NOT_FOUND if the resource does not exist. (connectors.delete)

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

Gets a Serverless VPC Access connector. Returns NOT_FOUND if the resource does not exist. (connectors.get)

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

Lists Serverless VPC Access connectors.

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

Updates a Serverless VPC Access connector, returns an operation.

Details

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

Creates a Serverless VPC Access connector, returns an operation.

(connectors.create)

Parameters

string $parent

Required. The project ID and location in which the configuration should be created, specified in the format projects/locations.

Connector $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

Deletes a Serverless VPC Access connector. Returns NOT_FOUND if the resource does not exist. (connectors.delete)

Parameters

string $name

Required. Name of a Serverless VPC Access connector to delete.

array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

Gets a Serverless VPC Access connector. Returns NOT_FOUND if the resource does not exist. (connectors.get)

Parameters

string $name

Required. Name of a Serverless VPC Access connector to get.

array $optParams

Optional parameters.

Return Value

Connector

Exceptions

Exception

ListConnectorsResponse listProjectsLocationsConnectors(string $parent, array $optParams = [])

Lists Serverless VPC Access connectors.

(connectors.listProjectsLocationsConnectors)

Parameters

string $parent

Required. The project and location from which the routes should be listed.

array $optParams

Optional parameters.

Return Value

ListConnectorsResponse

Exceptions

Exception

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

Updates a Serverless VPC Access connector, returns an operation.

(connectors.patch)

Parameters

string $name

The resource name in the format projects/locations/connectors.

Connector $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception