Compute Engine v1 API - Class VpnGateways.VpnGatewaysBase (2.16.0)

[BindServiceMethod(typeof(VpnGateways), "BindService")]
public abstract class VpnGateways.VpnGatewaysBase

Reference documentation and code samples for the Compute Engine v1 API class VpnGateways.VpnGatewaysBase.

Base class for server-side implementations of VpnGateways

Inheritance

object > VpnGateways.VpnGatewaysBase

Namespace

Google.Cloud.Compute.V1

Assembly

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 AggregatedListVpnGatewaysRequest

The request received from the client.

context ServerCallContext

The 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 DeleteVpnGatewayRequest

The request received from the client.

context ServerCallContext

The 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 GetVpnGatewayRequest

The request received from the client.

context ServerCallContext

The 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 GetStatusVpnGatewayRequest

The request received from the client.

context ServerCallContext

The 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 InsertVpnGatewayRequest

The request received from the client.

context ServerCallContext

The 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 ListVpnGatewaysRequest

The request received from the client.

context ServerCallContext

The 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 SetLabelsVpnGatewayRequest

The request received from the client.

context ServerCallContext

The 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 TestIamPermissionsVpnGatewayRequest

The request received from the client.

context ServerCallContext

The 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).