[BindServiceMethod(typeof(VpnGateways), "BindService")]
public abstract class VpnGateways.VpnGatewaysBaseReference documentation and code samples for the Compute Engine v1 API class VpnGateways.VpnGatewaysBase.
Base class for server-side implementations of VpnGateways
Namespace
Google.Cloud.Compute.V1Assembly
Google.Cloud.Compute.V1.dll
Methods
AggregatedList(AggregatedListVpnGatewaysRequest, ServerCallContext)
public virtual Task<VpnGatewayAggregatedList> AggregatedList(AggregatedListVpnGatewaysRequest request, ServerCallContext context)Retrieves an aggregated list of VPN gateways. To prevent failure, Google recommends that you set the returnPartialSuccess parameter to true.
| Parameters | |
|---|---|
| Name | Description |
request |
AggregatedListVpnGatewaysRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskVpnGatewayAggregatedList |
The response to send back to the client (wrapped by a task). |
Delete(DeleteVpnGatewayRequest, ServerCallContext)
public virtual Task<Operation> Delete(DeleteVpnGatewayRequest request, ServerCallContext context)Deletes the specified VPN gateway.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteVpnGatewayRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskOperation |
The response to send back to the client (wrapped by a task). |
Get(GetVpnGatewayRequest, ServerCallContext)
public virtual Task<VpnGateway> Get(GetVpnGatewayRequest request, ServerCallContext context)Returns the specified VPN gateway.
| Parameters | |
|---|---|
| Name | Description |
request |
GetVpnGatewayRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskVpnGateway |
The response to send back to the client (wrapped by a task). |
GetStatus(GetStatusVpnGatewayRequest, ServerCallContext)
public virtual Task<VpnGatewaysGetStatusResponse> GetStatus(GetStatusVpnGatewayRequest request, ServerCallContext context)Returns the status for the specified VPN gateway.
| Parameters | |
|---|---|
| Name | Description |
request |
GetStatusVpnGatewayRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskVpnGatewaysGetStatusResponse |
The response to send back to the client (wrapped by a task). |
Insert(InsertVpnGatewayRequest, ServerCallContext)
public virtual Task<Operation> Insert(InsertVpnGatewayRequest request, ServerCallContext context)Creates a VPN gateway in the specified project and region using the data included in the request.
| Parameters | |
|---|---|
| Name | Description |
request |
InsertVpnGatewayRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskOperation |
The response to send back to the client (wrapped by a task). |
List(ListVpnGatewaysRequest, ServerCallContext)
public virtual Task<VpnGatewayList> List(ListVpnGatewaysRequest request, ServerCallContext context)Retrieves a list of VPN gateways available to the specified project and region.
| Parameters | |
|---|---|
| Name | Description |
request |
ListVpnGatewaysRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskVpnGatewayList |
The response to send back to the client (wrapped by a task). |
SetLabels(SetLabelsVpnGatewayRequest, ServerCallContext)
public virtual Task<Operation> SetLabels(SetLabelsVpnGatewayRequest request, ServerCallContext context)Sets the labels on a VpnGateway. To learn more about labels, read the Labeling Resources documentation.
| Parameters | |
|---|---|
| Name | Description |
request |
SetLabelsVpnGatewayRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskOperation |
The response to send back to the client (wrapped by a task). |
TestIamPermissions(TestIamPermissionsVpnGatewayRequest, ServerCallContext)
public virtual Task<TestPermissionsResponse> TestIamPermissions(TestIamPermissionsVpnGatewayRequest request, ServerCallContext context)Returns permissions that a caller has on the specified resource.
| Parameters | |
|---|---|
| Name | Description |
request |
TestIamPermissionsVpnGatewayRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskTestPermissionsResponse |
The response to send back to the client (wrapped by a task). |