class ProjectsLocationsServiceConnectionTokens extends Resource (View source)

The "serviceConnectionTokens" collection of methods.

Typical usage is:

 $networkconnectivityService = new Google\Service\Networkconnectivity(...);
 $serviceConnectionTokens = $networkconnectivityService->projects_locations_serviceConnectionTokens;

Methods

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

Creates a new ServiceConnectionToken in a given project and location.

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

Deletes a single ServiceConnectionToken. (serviceConnectionTokens.delete)

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

Gets details of a single ServiceConnectionToken.

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

Lists ServiceConnectionTokens in a given project and location.

Details

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

Creates a new ServiceConnectionToken in a given project and location.

(serviceConnectionTokens.create)

Parameters

string $parent

Required. The parent resource's name of the ServiceConnectionToken. ex. projects/123/locations/us-east1

ServiceConnectionToken $postBody
array $optParams

Optional parameters.

Return Value

GoogleLongrunningOperation

Exceptions

Exception

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

Deletes a single ServiceConnectionToken. (serviceConnectionTokens.delete)

Parameters

string $name

Required. The name of the ServiceConnectionToken to delete.

array $optParams

Optional parameters.

Return Value

GoogleLongrunningOperation

Exceptions

Exception

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

Gets details of a single ServiceConnectionToken.

(serviceConnectionTokens.get)

Parameters

string $name

Required. Name of the ServiceConnectionToken to get.

array $optParams

Optional parameters.

Return Value

ServiceConnectionToken

Exceptions

Exception

ListServiceConnectionTokensResponse listProjectsLocationsServiceConnectionTokens(string $parent, array $optParams = [])

Lists ServiceConnectionTokens in a given project and location.

(serviceConnectionTokens.listProjectsLocationsServiceConnectionTokens)

Parameters

string $parent

Required. The parent resource's name. ex. projects/123/locations/us-east1

array $optParams

Optional parameters.

Return Value

ListServiceConnectionTokensResponse

Exceptions

Exception