Skip to content

view.py

View (Node)

View object to interact with Celonis Studio API.

Source code in celonis_api/studio/view.py
class View(Node):
    """View object to interact with Celonis Studio API."""

    @property
    def content(self) -> typing.Dict:
        """Get/Set the content of the View."""
        return yaml.load(self.data["serializedContent"], Loader=yaml.FullLoader)

    @content.setter
    def content(self, value: typing.Dict):
        self.data["serializedContent"] = yaml.dump(value, sort_keys=False)

content: Dict property writable

Get/Set the content of the View.