CatalogWorkspaceService.

create_or_update

create_or_update(workspace: CatalogWorkspace) -> UpsertOutcome

Create a new workspace or overwrite an existing workspace with the same id.

Parameters

nametypedescription
workspaceCatalogWorkspaceCatalog Workspace object to be created or updated.

Returns

typedescription
UpsertOutcome

CREATED if the workspace did not exist yet, UPDATED if it did.