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

[BindServiceMethod(typeof(HubService), "BindService")]
public abstract class 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

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
Task<Operation>

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
Task<Operation>

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
Task<Operation>

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
Task<Operation>

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
Task<Hub>

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
Task<Spoke>

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
Task<ListHubsResponse>

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
Task<ListSpokesResponse>

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
Task<Operation>

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
Task<Operation>

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