catalog_workspace.

put_declarative_workspace

put_declarative_workspace(workspace_id: str, workspace: CatalogDeclarativeWorkspaceModel, standalone_copy: bool)

Set a workspace layout.

Parameters

nametypedescription
workspace_idstrWorkspace identification string e.g. "demo"
workspaceCatalogDeclarativeWorkspaceModelObject Containing declarative Logical Data Model and declarative Analytical Model.
standalone_copyboolIf 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

None

Example

# 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
)