ApiHub

google.cloud.apihub.v1. ApiHub

Represents an ApiHub

Constructor

new ApiHub(rpcImpl, requestDelimitedopt, responseDelimitedopt)

Constructs a new ApiHub 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

createApi(request, callback) → {undefined}

Calls CreateApi.

Parameters:
Name Type Description
request google.cloud.apihub.v1.ICreateApiRequest

CreateApiRequest message or plain object

callback google.cloud.apihub.v1.ApiHub.CreateApiCallback

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

Returns:
Type Description
undefined

createApi(request) → {Promise.<google.cloud.apihub.v1.Api>}

Calls CreateApi.

Parameters:
Name Type Description
request google.cloud.apihub.v1.ICreateApiRequest

CreateApiRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.apihub.v1.Api>

Promise

createAttribute(request, callback) → {undefined}

Calls CreateAttribute.

Parameters:
Name Type Description
request google.cloud.apihub.v1.ICreateAttributeRequest

CreateAttributeRequest message or plain object

callback google.cloud.apihub.v1.ApiHub.CreateAttributeCallback

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

Returns:
Type Description
undefined

createAttribute(request) → {Promise.<google.cloud.apihub.v1.Attribute>}

Calls CreateAttribute.

Parameters:
Name Type Description
request google.cloud.apihub.v1.ICreateAttributeRequest

CreateAttributeRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.apihub.v1.Attribute>

Promise

createDeployment(request, callback) → {undefined}

Calls CreateDeployment.

Parameters:
Name Type Description
request google.cloud.apihub.v1.ICreateDeploymentRequest

CreateDeploymentRequest message or plain object

callback google.cloud.apihub.v1.ApiHub.CreateDeploymentCallback

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

Returns:
Type Description
undefined

createDeployment(request) → {Promise.<google.cloud.apihub.v1.Deployment>}

Calls CreateDeployment.

Parameters:
Name Type Description
request google.cloud.apihub.v1.ICreateDeploymentRequest

CreateDeploymentRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.apihub.v1.Deployment>

Promise

createExternalApi(request, callback) → {undefined}

Calls CreateExternalApi.

Parameters:
Name Type Description
request google.cloud.apihub.v1.ICreateExternalApiRequest

CreateExternalApiRequest message or plain object

callback google.cloud.apihub.v1.ApiHub.CreateExternalApiCallback

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

Returns:
Type Description
undefined

createExternalApi(request) → {Promise.<google.cloud.apihub.v1.ExternalApi>}

Calls CreateExternalApi.

Parameters:
Name Type Description
request google.cloud.apihub.v1.ICreateExternalApiRequest

CreateExternalApiRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.apihub.v1.ExternalApi>

Promise

createSpec(request, callback) → {undefined}

Calls CreateSpec.

Parameters:
Name Type Description
request google.cloud.apihub.v1.ICreateSpecRequest

CreateSpecRequest message or plain object

callback google.cloud.apihub.v1.ApiHub.CreateSpecCallback

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

Returns:
Type Description
undefined

createSpec(request) → {Promise.<google.cloud.apihub.v1.Spec>}

Calls CreateSpec.

Parameters:
Name Type Description
request google.cloud.apihub.v1.ICreateSpecRequest

CreateSpecRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.apihub.v1.Spec>

Promise

createVersion(request, callback) → {undefined}

Calls CreateVersion.

Parameters:
Name Type Description
request google.cloud.apihub.v1.ICreateVersionRequest

CreateVersionRequest message or plain object

callback google.cloud.apihub.v1.ApiHub.CreateVersionCallback

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

Returns:
Type Description
undefined

createVersion(request) → {Promise.<google.cloud.apihub.v1.Version>}

Calls CreateVersion.

Parameters:
Name Type Description
request google.cloud.apihub.v1.ICreateVersionRequest

CreateVersionRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.apihub.v1.Version>

Promise

deleteApi(request, callback) → {undefined}

Calls DeleteApi.

Parameters:
Name Type Description
request google.cloud.apihub.v1.IDeleteApiRequest

DeleteApiRequest message or plain object

callback google.cloud.apihub.v1.ApiHub.DeleteApiCallback

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

Returns:
Type Description
undefined

deleteApi(request) → {Promise.<google.protobuf.Empty>}

Calls DeleteApi.

Parameters:
Name Type Description
request google.cloud.apihub.v1.IDeleteApiRequest

DeleteApiRequest message or plain object

Returns:
Type Description
Promise.<google.protobuf.Empty>

Promise

deleteAttribute(request, callback) → {undefined}

Calls DeleteAttribute.

Parameters:
Name Type Description
request google.cloud.apihub.v1.IDeleteAttributeRequest

DeleteAttributeRequest message or plain object

callback google.cloud.apihub.v1.ApiHub.DeleteAttributeCallback

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

Returns:
Type Description
undefined

deleteAttribute(request) → {Promise.<google.protobuf.Empty>}

Calls DeleteAttribute.

Parameters:
Name Type Description
request google.cloud.apihub.v1.IDeleteAttributeRequest

DeleteAttributeRequest message or plain object

Returns:
Type Description
Promise.<google.protobuf.Empty>

Promise

deleteDeployment(request, callback) → {undefined}

Calls DeleteDeployment.

Parameters:
Name Type Description
request google.cloud.apihub.v1.IDeleteDeploymentRequest

DeleteDeploymentRequest message or plain object

callback google.cloud.apihub.v1.ApiHub.DeleteDeploymentCallback

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

Returns:
Type Description
undefined

deleteDeployment(request) → {Promise.<google.protobuf.Empty>}

Calls DeleteDeployment.

Parameters:
Name Type Description
request google.cloud.apihub.v1.IDeleteDeploymentRequest

DeleteDeploymentRequest message or plain object

Returns:
Type Description
Promise.<google.protobuf.Empty>

Promise

deleteExternalApi(request, callback) → {undefined}

Calls DeleteExternalApi.

Parameters:
Name Type Description
request google.cloud.apihub.v1.IDeleteExternalApiRequest

DeleteExternalApiRequest message or plain object

callback google.cloud.apihub.v1.ApiHub.DeleteExternalApiCallback

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

Returns:
Type Description
undefined

deleteExternalApi(request) → {Promise.<google.protobuf.Empty>}

Calls DeleteExternalApi.

Parameters:
Name Type Description
request google.cloud.apihub.v1.IDeleteExternalApiRequest

DeleteExternalApiRequest message or plain object

Returns:
Type Description
Promise.<google.protobuf.Empty>

Promise

deleteSpec(request, callback) → {undefined}

Calls DeleteSpec.

Parameters:
Name Type Description
request google.cloud.apihub.v1.IDeleteSpecRequest

DeleteSpecRequest message or plain object

callback google.cloud.apihub.v1.ApiHub.DeleteSpecCallback

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

Returns:
Type Description
undefined

deleteSpec(request) → {Promise.<google.protobuf.Empty>}

Calls DeleteSpec.

Parameters:
Name Type Description
request google.cloud.apihub.v1.IDeleteSpecRequest

DeleteSpecRequest message or plain object

Returns:
Type Description
Promise.<google.protobuf.Empty>

Promise

deleteVersion(request, callback) → {undefined}

Calls DeleteVersion.

Parameters:
Name Type Description
request google.cloud.apihub.v1.IDeleteVersionRequest

DeleteVersionRequest message or plain object

callback google.cloud.apihub.v1.ApiHub.DeleteVersionCallback

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

Returns:
Type Description
undefined

deleteVersion(request) → {Promise.<google.protobuf.Empty>}

Calls DeleteVersion.

Parameters:
Name Type Description
request google.cloud.apihub.v1.IDeleteVersionRequest

DeleteVersionRequest message or plain object

Returns:
Type Description
Promise.<google.protobuf.Empty>

Promise

getApi(request, callback) → {undefined}

Calls GetApi.

Parameters:
Name Type Description
request google.cloud.apihub.v1.IGetApiRequest

GetApiRequest message or plain object

callback google.cloud.apihub.v1.ApiHub.GetApiCallback

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

Returns:
Type Description
undefined

getApi(request) → {Promise.<google.cloud.apihub.v1.Api>}

Calls GetApi.

Parameters:
Name Type Description
request google.cloud.apihub.v1.IGetApiRequest

GetApiRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.apihub.v1.Api>

Promise

getApiOperation(request, callback) → {undefined}

Calls GetApiOperation.

Parameters:
Name Type Description
request google.cloud.apihub.v1.IGetApiOperationRequest

GetApiOperationRequest message or plain object

callback google.cloud.apihub.v1.ApiHub.GetApiOperationCallback

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

Returns:
Type Description
undefined

getApiOperation(request) → {Promise.<google.cloud.apihub.v1.ApiOperation>}

Calls GetApiOperation.

Parameters:
Name Type Description
request google.cloud.apihub.v1.IGetApiOperationRequest

GetApiOperationRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.apihub.v1.ApiOperation>

Promise

getAttribute(request, callback) → {undefined}

Calls GetAttribute.

Parameters:
Name Type Description
request google.cloud.apihub.v1.IGetAttributeRequest

GetAttributeRequest message or plain object

callback google.cloud.apihub.v1.ApiHub.GetAttributeCallback

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

Returns:
Type Description
undefined

getAttribute(request) → {Promise.<google.cloud.apihub.v1.Attribute>}

Calls GetAttribute.

Parameters:
Name Type Description
request google.cloud.apihub.v1.IGetAttributeRequest

GetAttributeRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.apihub.v1.Attribute>

Promise

getDefinition(request, callback) → {undefined}

Calls GetDefinition.

Parameters:
Name Type Description
request google.cloud.apihub.v1.IGetDefinitionRequest

GetDefinitionRequest message or plain object

callback google.cloud.apihub.v1.ApiHub.GetDefinitionCallback

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

Returns:
Type Description
undefined

getDefinition(request) → {Promise.<google.cloud.apihub.v1.Definition>}

Calls GetDefinition.

Parameters:
Name Type Description
request google.cloud.apihub.v1.IGetDefinitionRequest

GetDefinitionRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.apihub.v1.Definition>

Promise

getDeployment(request, callback) → {undefined}

Calls GetDeployment.

Parameters:
Name Type Description
request google.cloud.apihub.v1.IGetDeploymentRequest

GetDeploymentRequest message or plain object

callback google.cloud.apihub.v1.ApiHub.GetDeploymentCallback

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

Returns:
Type Description
undefined

getDeployment(request) → {Promise.<google.cloud.apihub.v1.Deployment>}

Calls GetDeployment.

Parameters:
Name Type Description
request google.cloud.apihub.v1.IGetDeploymentRequest

GetDeploymentRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.apihub.v1.Deployment>

Promise

getExternalApi(request, callback) → {undefined}

Calls GetExternalApi.

Parameters:
Name Type Description
request google.cloud.apihub.v1.IGetExternalApiRequest

GetExternalApiRequest message or plain object

callback google.cloud.apihub.v1.ApiHub.GetExternalApiCallback

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

Returns:
Type Description
undefined

getExternalApi(request) → {Promise.<google.cloud.apihub.v1.ExternalApi>}

Calls GetExternalApi.

Parameters:
Name Type Description
request google.cloud.apihub.v1.IGetExternalApiRequest

GetExternalApiRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.apihub.v1.ExternalApi>

Promise

getSpec(request, callback) → {undefined}

Calls GetSpec.

Parameters:
Name Type Description
request google.cloud.apihub.v1.IGetSpecRequest

GetSpecRequest message or plain object

callback google.cloud.apihub.v1.ApiHub.GetSpecCallback

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

Returns:
Type Description
undefined

getSpec(request) → {Promise.<google.cloud.apihub.v1.Spec>}

Calls GetSpec.

Parameters:
Name Type Description
request google.cloud.apihub.v1.IGetSpecRequest

GetSpecRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.apihub.v1.Spec>

Promise

getSpecContents(request, callback) → {undefined}

Calls GetSpecContents.

Parameters:
Name Type Description
request google.cloud.apihub.v1.IGetSpecContentsRequest

GetSpecContentsRequest message or plain object

callback google.cloud.apihub.v1.ApiHub.GetSpecContentsCallback

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

Returns:
Type Description
undefined

getSpecContents(request) → {Promise.<google.cloud.apihub.v1.SpecContents>}

Calls GetSpecContents.

Parameters:
Name Type Description
request google.cloud.apihub.v1.IGetSpecContentsRequest

GetSpecContentsRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.apihub.v1.SpecContents>

Promise

getVersion(request, callback) → {undefined}

Calls GetVersion.

Parameters:
Name Type Description
request google.cloud.apihub.v1.IGetVersionRequest

GetVersionRequest message or plain object

callback google.cloud.apihub.v1.ApiHub.GetVersionCallback

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

Returns:
Type Description
undefined

getVersion(request) → {Promise.<google.cloud.apihub.v1.Version>}

Calls GetVersion.

Parameters:
Name Type Description
request google.cloud.apihub.v1.IGetVersionRequest

GetVersionRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.apihub.v1.Version>

Promise

listApiOperations(request, callback) → {undefined}

Calls ListApiOperations.

Parameters:
Name Type Description
request google.cloud.apihub.v1.IListApiOperationsRequest

ListApiOperationsRequest message or plain object

callback google.cloud.apihub.v1.ApiHub.ListApiOperationsCallback

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

Returns:
Type Description
undefined

listApiOperations(request) → {Promise.<google.cloud.apihub.v1.ListApiOperationsResponse>}

Calls ListApiOperations.

Parameters:
Name Type Description
request google.cloud.apihub.v1.IListApiOperationsRequest

ListApiOperationsRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.apihub.v1.ListApiOperationsResponse>

Promise

listApis(request, callback) → {undefined}

Calls ListApis.

Parameters:
Name Type Description
request google.cloud.apihub.v1.IListApisRequest

ListApisRequest message or plain object

callback google.cloud.apihub.v1.ApiHub.ListApisCallback

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

Returns:
Type Description
undefined

listApis(request) → {Promise.<google.cloud.apihub.v1.ListApisResponse>}

Calls ListApis.

Parameters:
Name Type Description
request google.cloud.apihub.v1.IListApisRequest

ListApisRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.apihub.v1.ListApisResponse>

Promise

listAttributes(request, callback) → {undefined}

Calls ListAttributes.

Parameters:
Name Type Description
request google.cloud.apihub.v1.IListAttributesRequest

ListAttributesRequest message or plain object

callback google.cloud.apihub.v1.ApiHub.ListAttributesCallback

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

Returns:
Type Description
undefined

listAttributes(request) → {Promise.<google.cloud.apihub.v1.ListAttributesResponse>}

Calls ListAttributes.

Parameters:
Name Type Description
request google.cloud.apihub.v1.IListAttributesRequest

ListAttributesRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.apihub.v1.ListAttributesResponse>

Promise

listDeployments(request, callback) → {undefined}

Calls ListDeployments.

Parameters:
Name Type Description
request google.cloud.apihub.v1.IListDeploymentsRequest

ListDeploymentsRequest message or plain object

callback google.cloud.apihub.v1.ApiHub.ListDeploymentsCallback

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

Returns:
Type Description
undefined

listDeployments(request) → {Promise.<google.cloud.apihub.v1.ListDeploymentsResponse>}

Calls ListDeployments.

Parameters:
Name Type Description
request google.cloud.apihub.v1.IListDeploymentsRequest

ListDeploymentsRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.apihub.v1.ListDeploymentsResponse>

Promise

listExternalApis(request, callback) → {undefined}

Calls ListExternalApis.

Parameters:
Name Type Description
request google.cloud.apihub.v1.IListExternalApisRequest

ListExternalApisRequest message or plain object

callback google.cloud.apihub.v1.ApiHub.ListExternalApisCallback

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

Returns:
Type Description
undefined

listExternalApis(request) → {Promise.<google.cloud.apihub.v1.ListExternalApisResponse>}

Calls ListExternalApis.

Parameters:
Name Type Description
request google.cloud.apihub.v1.IListExternalApisRequest

ListExternalApisRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.apihub.v1.ListExternalApisResponse>

Promise

listSpecs(request, callback) → {undefined}

Calls ListSpecs.

Parameters:
Name Type Description
request google.cloud.apihub.v1.IListSpecsRequest

ListSpecsRequest message or plain object

callback google.cloud.apihub.v1.ApiHub.ListSpecsCallback

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

Returns:
Type Description
undefined

listSpecs(request) → {Promise.<google.cloud.apihub.v1.ListSpecsResponse>}

Calls ListSpecs.

Parameters:
Name Type Description
request google.cloud.apihub.v1.IListSpecsRequest

ListSpecsRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.apihub.v1.ListSpecsResponse>

Promise

listVersions(request, callback) → {undefined}

Calls ListVersions.

Parameters:
Name Type Description
request google.cloud.apihub.v1.IListVersionsRequest

ListVersionsRequest message or plain object

callback google.cloud.apihub.v1.ApiHub.ListVersionsCallback

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

Returns:
Type Description
undefined

listVersions(request) → {Promise.<google.cloud.apihub.v1.ListVersionsResponse>}

Calls ListVersions.

Parameters:
Name Type Description
request google.cloud.apihub.v1.IListVersionsRequest

ListVersionsRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.apihub.v1.ListVersionsResponse>

Promise

searchResources(request, callback) → {undefined}

Calls SearchResources.

Parameters:
Name Type Description
request google.cloud.apihub.v1.ISearchResourcesRequest

SearchResourcesRequest message or plain object

callback google.cloud.apihub.v1.ApiHub.SearchResourcesCallback

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

Returns:
Type Description
undefined

searchResources(request) → {Promise.<google.cloud.apihub.v1.SearchResourcesResponse>}

Calls SearchResources.

Parameters:
Name Type Description
request google.cloud.apihub.v1.ISearchResourcesRequest

SearchResourcesRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.apihub.v1.SearchResourcesResponse>

Promise

updateApi(request, callback) → {undefined}

Calls UpdateApi.

Parameters:
Name Type Description
request google.cloud.apihub.v1.IUpdateApiRequest

UpdateApiRequest message or plain object

callback google.cloud.apihub.v1.ApiHub.UpdateApiCallback

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

Returns:
Type Description
undefined

updateApi(request) → {Promise.<google.cloud.apihub.v1.Api>}

Calls UpdateApi.

Parameters:
Name Type Description
request google.cloud.apihub.v1.IUpdateApiRequest

UpdateApiRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.apihub.v1.Api>

Promise

updateAttribute(request, callback) → {undefined}

Calls UpdateAttribute.

Parameters:
Name Type Description
request google.cloud.apihub.v1.IUpdateAttributeRequest

UpdateAttributeRequest message or plain object

callback google.cloud.apihub.v1.ApiHub.UpdateAttributeCallback

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

Returns:
Type Description
undefined

updateAttribute(request) → {Promise.<google.cloud.apihub.v1.Attribute>}

Calls UpdateAttribute.

Parameters:
Name Type Description
request google.cloud.apihub.v1.IUpdateAttributeRequest

UpdateAttributeRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.apihub.v1.Attribute>

Promise

updateDeployment(request, callback) → {undefined}

Calls UpdateDeployment.

Parameters:
Name Type Description
request google.cloud.apihub.v1.IUpdateDeploymentRequest

UpdateDeploymentRequest message or plain object

callback google.cloud.apihub.v1.ApiHub.UpdateDeploymentCallback

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

Returns:
Type Description
undefined

updateDeployment(request) → {Promise.<google.cloud.apihub.v1.Deployment>}

Calls UpdateDeployment.

Parameters:
Name Type Description
request google.cloud.apihub.v1.IUpdateDeploymentRequest

UpdateDeploymentRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.apihub.v1.Deployment>

Promise

updateExternalApi(request, callback) → {undefined}

Calls UpdateExternalApi.

Parameters:
Name Type Description
request google.cloud.apihub.v1.IUpdateExternalApiRequest

UpdateExternalApiRequest message or plain object

callback google.cloud.apihub.v1.ApiHub.UpdateExternalApiCallback

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

Returns:
Type Description
undefined

updateExternalApi(request) → {Promise.<google.cloud.apihub.v1.ExternalApi>}

Calls UpdateExternalApi.

Parameters:
Name Type Description
request google.cloud.apihub.v1.IUpdateExternalApiRequest

UpdateExternalApiRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.apihub.v1.ExternalApi>

Promise

updateSpec(request, callback) → {undefined}

Calls UpdateSpec.

Parameters:
Name Type Description
request google.cloud.apihub.v1.IUpdateSpecRequest

UpdateSpecRequest message or plain object

callback google.cloud.apihub.v1.ApiHub.UpdateSpecCallback

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

Returns:
Type Description
undefined

updateSpec(request) → {Promise.<google.cloud.apihub.v1.Spec>}

Calls UpdateSpec.

Parameters:
Name Type Description
request google.cloud.apihub.v1.IUpdateSpecRequest

UpdateSpecRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.apihub.v1.Spec>

Promise

updateVersion(request, callback) → {undefined}

Calls UpdateVersion.

Parameters:
Name Type Description
request google.cloud.apihub.v1.IUpdateVersionRequest

UpdateVersionRequest message or plain object

callback google.cloud.apihub.v1.ApiHub.UpdateVersionCallback

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

Returns:
Type Description
undefined

updateVersion(request) → {Promise.<google.cloud.apihub.v1.Version>}

Calls UpdateVersion.

Parameters:
Name Type Description
request google.cloud.apihub.v1.IUpdateVersionRequest

UpdateVersionRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.apihub.v1.Version>

Promise

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

Creates new ApiHub 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
ApiHub

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

Type Definitions

CreateApiCallback(error, responseopt)

Callback as used by createApi.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.apihub.v1.Api <optional>

Api

CreateAttributeCallback(error, responseopt)

Callback as used by createAttribute.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.apihub.v1.Attribute <optional>

Attribute

CreateDeploymentCallback(error, responseopt)

Callback as used by createDeployment.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.apihub.v1.Deployment <optional>

Deployment

CreateExternalApiCallback(error, responseopt)

Callback as used by createExternalApi.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.apihub.v1.ExternalApi <optional>

ExternalApi

CreateSpecCallback(error, responseopt)

Callback as used by createSpec.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.apihub.v1.Spec <optional>

Spec

CreateVersionCallback(error, responseopt)

Callback as used by createVersion.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.apihub.v1.Version <optional>

Version

DeleteApiCallback(error, responseopt)

Callback as used by deleteApi.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.protobuf.Empty <optional>

Empty

DeleteAttributeCallback(error, responseopt)

Callback as used by deleteAttribute.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.protobuf.Empty <optional>

Empty

DeleteDeploymentCallback(error, responseopt)

Callback as used by deleteDeployment.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.protobuf.Empty <optional>

Empty

DeleteExternalApiCallback(error, responseopt)

Callback as used by deleteExternalApi.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.protobuf.Empty <optional>

Empty

DeleteSpecCallback(error, responseopt)

Callback as used by deleteSpec.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.protobuf.Empty <optional>

Empty

DeleteVersionCallback(error, responseopt)

Callback as used by deleteVersion.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.protobuf.Empty <optional>

Empty

GetApiCallback(error, responseopt)

Callback as used by getApi.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.apihub.v1.Api <optional>

Api

GetApiOperationCallback(error, responseopt)

Callback as used by getApiOperation.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.apihub.v1.ApiOperation <optional>

ApiOperation

GetAttributeCallback(error, responseopt)

Callback as used by getAttribute.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.apihub.v1.Attribute <optional>

Attribute

GetDefinitionCallback(error, responseopt)

Callback as used by getDefinition.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.apihub.v1.Definition <optional>

Definition

GetDeploymentCallback(error, responseopt)

Callback as used by getDeployment.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.apihub.v1.Deployment <optional>

Deployment

GetExternalApiCallback(error, responseopt)

Callback as used by getExternalApi.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.apihub.v1.ExternalApi <optional>

ExternalApi

GetSpecCallback(error, responseopt)

Callback as used by getSpec.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.apihub.v1.Spec <optional>

Spec

GetSpecContentsCallback(error, responseopt)

Callback as used by getSpecContents.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.apihub.v1.SpecContents <optional>

SpecContents

GetVersionCallback(error, responseopt)

Callback as used by getVersion.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.apihub.v1.Version <optional>

Version

ListApiOperationsCallback(error, responseopt)

Callback as used by listApiOperations.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.apihub.v1.ListApiOperationsResponse <optional>

ListApiOperationsResponse

ListApisCallback(error, responseopt)

Callback as used by listApis.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.apihub.v1.ListApisResponse <optional>

ListApisResponse

ListAttributesCallback(error, responseopt)

Callback as used by listAttributes.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.apihub.v1.ListAttributesResponse <optional>

ListAttributesResponse

ListDeploymentsCallback(error, responseopt)

Callback as used by listDeployments.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.apihub.v1.ListDeploymentsResponse <optional>

ListDeploymentsResponse

ListExternalApisCallback(error, responseopt)

Callback as used by listExternalApis.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.apihub.v1.ListExternalApisResponse <optional>

ListExternalApisResponse

ListSpecsCallback(error, responseopt)

Callback as used by listSpecs.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.apihub.v1.ListSpecsResponse <optional>

ListSpecsResponse

ListVersionsCallback(error, responseopt)

Callback as used by listVersions.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.apihub.v1.ListVersionsResponse <optional>

ListVersionsResponse

SearchResourcesCallback(error, responseopt)

Callback as used by searchResources.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.apihub.v1.SearchResourcesResponse <optional>

SearchResourcesResponse

UpdateApiCallback(error, responseopt)

Callback as used by updateApi.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.apihub.v1.Api <optional>

Api

UpdateAttributeCallback(error, responseopt)

Callback as used by updateAttribute.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.apihub.v1.Attribute <optional>

Attribute

UpdateDeploymentCallback(error, responseopt)

Callback as used by updateDeployment.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.apihub.v1.Deployment <optional>

Deployment

UpdateExternalApiCallback(error, responseopt)

Callback as used by updateExternalApi.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.apihub.v1.ExternalApi <optional>

ExternalApi

UpdateSpecCallback(error, responseopt)

Callback as used by updateSpec.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.apihub.v1.Spec <optional>

Spec

UpdateVersionCallback(error, responseopt)

Callback as used by updateVersion.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.apihub.v1.Version <optional>

Version