Skip to content

Commit 008ea96

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): OpenAPI spec update via Stainless API (#54)
1 parent f7b6f31 commit 008ea96

9 files changed

Lines changed: 598 additions & 38 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
configured_endpoints: 17
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-86d074c66f5140455eedb277c3ad3de81ec91f5cbd6ade28ef00ea2546dcc95e.yml
1+
configured_endpoints: 19
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-c11fd761b5d15675ee672120e5600fd6dddd801d87c1fa6335c507184bdf60b5.yml

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ client = Runloop(
3232
bearer_token=os.environ.get("RUNLOOP_API_KEY"),
3333
)
3434

35-
blueprint_preview_view = client.blueprints.create()
36-
print(blueprint_preview_view.dockerfile)
35+
blueprint_view = client.blueprints.create()
36+
print(blueprint_view.id)
3737
```
3838

3939
While you can provide a `bearer_token` keyword argument,
@@ -57,8 +57,8 @@ client = AsyncRunloop(
5757

5858

5959
async def main() -> None:
60-
blueprint_preview_view = await client.blueprints.create()
61-
print(blueprint_preview_view.dockerfile)
60+
blueprint_view = await client.blueprints.create()
61+
print(blueprint_view.id)
6262

6363

6464
asyncio.run(main())
@@ -200,7 +200,7 @@ response = client.blueprints.with_raw_response.create()
200200
print(response.headers.get('X-My-Header'))
201201

202202
blueprint = response.parse() # get the object that `blueprints.create()` would have returned
203-
print(blueprint.dockerfile)
203+
print(blueprint.id)
204204
```
205205

206206
These methods return an [`APIResponse`](https://github.com/runloopai/api-client-python/tree/main/src/runloop_api_client/_response.py) object.

api.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,11 @@ from runloop_api_client.types import (
2929

3030
Methods:
3131

32-
- <code title="post /v1/blueprints">client.blueprints.<a href="./src/runloop_api_client/resources/blueprints.py">create</a>(\*\*<a href="src/runloop_api_client/types/blueprint_create_params.py">params</a>) -> <a href="./src/runloop_api_client/types/blueprint_preview_view.py">BlueprintPreviewView</a></code>
32+
- <code title="post /v1/blueprints">client.blueprints.<a href="./src/runloop_api_client/resources/blueprints.py">create</a>(\*\*<a href="src/runloop_api_client/types/blueprint_create_params.py">params</a>) -> <a href="./src/runloop_api_client/types/blueprint_view.py">BlueprintView</a></code>
3333
- <code title="get /v1/blueprints/{id}">client.blueprints.<a href="./src/runloop_api_client/resources/blueprints.py">retrieve</a>(id) -> <a href="./src/runloop_api_client/types/blueprint_view.py">BlueprintView</a></code>
34-
- <code title="get /v1/blueprints">client.blueprints.<a href="./src/runloop_api_client/resources/blueprints.py">list</a>() -> <a href="./src/runloop_api_client/types/blueprint_build_logs_list_view.py">BlueprintBuildLogsListView</a></code>
34+
- <code title="get /v1/blueprints">client.blueprints.<a href="./src/runloop_api_client/resources/blueprints.py">list</a>(\*\*<a href="src/runloop_api_client/types/blueprint_list_params.py">params</a>) -> <a href="./src/runloop_api_client/types/blueprint_list_view.py">BlueprintListView</a></code>
35+
- <code title="get /v1/blueprints/{id}/logs">client.blueprints.<a href="./src/runloop_api_client/resources/blueprints.py">logs</a>(id) -> <a href="./src/runloop_api_client/types/blueprint_build_logs_list_view.py">BlueprintBuildLogsListView</a></code>
36+
- <code title="post /v1/blueprints/preview">client.blueprints.<a href="./src/runloop_api_client/resources/blueprints.py">preview</a>(\*\*<a href="src/runloop_api_client/types/blueprint_preview_params.py">params</a>) -> <a href="./src/runloop_api_client/types/blueprint_preview_view.py">BlueprintPreviewView</a></code>
3537

3638
# Code
3739

0 commit comments

Comments
 (0)