Class VpnGatewaysResource
The "vpnGateways" collection of methods.
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. To prevent failure, Google recommends that you set the
returnPartialSuccess
parameter to true
.
Declaration
public virtual VpnGatewaysResource.AggregatedListRequest AggregatedList(string project)
Parameters
Type | Name | Description |
---|---|---|
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 |
---|---|---|
string | project | Project ID for this request. |
string | region | Name of the region for this request. |
string | vpnGateway | Name of the VPN gateway to delete. |
Returns
Type | Description |
---|---|
VpnGatewaysResource.DeleteRequest |
Get(string, string, string)
Returns the specified VPN gateway.
Declaration
public virtual VpnGatewaysResource.GetRequest Get(string project, string region, string vpnGateway)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID for this request. |
string | region | Name of the region for this request. |
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 |
---|---|---|
string | project | Project ID for this request. |
string | region | Name of the region for this request. |
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. |
string | project | Project ID for this request. |
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 |
---|---|---|
string | project | Project ID for this request. |
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. |
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 |
---|---|
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. |
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 |
---|---|
VpnGatewaysResource.TestIamPermissionsRequest |