variable
Module to interact with Package Variables.
This module contains class to interact with Package Variables in Studio.
Typical usage example:
```python
variable = package.create_variable("DATA_MODEL_VARIABLE", "DATA_MODEL_ID", "DATA_MODEL")
variables = package.get_variables()
variable.delete()
```
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.
copy_to ¶
copy_to(
destination_package,
destination_team_domain,
overwrite=False,
delete_source=False,
**kwargs
)
Not supported currently.