Class ElasticsearchDanglingIndicesClient
java.lang.Object
co.elastic.clients.ApiClient<ElasticsearchTransport,ElasticsearchDanglingIndicesClient>
co.elastic.clients.elasticsearch.dangling_indices.ElasticsearchDanglingIndicesClient
public class ElasticsearchDanglingIndicesClient extends ApiClient<ElasticsearchTransport,ElasticsearchDanglingIndicesClient>
Client for the dangling_indices namespace.
-
Field Summary
Fields inherited from class co.elastic.clients.ApiClient
transport, transportOptions
-
Constructor Summary
Constructors Constructor Description ElasticsearchDanglingIndicesClient(ElasticsearchTransport transport)
ElasticsearchDanglingIndicesClient(ElasticsearchTransport transport, TransportOptions transportOptions)
-
Method Summary
Modifier and Type Method Description DeleteDanglingIndexResponse
deleteDanglingIndex(DeleteDanglingIndexRequest request)
Deletes the specified dangling indexDeleteDanglingIndexResponse
deleteDanglingIndex(java.util.function.Function<DeleteDanglingIndexRequest.Builder,ObjectBuilder<DeleteDanglingIndexRequest>> fn)
Deletes the specified dangling indexImportDanglingIndexResponse
importDanglingIndex(ImportDanglingIndexRequest request)
Imports the specified dangling indexImportDanglingIndexResponse
importDanglingIndex(java.util.function.Function<ImportDanglingIndexRequest.Builder,ObjectBuilder<ImportDanglingIndexRequest>> fn)
Imports the specified dangling indexListDanglingIndicesResponse
listDanglingIndices()
Returns all dangling indices.ElasticsearchDanglingIndicesClient
withTransportOptions(TransportOptions transportOptions)
Creates a new client with some request optionsMethods inherited from class co.elastic.clients.ApiClient
_transport, _transportOptions, getDeserializer
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ElasticsearchDanglingIndicesClient
-
ElasticsearchDanglingIndicesClient
public ElasticsearchDanglingIndicesClient(ElasticsearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
withTransportOptions
public ElasticsearchDanglingIndicesClient withTransportOptions(@Nullable TransportOptions transportOptions)Description copied from class:ApiClient
Creates a new client with some request options- Specified by:
withTransportOptions
in classApiClient<ElasticsearchTransport,ElasticsearchDanglingIndicesClient>
-
deleteDanglingIndex
public DeleteDanglingIndexResponse deleteDanglingIndex(DeleteDanglingIndexRequest request) throws java.io.IOException, ElasticsearchExceptionDeletes the specified dangling index- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
deleteDanglingIndex
public final DeleteDanglingIndexResponse deleteDanglingIndex(java.util.function.Function<DeleteDanglingIndexRequest.Builder,ObjectBuilder<DeleteDanglingIndexRequest>> fn) throws java.io.IOException, ElasticsearchExceptionDeletes the specified dangling index- Parameters:
fn
- a function that initializes a builder to create theDeleteDanglingIndexRequest
- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
importDanglingIndex
public ImportDanglingIndexResponse importDanglingIndex(ImportDanglingIndexRequest request) throws java.io.IOException, ElasticsearchExceptionImports the specified dangling index- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
importDanglingIndex
public final ImportDanglingIndexResponse importDanglingIndex(java.util.function.Function<ImportDanglingIndexRequest.Builder,ObjectBuilder<ImportDanglingIndexRequest>> fn) throws java.io.IOException, ElasticsearchExceptionImports the specified dangling index- Parameters:
fn
- a function that initializes a builder to create theImportDanglingIndexRequest
- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
listDanglingIndices
public ListDanglingIndicesResponse listDanglingIndices() throws java.io.IOException, ElasticsearchExceptionReturns all dangling indices.- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-