catalog_workspace.
create_or_update
create_or_update(workspace: CatalogWorkspace)
Creates a new workspace or overwrite an existing workspace with the same id.
Parameters
name | type | description |
---|---|---|
workspace | CatalogWorkspace | Data source Object, including physical data model. |
Returns
None
Raises
type | description |
---|---|
Value Error | Workspace parent can not be updated. |
Example
# Create workspace
sdk.catalog_workspace.create_or_update(
CatalogWorkspace(
workspace_id="123",
name="Test demo",
parent_id="demo"
)
)