API hub v1 API - Class ApiHubPlugin.ApiHubPluginBase (1.0.0-beta01)

[BindServiceMethod(typeof(ApiHubPlugin), "BindService")]
public abstract class ApiHubPlugin.ApiHubPluginBase

Reference documentation and code samples for the API hub v1 API class ApiHubPlugin.ApiHubPluginBase.

Base class for server-side implementations of ApiHubPlugin

Inheritance

object > ApiHubPlugin.ApiHubPluginBase

Namespace

Google.Cloud.ApiHub.V1

Assembly

Google.Cloud.ApiHub.V1.dll

Methods

DisablePlugin(DisablePluginRequest, ServerCallContext)

public virtual Task<Plugin> DisablePlugin(DisablePluginRequest request, ServerCallContext context)

Disables a plugin. The state of the plugin after disabling is DISABLED

Parameters
Name Description
request DisablePluginRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskPlugin

The response to send back to the client (wrapped by a task).

EnablePlugin(EnablePluginRequest, ServerCallContext)

public virtual Task<Plugin> EnablePlugin(EnablePluginRequest request, ServerCallContext context)

Enables a plugin. The state of the plugin after enabling is ENABLED

Parameters
Name Description
request EnablePluginRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskPlugin

The response to send back to the client (wrapped by a task).

GetPlugin(GetPluginRequest, ServerCallContext)

public virtual Task<Plugin> GetPlugin(GetPluginRequest request, ServerCallContext context)

Get details about an API Hub plugin.

Parameters
Name Description
request GetPluginRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskPlugin

The response to send back to the client (wrapped by a task).