Class DanglingIndicesAsyncClient
java.lang.Object
org.opensearch.client.base.ApiClient<DanglingIndicesAsyncClient>
org.opensearch.client.opensearch.api.dangling_indices.DanglingIndicesAsyncClient
public class DanglingIndicesAsyncClient extends ApiClient<DanglingIndicesAsyncClient>
Client for the dangling_indices namespace.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description DanglingIndicesAsyncClient(Transport transport)
DanglingIndicesAsyncClient(Transport transport, org.opensearch.client.RequestOptions options)
-
Method Summary
Modifier and Type Method Description java.util.concurrent.CompletableFuture<IndexDeleteResponse>
deleteDanglingIndex(java.util.function.Function<IndexDeleteRequest.Builder,ObjectBuilder<IndexDeleteRequest>> fn)
Deletes the specified dangling indexjava.util.concurrent.CompletableFuture<IndexDeleteResponse>
deleteDanglingIndex(IndexDeleteRequest request)
Deletes the specified dangling indexjava.util.concurrent.CompletableFuture<IndexImportResponse>
importDanglingIndex(java.util.function.Function<IndexImportRequest.Builder,ObjectBuilder<IndexImportRequest>> fn)
Imports the specified dangling indexjava.util.concurrent.CompletableFuture<IndexImportResponse>
importDanglingIndex(IndexImportRequest request)
Imports the specified dangling indexjava.util.concurrent.CompletableFuture<IndicesListResponse>
listDanglingIndices(java.util.function.Function<IndicesListRequest.Builder,ObjectBuilder<IndicesListRequest>> fn)
Returns all dangling indices.java.util.concurrent.CompletableFuture<IndicesListResponse>
listDanglingIndices(IndicesListRequest request)
Returns all dangling indices.DanglingIndicesAsyncClient
withRequestOptions(java.util.function.Function<org.opensearch.client.RequestOptions.Builder,org.opensearch.client.RequestOptions.Builder> fn)
Creates a newDanglingIndicesAsyncClient(org.opensearch.client.base.Transport, org.opensearch.client.RequestOptions)
with specific request options, inheriting existing options.DanglingIndicesAsyncClient
withRequestOptions(org.opensearch.client.RequestOptions options)
Creates a newDanglingIndicesAsyncClient(org.opensearch.client.base.Transport, org.opensearch.client.RequestOptions)
with specific request options.
-
Constructor Details
-
DanglingIndicesAsyncClient
-
DanglingIndicesAsyncClient
public DanglingIndicesAsyncClient(Transport transport, org.opensearch.client.RequestOptions options)
-
-
Method Details
-
deleteDanglingIndex
public java.util.concurrent.CompletableFuture<IndexDeleteResponse> deleteDanglingIndex(IndexDeleteRequest request) throws java.io.IOExceptionDeletes the specified dangling index- Throws:
java.io.IOException
-
deleteDanglingIndex
public final java.util.concurrent.CompletableFuture<IndexDeleteResponse> deleteDanglingIndex(java.util.function.Function<IndexDeleteRequest.Builder,ObjectBuilder<IndexDeleteRequest>> fn) throws java.io.IOExceptionDeletes the specified dangling index- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
-
importDanglingIndex
public java.util.concurrent.CompletableFuture<IndexImportResponse> importDanglingIndex(IndexImportRequest request) throws java.io.IOExceptionImports the specified dangling index- Throws:
java.io.IOException
-
importDanglingIndex
public final java.util.concurrent.CompletableFuture<IndexImportResponse> importDanglingIndex(java.util.function.Function<IndexImportRequest.Builder,ObjectBuilder<IndexImportRequest>> fn) throws java.io.IOExceptionImports the specified dangling index- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
-
listDanglingIndices
public java.util.concurrent.CompletableFuture<IndicesListResponse> listDanglingIndices(IndicesListRequest request) throws java.io.IOExceptionReturns all dangling indices.- Throws:
java.io.IOException
-
listDanglingIndices
public final java.util.concurrent.CompletableFuture<IndicesListResponse> listDanglingIndices(java.util.function.Function<IndicesListRequest.Builder,ObjectBuilder<IndicesListRequest>> fn) throws java.io.IOExceptionReturns all dangling indices.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
-
withRequestOptions
public DanglingIndicesAsyncClient withRequestOptions(@Nullable org.opensearch.client.RequestOptions options)Creates a newDanglingIndicesAsyncClient(org.opensearch.client.base.Transport, org.opensearch.client.RequestOptions)
with specific request options.- Specified by:
withRequestOptions
in classApiClient<DanglingIndicesAsyncClient>
-
withRequestOptions
public DanglingIndicesAsyncClient withRequestOptions(java.util.function.Function<org.opensearch.client.RequestOptions.Builder,org.opensearch.client.RequestOptions.Builder> fn)Creates a newDanglingIndicesAsyncClient(org.opensearch.client.base.Transport, org.opensearch.client.RequestOptions)
with specific request options, inheriting existing options.- Parameters:
fn
- a function taking an options builder initialized with the current request options, or initialized with default values.
-