1.2.0 (latest) 1.1.0 1.0.0

    public abstract class ApiHubCurateClient

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

ApiHubCurate client wrapper, for convenient use.

## Inheritance

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

## 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

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

## Namespace

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

## Assembly

Google.Cloud.ApiHub.V1.dll

## Remarks

This service is used for managing curations for processing API data consumed
from collect layer.

## Properties

### DefaultEndpoint

    public static string DefaultEndpoint { get; }

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

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### DefaultScopes

    public static IReadOnlyList<string> DefaultScopes { get; }

The default ApiHubCurate scopes.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `IReadOnlyListstring` |   |

**Remarks** The default ApiHubCurate scopes are:

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

<br />

### GrpcClient

    public virtual ApiHubCurate.ApiHubCurateClient GrpcClient { get; }

The underlying gRPC ApiHubCurate client

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `ApiHubCurateApiHubCurateClient` |   |

### LocationsClient

    public virtual LocationsClient LocationsClient { get; }

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

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `LocationsClient` |   |

### ServiceMetadata

    public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `ServiceMetadata` |   |

## Methods

### Create()

    public static ApiHubCurateClient Create()

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

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

### CreateAsync(CancellationToken)

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

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

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskApiHubCurateClient` | The task representing the created [ApiHubCurateClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ApiHubCurateClient.md.txt). |

### CreateCuration(LocationName, Curation, string, CallSettings)

    public virtual Curation CreateCuration(LocationName parent, Curation curation, string curationId, CallSettings callSettings = null)

Create a curation resource in the API hub.
Once a curation resource is created, plugin instances can start using it.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `LocationName` Required. The parent resource for the curation resource. Format: `projects/{project}/locations/{location}` |
| `curation` | `Curation` Required. The curation resource to create. |
| `curationId` | `string` Optional. The ID to use for the curation resource, which will become the final component of the curations'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 curation resource in the API hub. - If not provided, a system generated ID will be used. This value should be 4-500 characters, and valid characters are /\[a-z\]\[A-Z\]\[0-9\]-_/. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Curation` | The RPC response. |

**Example**

```cs
// Create client
ApiHubCurateClient apiHubCurateClient = ApiHubCurateClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Curation curation = new Curation();
string curationId = "";
// Make the request
Curation response = apiHubCurateClient.CreateCuration(parent, curation, curationId);
```

### CreateCuration(CreateCurationRequest, CallSettings)

    public virtual Curation CreateCuration(CreateCurationRequest request, CallSettings callSettings = null)

Create a curation resource in the API hub.
Once a curation resource is created, plugin instances can start using it.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `CreateCurationRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Curation` | The RPC response. |

**Example**

```cs
// Create client
ApiHubCurateClient apiHubCurateClient = ApiHubCurateClient.Create();
// Initialize request argument(s)
CreateCurationRequest request = new CreateCurationRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    CurationId = "",
    Curation = new Curation(),
};
// Make the request
Curation response = apiHubCurateClient.CreateCuration(request);
```

### CreateCuration(string, Curation, string, CallSettings)

    public virtual Curation CreateCuration(string parent, Curation curation, string curationId, CallSettings callSettings = null)

Create a curation resource in the API hub.
Once a curation resource is created, plugin instances can start using it.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The parent resource for the curation resource. Format: `projects/{project}/locations/{location}` |
| `curation` | `Curation` Required. The curation resource to create. |
| `curationId` | `string` Optional. The ID to use for the curation resource, which will become the final component of the curations'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 curation resource in the API hub. - If not provided, a system generated ID will be used. This value should be 4-500 characters, and valid characters are /\[a-z\]\[A-Z\]\[0-9\]-_/. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Curation` | The RPC response. |

**Example**

```cs
// Create client
ApiHubCurateClient apiHubCurateClient = ApiHubCurateClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Curation curation = new Curation();
string curationId = "";
// Make the request
Curation response = apiHubCurateClient.CreateCuration(parent, curation, curationId);
```

### CreateCurationAsync(LocationName, Curation, string, CallSettings)

    public virtual Task<Curation> CreateCurationAsync(LocationName parent, Curation curation, string curationId, CallSettings callSettings = null)

Create a curation resource in the API hub.
Once a curation resource is created, plugin instances can start using it.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `LocationName` Required. The parent resource for the curation resource. Format: `projects/{project}/locations/{location}` |
| `curation` | `Curation` Required. The curation resource to create. |
| `curationId` | `string` Optional. The ID to use for the curation resource, which will become the final component of the curations'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 curation resource in the API hub. - If not provided, a system generated ID will be used. This value should be 4-500 characters, and valid characters are /\[a-z\]\[A-Z\]\[0-9\]-_/. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskCuration` | A Task containing the RPC response. |

**Example**

```cs
// Create client
ApiHubCurateClient apiHubCurateClient = await ApiHubCurateClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Curation curation = new Curation();
string curationId = "";
// Make the request
Curation response = await apiHubCurateClient.CreateCurationAsync(parent, curation, curationId);
```

### CreateCurationAsync(LocationName, Curation, string, CancellationToken)

    public virtual Task<Curation> CreateCurationAsync(LocationName parent, Curation curation, string curationId, CancellationToken cancellationToken)

Create a curation resource in the API hub.
Once a curation resource is created, plugin instances can start using it.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `LocationName` Required. The parent resource for the curation resource. Format: `projects/{project}/locations/{location}` |
| `curation` | `Curation` Required. The curation resource to create. |
| `curationId` | `string` Optional. The ID to use for the curation resource, which will become the final component of the curations'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 curation resource in the API hub. - If not provided, a system generated ID will be used. This value should be 4-500 characters, and valid characters are /\[a-z\]\[A-Z\]\[0-9\]-_/. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskCuration` | A Task containing the RPC response. |

**Example**

```cs
// Create client
ApiHubCurateClient apiHubCurateClient = await ApiHubCurateClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Curation curation = new Curation();
string curationId = "";
// Make the request
Curation response = await apiHubCurateClient.CreateCurationAsync(parent, curation, curationId);
```

### CreateCurationAsync(CreateCurationRequest, CallSettings)

    public virtual Task<Curation> CreateCurationAsync(CreateCurationRequest request, CallSettings callSettings = null)

Create a curation resource in the API hub.
Once a curation resource is created, plugin instances can start using it.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `CreateCurationRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskCuration` | A Task containing the RPC response. |

**Example**

```cs
// Create client
ApiHubCurateClient apiHubCurateClient = await ApiHubCurateClient.CreateAsync();
// Initialize request argument(s)
CreateCurationRequest request = new CreateCurationRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    CurationId = "",
    Curation = new Curation(),
};
// Make the request
Curation response = await apiHubCurateClient.CreateCurationAsync(request);
```

### CreateCurationAsync(CreateCurationRequest, CancellationToken)

    public virtual Task<Curation> CreateCurationAsync(CreateCurationRequest request, CancellationToken cancellationToken)

Create a curation resource in the API hub.
Once a curation resource is created, plugin instances can start using it.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `CreateCurationRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskCuration` | A Task containing the RPC response. |

**Example**

```cs
// Create client
ApiHubCurateClient apiHubCurateClient = await ApiHubCurateClient.CreateAsync();
// Initialize request argument(s)
CreateCurationRequest request = new CreateCurationRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    CurationId = "",
    Curation = new Curation(),
};
// Make the request
Curation response = await apiHubCurateClient.CreateCurationAsync(request);
```

### CreateCurationAsync(string, Curation, string, CallSettings)

    public virtual Task<Curation> CreateCurationAsync(string parent, Curation curation, string curationId, CallSettings callSettings = null)

Create a curation resource in the API hub.
Once a curation resource is created, plugin instances can start using it.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The parent resource for the curation resource. Format: `projects/{project}/locations/{location}` |
| `curation` | `Curation` Required. The curation resource to create. |
| `curationId` | `string` Optional. The ID to use for the curation resource, which will become the final component of the curations'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 curation resource in the API hub. - If not provided, a system generated ID will be used. This value should be 4-500 characters, and valid characters are /\[a-z\]\[A-Z\]\[0-9\]-_/. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskCuration` | A Task containing the RPC response. |

**Example**

```cs
// Create client
ApiHubCurateClient apiHubCurateClient = await ApiHubCurateClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Curation curation = new Curation();
string curationId = "";
// Make the request
Curation response = await apiHubCurateClient.CreateCurationAsync(parent, curation, curationId);
```

### CreateCurationAsync(string, Curation, string, CancellationToken)

    public virtual Task<Curation> CreateCurationAsync(string parent, Curation curation, string curationId, CancellationToken cancellationToken)

Create a curation resource in the API hub.
Once a curation resource is created, plugin instances can start using it.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The parent resource for the curation resource. Format: `projects/{project}/locations/{location}` |
| `curation` | `Curation` Required. The curation resource to create. |
| `curationId` | `string` Optional. The ID to use for the curation resource, which will become the final component of the curations'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 curation resource in the API hub. - If not provided, a system generated ID will be used. This value should be 4-500 characters, and valid characters are /\[a-z\]\[A-Z\]\[0-9\]-_/. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskCuration` | A Task containing the RPC response. |

**Example**

```cs
// Create client
ApiHubCurateClient apiHubCurateClient = await ApiHubCurateClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Curation curation = new Curation();
string curationId = "";
// Make the request
Curation response = await apiHubCurateClient.CreateCurationAsync(parent, curation, curationId);
```

### DeleteCuration(CurationName, CallSettings)

    public virtual void DeleteCuration(CurationName name, CallSettings callSettings = null)

Delete a curation resource in the API hub. A curation can only be deleted
if it's not being used by any plugin instance.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `CurationName` Required. The name of the curation resource to delete. Format: `projects/{project}/locations/{location}/curations/{curation}` |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

**Example**

```cs
// Create client
ApiHubCurateClient apiHubCurateClient = ApiHubCurateClient.Create();
// Initialize request argument(s)
CurationName name = CurationName.FromProjectLocationCuration("[PROJECT]", "[LOCATION]", "[CURATION]");
// Make the request
apiHubCurateClient.DeleteCuration(name);
```

### DeleteCuration(DeleteCurationRequest, CallSettings)

    public virtual void DeleteCuration(DeleteCurationRequest request, CallSettings callSettings = null)

Delete a curation resource in the API hub. A curation can only be deleted
if it's not being used by any plugin instance.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `DeleteCurationRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

**Example**

```cs
// Create client
ApiHubCurateClient apiHubCurateClient = ApiHubCurateClient.Create();
// Initialize request argument(s)
DeleteCurationRequest request = new DeleteCurationRequest
{
    CurationName = CurationName.FromProjectLocationCuration("[PROJECT]", "[LOCATION]", "[CURATION]"),
};
// Make the request
apiHubCurateClient.DeleteCuration(request);
```

### DeleteCuration(string, CallSettings)

    public virtual void DeleteCuration(string name, CallSettings callSettings = null)

Delete a curation resource in the API hub. A curation can only be deleted
if it's not being used by any plugin instance.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. The name of the curation resource to delete. Format: `projects/{project}/locations/{location}/curations/{curation}` |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

**Example**

```cs
// Create client
ApiHubCurateClient apiHubCurateClient = ApiHubCurateClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/curations/[CURATION]";
// Make the request
apiHubCurateClient.DeleteCuration(name);
```

### DeleteCurationAsync(CurationName, CallSettings)

    public virtual Task DeleteCurationAsync(CurationName name, CallSettings callSettings = null)

Delete a curation resource in the API hub. A curation can only be deleted
if it's not being used by any plugin instance.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `CurationName` Required. The name of the curation resource to delete. Format: `projects/{project}/locations/{location}/curations/{curation}` |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Task` | A Task containing the RPC response. |

**Example**

```cs
// Create client
ApiHubCurateClient apiHubCurateClient = await ApiHubCurateClient.CreateAsync();
// Initialize request argument(s)
CurationName name = CurationName.FromProjectLocationCuration("[PROJECT]", "[LOCATION]", "[CURATION]");
// Make the request
await apiHubCurateClient.DeleteCurationAsync(name);
```

### DeleteCurationAsync(CurationName, CancellationToken)

    public virtual Task DeleteCurationAsync(CurationName name, CancellationToken cancellationToken)

Delete a curation resource in the API hub. A curation can only be deleted
if it's not being used by any plugin instance.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Task` | A Task containing the RPC response. |

**Example**

```cs
// Create client
ApiHubCurateClient apiHubCurateClient = await ApiHubCurateClient.CreateAsync();
// Initialize request argument(s)
CurationName name = CurationName.FromProjectLocationCuration("[PROJECT]", "[LOCATION]", "[CURATION]");
// Make the request
await apiHubCurateClient.DeleteCurationAsync(name);
```

### DeleteCurationAsync(DeleteCurationRequest, CallSettings)

    public virtual Task DeleteCurationAsync(DeleteCurationRequest request, CallSettings callSettings = null)

Delete a curation resource in the API hub. A curation can only be deleted
if it's not being used by any plugin instance.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `DeleteCurationRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Task` | A Task containing the RPC response. |

**Example**

```cs
// Create client
ApiHubCurateClient apiHubCurateClient = await ApiHubCurateClient.CreateAsync();
// Initialize request argument(s)
DeleteCurationRequest request = new DeleteCurationRequest
{
    CurationName = CurationName.FromProjectLocationCuration("[PROJECT]", "[LOCATION]", "[CURATION]"),
};
// Make the request
await apiHubCurateClient.DeleteCurationAsync(request);
```

### DeleteCurationAsync(DeleteCurationRequest, CancellationToken)

    public virtual Task DeleteCurationAsync(DeleteCurationRequest request, CancellationToken cancellationToken)

Delete a curation resource in the API hub. A curation can only be deleted
if it's not being used by any plugin instance.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `DeleteCurationRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Task` | A Task containing the RPC response. |

**Example**

```cs
// Create client
ApiHubCurateClient apiHubCurateClient = await ApiHubCurateClient.CreateAsync();
// Initialize request argument(s)
DeleteCurationRequest request = new DeleteCurationRequest
{
    CurationName = CurationName.FromProjectLocationCuration("[PROJECT]", "[LOCATION]", "[CURATION]"),
};
// Make the request
await apiHubCurateClient.DeleteCurationAsync(request);
```

### DeleteCurationAsync(string, CallSettings)

    public virtual Task DeleteCurationAsync(string name, CallSettings callSettings = null)

Delete a curation resource in the API hub. A curation can only be deleted
if it's not being used by any plugin instance.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. The name of the curation resource to delete. Format: `projects/{project}/locations/{location}/curations/{curation}` |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Task` | A Task containing the RPC response. |

**Example**

```cs
// Create client
ApiHubCurateClient apiHubCurateClient = await ApiHubCurateClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/curations/[CURATION]";
// Make the request
await apiHubCurateClient.DeleteCurationAsync(name);
```

### DeleteCurationAsync(string, CancellationToken)

    public virtual Task DeleteCurationAsync(string name, CancellationToken cancellationToken)

Delete a curation resource in the API hub. A curation can only be deleted
if it's not being used by any plugin instance.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Task` | A Task containing the RPC response. |

**Example**

```cs
// Create client
ApiHubCurateClient apiHubCurateClient = await ApiHubCurateClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/curations/[CURATION]";
// Make the request
await apiHubCurateClient.DeleteCurationAsync(name);
```

### GetCuration(CurationName, CallSettings)

    public virtual Curation GetCuration(CurationName name, CallSettings callSettings = null)

Get curation resource details.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `CurationName` Required. The name of the curation resource to retrieve. Format: `projects/{project}/locations/{location}/curations/{curation}` |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Curation` | The RPC response. |

**Example**

```cs
// Create client
ApiHubCurateClient apiHubCurateClient = ApiHubCurateClient.Create();
// Initialize request argument(s)
CurationName name = CurationName.FromProjectLocationCuration("[PROJECT]", "[LOCATION]", "[CURATION]");
// Make the request
Curation response = apiHubCurateClient.GetCuration(name);
```

### GetCuration(GetCurationRequest, CallSettings)

    public virtual Curation GetCuration(GetCurationRequest request, CallSettings callSettings = null)

Get curation resource details.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetCurationRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Curation` | The RPC response. |

**Example**

```cs
// Create client
ApiHubCurateClient apiHubCurateClient = ApiHubCurateClient.Create();
// Initialize request argument(s)
GetCurationRequest request = new GetCurationRequest
{
    CurationName = CurationName.FromProjectLocationCuration("[PROJECT]", "[LOCATION]", "[CURATION]"),
};
// Make the request
Curation response = apiHubCurateClient.GetCuration(request);
```

### GetCuration(string, CallSettings)

    public virtual Curation GetCuration(string name, CallSettings callSettings = null)

Get curation resource details.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. The name of the curation resource to retrieve. Format: `projects/{project}/locations/{location}/curations/{curation}` |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Curation` | The RPC response. |

**Example**

```cs
// Create client
ApiHubCurateClient apiHubCurateClient = ApiHubCurateClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/curations/[CURATION]";
// Make the request
Curation response = apiHubCurateClient.GetCuration(name);
```

### GetCurationAsync(CurationName, CallSettings)

    public virtual Task<Curation> GetCurationAsync(CurationName name, CallSettings callSettings = null)

Get curation resource details.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `CurationName` Required. The name of the curation resource to retrieve. Format: `projects/{project}/locations/{location}/curations/{curation}` |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskCuration` | A Task containing the RPC response. |

**Example**

```cs
// Create client
ApiHubCurateClient apiHubCurateClient = await ApiHubCurateClient.CreateAsync();
// Initialize request argument(s)
CurationName name = CurationName.FromProjectLocationCuration("[PROJECT]", "[LOCATION]", "[CURATION]");
// Make the request
Curation response = await apiHubCurateClient.GetCurationAsync(name);
```

### GetCurationAsync(CurationName, CancellationToken)

    public virtual Task<Curation> GetCurationAsync(CurationName name, CancellationToken cancellationToken)

Get curation resource details.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskCuration` | A Task containing the RPC response. |

**Example**

```cs
// Create client
ApiHubCurateClient apiHubCurateClient = await ApiHubCurateClient.CreateAsync();
// Initialize request argument(s)
CurationName name = CurationName.FromProjectLocationCuration("[PROJECT]", "[LOCATION]", "[CURATION]");
// Make the request
Curation response = await apiHubCurateClient.GetCurationAsync(name);
```

### GetCurationAsync(GetCurationRequest, CallSettings)

    public virtual Task<Curation> GetCurationAsync(GetCurationRequest request, CallSettings callSettings = null)

Get curation resource details.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetCurationRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskCuration` | A Task containing the RPC response. |

**Example**

```cs
// Create client
ApiHubCurateClient apiHubCurateClient = await ApiHubCurateClient.CreateAsync();
// Initialize request argument(s)
GetCurationRequest request = new GetCurationRequest
{
    CurationName = CurationName.FromProjectLocationCuration("[PROJECT]", "[LOCATION]", "[CURATION]"),
};
// Make the request
Curation response = await apiHubCurateClient.GetCurationAsync(request);
```

### GetCurationAsync(GetCurationRequest, CancellationToken)

    public virtual Task<Curation> GetCurationAsync(GetCurationRequest request, CancellationToken cancellationToken)

Get curation resource details.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetCurationRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskCuration` | A Task containing the RPC response. |

**Example**

```cs
// Create client
ApiHubCurateClient apiHubCurateClient = await ApiHubCurateClient.CreateAsync();
// Initialize request argument(s)
GetCurationRequest request = new GetCurationRequest
{
    CurationName = CurationName.FromProjectLocationCuration("[PROJECT]", "[LOCATION]", "[CURATION]"),
};
// Make the request
Curation response = await apiHubCurateClient.GetCurationAsync(request);
```

### GetCurationAsync(string, CallSettings)

    public virtual Task<Curation> GetCurationAsync(string name, CallSettings callSettings = null)

Get curation resource details.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. The name of the curation resource to retrieve. Format: `projects/{project}/locations/{location}/curations/{curation}` |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskCuration` | A Task containing the RPC response. |

**Example**

```cs
// Create client
ApiHubCurateClient apiHubCurateClient = await ApiHubCurateClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/curations/[CURATION]";
// Make the request
Curation response = await apiHubCurateClient.GetCurationAsync(name);
```

### GetCurationAsync(string, CancellationToken)

    public virtual Task<Curation> GetCurationAsync(string name, CancellationToken cancellationToken)

Get curation resource details.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskCuration` | A Task containing the RPC response. |

**Example**

```cs
// Create client
ApiHubCurateClient apiHubCurateClient = await ApiHubCurateClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/curations/[CURATION]";
// Make the request
Curation response = await apiHubCurateClient.GetCurationAsync(name);
```

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

    public virtual PagedEnumerable<ListCurationsResponse, Curation> ListCurations(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List curation resources in the API hub.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `LocationName` Required. The parent, which owns this collection of curation resources. Format: `projects/{project}/locations/{location}` |
| `pageToken` | `string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `int` 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` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `PagedEnumerableListCurationsResponseCuration` | A pageable sequence of [Curation](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.Curation.md.txt) resources. |

**Example**

```cs
// Create client
ApiHubCurateClient apiHubCurateClient = ApiHubCurateClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListCurationsResponse, Curation> response = apiHubCurateClient.ListCurations(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Curation 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 (ListCurationsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Curation 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<Curation> 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 (Curation 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;
```

### ListCurations(ListCurationsRequest, CallSettings)

    public virtual PagedEnumerable<ListCurationsResponse, Curation> ListCurations(ListCurationsRequest request, CallSettings callSettings = null)

List curation resources in the API hub.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListCurationsRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `PagedEnumerableListCurationsResponseCuration` | A pageable sequence of [Curation](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.Curation.md.txt) resources. |

**Example**

```cs
// Create client
ApiHubCurateClient apiHubCurateClient = ApiHubCurateClient.Create();
// Initialize request argument(s)
ListCurationsRequest request = new ListCurationsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
};
// Make the request
PagedEnumerable<ListCurationsResponse, Curation> response = apiHubCurateClient.ListCurations(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (Curation 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 (ListCurationsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Curation 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<Curation> 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 (Curation 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;
```

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

    public virtual PagedEnumerable<ListCurationsResponse, Curation> ListCurations(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List curation resources in the API hub.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The parent, which owns this collection of curation resources. Format: `projects/{project}/locations/{location}` |
| `pageToken` | `string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `int` 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` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `PagedEnumerableListCurationsResponseCuration` | A pageable sequence of [Curation](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.Curation.md.txt) resources. |

**Example**

```cs
// Create client
ApiHubCurateClient apiHubCurateClient = ApiHubCurateClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListCurationsResponse, Curation> response = apiHubCurateClient.ListCurations(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Curation 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 (ListCurationsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Curation 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<Curation> 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 (Curation 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;
```

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

    public virtual PagedAsyncEnumerable<ListCurationsResponse, Curation> ListCurationsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List curation resources in the API hub.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `LocationName` Required. The parent, which owns this collection of curation resources. Format: `projects/{project}/locations/{location}` |
| `pageToken` | `string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `int` 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` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `PagedAsyncEnumerableListCurationsResponseCuration` | A pageable asynchronous sequence of [Curation](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.Curation.md.txt) resources. |

**Example**

```cs
// Create client
ApiHubCurateClient apiHubCurateClient = await ApiHubCurateClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListCurationsResponse, Curation> response = apiHubCurateClient.ListCurationsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Curation 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((ListCurationsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Curation 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<Curation> 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 (Curation 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;
```

### ListCurationsAsync(ListCurationsRequest, CallSettings)

    public virtual PagedAsyncEnumerable<ListCurationsResponse, Curation> ListCurationsAsync(ListCurationsRequest request, CallSettings callSettings = null)

List curation resources in the API hub.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListCurationsRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `PagedAsyncEnumerableListCurationsResponseCuration` | A pageable asynchronous sequence of [Curation](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.Curation.md.txt) resources. |

**Example**

```cs
// Create client
ApiHubCurateClient apiHubCurateClient = await ApiHubCurateClient.CreateAsync();
// Initialize request argument(s)
ListCurationsRequest request = new ListCurationsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
};
// Make the request
PagedAsyncEnumerable<ListCurationsResponse, Curation> response = apiHubCurateClient.ListCurationsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Curation 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((ListCurationsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Curation 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<Curation> 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 (Curation 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;
```

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

    public virtual PagedAsyncEnumerable<ListCurationsResponse, Curation> ListCurationsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List curation resources in the API hub.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The parent, which owns this collection of curation resources. Format: `projects/{project}/locations/{location}` |
| `pageToken` | `string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `int` 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` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `PagedAsyncEnumerableListCurationsResponseCuration` | A pageable asynchronous sequence of [Curation](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.Curation.md.txt) resources. |

**Example**

```cs
// Create client
ApiHubCurateClient apiHubCurateClient = await ApiHubCurateClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListCurationsResponse, Curation> response = apiHubCurateClient.ListCurationsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Curation 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((ListCurationsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Curation 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<Curation> 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 (Curation 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;
```

### 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.ApiHubCurateClient.md.txt#Google_Cloud_ApiHub_V1_ApiHubCurateClient_Create) and
[CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ApiHubCurateClient.md.txt#Google_Cloud_ApiHub_V1_ApiHubCurateClient_CreateAsync_System_Threading_CancellationToken_). Channels which weren't automatically created are not
affected.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `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.ApiHubCurateClient.md.txt#Google_Cloud_ApiHub_V1_ApiHubCurateClient_Create) and
[CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ApiHubCurateClient.md.txt#Google_Cloud_ApiHub_V1_ApiHubCurateClient_CreateAsync_System_Threading_CancellationToken_) will create new channels, which could in turn be shut down
by another call to this method.

### UpdateCuration(Curation, FieldMask, CallSettings)

    public virtual Curation UpdateCuration(Curation curation, FieldMask updateMask, CallSettings callSettings = null)

Update a curation resource in the API hub. The following fields in the
\[curation\]\[google.cloud.apihub.v1.Curation\] can be updated:

- \[display_name\]\[google.cloud.apihub.v1.Curation.display_name\]
- \[description\]\[google.cloud.apihub.v1.Curation.description\]

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `curation` | `Curation` Required. The curation resource to update. The curation resource's `name` field is used to identify the curation resource to update. Format: `projects/{project}/locations/{location}/curations/{curation}` |
| `updateMask` | `FieldMask` Optional. The list of fields to update. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Curation` | The RPC response. |

**Example**

```cs
// Create client
ApiHubCurateClient apiHubCurateClient = ApiHubCurateClient.Create();
// Initialize request argument(s)
Curation curation = new Curation();
FieldMask updateMask = new FieldMask();
// Make the request
Curation response = apiHubCurateClient.UpdateCuration(curation, updateMask);
```

### UpdateCuration(UpdateCurationRequest, CallSettings)

    public virtual Curation UpdateCuration(UpdateCurationRequest request, CallSettings callSettings = null)

Update a curation resource in the API hub. The following fields in the
\[curation\]\[google.cloud.apihub.v1.Curation\] can be updated:

- \[display_name\]\[google.cloud.apihub.v1.Curation.display_name\]
- \[description\]\[google.cloud.apihub.v1.Curation.description\]

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `UpdateCurationRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Curation` | The RPC response. |

**Example**

```cs
// Create client
ApiHubCurateClient apiHubCurateClient = ApiHubCurateClient.Create();
// Initialize request argument(s)
UpdateCurationRequest request = new UpdateCurationRequest
{
    Curation = new Curation(),
    UpdateMask = new FieldMask(),
};
// Make the request
Curation response = apiHubCurateClient.UpdateCuration(request);
```

### UpdateCurationAsync(Curation, FieldMask, CallSettings)

    public virtual Task<Curation> UpdateCurationAsync(Curation curation, FieldMask updateMask, CallSettings callSettings = null)

Update a curation resource in the API hub. The following fields in the
\[curation\]\[google.cloud.apihub.v1.Curation\] can be updated:

- \[display_name\]\[google.cloud.apihub.v1.Curation.display_name\]
- \[description\]\[google.cloud.apihub.v1.Curation.description\]

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `curation` | `Curation` Required. The curation resource to update. The curation resource's `name` field is used to identify the curation resource to update. Format: `projects/{project}/locations/{location}/curations/{curation}` |
| `updateMask` | `FieldMask` Optional. The list of fields to update. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskCuration` | A Task containing the RPC response. |

**Example**

```cs
// Create client
ApiHubCurateClient apiHubCurateClient = await ApiHubCurateClient.CreateAsync();
// Initialize request argument(s)
Curation curation = new Curation();
FieldMask updateMask = new FieldMask();
// Make the request
Curation response = await apiHubCurateClient.UpdateCurationAsync(curation, updateMask);
```

### UpdateCurationAsync(Curation, FieldMask, CancellationToken)

    public virtual Task<Curation> UpdateCurationAsync(Curation curation, FieldMask updateMask, CancellationToken cancellationToken)

Update a curation resource in the API hub. The following fields in the
\[curation\]\[google.cloud.apihub.v1.Curation\] can be updated:

- \[display_name\]\[google.cloud.apihub.v1.Curation.display_name\]
- \[description\]\[google.cloud.apihub.v1.Curation.description\]

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `curation` | `Curation` Required. The curation resource to update. The curation resource's `name` field is used to identify the curation resource to update. Format: `projects/{project}/locations/{location}/curations/{curation}` |
| `updateMask` | `FieldMask` Optional. The list of fields to update. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskCuration` | A Task containing the RPC response. |

**Example**

```cs
// Create client
ApiHubCurateClient apiHubCurateClient = await ApiHubCurateClient.CreateAsync();
// Initialize request argument(s)
Curation curation = new Curation();
FieldMask updateMask = new FieldMask();
// Make the request
Curation response = await apiHubCurateClient.UpdateCurationAsync(curation, updateMask);
```

### UpdateCurationAsync(UpdateCurationRequest, CallSettings)

    public virtual Task<Curation> UpdateCurationAsync(UpdateCurationRequest request, CallSettings callSettings = null)

Update a curation resource in the API hub. The following fields in the
\[curation\]\[google.cloud.apihub.v1.Curation\] can be updated:

- \[display_name\]\[google.cloud.apihub.v1.Curation.display_name\]
- \[description\]\[google.cloud.apihub.v1.Curation.description\]

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `UpdateCurationRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskCuration` | A Task containing the RPC response. |

**Example**

```cs
// Create client
ApiHubCurateClient apiHubCurateClient = await ApiHubCurateClient.CreateAsync();
// Initialize request argument(s)
UpdateCurationRequest request = new UpdateCurationRequest
{
    Curation = new Curation(),
    UpdateMask = new FieldMask(),
};
// Make the request
Curation response = await apiHubCurateClient.UpdateCurationAsync(request);
```

### UpdateCurationAsync(UpdateCurationRequest, CancellationToken)

    public virtual Task<Curation> UpdateCurationAsync(UpdateCurationRequest request, CancellationToken cancellationToken)

Update a curation resource in the API hub. The following fields in the
\[curation\]\[google.cloud.apihub.v1.Curation\] can be updated:

- \[display_name\]\[google.cloud.apihub.v1.Curation.display_name\]
- \[description\]\[google.cloud.apihub.v1.Curation.description\]

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `UpdateCurationRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskCuration` | A Task containing the RPC response. |

**Example**

```cs
// Create client
ApiHubCurateClient apiHubCurateClient = await ApiHubCurateClient.CreateAsync();
// Initialize request argument(s)
UpdateCurationRequest request = new UpdateCurationRequest
{
    Curation = new Curation(),
    UpdateMask = new FieldMask(),
};
// Make the request
Curation response = await apiHubCurateClient.UpdateCurationAsync(request);
```