VpnTunnels
class VpnTunnels extends Resource (View source)
The "vpnTunnels" collection of methods.
Typical usage is:
$computeService = new Google\Service\Compute(...);
$vpnTunnels = $computeService->vpnTunnels; Methods
Retrieves an aggregated list of VPN tunnels. To prevent failure, Google
recommends that you set the returnPartialSuccess parameter to true.
Deletes the specified VpnTunnel resource. (vpnTunnels.delete)
Returns the specified VpnTunnel resource. (vpnTunnels.get)
Retrieves a list of VpnTunnel resources contained in the specified project and region. (vpnTunnels.listVpnTunnels)
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)
Operation
delete(string $project, string $region, string $vpnTunnel, array $optParams = [])
Deletes the specified VpnTunnel resource. (vpnTunnels.delete)
VpnTunnel
get(string $project, string $region, string $vpnTunnel, array $optParams = [])
Returns the specified VpnTunnel resource. (vpnTunnels.get)
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)
VpnTunnelList
listVpnTunnels(string $project, string $region, array $optParams = [])
Retrieves a list of VpnTunnel resources contained in the specified project and region. (vpnTunnels.listVpnTunnels)
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)