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 CheckInResponse
Check in a connector.delete
(DeleteConnectorRequest request) Delete a connector.final DeleteConnectorResponse
Delete a connector.get
(GetConnectorRequest request) Get a connector.final GetConnectorResponse
Get a connector.list()
Get all connectors.list
(ListRequest request) Get all connectors.final ListResponse
Get all connectors.post()
Create a connector.post
(PostRequest request) Create a connector.final PostResponse
Create a connector.put()
Create or update a connector.put
(PutRequest request) Create or update a connector.final PutResponse
Create or update a connector.syncJobCancel
(SyncJobCancelRequest request) Cancel a connector sync job.final SyncJobCancelResponse
Cancel a connector sync job.syncJobCheckIn
(SyncJobCheckInRequest request) Check in a connector sync job.final SyncJobCheckInResponse
Check in a connector sync job.syncJobClaim
(SyncJobClaimRequest request) Claim a connector sync job.final SyncJobClaimResponse
Claim a connector sync job.syncJobDelete
(SyncJobDeleteRequest request) Delete a connector sync job.final SyncJobDeleteResponse
Delete a connector sync job.syncJobError
(SyncJobErrorRequest request) Set a connector sync job error.final SyncJobErrorResponse
Set a connector sync job error.syncJobGet
(SyncJobGetRequest request) Get a connector sync job.final SyncJobGetResponse
Get a connector sync job.Get all connector sync jobs.syncJobList
(SyncJobListRequest request) Get all connector sync jobs.final SyncJobListResponse
Get all connector sync jobs.syncJobPost
(SyncJobPostRequest request) Create a connector sync job.final SyncJobPostResponse
Create 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 UpdateApiKeyIdResponse
Update 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 UpdateErrorResponse
Update the connector error field.updateFeatures
(UpdateFeaturesRequest request) Update the connector features.final UpdateFeaturesResponse
Update the connector features.updateFiltering
(UpdateFilteringRequest request) Update the connector filtering.final UpdateFilteringResponse
Update 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 UpdateIndexNameResponse
Update the connector index name.updateName
(UpdateNameRequest request) Update the connector name and description.final UpdateNameResponse
Update the connector name and description.updateNative
(UpdateNativeRequest request) Update the connector is_native flag.final UpdateNativeResponse
Update the connector is_native flag.updatePipeline
(UpdatePipelineRequest request) Update the connector pipeline.final UpdatePipelineResponse
Update the connector pipeline.updateScheduling
(UpdateSchedulingRequest request) Update the connector scheduling.final UpdateSchedulingResponse
updateScheduling
(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 UpdateStatusResponse
Update 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:ApiClient
Creates a new client with some request options- Specified by:
withTransportOptions
in classApiClient<ElasticsearchTransport,
ElasticsearchConnectorClient>
-
checkIn
Check in a connector.Update the
last_seen
field in the connector and set it to the current timestamp.- Throws:
IOException
ElasticsearchException
- See Also:
-
checkIn
public final CheckInResponse checkIn(Function<CheckInRequest.Builder, ObjectBuilder<CheckInRequest>> fn) throws IOException, ElasticsearchExceptionCheck in a connector.Update the
last_seen
field in the connector and set it to the current timestamp.- Parameters:
fn
- a function that initializes a builder to create theCheckInRequest
- Throws:
IOException
ElasticsearchException
- 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:
IOException
ElasticsearchException
- 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:
IOException
ElasticsearchException
- See Also:
-
get
public GetConnectorResponse get(GetConnectorRequest request) throws IOException, ElasticsearchException Get a connector.Get the details about a connector.
- Throws:
IOException
ElasticsearchException
- 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:
IOException
ElasticsearchException
- See Also:
-
list
Get all connectors.Get information about all connectors.
- Throws:
IOException
ElasticsearchException
- 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:
IOException
ElasticsearchException
- See Also:
-
list
Get all connectors.Get information about all connectors.
- Throws:
IOException
ElasticsearchException
- 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:
IOException
ElasticsearchException
- 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:
IOException
ElasticsearchException
- 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:
IOException
ElasticsearchException
- See Also:
-
put
Create or update a connector.- Throws:
IOException
ElasticsearchException
- 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:
IOException
ElasticsearchException
- See Also:
-
put
Create or update a connector.- Throws:
IOException
ElasticsearchException
- 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_at
to the current time. The connector service is then responsible for setting the status of connector sync jobs to cancelled.- Throws:
IOException
ElasticsearchException
- 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_at
to 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:
IOException
ElasticsearchException
- 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_seen
field 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:
IOException
ElasticsearchException
- 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_seen
field 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:
IOException
ElasticsearchException
- See Also:
-
syncJobClaim
public SyncJobClaimResponse syncJobClaim(SyncJobClaimRequest request) throws IOException, ElasticsearchException Claim a connector sync job. This action updates the job status toin_progress
and sets thelast_seen
andstarted_at
timestamps to the current time. Additionally, it can set thesync_cursor
property 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:
IOException
ElasticsearchException
- 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_progress
and sets thelast_seen
andstarted_at
timestamps to the current time. Additionally, it can set thesync_cursor
property 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:
IOException
ElasticsearchException
- 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:
IOException
ElasticsearchException
- 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:
IOException
ElasticsearchException
- See Also:
-
syncJobError
public SyncJobErrorResponse syncJobError(SyncJobErrorRequest request) throws IOException, ElasticsearchException Set a connector sync job error. Set theerror
field for a connector sync job and set itsstatus
toerror
.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:
IOException
ElasticsearchException
- See Also:
-
syncJobError
public final SyncJobErrorResponse syncJobError(Function<SyncJobErrorRequest.Builder, ObjectBuilder<SyncJobErrorRequest>> fn) throws IOException, ElasticsearchExceptionSet a connector sync job error. Set theerror
field for a connector sync job and set itsstatus
toerror
.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:
IOException
ElasticsearchException
- See Also:
-
syncJobGet
public SyncJobGetResponse syncJobGet(SyncJobGetRequest request) throws IOException, ElasticsearchException Get a connector sync job.- Throws:
IOException
ElasticsearchException
- 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:
IOException
ElasticsearchException
- 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:
IOException
ElasticsearchException
- 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:
IOException
ElasticsearchException
- 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:
IOException
ElasticsearchException
- 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:
IOException
ElasticsearchException
- 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:
IOException
ElasticsearchException
- 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:
IOException
ElasticsearchException
- 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:
IOException
ElasticsearchException
- 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:
IOException
ElasticsearchException
- 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:
IOException
ElasticsearchException
- See Also:
-
updateApiKeyId
public UpdateApiKeyIdResponse updateApiKeyId(UpdateApiKeyIdRequest request) throws IOException, ElasticsearchException Update the connector API key ID.Update the
api_key_id
andapi_key_secret_id
fields 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:
IOException
ElasticsearchException
- 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_id
andapi_key_secret_id
fields 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:
IOException
ElasticsearchException
- See Also:
-
updateConfiguration
public UpdateConfigurationResponse updateConfiguration(UpdateConfigurationRequest request) throws IOException, ElasticsearchException Update the connector configuration.Update the configuration field in the connector document.
- Throws:
IOException
ElasticsearchException
- 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:
IOException
ElasticsearchException
- 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:
IOException
ElasticsearchException
- 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:
IOException
ElasticsearchException
- 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:
IOException
ElasticsearchException
- 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:
IOException
ElasticsearchException
- 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:
IOException
ElasticsearchException
- 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:
IOException
ElasticsearchException
- 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:
IOException
ElasticsearchException
- 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:
IOException
ElasticsearchException
- See Also:
-
updateIndexName
public UpdateIndexNameResponse updateIndexName(UpdateIndexNameRequest request) throws IOException, ElasticsearchException Update the connector index name.Update the
index_name
field of a connector, specifying the index where the data ingested by the connector is stored.- Throws:
IOException
ElasticsearchException
- See Also:
-
updateIndexName
public final UpdateIndexNameResponse updateIndexName(Function<UpdateIndexNameRequest.Builder, ObjectBuilder<UpdateIndexNameRequest>> fn) throws IOException, ElasticsearchExceptionUpdate the connector index name.Update the
index_name
field 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:
IOException
ElasticsearchException
- See Also:
-
updateName
public UpdateNameResponse updateName(UpdateNameRequest request) throws IOException, ElasticsearchException Update the connector name and description.- Throws:
IOException
ElasticsearchException
- 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:
IOException
ElasticsearchException
- See Also:
-
updateNative
public UpdateNativeResponse updateNative(UpdateNativeRequest request) throws IOException, ElasticsearchException Update the connector is_native flag.- Throws:
IOException
ElasticsearchException
- 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:
IOException
ElasticsearchException
- 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:
IOException
ElasticsearchException
- 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:
IOException
ElasticsearchException
- See Also:
-
updateScheduling
public UpdateSchedulingResponse updateScheduling(UpdateSchedulingRequest request) throws IOException, ElasticsearchException Update the connector scheduling.- Throws:
IOException
ElasticsearchException
- 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:
IOException
ElasticsearchException
- See Also:
-
updateServiceType
public UpdateServiceTypeResponse updateServiceType(UpdateServiceTypeRequest request) throws IOException, ElasticsearchException Update the connector service type.- Throws:
IOException
ElasticsearchException
- 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:
IOException
ElasticsearchException
- See Also:
-
updateStatus
public UpdateStatusResponse updateStatus(UpdateStatusRequest request) throws IOException, ElasticsearchException Update the connector status.- Throws:
IOException
ElasticsearchException
- 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:
IOException
ElasticsearchException
- See Also:
-