cyberdesk 2.0.0__py3-none-any.whl → 2.1.1__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 (33) hide show
  1. cyberdesk/__init__.py +1 -1
  2. cyberdesk/client.py +480 -25
  3. {cyberdesk-2.0.0.dist-info → cyberdesk-2.1.1.dist-info}/METADATA +1 -1
  4. {cyberdesk-2.0.0.dist-info → cyberdesk-2.1.1.dist-info}/RECORD +33 -16
  5. openapi_client/cyberdesk_cloud_client/api/machines/get_machine_pools_v1_machines_machine_id_pools_get.py +169 -0
  6. openapi_client/cyberdesk_cloud_client/api/machines/list_machines_v1_machines_get.py +53 -0
  7. openapi_client/cyberdesk_cloud_client/api/machines/update_machine_pools_v1_machines_machine_id_pools_put.py +190 -0
  8. openapi_client/cyberdesk_cloud_client/api/pools/__init__.py +1 -0
  9. openapi_client/cyberdesk_cloud_client/api/pools/add_machines_to_pool_v1_pools_pool_id_machines_post.py +186 -0
  10. openapi_client/cyberdesk_cloud_client/api/pools/create_pool_v1_pools_post.py +172 -0
  11. openapi_client/cyberdesk_cloud_client/api/pools/delete_pool_v1_pools_pool_id_delete.py +162 -0
  12. openapi_client/cyberdesk_cloud_client/api/pools/get_pool_v1_pools_pool_id_get.py +185 -0
  13. openapi_client/cyberdesk_cloud_client/api/pools/list_pools_v1_pools_get.py +186 -0
  14. openapi_client/cyberdesk_cloud_client/api/pools/remove_machines_from_pool_v1_pools_pool_id_machines_delete.py +184 -0
  15. openapi_client/cyberdesk_cloud_client/api/pools/update_pool_v1_pools_pool_id_patch.py +186 -0
  16. openapi_client/cyberdesk_cloud_client/api/runs/list_runs_v1_runs_get.py +53 -0
  17. openapi_client/cyberdesk_cloud_client/api/trajectories/list_trajectories_v1_trajectories_get.py +105 -0
  18. openapi_client/cyberdesk_cloud_client/api/workflows/list_workflows_v1_workflows_get.py +105 -0
  19. openapi_client/cyberdesk_cloud_client/models/__init__.py +14 -0
  20. openapi_client/cyberdesk_cloud_client/models/machine_pool_assignment.py +69 -0
  21. openapi_client/cyberdesk_cloud_client/models/machine_pool_update.py +69 -0
  22. openapi_client/cyberdesk_cloud_client/models/machine_response.py +46 -1
  23. openapi_client/cyberdesk_cloud_client/models/paginated_response_pool_response.py +97 -0
  24. openapi_client/cyberdesk_cloud_client/models/pool_create.py +82 -0
  25. openapi_client/cyberdesk_cloud_client/models/pool_response.py +137 -0
  26. openapi_client/cyberdesk_cloud_client/models/pool_update.py +92 -0
  27. openapi_client/cyberdesk_cloud_client/models/pool_with_machines.py +162 -0
  28. openapi_client/cyberdesk_cloud_client/models/run_bulk_create.py +40 -0
  29. openapi_client/cyberdesk_cloud_client/models/run_create.py +40 -0
  30. openapi_client/cyberdesk_cloud_client/models/run_response.py +39 -0
  31. {cyberdesk-2.0.0.dist-info → cyberdesk-2.1.1.dist-info}/WHEEL +0 -0
  32. {cyberdesk-2.0.0.dist-info → cyberdesk-2.1.1.dist-info}/licenses/LICENSE +0 -0
  33. {cyberdesk-2.0.0.dist-info → cyberdesk-2.1.1.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,186 @@
1
+ from http import HTTPStatus
2
+ from typing import Any, Optional, Union
3
+ from uuid import UUID
4
+
5
+ import httpx
6
+
7
+ from ... import errors
8
+ from ...client import AuthenticatedClient, Client
9
+ from ...models.http_validation_error import HTTPValidationError
10
+ from ...models.machine_pool_assignment import MachinePoolAssignment
11
+ from ...models.pool_with_machines import PoolWithMachines
12
+ from ...types import Response
13
+
14
+
15
+ def _get_kwargs(
16
+ pool_id: UUID,
17
+ *,
18
+ body: MachinePoolAssignment,
19
+ ) -> dict[str, Any]:
20
+ headers: dict[str, Any] = {}
21
+
22
+ _kwargs: dict[str, Any] = {
23
+ "method": "post",
24
+ "url": f"/v1/pools/{pool_id}/machines",
25
+ }
26
+
27
+ _kwargs["json"] = body.to_dict()
28
+
29
+ headers["Content-Type"] = "application/json"
30
+
31
+ _kwargs["headers"] = headers
32
+ return _kwargs
33
+
34
+
35
+ def _parse_response(
36
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
37
+ ) -> Optional[Union[HTTPValidationError, PoolWithMachines]]:
38
+ if response.status_code == 200:
39
+ response_200 = PoolWithMachines.from_dict(response.json())
40
+
41
+ return response_200
42
+ if response.status_code == 422:
43
+ response_422 = HTTPValidationError.from_dict(response.json())
44
+
45
+ return response_422
46
+ if client.raise_on_unexpected_status:
47
+ raise errors.UnexpectedStatus(response.status_code, response.content)
48
+ else:
49
+ return None
50
+
51
+
52
+ def _build_response(
53
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
54
+ ) -> Response[Union[HTTPValidationError, PoolWithMachines]]:
55
+ return Response(
56
+ status_code=HTTPStatus(response.status_code),
57
+ content=response.content,
58
+ headers=response.headers,
59
+ parsed=_parse_response(client=client, response=response),
60
+ )
61
+
62
+
63
+ def sync_detailed(
64
+ pool_id: UUID,
65
+ *,
66
+ client: AuthenticatedClient,
67
+ body: MachinePoolAssignment,
68
+ ) -> Response[Union[HTTPValidationError, PoolWithMachines]]:
69
+ """Add Machines To Pool
70
+
71
+ Add machines to a pool.
72
+
73
+ Args:
74
+ pool_id (UUID):
75
+ body (MachinePoolAssignment): Schema for assigning machines to pools
76
+
77
+ Raises:
78
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
79
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
80
+
81
+ Returns:
82
+ Response[Union[HTTPValidationError, PoolWithMachines]]
83
+ """
84
+
85
+ kwargs = _get_kwargs(
86
+ pool_id=pool_id,
87
+ body=body,
88
+ )
89
+
90
+ response = client.get_httpx_client().request(
91
+ **kwargs,
92
+ )
93
+
94
+ return _build_response(client=client, response=response)
95
+
96
+
97
+ def sync(
98
+ pool_id: UUID,
99
+ *,
100
+ client: AuthenticatedClient,
101
+ body: MachinePoolAssignment,
102
+ ) -> Optional[Union[HTTPValidationError, PoolWithMachines]]:
103
+ """Add Machines To Pool
104
+
105
+ Add machines to a pool.
106
+
107
+ Args:
108
+ pool_id (UUID):
109
+ body (MachinePoolAssignment): Schema for assigning machines to pools
110
+
111
+ Raises:
112
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
113
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
114
+
115
+ Returns:
116
+ Union[HTTPValidationError, PoolWithMachines]
117
+ """
118
+
119
+ return sync_detailed(
120
+ pool_id=pool_id,
121
+ client=client,
122
+ body=body,
123
+ ).parsed
124
+
125
+
126
+ async def asyncio_detailed(
127
+ pool_id: UUID,
128
+ *,
129
+ client: AuthenticatedClient,
130
+ body: MachinePoolAssignment,
131
+ ) -> Response[Union[HTTPValidationError, PoolWithMachines]]:
132
+ """Add Machines To Pool
133
+
134
+ Add machines to a pool.
135
+
136
+ Args:
137
+ pool_id (UUID):
138
+ body (MachinePoolAssignment): Schema for assigning machines to pools
139
+
140
+ Raises:
141
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
142
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
143
+
144
+ Returns:
145
+ Response[Union[HTTPValidationError, PoolWithMachines]]
146
+ """
147
+
148
+ kwargs = _get_kwargs(
149
+ pool_id=pool_id,
150
+ body=body,
151
+ )
152
+
153
+ response = await client.get_async_httpx_client().request(**kwargs)
154
+
155
+ return _build_response(client=client, response=response)
156
+
157
+
158
+ async def asyncio(
159
+ pool_id: UUID,
160
+ *,
161
+ client: AuthenticatedClient,
162
+ body: MachinePoolAssignment,
163
+ ) -> Optional[Union[HTTPValidationError, PoolWithMachines]]:
164
+ """Add Machines To Pool
165
+
166
+ Add machines to a pool.
167
+
168
+ Args:
169
+ pool_id (UUID):
170
+ body (MachinePoolAssignment): Schema for assigning machines to pools
171
+
172
+ Raises:
173
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
174
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
175
+
176
+ Returns:
177
+ Union[HTTPValidationError, PoolWithMachines]
178
+ """
179
+
180
+ return (
181
+ await asyncio_detailed(
182
+ pool_id=pool_id,
183
+ client=client,
184
+ body=body,
185
+ )
186
+ ).parsed
@@ -0,0 +1,172 @@
1
+ from http import HTTPStatus
2
+ from typing import Any, Optional, Union
3
+
4
+ import httpx
5
+
6
+ from ... import errors
7
+ from ...client import AuthenticatedClient, Client
8
+ from ...models.http_validation_error import HTTPValidationError
9
+ from ...models.pool_create import PoolCreate
10
+ from ...models.pool_response import PoolResponse
11
+ from ...types import Response
12
+
13
+
14
+ def _get_kwargs(
15
+ *,
16
+ body: PoolCreate,
17
+ ) -> dict[str, Any]:
18
+ headers: dict[str, Any] = {}
19
+
20
+ _kwargs: dict[str, Any] = {
21
+ "method": "post",
22
+ "url": "/v1/pools",
23
+ }
24
+
25
+ _kwargs["json"] = body.to_dict()
26
+
27
+ headers["Content-Type"] = "application/json"
28
+
29
+ _kwargs["headers"] = headers
30
+ return _kwargs
31
+
32
+
33
+ def _parse_response(
34
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
35
+ ) -> Optional[Union[HTTPValidationError, PoolResponse]]:
36
+ if response.status_code == 201:
37
+ response_201 = PoolResponse.from_dict(response.json())
38
+
39
+ return response_201
40
+ if response.status_code == 422:
41
+ response_422 = HTTPValidationError.from_dict(response.json())
42
+
43
+ return response_422
44
+ if client.raise_on_unexpected_status:
45
+ raise errors.UnexpectedStatus(response.status_code, response.content)
46
+ else:
47
+ return None
48
+
49
+
50
+ def _build_response(
51
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
52
+ ) -> Response[Union[HTTPValidationError, PoolResponse]]:
53
+ return Response(
54
+ status_code=HTTPStatus(response.status_code),
55
+ content=response.content,
56
+ headers=response.headers,
57
+ parsed=_parse_response(client=client, response=response),
58
+ )
59
+
60
+
61
+ def sync_detailed(
62
+ *,
63
+ client: AuthenticatedClient,
64
+ body: PoolCreate,
65
+ ) -> Response[Union[HTTPValidationError, PoolResponse]]:
66
+ """Create Pool
67
+
68
+ Create a new pool for organizing machines.
69
+
70
+ Args:
71
+ body (PoolCreate): Schema for creating a pool
72
+
73
+ Raises:
74
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
75
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
76
+
77
+ Returns:
78
+ Response[Union[HTTPValidationError, PoolResponse]]
79
+ """
80
+
81
+ kwargs = _get_kwargs(
82
+ body=body,
83
+ )
84
+
85
+ response = client.get_httpx_client().request(
86
+ **kwargs,
87
+ )
88
+
89
+ return _build_response(client=client, response=response)
90
+
91
+
92
+ def sync(
93
+ *,
94
+ client: AuthenticatedClient,
95
+ body: PoolCreate,
96
+ ) -> Optional[Union[HTTPValidationError, PoolResponse]]:
97
+ """Create Pool
98
+
99
+ Create a new pool for organizing machines.
100
+
101
+ Args:
102
+ body (PoolCreate): Schema for creating a pool
103
+
104
+ Raises:
105
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
106
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
107
+
108
+ Returns:
109
+ Union[HTTPValidationError, PoolResponse]
110
+ """
111
+
112
+ return sync_detailed(
113
+ client=client,
114
+ body=body,
115
+ ).parsed
116
+
117
+
118
+ async def asyncio_detailed(
119
+ *,
120
+ client: AuthenticatedClient,
121
+ body: PoolCreate,
122
+ ) -> Response[Union[HTTPValidationError, PoolResponse]]:
123
+ """Create Pool
124
+
125
+ Create a new pool for organizing machines.
126
+
127
+ Args:
128
+ body (PoolCreate): Schema for creating a pool
129
+
130
+ Raises:
131
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
132
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
133
+
134
+ Returns:
135
+ Response[Union[HTTPValidationError, PoolResponse]]
136
+ """
137
+
138
+ kwargs = _get_kwargs(
139
+ body=body,
140
+ )
141
+
142
+ response = await client.get_async_httpx_client().request(**kwargs)
143
+
144
+ return _build_response(client=client, response=response)
145
+
146
+
147
+ async def asyncio(
148
+ *,
149
+ client: AuthenticatedClient,
150
+ body: PoolCreate,
151
+ ) -> Optional[Union[HTTPValidationError, PoolResponse]]:
152
+ """Create Pool
153
+
154
+ Create a new pool for organizing machines.
155
+
156
+ Args:
157
+ body (PoolCreate): Schema for creating a pool
158
+
159
+ Raises:
160
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
161
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
162
+
163
+ Returns:
164
+ Union[HTTPValidationError, PoolResponse]
165
+ """
166
+
167
+ return (
168
+ await asyncio_detailed(
169
+ client=client,
170
+ body=body,
171
+ )
172
+ ).parsed
@@ -0,0 +1,162 @@
1
+ from http import HTTPStatus
2
+ from typing import Any, Optional, Union, cast
3
+ from uuid import UUID
4
+
5
+ import httpx
6
+
7
+ from ... import errors
8
+ from ...client import AuthenticatedClient, Client
9
+ from ...models.http_validation_error import HTTPValidationError
10
+ from ...types import Response
11
+
12
+
13
+ def _get_kwargs(
14
+ pool_id: UUID,
15
+ ) -> dict[str, Any]:
16
+ _kwargs: dict[str, Any] = {
17
+ "method": "delete",
18
+ "url": f"/v1/pools/{pool_id}",
19
+ }
20
+
21
+ return _kwargs
22
+
23
+
24
+ def _parse_response(
25
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
26
+ ) -> Optional[Union[Any, HTTPValidationError]]:
27
+ if response.status_code == 204:
28
+ response_204 = cast(Any, None)
29
+ return response_204
30
+ if response.status_code == 422:
31
+ response_422 = HTTPValidationError.from_dict(response.json())
32
+
33
+ return response_422
34
+ if client.raise_on_unexpected_status:
35
+ raise errors.UnexpectedStatus(response.status_code, response.content)
36
+ else:
37
+ return None
38
+
39
+
40
+ def _build_response(
41
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
42
+ ) -> Response[Union[Any, HTTPValidationError]]:
43
+ return Response(
44
+ status_code=HTTPStatus(response.status_code),
45
+ content=response.content,
46
+ headers=response.headers,
47
+ parsed=_parse_response(client=client, response=response),
48
+ )
49
+
50
+
51
+ def sync_detailed(
52
+ pool_id: UUID,
53
+ *,
54
+ client: AuthenticatedClient,
55
+ ) -> Response[Union[Any, HTTPValidationError]]:
56
+ """Delete Pool
57
+
58
+ Delete a pool. This will not delete the machines in the pool.
59
+
60
+ Args:
61
+ pool_id (UUID):
62
+
63
+ Raises:
64
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
65
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
66
+
67
+ Returns:
68
+ Response[Union[Any, HTTPValidationError]]
69
+ """
70
+
71
+ kwargs = _get_kwargs(
72
+ pool_id=pool_id,
73
+ )
74
+
75
+ response = client.get_httpx_client().request(
76
+ **kwargs,
77
+ )
78
+
79
+ return _build_response(client=client, response=response)
80
+
81
+
82
+ def sync(
83
+ pool_id: UUID,
84
+ *,
85
+ client: AuthenticatedClient,
86
+ ) -> Optional[Union[Any, HTTPValidationError]]:
87
+ """Delete Pool
88
+
89
+ Delete a pool. This will not delete the machines in the pool.
90
+
91
+ Args:
92
+ pool_id (UUID):
93
+
94
+ Raises:
95
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
96
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
97
+
98
+ Returns:
99
+ Union[Any, HTTPValidationError]
100
+ """
101
+
102
+ return sync_detailed(
103
+ pool_id=pool_id,
104
+ client=client,
105
+ ).parsed
106
+
107
+
108
+ async def asyncio_detailed(
109
+ pool_id: UUID,
110
+ *,
111
+ client: AuthenticatedClient,
112
+ ) -> Response[Union[Any, HTTPValidationError]]:
113
+ """Delete Pool
114
+
115
+ Delete a pool. This will not delete the machines in the pool.
116
+
117
+ Args:
118
+ pool_id (UUID):
119
+
120
+ Raises:
121
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
122
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
123
+
124
+ Returns:
125
+ Response[Union[Any, HTTPValidationError]]
126
+ """
127
+
128
+ kwargs = _get_kwargs(
129
+ pool_id=pool_id,
130
+ )
131
+
132
+ response = await client.get_async_httpx_client().request(**kwargs)
133
+
134
+ return _build_response(client=client, response=response)
135
+
136
+
137
+ async def asyncio(
138
+ pool_id: UUID,
139
+ *,
140
+ client: AuthenticatedClient,
141
+ ) -> Optional[Union[Any, HTTPValidationError]]:
142
+ """Delete Pool
143
+
144
+ Delete a pool. This will not delete the machines in the pool.
145
+
146
+ Args:
147
+ pool_id (UUID):
148
+
149
+ Raises:
150
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
151
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
152
+
153
+ Returns:
154
+ Union[Any, HTTPValidationError]
155
+ """
156
+
157
+ return (
158
+ await asyncio_detailed(
159
+ pool_id=pool_id,
160
+ client=client,
161
+ )
162
+ ).parsed
@@ -0,0 +1,185 @@
1
+ from http import HTTPStatus
2
+ from typing import Any, Optional, Union
3
+ from uuid import UUID
4
+
5
+ import httpx
6
+
7
+ from ... import errors
8
+ from ...client import AuthenticatedClient, Client
9
+ from ...models.http_validation_error import HTTPValidationError
10
+ from ...models.pool_with_machines import PoolWithMachines
11
+ from ...types import UNSET, Response, Unset
12
+
13
+
14
+ def _get_kwargs(
15
+ pool_id: UUID,
16
+ *,
17
+ include_machines: Union[Unset, bool] = False,
18
+ ) -> dict[str, Any]:
19
+ params: dict[str, Any] = {}
20
+
21
+ params["include_machines"] = include_machines
22
+
23
+ params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
24
+
25
+ _kwargs: dict[str, Any] = {
26
+ "method": "get",
27
+ "url": f"/v1/pools/{pool_id}",
28
+ "params": params,
29
+ }
30
+
31
+ return _kwargs
32
+
33
+
34
+ def _parse_response(
35
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
36
+ ) -> Optional[Union[HTTPValidationError, PoolWithMachines]]:
37
+ if response.status_code == 200:
38
+ response_200 = PoolWithMachines.from_dict(response.json())
39
+
40
+ return response_200
41
+ if response.status_code == 422:
42
+ response_422 = HTTPValidationError.from_dict(response.json())
43
+
44
+ return response_422
45
+ if client.raise_on_unexpected_status:
46
+ raise errors.UnexpectedStatus(response.status_code, response.content)
47
+ else:
48
+ return None
49
+
50
+
51
+ def _build_response(
52
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
53
+ ) -> Response[Union[HTTPValidationError, PoolWithMachines]]:
54
+ return Response(
55
+ status_code=HTTPStatus(response.status_code),
56
+ content=response.content,
57
+ headers=response.headers,
58
+ parsed=_parse_response(client=client, response=response),
59
+ )
60
+
61
+
62
+ def sync_detailed(
63
+ pool_id: UUID,
64
+ *,
65
+ client: AuthenticatedClient,
66
+ include_machines: Union[Unset, bool] = False,
67
+ ) -> Response[Union[HTTPValidationError, PoolWithMachines]]:
68
+ """Get Pool
69
+
70
+ Get a specific pool by ID.
71
+
72
+ Args:
73
+ pool_id (UUID):
74
+ include_machines (Union[Unset, bool]): Include full machine details Default: False.
75
+
76
+ Raises:
77
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
78
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
79
+
80
+ Returns:
81
+ Response[Union[HTTPValidationError, PoolWithMachines]]
82
+ """
83
+
84
+ kwargs = _get_kwargs(
85
+ pool_id=pool_id,
86
+ include_machines=include_machines,
87
+ )
88
+
89
+ response = client.get_httpx_client().request(
90
+ **kwargs,
91
+ )
92
+
93
+ return _build_response(client=client, response=response)
94
+
95
+
96
+ def sync(
97
+ pool_id: UUID,
98
+ *,
99
+ client: AuthenticatedClient,
100
+ include_machines: Union[Unset, bool] = False,
101
+ ) -> Optional[Union[HTTPValidationError, PoolWithMachines]]:
102
+ """Get Pool
103
+
104
+ Get a specific pool by ID.
105
+
106
+ Args:
107
+ pool_id (UUID):
108
+ include_machines (Union[Unset, bool]): Include full machine details Default: False.
109
+
110
+ Raises:
111
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
112
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
113
+
114
+ Returns:
115
+ Union[HTTPValidationError, PoolWithMachines]
116
+ """
117
+
118
+ return sync_detailed(
119
+ pool_id=pool_id,
120
+ client=client,
121
+ include_machines=include_machines,
122
+ ).parsed
123
+
124
+
125
+ async def asyncio_detailed(
126
+ pool_id: UUID,
127
+ *,
128
+ client: AuthenticatedClient,
129
+ include_machines: Union[Unset, bool] = False,
130
+ ) -> Response[Union[HTTPValidationError, PoolWithMachines]]:
131
+ """Get Pool
132
+
133
+ Get a specific pool by ID.
134
+
135
+ Args:
136
+ pool_id (UUID):
137
+ include_machines (Union[Unset, bool]): Include full machine details Default: False.
138
+
139
+ Raises:
140
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
141
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
142
+
143
+ Returns:
144
+ Response[Union[HTTPValidationError, PoolWithMachines]]
145
+ """
146
+
147
+ kwargs = _get_kwargs(
148
+ pool_id=pool_id,
149
+ include_machines=include_machines,
150
+ )
151
+
152
+ response = await client.get_async_httpx_client().request(**kwargs)
153
+
154
+ return _build_response(client=client, response=response)
155
+
156
+
157
+ async def asyncio(
158
+ pool_id: UUID,
159
+ *,
160
+ client: AuthenticatedClient,
161
+ include_machines: Union[Unset, bool] = False,
162
+ ) -> Optional[Union[HTTPValidationError, PoolWithMachines]]:
163
+ """Get Pool
164
+
165
+ Get a specific pool by ID.
166
+
167
+ Args:
168
+ pool_id (UUID):
169
+ include_machines (Union[Unset, bool]): Include full machine details Default: False.
170
+
171
+ Raises:
172
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
173
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
174
+
175
+ Returns:
176
+ Union[HTTPValidationError, PoolWithMachines]
177
+ """
178
+
179
+ return (
180
+ await asyncio_detailed(
181
+ pool_id=pool_id,
182
+ client=client,
183
+ include_machines=include_machines,
184
+ )
185
+ ).parsed