Skip to content

Commit b82964a

Browse files
authored
Merge pull request #64 from runloopai/release-please--branches--main--changes--next
release: 0.1.0-alpha.10
2 parents 42ab77f + cac200c commit b82964a

File tree

11 files changed

+134
-23
lines changed

11 files changed

+134
-23
lines changed

.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.9"
2+
".": "0.1.0-alpha.10"
33
}

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 21
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-8ed7237714dcf00d5e186095c38ac8afb3300d4773e0d836042d89f3b53c7ffc.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-d46e8a351f9ab9469594e4ac1b185033afe2e530e0dd6df2cae2a666d8fc8336.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.10 (2024-08-02)
4+
5+
Full Changelog: [v0.1.0-alpha.9...v0.1.0-alpha.10](https://github.com/runloopai/api-client-python/compare/v0.1.0-alpha.9...v0.1.0-alpha.10)
6+
7+
### Features
8+
9+
* **api:** update via SDK Studio ([#63](https://github.com/runloopai/api-client-python/issues/63)) ([d2aefd1](https://github.com/runloopai/api-client-python/commit/d2aefd19566d6a90121cfd6b4a188a538b496d98))
10+
311
## 0.1.0-alpha.9 (2024-08-01)
412

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

api.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ Methods:
5757
- <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>
5858
- <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>
5959
- <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>
60-
- <code title="post /v1/devboxes/{id}/read_file">client.devboxes.<a href="./src/runloop_api_client/resources/devboxes/devboxes.py">read_file</a>(id) -> <a href="./src/runloop_api_client/types/devbox_execution_detail_view.py">DevboxExecutionDetailView</a></code>
60+
- <code title="post /v1/devboxes/{id}/read_file">client.devboxes.<a href="./src/runloop_api_client/resources/devboxes/devboxes.py">read_file</a>(id, \*\*<a href="src/runloop_api_client/types/devbox_read_file_params.py">params</a>) -> <a href="./src/runloop_api_client/types/devbox_execution_detail_view.py">DevboxExecutionDetailView</a></code>
6161
- <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>
62-
- <code title="post /v1/devboxes/{id}/write_file">client.devboxes.<a href="./src/runloop_api_client/resources/devboxes/devboxes.py">write_file</a>(id) -> <a href="./src/runloop_api_client/types/devbox_execution_detail_view.py">DevboxExecutionDetailView</a></code>
62+
- <code title="post /v1/devboxes/{id}/write_file">client.devboxes.<a href="./src/runloop_api_client/resources/devboxes/devboxes.py">write_file</a>(id, \*\*<a href="src/runloop_api_client/types/devbox_write_file_params.py">params</a>) -> <a href="./src/runloop_api_client/types/devbox_execution_detail_view.py">DevboxExecutionDetailView</a></code>
6363

6464
## Logs
6565

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.9"
3+
version = "0.1.0-alpha.10"
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.9" # x-release-please-version
4+
__version__ = "0.1.0-alpha.10" # x-release-please-version

src/runloop_api_client/resources/devboxes/devboxes.py

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,13 @@
1414
LogsResourceWithStreamingResponse,
1515
AsyncLogsResourceWithStreamingResponse,
1616
)
17-
from ...types import devbox_list_params, devbox_create_params, devbox_execute_sync_params
17+
from ...types import (
18+
devbox_list_params,
19+
devbox_create_params,
20+
devbox_read_file_params,
21+
devbox_write_file_params,
22+
devbox_execute_sync_params,
23+
)
1824
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
1925
from ..._utils import (
2026
maybe_transform,
@@ -251,6 +257,7 @@ def read_file(
251257
self,
252258
id: str,
253259
*,
260+
file_path: str | NotGiven = NOT_GIVEN,
254261
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
255262
# The extra values given here take precedence over values defined on the client or passed to this method.
256263
extra_headers: Headers | None = None,
@@ -262,6 +269,8 @@ def read_file(
262269
Read file contents from a file on given Devbox.
263270
264271
Args:
272+
file_path: The path of the file to read.
273+
265274
extra_headers: Send extra headers
266275
267276
extra_query: Add additional query parameters to the request
@@ -274,6 +283,7 @@ def read_file(
274283
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
275284
return self._post(
276285
f"/v1/devboxes/{id}/read_file",
286+
body=maybe_transform({"file_path": file_path}, devbox_read_file_params.DevboxReadFileParams),
277287
options=make_request_options(
278288
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
279289
),
@@ -318,6 +328,8 @@ def write_file(
318328
self,
319329
id: str,
320330
*,
331+
contents: str | NotGiven = NOT_GIVEN,
332+
file_path: str | NotGiven = NOT_GIVEN,
321333
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
322334
# The extra values given here take precedence over values defined on the client or passed to this method.
323335
extra_headers: Headers | None = None,
@@ -329,6 +341,10 @@ def write_file(
329341
Write contents to a file at path on the Devbox.
330342
331343
Args:
344+
contents: The contents to write to file.
345+
346+
file_path: The path of the file to read.
347+
332348
extra_headers: Send extra headers
333349
334350
extra_query: Add additional query parameters to the request
@@ -341,6 +357,13 @@ def write_file(
341357
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
342358
return self._post(
343359
f"/v1/devboxes/{id}/write_file",
360+
body=maybe_transform(
361+
{
362+
"contents": contents,
363+
"file_path": file_path,
364+
},
365+
devbox_write_file_params.DevboxWriteFileParams,
366+
),
344367
options=make_request_options(
345368
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
346369
),
@@ -563,6 +586,7 @@ async def read_file(
563586
self,
564587
id: str,
565588
*,
589+
file_path: str | NotGiven = NOT_GIVEN,
566590
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
567591
# The extra values given here take precedence over values defined on the client or passed to this method.
568592
extra_headers: Headers | None = None,
@@ -574,6 +598,8 @@ async def read_file(
574598
Read file contents from a file on given Devbox.
575599
576600
Args:
601+
file_path: The path of the file to read.
602+
577603
extra_headers: Send extra headers
578604
579605
extra_query: Add additional query parameters to the request
@@ -586,6 +612,7 @@ async def read_file(
586612
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
587613
return await self._post(
588614
f"/v1/devboxes/{id}/read_file",
615+
body=await async_maybe_transform({"file_path": file_path}, devbox_read_file_params.DevboxReadFileParams),
589616
options=make_request_options(
590617
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
591618
),
@@ -630,6 +657,8 @@ async def write_file(
630657
self,
631658
id: str,
632659
*,
660+
contents: str | NotGiven = NOT_GIVEN,
661+
file_path: str | NotGiven = NOT_GIVEN,
633662
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
634663
# The extra values given here take precedence over values defined on the client or passed to this method.
635664
extra_headers: Headers | None = None,
@@ -641,6 +670,10 @@ async def write_file(
641670
Write contents to a file at path on the Devbox.
642671
643672
Args:
673+
contents: The contents to write to file.
674+
675+
file_path: The path of the file to read.
676+
644677
extra_headers: Send extra headers
645678
646679
extra_query: Add additional query parameters to the request
@@ -653,6 +686,13 @@ async def write_file(
653686
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
654687
return await self._post(
655688
f"/v1/devboxes/{id}/write_file",
689+
body=await async_maybe_transform(
690+
{
691+
"contents": contents,
692+
"file_path": file_path,
693+
},
694+
devbox_write_file_params.DevboxWriteFileParams,
695+
),
656696
options=make_request_options(
657697
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
658698
),

src/runloop_api_client/types/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@
2020
from .code_mount_parameters import CodeMountParameters as CodeMountParameters
2121
from .blueprint_preview_view import BlueprintPreviewView as BlueprintPreviewView
2222
from .blueprint_create_params import BlueprintCreateParams as BlueprintCreateParams
23+
from .devbox_read_file_params import DevboxReadFileParams as DevboxReadFileParams
2324
from .blueprint_preview_params import BlueprintPreviewParams as BlueprintPreviewParams
25+
from .devbox_write_file_params import DevboxWriteFileParams as DevboxWriteFileParams
2426
from .blueprint_build_parameters import BlueprintBuildParameters as BlueprintBuildParameters
2527
from .devbox_execute_sync_params import DevboxExecuteSyncParams as DevboxExecuteSyncParams
2628
from .code_mount_parameters_param import CodeMountParametersParam as CodeMountParametersParam
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
from __future__ import annotations
4+
5+
from typing_extensions import TypedDict
6+
7+
__all__ = ["DevboxReadFileParams"]
8+
9+
10+
class DevboxReadFileParams(TypedDict, total=False):
11+
file_path: str
12+
"""The path of the file to read."""
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
from __future__ import annotations
4+
5+
from typing_extensions import TypedDict
6+
7+
__all__ = ["DevboxWriteFileParams"]
8+
9+
10+
class DevboxWriteFileParams(TypedDict, total=False):
11+
contents: str
12+
"""The contents to write to file."""
13+
14+
file_path: str
15+
"""The path of the file to read."""

0 commit comments

Comments
 (0)