content_node_factory
Module to create high-level content node objects from ContentNodeTransport.
This module contains factory class to create high level content node objects from ContentNodeTransport.
Typical usage example:
```python
package = ContentNodeFactory.get_content_node(client, content_node_transport)
```
ContentNodeFactory ¶
Factory class to create content nodes with given type from transport object.
get_content_node
staticmethod
¶
Returns instance of content node subclass (e.g. folder) depending on node_type and asset_type.
Parameters:
-
client
(Client
) –Client to use to make API calls for given content node.
-
content_node_transport
(ContentNodeTransport
) –ContentNodeTransport containing properties of content node
Returns:
-
ContentNode
–A ContentNode object with proper class based on properties