Skip to content

Commit ffb1036

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): OpenAPI spec update via Stainless API (#177)
1 parent 2f99fad commit ffb1036

31 files changed

Lines changed: 234 additions & 280 deletions

‎.stats.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 26
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-72d3aa191a9b7af61f359257e03889f6b43923cac4d186e5075aa1a696dd38ff.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-b3591c2e7b147a5cea5bdfa2e31bdc3647d3a4c66e922c146e7cf6181fbdde72.yml

‎src/runloop_api_client/resources/blueprints.py‎

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@ def with_streaming_response(self) -> BlueprintsResourceWithStreamingResponse:
5353
def create(
5454
self,
5555
*,
56-
name: str,
5756
code_mounts: Iterable[CodeMountParametersParam] | NotGiven = NOT_GIVEN,
5857
dockerfile: str | NotGiven = NOT_GIVEN,
5958
file_mounts: Dict[str, str] | NotGiven = NOT_GIVEN,
6059
launch_parameters: blueprint_create_params.LaunchParameters | NotGiven = NOT_GIVEN,
60+
name: str | NotGiven = NOT_GIVEN,
6161
system_setup_commands: List[str] | NotGiven = NOT_GIVEN,
6262
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
6363
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -73,8 +73,6 @@ def create(
7373
ready.
7474
7575
Args:
76-
name: Name of the Blueprint.
77-
7876
code_mounts: A list of code mounts to be included in the Blueprint.
7977
8078
dockerfile: Dockerfile contents to be used to build the Blueprint.
@@ -83,6 +81,8 @@ def create(
8381
8482
launch_parameters: Parameters to configure your Devbox at launch time.
8583
84+
name: Name of the Blueprint.
85+
8686
system_setup_commands: A list of commands to run to set up your system.
8787
8888
extra_headers: Send extra headers
@@ -97,11 +97,11 @@ def create(
9797
"/v1/blueprints",
9898
body=maybe_transform(
9999
{
100-
"name": name,
101100
"code_mounts": code_mounts,
102101
"dockerfile": dockerfile,
103102
"file_mounts": file_mounts,
104103
"launch_parameters": launch_parameters,
104+
"name": name,
105105
"system_setup_commands": system_setup_commands,
106106
},
107107
blueprint_create_params.BlueprintCreateParams,
@@ -233,11 +233,11 @@ def logs(
233233
def preview(
234234
self,
235235
*,
236-
name: str,
237236
code_mounts: Iterable[CodeMountParametersParam] | NotGiven = NOT_GIVEN,
238237
dockerfile: str | NotGiven = NOT_GIVEN,
239238
file_mounts: Dict[str, str] | NotGiven = NOT_GIVEN,
240239
launch_parameters: blueprint_preview_params.LaunchParameters | NotGiven = NOT_GIVEN,
240+
name: str | NotGiven = NOT_GIVEN,
241241
system_setup_commands: List[str] | NotGiven = NOT_GIVEN,
242242
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
243243
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -252,8 +252,6 @@ def preview(
252252
resulting Dockerfile and test out your build.
253253
254254
Args:
255-
name: Name of the Blueprint.
256-
257255
code_mounts: A list of code mounts to be included in the Blueprint.
258256
259257
dockerfile: Dockerfile contents to be used to build the Blueprint.
@@ -262,6 +260,8 @@ def preview(
262260
263261
launch_parameters: Parameters to configure your Devbox at launch time.
264262
263+
name: Name of the Blueprint.
264+
265265
system_setup_commands: A list of commands to run to set up your system.
266266
267267
extra_headers: Send extra headers
@@ -276,11 +276,11 @@ def preview(
276276
"/v1/blueprints/preview",
277277
body=maybe_transform(
278278
{
279-
"name": name,
280279
"code_mounts": code_mounts,
281280
"dockerfile": dockerfile,
282281
"file_mounts": file_mounts,
283282
"launch_parameters": launch_parameters,
283+
"name": name,
284284
"system_setup_commands": system_setup_commands,
285285
},
286286
blueprint_preview_params.BlueprintPreviewParams,
@@ -315,11 +315,11 @@ def with_streaming_response(self) -> AsyncBlueprintsResourceWithStreamingRespons
315315
async def create(
316316
self,
317317
*,
318-
name: str,
319318
code_mounts: Iterable[CodeMountParametersParam] | NotGiven = NOT_GIVEN,
320319
dockerfile: str | NotGiven = NOT_GIVEN,
321320
file_mounts: Dict[str, str] | NotGiven = NOT_GIVEN,
322321
launch_parameters: blueprint_create_params.LaunchParameters | NotGiven = NOT_GIVEN,
322+
name: str | NotGiven = NOT_GIVEN,
323323
system_setup_commands: List[str] | NotGiven = NOT_GIVEN,
324324
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
325325
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -335,8 +335,6 @@ async def create(
335335
ready.
336336
337337
Args:
338-
name: Name of the Blueprint.
339-
340338
code_mounts: A list of code mounts to be included in the Blueprint.
341339
342340
dockerfile: Dockerfile contents to be used to build the Blueprint.
@@ -345,6 +343,8 @@ async def create(
345343
346344
launch_parameters: Parameters to configure your Devbox at launch time.
347345
346+
name: Name of the Blueprint.
347+
348348
system_setup_commands: A list of commands to run to set up your system.
349349
350350
extra_headers: Send extra headers
@@ -359,11 +359,11 @@ async def create(
359359
"/v1/blueprints",
360360
body=await async_maybe_transform(
361361
{
362-
"name": name,
363362
"code_mounts": code_mounts,
364363
"dockerfile": dockerfile,
365364
"file_mounts": file_mounts,
366365
"launch_parameters": launch_parameters,
366+
"name": name,
367367
"system_setup_commands": system_setup_commands,
368368
},
369369
blueprint_create_params.BlueprintCreateParams,
@@ -495,11 +495,11 @@ async def logs(
495495
async def preview(
496496
self,
497497
*,
498-
name: str,
499498
code_mounts: Iterable[CodeMountParametersParam] | NotGiven = NOT_GIVEN,
500499
dockerfile: str | NotGiven = NOT_GIVEN,
501500
file_mounts: Dict[str, str] | NotGiven = NOT_GIVEN,
502501
launch_parameters: blueprint_preview_params.LaunchParameters | NotGiven = NOT_GIVEN,
502+
name: str | NotGiven = NOT_GIVEN,
503503
system_setup_commands: List[str] | NotGiven = NOT_GIVEN,
504504
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
505505
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -514,8 +514,6 @@ async def preview(
514514
resulting Dockerfile and test out your build.
515515
516516
Args:
517-
name: Name of the Blueprint.
518-
519517
code_mounts: A list of code mounts to be included in the Blueprint.
520518
521519
dockerfile: Dockerfile contents to be used to build the Blueprint.
@@ -524,6 +522,8 @@ async def preview(
524522
525523
launch_parameters: Parameters to configure your Devbox at launch time.
526524
525+
name: Name of the Blueprint.
526+
527527
system_setup_commands: A list of commands to run to set up your system.
528528
529529
extra_headers: Send extra headers
@@ -538,11 +538,11 @@ async def preview(
538538
"/v1/blueprints/preview",
539539
body=await async_maybe_transform(
540540
{
541-
"name": name,
542541
"code_mounts": code_mounts,
543542
"dockerfile": dockerfile,
544543
"file_mounts": file_mounts,
545544
"launch_parameters": launch_parameters,
545+
"name": name,
546546
"system_setup_commands": system_setup_commands,
547547
},
548548
blueprint_preview_params.BlueprintPreviewParams,

‎src/runloop_api_client/resources/devboxes/devboxes.py‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ def execute_async(
295295
self,
296296
id: str,
297297
*,
298-
command: str,
298+
command: str | NotGiven = NOT_GIVEN,
299299
shell_name: str | NotGiven = NOT_GIVEN,
300300
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
301301
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -341,7 +341,7 @@ def execute_sync(
341341
self,
342342
id: str,
343343
*,
344-
command: str,
344+
command: str | NotGiven = NOT_GIVEN,
345345
shell_name: str | NotGiven = NOT_GIVEN,
346346
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
347347
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -387,7 +387,7 @@ def read_file_contents(
387387
self,
388388
id: str,
389389
*,
390-
file_path: str,
390+
file_path: str | NotGiven = NOT_GIVEN,
391391
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
392392
# The extra values given here take precedence over values defined on the client or passed to this method.
393393
extra_headers: Headers | None = None,
@@ -509,8 +509,8 @@ def write_file(
509509
self,
510510
id: str,
511511
*,
512-
contents: str,
513-
file_path: str,
512+
contents: str | NotGiven = NOT_GIVEN,
513+
file_path: str | NotGiven = NOT_GIVEN,
514514
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
515515
# The extra values given here take precedence over values defined on the client or passed to this method.
516516
extra_headers: Headers | None = None,
@@ -790,7 +790,7 @@ async def execute_async(
790790
self,
791791
id: str,
792792
*,
793-
command: str,
793+
command: str | NotGiven = NOT_GIVEN,
794794
shell_name: str | NotGiven = NOT_GIVEN,
795795
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
796796
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -836,7 +836,7 @@ async def execute_sync(
836836
self,
837837
id: str,
838838
*,
839-
command: str,
839+
command: str | NotGiven = NOT_GIVEN,
840840
shell_name: str | NotGiven = NOT_GIVEN,
841841
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
842842
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -882,7 +882,7 @@ async def read_file_contents(
882882
self,
883883
id: str,
884884
*,
885-
file_path: str,
885+
file_path: str | NotGiven = NOT_GIVEN,
886886
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
887887
# The extra values given here take precedence over values defined on the client or passed to this method.
888888
extra_headers: Headers | None = None,
@@ -1004,8 +1004,8 @@ async def write_file(
10041004
self,
10051005
id: str,
10061006
*,
1007-
contents: str,
1008-
file_path: str,
1007+
contents: str | NotGiven = NOT_GIVEN,
1008+
file_path: str | NotGiven = NOT_GIVEN,
10091009
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
10101010
# The extra values given here take precedence over values defined on the client or passed to this method.
10111011
extra_headers: Headers | None = None,

‎src/runloop_api_client/resources/devboxes/executions.py‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def execute_async(
9292
self,
9393
id: str,
9494
*,
95-
command: str,
95+
command: str | NotGiven = NOT_GIVEN,
9696
shell_name: str | NotGiven = NOT_GIVEN,
9797
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
9898
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -138,7 +138,7 @@ def execute_sync(
138138
self,
139139
id: str,
140140
*,
141-
command: str,
141+
command: str | NotGiven = NOT_GIVEN,
142142
shell_name: str | NotGiven = NOT_GIVEN,
143143
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
144144
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -286,7 +286,7 @@ async def execute_async(
286286
self,
287287
id: str,
288288
*,
289-
command: str,
289+
command: str | NotGiven = NOT_GIVEN,
290290
shell_name: str | NotGiven = NOT_GIVEN,
291291
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
292292
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -332,7 +332,7 @@ async def execute_sync(
332332
self,
333333
id: str,
334334
*,
335-
command: str,
335+
command: str | NotGiven = NOT_GIVEN,
336336
shell_name: str | NotGiven = NOT_GIVEN,
337337
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
338338
# The extra values given here take precedence over values defined on the client or passed to this method.
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
3+
from typing import Optional
44

55
from .._models import BaseModel
66

77
__all__ = ["BlueprintBuildLog"]
88

99

1010
class BlueprintBuildLog(BaseModel):
11-
level: str
11+
level: Optional[str] = None
1212
"""Log line severity level."""
1313

14-
message: str
14+
message: Optional[str] = None
1515
"""Log line message."""
1616

17-
timestamp_ms: int
17+
timestamp_ms: Optional[int] = None
1818
"""Time of log (Unix timestamp milliseconds)."""
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from typing import List
3+
from typing import List, Optional
44

55
from .._models import BaseModel
66
from .blueprint_build_log import BlueprintBuildLog
@@ -9,8 +9,8 @@
99

1010

1111
class BlueprintBuildLogsListView(BaseModel):
12-
blueprint_id: str
12+
blueprint_id: Optional[str] = None
1313
"""ID of the Blueprint."""
1414

15-
logs: List[BlueprintBuildLog]
15+
logs: Optional[List[BlueprintBuildLog]] = None
1616
"""List of logs generated during Blueprint build."""

‎src/runloop_api_client/types/blueprint_build_parameters.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@ class LaunchParameters(BaseModel):
2424

2525

2626
class BlueprintBuildParameters(BaseModel):
27-
name: str
28-
"""Name of the Blueprint."""
29-
3027
code_mounts: Optional[List[CodeMountParameters]] = None
3128
"""A list of code mounts to be included in the Blueprint."""
3229

@@ -39,5 +36,8 @@ class BlueprintBuildParameters(BaseModel):
3936
launch_parameters: Optional[LaunchParameters] = None
4037
"""Parameters to configure your Devbox at launch time."""
4138

39+
name: Optional[str] = None
40+
"""Name of the Blueprint."""
41+
4242
system_setup_commands: Optional[List[str]] = None
4343
"""A list of commands to run to set up your system."""

‎src/runloop_api_client/types/blueprint_create_params.py‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from __future__ import annotations
44

55
from typing import Dict, List, Iterable
6-
from typing_extensions import Required, TypedDict
6+
from typing_extensions import TypedDict
77

88
from .resource_size import ResourceSize
99
from .code_mount_parameters_param import CodeMountParametersParam
@@ -12,9 +12,6 @@
1212

1313

1414
class BlueprintCreateParams(TypedDict, total=False):
15-
name: Required[str]
16-
"""Name of the Blueprint."""
17-
1815
code_mounts: Iterable[CodeMountParametersParam]
1916
"""A list of code mounts to be included in the Blueprint."""
2017

@@ -27,6 +24,9 @@ class BlueprintCreateParams(TypedDict, total=False):
2724
launch_parameters: LaunchParameters
2825
"""Parameters to configure your Devbox at launch time."""
2926

27+
name: str
28+
"""Name of the Blueprint."""
29+
3030
system_setup_commands: List[str]
3131
"""A list of commands to run to set up your system."""
3232

0 commit comments

Comments
 (0)