Skip to content

Commit f094bf7

Browse files
feat(devbox): return user for createSshKey
1 parent 55cf613 commit f094bf7

16 files changed

Lines changed: 125 additions & 143 deletions

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 97
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-cb2d725f71e87810cd872eacd70e867ca10f94980fdf9c78bb2844c02ee47bf3.yml
3-
openapi_spec_hash: 16ce3e9184fc2afdee66db18a83a96e8
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-b92a4ee1d2c5382b0d77ec6a16e2e03b79bfd0a08cd75e28ee219350d5b6c5c6.yml
3+
openapi_spec_hash: 20d89d072b105d18e5bb8f73adb75063
44
config_hash: 2363f563f42501d2b1587a4f64bdccaf

api.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,10 @@
33
```python
44
from runloop_api_client.types import (
55
AfterIdle,
6-
AgentMountParameters,
76
AgentSource,
87
CodeMountParameters,
98
LaunchParameters,
109
Mount,
11-
ObjectMountParameters,
1210
RunProfile,
1311
)
1412
```

src/runloop_api_client/types/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
AgentSource as AgentSource,
1010
LaunchParameters as LaunchParameters,
1111
CodeMountParameters as CodeMountParameters,
12-
AgentMountParameters as AgentMountParameters,
13-
ObjectMountParameters as ObjectMountParameters,
1412
)
1513
from .agent_view import AgentView as AgentView
1614
from .devbox_view import DevboxView as DevboxView

src/runloop_api_client/types/devbox_create_ssh_key_response.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,8 @@ class DevboxCreateSSHKeyResponse(BaseModel):
1212
ssh_private_key: str
1313
"""The ssh private key, in PEM format."""
1414

15+
ssh_user: str
16+
"""The Linux user to use for SSH connections to this Devbox."""
17+
1518
url: str
1619
"""The host url of the Devbox that can be used for SSH."""

src/runloop_api_client/types/shared/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,3 @@
66
from .agent_source import AgentSource as AgentSource
77
from .launch_parameters import LaunchParameters as LaunchParameters
88
from .code_mount_parameters import CodeMountParameters as CodeMountParameters
9-
from .agent_mount_parameters import AgentMountParameters as AgentMountParameters
10-
from .object_mount_parameters import ObjectMountParameters as ObjectMountParameters

src/runloop_api_client/types/shared/agent_mount_parameters.py

Lines changed: 0 additions & 31 deletions
This file was deleted.

src/runloop_api_client/types/shared/code_mount_parameters.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
from typing import Optional
4-
from typing_extensions import Literal
54

65
from ..._models import BaseModel
76

@@ -18,8 +17,6 @@ class CodeMountParameters(BaseModel):
1817
repo_owner: str
1918
"""The owner of the repo."""
2019

21-
type: Literal["code_mount"]
22-
2320
token: Optional[str] = None
2421
"""The authentication token necessary to pull repo."""
2522

Lines changed: 60 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,71 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from typing import Union
3+
from typing import Union, Optional
44
from typing_extensions import Literal, Annotated, TypeAlias
55

66
from ..._utils import PropertyInfo
77
from ..._models import BaseModel
8-
from .code_mount_parameters import CodeMountParameters
9-
from .agent_mount_parameters import AgentMountParameters
10-
from .object_mount_parameters import ObjectMountParameters
118

12-
__all__ = ["Mount", "FileMountParameters"]
9+
__all__ = ["Mount", "ObjectMount", "AgentMount", "CodeMount", "FileMount"]
1310

1411

15-
class FileMountParameters(BaseModel):
12+
class ObjectMount(BaseModel):
13+
object_id: str
14+
"""The ID of the object to write."""
15+
16+
object_path: str
17+
"""The path to write the object on the Devbox.
18+
19+
Use absolute path of object (ie /home/user/object.txt, or directory if archive
20+
/home/user/archive_dir)
21+
"""
22+
23+
type: Literal["object_mount"]
24+
25+
26+
class AgentMount(BaseModel):
27+
agent_id: Optional[str] = None
28+
"""The ID of the agent to mount. Either agent_id or name must be set."""
29+
30+
agent_name: Optional[str] = None
31+
"""The name of the agent to mount.
32+
33+
Returns the most recent agent with a matching name if no agent id string
34+
provided. Either agent id or name must be set
35+
"""
36+
37+
type: Literal["agent_mount"]
38+
39+
agent_path: Optional[str] = None
40+
"""Path to mount the agent on the Devbox.
41+
42+
Required for git and object agents. Use absolute path (e.g., /home/user/agent)
43+
"""
44+
45+
auth_token: Optional[str] = None
46+
"""Optional auth token for private repositories. Only used for git agents."""
47+
48+
49+
class CodeMount(BaseModel):
50+
repo_name: str
51+
"""The name of the repo to mount.
52+
53+
By default, code will be mounted at /home/user/{repo_name}s.
54+
"""
55+
56+
repo_owner: str
57+
"""The owner of the repo."""
58+
59+
type: Literal["code_mount"]
60+
61+
token: Optional[str] = None
62+
"""The authentication token necessary to pull repo."""
63+
64+
install_command: Optional[str] = None
65+
"""Installation command to install and setup repository."""
66+
67+
68+
class FileMount(BaseModel):
1669
content: str
1770
"""Content of the file to mount."""
1871

@@ -22,7 +75,4 @@ class FileMountParameters(BaseModel):
2275
type: Literal["file_mount"]
2376

2477

25-
Mount: TypeAlias = Annotated[
26-
Union[ObjectMountParameters, AgentMountParameters, CodeMountParameters, FileMountParameters],
27-
PropertyInfo(discriminator="type"),
28-
]
78+
Mount: TypeAlias = Annotated[Union[ObjectMount, AgentMount, CodeMount, FileMount], PropertyInfo(discriminator="type")]

src/runloop_api_client/types/shared/object_mount_parameters.py

Lines changed: 0 additions & 21 deletions
This file was deleted.

src/runloop_api_client/types/shared_params/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,3 @@
66
from .agent_source import AgentSource as AgentSource
77
from .launch_parameters import LaunchParameters as LaunchParameters
88
from .code_mount_parameters import CodeMountParameters as CodeMountParameters
9-
from .agent_mount_parameters import AgentMountParameters as AgentMountParameters
10-
from .object_mount_parameters import ObjectMountParameters as ObjectMountParameters

0 commit comments

Comments
 (0)