ApiHubPlugin

google.cloud.apihub.v1. ApiHubPlugin

Represents an ApiHubPlugin

Constructor

new ApiHubPlugin(rpcImpl, requestDelimitedopt, responseDelimitedopt)

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

disablePlugin(request, callback) → {undefined}

Calls DisablePlugin.

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

DisablePluginRequest message or plain object

callback google.cloud.apihub.v1.ApiHubPlugin.DisablePluginCallback

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

Returns:
Type Description
undefined

disablePlugin(request) → {Promise.<google.cloud.apihub.v1.Plugin>}

Calls DisablePlugin.

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

DisablePluginRequest message or plain object

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

Promise

enablePlugin(request, callback) → {undefined}

Calls EnablePlugin.

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

EnablePluginRequest message or plain object

callback google.cloud.apihub.v1.ApiHubPlugin.EnablePluginCallback

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

Returns:
Type Description
undefined

enablePlugin(request) → {Promise.<google.cloud.apihub.v1.Plugin>}

Calls EnablePlugin.

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

EnablePluginRequest message or plain object

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

Promise

getPlugin(request, callback) → {undefined}

Calls GetPlugin.

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

GetPluginRequest message or plain object

callback google.cloud.apihub.v1.ApiHubPlugin.GetPluginCallback

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

Returns:
Type Description
undefined

getPlugin(request) → {Promise.<google.cloud.apihub.v1.Plugin>}

Calls GetPlugin.

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

GetPluginRequest message or plain object

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

Promise

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

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

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

Type Definitions

DisablePluginCallback(error, responseopt)

Callback as used by disablePlugin.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

Plugin

EnablePluginCallback(error, responseopt)

Callback as used by enablePlugin.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

Plugin

GetPluginCallback(error, responseopt)

Callback as used by getPlugin.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

Plugin