Class TargetVpnGatewaysResource
The "targetVpnGateways" collection of methods.
Inherited Members
Namespace: Google.Apis.Compute.beta
Assembly: Google.Apis.Compute.beta.dll
Syntax
public class TargetVpnGatewaysResource
Constructors
TargetVpnGatewaysResource(IClientService)
Constructs a new resource.
Declaration
public TargetVpnGatewaysResource(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Methods
AggregatedList(string)
Retrieves an aggregated list of target VPN gateways. To prevent failure, Google recommends that you set the
returnPartialSuccess parameter to true.
Declaration
public virtual TargetVpnGatewaysResource.AggregatedListRequest AggregatedList(string project)
Parameters
| Type | Name | Description |
|---|---|---|
| string | project | Project ID for this request. |
Returns
| Type | Description |
|---|---|
| TargetVpnGatewaysResource.AggregatedListRequest |
Delete(string, string, string)
Deletes the specified target VPN gateway.
Declaration
public virtual TargetVpnGatewaysResource.DeleteRequest Delete(string project, string region, string targetVpnGateway)
Parameters
| Type | Name | Description |
|---|---|---|
| string | project | Project ID for this request. |
| string | region | Name of the region for this request. |
| string | targetVpnGateway | Name of the target VPN gateway to delete. |
Returns
| Type | Description |
|---|---|
| TargetVpnGatewaysResource.DeleteRequest |
Get(string, string, string)
Returns the specified target VPN gateway.
Declaration
public virtual TargetVpnGatewaysResource.GetRequest Get(string project, string region, string targetVpnGateway)
Parameters
| Type | Name | Description |
|---|---|---|
| string | project | Project ID for this request. |
| string | region | Name of the region for this request. |
| string | targetVpnGateway | Name of the target VPN gateway to return. |
Returns
| Type | Description |
|---|---|
| TargetVpnGatewaysResource.GetRequest |
Insert(TargetVpnGateway, string, string)
Creates a target VPN gateway in the specified project and region using the data included in the request.
Declaration
public virtual TargetVpnGatewaysResource.InsertRequest Insert(TargetVpnGateway body, string project, string region)
Parameters
| Type | Name | Description |
|---|---|---|
| TargetVpnGateway | 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 |
|---|---|
| TargetVpnGatewaysResource.InsertRequest |
List(string, string)
Retrieves a list of target VPN gateways available to the specified project and region.
Declaration
public virtual TargetVpnGatewaysResource.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 |
|---|---|
| TargetVpnGatewaysResource.ListRequest |
SetLabels(RegionSetLabelsRequest, string, string, string)
Sets the labels on a TargetVpnGateway. To learn more about labels, read the Labeling Resources documentation.
Declaration
public virtual TargetVpnGatewaysResource.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 |
|---|---|
| TargetVpnGatewaysResource.SetLabelsRequest |
TestIamPermissions(TestPermissionsRequest, string, string, string)
Returns permissions that a caller has on the specified resource.
Declaration
public virtual TargetVpnGatewaysResource.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 |
|---|---|
| TargetVpnGatewaysResource.TestIamPermissionsRequest |