Show / Hide Table of Contents

Class VpnTunnelsResource

The "vpnTunnels" collection of methods.

Inheritance
object
VpnTunnelsResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Compute.beta
Assembly: Google.Apis.Compute.beta.dll
Syntax
public class VpnTunnelsResource

Constructors

VpnTunnelsResource(IClientService)

Constructs a new resource.

Declaration
public VpnTunnelsResource(IClientService service)
Parameters
Type Name Description
IClientService service

Methods

AggregatedList(string)

Retrieves an aggregated list of VPN tunnels.

Declaration
public virtual VpnTunnelsResource.AggregatedListRequest AggregatedList(string project)
Parameters
Type Name Description
string project

Project ID for this request.

Returns
Type Description
VpnTunnelsResource.AggregatedListRequest

Delete(string, string, string)

Deletes the specified VpnTunnel resource.

Declaration
public virtual VpnTunnelsResource.DeleteRequest Delete(string project, string region, string vpnTunnel)
Parameters
Type Name Description
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.

Returns
Type Description
VpnTunnelsResource.DeleteRequest

Get(string, string, string)

Returns the specified VpnTunnel resource.

Declaration
public virtual VpnTunnelsResource.GetRequest Get(string project, string region, string vpnTunnel)
Parameters
Type Name Description
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.

Returns
Type Description
VpnTunnelsResource.GetRequest

Insert(VpnTunnel, string, string)

Creates a VpnTunnel resource in the specified project and region using the data included in the request.

Declaration
public virtual VpnTunnelsResource.InsertRequest Insert(VpnTunnel body, string project, string region)
Parameters
Type Name Description
VpnTunnel body

The body of the request.

string project

Project ID for this request.

string region

Name of the region for this request.

Returns
Type Description
VpnTunnelsResource.InsertRequest

List(string, string)

Retrieves a list of VpnTunnel resources contained in the specified project and region.

Declaration
public virtual VpnTunnelsResource.ListRequest List(string project, string region)
Parameters
Type Name Description
string project

Project ID for this request.

string region

Name of the region for this request.

Returns
Type Description
VpnTunnelsResource.ListRequest

SetLabels(RegionSetLabelsRequest, string, string, string)

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

Declaration
public virtual VpnTunnelsResource.SetLabelsRequest SetLabels(RegionSetLabelsRequest body, string project, string region, string resource)
Parameters
Type Name Description
RegionSetLabelsRequest body

The body of the request.

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.

Returns
Type Description
VpnTunnelsResource.SetLabelsRequest

TestIamPermissions(TestPermissionsRequest, string, string, string)

Returns permissions that a caller has on the specified resource.

Declaration
public virtual VpnTunnelsResource.TestIamPermissionsRequest TestIamPermissions(TestPermissionsRequest body, string project, string region, string resource)
Parameters
Type Name Description
TestPermissionsRequest body

The body of the request.

string project

Project ID for this request.

string region

The name of the region for this request.

string resource

Name or id of the resource for this request.

Returns
Type Description
VpnTunnelsResource.TestIamPermissionsRequest
In This Article
Back to top Generated by DocFX