Class ElasticsearchConnectorClient
- All Implemented Interfaces:
Closeable,AutoCloseable
-
Field Summary
Fields inherited from class co.elastic.clients.ApiClient
transport, transportOptions -
Constructor Summary
ConstructorsConstructorDescriptionElasticsearchConnectorClient(ElasticsearchTransport transport, TransportOptions transportOptions) -
Method Summary
Modifier and TypeMethodDescriptioncheckIn(CheckInRequest request) Check in a connector.final CheckInResponseCheck in a connector.delete(DeleteConnectorRequest request) Delete a connector.final DeleteConnectorResponseDelete a connector.get(GetConnectorRequest request) Get a connector.final GetConnectorResponseGet a connector.list()Get all connectors.list(ListRequest request) Get all connectors.final ListResponseGet all connectors.post()Create a connector.post(PostRequest request) Create a connector.final PostResponseCreate a connector.put()Create or update a connector.put(PutRequest request) Create or update a connector.final PutResponseCreate or update a connector.syncJobCancel(SyncJobCancelRequest request) Cancel a connector sync job.final SyncJobCancelResponseCancel a connector sync job.syncJobCheckIn(SyncJobCheckInRequest request) Check in a connector sync job.final SyncJobCheckInResponseCheck in a connector sync job.syncJobClaim(SyncJobClaimRequest request) Claim a connector sync job.final SyncJobClaimResponseClaim a connector sync job.syncJobDelete(SyncJobDeleteRequest request) Delete a connector sync job.final SyncJobDeleteResponseDelete a connector sync job.syncJobError(SyncJobErrorRequest request) Set a connector sync job error.final SyncJobErrorResponseSet a connector sync job error.syncJobGet(SyncJobGetRequest request) Get a connector sync job.final SyncJobGetResponseGet a connector sync job.Get all connector sync jobs.syncJobList(SyncJobListRequest request) Get all connector sync jobs.final SyncJobListResponseGet all connector sync jobs.syncJobPost(SyncJobPostRequest request) Create a connector sync job.final SyncJobPostResponseCreate a connector sync job.Set the connector sync job stats.syncJobUpdateStats(Function<SyncJobUpdateStatsRequest.Builder, ObjectBuilder<SyncJobUpdateStatsRequest>> fn) Set the connector sync job stats.Activate the connector draft filter.updateActiveFiltering(Function<UpdateActiveFilteringRequest.Builder, ObjectBuilder<UpdateActiveFilteringRequest>> fn) Activate the connector draft filter.updateApiKeyId(UpdateApiKeyIdRequest request) Update the connector API key ID.final UpdateApiKeyIdResponseUpdate the connector API key ID.Update the connector configuration.updateConfiguration(Function<UpdateConfigurationRequest.Builder, ObjectBuilder<UpdateConfigurationRequest>> fn) Update the connector configuration.updateError(UpdateErrorRequest request) Update the connector error field.final UpdateErrorResponseUpdate the connector error field.updateFeatures(UpdateFeaturesRequest request) Update the connector features.final UpdateFeaturesResponseUpdate the connector features.updateFiltering(UpdateFilteringRequest request) Update the connector filtering.final UpdateFilteringResponseUpdate the connector filtering.Update the connector draft filtering validation.updateFilteringValidation(Function<UpdateFilteringValidationRequest.Builder, ObjectBuilder<UpdateFilteringValidationRequest>> fn) Update the connector draft filtering validation.updateIndexName(UpdateIndexNameRequest request) Update the connector index name.final UpdateIndexNameResponseUpdate the connector index name.updateName(UpdateNameRequest request) Update the connector name and description.final UpdateNameResponseUpdate the connector name and description.updateNative(UpdateNativeRequest request) Update the connector is_native flag.final UpdateNativeResponseUpdate the connector is_native flag.updatePipeline(UpdatePipelineRequest request) Update the connector pipeline.final UpdatePipelineResponseUpdate the connector pipeline.updateScheduling(UpdateSchedulingRequest request) Update the connector scheduling.final UpdateSchedulingResponseupdateScheduling(Function<UpdateSchedulingRequest.Builder, ObjectBuilder<UpdateSchedulingRequest>> fn) Update the connector scheduling.Update the connector service type.updateServiceType(Function<UpdateServiceTypeRequest.Builder, ObjectBuilder<UpdateServiceTypeRequest>> fn) Update the connector service type.updateStatus(UpdateStatusRequest request) Update the connector status.final UpdateStatusResponseUpdate the connector status.withTransportOptions(TransportOptions transportOptions) Creates a new client with some request optionsMethods inherited from class co.elastic.clients.ApiClient
_jsonpMapper, _transport, _transportOptions, close, getDeserializer, withTransportOptions
-
Constructor Details
-
ElasticsearchConnectorClient
-
ElasticsearchConnectorClient
public ElasticsearchConnectorClient(ElasticsearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
withTransportOptions
public ElasticsearchConnectorClient withTransportOptions(@Nullable TransportOptions transportOptions) Description copied from class:ApiClientCreates a new client with some request options- Specified by:
withTransportOptionsin classApiClient<ElasticsearchTransport,ElasticsearchConnectorClient>
-
checkIn
Check in a connector.Update the
last_seenfield in the connector and set it to the current timestamp.- Throws:
IOExceptionElasticsearchException- See Also:
-
checkIn
public final CheckInResponse checkIn(Function<CheckInRequest.Builder, ObjectBuilder<CheckInRequest>> fn) throws IOException, ElasticsearchExceptionCheck in a connector.Update the
last_seenfield in the connector and set it to the current timestamp.- Parameters:
fn- a function that initializes a builder to create theCheckInRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
delete
public DeleteConnectorResponse delete(DeleteConnectorRequest request) throws IOException, ElasticsearchException Delete a connector.Removes a connector and associated sync jobs. This is a destructive action that is not recoverable. NOTE: This action doesn’t delete any API keys, ingest pipelines, or data indices associated with the connector. These need to be removed manually.
- Throws:
IOExceptionElasticsearchException- See Also:
-
delete
public final DeleteConnectorResponse delete(Function<DeleteConnectorRequest.Builder, ObjectBuilder<DeleteConnectorRequest>> fn) throws IOException, ElasticsearchExceptionDelete a connector.Removes a connector and associated sync jobs. This is a destructive action that is not recoverable. NOTE: This action doesn’t delete any API keys, ingest pipelines, or data indices associated with the connector. These need to be removed manually.
- Parameters:
fn- a function that initializes a builder to create theDeleteConnectorRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
get
public GetConnectorResponse get(GetConnectorRequest request) throws IOException, ElasticsearchException Get a connector.Get the details about a connector.
- Throws:
IOExceptionElasticsearchException- See Also:
-
get
public final GetConnectorResponse get(Function<GetConnectorRequest.Builder, ObjectBuilder<GetConnectorRequest>> fn) throws IOException, ElasticsearchExceptionGet a connector.Get the details about a connector.
- Parameters:
fn- a function that initializes a builder to create theGetConnectorRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
list
Get all connectors.Get information about all connectors.
- Throws:
IOExceptionElasticsearchException- See Also:
-
list
public final ListResponse list(Function<ListRequest.Builder, ObjectBuilder<ListRequest>> fn) throws IOException, ElasticsearchExceptionGet all connectors.Get information about all connectors.
- Parameters:
fn- a function that initializes a builder to create theListRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
list
Get all connectors.Get information about all connectors.
- Throws:
IOExceptionElasticsearchException- See Also:
-
post
Create a connector.Connectors are Elasticsearch integrations that bring content from third-party data sources, which can be deployed on Elastic Cloud or hosted on your own infrastructure. Elastic managed connectors (Native connectors) are a managed service on Elastic Cloud. Self-managed connectors (Connector clients) are self-managed on your infrastructure.
- Throws:
IOExceptionElasticsearchException- See Also:
-
post
public final PostResponse post(Function<PostRequest.Builder, ObjectBuilder<PostRequest>> fn) throws IOException, ElasticsearchExceptionCreate a connector.Connectors are Elasticsearch integrations that bring content from third-party data sources, which can be deployed on Elastic Cloud or hosted on your own infrastructure. Elastic managed connectors (Native connectors) are a managed service on Elastic Cloud. Self-managed connectors (Connector clients) are self-managed on your infrastructure.
- Parameters:
fn- a function that initializes a builder to create thePostRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
post
Create a connector.Connectors are Elasticsearch integrations that bring content from third-party data sources, which can be deployed on Elastic Cloud or hosted on your own infrastructure. Elastic managed connectors (Native connectors) are a managed service on Elastic Cloud. Self-managed connectors (Connector clients) are self-managed on your infrastructure.
- Throws:
IOExceptionElasticsearchException- See Also:
-
put
Create or update a connector.- Throws:
IOExceptionElasticsearchException- See Also:
-
put
public final PutResponse put(Function<PutRequest.Builder, ObjectBuilder<PutRequest>> fn) throws IOException, ElasticsearchExceptionCreate or update a connector.- Parameters:
fn- a function that initializes a builder to create thePutRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
put
Create or update a connector.- Throws:
IOExceptionElasticsearchException- See Also:
-
syncJobCancel
public SyncJobCancelResponse syncJobCancel(SyncJobCancelRequest request) throws IOException, ElasticsearchException Cancel a connector sync job.Cancel a connector sync job, which sets the status to cancelling and updates
cancellation_requested_atto the current time. The connector service is then responsible for setting the status of connector sync jobs to cancelled.- Throws:
IOExceptionElasticsearchException- See Also:
-
syncJobCancel
public final SyncJobCancelResponse syncJobCancel(Function<SyncJobCancelRequest.Builder, ObjectBuilder<SyncJobCancelRequest>> fn) throws IOException, ElasticsearchExceptionCancel a connector sync job.Cancel a connector sync job, which sets the status to cancelling and updates
cancellation_requested_atto the current time. The connector service is then responsible for setting the status of connector sync jobs to cancelled.- Parameters:
fn- a function that initializes a builder to create theSyncJobCancelRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
syncJobCheckIn
public SyncJobCheckInResponse syncJobCheckIn(SyncJobCheckInRequest request) throws IOException, ElasticsearchException Check in a connector sync job. Check in a connector sync job and set thelast_seenfield to the current time before updating it in the internal index.To sync data using self-managed connectors, you need to deploy the Elastic connector service on your own infrastructure. This service runs automatically on Elastic Cloud for Elastic managed connectors.
- Throws:
IOExceptionElasticsearchException- See Also:
-
syncJobCheckIn
public final SyncJobCheckInResponse syncJobCheckIn(Function<SyncJobCheckInRequest.Builder, ObjectBuilder<SyncJobCheckInRequest>> fn) throws IOException, ElasticsearchExceptionCheck in a connector sync job. Check in a connector sync job and set thelast_seenfield to the current time before updating it in the internal index.To sync data using self-managed connectors, you need to deploy the Elastic connector service on your own infrastructure. This service runs automatically on Elastic Cloud for Elastic managed connectors.
- Parameters:
fn- a function that initializes a builder to create theSyncJobCheckInRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
syncJobClaim
public SyncJobClaimResponse syncJobClaim(SyncJobClaimRequest request) throws IOException, ElasticsearchException Claim a connector sync job. This action updates the job status toin_progressand sets thelast_seenandstarted_attimestamps to the current time. Additionally, it can set thesync_cursorproperty for the sync job.This API is not intended for direct connector management by users. It supports the implementation of services that utilize the connector protocol to communicate with Elasticsearch.
To sync data using self-managed connectors, you need to deploy the Elastic connector service on your own infrastructure. This service runs automatically on Elastic Cloud for Elastic managed connectors.
- Throws:
IOExceptionElasticsearchException- See Also:
-
syncJobClaim
public final SyncJobClaimResponse syncJobClaim(Function<SyncJobClaimRequest.Builder, ObjectBuilder<SyncJobClaimRequest>> fn) throws IOException, ElasticsearchExceptionClaim a connector sync job. This action updates the job status toin_progressand sets thelast_seenandstarted_attimestamps to the current time. Additionally, it can set thesync_cursorproperty for the sync job.This API is not intended for direct connector management by users. It supports the implementation of services that utilize the connector protocol to communicate with Elasticsearch.
To sync data using self-managed connectors, you need to deploy the Elastic connector service on your own infrastructure. This service runs automatically on Elastic Cloud for Elastic managed connectors.
- Parameters:
fn- a function that initializes a builder to create theSyncJobClaimRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
syncJobDelete
public SyncJobDeleteResponse syncJobDelete(SyncJobDeleteRequest request) throws IOException, ElasticsearchException Delete a connector sync job.Remove a connector sync job and its associated data. This is a destructive action that is not recoverable.
- Throws:
IOExceptionElasticsearchException- See Also:
-
syncJobDelete
public final SyncJobDeleteResponse syncJobDelete(Function<SyncJobDeleteRequest.Builder, ObjectBuilder<SyncJobDeleteRequest>> fn) throws IOException, ElasticsearchExceptionDelete a connector sync job.Remove a connector sync job and its associated data. This is a destructive action that is not recoverable.
- Parameters:
fn- a function that initializes a builder to create theSyncJobDeleteRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
syncJobError
public SyncJobErrorResponse syncJobError(SyncJobErrorRequest request) throws IOException, ElasticsearchException Set a connector sync job error. Set theerrorfield for a connector sync job and set itsstatustoerror.To sync data using self-managed connectors, you need to deploy the Elastic connector service on your own infrastructure. This service runs automatically on Elastic Cloud for Elastic managed connectors.
- Throws:
IOExceptionElasticsearchException- See Also:
-
syncJobError
public final SyncJobErrorResponse syncJobError(Function<SyncJobErrorRequest.Builder, ObjectBuilder<SyncJobErrorRequest>> fn) throws IOException, ElasticsearchExceptionSet a connector sync job error. Set theerrorfield for a connector sync job and set itsstatustoerror.To sync data using self-managed connectors, you need to deploy the Elastic connector service on your own infrastructure. This service runs automatically on Elastic Cloud for Elastic managed connectors.
- Parameters:
fn- a function that initializes a builder to create theSyncJobErrorRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
syncJobGet
public SyncJobGetResponse syncJobGet(SyncJobGetRequest request) throws IOException, ElasticsearchException Get a connector sync job.- Throws:
IOExceptionElasticsearchException- See Also:
-
syncJobGet
public final SyncJobGetResponse syncJobGet(Function<SyncJobGetRequest.Builder, ObjectBuilder<SyncJobGetRequest>> fn) throws IOException, ElasticsearchExceptionGet a connector sync job.- Parameters:
fn- a function that initializes a builder to create theSyncJobGetRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
syncJobList
public SyncJobListResponse syncJobList(SyncJobListRequest request) throws IOException, ElasticsearchException Get all connector sync jobs.Get information about all stored connector sync jobs listed by their creation date in ascending order.
- Throws:
IOExceptionElasticsearchException- See Also:
-
syncJobList
public final SyncJobListResponse syncJobList(Function<SyncJobListRequest.Builder, ObjectBuilder<SyncJobListRequest>> fn) throws IOException, ElasticsearchExceptionGet all connector sync jobs.Get information about all stored connector sync jobs listed by their creation date in ascending order.
- Parameters:
fn- a function that initializes a builder to create theSyncJobListRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
syncJobList
Get all connector sync jobs.Get information about all stored connector sync jobs listed by their creation date in ascending order.
- Throws:
IOExceptionElasticsearchException- See Also:
-
syncJobPost
public SyncJobPostResponse syncJobPost(SyncJobPostRequest request) throws IOException, ElasticsearchException Create a connector sync job.Create a connector sync job document in the internal index and initialize its counters and timestamps with default values.
- Throws:
IOExceptionElasticsearchException- See Also:
-
syncJobPost
public final SyncJobPostResponse syncJobPost(Function<SyncJobPostRequest.Builder, ObjectBuilder<SyncJobPostRequest>> fn) throws IOException, ElasticsearchExceptionCreate a connector sync job.Create a connector sync job document in the internal index and initialize its counters and timestamps with default values.
- Parameters:
fn- a function that initializes a builder to create theSyncJobPostRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
syncJobUpdateStats
public SyncJobUpdateStatsResponse syncJobUpdateStats(SyncJobUpdateStatsRequest request) throws IOException, ElasticsearchException Set the connector sync job stats. Stats include:deleted_document_count,indexed_document_count,indexed_document_volume, andtotal_document_count. You can also updatelast_seen. This API is mainly used by the connector service for updating sync job information.To sync data using self-managed connectors, you need to deploy the Elastic connector service on your own infrastructure. This service runs automatically on Elastic Cloud for Elastic managed connectors.
- Throws:
IOExceptionElasticsearchException- See Also:
-
syncJobUpdateStats
public final SyncJobUpdateStatsResponse syncJobUpdateStats(Function<SyncJobUpdateStatsRequest.Builder, ObjectBuilder<SyncJobUpdateStatsRequest>> fn) throws IOException, ElasticsearchExceptionSet the connector sync job stats. Stats include:deleted_document_count,indexed_document_count,indexed_document_volume, andtotal_document_count. You can also updatelast_seen. This API is mainly used by the connector service for updating sync job information.To sync data using self-managed connectors, you need to deploy the Elastic connector service on your own infrastructure. This service runs automatically on Elastic Cloud for Elastic managed connectors.
- Parameters:
fn- a function that initializes a builder to create theSyncJobUpdateStatsRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
updateActiveFiltering
public UpdateActiveFilteringResponse updateActiveFiltering(UpdateActiveFilteringRequest request) throws IOException, ElasticsearchException Activate the connector draft filter.Activates the valid draft filtering for a connector.
- Throws:
IOExceptionElasticsearchException- See Also:
-
updateActiveFiltering
public final UpdateActiveFilteringResponse updateActiveFiltering(Function<UpdateActiveFilteringRequest.Builder, ObjectBuilder<UpdateActiveFilteringRequest>> fn) throws IOException, ElasticsearchExceptionActivate the connector draft filter.Activates the valid draft filtering for a connector.
- Parameters:
fn- a function that initializes a builder to create theUpdateActiveFilteringRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
updateApiKeyId
public UpdateApiKeyIdResponse updateApiKeyId(UpdateApiKeyIdRequest request) throws IOException, ElasticsearchException Update the connector API key ID.Update the
api_key_idandapi_key_secret_idfields of a connector. You can specify the ID of the API key used for authorization and the ID of the connector secret where the API key is stored. The connector secret ID is required only for Elastic managed (native) connectors. Self-managed connectors (connector clients) do not use this field.- Throws:
IOExceptionElasticsearchException- See Also:
-
updateApiKeyId
public final UpdateApiKeyIdResponse updateApiKeyId(Function<UpdateApiKeyIdRequest.Builder, ObjectBuilder<UpdateApiKeyIdRequest>> fn) throws IOException, ElasticsearchExceptionUpdate the connector API key ID.Update the
api_key_idandapi_key_secret_idfields of a connector. You can specify the ID of the API key used for authorization and the ID of the connector secret where the API key is stored. The connector secret ID is required only for Elastic managed (native) connectors. Self-managed connectors (connector clients) do not use this field.- Parameters:
fn- a function that initializes a builder to create theUpdateApiKeyIdRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
updateConfiguration
public UpdateConfigurationResponse updateConfiguration(UpdateConfigurationRequest request) throws IOException, ElasticsearchException Update the connector configuration.Update the configuration field in the connector document.
- Throws:
IOExceptionElasticsearchException- See Also:
-
updateConfiguration
public final UpdateConfigurationResponse updateConfiguration(Function<UpdateConfigurationRequest.Builder, ObjectBuilder<UpdateConfigurationRequest>> fn) throws IOException, ElasticsearchExceptionUpdate the connector configuration.Update the configuration field in the connector document.
- Parameters:
fn- a function that initializes a builder to create theUpdateConfigurationRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
updateError
public UpdateErrorResponse updateError(UpdateErrorRequest request) throws IOException, ElasticsearchException Update the connector error field.Set the error field for the connector. If the error provided in the request body is non-null, the connector’s status is updated to error. Otherwise, if the error is reset to null, the connector status is updated to connected.
- Throws:
IOExceptionElasticsearchException- See Also:
-
updateError
public final UpdateErrorResponse updateError(Function<UpdateErrorRequest.Builder, ObjectBuilder<UpdateErrorRequest>> fn) throws IOException, ElasticsearchExceptionUpdate the connector error field.Set the error field for the connector. If the error provided in the request body is non-null, the connector’s status is updated to error. Otherwise, if the error is reset to null, the connector status is updated to connected.
- Parameters:
fn- a function that initializes a builder to create theUpdateErrorRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
updateFeatures
public UpdateFeaturesResponse updateFeatures(UpdateFeaturesRequest request) throws IOException, ElasticsearchException Update the connector features. Update the connector features in the connector document. This API can be used to control the following aspects of a connector:- document-level security
- incremental syncs
- advanced sync rules
- basic sync rules
Normally, the running connector service automatically manages these features. However, you can use this API to override the default behavior.
To sync data using self-managed connectors, you need to deploy the Elastic connector service on your own infrastructure. This service runs automatically on Elastic Cloud for Elastic managed connectors.
- Throws:
IOExceptionElasticsearchException- See Also:
-
updateFeatures
public final UpdateFeaturesResponse updateFeatures(Function<UpdateFeaturesRequest.Builder, ObjectBuilder<UpdateFeaturesRequest>> fn) throws IOException, ElasticsearchExceptionUpdate the connector features. Update the connector features in the connector document. This API can be used to control the following aspects of a connector:- document-level security
- incremental syncs
- advanced sync rules
- basic sync rules
Normally, the running connector service automatically manages these features. However, you can use this API to override the default behavior.
To sync data using self-managed connectors, you need to deploy the Elastic connector service on your own infrastructure. This service runs automatically on Elastic Cloud for Elastic managed connectors.
- Parameters:
fn- a function that initializes a builder to create theUpdateFeaturesRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
updateFiltering
public UpdateFilteringResponse updateFiltering(UpdateFilteringRequest request) throws IOException, ElasticsearchException Update the connector filtering.Update the draft filtering configuration of a connector and marks the draft validation state as edited. The filtering draft is activated once validated by the running Elastic connector service. The filtering property is used to configure sync rules (both basic and advanced) for a connector.
- Throws:
IOExceptionElasticsearchException- See Also:
-
updateFiltering
public final UpdateFilteringResponse updateFiltering(Function<UpdateFilteringRequest.Builder, ObjectBuilder<UpdateFilteringRequest>> fn) throws IOException, ElasticsearchExceptionUpdate the connector filtering.Update the draft filtering configuration of a connector and marks the draft validation state as edited. The filtering draft is activated once validated by the running Elastic connector service. The filtering property is used to configure sync rules (both basic and advanced) for a connector.
- Parameters:
fn- a function that initializes a builder to create theUpdateFilteringRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
updateFilteringValidation
public UpdateFilteringValidationResponse updateFilteringValidation(UpdateFilteringValidationRequest request) throws IOException, ElasticsearchException Update the connector draft filtering validation.Update the draft filtering validation info for a connector.
- Throws:
IOExceptionElasticsearchException- See Also:
-
updateFilteringValidation
public final UpdateFilteringValidationResponse updateFilteringValidation(Function<UpdateFilteringValidationRequest.Builder, ObjectBuilder<UpdateFilteringValidationRequest>> fn) throws IOException, ElasticsearchExceptionUpdate the connector draft filtering validation.Update the draft filtering validation info for a connector.
- Parameters:
fn- a function that initializes a builder to create theUpdateFilteringValidationRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
updateIndexName
public UpdateIndexNameResponse updateIndexName(UpdateIndexNameRequest request) throws IOException, ElasticsearchException Update the connector index name.Update the
index_namefield of a connector, specifying the index where the data ingested by the connector is stored.- Throws:
IOExceptionElasticsearchException- See Also:
-
updateIndexName
public final UpdateIndexNameResponse updateIndexName(Function<UpdateIndexNameRequest.Builder, ObjectBuilder<UpdateIndexNameRequest>> fn) throws IOException, ElasticsearchExceptionUpdate the connector index name.Update the
index_namefield of a connector, specifying the index where the data ingested by the connector is stored.- Parameters:
fn- a function that initializes a builder to create theUpdateIndexNameRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
updateName
public UpdateNameResponse updateName(UpdateNameRequest request) throws IOException, ElasticsearchException Update the connector name and description.- Throws:
IOExceptionElasticsearchException- See Also:
-
updateName
public final UpdateNameResponse updateName(Function<UpdateNameRequest.Builder, ObjectBuilder<UpdateNameRequest>> fn) throws IOException, ElasticsearchExceptionUpdate the connector name and description.- Parameters:
fn- a function that initializes a builder to create theUpdateNameRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
updateNative
public UpdateNativeResponse updateNative(UpdateNativeRequest request) throws IOException, ElasticsearchException Update the connector is_native flag.- Throws:
IOExceptionElasticsearchException- See Also:
-
updateNative
public final UpdateNativeResponse updateNative(Function<UpdateNativeRequest.Builder, ObjectBuilder<UpdateNativeRequest>> fn) throws IOException, ElasticsearchExceptionUpdate the connector is_native flag.- Parameters:
fn- a function that initializes a builder to create theUpdateNativeRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
updatePipeline
public UpdatePipelineResponse updatePipeline(UpdatePipelineRequest request) throws IOException, ElasticsearchException Update the connector pipeline.When you create a new connector, the configuration of an ingest pipeline is populated with default settings.
- Throws:
IOExceptionElasticsearchException- See Also:
-
updatePipeline
public final UpdatePipelineResponse updatePipeline(Function<UpdatePipelineRequest.Builder, ObjectBuilder<UpdatePipelineRequest>> fn) throws IOException, ElasticsearchExceptionUpdate the connector pipeline.When you create a new connector, the configuration of an ingest pipeline is populated with default settings.
- Parameters:
fn- a function that initializes a builder to create theUpdatePipelineRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
updateScheduling
public UpdateSchedulingResponse updateScheduling(UpdateSchedulingRequest request) throws IOException, ElasticsearchException Update the connector scheduling.- Throws:
IOExceptionElasticsearchException- See Also:
-
updateScheduling
public final UpdateSchedulingResponse updateScheduling(Function<UpdateSchedulingRequest.Builder, ObjectBuilder<UpdateSchedulingRequest>> fn) throws IOException, ElasticsearchExceptionUpdate the connector scheduling.- Parameters:
fn- a function that initializes a builder to create theUpdateSchedulingRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
updateServiceType
public UpdateServiceTypeResponse updateServiceType(UpdateServiceTypeRequest request) throws IOException, ElasticsearchException Update the connector service type.- Throws:
IOExceptionElasticsearchException- See Also:
-
updateServiceType
public final UpdateServiceTypeResponse updateServiceType(Function<UpdateServiceTypeRequest.Builder, ObjectBuilder<UpdateServiceTypeRequest>> fn) throws IOException, ElasticsearchExceptionUpdate the connector service type.- Parameters:
fn- a function that initializes a builder to create theUpdateServiceTypeRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
updateStatus
public UpdateStatusResponse updateStatus(UpdateStatusRequest request) throws IOException, ElasticsearchException Update the connector status.- Throws:
IOExceptionElasticsearchException- See Also:
-
updateStatus
public final UpdateStatusResponse updateStatus(Function<UpdateStatusRequest.Builder, ObjectBuilder<UpdateStatusRequest>> fn) throws IOException, ElasticsearchExceptionUpdate the connector status.- Parameters:
fn- a function that initializes a builder to create theUpdateStatusRequest- Throws:
IOExceptionElasticsearchException- See Also:
-