Class VpnGatewaysResource
The "vpnGateways" collection of methods.
Inheritance
Inherited Members
Namespace: Google.Apis.Compute.v1
Assembly: Google.Apis.Compute.v1.dll
Syntax
public class VpnGatewaysResource
Constructors
VpnGatewaysResource(IClientService)
Constructs a new resource.
Declaration
public VpnGatewaysResource(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Methods
AggregatedList(String)
Retrieves an aggregated list of VPN gateways.
Declaration
public virtual VpnGatewaysResource.AggregatedListRequest AggregatedList(string project)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | project | Project ID for this request. |
Returns
| Type | Description |
|---|---|
| VpnGatewaysResource.AggregatedListRequest |
Delete(String, String, String)
Deletes the specified VPN gateway.
Declaration
public virtual VpnGatewaysResource.DeleteRequest Delete(string project, string region, string vpnGateway)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | project | Project ID for this request. |
| System.String | region | Name of the region for this request. |
| System.String | vpnGateway | Name of the VPN gateway to delete. |
Returns
| Type | Description |
|---|---|
| VpnGatewaysResource.DeleteRequest |
Get(String, String, String)
Returns the specified VPN gateway. Gets a list of available VPN gateways by making a list() request.
Declaration
public virtual VpnGatewaysResource.GetRequest Get(string project, string region, string vpnGateway)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | project | Project ID for this request. |
| System.String | region | Name of the region for this request. |
| System.String | vpnGateway | Name of the VPN gateway to return. |
Returns
| Type | Description |
|---|---|
| VpnGatewaysResource.GetRequest |
GetStatus(String, String, String)
Returns the status for the specified VPN gateway.
Declaration
public virtual VpnGatewaysResource.GetStatusRequest GetStatus(string project, string region, string vpnGateway)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | project | Project ID for this request. |
| System.String | region | Name of the region for this request. |
| System.String | vpnGateway | Name of the VPN gateway to return. |
Returns
| Type | Description |
|---|---|
| VpnGatewaysResource.GetStatusRequest |
Insert(VpnGateway, String, String)
Creates a VPN gateway in the specified project and region using the data included in the request.
Declaration
public virtual VpnGatewaysResource.InsertRequest Insert(VpnGateway body, string project, string region)
Parameters
| Type | Name | Description |
|---|---|---|
| VpnGateway | 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 |
|---|---|
| VpnGatewaysResource.InsertRequest |
List(String, String)
Retrieves a list of VPN gateways available to the specified project and region.
Declaration
public virtual VpnGatewaysResource.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 |
|---|---|
| VpnGatewaysResource.ListRequest |
SetLabels(RegionSetLabelsRequest, String, String, String)
Sets the labels on a VpnGateway. To learn more about labels, read the Labeling Resources documentation.
Declaration
public virtual VpnGatewaysResource.SetLabelsRequest SetLabels(RegionSetLabelsRequest body, string project, string region, string resource)
Parameters
| Type | Name | Description |
|---|---|---|
| RegionSetLabelsRequest | body | The body of the request. |
| System.String | project | Project ID for this request. |
| System.String | region | The region for this request. |
| System.String | resource | Name or id of the resource for this request. |
Returns
| Type | Description |
|---|---|
| VpnGatewaysResource.SetLabelsRequest |
TestIamPermissions(TestPermissionsRequest, String, String, String)
Returns permissions that a caller has on the specified resource.
Declaration
public virtual VpnGatewaysResource.TestIamPermissionsRequest TestIamPermissions(TestPermissionsRequest body, string project, string region, string resource)
Parameters
| Type | Name | Description |
|---|---|---|
| TestPermissionsRequest | body | The body of the request. |
| System.String | project | Project ID for this request. |
| System.String | region | The name of the region for this request. |
| System.String | resource | Name or id of the resource for this request. |
Returns
| Type | Description |
|---|---|
| VpnGatewaysResource.TestIamPermissionsRequest |