Skip to content

Index

Module to interact with published content nodes.

This module contains class to interact with a published content node in Apps.

Typical usage example
package = space.get_package(package_id)
package.get_folder(folder.id)

PublishedContentNode

Bases: ContentNodeTransport

Published content node object to interact with content node specific apps endpoints.

client class-attribute instance-attribute

client: Client = Field(Ellipsis, exclude=True)

id instance-attribute

id: str

Id of apps content node.

key instance-attribute

key: str

Key of apps content node.

space_id instance-attribute

space_id: str

Id of space where content node is located.

serialized_content instance-attribute

serialized_content: typing.Optional[str]

Serialized content of content node.

from_transport classmethod

from_transport(client, content_node_transport)

Creates high-level published content node object from given ContentNodeTransport.

Parameters:

  • client (Client) –

    Client to use to make API calls for given published content node.

  • content_node_transport (ContentNodeTransport) –

    ContentNodeTransport object containing properties of published content node.

Returns:

  • PublishedContentNode

    A PublishedContentNode object with properties from transport and given client.

sync

sync()

Syncs content node properties with EMS.