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.
put_declarative_workspace
put_declarative_workspace(workspace_id: str, workspace: CatalogDeclarativeWorkspaceModel, standalone_copy: bool)
Set a workspace layout.
Parameters
| name | type | description |
|---|---|---|
| workspace_id | str | Workspace identification string e.g. "demo" |
| workspace | CatalogDeclarativeWorkspaceModel | Object Containing declarative Logical Data Model and declarative Analytical Model. |
| 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
# Get workspace
declarative_workspace = sdk.catalog_workspace.get_declarative_workspace(workspace_id="123")
# Do some changes
# ...
# Set the layout
sdk.catalog_workspace.put_declarative_workspace(
workspace_id="123",
workspace=declarative_workspace
)