Class OpenSearchDanglingIndicesClient
java.lang.Object
org.opensearch.client.ApiClient<OpenSearchTransport,OpenSearchDanglingIndicesClient>
org.opensearch.client.opensearch.dangling_indices.OpenSearchDanglingIndicesClient
@Generated("org.opensearch.client.codegen.CodeGenerator")
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
ConstructorsConstructorDescriptionOpenSearchDanglingIndicesClient(OpenSearchTransport transport, TransportOptions transportOptions) -
Method Summary
Modifier and TypeMethodDescriptiondeleteDanglingIndex(Function<DeleteDanglingIndexRequest.Builder, ObjectBuilder<DeleteDanglingIndexRequest>> fn) Deletes the specified dangling index.Deletes the specified dangling index.importDanglingIndex(Function<ImportDanglingIndexRequest.Builder, ObjectBuilder<ImportDanglingIndexRequest>> fn) Imports the specified dangling index.Imports the specified dangling index.Returns all dangling indexes.listDanglingIndices(Function<ListDanglingIndicesRequest.Builder, ObjectBuilder<ListDanglingIndicesRequest>> fn) Returns all dangling indexes.Returns all dangling indexes.withTransportOptions(TransportOptions transportOptions) Creates a new client with some request optionsMethods inherited from class org.opensearch.client.ApiClient
_transport, _transportOptions, getDeserializer
-
Constructor Details
-
OpenSearchDanglingIndicesClient
-
OpenSearchDanglingIndicesClient
public OpenSearchDanglingIndicesClient(OpenSearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
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 IOException, OpenSearchException Deletes the specified dangling index.- Throws:
IOExceptionOpenSearchException
-
deleteDanglingIndex
public final DeleteDanglingIndexResponse deleteDanglingIndex(Function<DeleteDanglingIndexRequest.Builder, ObjectBuilder<DeleteDanglingIndexRequest>> fn) throws IOException, OpenSearchExceptionDeletes the specified dangling index.- Parameters:
fn- a function that initializes a builder to create theDeleteDanglingIndexRequest- Throws:
IOExceptionOpenSearchException
-
importDanglingIndex
public ImportDanglingIndexResponse importDanglingIndex(ImportDanglingIndexRequest request) throws IOException, OpenSearchException Imports the specified dangling index.- Throws:
IOExceptionOpenSearchException
-
importDanglingIndex
public final ImportDanglingIndexResponse importDanglingIndex(Function<ImportDanglingIndexRequest.Builder, ObjectBuilder<ImportDanglingIndexRequest>> fn) throws IOException, OpenSearchExceptionImports the specified dangling index.- Parameters:
fn- a function that initializes a builder to create theImportDanglingIndexRequest- Throws:
IOExceptionOpenSearchException
-
listDanglingIndices
public ListDanglingIndicesResponse listDanglingIndices(ListDanglingIndicesRequest request) throws IOException, OpenSearchException Returns all dangling indexes.- Throws:
IOExceptionOpenSearchException
-
listDanglingIndices
public final ListDanglingIndicesResponse listDanglingIndices(Function<ListDanglingIndicesRequest.Builder, ObjectBuilder<ListDanglingIndicesRequest>> fn) throws IOException, OpenSearchExceptionReturns all dangling indexes.- Parameters:
fn- a function that initializes a builder to create theListDanglingIndicesRequest- Throws:
IOExceptionOpenSearchException
-
listDanglingIndices
public final ListDanglingIndicesResponse listDanglingIndices() throws IOException, OpenSearchExceptionReturns all dangling indexes.- Throws:
IOExceptionOpenSearchException
-