public sealed class ApiHubCurateClientImpl : ApiHubCurateClientReference documentation and code samples for the API hub v1 API class ApiHubCurateClientImpl.
ApiHubCurate client wrapper implementation, for convenient use.
Namespace
Google.Cloud.ApiHub.V1Assembly
Google.Cloud.ApiHub.V1.dll
Remarks
This service is used for managing curations for processing API data consumed from collect layer.
Constructors
ApiHubCurateClientImpl(ApiHubCurateClient, ApiHubCurateSettings, ILogger)
public ApiHubCurateClientImpl(ApiHubCurate.ApiHubCurateClient grpcClient, ApiHubCurateSettings settings, ILogger logger)Constructs a client wrapper for the ApiHubCurate service, with the specified gRPC client and settings.
| Parameters | |
|---|---|
| Name | Description |
grpcClient |
ApiHubCurateApiHubCurateClientThe underlying gRPC client. |
settings |
ApiHubCurateSettingsThe base ApiHubCurateSettings used within this client. |
logger |
ILoggerOptional ILogger to use within this client. |
Properties
GrpcClient
public override ApiHubCurate.ApiHubCurateClient GrpcClient { get; }The underlying gRPC ApiHubCurate client
| Property Value | |
|---|---|
| Type | Description |
ApiHubCurateApiHubCurateClient |
|
LocationsClient
public override LocationsClient LocationsClient { get; }The LocationsClient associated with this client.
| Property Value | |
|---|---|
| Type | Description |
LocationsClient |
|
Methods
CreateCuration(CreateCurationRequest, CallSettings)
public override 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 |
CreateCurationRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Curation |
The RPC response. |
CreateCurationAsync(CreateCurationRequest, CallSettings)
public override 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 |
CreateCurationRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskCuration |
A Task containing the RPC response. |
DeleteCuration(DeleteCurationRequest, CallSettings)
public override 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 |
DeleteCurationRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
DeleteCurationAsync(DeleteCurationRequest, CallSettings)
public override 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 |
DeleteCurationRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task |
A Task containing the RPC response. |
GetCuration(GetCurationRequest, CallSettings)
public override Curation GetCuration(GetCurationRequest request, CallSettings callSettings = null)Get curation resource details.
| Parameters | |
|---|---|
| Name | Description |
request |
GetCurationRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Curation |
The RPC response. |
GetCurationAsync(GetCurationRequest, CallSettings)
public override Task<Curation> GetCurationAsync(GetCurationRequest request, CallSettings callSettings = null)Get curation resource details.
| Parameters | |
|---|---|
| Name | Description |
request |
GetCurationRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskCuration |
A Task containing the RPC response. |
ListCurations(ListCurationsRequest, CallSettings)
public override PagedEnumerable<ListCurationsResponse, Curation> ListCurations(ListCurationsRequest request, CallSettings callSettings = null)List curation resources in the API hub.
| Parameters | |
|---|---|
| Name | Description |
request |
ListCurationsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListCurationsResponseCuration |
A pageable sequence of Curation resources. |
ListCurationsAsync(ListCurationsRequest, CallSettings)
public override PagedAsyncEnumerable<ListCurationsResponse, Curation> ListCurationsAsync(ListCurationsRequest request, CallSettings callSettings = null)List curation resources in the API hub.
| Parameters | |
|---|---|
| Name | Description |
request |
ListCurationsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListCurationsResponseCuration |
A pageable asynchronous sequence of Curation resources. |
UpdateCuration(UpdateCurationRequest, CallSettings)
public override 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 |
UpdateCurationRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Curation |
The RPC response. |
UpdateCurationAsync(UpdateCurationRequest, CallSettings)
public override 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 |
UpdateCurationRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskCuration |
A Task containing the RPC response. |