Class VpnTunnelsResource
The "vpnTunnels" collection of methods.
Inherited Members
Namespace: Google.Apis.Compute.alpha
Assembly: Google.Apis.Compute.alpha.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. To prevent failure, Google recommends that you set the
returnPartialSuccess
parameter to true
.
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 |