# API hub v1 API - Class ApiHubPluginClient (1.2.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [1.2.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ApiHubPluginClient)
- [1.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/1.1.0/Google.Cloud.ApiHub.V1.ApiHubPluginClient)
- [1.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/1.0.0/Google.Cloud.ApiHub.V1.ApiHubPluginClient)

    public abstract class ApiHubPluginClient

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

ApiHubPlugin client wrapper, for convenient use.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> ApiHubPluginClient

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Derived Types

[ApiHubPluginClientImpl](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ApiHubPluginClientImpl)

## Namespace

[Google.Cloud.ApiHub.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1)

## Assembly

Google.Cloud.ApiHub.V1.dll

## Remarks

This service is used for managing plugins inside the API Hub.

## Properties

### CreatePluginInstanceOperationsClient

    public virtual OperationsClient CreatePluginInstanceOperationsClient { get; }

The long-running operations client for `CreatePluginInstance`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.OperationsClient.html` |   |

### DefaultEndpoint

    public static string DefaultEndpoint { get; }

The default endpoint for the ApiHubPlugin service, which is a host of "apihub.googleapis.com" and a port of
443.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### DefaultScopes

    public static IReadOnlyList<string> DefaultScopes { get; }

The default ApiHubPlugin scopes.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlylist-1https://learn.microsoft.com/dotnet/api/system.string` |   |

**Remarks** The default ApiHubPlugin scopes are:

- <https://www.googleapis.com/auth/cloud-platform>

<br />

### DeletePluginInstanceOperationsClient

    public virtual OperationsClient DeletePluginInstanceOperationsClient { get; }

The long-running operations client for `DeletePluginInstance`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.OperationsClient.html` |   |

### DeletePluginOperationsClient

    public virtual OperationsClient DeletePluginOperationsClient { get; }

The long-running operations client for `DeletePlugin`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.OperationsClient.html` |   |

### DisablePluginInstanceActionOperationsClient

    public virtual OperationsClient DisablePluginInstanceActionOperationsClient { get; }

The long-running operations client for `DisablePluginInstanceAction`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.OperationsClient.html` |   |

### EnablePluginInstanceActionOperationsClient

    public virtual OperationsClient EnablePluginInstanceActionOperationsClient { get; }

The long-running operations client for `EnablePluginInstanceAction`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.OperationsClient.html` |   |

### ExecutePluginInstanceActionOperationsClient

    public virtual OperationsClient ExecutePluginInstanceActionOperationsClient { get; }

The long-running operations client for `ExecutePluginInstanceAction`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.OperationsClient.html` |   |

### GrpcClient

    public virtual ApiHubPlugin.ApiHubPluginClient GrpcClient { get; }

The underlying gRPC ApiHubPlugin client

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ApiHubPluginhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ApiHubPlugin.ApiHubPluginClient` |   |

### LocationsClient

    public virtual LocationsClient LocationsClient { get; }

The [LocationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Location/latest/Google.Cloud.Location.LocationsClient.html) associated with this client.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Location/latest/Google.Cloud.Location.LocationsClient.html` |   |

### ServiceMetadata

    public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.ServiceMetadata.html` |   |

## Methods

### Create()

    public static ApiHubPluginClient Create()

Synchronously creates a [ApiHubPluginClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ApiHubPluginClient) using the default credentials, endpoint and
settings. To specify custom credentials or other settings, use [ApiHubPluginClientBuilder](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ApiHubPluginClientBuilder).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ApiHubPluginClient` | The created [ApiHubPluginClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ApiHubPluginClient). |

### CreateAsync(CancellationToken)

    public static Task<ApiHubPluginClient> CreateAsync(CancellationToken cancellationToken = default)

Asynchronously creates a [ApiHubPluginClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ApiHubPluginClient) using the default credentials, endpoint and
settings. To specify custom credentials or other settings, use [ApiHubPluginClientBuilder](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ApiHubPluginClientBuilder).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` The [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use while creating the client. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ApiHubPluginClient` | The task representing the created [ApiHubPluginClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ApiHubPluginClient). |

### CreatePlugin(LocationName, Plugin, string, CallSettings)

    public virtual Plugin CreatePlugin(LocationName parent, Plugin plugin, string pluginId, CallSettings callSettings = null)

Create an API Hub plugin resource in the API hub.
Once a plugin is created, it can be used to create plugin instances.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html` Required. The parent resource where this plugin will be created. Format: `projects/{project}/locations/{location}`. |
| `plugin` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.Plugin` Required. The plugin to create. |
| `pluginId` | `https://learn.microsoft.com/dotnet/api/system.string` Optional. The ID to use for the Plugin resource, which will become the final component of the Plugin's resource name. This field is optional. - If provided, the same will be used. The service will throw an error if the specified id is already used by another Plugin resource in the API hub instance. - If not provided, a system generated id will be used. This value should be 4-63 characters, overall resource name which will be of format `projects/{project}/locations/{location}/plugins/{plugin}`, its length is limited to 1000 characters and valid characters are /\[a-z\]\[A-Z\]\[0-9\]-_/. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.Plugin` | The RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = ApiHubPluginClient.Create();
    // Initialize request argument(s)
    LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
    Plugin plugin = new Plugin();
    string pluginId = "";
    // Make the request
    Plugin response = apiHubPluginClient.CreatePlugin(parent, plugin, pluginId);

### CreatePlugin(CreatePluginRequest, CallSettings)

    public virtual Plugin CreatePlugin(CreatePluginRequest request, CallSettings callSettings = null)

Create an API Hub plugin resource in the API hub.
Once a plugin is created, it can be used to create plugin instances.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.CreatePluginRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.Plugin` | The RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = ApiHubPluginClient.Create();
    // Initialize request argument(s)
    CreatePluginRequest request = new CreatePluginRequest
    {
        ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
        PluginId = "",
        Plugin = new Plugin(),
    };
    // Make the request
    Plugin response = apiHubPluginClient.CreatePlugin(request);

### CreatePlugin(string, Plugin, string, CallSettings)

    public virtual Plugin CreatePlugin(string parent, Plugin plugin, string pluginId, CallSettings callSettings = null)

Create an API Hub plugin resource in the API hub.
Once a plugin is created, it can be used to create plugin instances.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The parent resource where this plugin will be created. Format: `projects/{project}/locations/{location}`. |
| `plugin` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.Plugin` Required. The plugin to create. |
| `pluginId` | `https://learn.microsoft.com/dotnet/api/system.string` Optional. The ID to use for the Plugin resource, which will become the final component of the Plugin's resource name. This field is optional. - If provided, the same will be used. The service will throw an error if the specified id is already used by another Plugin resource in the API hub instance. - If not provided, a system generated id will be used. This value should be 4-63 characters, overall resource name which will be of format `projects/{project}/locations/{location}/plugins/{plugin}`, its length is limited to 1000 characters and valid characters are /\[a-z\]\[A-Z\]\[0-9\]-_/. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.Plugin` | The RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = ApiHubPluginClient.Create();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/locations/[LOCATION]";
    Plugin plugin = new Plugin();
    string pluginId = "";
    // Make the request
    Plugin response = apiHubPluginClient.CreatePlugin(parent, plugin, pluginId);

### CreatePluginAsync(LocationName, Plugin, string, CallSettings)

    public virtual Task<Plugin> CreatePluginAsync(LocationName parent, Plugin plugin, string pluginId, CallSettings callSettings = null)

Create an API Hub plugin resource in the API hub.
Once a plugin is created, it can be used to create plugin instances.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html` Required. The parent resource where this plugin will be created. Format: `projects/{project}/locations/{location}`. |
| `plugin` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.Plugin` Required. The plugin to create. |
| `pluginId` | `https://learn.microsoft.com/dotnet/api/system.string` Optional. The ID to use for the Plugin resource, which will become the final component of the Plugin's resource name. This field is optional. - If provided, the same will be used. The service will throw an error if the specified id is already used by another Plugin resource in the API hub instance. - If not provided, a system generated id will be used. This value should be 4-63 characters, overall resource name which will be of format `projects/{project}/locations/{location}/plugins/{plugin}`, its length is limited to 1000 characters and valid characters are /\[a-z\]\[A-Z\]\[0-9\]-_/. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.Plugin` | A Task containing the RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
    // Initialize request argument(s)
    LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
    Plugin plugin = new Plugin();
    string pluginId = "";
    // Make the request
    Plugin response = await apiHubPluginClient.CreatePluginAsync(parent, plugin, pluginId);

### CreatePluginAsync(LocationName, Plugin, string, CancellationToken)

    public virtual Task<Plugin> CreatePluginAsync(LocationName parent, Plugin plugin, string pluginId, CancellationToken cancellationToken)

Create an API Hub plugin resource in the API hub.
Once a plugin is created, it can be used to create plugin instances.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html` Required. The parent resource where this plugin will be created. Format: `projects/{project}/locations/{location}`. |
| `plugin` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.Plugin` Required. The plugin to create. |
| `pluginId` | `https://learn.microsoft.com/dotnet/api/system.string` Optional. The ID to use for the Plugin resource, which will become the final component of the Plugin's resource name. This field is optional. - If provided, the same will be used. The service will throw an error if the specified id is already used by another Plugin resource in the API hub instance. - If not provided, a system generated id will be used. This value should be 4-63 characters, overall resource name which will be of format `projects/{project}/locations/{location}/plugins/{plugin}`, its length is limited to 1000 characters and valid characters are /\[a-z\]\[A-Z\]\[0-9\]-_/. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.Plugin` | A Task containing the RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
    // Initialize request argument(s)
    LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
    Plugin plugin = new Plugin();
    string pluginId = "";
    // Make the request
    Plugin response = await apiHubPluginClient.CreatePluginAsync(parent, plugin, pluginId);

### CreatePluginAsync(CreatePluginRequest, CallSettings)

    public virtual Task<Plugin> CreatePluginAsync(CreatePluginRequest request, CallSettings callSettings = null)

Create an API Hub plugin resource in the API hub.
Once a plugin is created, it can be used to create plugin instances.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.CreatePluginRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.Plugin` | A Task containing the RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
    // Initialize request argument(s)
    CreatePluginRequest request = new CreatePluginRequest
    {
        ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
        PluginId = "",
        Plugin = new Plugin(),
    };
    // Make the request
    Plugin response = await apiHubPluginClient.CreatePluginAsync(request);

### CreatePluginAsync(CreatePluginRequest, CancellationToken)

    public virtual Task<Plugin> CreatePluginAsync(CreatePluginRequest request, CancellationToken cancellationToken)

Create an API Hub plugin resource in the API hub.
Once a plugin is created, it can be used to create plugin instances.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.CreatePluginRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.Plugin` | A Task containing the RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
    // Initialize request argument(s)
    CreatePluginRequest request = new CreatePluginRequest
    {
        ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
        PluginId = "",
        Plugin = new Plugin(),
    };
    // Make the request
    Plugin response = await apiHubPluginClient.CreatePluginAsync(request);

### CreatePluginAsync(string, Plugin, string, CallSettings)

    public virtual Task<Plugin> CreatePluginAsync(string parent, Plugin plugin, string pluginId, CallSettings callSettings = null)

Create an API Hub plugin resource in the API hub.
Once a plugin is created, it can be used to create plugin instances.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The parent resource where this plugin will be created. Format: `projects/{project}/locations/{location}`. |
| `plugin` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.Plugin` Required. The plugin to create. |
| `pluginId` | `https://learn.microsoft.com/dotnet/api/system.string` Optional. The ID to use for the Plugin resource, which will become the final component of the Plugin's resource name. This field is optional. - If provided, the same will be used. The service will throw an error if the specified id is already used by another Plugin resource in the API hub instance. - If not provided, a system generated id will be used. This value should be 4-63 characters, overall resource name which will be of format `projects/{project}/locations/{location}/plugins/{plugin}`, its length is limited to 1000 characters and valid characters are /\[a-z\]\[A-Z\]\[0-9\]-_/. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.Plugin` | A Task containing the RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/locations/[LOCATION]";
    Plugin plugin = new Plugin();
    string pluginId = "";
    // Make the request
    Plugin response = await apiHubPluginClient.CreatePluginAsync(parent, plugin, pluginId);

### CreatePluginAsync(string, Plugin, string, CancellationToken)

    public virtual Task<Plugin> CreatePluginAsync(string parent, Plugin plugin, string pluginId, CancellationToken cancellationToken)

Create an API Hub plugin resource in the API hub.
Once a plugin is created, it can be used to create plugin instances.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The parent resource where this plugin will be created. Format: `projects/{project}/locations/{location}`. |
| `plugin` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.Plugin` Required. The plugin to create. |
| `pluginId` | `https://learn.microsoft.com/dotnet/api/system.string` Optional. The ID to use for the Plugin resource, which will become the final component of the Plugin's resource name. This field is optional. - If provided, the same will be used. The service will throw an error if the specified id is already used by another Plugin resource in the API hub instance. - If not provided, a system generated id will be used. This value should be 4-63 characters, overall resource name which will be of format `projects/{project}/locations/{location}/plugins/{plugin}`, its length is limited to 1000 characters and valid characters are /\[a-z\]\[A-Z\]\[0-9\]-_/. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.Plugin` | A Task containing the RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/locations/[LOCATION]";
    Plugin plugin = new Plugin();
    string pluginId = "";
    // Make the request
    Plugin response = await apiHubPluginClient.CreatePluginAsync(parent, plugin, pluginId);

### CreatePluginInstance(CreatePluginInstanceRequest, CallSettings)

    public virtual Operation<PluginInstance, OperationMetadata> CreatePluginInstance(CreatePluginInstanceRequest request, CallSettings callSettings = null)

Creates a Plugin instance in the API hub.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.CreatePluginInstanceRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.PluginInstancehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.OperationMetadata` | The RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = ApiHubPluginClient.Create();
    // Initialize request argument(s)
    CreatePluginInstanceRequest request = new CreatePluginInstanceRequest
    {
        ParentAsPluginName = PluginName.FromProjectLocationPlugin("[PROJECT]", "[LOCATION]", "[PLUGIN]"),
        PluginInstanceId = "",
        PluginInstance = new PluginInstance(),
    };
    // Make the request
    Operation<PluginInstance, OperationMetadata> response = apiHubPluginClient.CreatePluginInstance(request);

    // Poll until the returned long-running operation is complete
    Operation<PluginInstance, OperationMetadata> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    PluginInstance result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<PluginInstance, OperationMetadata> retrievedResponse = apiHubPluginClient.PollOnceCreatePluginInstance(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        PluginInstance retrievedResult = retrievedResponse.Result;
    }

### CreatePluginInstance(PluginName, PluginInstance, string, CallSettings)

    public virtual Operation<PluginInstance, OperationMetadata> CreatePluginInstance(PluginName parent, PluginInstance pluginInstance, string pluginInstanceId, CallSettings callSettings = null)

Creates a Plugin instance in the API hub.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.PluginName` Required. The parent of the plugin instance resource. Format: `projects/{project}/locations/{location}/plugins/{plugin}` |
| `pluginInstance` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.PluginInstance` Required. The plugin instance to create. |
| `pluginInstanceId` | `https://learn.microsoft.com/dotnet/api/system.string` Optional. The ID to use for the plugin instance, which will become the final component of the plugin instance's resource name. This field is optional. - If provided, the same will be used. The service will throw an error if the specified id is already used by another plugin instance in the plugin resource. - If not provided, a system generated id will be used. This value should be 4-63 characters, and valid characters are /\[a-z\]\[A-Z\]\[0-9\]-_/. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.PluginInstancehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.OperationMetadata` | The RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = ApiHubPluginClient.Create();
    // Initialize request argument(s)
    PluginName parent = PluginName.FromProjectLocationPlugin("[PROJECT]", "[LOCATION]", "[PLUGIN]");
    PluginInstance pluginInstance = new PluginInstance();
    string pluginInstanceId = "";
    // Make the request
    Operation<PluginInstance, OperationMetadata> response = apiHubPluginClient.CreatePluginInstance(parent, pluginInstance, pluginInstanceId);

    // Poll until the returned long-running operation is complete
    Operation<PluginInstance, OperationMetadata> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    PluginInstance result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<PluginInstance, OperationMetadata> retrievedResponse = apiHubPluginClient.PollOnceCreatePluginInstance(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        PluginInstance retrievedResult = retrievedResponse.Result;
    }

### CreatePluginInstance(string, PluginInstance, string, CallSettings)

    public virtual Operation<PluginInstance, OperationMetadata> CreatePluginInstance(string parent, PluginInstance pluginInstance, string pluginInstanceId, CallSettings callSettings = null)

Creates a Plugin instance in the API hub.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The parent of the plugin instance resource. Format: `projects/{project}/locations/{location}/plugins/{plugin}` |
| `pluginInstance` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.PluginInstance` Required. The plugin instance to create. |
| `pluginInstanceId` | `https://learn.microsoft.com/dotnet/api/system.string` Optional. The ID to use for the plugin instance, which will become the final component of the plugin instance's resource name. This field is optional. - If provided, the same will be used. The service will throw an error if the specified id is already used by another plugin instance in the plugin resource. - If not provided, a system generated id will be used. This value should be 4-63 characters, and valid characters are /\[a-z\]\[A-Z\]\[0-9\]-_/. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.PluginInstancehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.OperationMetadata` | The RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = ApiHubPluginClient.Create();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/locations/[LOCATION]/plugins/[PLUGIN]";
    PluginInstance pluginInstance = new PluginInstance();
    string pluginInstanceId = "";
    // Make the request
    Operation<PluginInstance, OperationMetadata> response = apiHubPluginClient.CreatePluginInstance(parent, pluginInstance, pluginInstanceId);

    // Poll until the returned long-running operation is complete
    Operation<PluginInstance, OperationMetadata> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    PluginInstance result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<PluginInstance, OperationMetadata> retrievedResponse = apiHubPluginClient.PollOnceCreatePluginInstance(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        PluginInstance retrievedResult = retrievedResponse.Result;
    }

### CreatePluginInstanceAsync(CreatePluginInstanceRequest, CallSettings)

    public virtual Task<Operation<PluginInstance, OperationMetadata>> CreatePluginInstanceAsync(CreatePluginInstanceRequest request, CallSettings callSettings = null)

Creates a Plugin instance in the API hub.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.CreatePluginInstanceRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.PluginInstancehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.OperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
    // Initialize request argument(s)
    CreatePluginInstanceRequest request = new CreatePluginInstanceRequest
    {
        ParentAsPluginName = PluginName.FromProjectLocationPlugin("[PROJECT]", "[LOCATION]", "[PLUGIN]"),
        PluginInstanceId = "",
        PluginInstance = new PluginInstance(),
    };
    // Make the request
    Operation<PluginInstance, OperationMetadata> response = await apiHubPluginClient.CreatePluginInstanceAsync(request);

    // Poll until the returned long-running operation is complete
    Operation<PluginInstance, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    PluginInstance result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<PluginInstance, OperationMetadata> retrievedResponse = await apiHubPluginClient.PollOnceCreatePluginInstanceAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        PluginInstance retrievedResult = retrievedResponse.Result;
    }

### CreatePluginInstanceAsync(CreatePluginInstanceRequest, CancellationToken)

    public virtual Task<Operation<PluginInstance, OperationMetadata>> CreatePluginInstanceAsync(CreatePluginInstanceRequest request, CancellationToken cancellationToken)

Creates a Plugin instance in the API hub.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.CreatePluginInstanceRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.PluginInstancehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.OperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
    // Initialize request argument(s)
    CreatePluginInstanceRequest request = new CreatePluginInstanceRequest
    {
        ParentAsPluginName = PluginName.FromProjectLocationPlugin("[PROJECT]", "[LOCATION]", "[PLUGIN]"),
        PluginInstanceId = "",
        PluginInstance = new PluginInstance(),
    };
    // Make the request
    Operation<PluginInstance, OperationMetadata> response = await apiHubPluginClient.CreatePluginInstanceAsync(request);

    // Poll until the returned long-running operation is complete
    Operation<PluginInstance, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    PluginInstance result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<PluginInstance, OperationMetadata> retrievedResponse = await apiHubPluginClient.PollOnceCreatePluginInstanceAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        PluginInstance retrievedResult = retrievedResponse.Result;
    }

### CreatePluginInstanceAsync(PluginName, PluginInstance, string, CallSettings)

    public virtual Task<Operation<PluginInstance, OperationMetadata>> CreatePluginInstanceAsync(PluginName parent, PluginInstance pluginInstance, string pluginInstanceId, CallSettings callSettings = null)

Creates a Plugin instance in the API hub.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.PluginName` Required. The parent of the plugin instance resource. Format: `projects/{project}/locations/{location}/plugins/{plugin}` |
| `pluginInstance` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.PluginInstance` Required. The plugin instance to create. |
| `pluginInstanceId` | `https://learn.microsoft.com/dotnet/api/system.string` Optional. The ID to use for the plugin instance, which will become the final component of the plugin instance's resource name. This field is optional. - If provided, the same will be used. The service will throw an error if the specified id is already used by another plugin instance in the plugin resource. - If not provided, a system generated id will be used. This value should be 4-63 characters, and valid characters are /\[a-z\]\[A-Z\]\[0-9\]-_/. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.PluginInstancehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.OperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
    // Initialize request argument(s)
    PluginName parent = PluginName.FromProjectLocationPlugin("[PROJECT]", "[LOCATION]", "[PLUGIN]");
    PluginInstance pluginInstance = new PluginInstance();
    string pluginInstanceId = "";
    // Make the request
    Operation<PluginInstance, OperationMetadata> response = await apiHubPluginClient.CreatePluginInstanceAsync(parent, pluginInstance, pluginInstanceId);

    // Poll until the returned long-running operation is complete
    Operation<PluginInstance, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    PluginInstance result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<PluginInstance, OperationMetadata> retrievedResponse = await apiHubPluginClient.PollOnceCreatePluginInstanceAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        PluginInstance retrievedResult = retrievedResponse.Result;
    }

### CreatePluginInstanceAsync(PluginName, PluginInstance, string, CancellationToken)

    public virtual Task<Operation<PluginInstance, OperationMetadata>> CreatePluginInstanceAsync(PluginName parent, PluginInstance pluginInstance, string pluginInstanceId, CancellationToken cancellationToken)

Creates a Plugin instance in the API hub.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.PluginName` Required. The parent of the plugin instance resource. Format: `projects/{project}/locations/{location}/plugins/{plugin}` |
| `pluginInstance` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.PluginInstance` Required. The plugin instance to create. |
| `pluginInstanceId` | `https://learn.microsoft.com/dotnet/api/system.string` Optional. The ID to use for the plugin instance, which will become the final component of the plugin instance's resource name. This field is optional. - If provided, the same will be used. The service will throw an error if the specified id is already used by another plugin instance in the plugin resource. - If not provided, a system generated id will be used. This value should be 4-63 characters, and valid characters are /\[a-z\]\[A-Z\]\[0-9\]-_/. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.PluginInstancehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.OperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
    // Initialize request argument(s)
    PluginName parent = PluginName.FromProjectLocationPlugin("[PROJECT]", "[LOCATION]", "[PLUGIN]");
    PluginInstance pluginInstance = new PluginInstance();
    string pluginInstanceId = "";
    // Make the request
    Operation<PluginInstance, OperationMetadata> response = await apiHubPluginClient.CreatePluginInstanceAsync(parent, pluginInstance, pluginInstanceId);

    // Poll until the returned long-running operation is complete
    Operation<PluginInstance, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    PluginInstance result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<PluginInstance, OperationMetadata> retrievedResponse = await apiHubPluginClient.PollOnceCreatePluginInstanceAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        PluginInstance retrievedResult = retrievedResponse.Result;
    }

### CreatePluginInstanceAsync(string, PluginInstance, string, CallSettings)

    public virtual Task<Operation<PluginInstance, OperationMetadata>> CreatePluginInstanceAsync(string parent, PluginInstance pluginInstance, string pluginInstanceId, CallSettings callSettings = null)

Creates a Plugin instance in the API hub.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The parent of the plugin instance resource. Format: `projects/{project}/locations/{location}/plugins/{plugin}` |
| `pluginInstance` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.PluginInstance` Required. The plugin instance to create. |
| `pluginInstanceId` | `https://learn.microsoft.com/dotnet/api/system.string` Optional. The ID to use for the plugin instance, which will become the final component of the plugin instance's resource name. This field is optional. - If provided, the same will be used. The service will throw an error if the specified id is already used by another plugin instance in the plugin resource. - If not provided, a system generated id will be used. This value should be 4-63 characters, and valid characters are /\[a-z\]\[A-Z\]\[0-9\]-_/. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.PluginInstancehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.OperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/locations/[LOCATION]/plugins/[PLUGIN]";
    PluginInstance pluginInstance = new PluginInstance();
    string pluginInstanceId = "";
    // Make the request
    Operation<PluginInstance, OperationMetadata> response = await apiHubPluginClient.CreatePluginInstanceAsync(parent, pluginInstance, pluginInstanceId);

    // Poll until the returned long-running operation is complete
    Operation<PluginInstance, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    PluginInstance result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<PluginInstance, OperationMetadata> retrievedResponse = await apiHubPluginClient.PollOnceCreatePluginInstanceAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        PluginInstance retrievedResult = retrievedResponse.Result;
    }

### CreatePluginInstanceAsync(string, PluginInstance, string, CancellationToken)

    public virtual Task<Operation<PluginInstance, OperationMetadata>> CreatePluginInstanceAsync(string parent, PluginInstance pluginInstance, string pluginInstanceId, CancellationToken cancellationToken)

Creates a Plugin instance in the API hub.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The parent of the plugin instance resource. Format: `projects/{project}/locations/{location}/plugins/{plugin}` |
| `pluginInstance` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.PluginInstance` Required. The plugin instance to create. |
| `pluginInstanceId` | `https://learn.microsoft.com/dotnet/api/system.string` Optional. The ID to use for the plugin instance, which will become the final component of the plugin instance's resource name. This field is optional. - If provided, the same will be used. The service will throw an error if the specified id is already used by another plugin instance in the plugin resource. - If not provided, a system generated id will be used. This value should be 4-63 characters, and valid characters are /\[a-z\]\[A-Z\]\[0-9\]-_/. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.PluginInstancehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.OperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/locations/[LOCATION]/plugins/[PLUGIN]";
    PluginInstance pluginInstance = new PluginInstance();
    string pluginInstanceId = "";
    // Make the request
    Operation<PluginInstance, OperationMetadata> response = await apiHubPluginClient.CreatePluginInstanceAsync(parent, pluginInstance, pluginInstanceId);

    // Poll until the returned long-running operation is complete
    Operation<PluginInstance, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    PluginInstance result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<PluginInstance, OperationMetadata> retrievedResponse = await apiHubPluginClient.PollOnceCreatePluginInstanceAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        PluginInstance retrievedResult = retrievedResponse.Result;
    }

### DeletePlugin(DeletePluginRequest, CallSettings)

    public virtual Operation<Empty, OperationMetadata> DeletePlugin(DeletePluginRequest request, CallSettings callSettings = null)

Delete a Plugin in API hub.
Note, only user owned plugins can be deleted via this method.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.DeletePluginRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.OperationMetadata` | The RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = ApiHubPluginClient.Create();
    // Initialize request argument(s)
    DeletePluginRequest request = new DeletePluginRequest
    {
        PluginName = PluginName.FromProjectLocationPlugin("[PROJECT]", "[LOCATION]", "[PLUGIN]"),
    };
    // Make the request
    Operation<Empty, OperationMetadata> response = apiHubPluginClient.DeletePlugin(request);

    // Poll until the returned long-running operation is complete
    Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    Empty result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Empty, OperationMetadata> retrievedResponse = apiHubPluginClient.PollOnceDeletePlugin(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Empty retrievedResult = retrievedResponse.Result;
    }

### DeletePlugin(PluginName, CallSettings)

    public virtual Operation<Empty, OperationMetadata> DeletePlugin(PluginName name, CallSettings callSettings = null)

Delete a Plugin in API hub.
Note, only user owned plugins can be deleted via this method.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.PluginName` Required. The name of the Plugin resource to delete. Format: `projects/{project}/locations/{location}/plugins/{plugin}` |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.OperationMetadata` | The RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = ApiHubPluginClient.Create();
    // Initialize request argument(s)
    PluginName name = PluginName.FromProjectLocationPlugin("[PROJECT]", "[LOCATION]", "[PLUGIN]");
    // Make the request
    Operation<Empty, OperationMetadata> response = apiHubPluginClient.DeletePlugin(name);

    // Poll until the returned long-running operation is complete
    Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    Empty result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Empty, OperationMetadata> retrievedResponse = apiHubPluginClient.PollOnceDeletePlugin(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Empty retrievedResult = retrievedResponse.Result;
    }

### DeletePlugin(string, CallSettings)

    public virtual Operation<Empty, OperationMetadata> DeletePlugin(string name, CallSettings callSettings = null)

Delete a Plugin in API hub.
Note, only user owned plugins can be deleted via this method.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the Plugin resource to delete. Format: `projects/{project}/locations/{location}/plugins/{plugin}` |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.OperationMetadata` | The RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = ApiHubPluginClient.Create();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/plugins/[PLUGIN]";
    // Make the request
    Operation<Empty, OperationMetadata> response = apiHubPluginClient.DeletePlugin(name);

    // Poll until the returned long-running operation is complete
    Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    Empty result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Empty, OperationMetadata> retrievedResponse = apiHubPluginClient.PollOnceDeletePlugin(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Empty retrievedResult = retrievedResponse.Result;
    }

### DeletePluginAsync(DeletePluginRequest, CallSettings)

    public virtual Task<Operation<Empty, OperationMetadata>> DeletePluginAsync(DeletePluginRequest request, CallSettings callSettings = null)

Delete a Plugin in API hub.
Note, only user owned plugins can be deleted via this method.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.DeletePluginRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.OperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
    // Initialize request argument(s)
    DeletePluginRequest request = new DeletePluginRequest
    {
        PluginName = PluginName.FromProjectLocationPlugin("[PROJECT]", "[LOCATION]", "[PLUGIN]"),
    };
    // Make the request
    Operation<Empty, OperationMetadata> response = await apiHubPluginClient.DeletePluginAsync(request);

    // Poll until the returned long-running operation is complete
    Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Empty result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Empty, OperationMetadata> retrievedResponse = await apiHubPluginClient.PollOnceDeletePluginAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Empty retrievedResult = retrievedResponse.Result;
    }

### DeletePluginAsync(DeletePluginRequest, CancellationToken)

    public virtual Task<Operation<Empty, OperationMetadata>> DeletePluginAsync(DeletePluginRequest request, CancellationToken cancellationToken)

Delete a Plugin in API hub.
Note, only user owned plugins can be deleted via this method.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.DeletePluginRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.OperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
    // Initialize request argument(s)
    DeletePluginRequest request = new DeletePluginRequest
    {
        PluginName = PluginName.FromProjectLocationPlugin("[PROJECT]", "[LOCATION]", "[PLUGIN]"),
    };
    // Make the request
    Operation<Empty, OperationMetadata> response = await apiHubPluginClient.DeletePluginAsync(request);

    // Poll until the returned long-running operation is complete
    Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Empty result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Empty, OperationMetadata> retrievedResponse = await apiHubPluginClient.PollOnceDeletePluginAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Empty retrievedResult = retrievedResponse.Result;
    }

### DeletePluginAsync(PluginName, CallSettings)

    public virtual Task<Operation<Empty, OperationMetadata>> DeletePluginAsync(PluginName name, CallSettings callSettings = null)

Delete a Plugin in API hub.
Note, only user owned plugins can be deleted via this method.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.PluginName` Required. The name of the Plugin resource to delete. Format: `projects/{project}/locations/{location}/plugins/{plugin}` |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.OperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
    // Initialize request argument(s)
    PluginName name = PluginName.FromProjectLocationPlugin("[PROJECT]", "[LOCATION]", "[PLUGIN]");
    // Make the request
    Operation<Empty, OperationMetadata> response = await apiHubPluginClient.DeletePluginAsync(name);

    // Poll until the returned long-running operation is complete
    Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Empty result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Empty, OperationMetadata> retrievedResponse = await apiHubPluginClient.PollOnceDeletePluginAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Empty retrievedResult = retrievedResponse.Result;
    }

### DeletePluginAsync(PluginName, CancellationToken)

    public virtual Task<Operation<Empty, OperationMetadata>> DeletePluginAsync(PluginName name, CancellationToken cancellationToken)

Delete a Plugin in API hub.
Note, only user owned plugins can be deleted via this method.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.PluginName` Required. The name of the Plugin resource to delete. Format: `projects/{project}/locations/{location}/plugins/{plugin}` |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.OperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
    // Initialize request argument(s)
    PluginName name = PluginName.FromProjectLocationPlugin("[PROJECT]", "[LOCATION]", "[PLUGIN]");
    // Make the request
    Operation<Empty, OperationMetadata> response = await apiHubPluginClient.DeletePluginAsync(name);

    // Poll until the returned long-running operation is complete
    Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Empty result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Empty, OperationMetadata> retrievedResponse = await apiHubPluginClient.PollOnceDeletePluginAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Empty retrievedResult = retrievedResponse.Result;
    }

### DeletePluginAsync(string, CallSettings)

    public virtual Task<Operation<Empty, OperationMetadata>> DeletePluginAsync(string name, CallSettings callSettings = null)

Delete a Plugin in API hub.
Note, only user owned plugins can be deleted via this method.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the Plugin resource to delete. Format: `projects/{project}/locations/{location}/plugins/{plugin}` |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.OperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/plugins/[PLUGIN]";
    // Make the request
    Operation<Empty, OperationMetadata> response = await apiHubPluginClient.DeletePluginAsync(name);

    // Poll until the returned long-running operation is complete
    Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Empty result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Empty, OperationMetadata> retrievedResponse = await apiHubPluginClient.PollOnceDeletePluginAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Empty retrievedResult = retrievedResponse.Result;
    }

### DeletePluginAsync(string, CancellationToken)

    public virtual Task<Operation<Empty, OperationMetadata>> DeletePluginAsync(string name, CancellationToken cancellationToken)

Delete a Plugin in API hub.
Note, only user owned plugins can be deleted via this method.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the Plugin resource to delete. Format: `projects/{project}/locations/{location}/plugins/{plugin}` |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.OperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/plugins/[PLUGIN]";
    // Make the request
    Operation<Empty, OperationMetadata> response = await apiHubPluginClient.DeletePluginAsync(name);

    // Poll until the returned long-running operation is complete
    Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Empty result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Empty, OperationMetadata> retrievedResponse = await apiHubPluginClient.PollOnceDeletePluginAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Empty retrievedResult = retrievedResponse.Result;
    }

### DeletePluginInstance(DeletePluginInstanceRequest, CallSettings)

    public virtual Operation<Empty, OperationMetadata> DeletePluginInstance(DeletePluginInstanceRequest request, CallSettings callSettings = null)

Deletes a plugin instance in the API hub.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.DeletePluginInstanceRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.OperationMetadata` | The RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = ApiHubPluginClient.Create();
    // Initialize request argument(s)
    DeletePluginInstanceRequest request = new DeletePluginInstanceRequest
    {
        PluginInstanceName = PluginInstanceName.FromProjectLocationPluginInstance("[PROJECT]", "[LOCATION]", "[PLUGIN]", "[INSTANCE]"),
    };
    // Make the request
    Operation<Empty, OperationMetadata> response = apiHubPluginClient.DeletePluginInstance(request);

    // Poll until the returned long-running operation is complete
    Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    Empty result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Empty, OperationMetadata> retrievedResponse = apiHubPluginClient.PollOnceDeletePluginInstance(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Empty retrievedResult = retrievedResponse.Result;
    }

### DeletePluginInstance(PluginInstanceName, CallSettings)

    public virtual Operation<Empty, OperationMetadata> DeletePluginInstance(PluginInstanceName name, CallSettings callSettings = null)

Deletes a plugin instance in the API hub.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.PluginInstanceName` Required. The name of the plugin instance to delete. Format: `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}`. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.OperationMetadata` | The RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = ApiHubPluginClient.Create();
    // Initialize request argument(s)
    PluginInstanceName name = PluginInstanceName.FromProjectLocationPluginInstance("[PROJECT]", "[LOCATION]", "[PLUGIN]", "[INSTANCE]");
    // Make the request
    Operation<Empty, OperationMetadata> response = apiHubPluginClient.DeletePluginInstance(name);

    // Poll until the returned long-running operation is complete
    Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    Empty result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Empty, OperationMetadata> retrievedResponse = apiHubPluginClient.PollOnceDeletePluginInstance(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Empty retrievedResult = retrievedResponse.Result;
    }

### DeletePluginInstance(string, CallSettings)

    public virtual Operation<Empty, OperationMetadata> DeletePluginInstance(string name, CallSettings callSettings = null)

Deletes a plugin instance in the API hub.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the plugin instance to delete. Format: `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}`. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.OperationMetadata` | The RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = ApiHubPluginClient.Create();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/plugins/[PLUGIN]/instances/[INSTANCE]";
    // Make the request
    Operation<Empty, OperationMetadata> response = apiHubPluginClient.DeletePluginInstance(name);

    // Poll until the returned long-running operation is complete
    Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    Empty result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Empty, OperationMetadata> retrievedResponse = apiHubPluginClient.PollOnceDeletePluginInstance(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Empty retrievedResult = retrievedResponse.Result;
    }

### DeletePluginInstanceAsync(DeletePluginInstanceRequest, CallSettings)

    public virtual Task<Operation<Empty, OperationMetadata>> DeletePluginInstanceAsync(DeletePluginInstanceRequest request, CallSettings callSettings = null)

Deletes a plugin instance in the API hub.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.DeletePluginInstanceRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.OperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
    // Initialize request argument(s)
    DeletePluginInstanceRequest request = new DeletePluginInstanceRequest
    {
        PluginInstanceName = PluginInstanceName.FromProjectLocationPluginInstance("[PROJECT]", "[LOCATION]", "[PLUGIN]", "[INSTANCE]"),
    };
    // Make the request
    Operation<Empty, OperationMetadata> response = await apiHubPluginClient.DeletePluginInstanceAsync(request);

    // Poll until the returned long-running operation is complete
    Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Empty result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Empty, OperationMetadata> retrievedResponse = await apiHubPluginClient.PollOnceDeletePluginInstanceAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Empty retrievedResult = retrievedResponse.Result;
    }

### DeletePluginInstanceAsync(DeletePluginInstanceRequest, CancellationToken)

    public virtual Task<Operation<Empty, OperationMetadata>> DeletePluginInstanceAsync(DeletePluginInstanceRequest request, CancellationToken cancellationToken)

Deletes a plugin instance in the API hub.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.DeletePluginInstanceRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.OperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
    // Initialize request argument(s)
    DeletePluginInstanceRequest request = new DeletePluginInstanceRequest
    {
        PluginInstanceName = PluginInstanceName.FromProjectLocationPluginInstance("[PROJECT]", "[LOCATION]", "[PLUGIN]", "[INSTANCE]"),
    };
    // Make the request
    Operation<Empty, OperationMetadata> response = await apiHubPluginClient.DeletePluginInstanceAsync(request);

    // Poll until the returned long-running operation is complete
    Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Empty result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Empty, OperationMetadata> retrievedResponse = await apiHubPluginClient.PollOnceDeletePluginInstanceAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Empty retrievedResult = retrievedResponse.Result;
    }

### DeletePluginInstanceAsync(PluginInstanceName, CallSettings)

    public virtual Task<Operation<Empty, OperationMetadata>> DeletePluginInstanceAsync(PluginInstanceName name, CallSettings callSettings = null)

Deletes a plugin instance in the API hub.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.PluginInstanceName` Required. The name of the plugin instance to delete. Format: `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}`. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.OperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
    // Initialize request argument(s)
    PluginInstanceName name = PluginInstanceName.FromProjectLocationPluginInstance("[PROJECT]", "[LOCATION]", "[PLUGIN]", "[INSTANCE]");
    // Make the request
    Operation<Empty, OperationMetadata> response = await apiHubPluginClient.DeletePluginInstanceAsync(name);

    // Poll until the returned long-running operation is complete
    Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Empty result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Empty, OperationMetadata> retrievedResponse = await apiHubPluginClient.PollOnceDeletePluginInstanceAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Empty retrievedResult = retrievedResponse.Result;
    }

### DeletePluginInstanceAsync(PluginInstanceName, CancellationToken)

    public virtual Task<Operation<Empty, OperationMetadata>> DeletePluginInstanceAsync(PluginInstanceName name, CancellationToken cancellationToken)

Deletes a plugin instance in the API hub.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.PluginInstanceName` Required. The name of the plugin instance to delete. Format: `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}`. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.OperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
    // Initialize request argument(s)
    PluginInstanceName name = PluginInstanceName.FromProjectLocationPluginInstance("[PROJECT]", "[LOCATION]", "[PLUGIN]", "[INSTANCE]");
    // Make the request
    Operation<Empty, OperationMetadata> response = await apiHubPluginClient.DeletePluginInstanceAsync(name);

    // Poll until the returned long-running operation is complete
    Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Empty result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Empty, OperationMetadata> retrievedResponse = await apiHubPluginClient.PollOnceDeletePluginInstanceAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Empty retrievedResult = retrievedResponse.Result;
    }

### DeletePluginInstanceAsync(string, CallSettings)

    public virtual Task<Operation<Empty, OperationMetadata>> DeletePluginInstanceAsync(string name, CallSettings callSettings = null)

Deletes a plugin instance in the API hub.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the plugin instance to delete. Format: `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}`. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.OperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/plugins/[PLUGIN]/instances/[INSTANCE]";
    // Make the request
    Operation<Empty, OperationMetadata> response = await apiHubPluginClient.DeletePluginInstanceAsync(name);

    // Poll until the returned long-running operation is complete
    Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Empty result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Empty, OperationMetadata> retrievedResponse = await apiHubPluginClient.PollOnceDeletePluginInstanceAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Empty retrievedResult = retrievedResponse.Result;
    }

### DeletePluginInstanceAsync(string, CancellationToken)

    public virtual Task<Operation<Empty, OperationMetadata>> DeletePluginInstanceAsync(string name, CancellationToken cancellationToken)

Deletes a plugin instance in the API hub.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the plugin instance to delete. Format: `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}`. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.OperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/plugins/[PLUGIN]/instances/[INSTANCE]";
    // Make the request
    Operation<Empty, OperationMetadata> response = await apiHubPluginClient.DeletePluginInstanceAsync(name);

    // Poll until the returned long-running operation is complete
    Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Empty result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Empty, OperationMetadata> retrievedResponse = await apiHubPluginClient.PollOnceDeletePluginInstanceAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Empty retrievedResult = retrievedResponse.Result;
    }

### DisablePlugin(DisablePluginRequest, CallSettings)

    public virtual Plugin DisablePlugin(DisablePluginRequest request, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.DisablePluginRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.Plugin` | The RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = ApiHubPluginClient.Create();
    // Initialize request argument(s)
    DisablePluginRequest request = new DisablePluginRequest
    {
        PluginName = PluginName.FromProjectLocationPlugin("[PROJECT]", "[LOCATION]", "[PLUGIN]"),
    };
    // Make the request
    Plugin response = apiHubPluginClient.DisablePlugin(request);

### DisablePlugin(PluginName, CallSettings)

    public virtual Plugin DisablePlugin(PluginName name, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.PluginName` Required. The name of the plugin to disable. Format: `projects/{project}/locations/{location}/plugins/{plugin}`. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.Plugin` | The RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = ApiHubPluginClient.Create();
    // Initialize request argument(s)
    PluginName name = PluginName.FromProjectLocationPlugin("[PROJECT]", "[LOCATION]", "[PLUGIN]");
    // Make the request
    Plugin response = apiHubPluginClient.DisablePlugin(name);

### DisablePlugin(string, CallSettings)

    public virtual Plugin DisablePlugin(string name, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the plugin to disable. Format: `projects/{project}/locations/{location}/plugins/{plugin}`. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.Plugin` | The RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = ApiHubPluginClient.Create();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/plugins/[PLUGIN]";
    // Make the request
    Plugin response = apiHubPluginClient.DisablePlugin(name);

### DisablePluginAsync(DisablePluginRequest, CallSettings)

    public virtual Task<Plugin> DisablePluginAsync(DisablePluginRequest request, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.DisablePluginRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.Plugin` | A Task containing the RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
    // Initialize request argument(s)
    DisablePluginRequest request = new DisablePluginRequest
    {
        PluginName = PluginName.FromProjectLocationPlugin("[PROJECT]", "[LOCATION]", "[PLUGIN]"),
    };
    // Make the request
    Plugin response = await apiHubPluginClient.DisablePluginAsync(request);

### DisablePluginAsync(DisablePluginRequest, CancellationToken)

    public virtual Task<Plugin> DisablePluginAsync(DisablePluginRequest request, CancellationToken cancellationToken)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.DisablePluginRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.Plugin` | A Task containing the RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
    // Initialize request argument(s)
    DisablePluginRequest request = new DisablePluginRequest
    {
        PluginName = PluginName.FromProjectLocationPlugin("[PROJECT]", "[LOCATION]", "[PLUGIN]"),
    };
    // Make the request
    Plugin response = await apiHubPluginClient.DisablePluginAsync(request);

### DisablePluginAsync(PluginName, CallSettings)

    public virtual Task<Plugin> DisablePluginAsync(PluginName name, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.PluginName` Required. The name of the plugin to disable. Format: `projects/{project}/locations/{location}/plugins/{plugin}`. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.Plugin` | A Task containing the RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
    // Initialize request argument(s)
    PluginName name = PluginName.FromProjectLocationPlugin("[PROJECT]", "[LOCATION]", "[PLUGIN]");
    // Make the request
    Plugin response = await apiHubPluginClient.DisablePluginAsync(name);

### DisablePluginAsync(PluginName, CancellationToken)

    public virtual Task<Plugin> DisablePluginAsync(PluginName name, CancellationToken cancellationToken)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.PluginName` Required. The name of the plugin to disable. Format: `projects/{project}/locations/{location}/plugins/{plugin}`. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.Plugin` | A Task containing the RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
    // Initialize request argument(s)
    PluginName name = PluginName.FromProjectLocationPlugin("[PROJECT]", "[LOCATION]", "[PLUGIN]");
    // Make the request
    Plugin response = await apiHubPluginClient.DisablePluginAsync(name);

### DisablePluginAsync(string, CallSettings)

    public virtual Task<Plugin> DisablePluginAsync(string name, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the plugin to disable. Format: `projects/{project}/locations/{location}/plugins/{plugin}`. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.Plugin` | A Task containing the RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/plugins/[PLUGIN]";
    // Make the request
    Plugin response = await apiHubPluginClient.DisablePluginAsync(name);

### DisablePluginAsync(string, CancellationToken)

    public virtual Task<Plugin> DisablePluginAsync(string name, CancellationToken cancellationToken)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the plugin to disable. Format: `projects/{project}/locations/{location}/plugins/{plugin}`. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.Plugin` | A Task containing the RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/plugins/[PLUGIN]";
    // Make the request
    Plugin response = await apiHubPluginClient.DisablePluginAsync(name);

### DisablePluginInstanceAction(DisablePluginInstanceActionRequest, CallSettings)

    public virtual Operation<DisablePluginInstanceActionResponse, OperationMetadata> DisablePluginInstanceAction(DisablePluginInstanceActionRequest request, CallSettings callSettings = null)

Disables a plugin instance in the API hub.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.DisablePluginInstanceActionRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.DisablePluginInstanceActionResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.OperationMetadata` | The RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = ApiHubPluginClient.Create();
    // Initialize request argument(s)
    DisablePluginInstanceActionRequest request = new DisablePluginInstanceActionRequest
    {
        PluginInstanceName = PluginInstanceName.FromProjectLocationPluginInstance("[PROJECT]", "[LOCATION]", "[PLUGIN]", "[INSTANCE]"),
        ActionId = "",
    };
    // Make the request
    Operation<DisablePluginInstanceActionResponse, OperationMetadata> response = apiHubPluginClient.DisablePluginInstanceAction(request);

    // Poll until the returned long-running operation is complete
    Operation<DisablePluginInstanceActionResponse, OperationMetadata> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    DisablePluginInstanceActionResponse result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<DisablePluginInstanceActionResponse, OperationMetadata> retrievedResponse = apiHubPluginClient.PollOnceDisablePluginInstanceAction(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        DisablePluginInstanceActionResponse retrievedResult = retrievedResponse.Result;
    }

### DisablePluginInstanceAction(PluginInstanceName, string, CallSettings)

    public virtual Operation<DisablePluginInstanceActionResponse, OperationMetadata> DisablePluginInstanceAction(PluginInstanceName name, string actionId, CallSettings callSettings = null)

Disables a plugin instance in the API hub.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.PluginInstanceName` Required. The name of the plugin instance to disable. Format: `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}` |
| `actionId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The action id to disable. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.DisablePluginInstanceActionResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.OperationMetadata` | The RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = ApiHubPluginClient.Create();
    // Initialize request argument(s)
    PluginInstanceName name = PluginInstanceName.FromProjectLocationPluginInstance("[PROJECT]", "[LOCATION]", "[PLUGIN]", "[INSTANCE]");
    string actionId = "";
    // Make the request
    Operation<DisablePluginInstanceActionResponse, OperationMetadata> response = apiHubPluginClient.DisablePluginInstanceAction(name, actionId);

    // Poll until the returned long-running operation is complete
    Operation<DisablePluginInstanceActionResponse, OperationMetadata> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    DisablePluginInstanceActionResponse result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<DisablePluginInstanceActionResponse, OperationMetadata> retrievedResponse = apiHubPluginClient.PollOnceDisablePluginInstanceAction(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        DisablePluginInstanceActionResponse retrievedResult = retrievedResponse.Result;
    }

### DisablePluginInstanceAction(string, string, CallSettings)

    public virtual Operation<DisablePluginInstanceActionResponse, OperationMetadata> DisablePluginInstanceAction(string name, string actionId, CallSettings callSettings = null)

Disables a plugin instance in the API hub.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the plugin instance to disable. Format: `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}` |
| `actionId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The action id to disable. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.DisablePluginInstanceActionResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.OperationMetadata` | The RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = ApiHubPluginClient.Create();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/plugins/[PLUGIN]/instances/[INSTANCE]";
    string actionId = "";
    // Make the request
    Operation<DisablePluginInstanceActionResponse, OperationMetadata> response = apiHubPluginClient.DisablePluginInstanceAction(name, actionId);

    // Poll until the returned long-running operation is complete
    Operation<DisablePluginInstanceActionResponse, OperationMetadata> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    DisablePluginInstanceActionResponse result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<DisablePluginInstanceActionResponse, OperationMetadata> retrievedResponse = apiHubPluginClient.PollOnceDisablePluginInstanceAction(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        DisablePluginInstanceActionResponse retrievedResult = retrievedResponse.Result;
    }

### DisablePluginInstanceActionAsync(DisablePluginInstanceActionRequest, CallSettings)

    public virtual Task<Operation<DisablePluginInstanceActionResponse, OperationMetadata>> DisablePluginInstanceActionAsync(DisablePluginInstanceActionRequest request, CallSettings callSettings = null)

Disables a plugin instance in the API hub.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.DisablePluginInstanceActionRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.DisablePluginInstanceActionResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.OperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
    // Initialize request argument(s)
    DisablePluginInstanceActionRequest request = new DisablePluginInstanceActionRequest
    {
        PluginInstanceName = PluginInstanceName.FromProjectLocationPluginInstance("[PROJECT]", "[LOCATION]", "[PLUGIN]", "[INSTANCE]"),
        ActionId = "",
    };
    // Make the request
    Operation<DisablePluginInstanceActionResponse, OperationMetadata> response = await apiHubPluginClient.DisablePluginInstanceActionAsync(request);

    // Poll until the returned long-running operation is complete
    Operation<DisablePluginInstanceActionResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    DisablePluginInstanceActionResponse result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<DisablePluginInstanceActionResponse, OperationMetadata> retrievedResponse = await apiHubPluginClient.PollOnceDisablePluginInstanceActionAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        DisablePluginInstanceActionResponse retrievedResult = retrievedResponse.Result;
    }

### DisablePluginInstanceActionAsync(DisablePluginInstanceActionRequest, CancellationToken)

    public virtual Task<Operation<DisablePluginInstanceActionResponse, OperationMetadata>> DisablePluginInstanceActionAsync(DisablePluginInstanceActionRequest request, CancellationToken cancellationToken)

Disables a plugin instance in the API hub.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.DisablePluginInstanceActionRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.DisablePluginInstanceActionResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.OperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
    // Initialize request argument(s)
    DisablePluginInstanceActionRequest request = new DisablePluginInstanceActionRequest
    {
        PluginInstanceName = PluginInstanceName.FromProjectLocationPluginInstance("[PROJECT]", "[LOCATION]", "[PLUGIN]", "[INSTANCE]"),
        ActionId = "",
    };
    // Make the request
    Operation<DisablePluginInstanceActionResponse, OperationMetadata> response = await apiHubPluginClient.DisablePluginInstanceActionAsync(request);

    // Poll until the returned long-running operation is complete
    Operation<DisablePluginInstanceActionResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    DisablePluginInstanceActionResponse result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<DisablePluginInstanceActionResponse, OperationMetadata> retrievedResponse = await apiHubPluginClient.PollOnceDisablePluginInstanceActionAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        DisablePluginInstanceActionResponse retrievedResult = retrievedResponse.Result;
    }

### DisablePluginInstanceActionAsync(PluginInstanceName, string, CallSettings)

    public virtual Task<Operation<DisablePluginInstanceActionResponse, OperationMetadata>> DisablePluginInstanceActionAsync(PluginInstanceName name, string actionId, CallSettings callSettings = null)

Disables a plugin instance in the API hub.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.PluginInstanceName` Required. The name of the plugin instance to disable. Format: `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}` |
| `actionId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The action id to disable. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.DisablePluginInstanceActionResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.OperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
    // Initialize request argument(s)
    PluginInstanceName name = PluginInstanceName.FromProjectLocationPluginInstance("[PROJECT]", "[LOCATION]", "[PLUGIN]", "[INSTANCE]");
    string actionId = "";
    // Make the request
    Operation<DisablePluginInstanceActionResponse, OperationMetadata> response = await apiHubPluginClient.DisablePluginInstanceActionAsync(name, actionId);

    // Poll until the returned long-running operation is complete
    Operation<DisablePluginInstanceActionResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    DisablePluginInstanceActionResponse result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<DisablePluginInstanceActionResponse, OperationMetadata> retrievedResponse = await apiHubPluginClient.PollOnceDisablePluginInstanceActionAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        DisablePluginInstanceActionResponse retrievedResult = retrievedResponse.Result;
    }

### DisablePluginInstanceActionAsync(PluginInstanceName, string, CancellationToken)

    public virtual Task<Operation<DisablePluginInstanceActionResponse, OperationMetadata>> DisablePluginInstanceActionAsync(PluginInstanceName name, string actionId, CancellationToken cancellationToken)

Disables a plugin instance in the API hub.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.PluginInstanceName` Required. The name of the plugin instance to disable. Format: `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}` |
| `actionId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The action id to disable. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.DisablePluginInstanceActionResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.OperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
    // Initialize request argument(s)
    PluginInstanceName name = PluginInstanceName.FromProjectLocationPluginInstance("[PROJECT]", "[LOCATION]", "[PLUGIN]", "[INSTANCE]");
    string actionId = "";
    // Make the request
    Operation<DisablePluginInstanceActionResponse, OperationMetadata> response = await apiHubPluginClient.DisablePluginInstanceActionAsync(name, actionId);

    // Poll until the returned long-running operation is complete
    Operation<DisablePluginInstanceActionResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    DisablePluginInstanceActionResponse result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<DisablePluginInstanceActionResponse, OperationMetadata> retrievedResponse = await apiHubPluginClient.PollOnceDisablePluginInstanceActionAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        DisablePluginInstanceActionResponse retrievedResult = retrievedResponse.Result;
    }

### DisablePluginInstanceActionAsync(string, string, CallSettings)

    public virtual Task<Operation<DisablePluginInstanceActionResponse, OperationMetadata>> DisablePluginInstanceActionAsync(string name, string actionId, CallSettings callSettings = null)

Disables a plugin instance in the API hub.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the plugin instance to disable. Format: `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}` |
| `actionId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The action id to disable. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.DisablePluginInstanceActionResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.OperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/plugins/[PLUGIN]/instances/[INSTANCE]";
    string actionId = "";
    // Make the request
    Operation<DisablePluginInstanceActionResponse, OperationMetadata> response = await apiHubPluginClient.DisablePluginInstanceActionAsync(name, actionId);

    // Poll until the returned long-running operation is complete
    Operation<DisablePluginInstanceActionResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    DisablePluginInstanceActionResponse result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<DisablePluginInstanceActionResponse, OperationMetadata> retrievedResponse = await apiHubPluginClient.PollOnceDisablePluginInstanceActionAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        DisablePluginInstanceActionResponse retrievedResult = retrievedResponse.Result;
    }

### DisablePluginInstanceActionAsync(string, string, CancellationToken)

    public virtual Task<Operation<DisablePluginInstanceActionResponse, OperationMetadata>> DisablePluginInstanceActionAsync(string name, string actionId, CancellationToken cancellationToken)

Disables a plugin instance in the API hub.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the plugin instance to disable. Format: `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}` |
| `actionId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The action id to disable. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.DisablePluginInstanceActionResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.OperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/plugins/[PLUGIN]/instances/[INSTANCE]";
    string actionId = "";
    // Make the request
    Operation<DisablePluginInstanceActionResponse, OperationMetadata> response = await apiHubPluginClient.DisablePluginInstanceActionAsync(name, actionId);

    // Poll until the returned long-running operation is complete
    Operation<DisablePluginInstanceActionResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    DisablePluginInstanceActionResponse result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<DisablePluginInstanceActionResponse, OperationMetadata> retrievedResponse = await apiHubPluginClient.PollOnceDisablePluginInstanceActionAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        DisablePluginInstanceActionResponse retrievedResult = retrievedResponse.Result;
    }

### EnablePlugin(EnablePluginRequest, CallSettings)

    public virtual Plugin EnablePlugin(EnablePluginRequest request, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.EnablePluginRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.Plugin` | The RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = ApiHubPluginClient.Create();
    // Initialize request argument(s)
    EnablePluginRequest request = new EnablePluginRequest
    {
        PluginName = PluginName.FromProjectLocationPlugin("[PROJECT]", "[LOCATION]", "[PLUGIN]"),
    };
    // Make the request
    Plugin response = apiHubPluginClient.EnablePlugin(request);

### EnablePlugin(PluginName, CallSettings)

    public virtual Plugin EnablePlugin(PluginName name, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.PluginName` Required. The name of the plugin to enable. Format: `projects/{project}/locations/{location}/plugins/{plugin}`. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.Plugin` | The RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = ApiHubPluginClient.Create();
    // Initialize request argument(s)
    PluginName name = PluginName.FromProjectLocationPlugin("[PROJECT]", "[LOCATION]", "[PLUGIN]");
    // Make the request
    Plugin response = apiHubPluginClient.EnablePlugin(name);

### EnablePlugin(string, CallSettings)

    public virtual Plugin EnablePlugin(string name, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the plugin to enable. Format: `projects/{project}/locations/{location}/plugins/{plugin}`. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.Plugin` | The RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = ApiHubPluginClient.Create();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/plugins/[PLUGIN]";
    // Make the request
    Plugin response = apiHubPluginClient.EnablePlugin(name);

### EnablePluginAsync(EnablePluginRequest, CallSettings)

    public virtual Task<Plugin> EnablePluginAsync(EnablePluginRequest request, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.EnablePluginRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.Plugin` | A Task containing the RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
    // Initialize request argument(s)
    EnablePluginRequest request = new EnablePluginRequest
    {
        PluginName = PluginName.FromProjectLocationPlugin("[PROJECT]", "[LOCATION]", "[PLUGIN]"),
    };
    // Make the request
    Plugin response = await apiHubPluginClient.EnablePluginAsync(request);

### EnablePluginAsync(EnablePluginRequest, CancellationToken)

    public virtual Task<Plugin> EnablePluginAsync(EnablePluginRequest request, CancellationToken cancellationToken)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.EnablePluginRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.Plugin` | A Task containing the RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
    // Initialize request argument(s)
    EnablePluginRequest request = new EnablePluginRequest
    {
        PluginName = PluginName.FromProjectLocationPlugin("[PROJECT]", "[LOCATION]", "[PLUGIN]"),
    };
    // Make the request
    Plugin response = await apiHubPluginClient.EnablePluginAsync(request);

### EnablePluginAsync(PluginName, CallSettings)

    public virtual Task<Plugin> EnablePluginAsync(PluginName name, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.PluginName` Required. The name of the plugin to enable. Format: `projects/{project}/locations/{location}/plugins/{plugin}`. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.Plugin` | A Task containing the RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
    // Initialize request argument(s)
    PluginName name = PluginName.FromProjectLocationPlugin("[PROJECT]", "[LOCATION]", "[PLUGIN]");
    // Make the request
    Plugin response = await apiHubPluginClient.EnablePluginAsync(name);

### EnablePluginAsync(PluginName, CancellationToken)

    public virtual Task<Plugin> EnablePluginAsync(PluginName name, CancellationToken cancellationToken)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.PluginName` Required. The name of the plugin to enable. Format: `projects/{project}/locations/{location}/plugins/{plugin}`. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.Plugin` | A Task containing the RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
    // Initialize request argument(s)
    PluginName name = PluginName.FromProjectLocationPlugin("[PROJECT]", "[LOCATION]", "[PLUGIN]");
    // Make the request
    Plugin response = await apiHubPluginClient.EnablePluginAsync(name);

### EnablePluginAsync(string, CallSettings)

    public virtual Task<Plugin> EnablePluginAsync(string name, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the plugin to enable. Format: `projects/{project}/locations/{location}/plugins/{plugin}`. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.Plugin` | A Task containing the RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/plugins/[PLUGIN]";
    // Make the request
    Plugin response = await apiHubPluginClient.EnablePluginAsync(name);

### EnablePluginAsync(string, CancellationToken)

    public virtual Task<Plugin> EnablePluginAsync(string name, CancellationToken cancellationToken)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the plugin to enable. Format: `projects/{project}/locations/{location}/plugins/{plugin}`. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.Plugin` | A Task containing the RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/plugins/[PLUGIN]";
    // Make the request
    Plugin response = await apiHubPluginClient.EnablePluginAsync(name);

### EnablePluginInstanceAction(EnablePluginInstanceActionRequest, CallSettings)

    public virtual Operation<EnablePluginInstanceActionResponse, OperationMetadata> EnablePluginInstanceAction(EnablePluginInstanceActionRequest request, CallSettings callSettings = null)

Enables a plugin instance in the API hub.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.EnablePluginInstanceActionRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.EnablePluginInstanceActionResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.OperationMetadata` | The RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = ApiHubPluginClient.Create();
    // Initialize request argument(s)
    EnablePluginInstanceActionRequest request = new EnablePluginInstanceActionRequest
    {
        PluginInstanceName = PluginInstanceName.FromProjectLocationPluginInstance("[PROJECT]", "[LOCATION]", "[PLUGIN]", "[INSTANCE]"),
        ActionId = "",
    };
    // Make the request
    Operation<EnablePluginInstanceActionResponse, OperationMetadata> response = apiHubPluginClient.EnablePluginInstanceAction(request);

    // Poll until the returned long-running operation is complete
    Operation<EnablePluginInstanceActionResponse, OperationMetadata> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    EnablePluginInstanceActionResponse result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<EnablePluginInstanceActionResponse, OperationMetadata> retrievedResponse = apiHubPluginClient.PollOnceEnablePluginInstanceAction(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        EnablePluginInstanceActionResponse retrievedResult = retrievedResponse.Result;
    }

### EnablePluginInstanceAction(PluginInstanceName, string, CallSettings)

    public virtual Operation<EnablePluginInstanceActionResponse, OperationMetadata> EnablePluginInstanceAction(PluginInstanceName name, string actionId, CallSettings callSettings = null)

Enables a plugin instance in the API hub.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.PluginInstanceName` Required. The name of the plugin instance to enable. Format: `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}` |
| `actionId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The action id to enable. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.EnablePluginInstanceActionResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.OperationMetadata` | The RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = ApiHubPluginClient.Create();
    // Initialize request argument(s)
    PluginInstanceName name = PluginInstanceName.FromProjectLocationPluginInstance("[PROJECT]", "[LOCATION]", "[PLUGIN]", "[INSTANCE]");
    string actionId = "";
    // Make the request
    Operation<EnablePluginInstanceActionResponse, OperationMetadata> response = apiHubPluginClient.EnablePluginInstanceAction(name, actionId);

    // Poll until the returned long-running operation is complete
    Operation<EnablePluginInstanceActionResponse, OperationMetadata> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    EnablePluginInstanceActionResponse result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<EnablePluginInstanceActionResponse, OperationMetadata> retrievedResponse = apiHubPluginClient.PollOnceEnablePluginInstanceAction(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        EnablePluginInstanceActionResponse retrievedResult = retrievedResponse.Result;
    }

### EnablePluginInstanceAction(string, string, CallSettings)

    public virtual Operation<EnablePluginInstanceActionResponse, OperationMetadata> EnablePluginInstanceAction(string name, string actionId, CallSettings callSettings = null)

Enables a plugin instance in the API hub.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the plugin instance to enable. Format: `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}` |
| `actionId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The action id to enable. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.EnablePluginInstanceActionResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.OperationMetadata` | The RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = ApiHubPluginClient.Create();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/plugins/[PLUGIN]/instances/[INSTANCE]";
    string actionId = "";
    // Make the request
    Operation<EnablePluginInstanceActionResponse, OperationMetadata> response = apiHubPluginClient.EnablePluginInstanceAction(name, actionId);

    // Poll until the returned long-running operation is complete
    Operation<EnablePluginInstanceActionResponse, OperationMetadata> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    EnablePluginInstanceActionResponse result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<EnablePluginInstanceActionResponse, OperationMetadata> retrievedResponse = apiHubPluginClient.PollOnceEnablePluginInstanceAction(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        EnablePluginInstanceActionResponse retrievedResult = retrievedResponse.Result;
    }

### EnablePluginInstanceActionAsync(EnablePluginInstanceActionRequest, CallSettings)

    public virtual Task<Operation<EnablePluginInstanceActionResponse, OperationMetadata>> EnablePluginInstanceActionAsync(EnablePluginInstanceActionRequest request, CallSettings callSettings = null)

Enables a plugin instance in the API hub.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.EnablePluginInstanceActionRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.EnablePluginInstanceActionResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.OperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
    // Initialize request argument(s)
    EnablePluginInstanceActionRequest request = new EnablePluginInstanceActionRequest
    {
        PluginInstanceName = PluginInstanceName.FromProjectLocationPluginInstance("[PROJECT]", "[LOCATION]", "[PLUGIN]", "[INSTANCE]"),
        ActionId = "",
    };
    // Make the request
    Operation<EnablePluginInstanceActionResponse, OperationMetadata> response = await apiHubPluginClient.EnablePluginInstanceActionAsync(request);

    // Poll until the returned long-running operation is complete
    Operation<EnablePluginInstanceActionResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    EnablePluginInstanceActionResponse result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<EnablePluginInstanceActionResponse, OperationMetadata> retrievedResponse = await apiHubPluginClient.PollOnceEnablePluginInstanceActionAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        EnablePluginInstanceActionResponse retrievedResult = retrievedResponse.Result;
    }

### EnablePluginInstanceActionAsync(EnablePluginInstanceActionRequest, CancellationToken)

    public virtual Task<Operation<EnablePluginInstanceActionResponse, OperationMetadata>> EnablePluginInstanceActionAsync(EnablePluginInstanceActionRequest request, CancellationToken cancellationToken)

Enables a plugin instance in the API hub.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.EnablePluginInstanceActionRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.EnablePluginInstanceActionResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.OperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
    // Initialize request argument(s)
    EnablePluginInstanceActionRequest request = new EnablePluginInstanceActionRequest
    {
        PluginInstanceName = PluginInstanceName.FromProjectLocationPluginInstance("[PROJECT]", "[LOCATION]", "[PLUGIN]", "[INSTANCE]"),
        ActionId = "",
    };
    // Make the request
    Operation<EnablePluginInstanceActionResponse, OperationMetadata> response = await apiHubPluginClient.EnablePluginInstanceActionAsync(request);

    // Poll until the returned long-running operation is complete
    Operation<EnablePluginInstanceActionResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    EnablePluginInstanceActionResponse result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<EnablePluginInstanceActionResponse, OperationMetadata> retrievedResponse = await apiHubPluginClient.PollOnceEnablePluginInstanceActionAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        EnablePluginInstanceActionResponse retrievedResult = retrievedResponse.Result;
    }

### EnablePluginInstanceActionAsync(PluginInstanceName, string, CallSettings)

    public virtual Task<Operation<EnablePluginInstanceActionResponse, OperationMetadata>> EnablePluginInstanceActionAsync(PluginInstanceName name, string actionId, CallSettings callSettings = null)

Enables a plugin instance in the API hub.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.PluginInstanceName` Required. The name of the plugin instance to enable. Format: `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}` |
| `actionId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The action id to enable. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.EnablePluginInstanceActionResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.OperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
    // Initialize request argument(s)
    PluginInstanceName name = PluginInstanceName.FromProjectLocationPluginInstance("[PROJECT]", "[LOCATION]", "[PLUGIN]", "[INSTANCE]");
    string actionId = "";
    // Make the request
    Operation<EnablePluginInstanceActionResponse, OperationMetadata> response = await apiHubPluginClient.EnablePluginInstanceActionAsync(name, actionId);

    // Poll until the returned long-running operation is complete
    Operation<EnablePluginInstanceActionResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    EnablePluginInstanceActionResponse result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<EnablePluginInstanceActionResponse, OperationMetadata> retrievedResponse = await apiHubPluginClient.PollOnceEnablePluginInstanceActionAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        EnablePluginInstanceActionResponse retrievedResult = retrievedResponse.Result;
    }

### EnablePluginInstanceActionAsync(PluginInstanceName, string, CancellationToken)

    public virtual Task<Operation<EnablePluginInstanceActionResponse, OperationMetadata>> EnablePluginInstanceActionAsync(PluginInstanceName name, string actionId, CancellationToken cancellationToken)

Enables a plugin instance in the API hub.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.PluginInstanceName` Required. The name of the plugin instance to enable. Format: `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}` |
| `actionId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The action id to enable. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.EnablePluginInstanceActionResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.OperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
    // Initialize request argument(s)
    PluginInstanceName name = PluginInstanceName.FromProjectLocationPluginInstance("[PROJECT]", "[LOCATION]", "[PLUGIN]", "[INSTANCE]");
    string actionId = "";
    // Make the request
    Operation<EnablePluginInstanceActionResponse, OperationMetadata> response = await apiHubPluginClient.EnablePluginInstanceActionAsync(name, actionId);

    // Poll until the returned long-running operation is complete
    Operation<EnablePluginInstanceActionResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    EnablePluginInstanceActionResponse result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<EnablePluginInstanceActionResponse, OperationMetadata> retrievedResponse = await apiHubPluginClient.PollOnceEnablePluginInstanceActionAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        EnablePluginInstanceActionResponse retrievedResult = retrievedResponse.Result;
    }

### EnablePluginInstanceActionAsync(string, string, CallSettings)

    public virtual Task<Operation<EnablePluginInstanceActionResponse, OperationMetadata>> EnablePluginInstanceActionAsync(string name, string actionId, CallSettings callSettings = null)

Enables a plugin instance in the API hub.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the plugin instance to enable. Format: `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}` |
| `actionId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The action id to enable. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.EnablePluginInstanceActionResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.OperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/plugins/[PLUGIN]/instances/[INSTANCE]";
    string actionId = "";
    // Make the request
    Operation<EnablePluginInstanceActionResponse, OperationMetadata> response = await apiHubPluginClient.EnablePluginInstanceActionAsync(name, actionId);

    // Poll until the returned long-running operation is complete
    Operation<EnablePluginInstanceActionResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    EnablePluginInstanceActionResponse result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<EnablePluginInstanceActionResponse, OperationMetadata> retrievedResponse = await apiHubPluginClient.PollOnceEnablePluginInstanceActionAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        EnablePluginInstanceActionResponse retrievedResult = retrievedResponse.Result;
    }

### EnablePluginInstanceActionAsync(string, string, CancellationToken)

    public virtual Task<Operation<EnablePluginInstanceActionResponse, OperationMetadata>> EnablePluginInstanceActionAsync(string name, string actionId, CancellationToken cancellationToken)

Enables a plugin instance in the API hub.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the plugin instance to enable. Format: `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}` |
| `actionId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The action id to enable. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.EnablePluginInstanceActionResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.OperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/plugins/[PLUGIN]/instances/[INSTANCE]";
    string actionId = "";
    // Make the request
    Operation<EnablePluginInstanceActionResponse, OperationMetadata> response = await apiHubPluginClient.EnablePluginInstanceActionAsync(name, actionId);

    // Poll until the returned long-running operation is complete
    Operation<EnablePluginInstanceActionResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    EnablePluginInstanceActionResponse result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<EnablePluginInstanceActionResponse, OperationMetadata> retrievedResponse = await apiHubPluginClient.PollOnceEnablePluginInstanceActionAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        EnablePluginInstanceActionResponse retrievedResult = retrievedResponse.Result;
    }

### ExecutePluginInstanceAction(ExecutePluginInstanceActionRequest, CallSettings)

    public virtual Operation<ExecutePluginInstanceActionResponse, OperationMetadata> ExecutePluginInstanceAction(ExecutePluginInstanceActionRequest request, CallSettings callSettings = null)

Executes a plugin instance in the API hub.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ExecutePluginInstanceActionRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ExecutePluginInstanceActionResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.OperationMetadata` | The RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = ApiHubPluginClient.Create();
    // Initialize request argument(s)
    ExecutePluginInstanceActionRequest request = new ExecutePluginInstanceActionRequest
    {
        PluginInstanceName = PluginInstanceName.FromProjectLocationPluginInstance("[PROJECT]", "[LOCATION]", "[PLUGIN]", "[INSTANCE]"),
        ActionExecutionDetail = new ActionExecutionDetail(),
    };
    // Make the request
    Operation<ExecutePluginInstanceActionResponse, OperationMetadata> response = apiHubPluginClient.ExecutePluginInstanceAction(request);

    // Poll until the returned long-running operation is complete
    Operation<ExecutePluginInstanceActionResponse, OperationMetadata> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    ExecutePluginInstanceActionResponse result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<ExecutePluginInstanceActionResponse, OperationMetadata> retrievedResponse = apiHubPluginClient.PollOnceExecutePluginInstanceAction(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        ExecutePluginInstanceActionResponse retrievedResult = retrievedResponse.Result;
    }

### ExecutePluginInstanceAction(PluginInstanceName, ActionExecutionDetail, CallSettings)

    public virtual Operation<ExecutePluginInstanceActionResponse, OperationMetadata> ExecutePluginInstanceAction(PluginInstanceName name, ActionExecutionDetail actionExecutionDetail, CallSettings callSettings = null)

Executes a plugin instance in the API hub.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.PluginInstanceName` Required. The name of the plugin instance to execute. Format: `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}` |
| `actionExecutionDetail` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ActionExecutionDetail` Required. The execution details for the action to execute. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ExecutePluginInstanceActionResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.OperationMetadata` | The RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = ApiHubPluginClient.Create();
    // Initialize request argument(s)
    PluginInstanceName name = PluginInstanceName.FromProjectLocationPluginInstance("[PROJECT]", "[LOCATION]", "[PLUGIN]", "[INSTANCE]");
    ActionExecutionDetail actionExecutionDetail = new ActionExecutionDetail();
    // Make the request
    Operation<ExecutePluginInstanceActionResponse, OperationMetadata> response = apiHubPluginClient.ExecutePluginInstanceAction(name, actionExecutionDetail);

    // Poll until the returned long-running operation is complete
    Operation<ExecutePluginInstanceActionResponse, OperationMetadata> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    ExecutePluginInstanceActionResponse result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<ExecutePluginInstanceActionResponse, OperationMetadata> retrievedResponse = apiHubPluginClient.PollOnceExecutePluginInstanceAction(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        ExecutePluginInstanceActionResponse retrievedResult = retrievedResponse.Result;
    }

### ExecutePluginInstanceAction(string, ActionExecutionDetail, CallSettings)

    public virtual Operation<ExecutePluginInstanceActionResponse, OperationMetadata> ExecutePluginInstanceAction(string name, ActionExecutionDetail actionExecutionDetail, CallSettings callSettings = null)

Executes a plugin instance in the API hub.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the plugin instance to execute. Format: `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}` |
| `actionExecutionDetail` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ActionExecutionDetail` Required. The execution details for the action to execute. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ExecutePluginInstanceActionResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.OperationMetadata` | The RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = ApiHubPluginClient.Create();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/plugins/[PLUGIN]/instances/[INSTANCE]";
    ActionExecutionDetail actionExecutionDetail = new ActionExecutionDetail();
    // Make the request
    Operation<ExecutePluginInstanceActionResponse, OperationMetadata> response = apiHubPluginClient.ExecutePluginInstanceAction(name, actionExecutionDetail);

    // Poll until the returned long-running operation is complete
    Operation<ExecutePluginInstanceActionResponse, OperationMetadata> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    ExecutePluginInstanceActionResponse result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<ExecutePluginInstanceActionResponse, OperationMetadata> retrievedResponse = apiHubPluginClient.PollOnceExecutePluginInstanceAction(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        ExecutePluginInstanceActionResponse retrievedResult = retrievedResponse.Result;
    }

### ExecutePluginInstanceActionAsync(ExecutePluginInstanceActionRequest, CallSettings)

    public virtual Task<Operation<ExecutePluginInstanceActionResponse, OperationMetadata>> ExecutePluginInstanceActionAsync(ExecutePluginInstanceActionRequest request, CallSettings callSettings = null)

Executes a plugin instance in the API hub.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ExecutePluginInstanceActionRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ExecutePluginInstanceActionResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.OperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
    // Initialize request argument(s)
    ExecutePluginInstanceActionRequest request = new ExecutePluginInstanceActionRequest
    {
        PluginInstanceName = PluginInstanceName.FromProjectLocationPluginInstance("[PROJECT]", "[LOCATION]", "[PLUGIN]", "[INSTANCE]"),
        ActionExecutionDetail = new ActionExecutionDetail(),
    };
    // Make the request
    Operation<ExecutePluginInstanceActionResponse, OperationMetadata> response = await apiHubPluginClient.ExecutePluginInstanceActionAsync(request);

    // Poll until the returned long-running operation is complete
    Operation<ExecutePluginInstanceActionResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    ExecutePluginInstanceActionResponse result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<ExecutePluginInstanceActionResponse, OperationMetadata> retrievedResponse = await apiHubPluginClient.PollOnceExecutePluginInstanceActionAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        ExecutePluginInstanceActionResponse retrievedResult = retrievedResponse.Result;
    }

### ExecutePluginInstanceActionAsync(ExecutePluginInstanceActionRequest, CancellationToken)

    public virtual Task<Operation<ExecutePluginInstanceActionResponse, OperationMetadata>> ExecutePluginInstanceActionAsync(ExecutePluginInstanceActionRequest request, CancellationToken cancellationToken)

Executes a plugin instance in the API hub.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ExecutePluginInstanceActionRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ExecutePluginInstanceActionResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.OperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
    // Initialize request argument(s)
    ExecutePluginInstanceActionRequest request = new ExecutePluginInstanceActionRequest
    {
        PluginInstanceName = PluginInstanceName.FromProjectLocationPluginInstance("[PROJECT]", "[LOCATION]", "[PLUGIN]", "[INSTANCE]"),
        ActionExecutionDetail = new ActionExecutionDetail(),
    };
    // Make the request
    Operation<ExecutePluginInstanceActionResponse, OperationMetadata> response = await apiHubPluginClient.ExecutePluginInstanceActionAsync(request);

    // Poll until the returned long-running operation is complete
    Operation<ExecutePluginInstanceActionResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    ExecutePluginInstanceActionResponse result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<ExecutePluginInstanceActionResponse, OperationMetadata> retrievedResponse = await apiHubPluginClient.PollOnceExecutePluginInstanceActionAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        ExecutePluginInstanceActionResponse retrievedResult = retrievedResponse.Result;
    }

### ExecutePluginInstanceActionAsync(PluginInstanceName, ActionExecutionDetail, CallSettings)

    public virtual Task<Operation<ExecutePluginInstanceActionResponse, OperationMetadata>> ExecutePluginInstanceActionAsync(PluginInstanceName name, ActionExecutionDetail actionExecutionDetail, CallSettings callSettings = null)

Executes a plugin instance in the API hub.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.PluginInstanceName` Required. The name of the plugin instance to execute. Format: `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}` |
| `actionExecutionDetail` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ActionExecutionDetail` Required. The execution details for the action to execute. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ExecutePluginInstanceActionResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.OperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
    // Initialize request argument(s)
    PluginInstanceName name = PluginInstanceName.FromProjectLocationPluginInstance("[PROJECT]", "[LOCATION]", "[PLUGIN]", "[INSTANCE]");
    ActionExecutionDetail actionExecutionDetail = new ActionExecutionDetail();
    // Make the request
    Operation<ExecutePluginInstanceActionResponse, OperationMetadata> response = await apiHubPluginClient.ExecutePluginInstanceActionAsync(name, actionExecutionDetail);

    // Poll until the returned long-running operation is complete
    Operation<ExecutePluginInstanceActionResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    ExecutePluginInstanceActionResponse result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<ExecutePluginInstanceActionResponse, OperationMetadata> retrievedResponse = await apiHubPluginClient.PollOnceExecutePluginInstanceActionAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        ExecutePluginInstanceActionResponse retrievedResult = retrievedResponse.Result;
    }

### ExecutePluginInstanceActionAsync(PluginInstanceName, ActionExecutionDetail, CancellationToken)

    public virtual Task<Operation<ExecutePluginInstanceActionResponse, OperationMetadata>> ExecutePluginInstanceActionAsync(PluginInstanceName name, ActionExecutionDetail actionExecutionDetail, CancellationToken cancellationToken)

Executes a plugin instance in the API hub.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.PluginInstanceName` Required. The name of the plugin instance to execute. Format: `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}` |
| `actionExecutionDetail` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ActionExecutionDetail` Required. The execution details for the action to execute. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ExecutePluginInstanceActionResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.OperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
    // Initialize request argument(s)
    PluginInstanceName name = PluginInstanceName.FromProjectLocationPluginInstance("[PROJECT]", "[LOCATION]", "[PLUGIN]", "[INSTANCE]");
    ActionExecutionDetail actionExecutionDetail = new ActionExecutionDetail();
    // Make the request
    Operation<ExecutePluginInstanceActionResponse, OperationMetadata> response = await apiHubPluginClient.ExecutePluginInstanceActionAsync(name, actionExecutionDetail);

    // Poll until the returned long-running operation is complete
    Operation<ExecutePluginInstanceActionResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    ExecutePluginInstanceActionResponse result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<ExecutePluginInstanceActionResponse, OperationMetadata> retrievedResponse = await apiHubPluginClient.PollOnceExecutePluginInstanceActionAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        ExecutePluginInstanceActionResponse retrievedResult = retrievedResponse.Result;
    }

### ExecutePluginInstanceActionAsync(string, ActionExecutionDetail, CallSettings)

    public virtual Task<Operation<ExecutePluginInstanceActionResponse, OperationMetadata>> ExecutePluginInstanceActionAsync(string name, ActionExecutionDetail actionExecutionDetail, CallSettings callSettings = null)

Executes a plugin instance in the API hub.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the plugin instance to execute. Format: `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}` |
| `actionExecutionDetail` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ActionExecutionDetail` Required. The execution details for the action to execute. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ExecutePluginInstanceActionResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.OperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/plugins/[PLUGIN]/instances/[INSTANCE]";
    ActionExecutionDetail actionExecutionDetail = new ActionExecutionDetail();
    // Make the request
    Operation<ExecutePluginInstanceActionResponse, OperationMetadata> response = await apiHubPluginClient.ExecutePluginInstanceActionAsync(name, actionExecutionDetail);

    // Poll until the returned long-running operation is complete
    Operation<ExecutePluginInstanceActionResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    ExecutePluginInstanceActionResponse result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<ExecutePluginInstanceActionResponse, OperationMetadata> retrievedResponse = await apiHubPluginClient.PollOnceExecutePluginInstanceActionAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        ExecutePluginInstanceActionResponse retrievedResult = retrievedResponse.Result;
    }

### ExecutePluginInstanceActionAsync(string, ActionExecutionDetail, CancellationToken)

    public virtual Task<Operation<ExecutePluginInstanceActionResponse, OperationMetadata>> ExecutePluginInstanceActionAsync(string name, ActionExecutionDetail actionExecutionDetail, CancellationToken cancellationToken)

Executes a plugin instance in the API hub.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the plugin instance to execute. Format: `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}` |
| `actionExecutionDetail` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ActionExecutionDetail` Required. The execution details for the action to execute. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ExecutePluginInstanceActionResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.OperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/plugins/[PLUGIN]/instances/[INSTANCE]";
    ActionExecutionDetail actionExecutionDetail = new ActionExecutionDetail();
    // Make the request
    Operation<ExecutePluginInstanceActionResponse, OperationMetadata> response = await apiHubPluginClient.ExecutePluginInstanceActionAsync(name, actionExecutionDetail);

    // Poll until the returned long-running operation is complete
    Operation<ExecutePluginInstanceActionResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    ExecutePluginInstanceActionResponse result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<ExecutePluginInstanceActionResponse, OperationMetadata> retrievedResponse = await apiHubPluginClient.PollOnceExecutePluginInstanceActionAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        ExecutePluginInstanceActionResponse retrievedResult = retrievedResponse.Result;
    }

### GetPlugin(GetPluginRequest, CallSettings)

    public virtual Plugin GetPlugin(GetPluginRequest request, CallSettings callSettings = null)

Get an API Hub plugin.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.GetPluginRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.Plugin` | The RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = ApiHubPluginClient.Create();
    // Initialize request argument(s)
    GetPluginRequest request = new GetPluginRequest
    {
        PluginName = PluginName.FromProjectLocationPlugin("[PROJECT]", "[LOCATION]", "[PLUGIN]"),
    };
    // Make the request
    Plugin response = apiHubPluginClient.GetPlugin(request);

### GetPlugin(PluginName, CallSettings)

    public virtual Plugin GetPlugin(PluginName name, CallSettings callSettings = null)

Get an API Hub plugin.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.PluginName` Required. The name of the plugin to retrieve. Format: `projects/{project}/locations/{location}/plugins/{plugin}`. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.Plugin` | The RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = ApiHubPluginClient.Create();
    // Initialize request argument(s)
    PluginName name = PluginName.FromProjectLocationPlugin("[PROJECT]", "[LOCATION]", "[PLUGIN]");
    // Make the request
    Plugin response = apiHubPluginClient.GetPlugin(name);

### GetPlugin(string, CallSettings)

    public virtual Plugin GetPlugin(string name, CallSettings callSettings = null)

Get an API Hub plugin.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the plugin to retrieve. Format: `projects/{project}/locations/{location}/plugins/{plugin}`. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.Plugin` | The RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = ApiHubPluginClient.Create();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/plugins/[PLUGIN]";
    // Make the request
    Plugin response = apiHubPluginClient.GetPlugin(name);

### GetPluginAsync(GetPluginRequest, CallSettings)

    public virtual Task<Plugin> GetPluginAsync(GetPluginRequest request, CallSettings callSettings = null)

Get an API Hub plugin.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.GetPluginRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.Plugin` | A Task containing the RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
    // Initialize request argument(s)
    GetPluginRequest request = new GetPluginRequest
    {
        PluginName = PluginName.FromProjectLocationPlugin("[PROJECT]", "[LOCATION]", "[PLUGIN]"),
    };
    // Make the request
    Plugin response = await apiHubPluginClient.GetPluginAsync(request);

### GetPluginAsync(GetPluginRequest, CancellationToken)

    public virtual Task<Plugin> GetPluginAsync(GetPluginRequest request, CancellationToken cancellationToken)

Get an API Hub plugin.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.GetPluginRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.Plugin` | A Task containing the RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
    // Initialize request argument(s)
    GetPluginRequest request = new GetPluginRequest
    {
        PluginName = PluginName.FromProjectLocationPlugin("[PROJECT]", "[LOCATION]", "[PLUGIN]"),
    };
    // Make the request
    Plugin response = await apiHubPluginClient.GetPluginAsync(request);

### GetPluginAsync(PluginName, CallSettings)

    public virtual Task<Plugin> GetPluginAsync(PluginName name, CallSettings callSettings = null)

Get an API Hub plugin.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.PluginName` Required. The name of the plugin to retrieve. Format: `projects/{project}/locations/{location}/plugins/{plugin}`. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.Plugin` | A Task containing the RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
    // Initialize request argument(s)
    PluginName name = PluginName.FromProjectLocationPlugin("[PROJECT]", "[LOCATION]", "[PLUGIN]");
    // Make the request
    Plugin response = await apiHubPluginClient.GetPluginAsync(name);

### GetPluginAsync(PluginName, CancellationToken)

    public virtual Task<Plugin> GetPluginAsync(PluginName name, CancellationToken cancellationToken)

Get an API Hub plugin.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.PluginName` Required. The name of the plugin to retrieve. Format: `projects/{project}/locations/{location}/plugins/{plugin}`. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.Plugin` | A Task containing the RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
    // Initialize request argument(s)
    PluginName name = PluginName.FromProjectLocationPlugin("[PROJECT]", "[LOCATION]", "[PLUGIN]");
    // Make the request
    Plugin response = await apiHubPluginClient.GetPluginAsync(name);

### GetPluginAsync(string, CallSettings)

    public virtual Task<Plugin> GetPluginAsync(string name, CallSettings callSettings = null)

Get an API Hub plugin.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the plugin to retrieve. Format: `projects/{project}/locations/{location}/plugins/{plugin}`. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.Plugin` | A Task containing the RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/plugins/[PLUGIN]";
    // Make the request
    Plugin response = await apiHubPluginClient.GetPluginAsync(name);

### GetPluginAsync(string, CancellationToken)

    public virtual Task<Plugin> GetPluginAsync(string name, CancellationToken cancellationToken)

Get an API Hub plugin.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the plugin to retrieve. Format: `projects/{project}/locations/{location}/plugins/{plugin}`. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.Plugin` | A Task containing the RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/plugins/[PLUGIN]";
    // Make the request
    Plugin response = await apiHubPluginClient.GetPluginAsync(name);

### GetPluginInstance(GetPluginInstanceRequest, CallSettings)

    public virtual PluginInstance GetPluginInstance(GetPluginInstanceRequest request, CallSettings callSettings = null)

Get an API Hub plugin instance.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.GetPluginInstanceRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.PluginInstance` | The RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = ApiHubPluginClient.Create();
    // Initialize request argument(s)
    GetPluginInstanceRequest request = new GetPluginInstanceRequest
    {
        PluginInstanceName = PluginInstanceName.FromProjectLocationPluginInstance("[PROJECT]", "[LOCATION]", "[PLUGIN]", "[INSTANCE]"),
    };
    // Make the request
    PluginInstance response = apiHubPluginClient.GetPluginInstance(request);

### GetPluginInstance(PluginInstanceName, CallSettings)

    public virtual PluginInstance GetPluginInstance(PluginInstanceName name, CallSettings callSettings = null)

Get an API Hub plugin instance.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.PluginInstanceName` Required. The name of the plugin instance to retrieve. Format: `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}` |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.PluginInstance` | The RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = ApiHubPluginClient.Create();
    // Initialize request argument(s)
    PluginInstanceName name = PluginInstanceName.FromProjectLocationPluginInstance("[PROJECT]", "[LOCATION]", "[PLUGIN]", "[INSTANCE]");
    // Make the request
    PluginInstance response = apiHubPluginClient.GetPluginInstance(name);

### GetPluginInstance(string, CallSettings)

    public virtual PluginInstance GetPluginInstance(string name, CallSettings callSettings = null)

Get an API Hub plugin instance.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the plugin instance to retrieve. Format: `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}` |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.PluginInstance` | The RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = ApiHubPluginClient.Create();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/plugins/[PLUGIN]/instances/[INSTANCE]";
    // Make the request
    PluginInstance response = apiHubPluginClient.GetPluginInstance(name);

### GetPluginInstanceAsync(GetPluginInstanceRequest, CallSettings)

    public virtual Task<PluginInstance> GetPluginInstanceAsync(GetPluginInstanceRequest request, CallSettings callSettings = null)

Get an API Hub plugin instance.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.GetPluginInstanceRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.PluginInstance` | A Task containing the RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
    // Initialize request argument(s)
    GetPluginInstanceRequest request = new GetPluginInstanceRequest
    {
        PluginInstanceName = PluginInstanceName.FromProjectLocationPluginInstance("[PROJECT]", "[LOCATION]", "[PLUGIN]", "[INSTANCE]"),
    };
    // Make the request
    PluginInstance response = await apiHubPluginClient.GetPluginInstanceAsync(request);

### GetPluginInstanceAsync(GetPluginInstanceRequest, CancellationToken)

    public virtual Task<PluginInstance> GetPluginInstanceAsync(GetPluginInstanceRequest request, CancellationToken cancellationToken)

Get an API Hub plugin instance.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.GetPluginInstanceRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.PluginInstance` | A Task containing the RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
    // Initialize request argument(s)
    GetPluginInstanceRequest request = new GetPluginInstanceRequest
    {
        PluginInstanceName = PluginInstanceName.FromProjectLocationPluginInstance("[PROJECT]", "[LOCATION]", "[PLUGIN]", "[INSTANCE]"),
    };
    // Make the request
    PluginInstance response = await apiHubPluginClient.GetPluginInstanceAsync(request);

### GetPluginInstanceAsync(PluginInstanceName, CallSettings)

    public virtual Task<PluginInstance> GetPluginInstanceAsync(PluginInstanceName name, CallSettings callSettings = null)

Get an API Hub plugin instance.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.PluginInstanceName` Required. The name of the plugin instance to retrieve. Format: `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}` |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.PluginInstance` | A Task containing the RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
    // Initialize request argument(s)
    PluginInstanceName name = PluginInstanceName.FromProjectLocationPluginInstance("[PROJECT]", "[LOCATION]", "[PLUGIN]", "[INSTANCE]");
    // Make the request
    PluginInstance response = await apiHubPluginClient.GetPluginInstanceAsync(name);

### GetPluginInstanceAsync(PluginInstanceName, CancellationToken)

    public virtual Task<PluginInstance> GetPluginInstanceAsync(PluginInstanceName name, CancellationToken cancellationToken)

Get an API Hub plugin instance.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.PluginInstanceName` Required. The name of the plugin instance to retrieve. Format: `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}` |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.PluginInstance` | A Task containing the RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
    // Initialize request argument(s)
    PluginInstanceName name = PluginInstanceName.FromProjectLocationPluginInstance("[PROJECT]", "[LOCATION]", "[PLUGIN]", "[INSTANCE]");
    // Make the request
    PluginInstance response = await apiHubPluginClient.GetPluginInstanceAsync(name);

### GetPluginInstanceAsync(string, CallSettings)

    public virtual Task<PluginInstance> GetPluginInstanceAsync(string name, CallSettings callSettings = null)

Get an API Hub plugin instance.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the plugin instance to retrieve. Format: `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}` |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.PluginInstance` | A Task containing the RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/plugins/[PLUGIN]/instances/[INSTANCE]";
    // Make the request
    PluginInstance response = await apiHubPluginClient.GetPluginInstanceAsync(name);

### GetPluginInstanceAsync(string, CancellationToken)

    public virtual Task<PluginInstance> GetPluginInstanceAsync(string name, CancellationToken cancellationToken)

Get an API Hub plugin instance.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the plugin instance to retrieve. Format: `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}` |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.PluginInstance` | A Task containing the RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/plugins/[PLUGIN]/instances/[INSTANCE]";
    // Make the request
    PluginInstance response = await apiHubPluginClient.GetPluginInstanceAsync(name);

### ListPluginInstances(ListPluginInstancesRequest, CallSettings)

    public virtual PagedEnumerable<ListPluginInstancesResponse, PluginInstance> ListPluginInstances(ListPluginInstancesRequest request, CallSettings callSettings = null)

List all the plugins in a given project and location.
`-` can be used as wildcard value for {plugin_id}

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ListPluginInstancesRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ListPluginInstancesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.PluginInstance` | A pageable sequence of [PluginInstance](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.PluginInstance) resources. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = ApiHubPluginClient.Create();
    // Initialize request argument(s)
    ListPluginInstancesRequest request = new ListPluginInstancesRequest
    {
        ParentAsPluginName = PluginName.FromProjectLocationPlugin("[PROJECT]", "[LOCATION]", "[PLUGIN]"),
        Filter = "",
    };
    // Make the request
    PagedEnumerable<ListPluginInstancesResponse, PluginInstance> response = apiHubPluginClient.ListPluginInstances(request);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (PluginInstance item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (ListPluginInstancesResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (PluginInstance item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<PluginInstance> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (PluginInstance item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListPluginInstances(PluginName, string, int?, CallSettings)

    public virtual PagedEnumerable<ListPluginInstancesResponse, PluginInstance> ListPluginInstances(PluginName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List all the plugins in a given project and location.
`-` can be used as wildcard value for {plugin_id}

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.PluginName` Required. The parent resource where this plugin will be created. Format: `projects/{project}/locations/{location}/plugins/{plugin}`. To list plugin instances for multiple plugins, use the - character instead of the plugin ID. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ListPluginInstancesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.PluginInstance` | A pageable sequence of [PluginInstance](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.PluginInstance) resources. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = ApiHubPluginClient.Create();
    // Initialize request argument(s)
    PluginName parent = PluginName.FromProjectLocationPlugin("[PROJECT]", "[LOCATION]", "[PLUGIN]");
    // Make the request
    PagedEnumerable<ListPluginInstancesResponse, PluginInstance> response = apiHubPluginClient.ListPluginInstances(parent);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (PluginInstance item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (ListPluginInstancesResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (PluginInstance item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<PluginInstance> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (PluginInstance item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListPluginInstances(string, string, int?, CallSettings)

    public virtual PagedEnumerable<ListPluginInstancesResponse, PluginInstance> ListPluginInstances(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List all the plugins in a given project and location.
`-` can be used as wildcard value for {plugin_id}

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The parent resource where this plugin will be created. Format: `projects/{project}/locations/{location}/plugins/{plugin}`. To list plugin instances for multiple plugins, use the - character instead of the plugin ID. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ListPluginInstancesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.PluginInstance` | A pageable sequence of [PluginInstance](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.PluginInstance) resources. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = ApiHubPluginClient.Create();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/locations/[LOCATION]/plugins/[PLUGIN]";
    // Make the request
    PagedEnumerable<ListPluginInstancesResponse, PluginInstance> response = apiHubPluginClient.ListPluginInstances(parent);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (PluginInstance item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (ListPluginInstancesResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (PluginInstance item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<PluginInstance> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (PluginInstance item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListPluginInstancesAsync(ListPluginInstancesRequest, CallSettings)

    public virtual PagedAsyncEnumerable<ListPluginInstancesResponse, PluginInstance> ListPluginInstancesAsync(ListPluginInstancesRequest request, CallSettings callSettings = null)

List all the plugins in a given project and location.
`-` can be used as wildcard value for {plugin_id}

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ListPluginInstancesRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ListPluginInstancesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.PluginInstance` | A pageable asynchronous sequence of [PluginInstance](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.PluginInstance) resources. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
    // Initialize request argument(s)
    ListPluginInstancesRequest request = new ListPluginInstancesRequest
    {
        ParentAsPluginName = PluginName.FromProjectLocationPlugin("[PROJECT]", "[LOCATION]", "[PLUGIN]"),
        Filter = "",
    };
    // Make the request
    PagedAsyncEnumerable<ListPluginInstancesResponse, PluginInstance> response = apiHubPluginClient.ListPluginInstancesAsync(request);

    // Iterate over all response items, lazily performing RPCs as required
    await response.ForEachAsync((PluginInstance item) =>
    {
        // Do something with each item
        Console.WriteLine(item);
    });

    // Or iterate over pages (of server-defined size), performing one RPC per page
    await response.AsRawResponses().ForEachAsync((ListPluginInstancesResponse page) =>
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (PluginInstance item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    });

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<PluginInstance> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (PluginInstance item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListPluginInstancesAsync(PluginName, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListPluginInstancesResponse, PluginInstance> ListPluginInstancesAsync(PluginName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List all the plugins in a given project and location.
`-` can be used as wildcard value for {plugin_id}

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.PluginName` Required. The parent resource where this plugin will be created. Format: `projects/{project}/locations/{location}/plugins/{plugin}`. To list plugin instances for multiple plugins, use the - character instead of the plugin ID. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ListPluginInstancesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.PluginInstance` | A pageable asynchronous sequence of [PluginInstance](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.PluginInstance) resources. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
    // Initialize request argument(s)
    PluginName parent = PluginName.FromProjectLocationPlugin("[PROJECT]", "[LOCATION]", "[PLUGIN]");
    // Make the request
    PagedAsyncEnumerable<ListPluginInstancesResponse, PluginInstance> response = apiHubPluginClient.ListPluginInstancesAsync(parent);

    // Iterate over all response items, lazily performing RPCs as required
    await response.ForEachAsync((PluginInstance item) =>
    {
        // Do something with each item
        Console.WriteLine(item);
    });

    // Or iterate over pages (of server-defined size), performing one RPC per page
    await response.AsRawResponses().ForEachAsync((ListPluginInstancesResponse page) =>
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (PluginInstance item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    });

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<PluginInstance> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (PluginInstance item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListPluginInstancesAsync(string, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListPluginInstancesResponse, PluginInstance> ListPluginInstancesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List all the plugins in a given project and location.
`-` can be used as wildcard value for {plugin_id}

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The parent resource where this plugin will be created. Format: `projects/{project}/locations/{location}/plugins/{plugin}`. To list plugin instances for multiple plugins, use the - character instead of the plugin ID. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ListPluginInstancesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.PluginInstance` | A pageable asynchronous sequence of [PluginInstance](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.PluginInstance) resources. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/locations/[LOCATION]/plugins/[PLUGIN]";
    // Make the request
    PagedAsyncEnumerable<ListPluginInstancesResponse, PluginInstance> response = apiHubPluginClient.ListPluginInstancesAsync(parent);

    // Iterate over all response items, lazily performing RPCs as required
    await response.ForEachAsync((PluginInstance item) =>
    {
        // Do something with each item
        Console.WriteLine(item);
    });

    // Or iterate over pages (of server-defined size), performing one RPC per page
    await response.AsRawResponses().ForEachAsync((ListPluginInstancesResponse page) =>
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (PluginInstance item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    });

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<PluginInstance> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (PluginInstance item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListPlugins(LocationName, string, int?, CallSettings)

    public virtual PagedEnumerable<ListPluginsResponse, Plugin> ListPlugins(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List all the plugins in a given project and location.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html` Required. The parent resource where this plugin will be created. Format: `projects/{project}/locations/{location}`. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ListPluginsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.Plugin` | A pageable sequence of [Plugin](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.Plugin) resources. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = ApiHubPluginClient.Create();
    // Initialize request argument(s)
    LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
    // Make the request
    PagedEnumerable<ListPluginsResponse, Plugin> response = apiHubPluginClient.ListPlugins(parent);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (Plugin item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (ListPluginsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Plugin item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<Plugin> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (Plugin item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListPlugins(ListPluginsRequest, CallSettings)

    public virtual PagedEnumerable<ListPluginsResponse, Plugin> ListPlugins(ListPluginsRequest request, CallSettings callSettings = null)

List all the plugins in a given project and location.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ListPluginsRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ListPluginsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.Plugin` | A pageable sequence of [Plugin](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.Plugin) resources. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = ApiHubPluginClient.Create();
    // Initialize request argument(s)
    ListPluginsRequest request = new ListPluginsRequest
    {
        ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
        Filter = "",
    };
    // Make the request
    PagedEnumerable<ListPluginsResponse, Plugin> response = apiHubPluginClient.ListPlugins(request);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (Plugin item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (ListPluginsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Plugin item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<Plugin> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (Plugin item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListPlugins(string, string, int?, CallSettings)

    public virtual PagedEnumerable<ListPluginsResponse, Plugin> ListPlugins(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List all the plugins in a given project and location.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The parent resource where this plugin will be created. Format: `projects/{project}/locations/{location}`. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ListPluginsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.Plugin` | A pageable sequence of [Plugin](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.Plugin) resources. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = ApiHubPluginClient.Create();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/locations/[LOCATION]";
    // Make the request
    PagedEnumerable<ListPluginsResponse, Plugin> response = apiHubPluginClient.ListPlugins(parent);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (Plugin item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (ListPluginsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Plugin item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<Plugin> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (Plugin item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListPluginsAsync(LocationName, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListPluginsResponse, Plugin> ListPluginsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List all the plugins in a given project and location.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html` Required. The parent resource where this plugin will be created. Format: `projects/{project}/locations/{location}`. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ListPluginsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.Plugin` | A pageable asynchronous sequence of [Plugin](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.Plugin) resources. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
    // Initialize request argument(s)
    LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
    // Make the request
    PagedAsyncEnumerable<ListPluginsResponse, Plugin> response = apiHubPluginClient.ListPluginsAsync(parent);

    // Iterate over all response items, lazily performing RPCs as required
    await response.ForEachAsync((Plugin item) =>
    {
        // Do something with each item
        Console.WriteLine(item);
    });

    // Or iterate over pages (of server-defined size), performing one RPC per page
    await response.AsRawResponses().ForEachAsync((ListPluginsResponse page) =>
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Plugin item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    });

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<Plugin> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (Plugin item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListPluginsAsync(ListPluginsRequest, CallSettings)

    public virtual PagedAsyncEnumerable<ListPluginsResponse, Plugin> ListPluginsAsync(ListPluginsRequest request, CallSettings callSettings = null)

List all the plugins in a given project and location.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ListPluginsRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ListPluginsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.Plugin` | A pageable asynchronous sequence of [Plugin](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.Plugin) resources. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
    // Initialize request argument(s)
    ListPluginsRequest request = new ListPluginsRequest
    {
        ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
        Filter = "",
    };
    // Make the request
    PagedAsyncEnumerable<ListPluginsResponse, Plugin> response = apiHubPluginClient.ListPluginsAsync(request);

    // Iterate over all response items, lazily performing RPCs as required
    await response.ForEachAsync((Plugin item) =>
    {
        // Do something with each item
        Console.WriteLine(item);
    });

    // Or iterate over pages (of server-defined size), performing one RPC per page
    await response.AsRawResponses().ForEachAsync((ListPluginsResponse page) =>
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Plugin item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    });

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<Plugin> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (Plugin item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListPluginsAsync(string, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListPluginsResponse, Plugin> ListPluginsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List all the plugins in a given project and location.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The parent resource where this plugin will be created. Format: `projects/{project}/locations/{location}`. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ListPluginsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.Plugin` | A pageable asynchronous sequence of [Plugin](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.Plugin) resources. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/locations/[LOCATION]";
    // Make the request
    PagedAsyncEnumerable<ListPluginsResponse, Plugin> response = apiHubPluginClient.ListPluginsAsync(parent);

    // Iterate over all response items, lazily performing RPCs as required
    await response.ForEachAsync((Plugin item) =>
    {
        // Do something with each item
        Console.WriteLine(item);
    });

    // Or iterate over pages (of server-defined size), performing one RPC per page
    await response.AsRawResponses().ForEachAsync((ListPluginsResponse page) =>
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Plugin item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    });

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<Plugin> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (Plugin item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### PollOnceCreatePluginInstance(string, CallSettings)

    public virtual Operation<PluginInstance, OperationMetadata> PollOnceCreatePluginInstance(string operationName, CallSettings callSettings = null)

Poll an operation once, using an `operationName` from a previous invocation of `CreatePluginInstance`
.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.PluginInstancehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.OperationMetadata` | The result of polling the operation. |

### PollOnceCreatePluginInstanceAsync(string, CallSettings)

    public virtual Task<Operation<PluginInstance, OperationMetadata>> PollOnceCreatePluginInstanceAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an `operationName` from a previous invocation of
`CreatePluginInstance`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.PluginInstancehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.OperationMetadata` | A task representing the result of polling the operation. |

### PollOnceDeletePlugin(string, CallSettings)

    public virtual Operation<Empty, OperationMetadata> PollOnceDeletePlugin(string operationName, CallSettings callSettings = null)

Poll an operation once, using an `operationName` from a previous invocation of `DeletePlugin`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.OperationMetadata` | The result of polling the operation. |

### PollOnceDeletePluginAsync(string, CallSettings)

    public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeletePluginAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an `operationName` from a previous invocation of
`DeletePlugin`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.OperationMetadata` | A task representing the result of polling the operation. |

### PollOnceDeletePluginInstance(string, CallSettings)

    public virtual Operation<Empty, OperationMetadata> PollOnceDeletePluginInstance(string operationName, CallSettings callSettings = null)

Poll an operation once, using an `operationName` from a previous invocation of `DeletePluginInstance`
.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.OperationMetadata` | The result of polling the operation. |

### PollOnceDeletePluginInstanceAsync(string, CallSettings)

    public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeletePluginInstanceAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an `operationName` from a previous invocation of
`DeletePluginInstance`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.OperationMetadata` | A task representing the result of polling the operation. |

### PollOnceDisablePluginInstanceAction(string, CallSettings)

    public virtual Operation<DisablePluginInstanceActionResponse, OperationMetadata> PollOnceDisablePluginInstanceAction(string operationName, CallSettings callSettings = null)

Poll an operation once, using an `operationName` from a previous invocation of
`DisablePluginInstanceAction`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.DisablePluginInstanceActionResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.OperationMetadata` | The result of polling the operation. |

### PollOnceDisablePluginInstanceActionAsync(string, CallSettings)

    public virtual Task<Operation<DisablePluginInstanceActionResponse, OperationMetadata>> PollOnceDisablePluginInstanceActionAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an `operationName` from a previous invocation of
`DisablePluginInstanceAction`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.DisablePluginInstanceActionResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.OperationMetadata` | A task representing the result of polling the operation. |

### PollOnceEnablePluginInstanceAction(string, CallSettings)

    public virtual Operation<EnablePluginInstanceActionResponse, OperationMetadata> PollOnceEnablePluginInstanceAction(string operationName, CallSettings callSettings = null)

Poll an operation once, using an `operationName` from a previous invocation of
`EnablePluginInstanceAction`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.EnablePluginInstanceActionResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.OperationMetadata` | The result of polling the operation. |

### PollOnceEnablePluginInstanceActionAsync(string, CallSettings)

    public virtual Task<Operation<EnablePluginInstanceActionResponse, OperationMetadata>> PollOnceEnablePluginInstanceActionAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an `operationName` from a previous invocation of
`EnablePluginInstanceAction`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.EnablePluginInstanceActionResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.OperationMetadata` | A task representing the result of polling the operation. |

### PollOnceExecutePluginInstanceAction(string, CallSettings)

    public virtual Operation<ExecutePluginInstanceActionResponse, OperationMetadata> PollOnceExecutePluginInstanceAction(string operationName, CallSettings callSettings = null)

Poll an operation once, using an `operationName` from a previous invocation of
`ExecutePluginInstanceAction`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ExecutePluginInstanceActionResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.OperationMetadata` | The result of polling the operation. |

### PollOnceExecutePluginInstanceActionAsync(string, CallSettings)

    public virtual Task<Operation<ExecutePluginInstanceActionResponse, OperationMetadata>> PollOnceExecutePluginInstanceActionAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an `operationName` from a previous invocation of
`ExecutePluginInstanceAction`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ExecutePluginInstanceActionResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.OperationMetadata` | A task representing the result of polling the operation. |

### ShutdownDefaultChannelsAsync()

    public static Task ShutdownDefaultChannelsAsync()

Shuts down any channels automatically created by [Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ApiHubPluginClient#Google_Cloud_ApiHub_V1_ApiHubPluginClient_Create) and
[CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ApiHubPluginClient#Google_Cloud_ApiHub_V1_ApiHubPluginClient_CreateAsync_System_Threading_CancellationToken_). Channels which weren't automatically created are not
affected.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A task representing the asynchronous shutdown operation. |

**Remarks** After calling this method, further calls to [Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ApiHubPluginClient#Google_Cloud_ApiHub_V1_ApiHubPluginClient_Create) and
[CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ApiHubPluginClient#Google_Cloud_ApiHub_V1_ApiHubPluginClient_CreateAsync_System_Threading_CancellationToken_) will create new channels, which could in turn be shut down
by another call to this method.

### UpdatePluginInstance(PluginInstance, FieldMask, CallSettings)

    public virtual PluginInstance UpdatePluginInstance(PluginInstance pluginInstance, FieldMask updateMask, CallSettings callSettings = null)

Updates a plugin instance in the API hub.
The following fields in the
\[plugin_instance\]\[google.cloud.apihub.v1.PluginInstance\] can be updated
currently:

- \[display_name\]\[google.cloud.apihub.v1.PluginInstance.display_name\]
- \[schedule_cron_expression\]\[PluginInstance.actions.schedule_cron_expression\]

The
\[update_mask\]\[google.cloud.apihub.v1.UpdatePluginInstanceRequest.update_mask\]
should be used to specify the fields being updated.

To update the
\[auth_config\]\[google.cloud.apihub.v1.PluginInstance.auth_config\] and
\[additional_config\]\[google.cloud.apihub.v1.PluginInstance.additional_config\]
of the plugin instance, use the
\[ApplyPluginInstanceConfig\]\[google.cloud.apihub.v1.ApiHubPlugin.ApplyPluginInstanceConfig\]
method.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `pluginInstance` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.PluginInstance` Required. The plugin instance to update. |
| `updateMask` | `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.FieldMask.html` Optional. The list of fields to update. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.PluginInstance` | The RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = ApiHubPluginClient.Create();
    // Initialize request argument(s)
    PluginInstance pluginInstance = new PluginInstance();
    FieldMask updateMask = new FieldMask();
    // Make the request
    PluginInstance response = apiHubPluginClient.UpdatePluginInstance(pluginInstance, updateMask);

### UpdatePluginInstance(UpdatePluginInstanceRequest, CallSettings)

    public virtual PluginInstance UpdatePluginInstance(UpdatePluginInstanceRequest request, CallSettings callSettings = null)

Updates a plugin instance in the API hub.
The following fields in the
\[plugin_instance\]\[google.cloud.apihub.v1.PluginInstance\] can be updated
currently:

- \[display_name\]\[google.cloud.apihub.v1.PluginInstance.display_name\]
- \[schedule_cron_expression\]\[PluginInstance.actions.schedule_cron_expression\]

The
\[update_mask\]\[google.cloud.apihub.v1.UpdatePluginInstanceRequest.update_mask\]
should be used to specify the fields being updated.

To update the
\[auth_config\]\[google.cloud.apihub.v1.PluginInstance.auth_config\] and
\[additional_config\]\[google.cloud.apihub.v1.PluginInstance.additional_config\]
of the plugin instance, use the
\[ApplyPluginInstanceConfig\]\[google.cloud.apihub.v1.ApiHubPlugin.ApplyPluginInstanceConfig\]
method.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.UpdatePluginInstanceRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.PluginInstance` | The RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = ApiHubPluginClient.Create();
    // Initialize request argument(s)
    UpdatePluginInstanceRequest request = new UpdatePluginInstanceRequest
    {
        PluginInstance = new PluginInstance(),
        UpdateMask = new FieldMask(),
    };
    // Make the request
    PluginInstance response = apiHubPluginClient.UpdatePluginInstance(request);

### UpdatePluginInstanceAsync(PluginInstance, FieldMask, CallSettings)

    public virtual Task<PluginInstance> UpdatePluginInstanceAsync(PluginInstance pluginInstance, FieldMask updateMask, CallSettings callSettings = null)

Updates a plugin instance in the API hub.
The following fields in the
\[plugin_instance\]\[google.cloud.apihub.v1.PluginInstance\] can be updated
currently:

- \[display_name\]\[google.cloud.apihub.v1.PluginInstance.display_name\]
- \[schedule_cron_expression\]\[PluginInstance.actions.schedule_cron_expression\]

The
\[update_mask\]\[google.cloud.apihub.v1.UpdatePluginInstanceRequest.update_mask\]
should be used to specify the fields being updated.

To update the
\[auth_config\]\[google.cloud.apihub.v1.PluginInstance.auth_config\] and
\[additional_config\]\[google.cloud.apihub.v1.PluginInstance.additional_config\]
of the plugin instance, use the
\[ApplyPluginInstanceConfig\]\[google.cloud.apihub.v1.ApiHubPlugin.ApplyPluginInstanceConfig\]
method.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `pluginInstance` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.PluginInstance` Required. The plugin instance to update. |
| `updateMask` | `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.FieldMask.html` Optional. The list of fields to update. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.PluginInstance` | A Task containing the RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
    // Initialize request argument(s)
    PluginInstance pluginInstance = new PluginInstance();
    FieldMask updateMask = new FieldMask();
    // Make the request
    PluginInstance response = await apiHubPluginClient.UpdatePluginInstanceAsync(pluginInstance, updateMask);

### UpdatePluginInstanceAsync(PluginInstance, FieldMask, CancellationToken)

    public virtual Task<PluginInstance> UpdatePluginInstanceAsync(PluginInstance pluginInstance, FieldMask updateMask, CancellationToken cancellationToken)

Updates a plugin instance in the API hub.
The following fields in the
\[plugin_instance\]\[google.cloud.apihub.v1.PluginInstance\] can be updated
currently:

- \[display_name\]\[google.cloud.apihub.v1.PluginInstance.display_name\]
- \[schedule_cron_expression\]\[PluginInstance.actions.schedule_cron_expression\]

The
\[update_mask\]\[google.cloud.apihub.v1.UpdatePluginInstanceRequest.update_mask\]
should be used to specify the fields being updated.

To update the
\[auth_config\]\[google.cloud.apihub.v1.PluginInstance.auth_config\] and
\[additional_config\]\[google.cloud.apihub.v1.PluginInstance.additional_config\]
of the plugin instance, use the
\[ApplyPluginInstanceConfig\]\[google.cloud.apihub.v1.ApiHubPlugin.ApplyPluginInstanceConfig\]
method.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `pluginInstance` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.PluginInstance` Required. The plugin instance to update. |
| `updateMask` | `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.FieldMask.html` Optional. The list of fields to update. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.PluginInstance` | A Task containing the RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
    // Initialize request argument(s)
    PluginInstance pluginInstance = new PluginInstance();
    FieldMask updateMask = new FieldMask();
    // Make the request
    PluginInstance response = await apiHubPluginClient.UpdatePluginInstanceAsync(pluginInstance, updateMask);

### UpdatePluginInstanceAsync(UpdatePluginInstanceRequest, CallSettings)

    public virtual Task<PluginInstance> UpdatePluginInstanceAsync(UpdatePluginInstanceRequest request, CallSettings callSettings = null)

Updates a plugin instance in the API hub.
The following fields in the
\[plugin_instance\]\[google.cloud.apihub.v1.PluginInstance\] can be updated
currently:

- \[display_name\]\[google.cloud.apihub.v1.PluginInstance.display_name\]
- \[schedule_cron_expression\]\[PluginInstance.actions.schedule_cron_expression\]

The
\[update_mask\]\[google.cloud.apihub.v1.UpdatePluginInstanceRequest.update_mask\]
should be used to specify the fields being updated.

To update the
\[auth_config\]\[google.cloud.apihub.v1.PluginInstance.auth_config\] and
\[additional_config\]\[google.cloud.apihub.v1.PluginInstance.additional_config\]
of the plugin instance, use the
\[ApplyPluginInstanceConfig\]\[google.cloud.apihub.v1.ApiHubPlugin.ApplyPluginInstanceConfig\]
method.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.UpdatePluginInstanceRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.PluginInstance` | A Task containing the RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
    // Initialize request argument(s)
    UpdatePluginInstanceRequest request = new UpdatePluginInstanceRequest
    {
        PluginInstance = new PluginInstance(),
        UpdateMask = new FieldMask(),
    };
    // Make the request
    PluginInstance response = await apiHubPluginClient.UpdatePluginInstanceAsync(request);

### UpdatePluginInstanceAsync(UpdatePluginInstanceRequest, CancellationToken)

    public virtual Task<PluginInstance> UpdatePluginInstanceAsync(UpdatePluginInstanceRequest request, CancellationToken cancellationToken)

Updates a plugin instance in the API hub.
The following fields in the
\[plugin_instance\]\[google.cloud.apihub.v1.PluginInstance\] can be updated
currently:

- \[display_name\]\[google.cloud.apihub.v1.PluginInstance.display_name\]
- \[schedule_cron_expression\]\[PluginInstance.actions.schedule_cron_expression\]

The
\[update_mask\]\[google.cloud.apihub.v1.UpdatePluginInstanceRequest.update_mask\]
should be used to specify the fields being updated.

To update the
\[auth_config\]\[google.cloud.apihub.v1.PluginInstance.auth_config\] and
\[additional_config\]\[google.cloud.apihub.v1.PluginInstance.additional_config\]
of the plugin instance, use the
\[ApplyPluginInstanceConfig\]\[google.cloud.apihub.v1.ApiHubPlugin.ApplyPluginInstanceConfig\]
method.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.UpdatePluginInstanceRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.PluginInstance` | A Task containing the RPC response. |

**Example**

    // Create client
    ApiHubPluginClient apiHubPluginClient = await ApiHubPluginClient.CreateAsync();
    // Initialize request argument(s)
    UpdatePluginInstanceRequest request = new UpdatePluginInstanceRequest
    {
        PluginInstance = new PluginInstance(),
        UpdateMask = new FieldMask(),
    };
    // Make the request
    PluginInstance response = await apiHubPluginClient.UpdatePluginInstanceAsync(request);