Class DanglingIndicesClient
java.lang.Object
org.opensearch.client.base.ApiClient<DanglingIndicesClient>
org.opensearch.client.opensearch.api.dangling_indices.DanglingIndicesClient
public class DanglingIndicesClient extends ApiClient<DanglingIndicesClient>
Client for the dangling_indices namespace.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description DanglingIndicesClient(Transport transport)DanglingIndicesClient(Transport transport, org.opensearch.client.RequestOptions options) -
Method Summary
-
Constructor Details
-
Method Details
-
deleteDanglingIndex
public IndexDeleteResponse deleteDanglingIndex(IndexDeleteRequest request) throws java.io.IOExceptionDeletes the specified dangling index- Throws:
java.io.IOException
-
deleteDanglingIndex
public final 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 IndexImportResponse importDanglingIndex(IndexImportRequest request) throws java.io.IOExceptionImports the specified dangling index- Throws:
java.io.IOException
-
importDanglingIndex
public final 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 IndicesListResponse listDanglingIndices(IndicesListRequest request) throws java.io.IOExceptionReturns all dangling indices.- Throws:
java.io.IOException
-
listDanglingIndices
public final 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 DanglingIndicesClient withRequestOptions(@Nullable org.opensearch.client.RequestOptions options)Creates a newDanglingIndicesClient(org.opensearch.client.base.Transport, org.opensearch.client.RequestOptions)with specific request options.- Specified by:
withRequestOptionsin classApiClient<DanglingIndicesClient>
-
withRequestOptions
public DanglingIndicesClient withRequestOptions(java.util.function.Function<org.opensearch.client.RequestOptions.Builder,org.opensearch.client.RequestOptions.Builder> fn)Creates a newDanglingIndicesClient(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.
-