Represents a HubService
Inheritance
$protobuf.rpc.Service > protos.google.cloud.networkconnectivity.v1.HubServicePackage
@google-cloud/network-connectivityConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new HubService service.
Parameters | |
---|---|
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Methods
create(rpcImpl, requestDelimited, responseDelimited)
public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): HubService;
Creates new HubService service using the specified rpc implementation.
Parameters | |
---|---|
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Returns | |
---|---|
Type | Description |
HubService | RPC service. Useful where requests and/or responses are streamed. |
createHub(request, callback)
public createHub(request: google.cloud.networkconnectivity.v1.ICreateHubRequest, callback: google.cloud.networkconnectivity.v1.HubService.CreateHubCallback): void;
Calls CreateHub.
Parameters | |
---|---|
Name | Description |
request |
ICreateHubRequest
CreateHubRequest message or plain object |
callback |
google.cloud.networkconnectivity.v1.HubService.CreateHubCallback
Node-style callback called with the error, if any, and Operation |
Returns | |
---|---|
Type | Description |
void |
createHub(request)
public createHub(request: google.cloud.networkconnectivity.v1.ICreateHubRequest): Promise<google.longrunning.Operation>;
Calls CreateHub.
Parameter | |
---|---|
Name | Description |
request |
ICreateHubRequest
CreateHubRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.longrunning.Operation> | Promise |
createSpoke(request, callback)
public createSpoke(request: google.cloud.networkconnectivity.v1.ICreateSpokeRequest, callback: google.cloud.networkconnectivity.v1.HubService.CreateSpokeCallback): void;
Calls CreateSpoke.
Parameters | |
---|---|
Name | Description |
request |
ICreateSpokeRequest
CreateSpokeRequest message or plain object |
callback |
google.cloud.networkconnectivity.v1.HubService.CreateSpokeCallback
Node-style callback called with the error, if any, and Operation |
Returns | |
---|---|
Type | Description |
void |
createSpoke(request)
public createSpoke(request: google.cloud.networkconnectivity.v1.ICreateSpokeRequest): Promise<google.longrunning.Operation>;
Calls CreateSpoke.
Parameter | |
---|---|
Name | Description |
request |
ICreateSpokeRequest
CreateSpokeRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.longrunning.Operation> | Promise |
deleteHub(request, callback)
public deleteHub(request: google.cloud.networkconnectivity.v1.IDeleteHubRequest, callback: google.cloud.networkconnectivity.v1.HubService.DeleteHubCallback): void;
Calls DeleteHub.
Parameters | |
---|---|
Name | Description |
request |
IDeleteHubRequest
DeleteHubRequest message or plain object |
callback |
google.cloud.networkconnectivity.v1.HubService.DeleteHubCallback
Node-style callback called with the error, if any, and Operation |
Returns | |
---|---|
Type | Description |
void |
deleteHub(request)
public deleteHub(request: google.cloud.networkconnectivity.v1.IDeleteHubRequest): Promise<google.longrunning.Operation>;
Calls DeleteHub.
Parameter | |
---|---|
Name | Description |
request |
IDeleteHubRequest
DeleteHubRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.longrunning.Operation> | Promise |
deleteSpoke(request, callback)
public deleteSpoke(request: google.cloud.networkconnectivity.v1.IDeleteSpokeRequest, callback: google.cloud.networkconnectivity.v1.HubService.DeleteSpokeCallback): void;
Calls DeleteSpoke.
Parameters | |
---|---|
Name | Description |
request |
IDeleteSpokeRequest
DeleteSpokeRequest message or plain object |
callback |
google.cloud.networkconnectivity.v1.HubService.DeleteSpokeCallback
Node-style callback called with the error, if any, and Operation |
Returns | |
---|---|
Type | Description |
void |
deleteSpoke(request)
public deleteSpoke(request: google.cloud.networkconnectivity.v1.IDeleteSpokeRequest): Promise<google.longrunning.Operation>;
Calls DeleteSpoke.
Parameter | |
---|---|
Name | Description |
request |
IDeleteSpokeRequest
DeleteSpokeRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.longrunning.Operation> | Promise |
getHub(request, callback)
public getHub(request: google.cloud.networkconnectivity.v1.IGetHubRequest, callback: google.cloud.networkconnectivity.v1.HubService.GetHubCallback): void;
Calls GetHub.
Parameters | |
---|---|
Name | Description |
request |
IGetHubRequest
GetHubRequest message or plain object |
callback |
google.cloud.networkconnectivity.v1.HubService.GetHubCallback
Node-style callback called with the error, if any, and Hub |
Returns | |
---|---|
Type | Description |
void |
getHub(request)
public getHub(request: google.cloud.networkconnectivity.v1.IGetHubRequest): Promise<google.cloud.networkconnectivity.v1.Hub>;
Calls GetHub.
Parameter | |
---|---|
Name | Description |
request |
IGetHubRequest
GetHubRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.networkconnectivity.v1.Hub> | Promise |
getSpoke(request, callback)
public getSpoke(request: google.cloud.networkconnectivity.v1.IGetSpokeRequest, callback: google.cloud.networkconnectivity.v1.HubService.GetSpokeCallback): void;
Calls GetSpoke.
Parameters | |
---|---|
Name | Description |
request |
google.cloud.networkconnectivity.v1.IGetSpokeRequest
GetSpokeRequest message or plain object |
callback |
google.cloud.networkconnectivity.v1.HubService.GetSpokeCallback
Node-style callback called with the error, if any, and Spoke |
Returns | |
---|---|
Type | Description |
void |
getSpoke(request)
public getSpoke(request: google.cloud.networkconnectivity.v1.IGetSpokeRequest): Promise<google.cloud.networkconnectivity.v1.Spoke>;
Calls GetSpoke.
Parameter | |
---|---|
Name | Description |
request |
google.cloud.networkconnectivity.v1.IGetSpokeRequest
GetSpokeRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.networkconnectivity.v1.Spoke> | Promise |
listHubs(request, callback)
public listHubs(request: google.cloud.networkconnectivity.v1.IListHubsRequest, callback: google.cloud.networkconnectivity.v1.HubService.ListHubsCallback): void;
Calls ListHubs.
Parameters | |
---|---|
Name | Description |
request |
IListHubsRequest
ListHubsRequest message or plain object |
callback |
google.cloud.networkconnectivity.v1.HubService.ListHubsCallback
Node-style callback called with the error, if any, and ListHubsResponse |
Returns | |
---|---|
Type | Description |
void |
listHubs(request)
public listHubs(request: google.cloud.networkconnectivity.v1.IListHubsRequest): Promise<google.cloud.networkconnectivity.v1.ListHubsResponse>;
Calls ListHubs.
Parameter | |
---|---|
Name | Description |
request |
IListHubsRequest
ListHubsRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.networkconnectivity.v1.ListHubsResponse> | Promise |
listSpokes(request, callback)
public listSpokes(request: google.cloud.networkconnectivity.v1.IListSpokesRequest, callback: google.cloud.networkconnectivity.v1.HubService.ListSpokesCallback): void;
Calls ListSpokes.
Parameters | |
---|---|
Name | Description |
request |
IListSpokesRequest
ListSpokesRequest message or plain object |
callback |
google.cloud.networkconnectivity.v1.HubService.ListSpokesCallback
Node-style callback called with the error, if any, and ListSpokesResponse |
Returns | |
---|---|
Type | Description |
void |
listSpokes(request)
public listSpokes(request: google.cloud.networkconnectivity.v1.IListSpokesRequest): Promise<google.cloud.networkconnectivity.v1.ListSpokesResponse>;
Calls ListSpokes.
Parameter | |
---|---|
Name | Description |
request |
IListSpokesRequest
ListSpokesRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.networkconnectivity.v1.ListSpokesResponse> | Promise |
updateHub(request, callback)
public updateHub(request: google.cloud.networkconnectivity.v1.IUpdateHubRequest, callback: google.cloud.networkconnectivity.v1.HubService.UpdateHubCallback): void;
Calls UpdateHub.
Parameters | |
---|---|
Name | Description |
request |
IUpdateHubRequest
UpdateHubRequest message or plain object |
callback |
google.cloud.networkconnectivity.v1.HubService.UpdateHubCallback
Node-style callback called with the error, if any, and Operation |
Returns | |
---|---|
Type | Description |
void |
updateHub(request)
public updateHub(request: google.cloud.networkconnectivity.v1.IUpdateHubRequest): Promise<google.longrunning.Operation>;
Calls UpdateHub.
Parameter | |
---|---|
Name | Description |
request |
IUpdateHubRequest
UpdateHubRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.longrunning.Operation> | Promise |
updateSpoke(request, callback)
public updateSpoke(request: google.cloud.networkconnectivity.v1.IUpdateSpokeRequest, callback: google.cloud.networkconnectivity.v1.HubService.UpdateSpokeCallback): void;
Calls UpdateSpoke.
Parameters | |
---|---|
Name | Description |
request |
IUpdateSpokeRequest
UpdateSpokeRequest message or plain object |
callback |
google.cloud.networkconnectivity.v1.HubService.UpdateSpokeCallback
Node-style callback called with the error, if any, and Operation |
Returns | |
---|---|
Type | Description |
void |
updateSpoke(request)
public updateSpoke(request: google.cloud.networkconnectivity.v1.IUpdateSpokeRequest): Promise<google.longrunning.Operation>;
Calls UpdateSpoke.
Parameter | |
---|---|
Name | Description |
request |
IUpdateSpokeRequest
UpdateSpokeRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.longrunning.Operation> | Promise |