space
Module to interact with spaces.
This module contains class to interact with a space in EMS Studio.
Typical usage example:
```python
space = studio.get_space(space_id)
space.name = "NEW_NAME"
space.update()
space.delete()
```
Space ¶
Bases: SpaceTransport
Space object to interact with space specific studio endpoints.
icon_reference
class-attribute
instance-attribute
¶
creation_date
class-attribute
instance-attribute
¶
from_transport
classmethod
¶
Creates high-level space object from given SpaceTransport.
Parameters:
-
client
(Client
) –Client to use to make API calls for given space.
-
space_transport
(SpaceTransport
) –SpaceTransport object containing properties of space.
Returns:
-
Space
–A Space object with properties from transport and given client.
update ¶
Pushes local changes of space to EMS and updates properties with response from EMS.
create_package ¶
Creates new package with name in given space.
Parameters:
-
name
(str
) –Name of new package.
-
key
(Optional[str]
, default:None
) –Key of new package. Defaults to name.
-
**kwargs
(Any
, default:{}
) –Additional parameters set for SaveContentNodeTransport object.
Returns:
-
Package
–A Package object for newly created package.
Examples:
Create a package in space:
get_package ¶
Gets package with given id.
Parameters:
-
id_
(str
) –Id of package.
Returns:
-
ContentNode
–A Package object for package with given id.
Raises:
-
PyCelonisNotFoundError
–If no package with given id is located in space.
get_packages ¶
Gets all packages of given space.
Returns:
-
CelonisCollection[ContentNode]
–A list containing all packages.