Class OpenSearchIsmAsyncClient
java.lang.Object
org.opensearch.client.ApiClient<OpenSearchTransport,OpenSearchIsmAsyncClient>
org.opensearch.client.opensearch.ism.OpenSearchIsmAsyncClient
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class OpenSearchIsmAsyncClient
extends ApiClient<OpenSearchTransport,OpenSearchIsmAsyncClient>
Client for the ism namespace.
-
Field Summary
Fields inherited from class org.opensearch.client.ApiClient
transport, transportOptions -
Constructor Summary
ConstructorsConstructorDescriptionOpenSearchIsmAsyncClient(OpenSearchTransport transport) OpenSearchIsmAsyncClient(OpenSearchTransport transport, TransportOptions transportOptions) -
Method Summary
Modifier and TypeMethodDescriptionAdds a policy to an index.addPolicy(AddPolicyRequest request) Adds a policy to an index.Updates the managed index policy to a new policy.changePolicy(ChangePolicyRequest request) Updates the managed index policy to a new policy.Deletes a policy.deletePolicy(DeletePolicyRequest request) Deletes a policy.Checks for the existence of a policy.existsPolicy(ExistsPolicyRequest request) Checks for the existence of a policy.Retrieves the currently applied policy on the specified indexes.explainPolicy(ExplainPolicyRequest request) Retrieves the currently applied policy on the specified indexes.Retrieves the policies.Retrieves the policies.getPolicies(GetPoliciesRequest request) Retrieves the policies.Retrieves a specific policy.getPolicy(GetPolicyRequest request) Retrieves a specific policy.Creates or updates policies.putPolicies(PutPoliciesRequest request) Creates or updates policies.Creates or updates a policy.putPolicy(PutPolicyRequest request) Creates or updates a policy.refreshSearchAnalyzers(Function<RefreshSearchAnalyzersRequest.Builder, ObjectBuilder<RefreshSearchAnalyzersRequest>> fn) Refreshes search analyzers in real time.Refreshes search analyzers in real time.Removes a policy from an index.Removes a policy from an index.removePolicy(RemovePolicyRequest request) Removes a policy from an index.Retries the failed action for an index.retryIndex(RetryIndexRequest request) Retries the failed action for an index.withTransportOptions(TransportOptions transportOptions) Creates a new client with some request optionsMethods inherited from class org.opensearch.client.ApiClient
_transport, _transportOptions, getDeserializer
-
Constructor Details
-
OpenSearchIsmAsyncClient
-
OpenSearchIsmAsyncClient
public OpenSearchIsmAsyncClient(OpenSearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
withTransportOptions
Description copied from class:ApiClientCreates a new client with some request options- Specified by:
withTransportOptionsin classApiClient<OpenSearchTransport,OpenSearchIsmAsyncClient>
-
addPolicy
public CompletableFuture<AddPolicyResponse> addPolicy(AddPolicyRequest request) throws IOException, OpenSearchException Adds a policy to an index.- Throws:
IOExceptionOpenSearchException
-
addPolicy
public final CompletableFuture<AddPolicyResponse> addPolicy(Function<AddPolicyRequest.Builder, ObjectBuilder<AddPolicyRequest>> fn) throws IOException, OpenSearchExceptionAdds a policy to an index.- Parameters:
fn- a function that initializes a builder to create theAddPolicyRequest- Throws:
IOExceptionOpenSearchException
-
changePolicy
public CompletableFuture<ChangePolicyResponse> changePolicy(ChangePolicyRequest request) throws IOException, OpenSearchException Updates the managed index policy to a new policy.- Throws:
IOExceptionOpenSearchException
-
changePolicy
public final CompletableFuture<ChangePolicyResponse> changePolicy(Function<ChangePolicyRequest.Builder, ObjectBuilder<ChangePolicyRequest>> fn) throws IOException, OpenSearchExceptionUpdates the managed index policy to a new policy.- Parameters:
fn- a function that initializes a builder to create theChangePolicyRequest- Throws:
IOExceptionOpenSearchException
-
deletePolicy
public CompletableFuture<DeletePolicyResponse> deletePolicy(DeletePolicyRequest request) throws IOException, OpenSearchException Deletes a policy.- Throws:
IOExceptionOpenSearchException
-
deletePolicy
public final CompletableFuture<DeletePolicyResponse> deletePolicy(Function<DeletePolicyRequest.Builder, ObjectBuilder<DeletePolicyRequest>> fn) throws IOException, OpenSearchExceptionDeletes a policy.- Parameters:
fn- a function that initializes a builder to create theDeletePolicyRequest- Throws:
IOExceptionOpenSearchException
-
existsPolicy
public CompletableFuture<ExistsPolicyResponse> existsPolicy(ExistsPolicyRequest request) throws IOException, OpenSearchException Checks for the existence of a policy.- Throws:
IOExceptionOpenSearchException
-
existsPolicy
public final CompletableFuture<ExistsPolicyResponse> existsPolicy(Function<ExistsPolicyRequest.Builder, ObjectBuilder<ExistsPolicyRequest>> fn) throws IOException, OpenSearchExceptionChecks for the existence of a policy.- Parameters:
fn- a function that initializes a builder to create theExistsPolicyRequest- Throws:
IOExceptionOpenSearchException
-
explainPolicy
public CompletableFuture<ExplainPolicyResponse> explainPolicy(ExplainPolicyRequest request) throws IOException, OpenSearchException Retrieves the currently applied policy on the specified indexes.- Throws:
IOExceptionOpenSearchException
-
explainPolicy
public final CompletableFuture<ExplainPolicyResponse> explainPolicy(Function<ExplainPolicyRequest.Builder, ObjectBuilder<ExplainPolicyRequest>> fn) throws IOException, OpenSearchExceptionRetrieves the currently applied policy on the specified indexes.- Parameters:
fn- a function that initializes a builder to create theExplainPolicyRequest- Throws:
IOExceptionOpenSearchException
-
getPolicies
public CompletableFuture<GetPoliciesResponse> getPolicies(GetPoliciesRequest request) throws IOException, OpenSearchException Retrieves the policies.- Throws:
IOExceptionOpenSearchException
-
getPolicies
public final CompletableFuture<GetPoliciesResponse> getPolicies(Function<GetPoliciesRequest.Builder, ObjectBuilder<GetPoliciesRequest>> fn) throws IOException, OpenSearchExceptionRetrieves the policies.- Parameters:
fn- a function that initializes a builder to create theGetPoliciesRequest- Throws:
IOExceptionOpenSearchException
-
getPolicies
public final CompletableFuture<GetPoliciesResponse> getPolicies() throws IOException, OpenSearchExceptionRetrieves the policies.- Throws:
IOExceptionOpenSearchException
-
getPolicy
public CompletableFuture<GetPolicyResponse> getPolicy(GetPolicyRequest request) throws IOException, OpenSearchException Retrieves a specific policy.- Throws:
IOExceptionOpenSearchException
-
getPolicy
public final CompletableFuture<GetPolicyResponse> getPolicy(Function<GetPolicyRequest.Builder, ObjectBuilder<GetPolicyRequest>> fn) throws IOException, OpenSearchExceptionRetrieves a specific policy.- Parameters:
fn- a function that initializes a builder to create theGetPolicyRequest- Throws:
IOExceptionOpenSearchException
-
putPolicies
public CompletableFuture<PutPoliciesResponse> putPolicies(PutPoliciesRequest request) throws IOException, OpenSearchException Creates or updates policies.- Throws:
IOExceptionOpenSearchException
-
putPolicies
public final CompletableFuture<PutPoliciesResponse> putPolicies(Function<PutPoliciesRequest.Builder, ObjectBuilder<PutPoliciesRequest>> fn) throws IOException, OpenSearchExceptionCreates or updates policies.- Parameters:
fn- a function that initializes a builder to create thePutPoliciesRequest- Throws:
IOExceptionOpenSearchException
-
putPolicy
public CompletableFuture<PutPolicyResponse> putPolicy(PutPolicyRequest request) throws IOException, OpenSearchException Creates or updates a policy.- Throws:
IOExceptionOpenSearchException
-
putPolicy
public final CompletableFuture<PutPolicyResponse> putPolicy(Function<PutPolicyRequest.Builder, ObjectBuilder<PutPolicyRequest>> fn) throws IOException, OpenSearchExceptionCreates or updates a policy.- Parameters:
fn- a function that initializes a builder to create thePutPolicyRequest- Throws:
IOExceptionOpenSearchException
-
refreshSearchAnalyzers
public CompletableFuture<RefreshSearchAnalyzersResponse> refreshSearchAnalyzers(RefreshSearchAnalyzersRequest request) throws IOException, OpenSearchException Refreshes search analyzers in real time.- Throws:
IOExceptionOpenSearchException
-
refreshSearchAnalyzers
public final CompletableFuture<RefreshSearchAnalyzersResponse> refreshSearchAnalyzers(Function<RefreshSearchAnalyzersRequest.Builder, ObjectBuilder<RefreshSearchAnalyzersRequest>> fn) throws IOException, OpenSearchExceptionRefreshes search analyzers in real time.- Parameters:
fn- a function that initializes a builder to create theRefreshSearchAnalyzersRequest- Throws:
IOExceptionOpenSearchException
-
removePolicy
public CompletableFuture<RemovePolicyResponse> removePolicy(RemovePolicyRequest request) throws IOException, OpenSearchException Removes a policy from an index.- Throws:
IOExceptionOpenSearchException
-
removePolicy
public final CompletableFuture<RemovePolicyResponse> removePolicy(Function<RemovePolicyRequest.Builder, ObjectBuilder<RemovePolicyRequest>> fn) throws IOException, OpenSearchExceptionRemoves a policy from an index.- Parameters:
fn- a function that initializes a builder to create theRemovePolicyRequest- Throws:
IOExceptionOpenSearchException
-
removePolicy
public final CompletableFuture<RemovePolicyResponse> removePolicy() throws IOException, OpenSearchExceptionRemoves a policy from an index.- Throws:
IOExceptionOpenSearchException
-
retryIndex
public CompletableFuture<RetryIndexResponse> retryIndex(RetryIndexRequest request) throws IOException, OpenSearchException Retries the failed action for an index.- Throws:
IOExceptionOpenSearchException
-
retryIndex
public final CompletableFuture<RetryIndexResponse> retryIndex(Function<RetryIndexRequest.Builder, ObjectBuilder<RetryIndexRequest>> fn) throws IOException, OpenSearchExceptionRetries the failed action for an index.- Parameters:
fn- a function that initializes a builder to create theRetryIndexRequest- Throws:
IOExceptionOpenSearchException
-