cyberdesk 1.11.0__py3-none-any.whl → 2.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of cyberdesk might be problematic. Click here for more details.

Files changed (66) hide show
  1. cyberdesk/__init__.py +1 -1
  2. cyberdesk/client.py +358 -6
  3. {cyberdesk-1.11.0.dist-info → cyberdesk-2.1.0.dist-info}/METADATA +1 -1
  4. {cyberdesk-1.11.0.dist-info → cyberdesk-2.1.0.dist-info}/RECORD +66 -49
  5. openapi_client/cyberdesk_cloud_client/api/connections/create_connection_v1_connections_post.py +4 -4
  6. openapi_client/cyberdesk_cloud_client/api/connections/delete_connection_v1_connections_connection_id_delete.py +4 -4
  7. openapi_client/cyberdesk_cloud_client/api/connections/get_connection_v1_connections_connection_id_get.py +4 -4
  8. openapi_client/cyberdesk_cloud_client/api/connections/list_connections_v1_connections_get.py +4 -4
  9. openapi_client/cyberdesk_cloud_client/api/connections/update_connection_v1_connections_connection_id_patch.py +4 -4
  10. openapi_client/cyberdesk_cloud_client/api/machines/create_machine_v1_machines_post.py +4 -4
  11. openapi_client/cyberdesk_cloud_client/api/machines/delete_machine_v1_machines_machine_id_delete.py +4 -4
  12. openapi_client/cyberdesk_cloud_client/api/machines/get_machine_pools_v1_machines_machine_id_pools_get.py +169 -0
  13. openapi_client/cyberdesk_cloud_client/api/machines/get_machine_v1_machines_machine_id_get.py +4 -4
  14. openapi_client/cyberdesk_cloud_client/api/machines/list_machines_v1_machines_get.py +4 -4
  15. openapi_client/cyberdesk_cloud_client/api/machines/update_machine_pools_v1_machines_machine_id_pools_put.py +190 -0
  16. openapi_client/cyberdesk_cloud_client/api/machines/update_machine_v1_machines_machine_id_patch.py +4 -4
  17. openapi_client/cyberdesk_cloud_client/api/pools/__init__.py +1 -0
  18. openapi_client/cyberdesk_cloud_client/api/pools/add_machines_to_pool_v1_pools_pool_id_machines_post.py +186 -0
  19. openapi_client/cyberdesk_cloud_client/api/pools/create_pool_v1_pools_post.py +172 -0
  20. openapi_client/cyberdesk_cloud_client/api/pools/delete_pool_v1_pools_pool_id_delete.py +162 -0
  21. openapi_client/cyberdesk_cloud_client/api/pools/get_pool_v1_pools_pool_id_get.py +185 -0
  22. openapi_client/cyberdesk_cloud_client/api/pools/list_pools_v1_pools_get.py +186 -0
  23. openapi_client/cyberdesk_cloud_client/api/pools/remove_machines_from_pool_v1_pools_pool_id_machines_delete.py +184 -0
  24. openapi_client/cyberdesk_cloud_client/api/pools/update_pool_v1_pools_pool_id_patch.py +186 -0
  25. openapi_client/cyberdesk_cloud_client/api/request_logs/create_request_log_v1_request_logs_post.py +4 -4
  26. openapi_client/cyberdesk_cloud_client/api/request_logs/delete_request_log_v1_request_logs_log_id_delete.py +4 -4
  27. openapi_client/cyberdesk_cloud_client/api/request_logs/get_request_log_v1_request_logs_log_id_get.py +4 -4
  28. openapi_client/cyberdesk_cloud_client/api/request_logs/list_request_logs_v1_request_logs_get.py +4 -4
  29. openapi_client/cyberdesk_cloud_client/api/request_logs/update_request_log_v1_request_logs_log_id_patch.py +4 -4
  30. openapi_client/cyberdesk_cloud_client/api/run_attachments/list_run_attachments_v1_run_attachments_get.py +4 -4
  31. openapi_client/cyberdesk_cloud_client/api/runs/create_run_v1_runs_post.py +12 -8
  32. openapi_client/cyberdesk_cloud_client/api/runs/delete_run_v1_runs_run_id_delete.py +8 -4
  33. openapi_client/cyberdesk_cloud_client/api/runs/get_run_v1_runs_run_id_get.py +4 -4
  34. openapi_client/cyberdesk_cloud_client/api/runs/list_runs_v1_runs_get.py +4 -4
  35. openapi_client/cyberdesk_cloud_client/api/runs/update_run_v1_runs_run_id_patch.py +8 -12
  36. openapi_client/cyberdesk_cloud_client/api/trajectories/create_trajectory_v1_trajectories_post.py +4 -4
  37. openapi_client/cyberdesk_cloud_client/api/trajectories/delete_trajectory_v1_trajectories_trajectory_id_delete.py +4 -4
  38. openapi_client/cyberdesk_cloud_client/api/trajectories/get_latest_trajectory_for_workflow_v1_workflows_workflow_id_latest_trajectory_get.py +4 -4
  39. openapi_client/cyberdesk_cloud_client/api/trajectories/get_trajectory_v1_trajectories_trajectory_id_get.py +4 -4
  40. openapi_client/cyberdesk_cloud_client/api/trajectories/list_trajectories_v1_trajectories_get.py +4 -4
  41. openapi_client/cyberdesk_cloud_client/api/trajectories/update_trajectory_v1_trajectories_trajectory_id_patch.py +4 -4
  42. openapi_client/cyberdesk_cloud_client/api/workflows/create_workflow_v1_workflows_post.py +4 -4
  43. openapi_client/cyberdesk_cloud_client/api/workflows/delete_workflow_v1_workflows_workflow_id_delete.py +4 -4
  44. openapi_client/cyberdesk_cloud_client/api/workflows/get_workflow_v1_workflows_workflow_id_get.py +4 -4
  45. openapi_client/cyberdesk_cloud_client/api/workflows/get_workflow_versions_v1_workflows_workflow_id_versions_get.py +4 -4
  46. openapi_client/cyberdesk_cloud_client/api/workflows/list_workflows_v1_workflows_get.py +4 -4
  47. openapi_client/cyberdesk_cloud_client/api/workflows/update_workflow_v1_workflows_workflow_id_patch.py +4 -4
  48. openapi_client/cyberdesk_cloud_client/models/__init__.py +14 -0
  49. openapi_client/cyberdesk_cloud_client/models/machine_pool_assignment.py +69 -0
  50. openapi_client/cyberdesk_cloud_client/models/machine_pool_update.py +69 -0
  51. openapi_client/cyberdesk_cloud_client/models/machine_response.py +96 -9
  52. openapi_client/cyberdesk_cloud_client/models/paginated_response_pool_response.py +97 -0
  53. openapi_client/cyberdesk_cloud_client/models/pool_create.py +82 -0
  54. openapi_client/cyberdesk_cloud_client/models/pool_response.py +137 -0
  55. openapi_client/cyberdesk_cloud_client/models/pool_update.py +92 -0
  56. openapi_client/cyberdesk_cloud_client/models/pool_with_machines.py +162 -0
  57. openapi_client/cyberdesk_cloud_client/models/request_log_response.py +20 -0
  58. openapi_client/cyberdesk_cloud_client/models/run_attachment_response.py +50 -8
  59. openapi_client/cyberdesk_cloud_client/models/run_bulk_create.py +40 -0
  60. openapi_client/cyberdesk_cloud_client/models/run_create.py +40 -0
  61. openapi_client/cyberdesk_cloud_client/models/run_response.py +90 -8
  62. openapi_client/cyberdesk_cloud_client/models/trajectory_response.py +50 -8
  63. openapi_client/cyberdesk_cloud_client/models/workflow_response.py +50 -8
  64. {cyberdesk-1.11.0.dist-info → cyberdesk-2.1.0.dist-info}/WHEEL +0 -0
  65. {cyberdesk-1.11.0.dist-info → cyberdesk-2.1.0.dist-info}/licenses/LICENSE +0 -0
  66. {cyberdesk-1.11.0.dist-info → cyberdesk-2.1.0.dist-info}/top_level.txt +0 -0
@@ -57,7 +57,7 @@ def sync_detailed(
57
57
 
58
58
  Delete a trajectory.
59
59
 
60
- The trajectory must belong to the authenticated user.
60
+ The trajectory must belong to the authenticated organization.
61
61
 
62
62
  Args:
63
63
  trajectory_id (UUID):
@@ -90,7 +90,7 @@ def sync(
90
90
 
91
91
  Delete a trajectory.
92
92
 
93
- The trajectory must belong to the authenticated user.
93
+ The trajectory must belong to the authenticated organization.
94
94
 
95
95
  Args:
96
96
  trajectory_id (UUID):
@@ -118,7 +118,7 @@ async def asyncio_detailed(
118
118
 
119
119
  Delete a trajectory.
120
120
 
121
- The trajectory must belong to the authenticated user.
121
+ The trajectory must belong to the authenticated organization.
122
122
 
123
123
  Args:
124
124
  trajectory_id (UUID):
@@ -149,7 +149,7 @@ async def asyncio(
149
149
 
150
150
  Delete a trajectory.
151
151
 
152
- The trajectory must belong to the authenticated user.
152
+ The trajectory must belong to the authenticated organization.
153
153
 
154
154
  Args:
155
155
  trajectory_id (UUID):
@@ -60,7 +60,7 @@ def sync_detailed(
60
60
  Get the latest trajectory for a specific workflow.
61
61
 
62
62
  Returns the most recently updated trajectory for the workflow.
63
- The workflow must belong to the authenticated user.
63
+ The workflow must belong to the authenticated organization.
64
64
 
65
65
  Args:
66
66
  workflow_id (UUID):
@@ -94,7 +94,7 @@ def sync(
94
94
  Get the latest trajectory for a specific workflow.
95
95
 
96
96
  Returns the most recently updated trajectory for the workflow.
97
- The workflow must belong to the authenticated user.
97
+ The workflow must belong to the authenticated organization.
98
98
 
99
99
  Args:
100
100
  workflow_id (UUID):
@@ -123,7 +123,7 @@ async def asyncio_detailed(
123
123
  Get the latest trajectory for a specific workflow.
124
124
 
125
125
  Returns the most recently updated trajectory for the workflow.
126
- The workflow must belong to the authenticated user.
126
+ The workflow must belong to the authenticated organization.
127
127
 
128
128
  Args:
129
129
  workflow_id (UUID):
@@ -155,7 +155,7 @@ async def asyncio(
155
155
  Get the latest trajectory for a specific workflow.
156
156
 
157
157
  Returns the most recently updated trajectory for the workflow.
158
- The workflow must belong to the authenticated user.
158
+ The workflow must belong to the authenticated organization.
159
159
 
160
160
  Args:
161
161
  workflow_id (UUID):
@@ -60,7 +60,7 @@ def sync_detailed(
60
60
  Get a specific trajectory by ID.
61
61
 
62
62
  Returns the trajectory with its associated workflow data.
63
- The trajectory must belong to the authenticated user.
63
+ The trajectory must belong to the authenticated organization.
64
64
 
65
65
  Args:
66
66
  trajectory_id (UUID):
@@ -94,7 +94,7 @@ def sync(
94
94
  Get a specific trajectory by ID.
95
95
 
96
96
  Returns the trajectory with its associated workflow data.
97
- The trajectory must belong to the authenticated user.
97
+ The trajectory must belong to the authenticated organization.
98
98
 
99
99
  Args:
100
100
  trajectory_id (UUID):
@@ -123,7 +123,7 @@ async def asyncio_detailed(
123
123
  Get a specific trajectory by ID.
124
124
 
125
125
  Returns the trajectory with its associated workflow data.
126
- The trajectory must belong to the authenticated user.
126
+ The trajectory must belong to the authenticated organization.
127
127
 
128
128
  Args:
129
129
  trajectory_id (UUID):
@@ -155,7 +155,7 @@ async def asyncio(
155
155
  Get a specific trajectory by ID.
156
156
 
157
157
  Returns the trajectory with its associated workflow data.
158
- The trajectory must belong to the authenticated user.
158
+ The trajectory must belong to the authenticated organization.
159
159
 
160
160
  Args:
161
161
  trajectory_id (UUID):
@@ -80,7 +80,7 @@ def sync_detailed(
80
80
  ) -> Response[Union[HTTPValidationError, PaginatedResponseTrajectoryResponse]]:
81
81
  """List Trajectories
82
82
 
83
- List all trajectories for the authenticated user.
83
+ List all trajectories for the authenticated organization.
84
84
 
85
85
  Supports pagination and filtering by workflow.
86
86
  Returns trajectories with their associated workflow data.
@@ -120,7 +120,7 @@ def sync(
120
120
  ) -> Optional[Union[HTTPValidationError, PaginatedResponseTrajectoryResponse]]:
121
121
  """List Trajectories
122
122
 
123
- List all trajectories for the authenticated user.
123
+ List all trajectories for the authenticated organization.
124
124
 
125
125
  Supports pagination and filtering by workflow.
126
126
  Returns trajectories with their associated workflow data.
@@ -155,7 +155,7 @@ async def asyncio_detailed(
155
155
  ) -> Response[Union[HTTPValidationError, PaginatedResponseTrajectoryResponse]]:
156
156
  """List Trajectories
157
157
 
158
- List all trajectories for the authenticated user.
158
+ List all trajectories for the authenticated organization.
159
159
 
160
160
  Supports pagination and filtering by workflow.
161
161
  Returns trajectories with their associated workflow data.
@@ -193,7 +193,7 @@ async def asyncio(
193
193
  ) -> Optional[Union[HTTPValidationError, PaginatedResponseTrajectoryResponse]]:
194
194
  """List Trajectories
195
195
 
196
- List all trajectories for the authenticated user.
196
+ List all trajectories for the authenticated organization.
197
197
 
198
198
  Supports pagination and filtering by workflow.
199
199
  Returns trajectories with their associated workflow data.
@@ -71,7 +71,7 @@ def sync_detailed(
71
71
  Update a trajectory's data.
72
72
 
73
73
  Only the fields provided in the request body will be updated.
74
- The trajectory must belong to the authenticated user.
74
+ The trajectory must belong to the authenticated organization.
75
75
 
76
76
  Args:
77
77
  trajectory_id (UUID):
@@ -108,7 +108,7 @@ def sync(
108
108
  Update a trajectory's data.
109
109
 
110
110
  Only the fields provided in the request body will be updated.
111
- The trajectory must belong to the authenticated user.
111
+ The trajectory must belong to the authenticated organization.
112
112
 
113
113
  Args:
114
114
  trajectory_id (UUID):
@@ -140,7 +140,7 @@ async def asyncio_detailed(
140
140
  Update a trajectory's data.
141
141
 
142
142
  Only the fields provided in the request body will be updated.
143
- The trajectory must belong to the authenticated user.
143
+ The trajectory must belong to the authenticated organization.
144
144
 
145
145
  Args:
146
146
  trajectory_id (UUID):
@@ -175,7 +175,7 @@ async def asyncio(
175
175
  Update a trajectory's data.
176
176
 
177
177
  Only the fields provided in the request body will be updated.
178
- The trajectory must belong to the authenticated user.
178
+ The trajectory must belong to the authenticated organization.
179
179
 
180
180
  Args:
181
181
  trajectory_id (UUID):
@@ -67,7 +67,7 @@ def sync_detailed(
67
67
 
68
68
  Create a new workflow.
69
69
 
70
- The workflow will be associated with the authenticated user.
70
+ The workflow will be associated with the authenticated organization.
71
71
 
72
72
  Args:
73
73
  body (WorkflowCreate): Schema for creating a workflow
@@ -100,7 +100,7 @@ def sync(
100
100
 
101
101
  Create a new workflow.
102
102
 
103
- The workflow will be associated with the authenticated user.
103
+ The workflow will be associated with the authenticated organization.
104
104
 
105
105
  Args:
106
106
  body (WorkflowCreate): Schema for creating a workflow
@@ -128,7 +128,7 @@ async def asyncio_detailed(
128
128
 
129
129
  Create a new workflow.
130
130
 
131
- The workflow will be associated with the authenticated user.
131
+ The workflow will be associated with the authenticated organization.
132
132
 
133
133
  Args:
134
134
  body (WorkflowCreate): Schema for creating a workflow
@@ -159,7 +159,7 @@ async def asyncio(
159
159
 
160
160
  Create a new workflow.
161
161
 
162
- The workflow will be associated with the authenticated user.
162
+ The workflow will be associated with the authenticated organization.
163
163
 
164
164
  Args:
165
165
  body (WorkflowCreate): Schema for creating a workflow
@@ -58,7 +58,7 @@ def sync_detailed(
58
58
  Delete a workflow.
59
59
 
60
60
  This will also delete all associated runs and trajectories.
61
- The workflow must belong to the authenticated user.
61
+ The workflow must belong to the authenticated organization.
62
62
 
63
63
  Args:
64
64
  workflow_id (UUID):
@@ -92,7 +92,7 @@ def sync(
92
92
  Delete a workflow.
93
93
 
94
94
  This will also delete all associated runs and trajectories.
95
- The workflow must belong to the authenticated user.
95
+ The workflow must belong to the authenticated organization.
96
96
 
97
97
  Args:
98
98
  workflow_id (UUID):
@@ -121,7 +121,7 @@ async def asyncio_detailed(
121
121
  Delete a workflow.
122
122
 
123
123
  This will also delete all associated runs and trajectories.
124
- The workflow must belong to the authenticated user.
124
+ The workflow must belong to the authenticated organization.
125
125
 
126
126
  Args:
127
127
  workflow_id (UUID):
@@ -153,7 +153,7 @@ async def asyncio(
153
153
  Delete a workflow.
154
154
 
155
155
  This will also delete all associated runs and trajectories.
156
- The workflow must belong to the authenticated user.
156
+ The workflow must belong to the authenticated organization.
157
157
 
158
158
  Args:
159
159
  workflow_id (UUID):
@@ -59,7 +59,7 @@ def sync_detailed(
59
59
 
60
60
  Get a specific workflow by ID.
61
61
 
62
- The workflow must belong to the authenticated user.
62
+ The workflow must belong to the authenticated organization.
63
63
 
64
64
  Args:
65
65
  workflow_id (UUID):
@@ -92,7 +92,7 @@ def sync(
92
92
 
93
93
  Get a specific workflow by ID.
94
94
 
95
- The workflow must belong to the authenticated user.
95
+ The workflow must belong to the authenticated organization.
96
96
 
97
97
  Args:
98
98
  workflow_id (UUID):
@@ -120,7 +120,7 @@ async def asyncio_detailed(
120
120
 
121
121
  Get a specific workflow by ID.
122
122
 
123
- The workflow must belong to the authenticated user.
123
+ The workflow must belong to the authenticated organization.
124
124
 
125
125
  Args:
126
126
  workflow_id (UUID):
@@ -151,7 +151,7 @@ async def asyncio(
151
151
 
152
152
  Get a specific workflow by ID.
153
153
 
154
- The workflow must belong to the authenticated user.
154
+ The workflow must belong to the authenticated organization.
155
155
 
156
156
  Args:
157
157
  workflow_id (UUID):
@@ -69,7 +69,7 @@ def sync_detailed(
69
69
  Get the version history of a workflow.
70
70
 
71
71
  Returns a list of previous versions with their prompts and timestamps.
72
- The workflow must belong to the authenticated user.
72
+ The workflow must belong to the authenticated organization.
73
73
 
74
74
  Args:
75
75
  workflow_id (UUID):
@@ -103,7 +103,7 @@ def sync(
103
103
  Get the version history of a workflow.
104
104
 
105
105
  Returns a list of previous versions with their prompts and timestamps.
106
- The workflow must belong to the authenticated user.
106
+ The workflow must belong to the authenticated organization.
107
107
 
108
108
  Args:
109
109
  workflow_id (UUID):
@@ -132,7 +132,7 @@ async def asyncio_detailed(
132
132
  Get the version history of a workflow.
133
133
 
134
134
  Returns a list of previous versions with their prompts and timestamps.
135
- The workflow must belong to the authenticated user.
135
+ The workflow must belong to the authenticated organization.
136
136
 
137
137
  Args:
138
138
  workflow_id (UUID):
@@ -164,7 +164,7 @@ async def asyncio(
164
164
  Get the version history of a workflow.
165
165
 
166
166
  Returns a list of previous versions with their prompts and timestamps.
167
- The workflow must belong to the authenticated user.
167
+ The workflow must belong to the authenticated organization.
168
168
 
169
169
  Args:
170
170
  workflow_id (UUID):
@@ -68,7 +68,7 @@ def sync_detailed(
68
68
  ) -> Response[Union[HTTPValidationError, PaginatedResponseWorkflowResponse]]:
69
69
  """List Workflows
70
70
 
71
- List all workflows for the authenticated user.
71
+ List all workflows for the authenticated organization.
72
72
 
73
73
  Supports pagination and returns workflows ordered by updated_at descending.
74
74
 
@@ -104,7 +104,7 @@ def sync(
104
104
  ) -> Optional[Union[HTTPValidationError, PaginatedResponseWorkflowResponse]]:
105
105
  """List Workflows
106
106
 
107
- List all workflows for the authenticated user.
107
+ List all workflows for the authenticated organization.
108
108
 
109
109
  Supports pagination and returns workflows ordered by updated_at descending.
110
110
 
@@ -135,7 +135,7 @@ async def asyncio_detailed(
135
135
  ) -> Response[Union[HTTPValidationError, PaginatedResponseWorkflowResponse]]:
136
136
  """List Workflows
137
137
 
138
- List all workflows for the authenticated user.
138
+ List all workflows for the authenticated organization.
139
139
 
140
140
  Supports pagination and returns workflows ordered by updated_at descending.
141
141
 
@@ -169,7 +169,7 @@ async def asyncio(
169
169
  ) -> Optional[Union[HTTPValidationError, PaginatedResponseWorkflowResponse]]:
170
170
  """List Workflows
171
171
 
172
- List all workflows for the authenticated user.
172
+ List all workflows for the authenticated organization.
173
173
 
174
174
  Supports pagination and returns workflows ordered by updated_at descending.
175
175
 
@@ -72,7 +72,7 @@ def sync_detailed(
72
72
 
73
73
  The current version will be saved to the version history.
74
74
  Only the fields provided in the request body will be updated.
75
- The workflow must belong to the authenticated user.
75
+ The workflow must belong to the authenticated organization.
76
76
 
77
77
  Args:
78
78
  workflow_id (UUID):
@@ -110,7 +110,7 @@ def sync(
110
110
 
111
111
  The current version will be saved to the version history.
112
112
  Only the fields provided in the request body will be updated.
113
- The workflow must belong to the authenticated user.
113
+ The workflow must belong to the authenticated organization.
114
114
 
115
115
  Args:
116
116
  workflow_id (UUID):
@@ -143,7 +143,7 @@ async def asyncio_detailed(
143
143
 
144
144
  The current version will be saved to the version history.
145
145
  Only the fields provided in the request body will be updated.
146
- The workflow must belong to the authenticated user.
146
+ The workflow must belong to the authenticated organization.
147
147
 
148
148
  Args:
149
149
  workflow_id (UUID):
@@ -179,7 +179,7 @@ async def asyncio(
179
179
 
180
180
  The current version will be saved to the version history.
181
181
  Only the fields provided in the request body will be updated.
182
- The workflow must belong to the authenticated user.
182
+ The workflow must belong to the authenticated organization.
183
183
 
184
184
  Args:
185
185
  workflow_id (UUID):
@@ -32,6 +32,8 @@ from .http_validation_error import HTTPValidationError
32
32
  from .keyboard_key_request import KeyboardKeyRequest
33
33
  from .keyboard_type_request import KeyboardTypeRequest
34
34
  from .machine_create import MachineCreate
35
+ from .machine_pool_assignment import MachinePoolAssignment
36
+ from .machine_pool_update import MachinePoolUpdate
35
37
  from .machine_response import MachineResponse
36
38
  from .machine_status import MachineStatus
37
39
  from .machine_update import MachineUpdate
@@ -41,10 +43,15 @@ from .mouse_position import MousePosition
41
43
  from .paginated_response import PaginatedResponse
42
44
  from .paginated_response_connection_response import PaginatedResponseConnectionResponse
43
45
  from .paginated_response_machine_response import PaginatedResponseMachineResponse
46
+ from .paginated_response_pool_response import PaginatedResponsePoolResponse
44
47
  from .paginated_response_run_attachment_response import PaginatedResponseRunAttachmentResponse
45
48
  from .paginated_response_run_response import PaginatedResponseRunResponse
46
49
  from .paginated_response_trajectory_response import PaginatedResponseTrajectoryResponse
47
50
  from .paginated_response_workflow_response import PaginatedResponseWorkflowResponse
51
+ from .pool_create import PoolCreate
52
+ from .pool_response import PoolResponse
53
+ from .pool_update import PoolUpdate
54
+ from .pool_with_machines import PoolWithMachines
48
55
  from .power_shell_exec_request import PowerShellExecRequest
49
56
  from .power_shell_session_request import PowerShellSessionRequest
50
57
  from .powershell_exec_v1_computer_machine_id_shell_powershell_exec_post_response_powershell_exec_v1_computer_machine_id_shell_powershell_exec_post import (
@@ -109,6 +116,8 @@ __all__ = (
109
116
  "KeyboardKeyRequest",
110
117
  "KeyboardTypeRequest",
111
118
  "MachineCreate",
119
+ "MachinePoolAssignment",
120
+ "MachinePoolUpdate",
112
121
  "MachineResponse",
113
122
  "MachineStatus",
114
123
  "MachineUpdate",
@@ -118,10 +127,15 @@ __all__ = (
118
127
  "PaginatedResponse",
119
128
  "PaginatedResponseConnectionResponse",
120
129
  "PaginatedResponseMachineResponse",
130
+ "PaginatedResponsePoolResponse",
121
131
  "PaginatedResponseRunAttachmentResponse",
122
132
  "PaginatedResponseRunResponse",
123
133
  "PaginatedResponseTrajectoryResponse",
124
134
  "PaginatedResponseWorkflowResponse",
135
+ "PoolCreate",
136
+ "PoolResponse",
137
+ "PoolUpdate",
138
+ "PoolWithMachines",
125
139
  "PowerShellExecRequest",
126
140
  "PowershellExecV1ComputerMachineIdShellPowershellExecPostResponsePowershellExecV1ComputerMachineIdShellPowershellExecPost",
127
141
  "PowerShellSessionRequest",
@@ -0,0 +1,69 @@
1
+ from collections.abc import Mapping
2
+ from typing import Any, TypeVar
3
+ from uuid import UUID
4
+
5
+ from attrs import define as _attrs_define
6
+ from attrs import field as _attrs_field
7
+
8
+ T = TypeVar("T", bound="MachinePoolAssignment")
9
+
10
+
11
+ @_attrs_define
12
+ class MachinePoolAssignment:
13
+ """Schema for assigning machines to pools
14
+
15
+ Attributes:
16
+ machine_ids (list[UUID]): List of machine IDs to assign to the pool
17
+ """
18
+
19
+ machine_ids: list[UUID]
20
+ additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
21
+
22
+ def to_dict(self) -> dict[str, Any]:
23
+ machine_ids = []
24
+ for machine_ids_item_data in self.machine_ids:
25
+ machine_ids_item = str(machine_ids_item_data)
26
+ machine_ids.append(machine_ids_item)
27
+
28
+ field_dict: dict[str, Any] = {}
29
+ field_dict.update(self.additional_properties)
30
+ field_dict.update(
31
+ {
32
+ "machine_ids": machine_ids,
33
+ }
34
+ )
35
+
36
+ return field_dict
37
+
38
+ @classmethod
39
+ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
40
+ d = dict(src_dict)
41
+ machine_ids = []
42
+ _machine_ids = d.pop("machine_ids")
43
+ for machine_ids_item_data in _machine_ids:
44
+ machine_ids_item = UUID(machine_ids_item_data)
45
+
46
+ machine_ids.append(machine_ids_item)
47
+
48
+ machine_pool_assignment = cls(
49
+ machine_ids=machine_ids,
50
+ )
51
+
52
+ machine_pool_assignment.additional_properties = d
53
+ return machine_pool_assignment
54
+
55
+ @property
56
+ def additional_keys(self) -> list[str]:
57
+ return list(self.additional_properties.keys())
58
+
59
+ def __getitem__(self, key: str) -> Any:
60
+ return self.additional_properties[key]
61
+
62
+ def __setitem__(self, key: str, value: Any) -> None:
63
+ self.additional_properties[key] = value
64
+
65
+ def __delitem__(self, key: str) -> None:
66
+ del self.additional_properties[key]
67
+
68
+ def __contains__(self, key: str) -> bool:
69
+ return key in self.additional_properties
@@ -0,0 +1,69 @@
1
+ from collections.abc import Mapping
2
+ from typing import Any, TypeVar
3
+ from uuid import UUID
4
+
5
+ from attrs import define as _attrs_define
6
+ from attrs import field as _attrs_field
7
+
8
+ T = TypeVar("T", bound="MachinePoolUpdate")
9
+
10
+
11
+ @_attrs_define
12
+ class MachinePoolUpdate:
13
+ """Schema for updating a machine's pool assignments
14
+
15
+ Attributes:
16
+ pool_ids (list[UUID]): List of pool IDs to assign the machine to
17
+ """
18
+
19
+ pool_ids: list[UUID]
20
+ additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
21
+
22
+ def to_dict(self) -> dict[str, Any]:
23
+ pool_ids = []
24
+ for pool_ids_item_data in self.pool_ids:
25
+ pool_ids_item = str(pool_ids_item_data)
26
+ pool_ids.append(pool_ids_item)
27
+
28
+ field_dict: dict[str, Any] = {}
29
+ field_dict.update(self.additional_properties)
30
+ field_dict.update(
31
+ {
32
+ "pool_ids": pool_ids,
33
+ }
34
+ )
35
+
36
+ return field_dict
37
+
38
+ @classmethod
39
+ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
40
+ d = dict(src_dict)
41
+ pool_ids = []
42
+ _pool_ids = d.pop("pool_ids")
43
+ for pool_ids_item_data in _pool_ids:
44
+ pool_ids_item = UUID(pool_ids_item_data)
45
+
46
+ pool_ids.append(pool_ids_item)
47
+
48
+ machine_pool_update = cls(
49
+ pool_ids=pool_ids,
50
+ )
51
+
52
+ machine_pool_update.additional_properties = d
53
+ return machine_pool_update
54
+
55
+ @property
56
+ def additional_keys(self) -> list[str]:
57
+ return list(self.additional_properties.keys())
58
+
59
+ def __getitem__(self, key: str) -> Any:
60
+ return self.additional_properties[key]
61
+
62
+ def __setitem__(self, key: str, value: Any) -> None:
63
+ self.additional_properties[key] = value
64
+
65
+ def __delitem__(self, key: str) -> None:
66
+ del self.additional_properties[key]
67
+
68
+ def __contains__(self, key: str) -> bool:
69
+ return key in self.additional_properties