class ExternalVpnGateways extends Resource (View source)

The "externalVpnGateways" collection of methods.

Typical usage is:

 $computeService = new Google\Service\Compute(...);
 $externalVpnGateways = $computeService->externalVpnGateways;

Methods

delete(string $project, string $externalVpnGateway, array $optParams = [])

Deletes the specified externalVpnGateway. (externalVpnGateways.delete)

get(string $project, string $externalVpnGateway, array $optParams = [])

Returns the specified externalVpnGateway. Get a list of available externalVpnGateways by making a list() request. (externalVpnGateways.get)

insert(string $project, ExternalVpnGateway $postBody, array $optParams = [])

Creates a ExternalVpnGateway in the specified project using the data included in the request. (externalVpnGateways.insert)

listExternalVpnGateways(string $project, array $optParams = [])

Retrieves the list of ExternalVpnGateway available to the specified project.

setLabels(string $project, string $resource, GlobalSetLabelsRequest $postBody, array $optParams = [])

Sets the labels on an ExternalVpnGateway. To learn more about labels, read the Labeling Resources documentation. (externalVpnGateways.setLabels)

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

Returns permissions that a caller has on the specified resource.

Details

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

Deletes the specified externalVpnGateway. (externalVpnGateways.delete)

Parameters

string $project

Project ID for this request.

string $externalVpnGateway

Name of the externalVpnGateways to delete.

array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

ExternalVpnGateway get(string $project, string $externalVpnGateway, array $optParams = [])

Returns the specified externalVpnGateway. Get a list of available externalVpnGateways by making a list() request. (externalVpnGateways.get)

Parameters

string $project

Project ID for this request.

string $externalVpnGateway

Name of the externalVpnGateway to return.

array $optParams

Optional parameters.

Return Value

ExternalVpnGateway

Exceptions

Exception

Operation insert(string $project, ExternalVpnGateway $postBody, array $optParams = [])

Creates a ExternalVpnGateway in the specified project using the data included in the request. (externalVpnGateways.insert)

Parameters

string $project

Project ID for this request.

ExternalVpnGateway $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

ExternalVpnGatewayList listExternalVpnGateways(string $project, array $optParams = [])

Retrieves the list of ExternalVpnGateway available to the specified project.

(externalVpnGateways.listExternalVpnGateways)

Parameters

string $project

Project ID for this request.

array $optParams

Optional parameters.

Return Value

ExternalVpnGatewayList

Exceptions

Exception

Operation setLabels(string $project, string $resource, GlobalSetLabelsRequest $postBody, array $optParams = [])

Sets the labels on an ExternalVpnGateway. To learn more about labels, read the Labeling Resources documentation. (externalVpnGateways.setLabels)

Parameters

string $project

Project ID for this request.

string $resource

Name or id of the resource for this request.

GlobalSetLabelsRequest $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

TestPermissionsResponse testIamPermissions(string $project, string $resource, TestPermissionsRequest $postBody, array $optParams = [])

Returns permissions that a caller has on the specified resource.

(externalVpnGateways.testIamPermissions)

Parameters

string $project

Project ID for this request.

string $resource

Name or id of the resource for this request.

TestPermissionsRequest $postBody
array $optParams

Optional parameters.

Return Value

TestPermissionsResponse

Exceptions

Exception