Class protos.google.cloud.networkconnectivity.v1alpha1.HubService

Represents a HubService

Inheritance

$protobuf.rpc.Service > protos.google.cloud.networkconnectivity.v1alpha1.HubService

Package

@google-cloud/network-connectivity

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);

Constructs a new HubService service.

Parameters
NameDescription
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
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
TypeDescription
HubService

RPC service. Useful where requests and/or responses are streamed.

createHub(request, callback)

public createHub(request: google.cloud.networkconnectivity.v1alpha1.ICreateHubRequest, callback: google.cloud.networkconnectivity.v1alpha1.HubService.CreateHubCallback): void;

Calls CreateHub.

Parameters
NameDescription
request google.cloud.networkconnectivity.v1alpha1.ICreateHubRequest

CreateHubRequest message or plain object

callback google.cloud.networkconnectivity.v1alpha1.HubService.CreateHubCallback

Node-style callback called with the error, if any, and Operation

Returns
TypeDescription
void

createHub(request)

public createHub(request: google.cloud.networkconnectivity.v1alpha1.ICreateHubRequest): Promise<google.longrunning.Operation>;

Calls CreateHub.

Parameter
NameDescription
request google.cloud.networkconnectivity.v1alpha1.ICreateHubRequest

CreateHubRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

createSpoke(request, callback)

public createSpoke(request: google.cloud.networkconnectivity.v1alpha1.ICreateSpokeRequest, callback: google.cloud.networkconnectivity.v1alpha1.HubService.CreateSpokeCallback): void;

Calls CreateSpoke.

Parameters
NameDescription
request google.cloud.networkconnectivity.v1alpha1.ICreateSpokeRequest

CreateSpokeRequest message or plain object

callback google.cloud.networkconnectivity.v1alpha1.HubService.CreateSpokeCallback

Node-style callback called with the error, if any, and Operation

Returns
TypeDescription
void

createSpoke(request)

public createSpoke(request: google.cloud.networkconnectivity.v1alpha1.ICreateSpokeRequest): Promise<google.longrunning.Operation>;

Calls CreateSpoke.

Parameter
NameDescription
request google.cloud.networkconnectivity.v1alpha1.ICreateSpokeRequest

CreateSpokeRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

deleteHub(request, callback)

public deleteHub(request: google.cloud.networkconnectivity.v1alpha1.IDeleteHubRequest, callback: google.cloud.networkconnectivity.v1alpha1.HubService.DeleteHubCallback): void;

Calls DeleteHub.

Parameters
NameDescription
request google.cloud.networkconnectivity.v1alpha1.IDeleteHubRequest

DeleteHubRequest message or plain object

callback google.cloud.networkconnectivity.v1alpha1.HubService.DeleteHubCallback

Node-style callback called with the error, if any, and Operation

Returns
TypeDescription
void

deleteHub(request)

public deleteHub(request: google.cloud.networkconnectivity.v1alpha1.IDeleteHubRequest): Promise<google.longrunning.Operation>;

Calls DeleteHub.

Parameter
NameDescription
request google.cloud.networkconnectivity.v1alpha1.IDeleteHubRequest

DeleteHubRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

deleteSpoke(request, callback)

public deleteSpoke(request: google.cloud.networkconnectivity.v1alpha1.IDeleteSpokeRequest, callback: google.cloud.networkconnectivity.v1alpha1.HubService.DeleteSpokeCallback): void;

Calls DeleteSpoke.

Parameters
NameDescription
request google.cloud.networkconnectivity.v1alpha1.IDeleteSpokeRequest

DeleteSpokeRequest message or plain object

callback google.cloud.networkconnectivity.v1alpha1.HubService.DeleteSpokeCallback

Node-style callback called with the error, if any, and Operation

Returns
TypeDescription
void

deleteSpoke(request)

public deleteSpoke(request: google.cloud.networkconnectivity.v1alpha1.IDeleteSpokeRequest): Promise<google.longrunning.Operation>;

Calls DeleteSpoke.

Parameter
NameDescription
request google.cloud.networkconnectivity.v1alpha1.IDeleteSpokeRequest

DeleteSpokeRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

getHub(request, callback)

public getHub(request: google.cloud.networkconnectivity.v1alpha1.IGetHubRequest, callback: google.cloud.networkconnectivity.v1alpha1.HubService.GetHubCallback): void;

Calls GetHub.

Parameters
NameDescription
request google.cloud.networkconnectivity.v1alpha1.IGetHubRequest

GetHubRequest message or plain object

callback google.cloud.networkconnectivity.v1alpha1.HubService.GetHubCallback

Node-style callback called with the error, if any, and Hub

Returns
TypeDescription
void

getHub(request)

public getHub(request: google.cloud.networkconnectivity.v1alpha1.IGetHubRequest): Promise<google.cloud.networkconnectivity.v1alpha1.Hub>;

Calls GetHub.

Parameter
NameDescription
request google.cloud.networkconnectivity.v1alpha1.IGetHubRequest

GetHubRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.networkconnectivity.v1alpha1.Hub>

Promise

getSpoke(request, callback)

public getSpoke(request: google.cloud.networkconnectivity.v1alpha1.IGetSpokeRequest, callback: google.cloud.networkconnectivity.v1alpha1.HubService.GetSpokeCallback): void;

Calls GetSpoke.

Parameters
NameDescription
request IGetSpokeRequest

GetSpokeRequest message or plain object

callback google.cloud.networkconnectivity.v1alpha1.HubService.GetSpokeCallback

Node-style callback called with the error, if any, and Spoke

Returns
TypeDescription
void

getSpoke(request)

public getSpoke(request: google.cloud.networkconnectivity.v1alpha1.IGetSpokeRequest): Promise<google.cloud.networkconnectivity.v1alpha1.Spoke>;

Calls GetSpoke.

Parameter
NameDescription
request IGetSpokeRequest

GetSpokeRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.networkconnectivity.v1alpha1.Spoke>

Promise

listHubs(request, callback)

public listHubs(request: google.cloud.networkconnectivity.v1alpha1.IListHubsRequest, callback: google.cloud.networkconnectivity.v1alpha1.HubService.ListHubsCallback): void;

Calls ListHubs.

Parameters
NameDescription
request google.cloud.networkconnectivity.v1alpha1.IListHubsRequest

ListHubsRequest message or plain object

callback google.cloud.networkconnectivity.v1alpha1.HubService.ListHubsCallback

Node-style callback called with the error, if any, and ListHubsResponse

Returns
TypeDescription
void

listHubs(request)

public listHubs(request: google.cloud.networkconnectivity.v1alpha1.IListHubsRequest): Promise<google.cloud.networkconnectivity.v1alpha1.ListHubsResponse>;

Calls ListHubs.

Parameter
NameDescription
request google.cloud.networkconnectivity.v1alpha1.IListHubsRequest

ListHubsRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.networkconnectivity.v1alpha1.ListHubsResponse>

Promise

listSpokes(request, callback)

public listSpokes(request: google.cloud.networkconnectivity.v1alpha1.IListSpokesRequest, callback: google.cloud.networkconnectivity.v1alpha1.HubService.ListSpokesCallback): void;

Calls ListSpokes.

Parameters
NameDescription
request google.cloud.networkconnectivity.v1alpha1.IListSpokesRequest

ListSpokesRequest message or plain object

callback google.cloud.networkconnectivity.v1alpha1.HubService.ListSpokesCallback

Node-style callback called with the error, if any, and ListSpokesResponse

Returns
TypeDescription
void

listSpokes(request)

public listSpokes(request: google.cloud.networkconnectivity.v1alpha1.IListSpokesRequest): Promise<google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse>;

Calls ListSpokes.

Parameter
NameDescription
request google.cloud.networkconnectivity.v1alpha1.IListSpokesRequest

ListSpokesRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse>

Promise

updateHub(request, callback)

public updateHub(request: google.cloud.networkconnectivity.v1alpha1.IUpdateHubRequest, callback: google.cloud.networkconnectivity.v1alpha1.HubService.UpdateHubCallback): void;

Calls UpdateHub.

Parameters
NameDescription
request google.cloud.networkconnectivity.v1alpha1.IUpdateHubRequest

UpdateHubRequest message or plain object

callback google.cloud.networkconnectivity.v1alpha1.HubService.UpdateHubCallback

Node-style callback called with the error, if any, and Operation

Returns
TypeDescription
void

updateHub(request)

public updateHub(request: google.cloud.networkconnectivity.v1alpha1.IUpdateHubRequest): Promise<google.longrunning.Operation>;

Calls UpdateHub.

Parameter
NameDescription
request google.cloud.networkconnectivity.v1alpha1.IUpdateHubRequest

UpdateHubRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

updateSpoke(request, callback)

public updateSpoke(request: google.cloud.networkconnectivity.v1alpha1.IUpdateSpokeRequest, callback: google.cloud.networkconnectivity.v1alpha1.HubService.UpdateSpokeCallback): void;

Calls UpdateSpoke.

Parameters
NameDescription
request google.cloud.networkconnectivity.v1alpha1.IUpdateSpokeRequest

UpdateSpokeRequest message or plain object

callback google.cloud.networkconnectivity.v1alpha1.HubService.UpdateSpokeCallback

Node-style callback called with the error, if any, and Operation

Returns
TypeDescription
void

updateSpoke(request)

public updateSpoke(request: google.cloud.networkconnectivity.v1alpha1.IUpdateSpokeRequest): Promise<google.longrunning.Operation>;

Calls UpdateSpoke.

Parameter
NameDescription
request google.cloud.networkconnectivity.v1alpha1.IUpdateSpokeRequest

UpdateSpokeRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise