Index
Module to interact with content nodes.
This module contains class to interact with a content node in EMS Studio.
Typical usage example:
```python
package = space.get_package(package_id)
folder = package.create_folder("FOLDER_NAME")
package.get_folder(folder.id)
package.publish(version="1.0.0")
```
AssetType ¶
Bases: Enum
Enum class for different asset types available within Studio.
ContentNode ¶
Bases: ContentNodeTransport
Content node object to interact with content node specific studio endpoints.
invalid_content
class-attribute
instance-attribute
¶
serialization_type
class-attribute
instance-attribute
¶
working_draft_id
class-attribute
instance-attribute
¶
activated_draft_id
class-attribute
instance-attribute
¶
show_in_viewer_mode
class-attribute
instance-attribute
¶
public_available
class-attribute
instance-attribute
¶
asset_metadata_transport
class-attribute
instance-attribute
¶
from_transport
classmethod
¶
Creates high-level content node object from given ContentNodeTransport.
Parameters:
-
client
(Client
) –Client to use to make API calls for given content node.
-
content_node_transport
(ContentNodeTransport
) –ContentNodeTransport object containing properties of content node.
Returns:
-
ContentNode
–A ContentNode object with properties from transport and given client.
update ¶
Pushes local changes of content node to EMS and updates properties with response from EMS.
is_package
staticmethod
¶
Returns whether content node transport is package.
Parameters:
-
content_node_transport
(ContentNodeTransport
) –Content node transport to check.
Returns:
-
bool
–Boolean if transport is package.
is_folder
staticmethod
¶
Returns whether content node transport is package.
Parameters:
-
content_node_transport
(ContentNodeTransport
) –Content node transport to check.
Returns:
-
bool
–Boolean if transport is folder.
is_analysis
staticmethod
¶
Returns whether content node transport is analysis.
Parameters:
-
content_node_transport
(ContentNodeTransport
) –Content node transport to check.
Returns:
-
bool
–Boolean if transport is analysis.
is_knowledge_model
staticmethod
¶
Returns whether content node transport is knowledge model.
Parameters:
-
content_node_transport
(ContentNodeTransport
) –Content node transport to check.
Returns:
-
bool
–Boolean if transport is knowledge model.
is_action_flow
staticmethod
¶
Returns whether content node transport is action flow.
Parameters:
-
content_node_transport
(ContentNodeTransport
) –Content node transport to check.
Returns:
-
bool
–Boolean if transport is action flow.
is_view
staticmethod
¶
Returns whether content node transport is view.
Parameters:
-
content_node_transport
(ContentNodeTransport
) –Content node transport to check.
Returns:
-
bool
–Boolean if transport is view.
is_simulation
staticmethod
¶
Returns whether content node transport is simulation.
Parameters:
-
content_node_transport
(ContentNodeTransport
) –Content node transport to check.
Returns:
-
bool
–Boolean if transport is simulation.
is_skill
staticmethod
¶
Returns whether content node transport is skill.
Parameters:
-
content_node_transport
(ContentNodeTransport
) –Content node transport to check.
Returns:
-
bool
–Boolean if transport is skill.