|
2 | 2 |
|
3 | 3 | from __future__ import annotations |
4 | 4 |
|
5 | | -from typing import Dict, Union, Iterable, Optional |
6 | | -from typing_extensions import Literal, Required, TypeAlias, TypedDict |
| 5 | +from typing import Dict, Iterable, Optional |
| 6 | +from typing_extensions import TypedDict |
7 | 7 |
|
| 8 | +from .shared_params.mount import Mount |
8 | 9 | from .shared_params.launch_parameters import LaunchParameters |
9 | 10 | from .shared_params.code_mount_parameters import CodeMountParameters |
10 | 11 |
|
11 | | -__all__ = ["DevboxCreateParams", "Mount", "MountObjectMountParameters", "MountAgentMountParameters"] |
| 12 | +__all__ = ["DevboxCreateParams"] |
12 | 13 |
|
13 | 14 |
|
14 | 15 | class DevboxCreateParams(TypedDict, total=False): |
@@ -71,33 +72,3 @@ class DevboxCreateParams(TypedDict, total=False): |
71 | 72 |
|
72 | 73 | Only one of (Snapshot ID, Blueprint ID, Blueprint name) should be specified. |
73 | 74 | """ |
74 | | - |
75 | | - |
76 | | -class MountObjectMountParameters(TypedDict, total=False): |
77 | | - object_id: Required[str] |
78 | | - """The ID of the object to write.""" |
79 | | - |
80 | | - object_path: Required[str] |
81 | | - """The path to write the object on the Devbox. |
82 | | -
|
83 | | - Use absolute path of object (ie /home/user/object.txt, or directory if archive |
84 | | - /home/user/archive_dir) |
85 | | - """ |
86 | | - |
87 | | - type: Required[Literal["object_mount"]] |
88 | | - |
89 | | - |
90 | | -class MountAgentMountParameters(TypedDict, total=False): |
91 | | - agent_id: Required[str] |
92 | | - """The ID of the agent to mount.""" |
93 | | - |
94 | | - type: Required[Literal["agent_mount"]] |
95 | | - |
96 | | - agent_path: Optional[str] |
97 | | - """Optional path to mount the agent on the Devbox. |
98 | | -
|
99 | | - Required for git and object agents. Use absolute path (e.g., /home/user/agent) |
100 | | - """ |
101 | | - |
102 | | - |
103 | | -Mount: TypeAlias = Union[MountObjectMountParameters, MountAgentMountParameters] |
0 commit comments