pub async fn alter_environment( &self, environment_name: String, action: String, value: String, ) -> Result<AlterEnvironmentResponse, KineticaError>
Alter an existing UDF environment
Alters an existing environment which can be referenced by a user-defined function (UDF).
environment_name- Name of the environment to be altered.action- Modification operation to be applied.value- The value of the modification, depending onaction. For example, ifactionis install_package, this would be the python package name.If
actionis install_requirements, this would be the path of a requirements file from which to install packages.If an external data source is specified in datasource_name, this can be the path to a wheel file or source archive. Alternatively, if installing from a file (wheel or source archive), the value may be a reference to a file in KiFS.
pub async fn alter_environment_with_opts( &self, environment_name: String, action: String, value: String, options: AlterEnvironmentRequestOptions, ) -> Result<AlterEnvironmentResponse, KineticaError>
Alter an existing UDF environment
Alters an existing environment which can be referenced by a user-defined function (UDF).
environment_name- Name of the environment to be altered.action- Modification operation to be applied.value- The value of the modification, depending onaction. For example, ifactionis install_package, this would be the python package name.If
actionis install_requirements, this would be the path of a requirements file from which to install packages.If an external data source is specified in datasource_name, this can be the path to a wheel file or source archive. Alternatively, if installing from a file (wheel or source archive), the value may be a reference to a file in KiFS.
options- The optional parameters; any left unset take the server’s defaults.
pub async fn alter_environment_raw( &self, request: &AlterEnvironmentRequest, ) -> Result<AlterEnvironmentResponse, KineticaError>
Sends a pre-built AlterEnvironmentRequest to the /alter/environment endpoint.
pub async fn alter_environment_from_url( &self, url: &str, request: &AlterEnvironmentRequest, ) -> Result<AlterEnvironmentResponse, KineticaError>
Sends a pre-built AlterEnvironmentRequest to a specific worker URL, bypassing HA head-node selection. Used for multi-head access.