Class OpenSearchMlClient
- java.lang.Object
-
- org.opensearch.client.ApiClient<OpenSearchTransport,OpenSearchMlClient>
-
- org.opensearch.client.opensearch.ml.OpenSearchMlClient
-
@Generated("org.opensearch.client.codegen.CodeGenerator") public class OpenSearchMlClient extends ApiClient<OpenSearchTransport,OpenSearchMlClient>Client for the ml namespace.
-
-
Field Summary
-
Fields inherited from class org.opensearch.client.ApiClient
transport, transportOptions
-
-
Constructor Summary
Constructors Constructor Description OpenSearchMlClient(OpenSearchTransport transport)OpenSearchMlClient(OpenSearchTransport transport, TransportOptions transportOptions)
-
Method Summary
-
Methods inherited from class org.opensearch.client.ApiClient
_transport, _transportOptions, getDeserializer
-
-
-
-
Constructor Detail
-
OpenSearchMlClient
public OpenSearchMlClient(OpenSearchTransport transport)
-
OpenSearchMlClient
public OpenSearchMlClient(OpenSearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Detail
-
withTransportOptions
public OpenSearchMlClient withTransportOptions(@Nullable TransportOptions transportOptions)
Description copied from class:ApiClientCreates a new client with some request options- Specified by:
withTransportOptionsin classApiClient<OpenSearchTransport,OpenSearchMlClient>
-
createConnector
public CreateConnectorResponse createConnector(CreateConnectorRequest request) throws java.io.IOException, OpenSearchException
Creates a standalone connector.- Throws:
java.io.IOExceptionOpenSearchException
-
createConnector
public final CreateConnectorResponse createConnector(java.util.function.Function<CreateConnectorRequest.Builder,ObjectBuilder<CreateConnectorRequest>> fn) throws java.io.IOException, OpenSearchException
Creates a standalone connector.- Parameters:
fn- a function that initializes a builder to create theCreateConnectorRequest- Throws:
java.io.IOExceptionOpenSearchException
-
deleteAgent
public DeleteAgentResponse deleteAgent(DeleteAgentRequest request) throws java.io.IOException, OpenSearchException
Delete an agent.- Throws:
java.io.IOExceptionOpenSearchException
-
deleteAgent
public final DeleteAgentResponse deleteAgent(java.util.function.Function<DeleteAgentRequest.Builder,ObjectBuilder<DeleteAgentRequest>> fn) throws java.io.IOException, OpenSearchException
Delete an agent.- Parameters:
fn- a function that initializes a builder to create theDeleteAgentRequest- Throws:
java.io.IOExceptionOpenSearchException
-
deleteConnector
public DeleteConnectorResponse deleteConnector(DeleteConnectorRequest request) throws java.io.IOException, OpenSearchException
Deletes a standalone connector.- Throws:
java.io.IOExceptionOpenSearchException
-
deleteConnector
public final DeleteConnectorResponse deleteConnector(java.util.function.Function<DeleteConnectorRequest.Builder,ObjectBuilder<DeleteConnectorRequest>> fn) throws java.io.IOException, OpenSearchException
Deletes a standalone connector.- Parameters:
fn- a function that initializes a builder to create theDeleteConnectorRequest- Throws:
java.io.IOExceptionOpenSearchException
-
deleteModel
public DeleteModelResponse deleteModel(DeleteModelRequest request) throws java.io.IOException, OpenSearchException
Deletes a model.- Throws:
java.io.IOExceptionOpenSearchException
-
deleteModel
public final DeleteModelResponse deleteModel(java.util.function.Function<DeleteModelRequest.Builder,ObjectBuilder<DeleteModelRequest>> fn) throws java.io.IOException, OpenSearchException
Deletes a model.- Parameters:
fn- a function that initializes a builder to create theDeleteModelRequest- Throws:
java.io.IOExceptionOpenSearchException
-
deleteModelGroup
public DeleteModelGroupResponse deleteModelGroup(DeleteModelGroupRequest request) throws java.io.IOException, OpenSearchException
Deletes a model group.- Throws:
java.io.IOExceptionOpenSearchException
-
deleteModelGroup
public final DeleteModelGroupResponse deleteModelGroup(java.util.function.Function<DeleteModelGroupRequest.Builder,ObjectBuilder<DeleteModelGroupRequest>> fn) throws java.io.IOException, OpenSearchException
Deletes a model group.- Parameters:
fn- a function that initializes a builder to create theDeleteModelGroupRequest- Throws:
java.io.IOExceptionOpenSearchException
-
deleteTask
public DeleteTaskResponse deleteTask(DeleteTaskRequest request) throws java.io.IOException, OpenSearchException
Deletes a task.- Throws:
java.io.IOExceptionOpenSearchException
-
deleteTask
public final DeleteTaskResponse deleteTask(java.util.function.Function<DeleteTaskRequest.Builder,ObjectBuilder<DeleteTaskRequest>> fn) throws java.io.IOException, OpenSearchException
Deletes a task.- Parameters:
fn- a function that initializes a builder to create theDeleteTaskRequest- Throws:
java.io.IOExceptionOpenSearchException
-
deployModel
public DeployModelResponse deployModel(DeployModelRequest request) throws java.io.IOException, OpenSearchException
Deploys a model.- Throws:
java.io.IOExceptionOpenSearchException
-
deployModel
public final DeployModelResponse deployModel(java.util.function.Function<DeployModelRequest.Builder,ObjectBuilder<DeployModelRequest>> fn) throws java.io.IOException, OpenSearchException
Deploys a model.- Parameters:
fn- a function that initializes a builder to create theDeployModelRequest- Throws:
java.io.IOExceptionOpenSearchException
-
getModelGroup
public GetModelGroupResponse getModelGroup(GetModelGroupRequest request) throws java.io.IOException, OpenSearchException
Retrieves a model group.- Throws:
java.io.IOExceptionOpenSearchException
-
getModelGroup
public final GetModelGroupResponse getModelGroup(java.util.function.Function<GetModelGroupRequest.Builder,ObjectBuilder<GetModelGroupRequest>> fn) throws java.io.IOException, OpenSearchException
Retrieves a model group.- Parameters:
fn- a function that initializes a builder to create theGetModelGroupRequest- Throws:
java.io.IOExceptionOpenSearchException
-
getTask
public GetTaskResponse getTask(GetTaskRequest request) throws java.io.IOException, OpenSearchException
Retrieves a task.- Throws:
java.io.IOExceptionOpenSearchException
-
getTask
public final GetTaskResponse getTask(java.util.function.Function<GetTaskRequest.Builder,ObjectBuilder<GetTaskRequest>> fn) throws java.io.IOException, OpenSearchException
Retrieves a task.- Parameters:
fn- a function that initializes a builder to create theGetTaskRequest- Throws:
java.io.IOExceptionOpenSearchException
-
registerAgents
public RegisterAgentsResponse registerAgents(RegisterAgentsRequest request) throws java.io.IOException, OpenSearchException
Register an agent.- Throws:
java.io.IOExceptionOpenSearchException
-
registerAgents
public final RegisterAgentsResponse registerAgents(java.util.function.Function<RegisterAgentsRequest.Builder,ObjectBuilder<RegisterAgentsRequest>> fn) throws java.io.IOException, OpenSearchException
Register an agent.- Parameters:
fn- a function that initializes a builder to create theRegisterAgentsRequest- Throws:
java.io.IOExceptionOpenSearchException
-
registerModel
public RegisterModelResponse registerModel(RegisterModelRequest request) throws java.io.IOException, OpenSearchException
Registers a model.- Throws:
java.io.IOExceptionOpenSearchException
-
registerModel
public final RegisterModelResponse registerModel(java.util.function.Function<RegisterModelRequest.Builder,ObjectBuilder<RegisterModelRequest>> fn) throws java.io.IOException, OpenSearchException
Registers a model.- Parameters:
fn- a function that initializes a builder to create theRegisterModelRequest- Throws:
java.io.IOExceptionOpenSearchException
-
registerModelGroup
public RegisterModelGroupResponse registerModelGroup(RegisterModelGroupRequest request) throws java.io.IOException, OpenSearchException
Registers a model group.- Throws:
java.io.IOExceptionOpenSearchException
-
registerModelGroup
public final RegisterModelGroupResponse registerModelGroup(java.util.function.Function<RegisterModelGroupRequest.Builder,ObjectBuilder<RegisterModelGroupRequest>> fn) throws java.io.IOException, OpenSearchException
Registers a model group.- Parameters:
fn- a function that initializes a builder to create theRegisterModelGroupRequest- Throws:
java.io.IOExceptionOpenSearchException
-
undeployModel
public UndeployModelResponse undeployModel(UndeployModelRequest request) throws java.io.IOException, OpenSearchException
Undeploys a model.- Throws:
java.io.IOExceptionOpenSearchException
-
undeployModel
public final UndeployModelResponse undeployModel(java.util.function.Function<UndeployModelRequest.Builder,ObjectBuilder<UndeployModelRequest>> fn) throws java.io.IOException, OpenSearchException
Undeploys a model.- Parameters:
fn- a function that initializes a builder to create theUndeployModelRequest- Throws:
java.io.IOExceptionOpenSearchException
-
-