HubService

google.cloud.networkconnectivity.v1alpha1. HubService

Represents a HubService

Constructor

new HubService(rpcImpl, requestDelimitedopt, responseDelimitedopt)

Constructs a new HubService service.

Parameters:
Name Type Attributes Default Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean <optional>
false

Whether requests are length-delimited

responseDelimited boolean <optional>
false

Whether responses are length-delimited

Extends

  • $protobuf.rpc.Service

Methods

createHub(request, callback) → {undefined}

Calls CreateHub.

Parameters:
Name Type Description
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:
Type Description
undefined

createHub(request) → {Promise.<google.longrunning.Operation>}

Calls CreateHub.

Parameters:
Name Type Description
request google.cloud.networkconnectivity.v1alpha1.ICreateHubRequest

CreateHubRequest message or plain object

Returns:
Type Description
Promise.<google.longrunning.Operation>

Promise

createSpoke(request, callback) → {undefined}

Calls CreateSpoke.

Parameters:
Name Type Description
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:
Type Description
undefined

createSpoke(request) → {Promise.<google.longrunning.Operation>}

Calls CreateSpoke.

Parameters:
Name Type Description
request google.cloud.networkconnectivity.v1alpha1.ICreateSpokeRequest

CreateSpokeRequest message or plain object

Returns:
Type Description
Promise.<google.longrunning.Operation>

Promise

deleteHub(request, callback) → {undefined}

Calls DeleteHub.

Parameters:
Name Type Description
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:
Type Description
undefined

deleteHub(request) → {Promise.<google.longrunning.Operation>}

Calls DeleteHub.

Parameters:
Name Type Description
request google.cloud.networkconnectivity.v1alpha1.IDeleteHubRequest

DeleteHubRequest message or plain object

Returns:
Type Description
Promise.<google.longrunning.Operation>

Promise

deleteSpoke(request, callback) → {undefined}

Calls DeleteSpoke.

Parameters:
Name Type Description
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:
Type Description
undefined

deleteSpoke(request) → {Promise.<google.longrunning.Operation>}

Calls DeleteSpoke.

Parameters:
Name Type Description
request google.cloud.networkconnectivity.v1alpha1.IDeleteSpokeRequest

DeleteSpokeRequest message or plain object

Returns:
Type Description
Promise.<google.longrunning.Operation>

Promise

getHub(request, callback) → {undefined}

Calls GetHub.

Parameters:
Name Type Description
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:
Type Description
undefined

getHub(request) → {Promise.<google.cloud.networkconnectivity.v1alpha1.Hub>}

Calls GetHub.

Parameters:
Name Type Description
request google.cloud.networkconnectivity.v1alpha1.IGetHubRequest

GetHubRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.networkconnectivity.v1alpha1.Hub>

Promise

getSpoke(request, callback) → {undefined}

Calls GetSpoke.

Parameters:
Name Type Description
request google.cloud.networkconnectivity.v1alpha1.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:
Type Description
undefined

getSpoke(request) → {Promise.<google.cloud.networkconnectivity.v1alpha1.Spoke>}

Calls GetSpoke.

Parameters:
Name Type Description
request google.cloud.networkconnectivity.v1alpha1.IGetSpokeRequest

GetSpokeRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.networkconnectivity.v1alpha1.Spoke>

Promise

listHubs(request, callback) → {undefined}

Calls ListHubs.

Parameters:
Name Type Description
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:
Type Description
undefined

listHubs(request) → {Promise.<google.cloud.networkconnectivity.v1alpha1.ListHubsResponse>}

Calls ListHubs.

Parameters:
Name Type Description
request google.cloud.networkconnectivity.v1alpha1.IListHubsRequest

ListHubsRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.networkconnectivity.v1alpha1.ListHubsResponse>

Promise

listSpokes(request, callback) → {undefined}

Calls ListSpokes.

Parameters:
Name Type Description
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:
Type Description
undefined

listSpokes(request) → {Promise.<google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse>}

Calls ListSpokes.

Parameters:
Name Type Description
request google.cloud.networkconnectivity.v1alpha1.IListSpokesRequest

ListSpokesRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse>

Promise

updateHub(request, callback) → {undefined}

Calls UpdateHub.

Parameters:
Name Type Description
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:
Type Description
undefined

updateHub(request) → {Promise.<google.longrunning.Operation>}

Calls UpdateHub.

Parameters:
Name Type Description
request google.cloud.networkconnectivity.v1alpha1.IUpdateHubRequest

UpdateHubRequest message or plain object

Returns:
Type Description
Promise.<google.longrunning.Operation>

Promise

updateSpoke(request, callback) → {undefined}

Calls UpdateSpoke.

Parameters:
Name Type Description
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:
Type Description
undefined

updateSpoke(request) → {Promise.<google.longrunning.Operation>}

Calls UpdateSpoke.

Parameters:
Name Type Description
request google.cloud.networkconnectivity.v1alpha1.IUpdateSpokeRequest

UpdateSpokeRequest message or plain object

Returns:
Type Description
Promise.<google.longrunning.Operation>

Promise

(static) create(rpcImpl, requestDelimitedopt, responseDelimitedopt) → {HubService}

Creates new HubService service using the specified rpc implementation.

Parameters:
Name Type Attributes Default Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean <optional>
false

Whether requests are length-delimited

responseDelimited boolean <optional>
false

Whether responses are length-delimited

Returns:
Type Description
HubService

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

Type Definitions

CreateHubCallback(error, responseopt)

Callback as used by createHub.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.longrunning.Operation <optional>

Operation

CreateSpokeCallback(error, responseopt)

Callback as used by createSpoke.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.longrunning.Operation <optional>

Operation

DeleteHubCallback(error, responseopt)

Callback as used by deleteHub.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.longrunning.Operation <optional>

Operation

DeleteSpokeCallback(error, responseopt)

Callback as used by deleteSpoke.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.longrunning.Operation <optional>

Operation

GetHubCallback(error, responseopt)

Callback as used by getHub.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.networkconnectivity.v1alpha1.Hub <optional>

Hub

GetSpokeCallback(error, responseopt)

Callback as used by getSpoke.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.networkconnectivity.v1alpha1.Spoke <optional>

Spoke

ListHubsCallback(error, responseopt)

Callback as used by listHubs.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.networkconnectivity.v1alpha1.ListHubsResponse <optional>

ListHubsResponse

ListSpokesCallback(error, responseopt)

Callback as used by listSpokes.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse <optional>

ListSpokesResponse

UpdateHubCallback(error, responseopt)

Callback as used by updateHub.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.longrunning.Operation <optional>

Operation

UpdateSpokeCallback(error, responseopt)

Callback as used by updateSpoke.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.longrunning.Operation <optional>

Operation