# API hub v1 API - Class ApiHubCurate.ApiHubCurateBase (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.ApiHubCurate.ApiHubCurateBase)
- [1.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/1.1.0/Google.Cloud.ApiHub.V1.ApiHubCurate.ApiHubCurateBase)
- [1.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/1.0.0/Google.Cloud.ApiHub.V1.ApiHubCurate.ApiHubCurateBase)

    [BindServiceMethod(typeof(ApiHubCurate), "BindService")]
    public abstract class ApiHubCurate.ApiHubCurateBase

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

Base class for server-side implementations of ApiHubCurate

## Inheritance

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

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

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

## Methods

### CreateCuration(CreateCurationRequest, ServerCallContext)

    public virtual Task<Curation> CreateCuration(CreateCurationRequest request, ServerCallContext context)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.CreateCurationRequest` The request received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **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.Curation` | The response to send back to the client (wrapped by a task). |

### DeleteCuration(DeleteCurationRequest, ServerCallContext)

    public virtual Task<Empty> DeleteCuration(DeleteCurationRequest request, ServerCallContext context)

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` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.DeleteCurationRequest` The request received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.html` | The response to send back to the client (wrapped by a task). |

### GetCuration(GetCurationRequest, ServerCallContext)

    public virtual Task<Curation> GetCuration(GetCurationRequest request, ServerCallContext context)

Get curation resource details.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.GetCurationRequest` The request received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **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.Curation` | The response to send back to the client (wrapped by a task). |

### ListCurations(ListCurationsRequest, ServerCallContext)

    public virtual Task<ListCurationsResponse> ListCurations(ListCurationsRequest request, ServerCallContext context)

List curation resources 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.ListCurationsRequest` The request received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **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.ListCurationsResponse` | The response to send back to the client (wrapped by a task). |

### UpdateCuration(UpdateCurationRequest, ServerCallContext)

    public virtual Task<Curation> UpdateCuration(UpdateCurationRequest request, ServerCallContext context)

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` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.UpdateCurationRequest` The request received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **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.Curation` | The response to send back to the client (wrapped by a task). |