variable
Module to interact with Package Variables.
This module contains class to interact with Package Variables in Studio.
Typical usage example
Variable ¶
Bases: VariableDefinitionWithValue
Variable object to interact with variable specific studio endpoints.
from_transport
classmethod
¶
Creates high-level variable object from given VariableDefinitionWithValue.
Parameters:
-
client
(
Client
) –Client to use to make API calls for given variable.
-
package_key
(
str
) –Key of package where variable is located.
-
variable_transport
(
VariableDefinitionWithValue
) –VariableDefinitionWithValue object containing properties of variable.
Returns:
-
Variable
–A Variable object with properties from transport and given client.
update ¶
Pushes local changes of variable to EMS and updates properties with response from EMS.
sync ¶
Syncs variable properties with EMS.
Raises:
-
PyCelonisNotFoundError
–Raised if variable no longer exists.