Class VpnTunnelsResource
The "vpnTunnels" collection of methods.
Inheritance
Inherited Members
Namespace: Google.Apis.Compute.v1
Assembly: Google.Apis.Compute.v1.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 |
|---|---|---|
| System.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 |
|---|---|---|
| System.String | project | Project ID for this request. |
| System.String | region | Name of the region for this request. |
| System.String | vpnTunnel | Name of the VpnTunnel resource to delete. |
Returns
| Type | Description |
|---|---|
| VpnTunnelsResource.DeleteRequest |
Get(String, String, String)
Returns the specified VpnTunnel resource. Gets a list of available VPN tunnels by making a list() request.
Declaration
public virtual VpnTunnelsResource.GetRequest Get(string project, string region, string vpnTunnel)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | project | Project ID for this request. |
| System.String | region | Name of the region for this request. |
| System.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. |
| System.String | project | Project ID for this request. |
| System.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 |
|---|---|---|
| System.String | project | Project ID for this request. |
| System.String | region | Name of the region for this request. |
Returns
| Type | Description |
|---|---|
| VpnTunnelsResource.ListRequest |