together 2.0.0a16__py3-none-any.whl → 2.0.0a18__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.
- together/_base_client.py +5 -2
- together/_client.py +1 -39
- together/_compat.py +3 -3
- together/_utils/_json.py +35 -0
- together/_version.py +1 -1
- together/lib/cli/api/endpoints/create.py +14 -8
- together/lib/cli/api/endpoints/hardware.py +37 -6
- together/lib/cli/api/models/list.py +18 -14
- together/lib/cli/api/models/upload.py +5 -1
- together/resources/__init__.py +0 -14
- together/resources/beta/__init__.py +14 -0
- together/resources/beta/beta.py +32 -0
- together/resources/beta/clusters/clusters.py +12 -12
- together/resources/beta/clusters/storage.py +10 -10
- together/resources/beta/jig/__init__.py +61 -0
- together/resources/beta/jig/jig.py +1024 -0
- together/resources/beta/jig/queue.py +482 -0
- together/resources/beta/jig/secrets.py +548 -0
- together/resources/beta/jig/volumes.py +514 -0
- together/resources/chat/completions.py +10 -0
- together/resources/endpoints.py +2 -2
- together/resources/models/__init__.py +33 -0
- together/resources/{models.py → models/models.py} +41 -9
- together/resources/models/uploads.py +163 -0
- together/types/__init__.py +0 -2
- together/types/beta/__init__.py +6 -0
- together/types/beta/deployment.py +261 -0
- together/types/beta/deployment_logs.py +11 -0
- together/types/beta/jig/__init__.py +20 -0
- together/types/beta/jig/queue_cancel_params.py +13 -0
- together/types/beta/jig/queue_cancel_response.py +11 -0
- together/types/beta/jig/queue_metrics_params.py +12 -0
- together/types/beta/jig/queue_metrics_response.py +8 -0
- together/types/beta/jig/queue_retrieve_params.py +15 -0
- together/types/beta/jig/queue_retrieve_response.py +35 -0
- together/types/beta/jig/queue_submit_params.py +19 -0
- together/types/beta/jig/queue_submit_response.py +25 -0
- together/types/beta/jig/secret.py +33 -0
- together/types/beta/jig/secret_create_params.py +34 -0
- together/types/beta/jig/secret_list_response.py +16 -0
- together/types/beta/jig/secret_update_params.py +34 -0
- together/types/beta/jig/volume.py +47 -0
- together/types/beta/jig/volume_create_params.py +34 -0
- together/types/beta/jig/volume_list_response.py +16 -0
- together/types/beta/jig/volume_update_params.py +34 -0
- together/types/beta/jig_deploy_params.py +150 -0
- together/types/beta/jig_list_response.py +16 -0
- together/types/beta/jig_retrieve_logs_params.py +15 -0
- together/types/beta/jig_update_params.py +141 -0
- together/types/chat/completion_create_params.py +11 -0
- together/types/endpoint_create_params.py +1 -1
- together/types/models/__init__.py +5 -0
- together/types/{job_retrieve_response.py → models/upload_status_response.py} +3 -3
- {together-2.0.0a16.dist-info → together-2.0.0a18.dist-info}/METADATA +11 -14
- {together-2.0.0a16.dist-info → together-2.0.0a18.dist-info}/RECORD +58 -28
- together/resources/jobs.py +0 -214
- together/types/job_list_response.py +0 -47
- {together-2.0.0a16.dist-info → together-2.0.0a18.dist-info}/WHEEL +0 -0
- {together-2.0.0a16.dist-info → together-2.0.0a18.dist-info}/entry_points.txt +0 -0
- {together-2.0.0a16.dist-info → together-2.0.0a18.dist-info}/licenses/LICENSE +0 -0
|
@@ -77,7 +77,7 @@ class StorageResource(SyncAPIResource):
|
|
|
77
77
|
timeout: Override the client-level default timeout for this request, in seconds
|
|
78
78
|
"""
|
|
79
79
|
return self._post(
|
|
80
|
-
"/clusters/
|
|
80
|
+
"/compute/clusters/storage/volumes",
|
|
81
81
|
body=maybe_transform(
|
|
82
82
|
{
|
|
83
83
|
"region": region,
|
|
@@ -118,7 +118,7 @@ class StorageResource(SyncAPIResource):
|
|
|
118
118
|
if not volume_id:
|
|
119
119
|
raise ValueError(f"Expected a non-empty value for `volume_id` but received {volume_id!r}")
|
|
120
120
|
return self._get(
|
|
121
|
-
f"/clusters/
|
|
121
|
+
f"/compute/clusters/storage/volumes/{volume_id}",
|
|
122
122
|
options=make_request_options(
|
|
123
123
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
124
124
|
),
|
|
@@ -150,7 +150,7 @@ class StorageResource(SyncAPIResource):
|
|
|
150
150
|
timeout: Override the client-level default timeout for this request, in seconds
|
|
151
151
|
"""
|
|
152
152
|
return self._put(
|
|
153
|
-
"/clusters/
|
|
153
|
+
"/compute/clusters/storage/volumes",
|
|
154
154
|
body=maybe_transform(
|
|
155
155
|
{
|
|
156
156
|
"size_tib": size_tib,
|
|
@@ -176,7 +176,7 @@ class StorageResource(SyncAPIResource):
|
|
|
176
176
|
) -> StorageListResponse:
|
|
177
177
|
"""List all shared volumes."""
|
|
178
178
|
return self._get(
|
|
179
|
-
"/clusters/
|
|
179
|
+
"/compute/clusters/storage/volumes",
|
|
180
180
|
options=make_request_options(
|
|
181
181
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
182
182
|
),
|
|
@@ -211,7 +211,7 @@ class StorageResource(SyncAPIResource):
|
|
|
211
211
|
if not volume_id:
|
|
212
212
|
raise ValueError(f"Expected a non-empty value for `volume_id` but received {volume_id!r}")
|
|
213
213
|
return self._delete(
|
|
214
|
-
f"/clusters/
|
|
214
|
+
f"/compute/clusters/storage/volumes/{volume_id}",
|
|
215
215
|
options=make_request_options(
|
|
216
216
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
217
217
|
),
|
|
@@ -273,7 +273,7 @@ class AsyncStorageResource(AsyncAPIResource):
|
|
|
273
273
|
timeout: Override the client-level default timeout for this request, in seconds
|
|
274
274
|
"""
|
|
275
275
|
return await self._post(
|
|
276
|
-
"/clusters/
|
|
276
|
+
"/compute/clusters/storage/volumes",
|
|
277
277
|
body=await async_maybe_transform(
|
|
278
278
|
{
|
|
279
279
|
"region": region,
|
|
@@ -314,7 +314,7 @@ class AsyncStorageResource(AsyncAPIResource):
|
|
|
314
314
|
if not volume_id:
|
|
315
315
|
raise ValueError(f"Expected a non-empty value for `volume_id` but received {volume_id!r}")
|
|
316
316
|
return await self._get(
|
|
317
|
-
f"/clusters/
|
|
317
|
+
f"/compute/clusters/storage/volumes/{volume_id}",
|
|
318
318
|
options=make_request_options(
|
|
319
319
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
320
320
|
),
|
|
@@ -346,7 +346,7 @@ class AsyncStorageResource(AsyncAPIResource):
|
|
|
346
346
|
timeout: Override the client-level default timeout for this request, in seconds
|
|
347
347
|
"""
|
|
348
348
|
return await self._put(
|
|
349
|
-
"/clusters/
|
|
349
|
+
"/compute/clusters/storage/volumes",
|
|
350
350
|
body=await async_maybe_transform(
|
|
351
351
|
{
|
|
352
352
|
"size_tib": size_tib,
|
|
@@ -372,7 +372,7 @@ class AsyncStorageResource(AsyncAPIResource):
|
|
|
372
372
|
) -> StorageListResponse:
|
|
373
373
|
"""List all shared volumes."""
|
|
374
374
|
return await self._get(
|
|
375
|
-
"/clusters/
|
|
375
|
+
"/compute/clusters/storage/volumes",
|
|
376
376
|
options=make_request_options(
|
|
377
377
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
378
378
|
),
|
|
@@ -407,7 +407,7 @@ class AsyncStorageResource(AsyncAPIResource):
|
|
|
407
407
|
if not volume_id:
|
|
408
408
|
raise ValueError(f"Expected a non-empty value for `volume_id` but received {volume_id!r}")
|
|
409
409
|
return await self._delete(
|
|
410
|
-
f"/clusters/
|
|
410
|
+
f"/compute/clusters/storage/volumes/{volume_id}",
|
|
411
411
|
options=make_request_options(
|
|
412
412
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
413
413
|
),
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from .jig import (
|
|
4
|
+
JigResource,
|
|
5
|
+
AsyncJigResource,
|
|
6
|
+
JigResourceWithRawResponse,
|
|
7
|
+
AsyncJigResourceWithRawResponse,
|
|
8
|
+
JigResourceWithStreamingResponse,
|
|
9
|
+
AsyncJigResourceWithStreamingResponse,
|
|
10
|
+
)
|
|
11
|
+
from .queue import (
|
|
12
|
+
QueueResource,
|
|
13
|
+
AsyncQueueResource,
|
|
14
|
+
QueueResourceWithRawResponse,
|
|
15
|
+
AsyncQueueResourceWithRawResponse,
|
|
16
|
+
QueueResourceWithStreamingResponse,
|
|
17
|
+
AsyncQueueResourceWithStreamingResponse,
|
|
18
|
+
)
|
|
19
|
+
from .secrets import (
|
|
20
|
+
SecretsResource,
|
|
21
|
+
AsyncSecretsResource,
|
|
22
|
+
SecretsResourceWithRawResponse,
|
|
23
|
+
AsyncSecretsResourceWithRawResponse,
|
|
24
|
+
SecretsResourceWithStreamingResponse,
|
|
25
|
+
AsyncSecretsResourceWithStreamingResponse,
|
|
26
|
+
)
|
|
27
|
+
from .volumes import (
|
|
28
|
+
VolumesResource,
|
|
29
|
+
AsyncVolumesResource,
|
|
30
|
+
VolumesResourceWithRawResponse,
|
|
31
|
+
AsyncVolumesResourceWithRawResponse,
|
|
32
|
+
VolumesResourceWithStreamingResponse,
|
|
33
|
+
AsyncVolumesResourceWithStreamingResponse,
|
|
34
|
+
)
|
|
35
|
+
|
|
36
|
+
__all__ = [
|
|
37
|
+
"QueueResource",
|
|
38
|
+
"AsyncQueueResource",
|
|
39
|
+
"QueueResourceWithRawResponse",
|
|
40
|
+
"AsyncQueueResourceWithRawResponse",
|
|
41
|
+
"QueueResourceWithStreamingResponse",
|
|
42
|
+
"AsyncQueueResourceWithStreamingResponse",
|
|
43
|
+
"VolumesResource",
|
|
44
|
+
"AsyncVolumesResource",
|
|
45
|
+
"VolumesResourceWithRawResponse",
|
|
46
|
+
"AsyncVolumesResourceWithRawResponse",
|
|
47
|
+
"VolumesResourceWithStreamingResponse",
|
|
48
|
+
"AsyncVolumesResourceWithStreamingResponse",
|
|
49
|
+
"SecretsResource",
|
|
50
|
+
"AsyncSecretsResource",
|
|
51
|
+
"SecretsResourceWithRawResponse",
|
|
52
|
+
"AsyncSecretsResourceWithRawResponse",
|
|
53
|
+
"SecretsResourceWithStreamingResponse",
|
|
54
|
+
"AsyncSecretsResourceWithStreamingResponse",
|
|
55
|
+
"JigResource",
|
|
56
|
+
"AsyncJigResource",
|
|
57
|
+
"JigResourceWithRawResponse",
|
|
58
|
+
"AsyncJigResourceWithRawResponse",
|
|
59
|
+
"JigResourceWithStreamingResponse",
|
|
60
|
+
"AsyncJigResourceWithStreamingResponse",
|
|
61
|
+
]
|