This documentation is for the unstable version of GoodData, currrently in development.
For stable version, go to the latest stable version of this article.
For stable version, go to the latest stable version of this article.
catalog_workspace_content.
load_and_put_declarative_ldm
load_and_put_declarative_ldm(workspace_id: str, layout_root_path: Path = Path.cwd(), validator: Optional[DataSourceValidator])
This method combines load_declarative_ldm and put_declarative_ldm methods to load and set layouts stored using store_declarative_ldm. You can pass an additional validator parameter which checks that for every data source id in the logical data model the corresponding data source exists.
Parameters
name | type | description |
---|---|---|
workspace_id | string | Workspace identification string e.g. "demo" |
layout_root_path | Optional[Path] | Path to the root of the layout directory. Defaults to Path.cwd(). |
validator | Optional[DataSourceValidator] | Object that manages validation, whether each data_source_id in LDM corresponds to existing data source. Defaults to None. |
Returns
None
Example
The load and put can be done two ways.
Either by one call:
Or by two separate calls:
The result is identical.