Skip to content

Commit 8d6dac2

Browse files
authored
Merge pull request #137 from runloopai/release-please--branches--main--changes--next
release: 0.1.0-alpha.18
2 parents 5401ad9 + 12b97b2 commit 8d6dac2

16 files changed

Lines changed: 211 additions & 248 deletions

File tree

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.1.0-alpha.17"
2+
".": "0.1.0-alpha.18"
33
}

.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-f604aab9dce4ace8553e47c1fba2785330184e2b57ef594de0ac6e4027b9fd66.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-6f0c5d11d068264882131101603e33a7d1574db90f3de9b7777f02dbd4649954.yml

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## 0.1.0-alpha.18 (2024-08-28)
4+
5+
Full Changelog: [v0.1.0-alpha.17...v0.1.0-alpha.18](https://github.com/runloopai/api-client-python/compare/v0.1.0-alpha.17...v0.1.0-alpha.18)
6+
7+
### Features
8+
9+
* **api:** OpenAPI spec update via Stainless API ([#136](https://github.com/runloopai/api-client-python/issues/136)) ([ff032bf](https://github.com/runloopai/api-client-python/commit/ff032bfe0559d9057ff6c890349b5d002a60e6e6))
10+
311
## 0.1.0-alpha.17 (2024-08-27)
412

513
Full Changelog: [v0.1.0-alpha.16...v0.1.0-alpha.17](https://github.com/runloopai/api-client-python/compare/v0.1.0-alpha.16...v0.1.0-alpha.17)

api.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ Methods:
6565
- <code title="get /v1/devboxes/{id}">client.devboxes.<a href="./src/runloop_api_client/resources/devboxes/devboxes.py">retrieve</a>(id) -> <a href="./src/runloop_api_client/types/devbox_view.py">DevboxView</a></code>
6666
- <code title="get /v1/devboxes">client.devboxes.<a href="./src/runloop_api_client/resources/devboxes/devboxes.py">list</a>(\*\*<a href="src/runloop_api_client/types/devbox_list_params.py">params</a>) -> <a href="./src/runloop_api_client/types/devbox_list_view.py">DevboxListView</a></code>
6767
- <code title="post /v1/devboxes/{id}/create_ssh_key">client.devboxes.<a href="./src/runloop_api_client/resources/devboxes/devboxes.py">create_ssh_key</a>(id) -> <a href="./src/runloop_api_client/types/devbox_create_ssh_key_response.py">DevboxCreateSSHKeyResponse</a></code>
68+
- <code title="post /v1/devboxes/{id}/executions/execute_async">client.devboxes.<a href="./src/runloop_api_client/resources/devboxes/devboxes.py">execute_async</a>(id, \*\*<a href="src/runloop_api_client/types/devbox_execute_async_params.py">params</a>) -> <a href="./src/runloop_api_client/types/devbox_async_execution_detail_view.py">DevboxAsyncExecutionDetailView</a></code>
6869
- <code title="post /v1/devboxes/{id}/execute_sync">client.devboxes.<a href="./src/runloop_api_client/resources/devboxes/devboxes.py">execute_sync</a>(id, \*\*<a href="src/runloop_api_client/types/devbox_execute_sync_params.py">params</a>) -> <a href="./src/runloop_api_client/types/devbox_execution_detail_view.py">DevboxExecutionDetailView</a></code>
6970
- <code title="post /v1/devboxes/{id}/read_file_contents">client.devboxes.<a href="./src/runloop_api_client/resources/devboxes/devboxes.py">read_file_contents</a>(id, \*\*<a href="src/runloop_api_client/types/devbox_read_file_contents_params.py">params</a>) -> str</code>
7071
- <code title="post /v1/devboxes/{id}/shutdown">client.devboxes.<a href="./src/runloop_api_client/resources/devboxes/devboxes.py">shutdown</a>(id) -> <a href="./src/runloop_api_client/types/devbox_view.py">DevboxView</a></code>
@@ -81,14 +82,13 @@ from runloop_api_client.types.devboxes import DevboxLogsListView
8182

8283
Methods:
8384

84-
- <code title="get /v1/devboxes/{id}/logs">client.devboxes.logs.<a href="./src/runloop_api_client/resources/devboxes/logs.py">list</a>(id, \*\*<a href="src/runloop_api_client/types/devboxes/log_list_params.py">params</a>) -> <a href="./src/runloop_api_client/types/devboxes/devbox_logs_list_view.py">DevboxLogsListView</a></code>
85+
- <code title="get /v1/devboxes/{id}/logs">client.devboxes.logs.<a href="./src/runloop_api_client/resources/devboxes/logs.py">list</a>(id) -> <a href="./src/runloop_api_client/types/devboxes/devbox_logs_list_view.py">DevboxLogsListView</a></code>
8586

8687
## Executions
8788

8889
Methods:
8990

9091
- <code title="get /v1/devboxes/{id}/executions/{execution_id}">client.devboxes.executions.<a href="./src/runloop_api_client/resources/devboxes/executions.py">retrieve</a>(execution_id, \*, id, \*\*<a href="src/runloop_api_client/types/devboxes/execution_retrieve_params.py">params</a>) -> <a href="./src/runloop_api_client/types/devbox_async_execution_detail_view.py">DevboxAsyncExecutionDetailView</a></code>
91-
- <code title="post /v1/devboxes/{id}/execute_async">client.devboxes.executions.<a href="./src/runloop_api_client/resources/devboxes/executions.py">execute_async</a>(id, \*\*<a href="src/runloop_api_client/types/devboxes/execution_execute_async_params.py">params</a>) -> <a href="./src/runloop_api_client/types/devbox_async_execution_detail_view.py">DevboxAsyncExecutionDetailView</a></code>
9292
- <code title="post /v1/devboxes/{id}/execute_sync">client.devboxes.executions.<a href="./src/runloop_api_client/resources/devboxes/executions.py">execute_sync</a>(id, \*\*<a href="src/runloop_api_client/types/devboxes/execution_execute_sync_params.py">params</a>) -> <a href="./src/runloop_api_client/types/devbox_execution_detail_view.py">DevboxExecutionDetailView</a></code>
9393
- <code title="post /v1/devboxes/{id}/executions/{execution_id}/kill">client.devboxes.executions.<a href="./src/runloop_api_client/resources/devboxes/executions.py">kill</a>(execution_id, \*, id) -> <a href="./src/runloop_api_client/types/devbox_async_execution_detail_view.py">DevboxAsyncExecutionDetailView</a></code>
9494

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "runloop_api_client"
3-
version = "0.1.0-alpha.17"
3+
version = "0.1.0-alpha.18"
44
description = "The official Python library for the runloop API"
55
dynamic = ["readme"]
66
license = "MIT"

src/runloop_api_client/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
__title__ = "runloop_api_client"
4-
__version__ = "0.1.0-alpha.17" # x-release-please-version
4+
__version__ = "0.1.0-alpha.18" # x-release-please-version

src/runloop_api_client/resources/devboxes/devboxes.py

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
devbox_write_file_params,
2121
devbox_upload_file_params,
2222
devbox_execute_sync_params,
23+
devbox_execute_async_params,
2324
devbox_read_file_contents_params,
2425
)
2526
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven, FileTypes
@@ -50,6 +51,7 @@
5051
from ...types.devbox_list_view import DevboxListView
5152
from ...types.devbox_execution_detail_view import DevboxExecutionDetailView
5253
from ...types.devbox_create_ssh_key_response import DevboxCreateSSHKeyResponse
54+
from ...types.devbox_async_execution_detail_view import DevboxAsyncExecutionDetailView
5355

5456
__all__ = ["DevboxesResource", "AsyncDevboxesResource"]
5557

@@ -269,6 +271,43 @@ def create_ssh_key(
269271
cast_to=DevboxCreateSSHKeyResponse,
270272
)
271273

274+
def execute_async(
275+
self,
276+
id: str,
277+
*,
278+
command: str | NotGiven = NOT_GIVEN,
279+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
280+
# The extra values given here take precedence over values defined on the client or passed to this method.
281+
extra_headers: Headers | None = None,
282+
extra_query: Query | None = None,
283+
extra_body: Body | None = None,
284+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
285+
) -> DevboxAsyncExecutionDetailView:
286+
"""
287+
Asynchronously execute a command on a devbox
288+
289+
Args:
290+
command: The command to execute on the Devbox.
291+
292+
extra_headers: Send extra headers
293+
294+
extra_query: Add additional query parameters to the request
295+
296+
extra_body: Add additional JSON properties to the request
297+
298+
timeout: Override the client-level default timeout for this request, in seconds
299+
"""
300+
if not id:
301+
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
302+
return self._post(
303+
f"/v1/devboxes/{id}/executions/execute_async",
304+
body=maybe_transform({"command": command}, devbox_execute_async_params.DevboxExecuteAsyncParams),
305+
options=make_request_options(
306+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
307+
),
308+
cast_to=DevboxAsyncExecutionDetailView,
309+
)
310+
272311
def execute_sync(
273312
self,
274313
id: str,
@@ -690,6 +729,45 @@ async def create_ssh_key(
690729
cast_to=DevboxCreateSSHKeyResponse,
691730
)
692731

732+
async def execute_async(
733+
self,
734+
id: str,
735+
*,
736+
command: str | NotGiven = NOT_GIVEN,
737+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
738+
# The extra values given here take precedence over values defined on the client or passed to this method.
739+
extra_headers: Headers | None = None,
740+
extra_query: Query | None = None,
741+
extra_body: Body | None = None,
742+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
743+
) -> DevboxAsyncExecutionDetailView:
744+
"""
745+
Asynchronously execute a command on a devbox
746+
747+
Args:
748+
command: The command to execute on the Devbox.
749+
750+
extra_headers: Send extra headers
751+
752+
extra_query: Add additional query parameters to the request
753+
754+
extra_body: Add additional JSON properties to the request
755+
756+
timeout: Override the client-level default timeout for this request, in seconds
757+
"""
758+
if not id:
759+
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
760+
return await self._post(
761+
f"/v1/devboxes/{id}/executions/execute_async",
762+
body=await async_maybe_transform(
763+
{"command": command}, devbox_execute_async_params.DevboxExecuteAsyncParams
764+
),
765+
options=make_request_options(
766+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
767+
),
768+
cast_to=DevboxAsyncExecutionDetailView,
769+
)
770+
693771
async def execute_sync(
694772
self,
695773
id: str,
@@ -912,6 +990,9 @@ def __init__(self, devboxes: DevboxesResource) -> None:
912990
self.create_ssh_key = to_raw_response_wrapper(
913991
devboxes.create_ssh_key,
914992
)
993+
self.execute_async = to_raw_response_wrapper(
994+
devboxes.execute_async,
995+
)
915996
self.execute_sync = to_raw_response_wrapper(
916997
devboxes.execute_sync,
917998
)
@@ -953,6 +1034,9 @@ def __init__(self, devboxes: AsyncDevboxesResource) -> None:
9531034
self.create_ssh_key = async_to_raw_response_wrapper(
9541035
devboxes.create_ssh_key,
9551036
)
1037+
self.execute_async = async_to_raw_response_wrapper(
1038+
devboxes.execute_async,
1039+
)
9561040
self.execute_sync = async_to_raw_response_wrapper(
9571041
devboxes.execute_sync,
9581042
)
@@ -994,6 +1078,9 @@ def __init__(self, devboxes: DevboxesResource) -> None:
9941078
self.create_ssh_key = to_streamed_response_wrapper(
9951079
devboxes.create_ssh_key,
9961080
)
1081+
self.execute_async = to_streamed_response_wrapper(
1082+
devboxes.execute_async,
1083+
)
9971084
self.execute_sync = to_streamed_response_wrapper(
9981085
devboxes.execute_sync,
9991086
)
@@ -1035,6 +1122,9 @@ def __init__(self, devboxes: AsyncDevboxesResource) -> None:
10351122
self.create_ssh_key = async_to_streamed_response_wrapper(
10361123
devboxes.create_ssh_key,
10371124
)
1125+
self.execute_async = async_to_streamed_response_wrapper(
1126+
devboxes.execute_async,
1127+
)
10381128
self.execute_sync = async_to_streamed_response_wrapper(
10391129
devboxes.execute_sync,
10401130
)

src/runloop_api_client/resources/devboxes/executions.py

Lines changed: 1 addition & 89 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
async_to_streamed_response_wrapper,
1919
)
2020
from ..._base_client import make_request_options
21-
from ...types.devboxes import execution_retrieve_params, execution_execute_sync_params, execution_execute_async_params
21+
from ...types.devboxes import execution_retrieve_params, execution_execute_sync_params
2222
from ...types.devbox_execution_detail_view import DevboxExecutionDetailView
2323
from ...types.devbox_async_execution_detail_view import DevboxAsyncExecutionDetailView
2424

@@ -77,43 +77,6 @@ def retrieve(
7777
cast_to=DevboxAsyncExecutionDetailView,
7878
)
7979

80-
def execute_async(
81-
self,
82-
id: str,
83-
*,
84-
command: str | NotGiven = NOT_GIVEN,
85-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
86-
# The extra values given here take precedence over values defined on the client or passed to this method.
87-
extra_headers: Headers | None = None,
88-
extra_query: Query | None = None,
89-
extra_body: Body | None = None,
90-
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
91-
) -> DevboxAsyncExecutionDetailView:
92-
"""
93-
Asynchronously execute a command on a devbox
94-
95-
Args:
96-
command: The command to execute on the Devbox.
97-
98-
extra_headers: Send extra headers
99-
100-
extra_query: Add additional query parameters to the request
101-
102-
extra_body: Add additional JSON properties to the request
103-
104-
timeout: Override the client-level default timeout for this request, in seconds
105-
"""
106-
if not id:
107-
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
108-
return self._post(
109-
f"/v1/devboxes/{id}/execute_async",
110-
body=maybe_transform({"command": command}, execution_execute_async_params.ExecutionExecuteAsyncParams),
111-
options=make_request_options(
112-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
113-
),
114-
cast_to=DevboxAsyncExecutionDetailView,
115-
)
116-
11780
def execute_sync(
11881
self,
11982
id: str,
@@ -242,45 +205,6 @@ async def retrieve(
242205
cast_to=DevboxAsyncExecutionDetailView,
243206
)
244207

245-
async def execute_async(
246-
self,
247-
id: str,
248-
*,
249-
command: str | NotGiven = NOT_GIVEN,
250-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
251-
# The extra values given here take precedence over values defined on the client or passed to this method.
252-
extra_headers: Headers | None = None,
253-
extra_query: Query | None = None,
254-
extra_body: Body | None = None,
255-
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
256-
) -> DevboxAsyncExecutionDetailView:
257-
"""
258-
Asynchronously execute a command on a devbox
259-
260-
Args:
261-
command: The command to execute on the Devbox.
262-
263-
extra_headers: Send extra headers
264-
265-
extra_query: Add additional query parameters to the request
266-
267-
extra_body: Add additional JSON properties to the request
268-
269-
timeout: Override the client-level default timeout for this request, in seconds
270-
"""
271-
if not id:
272-
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
273-
return await self._post(
274-
f"/v1/devboxes/{id}/execute_async",
275-
body=await async_maybe_transform(
276-
{"command": command}, execution_execute_async_params.ExecutionExecuteAsyncParams
277-
),
278-
options=make_request_options(
279-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
280-
),
281-
cast_to=DevboxAsyncExecutionDetailView,
282-
)
283-
284208
async def execute_sync(
285209
self,
286210
id: str,
@@ -364,9 +288,6 @@ def __init__(self, executions: ExecutionsResource) -> None:
364288
self.retrieve = to_raw_response_wrapper(
365289
executions.retrieve,
366290
)
367-
self.execute_async = to_raw_response_wrapper(
368-
executions.execute_async,
369-
)
370291
self.execute_sync = to_raw_response_wrapper(
371292
executions.execute_sync,
372293
)
@@ -382,9 +303,6 @@ def __init__(self, executions: AsyncExecutionsResource) -> None:
382303
self.retrieve = async_to_raw_response_wrapper(
383304
executions.retrieve,
384305
)
385-
self.execute_async = async_to_raw_response_wrapper(
386-
executions.execute_async,
387-
)
388306
self.execute_sync = async_to_raw_response_wrapper(
389307
executions.execute_sync,
390308
)
@@ -400,9 +318,6 @@ def __init__(self, executions: ExecutionsResource) -> None:
400318
self.retrieve = to_streamed_response_wrapper(
401319
executions.retrieve,
402320
)
403-
self.execute_async = to_streamed_response_wrapper(
404-
executions.execute_async,
405-
)
406321
self.execute_sync = to_streamed_response_wrapper(
407322
executions.execute_sync,
408323
)
@@ -418,9 +333,6 @@ def __init__(self, executions: AsyncExecutionsResource) -> None:
418333
self.retrieve = async_to_streamed_response_wrapper(
419334
executions.retrieve,
420335
)
421-
self.execute_async = async_to_streamed_response_wrapper(
422-
executions.execute_async,
423-
)
424336
self.execute_sync = async_to_streamed_response_wrapper(
425337
executions.execute_sync,
426338
)

0 commit comments

Comments
 (0)