version
version ¶
DomoWorkflow_Version
dataclass
¶
DomoWorkflow_Version(
schema_version: int = 2,
tiles: list[DomoWorkflow_Tile] = list(),
edges: list[DomoWorkflow_Edge] = list(),
layouts: list[dict[str, Any]] = list(),
inputs: dict[str, DomoWorkflow_Parameter] = dict(),
outputs: dict[str, DomoWorkflow_Parameter] = dict(),
*,
raw: dict = dict(),
model_id: str = "",
version: str = "",
owner_id: str | None = None,
created_by: str | None = None,
created_dt: datetime | None = None,
updated_by: str | None = None,
updated_dt: datetime | None = None,
active: bool | None = None,
deployed_on: datetime | None = None,
saved_json: str | None = None,
parent: Any | None = None
)
Bases: DomoWorkflow_Design
A workflow version that merges semver metadata with design behavior.
Attributes:
| Name | Type | Description |
|---|---|---|
model_id |
str
|
Parent workflow model UUID. |
version |
str
|
Semver string, e.g. "1.0.0". |
owner_id |
str | None
|
User ID of the version owner. |
created_by |
str | None
|
User ID who created this version. |
created_dt |
datetime | None
|
Creation timestamp. |
updated_by |
str | None
|
User ID who last updated this version. |
updated_dt |
datetime | None
|
Last-update timestamp. |
parent |
Any | None
|
Optional parent DomoWorkflow reference. |
raw |
dict
|
Raw version API response dict. |
is_deployed
property
¶
is_deployed: bool
Return True when the workflow version appears to be deployed/active.
from_dict
classmethod
¶
from_dict(
obj: dict[str, Any], parent: Any | None = None
) -> DomoWorkflow_Version
Build a version from a workflow version API payload.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
obj
|
dict[str, Any]
|
Raw version dict ( |
required |
parent
|
Any | None
|
Optional parent |
None
|
Returns:
| Type | Description |
|---|---|
DomoWorkflow_Version
|
The populated version; the design is empty when |
DomoWorkflow_Version
|
missing or malformed. |
Source code in src/crew_dcs/classes/DomoWorkflow/version.py
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 | |
get_definition
async
¶
get_definition(
*,
auth: DomoAuth | None = None,
return_raw: bool = False,
debug_api: bool = False,
session: AsyncClient | None = None,
context: RouteContext | None = None,
**context_kwargs: Any
) -> ResponseGetData
Get the v2 definition of this workflow version.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
auth
|
DomoAuth | None
|
Session to use; defaults to the parent workflow's auth. |
None
|
return_raw
|
bool
|
If True, return the response without raising on failure. |
False
|
debug_api
|
bool
|
If True, enable API debug output. |
False
|
session
|
AsyncClient | None
|
Optional shared HTTP client. |
None
|
context
|
RouteContext | None
|
Optional pre-built route context. |
None
|
**context_kwargs
|
Any
|
Extra context overrides. |
{}
|
Returns:
| Type | Description |
|---|---|
ResponseGetData
|
The API response. |
Raises:
| Type | Description |
|---|---|
ValueError
|
If no auth is given and the version has no parent auth. |
Workflow_GET_Error
|
If the response is not successful and
|
Source code in src/crew_dcs/classes/DomoWorkflow/version.py
242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 | |
get_trigger_form
async
¶
get_trigger_form(
*,
auth: DomoAuth | None = None,
trigger_id: str | None = None,
deployment_id: str | None = None,
return_raw: bool = False,
debug_api: bool = False,
session: AsyncClient | None = None,
context: RouteContext | None = None,
**context_kwargs: Any
) -> ResponseGetData
Get the trigger form of this workflow version.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
auth
|
DomoAuth | None
|
Session to use; defaults to the parent workflow's auth. |
None
|
trigger_id
|
str | None
|
Optional trigger to render the form for. |
None
|
deployment_id
|
str | None
|
Optional deployment to render the form for. |
None
|
return_raw
|
bool
|
If True, return the response without raising on failure. |
False
|
debug_api
|
bool
|
If True, enable API debug output. |
False
|
session
|
AsyncClient | None
|
Optional shared HTTP client. |
None
|
context
|
RouteContext | None
|
Optional pre-built route context. |
None
|
**context_kwargs
|
Any
|
Extra context overrides. |
{}
|
Returns:
| Type | Description |
|---|---|
ResponseGetData
|
The API response. |
Raises:
| Type | Description |
|---|---|
ValueError
|
If no auth is given and the version has no parent auth. |
Workflow_GET_Error
|
If the response is not successful and
|
Source code in src/crew_dcs/classes/DomoWorkflow/version.py
189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 | |
release
async
¶
release(
*,
auth: DomoAuth | None = None,
debug_api: bool = False,
session: AsyncClient | None = None,
context: RouteContext | None = None,
**context_kwargs: Any
) -> ResponseGetData
Release (deploy/activate) this specific workflow version.
Source code in src/crew_dcs/classes/DomoWorkflow/version.py
161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 | |
to_dict ¶
to_dict() -> dict[str, Any]
Serialize to the API shape (suitable for PUT /versions/{version}).
Source code in src/crew_dcs/classes/DomoWorkflow/version.py
293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 | |
validate_definition ¶
validate_definition(
*,
require_true_false_labels: bool = True,
logic_tile_types: tuple[str, ...] = (
"conditionalGatewayNode",
),
allow_dangling_tile_types: tuple[str, ...] = (
"endNode",
)
) -> tuple[bool, list[str]]
Validate this version's design topology and branching rules.
Source code in src/crew_dcs/classes/DomoWorkflow/version.py
104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 | |
validate_with_domo
async
¶
validate_with_domo(
*,
auth: DomoAuth | None = None,
debug_api: bool = False,
session: AsyncClient | None = None,
context: RouteContext | None = None,
**context_kwargs: Any
) -> ResponseGetData
Validate this version's design with Domo's official validator API.
Source code in src/crew_dcs/classes/DomoWorkflow/version.py
131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 | |
DomoWorkflow_Versions
dataclass
¶
DomoWorkflow_Versions(
auth: DomoAuth,
model_id: str,
parent: Any | None = None,
items: list[DomoWorkflow_Version] | None = None,
current_version: DomoWorkflow_Version | None = None,
)
Bases: DomoManager
Manager for loading workflow versions where each version is a design object.
get
async
¶
get(
debug_api: bool = False,
session: AsyncClient | None = None,
*,
context: RouteContext | None = None,
**context_kwargs: Any
) -> list[DomoWorkflow_Version]
List all versions for a workflow model.
Source code in src/crew_dcs/classes/DomoWorkflow/version.py
319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 | |
get_by_version
async
¶
get_by_version(
version: str,
debug_api: bool = False,
session: AsyncClient | None = None,
*,
context: RouteContext | None = None,
**context_kwargs: Any
) -> DomoWorkflow_Version | None
Fetch one specific version for this workflow model.
Source code in src/crew_dcs/classes/DomoWorkflow/version.py
348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 | |