Compute Engine v1 API - Class Routers.RoutersBase (2.3.0)

[BindServiceMethod(typeof(Routers), "BindService")]
public abstract class RoutersBase

Reference documentation and code samples for the Compute Engine v1 API class Routers.RoutersBase.

Base class for server-side implementations of Routers

Inheritance

Object > Routers.RoutersBase

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Methods

AggregatedList(AggregatedListRoutersRequest, ServerCallContext)

public virtual Task<RouterAggregatedList> AggregatedList(AggregatedListRoutersRequest request, ServerCallContext context)

Retrieves an aggregated list of routers.

Parameters
NameDescription
requestAggregatedListRoutersRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<RouterAggregatedList>

The response to send back to the client (wrapped by a task).

Delete(DeleteRouterRequest, ServerCallContext)

public virtual Task<Operation> Delete(DeleteRouterRequest request, ServerCallContext context)

Deletes the specified Router resource.

Parameters
NameDescription
requestDeleteRouterRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Operation>

The response to send back to the client (wrapped by a task).

Get(GetRouterRequest, ServerCallContext)

public virtual Task<Router> Get(GetRouterRequest request, ServerCallContext context)

Returns the specified Router resource. Gets a list of available routers by making a list() request.

Parameters
NameDescription
requestGetRouterRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Router>

The response to send back to the client (wrapped by a task).

GetNatMappingInfo(GetNatMappingInfoRoutersRequest, ServerCallContext)

public virtual Task<VmEndpointNatMappingsList> GetNatMappingInfo(GetNatMappingInfoRoutersRequest request, ServerCallContext context)

Retrieves runtime Nat mapping information of VM endpoints.

Parameters
NameDescription
requestGetNatMappingInfoRoutersRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<VmEndpointNatMappingsList>

The response to send back to the client (wrapped by a task).

GetRouterStatus(GetRouterStatusRouterRequest, ServerCallContext)

public virtual Task<RouterStatusResponse> GetRouterStatus(GetRouterStatusRouterRequest request, ServerCallContext context)

Retrieves runtime information of the specified router.

Parameters
NameDescription
requestGetRouterStatusRouterRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<RouterStatusResponse>

The response to send back to the client (wrapped by a task).

Insert(InsertRouterRequest, ServerCallContext)

public virtual Task<Operation> Insert(InsertRouterRequest request, ServerCallContext context)

Creates a Router resource in the specified project and region using the data included in the request.

Parameters
NameDescription
requestInsertRouterRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Operation>

The response to send back to the client (wrapped by a task).

List(ListRoutersRequest, ServerCallContext)

public virtual Task<RouterList> List(ListRoutersRequest request, ServerCallContext context)

Retrieves a list of Router resources available to the specified project.

Parameters
NameDescription
requestListRoutersRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<RouterList>

The response to send back to the client (wrapped by a task).

Patch(PatchRouterRequest, ServerCallContext)

public virtual Task<Operation> Patch(PatchRouterRequest request, ServerCallContext context)

Patches the specified Router resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.

Parameters
NameDescription
requestPatchRouterRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Operation>

The response to send back to the client (wrapped by a task).

Preview(PreviewRouterRequest, ServerCallContext)

public virtual Task<RoutersPreviewResponse> Preview(PreviewRouterRequest request, ServerCallContext context)

Preview fields auto-generated during router create and update operations. Calling this method does NOT create or update the router.

Parameters
NameDescription
requestPreviewRouterRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<RoutersPreviewResponse>

The response to send back to the client (wrapped by a task).

Update(UpdateRouterRequest, ServerCallContext)

public virtual Task<Operation> Update(UpdateRouterRequest request, ServerCallContext context)

Updates the specified Router resource with the data included in the request. This method conforms to PUT semantics, which requests that the state of the target resource be created or replaced with the state defined by the representation enclosed in the request message payload.

Parameters
NameDescription
requestUpdateRouterRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Operation>

The response to send back to the client (wrapped by a task).