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 DeleteDanglingIndexResponsedeleteDanglingIndex(DeleteDanglingIndexRequest request)Deletes the specified dangling indexDeleteDanglingIndexResponsedeleteDanglingIndex(java.util.function.Function<DeleteDanglingIndexRequest.Builder,ObjectBuilder<DeleteDanglingIndexRequest>> fn)Deletes the specified dangling indexImportDanglingIndexResponseimportDanglingIndex(ImportDanglingIndexRequest request)Imports the specified dangling indexImportDanglingIndexResponseimportDanglingIndex(java.util.function.Function<ImportDanglingIndexRequest.Builder,ObjectBuilder<ImportDanglingIndexRequest>> fn)Imports the specified dangling indexListDanglingIndicesResponselistDanglingIndices()Returns all dangling indices.ElasticsearchDanglingIndicesClientwithTransportOptions(TransportOptions transportOptions)Creates a new client with some request optionsMethods inherited from class co.elastic.clients.ApiClient
_jsonpMapper, _transport, _transportOptions, getDeserializerMethods 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:ApiClientCreates a new client with some request options- Specified by:
withTransportOptionsin classApiClient<ElasticsearchTransport,ElasticsearchDanglingIndicesClient>
-
deleteDanglingIndex
public DeleteDanglingIndexResponse deleteDanglingIndex(DeleteDanglingIndexRequest request) throws java.io.IOException, ElasticsearchExceptionDeletes the specified dangling index- Throws:
java.io.IOExceptionElasticsearchException- 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.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
importDanglingIndex
public ImportDanglingIndexResponse importDanglingIndex(ImportDanglingIndexRequest request) throws java.io.IOException, ElasticsearchExceptionImports the specified dangling index- Throws:
java.io.IOExceptionElasticsearchException- 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.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
listDanglingIndices
public ListDanglingIndicesResponse listDanglingIndices() throws java.io.IOException, ElasticsearchExceptionReturns all dangling indices.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-