Class ElasticsearchConnectorAsyncClient
java.lang.Object
co.elastic.clients.ApiClient<ElasticsearchTransport,ElasticsearchConnectorAsyncClient>
co.elastic.clients.elasticsearch.connector.ElasticsearchConnectorAsyncClient
public class ElasticsearchConnectorAsyncClient
extends ApiClient<ElasticsearchTransport,ElasticsearchConnectorAsyncClient>
Client for the connector namespace.
-
Field Summary
Fields inherited from class co.elastic.clients.ApiClient
transport, transportOptions
-
Constructor Summary
ConstructorsConstructorDescriptionElasticsearchConnectorAsyncClient
(ElasticsearchTransport transport, TransportOptions transportOptions) -
Method Summary
Modifier and TypeMethodDescriptioncheckIn
(CheckInRequest request) Updates the last_seen field in the connector, and sets it to current timestampfinal CompletableFuture<CheckInResponse>
Updates the last_seen field in the connector, and sets it to current timestampdelete
(DeleteConnectorRequest request) Deletes a connector.Deletes a connector.get
(GetConnectorRequest request) Retrieves a connector.Retrieves a connector.list()
Returns existing connectors.list
(ListRequest request) Returns existing connectors.final CompletableFuture<ListResponse>
Returns existing connectors.post()
Creates a connector.post
(PostRequest request) Creates a connector.final CompletableFuture<PostResponse>
Creates a connector.put()
Creates or updates a connector.put
(PutRequest request) Creates or updates a connector.final CompletableFuture<PutResponse>
Creates or updates a connector.syncJobCancel
(SyncJobCancelRequest request) Cancels a connector sync job.Cancels a connector sync job.syncJobDelete
(SyncJobDeleteRequest request) Deletes a connector sync job.Deletes a connector sync job.syncJobGet
(SyncJobGetRequest request) Retrieves a connector sync job.Retrieves a connector sync job.Lists connector sync jobs.syncJobList
(SyncJobListRequest request) Lists connector sync jobs.Lists connector sync jobs.syncJobPost
(SyncJobPostRequest request) Creates a connector sync job.Creates a connector sync job.Activates the valid draft filtering for a connector.updateActiveFiltering
(Function<UpdateActiveFilteringRequest.Builder, ObjectBuilder<UpdateActiveFilteringRequest>> fn) Activates the valid draft filtering for a connector.updateApiKeyId
(UpdateApiKeyIdRequest request) Updates the API key id in the connector documentUpdates the API key id in the connector documentUpdates the configuration field in the connector documentupdateConfiguration
(Function<UpdateConfigurationRequest.Builder, ObjectBuilder<UpdateConfigurationRequest>> fn) Updates the configuration field in the connector documentupdateError
(UpdateErrorRequest request) Updates the filtering field in the connector documentUpdates the filtering field in the connector documentupdateFiltering
(UpdateFilteringRequest request) Updates the filtering field in the connector documentUpdates the filtering field in the connector documentUpdates the draft filtering validation info for a connector.updateFilteringValidation
(Function<UpdateFilteringValidationRequest.Builder, ObjectBuilder<UpdateFilteringValidationRequest>> fn) Updates the draft filtering validation info for a connector.updateIndexName
(UpdateIndexNameRequest request) Updates the index_name in the connector documentUpdates the index_name in the connector documentupdateName
(UpdateNameRequest request) Updates the name and description fields in the connector documentUpdates the name and description fields in the connector documentupdateNative
(UpdateNativeRequest request) Updates the is_native flag in the connector documentUpdates the is_native flag in the connector documentupdatePipeline
(UpdatePipelineRequest request) Updates the pipeline field in the connector documentUpdates the pipeline field in the connector documentupdateScheduling
(UpdateSchedulingRequest request) Updates the scheduling field in the connector documentupdateScheduling
(Function<UpdateSchedulingRequest.Builder, ObjectBuilder<UpdateSchedulingRequest>> fn) Updates the scheduling field in the connector documentUpdates the service type of the connectorupdateServiceType
(Function<UpdateServiceTypeRequest.Builder, ObjectBuilder<UpdateServiceTypeRequest>> fn) Updates the service type of the connectorupdateStatus
(UpdateStatusRequest request) Updates the status of the connectorUpdates the status of the connectorwithTransportOptions
(TransportOptions transportOptions) Creates a new client with some request optionsMethods inherited from class co.elastic.clients.ApiClient
_jsonpMapper, _transport, _transportOptions, getDeserializer, withTransportOptions
-
Constructor Details
-
ElasticsearchConnectorAsyncClient
-
ElasticsearchConnectorAsyncClient
public ElasticsearchConnectorAsyncClient(ElasticsearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
withTransportOptions
public ElasticsearchConnectorAsyncClient withTransportOptions(@Nullable TransportOptions transportOptions) Description copied from class:ApiClient
Creates a new client with some request options- Specified by:
withTransportOptions
in classApiClient<ElasticsearchTransport,
ElasticsearchConnectorAsyncClient>
-
checkIn
Updates the last_seen field in the connector, and sets it to current timestamp- See Also:
-
checkIn
public final CompletableFuture<CheckInResponse> checkIn(Function<CheckInRequest.Builder, ObjectBuilder<CheckInRequest>> fn) Updates the last_seen field in the connector, and sets it to current timestamp- Parameters:
fn
- a function that initializes a builder to create theCheckInRequest
- See Also:
-
delete
Deletes a connector.- See Also:
-
delete
public final CompletableFuture<DeleteConnectorResponse> delete(Function<DeleteConnectorRequest.Builder, ObjectBuilder<DeleteConnectorRequest>> fn) Deletes a connector.- Parameters:
fn
- a function that initializes a builder to create theDeleteConnectorRequest
- See Also:
-
get
Retrieves a connector.- See Also:
-
get
public final CompletableFuture<GetConnectorResponse> get(Function<GetConnectorRequest.Builder, ObjectBuilder<GetConnectorRequest>> fn) Retrieves a connector.- Parameters:
fn
- a function that initializes a builder to create theGetConnectorRequest
- See Also:
-
list
Returns existing connectors.- See Also:
-
list
public final CompletableFuture<ListResponse> list(Function<ListRequest.Builder, ObjectBuilder<ListRequest>> fn) Returns existing connectors.- Parameters:
fn
- a function that initializes a builder to create theListRequest
- See Also:
-
list
Returns existing connectors.- See Also:
-
post
Creates a connector.- See Also:
-
post
public final CompletableFuture<PostResponse> post(Function<PostRequest.Builder, ObjectBuilder<PostRequest>> fn) Creates a connector.- Parameters:
fn
- a function that initializes a builder to create thePostRequest
- See Also:
-
post
Creates a connector.- See Also:
-
put
Creates or updates a connector.- See Also:
-
put
public final CompletableFuture<PutResponse> put(Function<PutRequest.Builder, ObjectBuilder<PutRequest>> fn) Creates or updates a connector.- Parameters:
fn
- a function that initializes a builder to create thePutRequest
- See Also:
-
put
Creates or updates a connector.- See Also:
-
syncJobCancel
Cancels a connector sync job.- See Also:
-
syncJobCancel
public final CompletableFuture<SyncJobCancelResponse> syncJobCancel(Function<SyncJobCancelRequest.Builder, ObjectBuilder<SyncJobCancelRequest>> fn) Cancels a connector sync job.- Parameters:
fn
- a function that initializes a builder to create theSyncJobCancelRequest
- See Also:
-
syncJobDelete
Deletes a connector sync job.- See Also:
-
syncJobDelete
public final CompletableFuture<SyncJobDeleteResponse> syncJobDelete(Function<SyncJobDeleteRequest.Builder, ObjectBuilder<SyncJobDeleteRequest>> fn) Deletes a connector sync job.- Parameters:
fn
- a function that initializes a builder to create theSyncJobDeleteRequest
- See Also:
-
syncJobGet
Retrieves a connector sync job.- See Also:
-
syncJobGet
public final CompletableFuture<SyncJobGetResponse> syncJobGet(Function<SyncJobGetRequest.Builder, ObjectBuilder<SyncJobGetRequest>> fn) Retrieves a connector sync job.- Parameters:
fn
- a function that initializes a builder to create theSyncJobGetRequest
- See Also:
-
syncJobList
Lists connector sync jobs.- See Also:
-
syncJobList
public final CompletableFuture<SyncJobListResponse> syncJobList(Function<SyncJobListRequest.Builder, ObjectBuilder<SyncJobListRequest>> fn) Lists connector sync jobs.- Parameters:
fn
- a function that initializes a builder to create theSyncJobListRequest
- See Also:
-
syncJobList
Lists connector sync jobs.- See Also:
-
syncJobPost
Creates a connector sync job.- See Also:
-
syncJobPost
public final CompletableFuture<SyncJobPostResponse> syncJobPost(Function<SyncJobPostRequest.Builder, ObjectBuilder<SyncJobPostRequest>> fn) Creates a connector sync job.- Parameters:
fn
- a function that initializes a builder to create theSyncJobPostRequest
- See Also:
-
updateActiveFiltering
public CompletableFuture<UpdateActiveFilteringResponse> updateActiveFiltering(UpdateActiveFilteringRequest request) Activates the valid draft filtering for a connector.- See Also:
-
updateActiveFiltering
public final CompletableFuture<UpdateActiveFilteringResponse> updateActiveFiltering(Function<UpdateActiveFilteringRequest.Builder, ObjectBuilder<UpdateActiveFilteringRequest>> fn) Activates the valid draft filtering for a connector.- Parameters:
fn
- a function that initializes a builder to create theUpdateActiveFilteringRequest
- See Also:
-
updateApiKeyId
Updates the API key id in the connector document- See Also:
-
updateApiKeyId
public final CompletableFuture<UpdateApiKeyIdResponse> updateApiKeyId(Function<UpdateApiKeyIdRequest.Builder, ObjectBuilder<UpdateApiKeyIdRequest>> fn) Updates the API key id in the connector document- Parameters:
fn
- a function that initializes a builder to create theUpdateApiKeyIdRequest
- See Also:
-
updateConfiguration
public CompletableFuture<UpdateConfigurationResponse> updateConfiguration(UpdateConfigurationRequest request) Updates the configuration field in the connector document- See Also:
-
updateConfiguration
public final CompletableFuture<UpdateConfigurationResponse> updateConfiguration(Function<UpdateConfigurationRequest.Builder, ObjectBuilder<UpdateConfigurationRequest>> fn) Updates the configuration field in the connector document- Parameters:
fn
- a function that initializes a builder to create theUpdateConfigurationRequest
- See Also:
-
updateError
Updates the filtering field in the connector document- See Also:
-
updateError
public final CompletableFuture<UpdateErrorResponse> updateError(Function<UpdateErrorRequest.Builder, ObjectBuilder<UpdateErrorRequest>> fn) Updates the filtering field in the connector document- Parameters:
fn
- a function that initializes a builder to create theUpdateErrorRequest
- See Also:
-
updateFiltering
Updates the filtering field in the connector document- See Also:
-
updateFiltering
public final CompletableFuture<UpdateFilteringResponse> updateFiltering(Function<UpdateFilteringRequest.Builder, ObjectBuilder<UpdateFilteringRequest>> fn) Updates the filtering field in the connector document- Parameters:
fn
- a function that initializes a builder to create theUpdateFilteringRequest
- See Also:
-
updateFilteringValidation
public CompletableFuture<UpdateFilteringValidationResponse> updateFilteringValidation(UpdateFilteringValidationRequest request) Updates the draft filtering validation info for a connector.- See Also:
-
updateFilteringValidation
public final CompletableFuture<UpdateFilteringValidationResponse> updateFilteringValidation(Function<UpdateFilteringValidationRequest.Builder, ObjectBuilder<UpdateFilteringValidationRequest>> fn) Updates the draft filtering validation info for a connector.- Parameters:
fn
- a function that initializes a builder to create theUpdateFilteringValidationRequest
- See Also:
-
updateIndexName
Updates the index_name in the connector document- See Also:
-
updateIndexName
public final CompletableFuture<UpdateIndexNameResponse> updateIndexName(Function<UpdateIndexNameRequest.Builder, ObjectBuilder<UpdateIndexNameRequest>> fn) Updates the index_name in the connector document- Parameters:
fn
- a function that initializes a builder to create theUpdateIndexNameRequest
- See Also:
-
updateName
Updates the name and description fields in the connector document- See Also:
-
updateName
public final CompletableFuture<UpdateNameResponse> updateName(Function<UpdateNameRequest.Builder, ObjectBuilder<UpdateNameRequest>> fn) Updates the name and description fields in the connector document- Parameters:
fn
- a function that initializes a builder to create theUpdateNameRequest
- See Also:
-
updateNative
Updates the is_native flag in the connector document- See Also:
-
updateNative
public final CompletableFuture<UpdateNativeResponse> updateNative(Function<UpdateNativeRequest.Builder, ObjectBuilder<UpdateNativeRequest>> fn) Updates the is_native flag in the connector document- Parameters:
fn
- a function that initializes a builder to create theUpdateNativeRequest
- See Also:
-
updatePipeline
Updates the pipeline field in the connector document- See Also:
-
updatePipeline
public final CompletableFuture<UpdatePipelineResponse> updatePipeline(Function<UpdatePipelineRequest.Builder, ObjectBuilder<UpdatePipelineRequest>> fn) Updates the pipeline field in the connector document- Parameters:
fn
- a function that initializes a builder to create theUpdatePipelineRequest
- See Also:
-
updateScheduling
public CompletableFuture<UpdateSchedulingResponse> updateScheduling(UpdateSchedulingRequest request) Updates the scheduling field in the connector document- See Also:
-
updateScheduling
public final CompletableFuture<UpdateSchedulingResponse> updateScheduling(Function<UpdateSchedulingRequest.Builder, ObjectBuilder<UpdateSchedulingRequest>> fn) Updates the scheduling field in the connector document- Parameters:
fn
- a function that initializes a builder to create theUpdateSchedulingRequest
- See Also:
-
updateServiceType
public CompletableFuture<UpdateServiceTypeResponse> updateServiceType(UpdateServiceTypeRequest request) Updates the service type of the connector- See Also:
-
updateServiceType
public final CompletableFuture<UpdateServiceTypeResponse> updateServiceType(Function<UpdateServiceTypeRequest.Builder, ObjectBuilder<UpdateServiceTypeRequest>> fn) Updates the service type of the connector- Parameters:
fn
- a function that initializes a builder to create theUpdateServiceTypeRequest
- See Also:
-
updateStatus
Updates the status of the connector- See Also:
-
updateStatus
public final CompletableFuture<UpdateStatusResponse> updateStatus(Function<UpdateStatusRequest.Builder, ObjectBuilder<UpdateStatusRequest>> fn) Updates the status of the connector- Parameters:
fn
- a function that initializes a builder to create theUpdateStatusRequest
- See Also:
-