Class OpenSearchIsmClient
java.lang.Object
org.opensearch.client.ApiClient<OpenSearchTransport,OpenSearchIsmClient>
org.opensearch.client.opensearch.ism.OpenSearchIsmClient
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class OpenSearchIsmClient
extends ApiClient<OpenSearchTransport,OpenSearchIsmClient>
Client for the ism namespace.
-
Field Summary
Fields inherited from class org.opensearch.client.ApiClient
transport, transportOptions -
Constructor Summary
ConstructorsConstructorDescriptionOpenSearchIsmClient(OpenSearchTransport transport) OpenSearchIsmClient(OpenSearchTransport transport, TransportOptions transportOptions) -
Method Summary
Modifier and TypeMethodDescriptionfinal AddPolicyResponseAdds a policy to an index.addPolicy(AddPolicyRequest request) Adds a policy to an index.final ChangePolicyResponseUpdates the managed index policy to a new policy.changePolicy(ChangePolicyRequest request) Updates the managed index policy to a new policy.final DeletePolicyResponseDeletes a policy.deletePolicy(DeletePolicyRequest request) Deletes a policy.final ExistsPolicyResponseChecks for the existence of a policy.existsPolicy(ExistsPolicyRequest request) Checks for the existence of a policy.final ExplainPolicyResponseRetrieves the currently applied policy on the specified indexes.explainPolicy(ExplainPolicyRequest request) Retrieves the currently applied policy on the specified indexes.final GetPoliciesResponseRetrieves the policies.final GetPoliciesResponseRetrieves the policies.getPolicies(GetPoliciesRequest request) Retrieves the policies.final GetPolicyResponseRetrieves a specific policy.getPolicy(GetPolicyRequest request) Retrieves a specific policy.final PutPoliciesResponseCreates or updates policies.putPolicies(PutPoliciesRequest request) Creates or updates policies.final PutPolicyResponseCreates 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.final RemovePolicyResponseRemoves a policy from an index.final RemovePolicyResponseRemoves a policy from an index.removePolicy(RemovePolicyRequest request) Removes a policy from an index.final RetryIndexResponseRetries 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
-
OpenSearchIsmClient
-
OpenSearchIsmClient
public OpenSearchIsmClient(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,OpenSearchIsmClient>
-
addPolicy
public AddPolicyResponse addPolicy(AddPolicyRequest request) throws IOException, OpenSearchException Adds a policy to an index.- Throws:
IOExceptionOpenSearchException
-
addPolicy
public final 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 ChangePolicyResponse changePolicy(ChangePolicyRequest request) throws IOException, OpenSearchException Updates the managed index policy to a new policy.- Throws:
IOExceptionOpenSearchException
-
changePolicy
public final 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 DeletePolicyResponse deletePolicy(DeletePolicyRequest request) throws IOException, OpenSearchException Deletes a policy.- Throws:
IOExceptionOpenSearchException
-
deletePolicy
public final 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 ExistsPolicyResponse existsPolicy(ExistsPolicyRequest request) throws IOException, OpenSearchException Checks for the existence of a policy.- Throws:
IOExceptionOpenSearchException
-
existsPolicy
public final 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 ExplainPolicyResponse explainPolicy(ExplainPolicyRequest request) throws IOException, OpenSearchException Retrieves the currently applied policy on the specified indexes.- Throws:
IOExceptionOpenSearchException
-
explainPolicy
public final 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 GetPoliciesResponse getPolicies(GetPoliciesRequest request) throws IOException, OpenSearchException Retrieves the policies.- Throws:
IOExceptionOpenSearchException
-
getPolicies
public final 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
Retrieves the policies.- Throws:
IOExceptionOpenSearchException
-
getPolicy
public GetPolicyResponse getPolicy(GetPolicyRequest request) throws IOException, OpenSearchException Retrieves a specific policy.- Throws:
IOExceptionOpenSearchException
-
getPolicy
public final 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 PutPoliciesResponse putPolicies(PutPoliciesRequest request) throws IOException, OpenSearchException Creates or updates policies.- Throws:
IOExceptionOpenSearchException
-
putPolicies
public final 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 PutPolicyResponse putPolicy(PutPolicyRequest request) throws IOException, OpenSearchException Creates or updates a policy.- Throws:
IOExceptionOpenSearchException
-
putPolicy
public final 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 RefreshSearchAnalyzersResponse refreshSearchAnalyzers(RefreshSearchAnalyzersRequest request) throws IOException, OpenSearchException Refreshes search analyzers in real time.- Throws:
IOExceptionOpenSearchException
-
refreshSearchAnalyzers
public final 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 RemovePolicyResponse removePolicy(RemovePolicyRequest request) throws IOException, OpenSearchException Removes a policy from an index.- Throws:
IOExceptionOpenSearchException
-
removePolicy
public final 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
Removes a policy from an index.- Throws:
IOExceptionOpenSearchException
-
retryIndex
public RetryIndexResponse retryIndex(RetryIndexRequest request) throws IOException, OpenSearchException Retries the failed action for an index.- Throws:
IOExceptionOpenSearchException
-
retryIndex
public final 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
-