class VpnTunnels extends Resource (View source)

The "vpnTunnels" collection of methods.

Typical usage is:

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

Methods

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

Retrieves an aggregated list of VPN tunnels. To prevent failure, Google recommends that you set the returnPartialSuccess parameter to true.

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

Deletes the specified VpnTunnel resource. (vpnTunnels.delete)

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

Returns the specified VpnTunnel resource. (vpnTunnels.get)

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

Creates a VpnTunnel resource in the specified project and region using the data included in the request. (vpnTunnels.insert)

listVpnTunnels(string $project, string $region, array $optParams = [])

Retrieves a list of VpnTunnel resources contained in the specified project and region. (vpnTunnels.listVpnTunnels)

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

Sets the labels on a VpnTunnel. To learn more about labels, read the Labeling Resources documentation. (vpnTunnels.setLabels)

Details

VpnTunnelAggregatedList aggregatedList(string $project, array $optParams = [])

Retrieves an aggregated list of VPN tunnels. To prevent failure, Google recommends that you set the returnPartialSuccess parameter to true.

(vpnTunnels.aggregatedList)

Parameters

string $project

Project ID for this request.

array $optParams

Optional parameters.

Return Value

VpnTunnelAggregatedList

Exceptions

Exception

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

Deletes the specified VpnTunnel resource. (vpnTunnels.delete)

Parameters

string $project

Project ID for this request.

string $region

Name of the region for this request.

string $vpnTunnel

Name of the VpnTunnel resource to delete.

array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

VpnTunnel get(string $project, string $region, string $vpnTunnel, array $optParams = [])

Returns the specified VpnTunnel resource. (vpnTunnels.get)

Parameters

string $project

Project ID for this request.

string $region

Name of the region for this request.

string $vpnTunnel

Name of the VpnTunnel resource to return.

array $optParams

Optional parameters.

Return Value

VpnTunnel

Exceptions

Exception

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

Creates a VpnTunnel resource in the specified project and region using the data included in the request. (vpnTunnels.insert)

Parameters

string $project

Project ID for this request.

string $region

Name of the region for this request.

VpnTunnel $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

VpnTunnelList listVpnTunnels(string $project, string $region, array $optParams = [])

Retrieves a list of VpnTunnel resources contained in the specified project and region. (vpnTunnels.listVpnTunnels)

Parameters

string $project

Project ID for this request.

string $region

Name of the region for this request.

array $optParams

Optional parameters.

Return Value

VpnTunnelList

Exceptions

Exception

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

Sets the labels on a VpnTunnel. To learn more about labels, read the Labeling Resources documentation. (vpnTunnels.setLabels)

Parameters

string $project

Project ID for this request.

string $region

The region for this request.

string $resource

Name or id of the resource for this request.

RegionSetLabelsRequest $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception