Class OpenSearchMlAsyncClient
java.lang.Object
org.opensearch.client.ApiClient<OpenSearchTransport,OpenSearchMlAsyncClient>
org.opensearch.client.opensearch.ml.OpenSearchMlAsyncClient
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class OpenSearchMlAsyncClient
extends ApiClient<OpenSearchTransport,OpenSearchMlAsyncClient>
Client for the ml namespace.
-
Field Summary
Fields inherited from class org.opensearch.client.ApiClient
transport, transportOptions -
Constructor Summary
ConstructorsConstructorDescriptionOpenSearchMlAsyncClient(OpenSearchTransport transport) OpenSearchMlAsyncClient(OpenSearchTransport transport, TransportOptions transportOptions) -
Method Summary
Modifier and TypeMethodDescriptionCreates a standalone connector.createConnector(CreateConnectorRequest request) Creates a standalone connector.createController(Function<CreateControllerRequest.Builder, ObjectBuilder<CreateControllerRequest>> fn) Creates a controller.createController(CreateControllerRequest request) Creates a controller.Create a memory.Create a memory.createMemory(CreateMemoryRequest request) Create a memory.Create a message.createMessage(CreateMessageRequest request) Create a message.Deprecated.createModelMeta(CreateModelMetaRequest request) Deprecated.Delete an agent.deleteAgent(DeleteAgentRequest request) Delete an agent.Deletes a standalone connector.deleteConnector(DeleteConnectorRequest request) Deletes a standalone connector.deleteController(Function<DeleteControllerRequest.Builder, ObjectBuilder<DeleteControllerRequest>> fn) Deletes a controller.deleteController(DeleteControllerRequest request) Deletes a controller.Delete a memory.deleteMemory(DeleteMemoryRequest request) Delete a memory.Deletes a model.deleteModel(DeleteModelRequest request) Deletes a model.deleteModelGroup(Function<DeleteModelGroupRequest.Builder, ObjectBuilder<DeleteModelGroupRequest>> fn) Deletes a model group.deleteModelGroup(DeleteModelGroupRequest request) Deletes a model group.Deletes a task.deleteTask(DeleteTaskRequest request) Deletes a task.Deploys a model.deployModel(DeployModelRequest request) Deploys a model.Execute an agent.executeAgent(ExecuteAgentRequest request) Execute an agent.Get an agent.getAgent(GetAgentRequest request) Get an agent.Get all memories.Get all memories.getAllMemories(GetAllMemoriesRequest request) Get all memories.Get all messages in a memory.getAllMessages(GetAllMessagesRequest request) Get all messages in a memory.Get tools.Get tools.getAllTools(GetAllToolsRequest request) Get tools.Retrieves a standalone connector.getConnector(GetConnectorRequest request) Retrieves a standalone connector.Retrieves a controller.getController(GetControllerRequest request) Retrieves a controller.Get a memory.getMemory(GetMemoryRequest request) Get a memory.Get a message.getMessage(GetMessageRequest request) Get a message.getMessageTraces(Function<GetMessageTracesRequest.Builder, ObjectBuilder<GetMessageTracesRequest>> fn) Get a message traces.getMessageTraces(GetMessageTracesRequest request) Get a message traces.Retrieves a model.getModel(GetModelRequest request) Retrieves a model.Retrieves a model group.getModelGroup(GetModelGroupRequest request) Retrieves a model group.Get a profile.Get a profile.getProfile(GetProfileRequest request) Get a profile.Get a profile models.getProfileModels(Function<GetProfileModelsRequest.Builder, ObjectBuilder<GetProfileModelsRequest>> fn) Get a profile models.getProfileModels(GetProfileModelsRequest request) Get a profile models.Get a profile tasks.Get a profile tasks.getProfileTasks(GetProfileTasksRequest request) Get a profile tasks.getStats()Get stats.Get stats.getStats(GetStatsRequest request) Get stats.final CompletableFuture<GetTaskResponse> Retrieves a task.getTask(GetTaskRequest request) Retrieves a task.final CompletableFuture<GetToolResponse> Get tools.getTool(GetToolRequest request) Get tools.Deprecated.loadModel(LoadModelRequest request) Deprecated.Register an agent.registerAgents(RegisterAgentsRequest request) Register an agent.Registers a model.registerModel(RegisterModelRequest request) Registers a model.registerModelGroup(Function<RegisterModelGroupRequest.Builder, ObjectBuilder<RegisterModelGroupRequest>> fn) Registers a model group.Registers a model group.registerModelMeta(Function<RegisterModelMetaRequest.Builder, ObjectBuilder<RegisterModelMetaRequest>> fn) Registers model metadata.Registers model metadata.Undeploys a model.Undeploys a model.undeployModel(UndeployModelRequest request) Undeploys a model.Deprecated.Deprecated.unloadModel(UnloadModelRequest request) Deprecated.Updates a standalone connector.updateConnector(UpdateConnectorRequest request) Updates a standalone connector.updateController(Function<UpdateControllerRequest.Builder, ObjectBuilder<UpdateControllerRequest>> fn) Updates a controller.updateController(UpdateControllerRequest request) Updates a controller.Update a memory.updateMemory(UpdateMemoryRequest request) Update a memory.Update a message.updateMessage(UpdateMessageRequest request) Update a message.Updates a model.updateModel(UpdateModelRequest request) Updates a model.updateModelGroup(Function<UpdateModelGroupRequest.Builder, ObjectBuilder<UpdateModelGroupRequest>> fn) Updates a model group.updateModelGroup(UpdateModelGroupRequest request) Updates a model group.Uploads model chunk.uploadChunk(UploadChunkRequest request) Uploads model chunk.Deprecated.uploadModel(UploadModelRequest request) Deprecated.withTransportOptions(TransportOptions transportOptions) Creates a new client with some request optionsMethods inherited from class org.opensearch.client.ApiClient
_transport, _transportOptions, getDeserializer
-
Constructor Details
-
OpenSearchMlAsyncClient
-
OpenSearchMlAsyncClient
public OpenSearchMlAsyncClient(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,OpenSearchMlAsyncClient>
-
createConnector
public CompletableFuture<CreateConnectorResponse> createConnector(CreateConnectorRequest request) throws IOException, OpenSearchException Creates a standalone connector.- Throws:
IOExceptionOpenSearchException
-
createConnector
public final CompletableFuture<CreateConnectorResponse> createConnector(Function<CreateConnectorRequest.Builder, ObjectBuilder<CreateConnectorRequest>> fn) throws IOException, OpenSearchExceptionCreates a standalone connector.- Parameters:
fn- a function that initializes a builder to create theCreateConnectorRequest- Throws:
IOExceptionOpenSearchException
-
createController
public CompletableFuture<CreateControllerResponse> createController(CreateControllerRequest request) throws IOException, OpenSearchException Creates a controller.- Throws:
IOExceptionOpenSearchException
-
createController
public final CompletableFuture<CreateControllerResponse> createController(Function<CreateControllerRequest.Builder, ObjectBuilder<CreateControllerRequest>> fn) throws IOException, OpenSearchExceptionCreates a controller.- Parameters:
fn- a function that initializes a builder to create theCreateControllerRequest- Throws:
IOExceptionOpenSearchException
-
createMemory
public CompletableFuture<CreateMemoryResponse> createMemory(CreateMemoryRequest request) throws IOException, OpenSearchException Create a memory.- Throws:
IOExceptionOpenSearchException
-
createMemory
public final CompletableFuture<CreateMemoryResponse> createMemory(Function<CreateMemoryRequest.Builder, ObjectBuilder<CreateMemoryRequest>> fn) throws IOException, OpenSearchExceptionCreate a memory.- Parameters:
fn- a function that initializes a builder to create theCreateMemoryRequest- Throws:
IOExceptionOpenSearchException
-
createMemory
public final CompletableFuture<CreateMemoryResponse> createMemory() throws IOException, OpenSearchExceptionCreate a memory.- Throws:
IOExceptionOpenSearchException
-
createMessage
public CompletableFuture<CreateMessageResponse> createMessage(CreateMessageRequest request) throws IOException, OpenSearchException Create a message.- Throws:
IOExceptionOpenSearchException
-
createMessage
public final CompletableFuture<CreateMessageResponse> createMessage(Function<CreateMessageRequest.Builder, ObjectBuilder<CreateMessageRequest>> fn) throws IOException, OpenSearchExceptionCreate a message.- Parameters:
fn- a function that initializes a builder to create theCreateMessageRequest- Throws:
IOExceptionOpenSearchException
-
createModelMeta
@Deprecated public CompletableFuture<CreateModelMetaResponse> createModelMeta(CreateModelMetaRequest request) throws IOException, OpenSearchException Deprecated.Registers model metadata.- Throws:
IOExceptionOpenSearchException
-
createModelMeta
@Deprecated public final CompletableFuture<CreateModelMetaResponse> createModelMeta(Function<CreateModelMetaRequest.Builder, ObjectBuilder<CreateModelMetaRequest>> fn) throws IOException, OpenSearchExceptionDeprecated.Registers model metadata.- Parameters:
fn- a function that initializes a builder to create theCreateModelMetaRequest- Throws:
IOExceptionOpenSearchException
-
deleteAgent
public CompletableFuture<DeleteAgentResponse> deleteAgent(DeleteAgentRequest request) throws IOException, OpenSearchException Delete an agent.- Throws:
IOExceptionOpenSearchException
-
deleteAgent
public final CompletableFuture<DeleteAgentResponse> deleteAgent(Function<DeleteAgentRequest.Builder, ObjectBuilder<DeleteAgentRequest>> fn) throws IOException, OpenSearchExceptionDelete an agent.- Parameters:
fn- a function that initializes a builder to create theDeleteAgentRequest- Throws:
IOExceptionOpenSearchException
-
deleteConnector
public CompletableFuture<DeleteConnectorResponse> deleteConnector(DeleteConnectorRequest request) throws IOException, OpenSearchException Deletes a standalone connector.- Throws:
IOExceptionOpenSearchException
-
deleteConnector
public final CompletableFuture<DeleteConnectorResponse> deleteConnector(Function<DeleteConnectorRequest.Builder, ObjectBuilder<DeleteConnectorRequest>> fn) throws IOException, OpenSearchExceptionDeletes a standalone connector.- Parameters:
fn- a function that initializes a builder to create theDeleteConnectorRequest- Throws:
IOExceptionOpenSearchException
-
deleteController
public CompletableFuture<DeleteControllerResponse> deleteController(DeleteControllerRequest request) throws IOException, OpenSearchException Deletes a controller.- Throws:
IOExceptionOpenSearchException
-
deleteController
public final CompletableFuture<DeleteControllerResponse> deleteController(Function<DeleteControllerRequest.Builder, ObjectBuilder<DeleteControllerRequest>> fn) throws IOException, OpenSearchExceptionDeletes a controller.- Parameters:
fn- a function that initializes a builder to create theDeleteControllerRequest- Throws:
IOExceptionOpenSearchException
-
deleteMemory
public CompletableFuture<DeleteMemoryResponse> deleteMemory(DeleteMemoryRequest request) throws IOException, OpenSearchException Delete a memory.- Throws:
IOExceptionOpenSearchException
-
deleteMemory
public final CompletableFuture<DeleteMemoryResponse> deleteMemory(Function<DeleteMemoryRequest.Builder, ObjectBuilder<DeleteMemoryRequest>> fn) throws IOException, OpenSearchExceptionDelete a memory.- Parameters:
fn- a function that initializes a builder to create theDeleteMemoryRequest- Throws:
IOExceptionOpenSearchException
-
deleteModel
public CompletableFuture<DeleteModelResponse> deleteModel(DeleteModelRequest request) throws IOException, OpenSearchException Deletes a model.- Throws:
IOExceptionOpenSearchException
-
deleteModel
public final CompletableFuture<DeleteModelResponse> deleteModel(Function<DeleteModelRequest.Builder, ObjectBuilder<DeleteModelRequest>> fn) throws IOException, OpenSearchExceptionDeletes a model.- Parameters:
fn- a function that initializes a builder to create theDeleteModelRequest- Throws:
IOExceptionOpenSearchException
-
deleteModelGroup
public CompletableFuture<DeleteModelGroupResponse> deleteModelGroup(DeleteModelGroupRequest request) throws IOException, OpenSearchException Deletes a model group.- Throws:
IOExceptionOpenSearchException
-
deleteModelGroup
public final CompletableFuture<DeleteModelGroupResponse> deleteModelGroup(Function<DeleteModelGroupRequest.Builder, ObjectBuilder<DeleteModelGroupRequest>> fn) throws IOException, OpenSearchExceptionDeletes a model group.- Parameters:
fn- a function that initializes a builder to create theDeleteModelGroupRequest- Throws:
IOExceptionOpenSearchException
-
deleteTask
public CompletableFuture<DeleteTaskResponse> deleteTask(DeleteTaskRequest request) throws IOException, OpenSearchException Deletes a task.- Throws:
IOExceptionOpenSearchException
-
deleteTask
public final CompletableFuture<DeleteTaskResponse> deleteTask(Function<DeleteTaskRequest.Builder, ObjectBuilder<DeleteTaskRequest>> fn) throws IOException, OpenSearchExceptionDeletes a task.- Parameters:
fn- a function that initializes a builder to create theDeleteTaskRequest- Throws:
IOExceptionOpenSearchException
-
deployModel
public CompletableFuture<DeployModelResponse> deployModel(DeployModelRequest request) throws IOException, OpenSearchException Deploys a model.- Throws:
IOExceptionOpenSearchException
-
deployModel
public final CompletableFuture<DeployModelResponse> deployModel(Function<DeployModelRequest.Builder, ObjectBuilder<DeployModelRequest>> fn) throws IOException, OpenSearchExceptionDeploys a model.- Parameters:
fn- a function that initializes a builder to create theDeployModelRequest- Throws:
IOExceptionOpenSearchException
-
executeAgent
public CompletableFuture<ExecuteAgentResponse> executeAgent(ExecuteAgentRequest request) throws IOException, OpenSearchException Execute an agent.- Throws:
IOExceptionOpenSearchException
-
executeAgent
public final CompletableFuture<ExecuteAgentResponse> executeAgent(Function<ExecuteAgentRequest.Builder, ObjectBuilder<ExecuteAgentRequest>> fn) throws IOException, OpenSearchExceptionExecute an agent.- Parameters:
fn- a function that initializes a builder to create theExecuteAgentRequest- Throws:
IOExceptionOpenSearchException
-
getAgent
public CompletableFuture<GetAgentResponse> getAgent(GetAgentRequest request) throws IOException, OpenSearchException Get an agent.- Throws:
IOExceptionOpenSearchException
-
getAgent
public final CompletableFuture<GetAgentResponse> getAgent(Function<GetAgentRequest.Builder, ObjectBuilder<GetAgentRequest>> fn) throws IOException, OpenSearchExceptionGet an agent.- Parameters:
fn- a function that initializes a builder to create theGetAgentRequest- Throws:
IOExceptionOpenSearchException
-
getAllMemories
public CompletableFuture<GetAllMemoriesResponse> getAllMemories(GetAllMemoriesRequest request) throws IOException, OpenSearchException Get all memories.- Throws:
IOExceptionOpenSearchException
-
getAllMemories
public final CompletableFuture<GetAllMemoriesResponse> getAllMemories(Function<GetAllMemoriesRequest.Builder, ObjectBuilder<GetAllMemoriesRequest>> fn) throws IOException, OpenSearchExceptionGet all memories.- Parameters:
fn- a function that initializes a builder to create theGetAllMemoriesRequest- Throws:
IOExceptionOpenSearchException
-
getAllMemories
public final CompletableFuture<GetAllMemoriesResponse> getAllMemories() throws IOException, OpenSearchExceptionGet all memories.- Throws:
IOExceptionOpenSearchException
-
getAllMessages
public CompletableFuture<GetAllMessagesResponse> getAllMessages(GetAllMessagesRequest request) throws IOException, OpenSearchException Get all messages in a memory.- Throws:
IOExceptionOpenSearchException
-
getAllMessages
public final CompletableFuture<GetAllMessagesResponse> getAllMessages(Function<GetAllMessagesRequest.Builder, ObjectBuilder<GetAllMessagesRequest>> fn) throws IOException, OpenSearchExceptionGet all messages in a memory.- Parameters:
fn- a function that initializes a builder to create theGetAllMessagesRequest- Throws:
IOExceptionOpenSearchException
-
getAllTools
public CompletableFuture<GetAllToolsResponse> getAllTools(GetAllToolsRequest request) throws IOException, OpenSearchException Get tools.- Throws:
IOExceptionOpenSearchException
-
getAllTools
public final CompletableFuture<GetAllToolsResponse> getAllTools(Function<GetAllToolsRequest.Builder, ObjectBuilder<GetAllToolsRequest>> fn) throws IOException, OpenSearchExceptionGet tools.- Parameters:
fn- a function that initializes a builder to create theGetAllToolsRequest- Throws:
IOExceptionOpenSearchException
-
getAllTools
public final CompletableFuture<GetAllToolsResponse> getAllTools() throws IOException, OpenSearchExceptionGet tools.- Throws:
IOExceptionOpenSearchException
-
getConnector
public CompletableFuture<GetConnectorResponse> getConnector(GetConnectorRequest request) throws IOException, OpenSearchException Retrieves a standalone connector.- Throws:
IOExceptionOpenSearchException
-
getConnector
public final CompletableFuture<GetConnectorResponse> getConnector(Function<GetConnectorRequest.Builder, ObjectBuilder<GetConnectorRequest>> fn) throws IOException, OpenSearchExceptionRetrieves a standalone connector.- Parameters:
fn- a function that initializes a builder to create theGetConnectorRequest- Throws:
IOExceptionOpenSearchException
-
getController
public CompletableFuture<GetControllerResponse> getController(GetControllerRequest request) throws IOException, OpenSearchException Retrieves a controller.- Throws:
IOExceptionOpenSearchException
-
getController
public final CompletableFuture<GetControllerResponse> getController(Function<GetControllerRequest.Builder, ObjectBuilder<GetControllerRequest>> fn) throws IOException, OpenSearchExceptionRetrieves a controller.- Parameters:
fn- a function that initializes a builder to create theGetControllerRequest- Throws:
IOExceptionOpenSearchException
-
getMemory
public CompletableFuture<GetMemoryResponse> getMemory(GetMemoryRequest request) throws IOException, OpenSearchException Get a memory.- Throws:
IOExceptionOpenSearchException
-
getMemory
public final CompletableFuture<GetMemoryResponse> getMemory(Function<GetMemoryRequest.Builder, ObjectBuilder<GetMemoryRequest>> fn) throws IOException, OpenSearchExceptionGet a memory.- Parameters:
fn- a function that initializes a builder to create theGetMemoryRequest- Throws:
IOExceptionOpenSearchException
-
getMessage
public CompletableFuture<GetMessageResponse> getMessage(GetMessageRequest request) throws IOException, OpenSearchException Get a message.- Throws:
IOExceptionOpenSearchException
-
getMessage
public final CompletableFuture<GetMessageResponse> getMessage(Function<GetMessageRequest.Builder, ObjectBuilder<GetMessageRequest>> fn) throws IOException, OpenSearchExceptionGet a message.- Parameters:
fn- a function that initializes a builder to create theGetMessageRequest- Throws:
IOExceptionOpenSearchException
-
getMessageTraces
public CompletableFuture<GetMessageTracesResponse> getMessageTraces(GetMessageTracesRequest request) throws IOException, OpenSearchException Get a message traces.- Throws:
IOExceptionOpenSearchException
-
getMessageTraces
public final CompletableFuture<GetMessageTracesResponse> getMessageTraces(Function<GetMessageTracesRequest.Builder, ObjectBuilder<GetMessageTracesRequest>> fn) throws IOException, OpenSearchExceptionGet a message traces.- Parameters:
fn- a function that initializes a builder to create theGetMessageTracesRequest- Throws:
IOExceptionOpenSearchException
-
getModel
public CompletableFuture<GetModelResponse> getModel(GetModelRequest request) throws IOException, OpenSearchException Retrieves a model.- Throws:
IOExceptionOpenSearchException
-
getModel
public final CompletableFuture<GetModelResponse> getModel(Function<GetModelRequest.Builder, ObjectBuilder<GetModelRequest>> fn) throws IOException, OpenSearchExceptionRetrieves a model.- Parameters:
fn- a function that initializes a builder to create theGetModelRequest- Throws:
IOExceptionOpenSearchException
-
getModelGroup
public CompletableFuture<GetModelGroupResponse> getModelGroup(GetModelGroupRequest request) throws IOException, OpenSearchException Retrieves a model group.- Throws:
IOExceptionOpenSearchException
-
getModelGroup
public final CompletableFuture<GetModelGroupResponse> getModelGroup(Function<GetModelGroupRequest.Builder, ObjectBuilder<GetModelGroupRequest>> fn) throws IOException, OpenSearchExceptionRetrieves a model group.- Parameters:
fn- a function that initializes a builder to create theGetModelGroupRequest- Throws:
IOExceptionOpenSearchException
-
getProfile
public CompletableFuture<GetProfileResponse> getProfile(GetProfileRequest request) throws IOException, OpenSearchException Get a profile.- Throws:
IOExceptionOpenSearchException
-
getProfile
public final CompletableFuture<GetProfileResponse> getProfile(Function<GetProfileRequest.Builder, ObjectBuilder<GetProfileRequest>> fn) throws IOException, OpenSearchExceptionGet a profile.- Parameters:
fn- a function that initializes a builder to create theGetProfileRequest- Throws:
IOExceptionOpenSearchException
-
getProfile
public final CompletableFuture<GetProfileResponse> getProfile() throws IOException, OpenSearchExceptionGet a profile.- Throws:
IOExceptionOpenSearchException
-
getProfileModels
public CompletableFuture<GetProfileModelsResponse> getProfileModels(GetProfileModelsRequest request) throws IOException, OpenSearchException Get a profile models.- Throws:
IOExceptionOpenSearchException
-
getProfileModels
public final CompletableFuture<GetProfileModelsResponse> getProfileModels(Function<GetProfileModelsRequest.Builder, ObjectBuilder<GetProfileModelsRequest>> fn) throws IOException, OpenSearchExceptionGet a profile models.- Parameters:
fn- a function that initializes a builder to create theGetProfileModelsRequest- Throws:
IOExceptionOpenSearchException
-
getProfileModels
public final CompletableFuture<GetProfileModelsResponse> getProfileModels() throws IOException, OpenSearchExceptionGet a profile models.- Throws:
IOExceptionOpenSearchException
-
getProfileTasks
public CompletableFuture<GetProfileTasksResponse> getProfileTasks(GetProfileTasksRequest request) throws IOException, OpenSearchException Get a profile tasks.- Throws:
IOExceptionOpenSearchException
-
getProfileTasks
public final CompletableFuture<GetProfileTasksResponse> getProfileTasks(Function<GetProfileTasksRequest.Builder, ObjectBuilder<GetProfileTasksRequest>> fn) throws IOException, OpenSearchExceptionGet a profile tasks.- Parameters:
fn- a function that initializes a builder to create theGetProfileTasksRequest- Throws:
IOExceptionOpenSearchException
-
getProfileTasks
public final CompletableFuture<GetProfileTasksResponse> getProfileTasks() throws IOException, OpenSearchExceptionGet a profile tasks.- Throws:
IOExceptionOpenSearchException
-
getStats
public CompletableFuture<GetStatsResponse> getStats(GetStatsRequest request) throws IOException, OpenSearchException Get stats.- Throws:
IOExceptionOpenSearchException
-
getStats
public final CompletableFuture<GetStatsResponse> getStats(Function<GetStatsRequest.Builder, ObjectBuilder<GetStatsRequest>> fn) throws IOException, OpenSearchExceptionGet stats.- Parameters:
fn- a function that initializes a builder to create theGetStatsRequest- Throws:
IOExceptionOpenSearchException
-
getStats
Get stats.- Throws:
IOExceptionOpenSearchException
-
getTask
public CompletableFuture<GetTaskResponse> getTask(GetTaskRequest request) throws IOException, OpenSearchException Retrieves a task.- Throws:
IOExceptionOpenSearchException
-
getTask
public final CompletableFuture<GetTaskResponse> getTask(Function<GetTaskRequest.Builder, ObjectBuilder<GetTaskRequest>> fn) throws IOException, OpenSearchExceptionRetrieves a task.- Parameters:
fn- a function that initializes a builder to create theGetTaskRequest- Throws:
IOExceptionOpenSearchException
-
getTool
public CompletableFuture<GetToolResponse> getTool(GetToolRequest request) throws IOException, OpenSearchException Get tools.- Throws:
IOExceptionOpenSearchException
-
getTool
public final CompletableFuture<GetToolResponse> getTool(Function<GetToolRequest.Builder, ObjectBuilder<GetToolRequest>> fn) throws IOException, OpenSearchExceptionGet tools.- Parameters:
fn- a function that initializes a builder to create theGetToolRequest- Throws:
IOExceptionOpenSearchException
-
loadModel
@Deprecated public CompletableFuture<LoadModelResponse> loadModel(LoadModelRequest request) throws IOException, OpenSearchException Deprecated.Deploys a model.- Throws:
IOExceptionOpenSearchException
-
loadModel
@Deprecated public final CompletableFuture<LoadModelResponse> loadModel(Function<LoadModelRequest.Builder, ObjectBuilder<LoadModelRequest>> fn) throws IOException, OpenSearchExceptionDeprecated.Deploys a model.- Parameters:
fn- a function that initializes a builder to create theLoadModelRequest- Throws:
IOExceptionOpenSearchException
-
registerAgents
public CompletableFuture<RegisterAgentsResponse> registerAgents(RegisterAgentsRequest request) throws IOException, OpenSearchException Register an agent.- Throws:
IOExceptionOpenSearchException
-
registerAgents
public final CompletableFuture<RegisterAgentsResponse> registerAgents(Function<RegisterAgentsRequest.Builder, ObjectBuilder<RegisterAgentsRequest>> fn) throws IOException, OpenSearchExceptionRegister an agent.- Parameters:
fn- a function that initializes a builder to create theRegisterAgentsRequest- Throws:
IOExceptionOpenSearchException
-
registerModel
public CompletableFuture<RegisterModelResponse> registerModel(RegisterModelRequest request) throws IOException, OpenSearchException Registers a model.- Throws:
IOExceptionOpenSearchException
-
registerModel
public final CompletableFuture<RegisterModelResponse> registerModel(Function<RegisterModelRequest.Builder, ObjectBuilder<RegisterModelRequest>> fn) throws IOException, OpenSearchExceptionRegisters a model.- Parameters:
fn- a function that initializes a builder to create theRegisterModelRequest- Throws:
IOExceptionOpenSearchException
-
registerModelGroup
public CompletableFuture<RegisterModelGroupResponse> registerModelGroup(RegisterModelGroupRequest request) throws IOException, OpenSearchException Registers a model group.- Throws:
IOExceptionOpenSearchException
-
registerModelGroup
public final CompletableFuture<RegisterModelGroupResponse> registerModelGroup(Function<RegisterModelGroupRequest.Builder, ObjectBuilder<RegisterModelGroupRequest>> fn) throws IOException, OpenSearchExceptionRegisters a model group.- Parameters:
fn- a function that initializes a builder to create theRegisterModelGroupRequest- Throws:
IOExceptionOpenSearchException
-
registerModelMeta
public CompletableFuture<RegisterModelMetaResponse> registerModelMeta(RegisterModelMetaRequest request) throws IOException, OpenSearchException Registers model metadata.- Throws:
IOExceptionOpenSearchException
-
registerModelMeta
public final CompletableFuture<RegisterModelMetaResponse> registerModelMeta(Function<RegisterModelMetaRequest.Builder, ObjectBuilder<RegisterModelMetaRequest>> fn) throws IOException, OpenSearchExceptionRegisters model metadata.- Parameters:
fn- a function that initializes a builder to create theRegisterModelMetaRequest- Throws:
IOExceptionOpenSearchException
-
undeployModel
public CompletableFuture<UndeployModelResponse> undeployModel(UndeployModelRequest request) throws IOException, OpenSearchException Undeploys a model.- Throws:
IOExceptionOpenSearchException
-
undeployModel
public final CompletableFuture<UndeployModelResponse> undeployModel(Function<UndeployModelRequest.Builder, ObjectBuilder<UndeployModelRequest>> fn) throws IOException, OpenSearchExceptionUndeploys a model.- Parameters:
fn- a function that initializes a builder to create theUndeployModelRequest- Throws:
IOExceptionOpenSearchException
-
undeployModel
public final CompletableFuture<UndeployModelResponse> undeployModel() throws IOException, OpenSearchExceptionUndeploys a model.- Throws:
IOExceptionOpenSearchException
-
unloadModel
@Deprecated public CompletableFuture<UnloadModelResponse> unloadModel(UnloadModelRequest request) throws IOException, OpenSearchException Deprecated.Unloads a model.- Throws:
IOExceptionOpenSearchException
-
unloadModel
@Deprecated public final CompletableFuture<UnloadModelResponse> unloadModel(Function<UnloadModelRequest.Builder, ObjectBuilder<UnloadModelRequest>> fn) throws IOException, OpenSearchExceptionDeprecated.Unloads a model.- Parameters:
fn- a function that initializes a builder to create theUnloadModelRequest- Throws:
IOExceptionOpenSearchException
-
unloadModel
@Deprecated public final CompletableFuture<UnloadModelResponse> unloadModel() throws IOException, OpenSearchExceptionDeprecated.Unloads a model.- Throws:
IOExceptionOpenSearchException
-
updateConnector
public CompletableFuture<UpdateConnectorResponse> updateConnector(UpdateConnectorRequest request) throws IOException, OpenSearchException Updates a standalone connector.- Throws:
IOExceptionOpenSearchException
-
updateConnector
public final CompletableFuture<UpdateConnectorResponse> updateConnector(Function<UpdateConnectorRequest.Builder, ObjectBuilder<UpdateConnectorRequest>> fn) throws IOException, OpenSearchExceptionUpdates a standalone connector.- Parameters:
fn- a function that initializes a builder to create theUpdateConnectorRequest- Throws:
IOExceptionOpenSearchException
-
updateController
public CompletableFuture<UpdateControllerResponse> updateController(UpdateControllerRequest request) throws IOException, OpenSearchException Updates a controller.- Throws:
IOExceptionOpenSearchException
-
updateController
public final CompletableFuture<UpdateControllerResponse> updateController(Function<UpdateControllerRequest.Builder, ObjectBuilder<UpdateControllerRequest>> fn) throws IOException, OpenSearchExceptionUpdates a controller.- Parameters:
fn- a function that initializes a builder to create theUpdateControllerRequest- Throws:
IOExceptionOpenSearchException
-
updateMemory
public CompletableFuture<UpdateMemoryResponse> updateMemory(UpdateMemoryRequest request) throws IOException, OpenSearchException Update a memory.- Throws:
IOExceptionOpenSearchException
-
updateMemory
public final CompletableFuture<UpdateMemoryResponse> updateMemory(Function<UpdateMemoryRequest.Builder, ObjectBuilder<UpdateMemoryRequest>> fn) throws IOException, OpenSearchExceptionUpdate a memory.- Parameters:
fn- a function that initializes a builder to create theUpdateMemoryRequest- Throws:
IOExceptionOpenSearchException
-
updateMessage
public CompletableFuture<UpdateMessageResponse> updateMessage(UpdateMessageRequest request) throws IOException, OpenSearchException Update a message.- Throws:
IOExceptionOpenSearchException
-
updateMessage
public final CompletableFuture<UpdateMessageResponse> updateMessage(Function<UpdateMessageRequest.Builder, ObjectBuilder<UpdateMessageRequest>> fn) throws IOException, OpenSearchExceptionUpdate a message.- Parameters:
fn- a function that initializes a builder to create theUpdateMessageRequest- Throws:
IOExceptionOpenSearchException
-
updateModel
public CompletableFuture<UpdateModelResponse> updateModel(UpdateModelRequest request) throws IOException, OpenSearchException Updates a model.- Throws:
IOExceptionOpenSearchException
-
updateModel
public final CompletableFuture<UpdateModelResponse> updateModel(Function<UpdateModelRequest.Builder, ObjectBuilder<UpdateModelRequest>> fn) throws IOException, OpenSearchExceptionUpdates a model.- Parameters:
fn- a function that initializes a builder to create theUpdateModelRequest- Throws:
IOExceptionOpenSearchException
-
updateModelGroup
public CompletableFuture<UpdateModelGroupResponse> updateModelGroup(UpdateModelGroupRequest request) throws IOException, OpenSearchException Updates a model group.- Throws:
IOExceptionOpenSearchException
-
updateModelGroup
public final CompletableFuture<UpdateModelGroupResponse> updateModelGroup(Function<UpdateModelGroupRequest.Builder, ObjectBuilder<UpdateModelGroupRequest>> fn) throws IOException, OpenSearchExceptionUpdates a model group.- Parameters:
fn- a function that initializes a builder to create theUpdateModelGroupRequest- Throws:
IOExceptionOpenSearchException
-
uploadChunk
public CompletableFuture<UploadChunkResponse> uploadChunk(UploadChunkRequest request) throws IOException, OpenSearchException Uploads model chunk.- Throws:
IOExceptionOpenSearchException
-
uploadChunk
public final CompletableFuture<UploadChunkResponse> uploadChunk(Function<UploadChunkRequest.Builder, ObjectBuilder<UploadChunkRequest>> fn) throws IOException, OpenSearchExceptionUploads model chunk.- Parameters:
fn- a function that initializes a builder to create theUploadChunkRequest- Throws:
IOExceptionOpenSearchException
-
uploadModel
@Deprecated public CompletableFuture<UploadModelResponse> uploadModel(UploadModelRequest request) throws IOException, OpenSearchException Deprecated.Registers a model.- Throws:
IOExceptionOpenSearchException
-
uploadModel
@Deprecated public final CompletableFuture<UploadModelResponse> uploadModel(Function<UploadModelRequest.Builder, ObjectBuilder<UploadModelRequest>> fn) throws IOException, OpenSearchExceptionDeprecated.Registers a model.- Parameters:
fn- a function that initializes a builder to create theUploadModelRequest- Throws:
IOExceptionOpenSearchException
-