Network Connectivity v1 API - Class HubService.HubServiceBase (2.5.0)

[BindServiceMethod(typeof(HubService), "BindService")]
public abstract class HubService.HubServiceBase

Reference documentation and code samples for the Network Connectivity v1 API class HubService.HubServiceBase.

Base class for server-side implementations of HubService

Inheritance

object > HubService.HubServiceBase

Namespace

Google.Cloud.NetworkConnectivity.V1

Assembly

Google.Cloud.NetworkConnectivity.V1.dll

Methods

AcceptHubSpoke(AcceptHubSpokeRequest, ServerCallContext)

public virtual Task<Operation> AcceptHubSpoke(AcceptHubSpokeRequest request, ServerCallContext context)

Accepts a proposal to attach a Network Connectivity Center spoke to a hub.

Parameters
NameDescription
requestAcceptHubSpokeRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
TaskOperation

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

CreateHub(CreateHubRequest, ServerCallContext)

public virtual Task<Operation> CreateHub(CreateHubRequest request, ServerCallContext context)

Creates a new Network Connectivity Center hub in the specified project.

Parameters
NameDescription
requestCreateHubRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
TaskOperation

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

CreateSpoke(CreateSpokeRequest, ServerCallContext)

public virtual Task<Operation> CreateSpoke(CreateSpokeRequest request, ServerCallContext context)

Creates a Network Connectivity Center spoke.

Parameters
NameDescription
requestCreateSpokeRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
TaskOperation

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

DeleteHub(DeleteHubRequest, ServerCallContext)

public virtual Task<Operation> DeleteHub(DeleteHubRequest request, ServerCallContext context)

Deletes a Network Connectivity Center hub.

Parameters
NameDescription
requestDeleteHubRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
TaskOperation

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

DeleteSpoke(DeleteSpokeRequest, ServerCallContext)

public virtual Task<Operation> DeleteSpoke(DeleteSpokeRequest request, ServerCallContext context)

Deletes a Network Connectivity Center spoke.

Parameters
NameDescription
requestDeleteSpokeRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
TaskOperation

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

GetGroup(GetGroupRequest, ServerCallContext)

public virtual Task<Group> GetGroup(GetGroupRequest request, ServerCallContext context)

Gets details about a Network Connectivity Center group.

Parameters
NameDescription
requestGetGroupRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
TaskGroup

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

GetHub(GetHubRequest, ServerCallContext)

public virtual Task<Hub> GetHub(GetHubRequest request, ServerCallContext context)

Gets details about a Network Connectivity Center hub.

Parameters
NameDescription
requestGetHubRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
TaskHub

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

GetRoute(GetRouteRequest, ServerCallContext)

public virtual Task<Route> GetRoute(GetRouteRequest request, ServerCallContext context)

Gets details about the specified route.

Parameters
NameDescription
requestGetRouteRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
TaskRoute

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

GetRouteTable(GetRouteTableRequest, ServerCallContext)

public virtual Task<RouteTable> GetRouteTable(GetRouteTableRequest request, ServerCallContext context)

Gets details about a Network Connectivity Center route table.

Parameters
NameDescription
requestGetRouteTableRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
TaskRouteTable

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

GetSpoke(GetSpokeRequest, ServerCallContext)

public virtual Task<Spoke> GetSpoke(GetSpokeRequest request, ServerCallContext context)

Gets details about a Network Connectivity Center spoke.

Parameters
NameDescription
requestGetSpokeRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
TaskSpoke

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

ListGroups(ListGroupsRequest, ServerCallContext)

public virtual Task<ListGroupsResponse> ListGroups(ListGroupsRequest request, ServerCallContext context)

Lists groups in a given hub.

Parameters
NameDescription
requestListGroupsRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
TaskListGroupsResponse

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

ListHubs(ListHubsRequest, ServerCallContext)

public virtual Task<ListHubsResponse> ListHubs(ListHubsRequest request, ServerCallContext context)

Lists the Network Connectivity Center hubs associated with a given project.

Parameters
NameDescription
requestListHubsRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
TaskListHubsResponse

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

ListHubSpokes(ListHubSpokesRequest, ServerCallContext)

public virtual Task<ListHubSpokesResponse> ListHubSpokes(ListHubSpokesRequest request, ServerCallContext context)

Lists the Network Connectivity Center spokes associated with a specified hub and location. The list includes both spokes that are attached to the hub and spokes that have been proposed but not yet accepted.

Parameters
NameDescription
requestListHubSpokesRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
TaskListHubSpokesResponse

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

ListRoutes(ListRoutesRequest, ServerCallContext)

public virtual Task<ListRoutesResponse> ListRoutes(ListRoutesRequest request, ServerCallContext context)

Lists routes in a given project.

Parameters
NameDescription
requestListRoutesRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
TaskListRoutesResponse

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

ListRouteTables(ListRouteTablesRequest, ServerCallContext)

public virtual Task<ListRouteTablesResponse> ListRouteTables(ListRouteTablesRequest request, ServerCallContext context)

Lists route tables in a given project.

Parameters
NameDescription
requestListRouteTablesRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
TaskListRouteTablesResponse

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

ListSpokes(ListSpokesRequest, ServerCallContext)

public virtual Task<ListSpokesResponse> ListSpokes(ListSpokesRequest request, ServerCallContext context)

Lists the Network Connectivity Center spokes in a specified project and location.

Parameters
NameDescription
requestListSpokesRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
TaskListSpokesResponse

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

RejectHubSpoke(RejectHubSpokeRequest, ServerCallContext)

public virtual Task<Operation> RejectHubSpoke(RejectHubSpokeRequest request, ServerCallContext context)

Rejects a Network Connectivity Center spoke from being attached to a hub. If the spoke was previously in the ACTIVE state, it transitions to the INACTIVE state and is no longer able to connect to other spokes that are attached to the hub.

Parameters
NameDescription
requestRejectHubSpokeRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
TaskOperation

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

UpdateHub(UpdateHubRequest, ServerCallContext)

public virtual Task<Operation> UpdateHub(UpdateHubRequest request, ServerCallContext context)

Updates the description and/or labels of a Network Connectivity Center hub.

Parameters
NameDescription
requestUpdateHubRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
TaskOperation

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

UpdateSpoke(UpdateSpokeRequest, ServerCallContext)

public virtual Task<Operation> UpdateSpoke(UpdateSpokeRequest request, ServerCallContext context)

Updates the parameters of a Network Connectivity Center spoke.

Parameters
NameDescription
requestUpdateSpokeRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
TaskOperation

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