catalog_workspace_content.

store_declarative_ldm

store_declarative_ldm(workspace_id: str, layout_root_path: Path = Path.cwd())

Stores the declarative logical data model for a given workspace in directory hierarchy. This method ties the LDM to the workspace and organization, thus it is recommended for backups. If you want to move LDM between workspaces or organizations, use store_ldm_to_disk.

gooddata_layouts
└── organization_id
        └── workspaces
                └── workspace_id
                        └── analytics_model
                                └── ldm
                                    ├── datasets
                                    │       └── dataset.yaml
                                    └── date_instances
                                            └── date_instance.yaml

Parameters

nametypedescription
workspace_idstringWorkspace identification string e.g. "demo"
layout_root_pathOptional[Path]Path to the root of the layout directory. Defaults to Path.cwd().

Returns

None

Example

# Store logical data model
sdk.catalog_workspace_content.store_declarative_ldm(workspace_id="123", layout_root_path=Path.cwd())