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.
put_declarative_ldm
put_declarative_ldm(workspace_id: str, ldm: CatalogDeclarativeModel, validator: Optional[DataSourceValidator], standalone_copy: bool)
Set declarative logical data model for a given workspace.
Parameters
| name | type | description |
|---|---|---|
| workspace_id | str | Workspace identification string e.g. "demo" |
| ldm | CatalogDeclarativeModel | Object Containing declarative Logical Data Model |
| validator | Optional[DataSourceValidator] | Object that manages validation, whether each data_source_id in LDM corresponds to existing data source. Defaults to None. |
| standalone_copy | bool | If true, then workspace data filter references will be removed from LDM. Note that first, the copy is made so we do not interfere with the original input. |
Returns
NoneExample
# Generate logical data model
logical_model = sdk.catalog_data_source.generate_logical_model(data_source_id="demo-test-ds")
# Do some changes
# ...
# Put logical data model
sdk.catalog_workspace_content.put_declarative_ldm(workspace_id="demo", ldm=logical_model)