Skip to main content
Source

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 on action. For example, if action is install_package, this would be the python package name.

    If action is 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.

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 on action. For example, if action is install_package, this would be the python package name.

    If action is 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.

Sends a pre-built AlterEnvironmentRequest to the /alter/environment endpoint.

Sends a pre-built AlterEnvironmentRequest to a specific worker URL, bypassing HA head-node selection. Used for multi-head access.