Source
pub async fn import_model( &self, model_name: String, registry_name: String, container: String, run_function: String, model_type: String, ) -> Result<ImportModelResponse, KineticaError>
Import a model
model_name- Name of the model to be imported.registry_name- Name of the registry that has the container.container- Name of the container that has the model.run_function- The absolute path to the run_function.model_type- Type of the deployment.
Source
pub async fn import_model_with_opts( &self, model_name: String, registry_name: String, container: String, run_function: String, model_type: String, options: ImportModelRequestOptions, ) -> Result<ImportModelResponse, KineticaError>
Import a model
model_name- Name of the model to be imported.registry_name- Name of the registry that has the container.container- Name of the container that has the model.run_function- The absolute path to the run_function.model_type- Type of the deployment.options- The optional parameters; any left unset take the server’s defaults.
Source
pub async fn import_model_raw( &self, request: &ImportModelRequest, ) -> Result<ImportModelResponse, KineticaError>
Sends a pre-built ImportModelRequest to the /import/model endpoint.
Source
pub async fn import_model_from_url( &self, url: &str, request: &ImportModelRequest, ) -> Result<ImportModelResponse, KineticaError>
Sends a pre-built ImportModelRequest to a specific worker URL, bypassing HA head-node selection. Used for multi-head access.