core
core ¶
DomoAppStudio
dataclass
¶
DomoAppStudio(
auth: DomoAuth,
id: int,
raw: dict,
title: str = None,
is_locked: bool = None,
owners: list = list(),
custom_attributes: dict = dict(),
Lineage: DomoLineage = None,
Definition: DomoAppStudio_DefinitionManager
| None = None,
Views: DomoAppStudio_ViewsManager | None = None,
)
Bases: DomoEntity_w_Lineage
add_appstudio_owner
async
classmethod
¶
add_appstudio_owner(
auth: DomoAuth,
appstudio_id_ls: list[int],
group_id_ls: list[int],
user_id_ls: list[int],
note: str | None = None,
send_email: bool = False,
context: RouteContext | None = None,
**context_kwargs,
)
Calls route
Source code in src/crew_dcs/classes/DomoAppStudio/core.py
386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 | |
from_dict
classmethod
¶
from_dict(auth: DomoAuth, obj: dict[str, Any])
Create a DomoAppStudio instance from a dictionary representation.
Source code in src/crew_dcs/classes/DomoAppStudio/core.py
165 166 167 168 | |
get_accesslist
async
¶
get_accesslist(
return_raw: bool = False,
*,
context: RouteContext | None = None,
**context_kwargs,
)
Calls route
Source code in src/crew_dcs/classes/DomoAppStudio/core.py
269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 | |
get_by_id
async
classmethod
¶
get_by_id(
appstudio_id: str,
auth: DomoAuth,
return_raw: bool = False,
debug_api: bool = False,
session: AsyncClient = None,
debug_num_stacks_to_drop: int = 2,
check_if_published: bool | None = None,
parent_auth_retrieval_fn: Callable | None = None,
parent_auth: DomoAuth | None = None,
max_subscriptions_to_check: int | None = None,
*,
context: RouteContext | None = None,
**context_kwargs,
)
Calls route
Source code in src/crew_dcs/classes/DomoAppStudio/core.py
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 98 99 100 101 102 103 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 130 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 | |
optimize_style
async
¶
optimize_style(
preset_name: str = "minimal_light",
save: bool = True,
*,
context: RouteContext | None = None,
**context_kwargs,
)
Apply a style preset to the entire app (definition + all views).
Convenience method that delegates to the styling optimizer module.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
preset_name
|
str
|
Name of the preset to apply (case-insensitive). Available presets: MINIMAL_LIGHT, MINIMAL_DARK, EXECUTIVE, DENSE. |
'minimal_light'
|
save
|
bool
|
If True, saves all changes to the API. |
True
|
context
|
RouteContext | None
|
Optional RouteContext for request configuration. |
None
|
**context_kwargs
|
Additional context parameters. |
{}
|
Returns:
| Type | Description |
|---|---|
|
The updated AppStudioDefinition. |
Source code in src/crew_dcs/classes/DomoAppStudio/core.py
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 380 381 382 383 384 | |
share
async
¶
share(
domo_users: list | None = None,
domo_groups: list | None = None,
message: str | None = None,
context: RouteContext | None = None,
**context_kwargs,
)
Calls route
Source code in src/crew_dcs/classes/DomoAppStudio/core.py
324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 | |
DomoAppStudios
dataclass
¶
DomoAppStudios()
get_appstudios
async
classmethod
¶
get_appstudios(
auth=DomoAuth,
return_raw: bool = False,
debug_api: bool = False,
debug_loop: bool = False,
session: AsyncClient = None,
*,
context: RouteContext | None = None,
**context_kwargs,
)
use admin_summary to retrieve all appstudios in an instance -- regardless of user access NOTE: some appstudios APIs will not return results if appstudio access isn't explicitly shared
Calls route
Source code in src/crew_dcs/classes/DomoAppStudio/core.py
415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 | |