[BindServiceMethod(typeof(ApiHubCurate), "BindService")]
public abstract class ApiHubCurate.ApiHubCurateBaseReference documentation and code samples for the API hub v1 API class ApiHubCurate.ApiHubCurateBase.
Base class for server-side implementations of ApiHubCurate
Namespace
Google.Cloud.ApiHub.V1Assembly
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 |
CreateCurationRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskCuration |
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 |
DeleteCurationRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskEmpty |
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 |
GetCurationRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskCuration |
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 |
ListCurationsRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskListCurationsResponse |
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 |
UpdateCurationRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskCuration |
The response to send back to the client (wrapped by a task). |