Network Connectivity v1 API - Class HubServiceClientImpl (2.4.0)

public sealed class HubServiceClientImpl : HubServiceClient

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

HubService client wrapper implementation, for convenient use.

Inheritance

object > HubServiceClient > HubServiceClientImpl

Namespace

Google.Cloud.NetworkConnectivity.V1

Assembly

Google.Cloud.NetworkConnectivity.V1.dll

Remarks

Network Connectivity Center is a hub-and-spoke abstraction for network connectivity management in Google Cloud. It reduces operational complexity through a simple, centralized connectivity management model.

Constructors

HubServiceClientImpl(HubServiceClient, HubServiceSettings, ILogger)

public HubServiceClientImpl(HubService.HubServiceClient grpcClient, HubServiceSettings settings, ILogger logger)

Constructs a client wrapper for the HubService service, with the specified gRPC client and settings.

Parameters
NameDescription
grpcClientHubServiceHubServiceClient

The underlying gRPC client.

settingsHubServiceSettings

The base HubServiceSettings used within this client.

loggerILogger

Optional ILogger to use within this client.

Properties

CreateHubOperationsClient

public override OperationsClient CreateHubOperationsClient { get; }

The long-running operations client for CreateHub.

Property Value
TypeDescription
OperationsClient
Overrides

CreateSpokeOperationsClient

public override OperationsClient CreateSpokeOperationsClient { get; }

The long-running operations client for CreateSpoke.

Property Value
TypeDescription
OperationsClient
Overrides

DeleteHubOperationsClient

public override OperationsClient DeleteHubOperationsClient { get; }

The long-running operations client for DeleteHub.

Property Value
TypeDescription
OperationsClient
Overrides

DeleteSpokeOperationsClient

public override OperationsClient DeleteSpokeOperationsClient { get; }

The long-running operations client for DeleteSpoke.

Property Value
TypeDescription
OperationsClient
Overrides

GrpcClient

public override HubService.HubServiceClient GrpcClient { get; }

The underlying gRPC HubService client

Property Value
TypeDescription
HubServiceHubServiceClient
Overrides

IAMPolicyClient

public override IAMPolicyClient IAMPolicyClient { get; }

The IAMPolicyClient associated with this client.

Property Value
TypeDescription
IAMPolicyClient
Overrides

LocationsClient

public override LocationsClient LocationsClient { get; }

The LocationsClient associated with this client.

Property Value
TypeDescription
LocationsClient
Overrides

UpdateHubOperationsClient

public override OperationsClient UpdateHubOperationsClient { get; }

The long-running operations client for UpdateHub.

Property Value
TypeDescription
OperationsClient
Overrides

UpdateSpokeOperationsClient

public override OperationsClient UpdateSpokeOperationsClient { get; }

The long-running operations client for UpdateSpoke.

Property Value
TypeDescription
OperationsClient
Overrides

Methods

CreateHub(CreateHubRequest, CallSettings)

public override Operation<Hub, OperationMetadata> CreateHub(CreateHubRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestCreateHubRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationHubOperationMetadata

The RPC response.

Overrides

CreateHubAsync(CreateHubRequest, CallSettings)

public override Task<Operation<Hub, OperationMetadata>> CreateHubAsync(CreateHubRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestCreateHubRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationHubOperationMetadata

A Task containing the RPC response.

Overrides

CreateSpoke(CreateSpokeRequest, CallSettings)

public override Operation<Spoke, OperationMetadata> CreateSpoke(CreateSpokeRequest request, CallSettings callSettings = null)

Creates a Network Connectivity Center spoke.

Parameters
NameDescription
requestCreateSpokeRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationSpokeOperationMetadata

The RPC response.

Overrides

CreateSpokeAsync(CreateSpokeRequest, CallSettings)

public override Task<Operation<Spoke, OperationMetadata>> CreateSpokeAsync(CreateSpokeRequest request, CallSettings callSettings = null)

Creates a Network Connectivity Center spoke.

Parameters
NameDescription
requestCreateSpokeRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationSpokeOperationMetadata

A Task containing the RPC response.

Overrides

DeleteHub(DeleteHubRequest, CallSettings)

public override Operation<Empty, OperationMetadata> DeleteHub(DeleteHubRequest request, CallSettings callSettings = null)

Deletes a Network Connectivity Center hub.

Parameters
NameDescription
requestDeleteHubRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The RPC response.

Overrides

DeleteHubAsync(DeleteHubRequest, CallSettings)

public override Task<Operation<Empty, OperationMetadata>> DeleteHubAsync(DeleteHubRequest request, CallSettings callSettings = null)

Deletes a Network Connectivity Center hub.

Parameters
NameDescription
requestDeleteHubRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Overrides

DeleteSpoke(DeleteSpokeRequest, CallSettings)

public override Operation<Empty, OperationMetadata> DeleteSpoke(DeleteSpokeRequest request, CallSettings callSettings = null)

Deletes a Network Connectivity Center spoke.

Parameters
NameDescription
requestDeleteSpokeRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The RPC response.

Overrides

DeleteSpokeAsync(DeleteSpokeRequest, CallSettings)

public override Task<Operation<Empty, OperationMetadata>> DeleteSpokeAsync(DeleteSpokeRequest request, CallSettings callSettings = null)

Deletes a Network Connectivity Center spoke.

Parameters
NameDescription
requestDeleteSpokeRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Overrides

GetHub(GetHubRequest, CallSettings)

public override Hub GetHub(GetHubRequest request, CallSettings callSettings = null)

Gets details about a Network Connectivity Center hub.

Parameters
NameDescription
requestGetHubRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Hub

The RPC response.

Overrides

GetHubAsync(GetHubRequest, CallSettings)

public override Task<Hub> GetHubAsync(GetHubRequest request, CallSettings callSettings = null)

Gets details about a Network Connectivity Center hub.

Parameters
NameDescription
requestGetHubRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskHub

A Task containing the RPC response.

Overrides

GetSpoke(GetSpokeRequest, CallSettings)

public override Spoke GetSpoke(GetSpokeRequest request, CallSettings callSettings = null)

Gets details about a Network Connectivity Center spoke.

Parameters
NameDescription
requestGetSpokeRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Spoke

The RPC response.

Overrides

GetSpokeAsync(GetSpokeRequest, CallSettings)

public override Task<Spoke> GetSpokeAsync(GetSpokeRequest request, CallSettings callSettings = null)

Gets details about a Network Connectivity Center spoke.

Parameters
NameDescription
requestGetSpokeRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskSpoke

A Task containing the RPC response.

Overrides

ListHubs(ListHubsRequest, CallSettings)

public override PagedEnumerable<ListHubsResponse, Hub> ListHubs(ListHubsRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestListHubsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListHubsResponseHub

A pageable sequence of Hub resources.

Overrides

ListHubsAsync(ListHubsRequest, CallSettings)

public override PagedAsyncEnumerable<ListHubsResponse, Hub> ListHubsAsync(ListHubsRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestListHubsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListHubsResponseHub

A pageable asynchronous sequence of Hub resources.

Overrides

ListSpokes(ListSpokesRequest, CallSettings)

public override PagedEnumerable<ListSpokesResponse, Spoke> ListSpokes(ListSpokesRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestListSpokesRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListSpokesResponseSpoke

A pageable sequence of Spoke resources.

Overrides

ListSpokesAsync(ListSpokesRequest, CallSettings)

public override PagedAsyncEnumerable<ListSpokesResponse, Spoke> ListSpokesAsync(ListSpokesRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestListSpokesRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListSpokesResponseSpoke

A pageable asynchronous sequence of Spoke resources.

Overrides

UpdateHub(UpdateHubRequest, CallSettings)

public override Operation<Hub, OperationMetadata> UpdateHub(UpdateHubRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestUpdateHubRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationHubOperationMetadata

The RPC response.

Overrides

UpdateHubAsync(UpdateHubRequest, CallSettings)

public override Task<Operation<Hub, OperationMetadata>> UpdateHubAsync(UpdateHubRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestUpdateHubRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationHubOperationMetadata

A Task containing the RPC response.

Overrides

UpdateSpoke(UpdateSpokeRequest, CallSettings)

public override Operation<Spoke, OperationMetadata> UpdateSpoke(UpdateSpokeRequest request, CallSettings callSettings = null)

Updates the parameters of a Network Connectivity Center spoke.

Parameters
NameDescription
requestUpdateSpokeRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationSpokeOperationMetadata

The RPC response.

Overrides

UpdateSpokeAsync(UpdateSpokeRequest, CallSettings)

public override Task<Operation<Spoke, OperationMetadata>> UpdateSpokeAsync(UpdateSpokeRequest request, CallSettings callSettings = null)

Updates the parameters of a Network Connectivity Center spoke.

Parameters
NameDescription
requestUpdateSpokeRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationSpokeOperationMetadata

A Task containing the RPC response.

Overrides