Class OpenSearchDanglingIndicesClient
- java.lang.Object
-
- org.opensearch.client.ApiClient<OpenSearchTransport,OpenSearchDanglingIndicesClient>
-
- org.opensearch.client.opensearch.dangling_indices.OpenSearchDanglingIndicesClient
-
public class OpenSearchDanglingIndicesClient extends ApiClient<OpenSearchTransport,OpenSearchDanglingIndicesClient>
Client for the dangling_indices namespace.
-
-
Field Summary
-
Fields inherited from class org.opensearch.client.ApiClient
transport, transportOptions
-
-
Constructor Summary
Constructors Constructor Description OpenSearchDanglingIndicesClient(OpenSearchTransport transport)OpenSearchDanglingIndicesClient(OpenSearchTransport transport, TransportOptions transportOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DeleteDanglingIndexResponsedeleteDanglingIndex(java.util.function.Function<DeleteDanglingIndexRequest.Builder,ObjectBuilder<DeleteDanglingIndexRequest>> fn)Deletes the specified dangling indexDeleteDanglingIndexResponsedeleteDanglingIndex(DeleteDanglingIndexRequest request)Deletes the specified dangling indexImportDanglingIndexResponseimportDanglingIndex(java.util.function.Function<ImportDanglingIndexRequest.Builder,ObjectBuilder<ImportDanglingIndexRequest>> fn)Imports the specified dangling indexImportDanglingIndexResponseimportDanglingIndex(ImportDanglingIndexRequest request)Imports the specified dangling indexListDanglingIndicesResponselistDanglingIndices()Returns all dangling indices.OpenSearchDanglingIndicesClientwithTransportOptions(TransportOptions transportOptions)Creates a new client with some request options-
Methods inherited from class org.opensearch.client.ApiClient
_transport, _transportOptions, getDeserializer
-
-
-
-
Constructor Detail
-
OpenSearchDanglingIndicesClient
public OpenSearchDanglingIndicesClient(OpenSearchTransport transport)
-
OpenSearchDanglingIndicesClient
public OpenSearchDanglingIndicesClient(OpenSearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Detail
-
withTransportOptions
public OpenSearchDanglingIndicesClient withTransportOptions(@Nullable TransportOptions transportOptions)
Description copied from class:ApiClientCreates a new client with some request options- Specified by:
withTransportOptionsin classApiClient<OpenSearchTransport,OpenSearchDanglingIndicesClient>
-
deleteDanglingIndex
public DeleteDanglingIndexResponse deleteDanglingIndex(DeleteDanglingIndexRequest request) throws java.io.IOException, OpenSearchException
Deletes the specified dangling index- Throws:
java.io.IOExceptionOpenSearchException
-
deleteDanglingIndex
public final DeleteDanglingIndexResponse deleteDanglingIndex(java.util.function.Function<DeleteDanglingIndexRequest.Builder,ObjectBuilder<DeleteDanglingIndexRequest>> fn) throws java.io.IOException, OpenSearchException
Deletes the specified dangling index- Parameters:
fn- a function that initializes a builder to create theDeleteDanglingIndexRequest- Throws:
java.io.IOExceptionOpenSearchException
-
importDanglingIndex
public ImportDanglingIndexResponse importDanglingIndex(ImportDanglingIndexRequest request) throws java.io.IOException, OpenSearchException
Imports the specified dangling index- Throws:
java.io.IOExceptionOpenSearchException
-
importDanglingIndex
public final ImportDanglingIndexResponse importDanglingIndex(java.util.function.Function<ImportDanglingIndexRequest.Builder,ObjectBuilder<ImportDanglingIndexRequest>> fn) throws java.io.IOException, OpenSearchException
Imports the specified dangling index- Parameters:
fn- a function that initializes a builder to create theImportDanglingIndexRequest- Throws:
java.io.IOExceptionOpenSearchException
-
listDanglingIndices
public ListDanglingIndicesResponse listDanglingIndices() throws java.io.IOException, OpenSearchException
Returns all dangling indices.- Throws:
java.io.IOExceptionOpenSearchException
-
-