Skip to content

Commit 21bb2b7

Browse files
fix(api): update flags
1 parent e6391a9 commit 21bb2b7

12 files changed

Lines changed: 12 additions & 78 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 26
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/dedalus-labs%2Fdedalus-84687ee364ddeca6ec1b5fbdf76e963742510546eaae034f2f91e267f01a602b.yml
3-
openapi_spec_hash: 786533d89dc628e4204edb93c77ec90a
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/dedalus-labs%2Fdedalus-8209ddf6d2b12680c9d569e68ad89c347a59dcad5de4b2e5144ab9e2d6a41cbf.yml
3+
openapi_spec_hash: 220a31347115af6017c6d2e7555343c3
44
config_hash: fb47c588a6508182e3ec9a32bae478ae

README.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ client = Dedalus(
4242
)
4343

4444
workspace = client.workspaces.create(
45-
image_version="noble@golden",
4645
memory_mib=2048,
4746
storage_gib=10,
4847
vcpu=1,
@@ -71,7 +70,6 @@ client = AsyncDedalus(
7170

7271
async def main() -> None:
7372
workspace = await client.workspaces.create(
74-
image_version="noble@golden",
7573
memory_mib=2048,
7674
storage_gib=10,
7775
vcpu=1,
@@ -110,7 +108,6 @@ async def main() -> None:
110108
http_client=DefaultAioHttpClient(),
111109
) as client:
112110
workspace = await client.workspaces.create(
113-
image_version="noble@golden",
114111
memory_mib=2048,
115112
storage_gib=10,
116113
vcpu=1,
@@ -210,7 +207,6 @@ client = Dedalus()
210207

211208
try:
212209
client.workspaces.create(
213-
image_version="noble@golden",
214210
memory_mib=2048,
215211
storage_gib=10,
216212
vcpu=1,
@@ -258,7 +254,6 @@ client = Dedalus(
258254

259255
# Or, configure per-request:
260256
client.with_options(max_retries=5).workspaces.create(
261-
image_version="noble@golden",
262257
memory_mib=2048,
263258
storage_gib=10,
264259
vcpu=1,
@@ -286,7 +281,6 @@ client = Dedalus(
286281

287282
# Override per-request:
288283
client.with_options(timeout=5.0).workspaces.create(
289-
image_version="noble@golden",
290284
memory_mib=2048,
291285
storage_gib=10,
292286
vcpu=1,
@@ -332,7 +326,6 @@ from dedalus_sdk import Dedalus
332326

333327
client = Dedalus()
334328
response = client.workspaces.with_raw_response.create(
335-
image_version="noble@golden",
336329
memory_mib=2048,
337330
storage_gib=10,
338331
vcpu=1,
@@ -355,7 +348,6 @@ To stream the response body, use `.with_streaming_response` instead, which requi
355348

356349
```python
357350
with client.workspaces.with_streaming_response.create(
358-
image_version="noble@golden",
359351
memory_mib=2048,
360352
storage_gib=10,
361353
vcpu=1,

src/dedalus_sdk/resources/workspaces/executions.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ def create(
5151
workspace_id: str,
5252
*,
5353
command: Optional[SequenceNotStr[str]],
54-
capture_paths: Optional[SequenceNotStr[str]] | Omit = omit,
5554
cwd: str | Omit = omit,
5655
env: Dict[str, str] | Omit = omit,
5756
stdin: str | Omit = omit,
@@ -86,7 +85,6 @@ def create(
8685
body=maybe_transform(
8786
{
8887
"command": command,
89-
"capture_paths": capture_paths,
9088
"cwd": cwd,
9189
"env": env,
9290
"stdin": stdin,
@@ -341,7 +339,6 @@ async def create(
341339
workspace_id: str,
342340
*,
343341
command: Optional[SequenceNotStr[str]],
344-
capture_paths: Optional[SequenceNotStr[str]] | Omit = omit,
345342
cwd: str | Omit = omit,
346343
env: Dict[str, str] | Omit = omit,
347344
stdin: str | Omit = omit,
@@ -376,7 +373,6 @@ async def create(
376373
body=await async_maybe_transform(
377374
{
378375
"command": command,
379-
"capture_paths": capture_paths,
380376
"cwd": cwd,
381377
"env": env,
382378
"stdin": stdin,

src/dedalus_sdk/resources/workspaces/workspaces.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ def with_streaming_response(self) -> WorkspacesResourceWithStreamingResponse:
106106
def create(
107107
self,
108108
*,
109-
image_version: str,
110109
memory_mib: int,
111110
storage_gib: int,
112111
vcpu: float,
@@ -140,7 +139,6 @@ def create(
140139
"/v1/workspaces",
141140
body=maybe_transform(
142141
{
143-
"image_version": image_version,
144142
"memory_mib": memory_mib,
145143
"storage_gib": storage_gib,
146144
"vcpu": vcpu,
@@ -376,7 +374,6 @@ def with_streaming_response(self) -> AsyncWorkspacesResourceWithStreamingRespons
376374
async def create(
377375
self,
378376
*,
379-
image_version: str,
380377
memory_mib: int,
381378
storage_gib: int,
382379
vcpu: float,
@@ -410,7 +407,6 @@ async def create(
410407
"/v1/workspaces",
411408
body=await async_maybe_transform(
412409
{
413-
"image_version": image_version,
414410
"memory_mib": memory_mib,
415411
"storage_gib": storage_gib,
416412
"vcpu": vcpu,

src/dedalus_sdk/types/lifecycle_status.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ class LifecycleStatus(BaseModel):
1414

1515
last_transition_at: datetime
1616

17-
observed_revision: str
18-
1917
phase: Literal[
2018
"accepted",
2119
"placement_pending",
@@ -34,12 +32,4 @@ class LifecycleStatus(BaseModel):
3432

3533
revision: str
3634

37-
assigned_host: Optional[str] = None
38-
3935
last_error: Optional[str] = None
40-
41-
memory_assigned_mib: Optional[int] = None
42-
43-
memory_resize_state: Optional[str] = None
44-
45-
memory_target_mib: Optional[int] = None

src/dedalus_sdk/types/workspace.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,3 @@ class Workspace(BaseModel):
2828

2929
schema_: Optional[str] = FieldInfo(alias="$schema", default=None)
3030
"""A URL to the JSON Schema for this object."""
31-
32-
image_version: Optional[str] = None

src/dedalus_sdk/types/workspace_create_params.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88

99

1010
class WorkspaceCreateParams(TypedDict, total=False):
11-
image_version: Required[str]
12-
1311
memory_mib: Required[int]
1412
"""Memory in MiB."""
1513

src/dedalus_sdk/types/workspace_list.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ class Item(BaseModel):
2929

3030
workspace_id: str
3131

32-
image_version: Optional[str] = None
33-
3432

3533
class WorkspaceList(BaseModel):
3634
items: Optional[List[Item]] = None

src/dedalus_sdk/types/workspaces/execution_create_params.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
class ExecutionCreateParams(TypedDict, total=False):
1414
command: Required[Optional[SequenceNotStr[str]]]
1515

16-
capture_paths: Optional[SequenceNotStr[str]]
17-
1816
cwd: str
1917

2018
env: Dict[str, str]

tests/api_resources/test_workspaces.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ class TestWorkspaces:
2222
@parametrize
2323
def test_method_create(self, client: Dedalus) -> None:
2424
workspace = client.workspaces.create(
25-
image_version="image_version",
2625
memory_mib=0,
2726
storage_gib=0,
2827
vcpu=0,
@@ -32,7 +31,6 @@ def test_method_create(self, client: Dedalus) -> None:
3231
@parametrize
3332
def test_raw_response_create(self, client: Dedalus) -> None:
3433
response = client.workspaces.with_raw_response.create(
35-
image_version="image_version",
3634
memory_mib=0,
3735
storage_gib=0,
3836
vcpu=0,
@@ -46,7 +44,6 @@ def test_raw_response_create(self, client: Dedalus) -> None:
4644
@parametrize
4745
def test_streaming_response_create(self, client: Dedalus) -> None:
4846
with client.workspaces.with_streaming_response.create(
49-
image_version="image_version",
5047
memory_mib=0,
5148
storage_gib=0,
5249
vcpu=0,
@@ -234,7 +231,6 @@ class TestAsyncWorkspaces:
234231
@parametrize
235232
async def test_method_create(self, async_client: AsyncDedalus) -> None:
236233
workspace = await async_client.workspaces.create(
237-
image_version="image_version",
238234
memory_mib=0,
239235
storage_gib=0,
240236
vcpu=0,
@@ -244,7 +240,6 @@ async def test_method_create(self, async_client: AsyncDedalus) -> None:
244240
@parametrize
245241
async def test_raw_response_create(self, async_client: AsyncDedalus) -> None:
246242
response = await async_client.workspaces.with_raw_response.create(
247-
image_version="image_version",
248243
memory_mib=0,
249244
storage_gib=0,
250245
vcpu=0,
@@ -258,7 +253,6 @@ async def test_raw_response_create(self, async_client: AsyncDedalus) -> None:
258253
@parametrize
259254
async def test_streaming_response_create(self, async_client: AsyncDedalus) -> None:
260255
async with async_client.workspaces.with_streaming_response.create(
261-
image_version="image_version",
262256
memory_mib=0,
263257
storage_gib=0,
264258
vcpu=0,

0 commit comments

Comments
 (0)