cmem_client.models.workspace_config¤
Corporate Memory Explore workspace configuration models.
This module defines models for representing workspace configurations managed by the DataPlatform (explore) Workspace Config Controller API.
Classes:
- LocalizedString – A language-tagged string value.
- WorkspaceConfig – An Explore (DataPlatform) workspace configuration.
LocalizedString¤
Bases: Model
A language-tagged string value.
Attributes:
lang¤
model_config¤
value¤
WorkspaceConfig¤
Bases: ReadRepositoryItem
An Explore (DataPlatform) workspace configuration.
Attributes:
- id (
str) – ID of the configuration. This is the key of the repository. - labels (
list[LocalizedString]) – Names of the workspace, one per language. Use thelabelproperty to pick one without handling the list yourself. - enable_companion (
bool | None) – Whether the companion is enabled, orNoneif the configuration does not decide it and the deployment default applies. - enable_graph_insights (
bool | None) – Whether Graph Insights is enabled, orNoneif the configuration does not decide it.
Functions:
- get_id – Get the ID of the workspace configuration.
enable_companion¤
enable_graph_insights¤
get_id¤
Get the ID of the workspace configuration.
id¤
label¤
Get the English label, falling back to first available or the ID.
labels¤
labels: list[LocalizedString] = Field(default=[LocalizedString(value='This is a default workspace label', lang='en')])