view
Module to interact with Views.
This module contains class to interact with Views in Studio.
Typical usage example:
```python
view = package.get_view(SKILL_ID)
view.delete()
```
View ¶
              Bases: ContentNode
View object to interact with view specific studio endpoints.
            parent_node_key
  
      class-attribute
      instance-attribute
  
¶
    
            parent_node_id
  
      class-attribute
      instance-attribute
  
¶
    
            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
  
¶
    
            creation_date
  
      class-attribute
      instance-attribute
  
¶
    
            created_by_name
  
      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.
 
copy_to ¶
copy_to(
    destination_package,
    destination_team_domain,
    overwrite=False,
    delete_source=False,
    **kwargs
)
Copies a content node to the specified domain and package in the same realm (ex. eu-1).
Parameters:
- 
          
destination_package(Package) –The Package object to copy the asset to.
 - 
          
destination_team_domain(str) –The
of the destination team url: https:// . .celonis.cloud/  - 
          
overwrite(bool, default:False) –If true, any node with the same key will be overwritten. If false, a PyCelonisNodeAlreadyExistsError will be raised.
 - 
          
delete_source(bool, default:False) –If true, deletes the node from the source. If false, keeps the source node.
 - 
          
**kwargs(Any, default:{}) –Additional parameters set for ContentNodeCopyTransport
 
Returns:
- 
              
ContentNodeTransport–A read-only content node transport object of the copied asset.
 
Examples:
Copy a package:
package = space.get_package(<package_id>)
new_package = space.create_package("NEW_PACKAGE")
new_package.publish()
copied_package_transport = package.copy_to(new_package, <destination_team_domain>)
Copy a package asset:
            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.
 
update ¶
Pushes local changes of views serialized_content attribute to EMS.
This only pushes changes made to serialized_content. Other attributes of the view will not be
updated. Therefore, any changes have to be made by adjusting serialized_content.