ApiHubDependencies

google.cloud.apihub.v1. ApiHubDependencies

Represents an ApiHubDependencies

Constructor

new ApiHubDependencies(rpcImpl, requestDelimitedopt, responseDelimitedopt)

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

createDependency(request, callback) → {undefined}

Calls CreateDependency.

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

CreateDependencyRequest message or plain object

callback google.cloud.apihub.v1.ApiHubDependencies.CreateDependencyCallback

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

Returns:
Type Description
undefined

createDependency(request) → {Promise.<google.cloud.apihub.v1.Dependency>}

Calls CreateDependency.

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

CreateDependencyRequest message or plain object

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

Promise

deleteDependency(request, callback) → {undefined}

Calls DeleteDependency.

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

DeleteDependencyRequest message or plain object

callback google.cloud.apihub.v1.ApiHubDependencies.DeleteDependencyCallback

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

Returns:
Type Description
undefined

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

Calls DeleteDependency.

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

DeleteDependencyRequest message or plain object

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

Promise

getDependency(request, callback) → {undefined}

Calls GetDependency.

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

GetDependencyRequest message or plain object

callback google.cloud.apihub.v1.ApiHubDependencies.GetDependencyCallback

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

Returns:
Type Description
undefined

getDependency(request) → {Promise.<google.cloud.apihub.v1.Dependency>}

Calls GetDependency.

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

GetDependencyRequest message or plain object

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

Promise

listDependencies(request, callback) → {undefined}

Calls ListDependencies.

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

ListDependenciesRequest message or plain object

callback google.cloud.apihub.v1.ApiHubDependencies.ListDependenciesCallback

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

Returns:
Type Description
undefined

listDependencies(request) → {Promise.<google.cloud.apihub.v1.ListDependenciesResponse>}

Calls ListDependencies.

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

ListDependenciesRequest message or plain object

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

Promise

updateDependency(request, callback) → {undefined}

Calls UpdateDependency.

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

UpdateDependencyRequest message or plain object

callback google.cloud.apihub.v1.ApiHubDependencies.UpdateDependencyCallback

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

Returns:
Type Description
undefined

updateDependency(request) → {Promise.<google.cloud.apihub.v1.Dependency>}

Calls UpdateDependency.

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

UpdateDependencyRequest message or plain object

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

Promise

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

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

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

Type Definitions

CreateDependencyCallback(error, responseopt)

Callback as used by createDependency.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

Dependency

DeleteDependencyCallback(error, responseopt)

Callback as used by deleteDependency.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.protobuf.Empty <optional>

Empty

GetDependencyCallback(error, responseopt)

Callback as used by getDependency.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

Dependency

ListDependenciesCallback(error, responseopt)

Callback as used by listDependencies.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

ListDependenciesResponse

UpdateDependencyCallback(error, responseopt)

Callback as used by updateDependency.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

Dependency