sandbox
sandbox ¶
Sandbox_CRUD_Error ¶
Sandbox_CRUD_Error(
operation: str,
repository_id: str | None = None,
message: str | None = None,
res=None,
**kwargs
)
Bases: RouteError
Raised when sandbox create, update, or delete operations fail.
Source code in src/crew_dcs/routes/sandbox.py
68 69 70 71 72 73 74 75 76 77 78 79 80 81 | |
Sandbox_GET_Error ¶
Sandbox_GET_Error(
repository_id: str | None = None,
message: str | None = None,
res=None,
**kwargs
)
Bases: RouteError
Raised when sandbox retrieval operations fail.
Source code in src/crew_dcs/routes/sandbox.py
50 51 52 53 54 55 56 57 58 59 60 61 62 | |
create_commit
async
¶
create_commit(
auth: DomoAuth,
repository_id: str,
commit: CommitCreate | dict[str, Any],
return_raw: bool = False,
*,
context: RouteContext | None = None,
**context_kwargs
) -> ResponseGetData
Create a commit (POST .../repositories/{id}/commitRequests).
commit may be a CommitCreate (adds a fresh pusherEventId) or a
raw dict, sent as-is.
Source code in src/crew_dcs/routes/sandbox.py
635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 | |
get_commit_requests
async
¶
get_commit_requests(
auth: DomoAuth,
repository_id: str,
return_raw: bool = False,
*,
context: RouteContext | None = None,
**context_kwargs
) -> ResponseGetData
Get a repository's commit requests (GET .../repositories/{id}/commitRequests).
Source code in src/crew_dcs/routes/sandbox.py
420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 | |
get_commits
async
¶
get_commits(
auth: DomoAuth,
repository_id: str,
return_raw: bool = False,
*,
context: RouteContext | None = None,
**context_kwargs
) -> ResponseGetData
Get a repository's commits (GET .../repositories/{id}/commits).
Source code in src/crew_dcs/routes/sandbox.py
437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 | |
get_instance_access
async
¶
get_instance_access(
auth: DomoAuth,
repository_id: str,
return_raw: bool = False,
*,
context: RouteContext | None = None,
**context_kwargs
) -> ResponseGetData
Get instances with access to a repository (GET .../repositories/{id}/access).
Source code in src/crew_dcs/routes/sandbox.py
403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 | |
get_instances
async
¶
get_instances(
auth: DomoAuth,
limit: int = 250,
return_raw: bool = False,
*,
context: RouteContext | None = None,
**context_kwargs
) -> ResponseGetData
List authorized instances (GET /version/v1/authorizations).
Raises:
| Type | Description |
|---|---|
Sandbox_GET_Error
|
If retrieval fails |
Source code in src/crew_dcs/routes/sandbox.py
346 347 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 | |
get_repo_from_id
async
¶
get_repo_from_id(
auth: DomoAuth,
repository_id: str,
return_raw: bool = False,
*,
context: RouteContext | None = None,
**context_kwargs
) -> ResponseGetData
Get a sandbox repository by ID.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
auth
|
DomoAuth
|
Authentication object |
required |
repository_id
|
str
|
Repository identifier |
required |
return_raw
|
bool
|
Return raw response without processing |
False
|
context
|
RouteContext | None
|
Optional RouteContext for request configuration |
None
|
Returns:
| Type | Description |
|---|---|
ResponseGetData
|
ResponseGetData object |
Raises:
| Type | Description |
|---|---|
Sandbox_GET_Error
|
If retrieval fails |
Source code in src/crew_dcs/routes/sandbox.py
237 238 239 240 241 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 | |
get_repo_permissions
async
¶
get_repo_permissions(
auth: DomoAuth,
repository_id: str,
return_raw: bool = False,
*,
context: RouteContext | None = None,
**context_kwargs
) -> ResponseGetData
Get a repository's user/group permissions (GET .../repositories/{id}/permissions).
Source code in src/crew_dcs/routes/sandbox.py
454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 | |
promote_and_seed
async
¶
promote_and_seed(
auth: DomoAuth,
repository_id: str,
deployment_id: str,
request: PromoteAndSeedRequest | dict[str, Any],
return_raw: bool = False,
*,
context: RouteContext | None = None,
**context_kwargs
) -> ResponseGetData
Promote and link/seed a commit (POST .../deployments/{deploymentId}/promoteAndSeed).
request may be a PromoteAndSeedRequest (adds a fresh
pusherEventId) or a raw dict, sent as-is.
Source code in src/crew_dcs/routes/sandbox.py
663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 | |
search_commit_history
async
¶
search_commit_history(
auth: DomoAuth,
filters: dict | None = None,
sort: str = "completed",
order: str = "desc",
date_filters: dict | None = None,
return_raw: bool = False,
*,
context: RouteContext | None = None,
**context_kwargs
) -> ResponseGetData
Search commit history (POST /version/v1/commitRequests/search), paginated.
Request shape follows the Postman example; the response list key is
UNVERIFIED (tries commitRequests, commits, results, items,
or a bare list) -- rests on the endpoint shape, not on a runnable proof.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
filters
|
dict | None
|
e.g. |
None
|
Source code in src/crew_dcs/routes/sandbox.py
541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 | |
search_promotion_history
async
¶
search_promotion_history(
auth: DomoAuth,
filters: dict | None = None,
sort: str = "completed",
order: str = "desc",
date_filters: dict | None = None,
return_raw: bool = False,
*,
context: RouteContext | None = None,
**context_kwargs
) -> ResponseGetData
Search promotion history (POST /version/v1/promotions/search), paginated.
Request shape follows the Postman example; the response list key is
UNVERIFIED (tries promotions, results, items, or a bare list)
-- rests on the endpoint shape, not on a runnable proof.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
filters
|
dict | None
|
e.g. |
None
|
Source code in src/crew_dcs/routes/sandbox.py
574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 | |
toggle_allow_same_instance_promotion
async
¶
toggle_allow_same_instance_promotion(
auth: DomoAuth,
is_enabled: bool,
return_raw: bool = False,
*,
context: RouteContext | None = None,
**context_kwargs
) -> ResponseGetData
Toggle the allow same instance promotion setting.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
auth
|
DomoAuth
|
Authentication object |
required |
is_enabled
|
bool
|
Whether to enable same instance promotion |
required |
return_raw
|
bool
|
Return raw response without processing |
False
|
context
|
RouteContext | None
|
Optional RouteContext for request configuration |
None
|
Returns:
| Type | Description |
|---|---|
ResponseGetData
|
ResponseGetData object |
Raises:
| Type | Description |
|---|---|
Sandbox_CRUD_Error
|
If the operation fails |
Source code in src/crew_dcs/routes/sandbox.py
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 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 | |
update_instance_alias
async
¶
update_instance_alias(
auth: DomoAuth,
alias_update: InstanceAliasUpdate | dict[str, Any],
return_raw: bool = False,
*,
context: RouteContext | None = None,
**context_kwargs
) -> ResponseGetData
Set an instance alias (POST /version/v1/authorizations/aliases).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
alias_update
|
InstanceAliasUpdate | dict[str, Any]
|
|
required |
Raises:
| Type | Description |
|---|---|
Sandbox_CRUD_Error
|
If the operation fails |
Source code in src/crew_dcs/routes/sandbox.py
471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 | |
update_repo_instance_access
async
¶
update_repo_instance_access(
auth: DomoAuth,
repository_id: str,
domains: list[str],
return_raw: bool = False,
*,
context: RouteContext | None = None,
**context_kwargs
) -> ResponseGetData
Set the instances with access to a repository (POST .../repositories/{id}/access).
Body is a bare list of domain strings. The Postman collection lists the path
as /repositories{repositoryId}/access (missing slash); the slash is
assumed a typo and this rests on the GET sibling's path, not a runnable proof.
Source code in src/crew_dcs/routes/sandbox.py
725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 | |
update_repo_permissions
async
¶
update_repo_permissions(
auth: DomoAuth,
repository_id: str,
updates: list[
RepositoryPermissionUpdate | dict[str, Any]
],
return_raw: bool = False,
*,
context: RouteContext | None = None,
**context_kwargs
) -> ResponseGetData
Update repository user/group permissions (POST .../repositories/{id}/permissions).
Each item may be a RepositoryPermissionUpdate or a raw dict; the unused
userId/groupId is sent as '' per the Postman example.
Source code in src/crew_dcs/routes/sandbox.py
692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 | |