singlestoredb.management.job.TargetType¶
- class singlestoredb.management.job.TargetType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)¶
Job target type, spanning both management API versions.
The wire vocabulary differs by version, and
'Cluster'unhelpfully means different things at each: at v1 it is a legacy self-managed cluster, at v2 it is the resource that v1 called a workspace. This enum holds the union so the read path (from_str()) round-trips either version’s value without having to know which version produced it. The write path is version-specific – seeJobsManager._resolve_target.Value
Versions
Meaning
'Workspace'v1
Workspace
'VirtualWorkspace'v1
Starter (shared tier) workspace
'Cluster'v1
Legacy self-managed cluster
'Cluster'v2
Cluster (the v1 “workspace”)
'VirtualCluster'v2
Starter (shared tier) cluster
Only the read path ever sees the v1 sense of
'Cluster': the write path takes its target from the notebook environment, which names a workspace or starter deployment and never a legacy self-managed cluster.- __init__(*args, **kwds)¶
Methods
from_str(s)Attributes
WORKSPACECLUSTERVIRTUAL_WORKSPACEVIRTUAL_CLUSTER