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.
Namespace
Google.Cloud.NetworkConnectivity.V1Assembly
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 | |
---|---|
Name | Description |
grpcClient |
HubServiceHubServiceClient The underlying gRPC client. |
settings |
HubServiceSettings The base HubServiceSettings used within this client. |
logger |
ILogger Optional ILogger to use within this client. |
Properties
AcceptHubSpokeOperationsClient
public override OperationsClient AcceptHubSpokeOperationsClient { get; }
The long-running operations client for AcceptHubSpoke
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
CreateHubOperationsClient
public override OperationsClient CreateHubOperationsClient { get; }
The long-running operations client for CreateHub
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
CreateSpokeOperationsClient
public override OperationsClient CreateSpokeOperationsClient { get; }
The long-running operations client for CreateSpoke
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
DeleteHubOperationsClient
public override OperationsClient DeleteHubOperationsClient { get; }
The long-running operations client for DeleteHub
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
DeleteSpokeOperationsClient
public override OperationsClient DeleteSpokeOperationsClient { get; }
The long-running operations client for DeleteSpoke
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
GrpcClient
public override HubService.HubServiceClient GrpcClient { get; }
The underlying gRPC HubService client
Property Value | |
---|---|
Type | Description |
HubServiceHubServiceClient |
IAMPolicyClient
public override IAMPolicyClient IAMPolicyClient { get; }
The IAMPolicyClient associated with this client.
Property Value | |
---|---|
Type | Description |
IAMPolicyClient |
LocationsClient
public override LocationsClient LocationsClient { get; }
The LocationsClient associated with this client.
Property Value | |
---|---|
Type | Description |
LocationsClient |
RejectHubSpokeOperationsClient
public override OperationsClient RejectHubSpokeOperationsClient { get; }
The long-running operations client for RejectHubSpoke
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
UpdateHubOperationsClient
public override OperationsClient UpdateHubOperationsClient { get; }
The long-running operations client for UpdateHub
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
UpdateSpokeOperationsClient
public override OperationsClient UpdateSpokeOperationsClient { get; }
The long-running operations client for UpdateSpoke
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
Methods
AcceptHubSpoke(AcceptHubSpokeRequest, CallSettings)
public override Operation<AcceptHubSpokeResponse, OperationMetadata> AcceptHubSpoke(AcceptHubSpokeRequest request, CallSettings callSettings = null)
Accepts a proposal to attach a Network Connectivity Center spoke to a hub.
Parameters | |
---|---|
Name | Description |
request |
AcceptHubSpokeRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationAcceptHubSpokeResponseOperationMetadata |
The RPC response. |
AcceptHubSpokeAsync(AcceptHubSpokeRequest, CallSettings)
public override Task<Operation<AcceptHubSpokeResponse, OperationMetadata>> AcceptHubSpokeAsync(AcceptHubSpokeRequest request, CallSettings callSettings = null)
Accepts a proposal to attach a Network Connectivity Center spoke to a hub.
Parameters | |
---|---|
Name | Description |
request |
AcceptHubSpokeRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationAcceptHubSpokeResponseOperationMetadata |
A Task containing the RPC response. |
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 | |
---|---|
Name | Description |
request |
CreateHubRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationHubOperationMetadata |
The RPC response. |
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 | |
---|---|
Name | Description |
request |
CreateHubRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationHubOperationMetadata |
A Task containing the RPC response. |
CreateSpoke(CreateSpokeRequest, CallSettings)
public override Operation<Spoke, OperationMetadata> CreateSpoke(CreateSpokeRequest request, CallSettings callSettings = null)
Creates a Network Connectivity Center spoke.
Parameters | |
---|---|
Name | Description |
request |
CreateSpokeRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationSpokeOperationMetadata |
The RPC response. |
CreateSpokeAsync(CreateSpokeRequest, CallSettings)
public override Task<Operation<Spoke, OperationMetadata>> CreateSpokeAsync(CreateSpokeRequest request, CallSettings callSettings = null)
Creates a Network Connectivity Center spoke.
Parameters | |
---|---|
Name | Description |
request |
CreateSpokeRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationSpokeOperationMetadata |
A Task containing the RPC response. |
DeleteHub(DeleteHubRequest, CallSettings)
public override Operation<Empty, OperationMetadata> DeleteHub(DeleteHubRequest request, CallSettings callSettings = null)
Deletes a Network Connectivity Center hub.
Parameters | |
---|---|
Name | Description |
request |
DeleteHubRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
DeleteHubAsync(DeleteHubRequest, CallSettings)
public override Task<Operation<Empty, OperationMetadata>> DeleteHubAsync(DeleteHubRequest request, CallSettings callSettings = null)
Deletes a Network Connectivity Center hub.
Parameters | |
---|---|
Name | Description |
request |
DeleteHubRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
DeleteSpoke(DeleteSpokeRequest, CallSettings)
public override Operation<Empty, OperationMetadata> DeleteSpoke(DeleteSpokeRequest request, CallSettings callSettings = null)
Deletes a Network Connectivity Center spoke.
Parameters | |
---|---|
Name | Description |
request |
DeleteSpokeRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
DeleteSpokeAsync(DeleteSpokeRequest, CallSettings)
public override Task<Operation<Empty, OperationMetadata>> DeleteSpokeAsync(DeleteSpokeRequest request, CallSettings callSettings = null)
Deletes a Network Connectivity Center spoke.
Parameters | |
---|---|
Name | Description |
request |
DeleteSpokeRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
GetGroup(GetGroupRequest, CallSettings)
public override Group GetGroup(GetGroupRequest request, CallSettings callSettings = null)
Gets details about a Network Connectivity Center group.
Parameters | |
---|---|
Name | Description |
request |
GetGroupRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Group |
The RPC response. |
GetGroupAsync(GetGroupRequest, CallSettings)
public override Task<Group> GetGroupAsync(GetGroupRequest request, CallSettings callSettings = null)
Gets details about a Network Connectivity Center group.
Parameters | |
---|---|
Name | Description |
request |
GetGroupRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskGroup |
A Task containing the RPC response. |
GetHub(GetHubRequest, CallSettings)
public override Hub GetHub(GetHubRequest request, CallSettings callSettings = null)
Gets details about a Network Connectivity Center hub.
Parameters | |
---|---|
Name | Description |
request |
GetHubRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Hub |
The RPC response. |
GetHubAsync(GetHubRequest, CallSettings)
public override Task<Hub> GetHubAsync(GetHubRequest request, CallSettings callSettings = null)
Gets details about a Network Connectivity Center hub.
Parameters | |
---|---|
Name | Description |
request |
GetHubRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskHub |
A Task containing the RPC response. |
GetRoute(GetRouteRequest, CallSettings)
public override Route GetRoute(GetRouteRequest request, CallSettings callSettings = null)
Gets details about the specified route.
Parameters | |
---|---|
Name | Description |
request |
GetRouteRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Route |
The RPC response. |
GetRouteAsync(GetRouteRequest, CallSettings)
public override Task<Route> GetRouteAsync(GetRouteRequest request, CallSettings callSettings = null)
Gets details about the specified route.
Parameters | |
---|---|
Name | Description |
request |
GetRouteRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskRoute |
A Task containing the RPC response. |
GetRouteTable(GetRouteTableRequest, CallSettings)
public override RouteTable GetRouteTable(GetRouteTableRequest request, CallSettings callSettings = null)
Gets details about a Network Connectivity Center route table.
Parameters | |
---|---|
Name | Description |
request |
GetRouteTableRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
RouteTable |
The RPC response. |
GetRouteTableAsync(GetRouteTableRequest, CallSettings)
public override Task<RouteTable> GetRouteTableAsync(GetRouteTableRequest request, CallSettings callSettings = null)
Gets details about a Network Connectivity Center route table.
Parameters | |
---|---|
Name | Description |
request |
GetRouteTableRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskRouteTable |
A Task containing the RPC response. |
GetSpoke(GetSpokeRequest, CallSettings)
public override Spoke GetSpoke(GetSpokeRequest request, CallSettings callSettings = null)
Gets details about a Network Connectivity Center spoke.
Parameters | |
---|---|
Name | Description |
request |
GetSpokeRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Spoke |
The RPC response. |
GetSpokeAsync(GetSpokeRequest, CallSettings)
public override Task<Spoke> GetSpokeAsync(GetSpokeRequest request, CallSettings callSettings = null)
Gets details about a Network Connectivity Center spoke.
Parameters | |
---|---|
Name | Description |
request |
GetSpokeRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskSpoke |
A Task containing the RPC response. |
ListGroups(ListGroupsRequest, CallSettings)
public override PagedEnumerable<ListGroupsResponse, Group> ListGroups(ListGroupsRequest request, CallSettings callSettings = null)
Lists groups in a given hub.
Parameters | |
---|---|
Name | Description |
request |
ListGroupsRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListGroupsResponseGroup |
A pageable sequence of Group resources. |
ListGroupsAsync(ListGroupsRequest, CallSettings)
public override PagedAsyncEnumerable<ListGroupsResponse, Group> ListGroupsAsync(ListGroupsRequest request, CallSettings callSettings = null)
Lists groups in a given hub.
Parameters | |
---|---|
Name | Description |
request |
ListGroupsRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListGroupsResponseGroup |
A pageable asynchronous sequence of Group resources. |
ListHubSpokes(ListHubSpokesRequest, CallSettings)
public override PagedEnumerable<ListHubSpokesResponse, Spoke> ListHubSpokes(ListHubSpokesRequest request, CallSettings callSettings = null)
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 | |
---|---|
Name | Description |
request |
ListHubSpokesRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListHubSpokesResponseSpoke |
A pageable sequence of Spoke resources. |
ListHubSpokesAsync(ListHubSpokesRequest, CallSettings)
public override PagedAsyncEnumerable<ListHubSpokesResponse, Spoke> ListHubSpokesAsync(ListHubSpokesRequest request, CallSettings callSettings = null)
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 | |
---|---|
Name | Description |
request |
ListHubSpokesRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListHubSpokesResponseSpoke |
A pageable asynchronous sequence of Spoke resources. |
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 | |
---|---|
Name | Description |
request |
ListHubsRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListHubsResponseHub |
A pageable sequence of Hub resources. |
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 | |
---|---|
Name | Description |
request |
ListHubsRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListHubsResponseHub |
A pageable asynchronous sequence of Hub resources. |
ListRouteTables(ListRouteTablesRequest, CallSettings)
public override PagedEnumerable<ListRouteTablesResponse, RouteTable> ListRouteTables(ListRouteTablesRequest request, CallSettings callSettings = null)
Lists route tables in a given project.
Parameters | |
---|---|
Name | Description |
request |
ListRouteTablesRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListRouteTablesResponseRouteTable |
A pageable sequence of RouteTable resources. |
ListRouteTablesAsync(ListRouteTablesRequest, CallSettings)
public override PagedAsyncEnumerable<ListRouteTablesResponse, RouteTable> ListRouteTablesAsync(ListRouteTablesRequest request, CallSettings callSettings = null)
Lists route tables in a given project.
Parameters | |
---|---|
Name | Description |
request |
ListRouteTablesRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListRouteTablesResponseRouteTable |
A pageable asynchronous sequence of RouteTable resources. |
ListRoutes(ListRoutesRequest, CallSettings)
public override PagedEnumerable<ListRoutesResponse, Route> ListRoutes(ListRoutesRequest request, CallSettings callSettings = null)
Lists routes in a given project.
Parameters | |
---|---|
Name | Description |
request |
ListRoutesRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListRoutesResponseRoute |
A pageable sequence of Route resources. |
ListRoutesAsync(ListRoutesRequest, CallSettings)
public override PagedAsyncEnumerable<ListRoutesResponse, Route> ListRoutesAsync(ListRoutesRequest request, CallSettings callSettings = null)
Lists routes in a given project.
Parameters | |
---|---|
Name | Description |
request |
ListRoutesRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListRoutesResponseRoute |
A pageable asynchronous sequence of Route resources. |
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 | |
---|---|
Name | Description |
request |
ListSpokesRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListSpokesResponseSpoke |
A pageable sequence of Spoke resources. |
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 | |
---|---|
Name | Description |
request |
ListSpokesRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListSpokesResponseSpoke |
A pageable asynchronous sequence of Spoke resources. |
RejectHubSpoke(RejectHubSpokeRequest, CallSettings)
public override Operation<RejectHubSpokeResponse, OperationMetadata> RejectHubSpoke(RejectHubSpokeRequest request, CallSettings callSettings = null)
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 | |
---|---|
Name | Description |
request |
RejectHubSpokeRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationRejectHubSpokeResponseOperationMetadata |
The RPC response. |
RejectHubSpokeAsync(RejectHubSpokeRequest, CallSettings)
public override Task<Operation<RejectHubSpokeResponse, OperationMetadata>> RejectHubSpokeAsync(RejectHubSpokeRequest request, CallSettings callSettings = null)
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 | |
---|---|
Name | Description |
request |
RejectHubSpokeRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationRejectHubSpokeResponseOperationMetadata |
A Task containing the RPC response. |
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 | |
---|---|
Name | Description |
request |
UpdateHubRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationHubOperationMetadata |
The RPC response. |
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 | |
---|---|
Name | Description |
request |
UpdateHubRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationHubOperationMetadata |
A Task containing the RPC response. |
UpdateSpoke(UpdateSpokeRequest, CallSettings)
public override Operation<Spoke, OperationMetadata> UpdateSpoke(UpdateSpokeRequest request, CallSettings callSettings = null)
Updates the parameters of a Network Connectivity Center spoke.
Parameters | |
---|---|
Name | Description |
request |
UpdateSpokeRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationSpokeOperationMetadata |
The RPC response. |
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 | |
---|---|
Name | Description |
request |
UpdateSpokeRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationSpokeOperationMetadata |
A Task containing the RPC response. |