Skip to content

Commit e23ac14

Browse files
feat(api): update via SDK Studio
1 parent a5f6aa6 commit e23ac14

File tree

8 files changed

+50
-121
lines changed

8 files changed

+50
-121
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 174
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/digitalocean%2Fgradient-3364ccdab713948eb06e9f77fb3b2046d0627ac2c18d389ef60d91bdfbeb2dd7.yml
33
openapi_spec_hash: 83a3d092965fde776b29b61f785459f9
4-
config_hash: a8e1b6dcbc8b1126938d320837c5926d
4+
config_hash: 7c196228f92c7538035b0688dce459f6

api.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -771,6 +771,7 @@ Types:
771771

772772
```python
773773
from gradient.types.gpu_droplets.account import (
774+
SSHKeys,
774775
KeyCreateResponse,
775776
KeyRetrieveResponse,
776777
KeyUpdateResponse,

src/gradient/types/gpu_droplets/account/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
from __future__ import annotations
44

5+
from .ssh_keys import SSHKeys as SSHKeys
56
from .key_list_params import KeyListParams as KeyListParams
67
from .key_create_params import KeyCreateParams as KeyCreateParams
78
from .key_list_response import KeyListResponse as KeyListResponse

src/gradient/types/gpu_droplets/account/key_create_response.py

Lines changed: 3 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -2,38 +2,11 @@
22

33
from typing import Optional
44

5+
from .ssh_keys import SSHKeys
56
from ...._models import BaseModel
67

7-
__all__ = ["KeyCreateResponse", "SSHKey"]
8-
9-
10-
class SSHKey(BaseModel):
11-
name: str
12-
"""
13-
A human-readable display name for this key, used to easily identify the SSH keys
14-
when they are displayed.
15-
"""
16-
17-
public_key: str
18-
"""The entire public key string that was uploaded.
19-
20-
Embedded into the root user's `authorized_keys` file if you include this key
21-
during Droplet creation.
22-
"""
23-
24-
id: Optional[int] = None
25-
"""A unique identification number for this key.
26-
27-
Can be used to embed a specific SSH key into a Droplet.
28-
"""
29-
30-
fingerprint: Optional[str] = None
31-
"""
32-
A unique identifier that differentiates this key from other keys using a format
33-
that SSH recognizes. The fingerprint is created when the key is added to your
34-
account.
35-
"""
8+
__all__ = ["KeyCreateResponse"]
369

3710

3811
class KeyCreateResponse(BaseModel):
39-
ssh_key: Optional[SSHKey] = None
12+
ssh_key: Optional[SSHKeys] = None

src/gradient/types/gpu_droplets/account/key_list_response.py

Lines changed: 3 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -2,39 +2,12 @@
22

33
from typing import List, Optional
44

5+
from .ssh_keys import SSHKeys
56
from ...._models import BaseModel
67
from ...shared.page_links import PageLinks
78
from ...shared.meta_properties import MetaProperties
89

9-
__all__ = ["KeyListResponse", "SSHKey"]
10-
11-
12-
class SSHKey(BaseModel):
13-
name: str
14-
"""
15-
A human-readable display name for this key, used to easily identify the SSH keys
16-
when they are displayed.
17-
"""
18-
19-
public_key: str
20-
"""The entire public key string that was uploaded.
21-
22-
Embedded into the root user's `authorized_keys` file if you include this key
23-
during Droplet creation.
24-
"""
25-
26-
id: Optional[int] = None
27-
"""A unique identification number for this key.
28-
29-
Can be used to embed a specific SSH key into a Droplet.
30-
"""
31-
32-
fingerprint: Optional[str] = None
33-
"""
34-
A unique identifier that differentiates this key from other keys using a format
35-
that SSH recognizes. The fingerprint is created when the key is added to your
36-
account.
37-
"""
10+
__all__ = ["KeyListResponse"]
3811

3912

4013
class KeyListResponse(BaseModel):
@@ -43,4 +16,4 @@ class KeyListResponse(BaseModel):
4316

4417
links: Optional[PageLinks] = None
4518

46-
ssh_keys: Optional[List[SSHKey]] = None
19+
ssh_keys: Optional[List[SSHKeys]] = None

src/gradient/types/gpu_droplets/account/key_retrieve_response.py

Lines changed: 3 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -2,38 +2,11 @@
22

33
from typing import Optional
44

5+
from .ssh_keys import SSHKeys
56
from ...._models import BaseModel
67

7-
__all__ = ["KeyRetrieveResponse", "SSHKey"]
8-
9-
10-
class SSHKey(BaseModel):
11-
name: str
12-
"""
13-
A human-readable display name for this key, used to easily identify the SSH keys
14-
when they are displayed.
15-
"""
16-
17-
public_key: str
18-
"""The entire public key string that was uploaded.
19-
20-
Embedded into the root user's `authorized_keys` file if you include this key
21-
during Droplet creation.
22-
"""
23-
24-
id: Optional[int] = None
25-
"""A unique identification number for this key.
26-
27-
Can be used to embed a specific SSH key into a Droplet.
28-
"""
29-
30-
fingerprint: Optional[str] = None
31-
"""
32-
A unique identifier that differentiates this key from other keys using a format
33-
that SSH recognizes. The fingerprint is created when the key is added to your
34-
account.
35-
"""
8+
__all__ = ["KeyRetrieveResponse"]
369

3710

3811
class KeyRetrieveResponse(BaseModel):
39-
ssh_key: Optional[SSHKey] = None
12+
ssh_key: Optional[SSHKeys] = None

src/gradient/types/gpu_droplets/account/key_update_response.py

Lines changed: 3 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -2,38 +2,11 @@
22

33
from typing import Optional
44

5+
from .ssh_keys import SSHKeys
56
from ...._models import BaseModel
67

7-
__all__ = ["KeyUpdateResponse", "SSHKey"]
8-
9-
10-
class SSHKey(BaseModel):
11-
name: str
12-
"""
13-
A human-readable display name for this key, used to easily identify the SSH keys
14-
when they are displayed.
15-
"""
16-
17-
public_key: str
18-
"""The entire public key string that was uploaded.
19-
20-
Embedded into the root user's `authorized_keys` file if you include this key
21-
during Droplet creation.
22-
"""
23-
24-
id: Optional[int] = None
25-
"""A unique identification number for this key.
26-
27-
Can be used to embed a specific SSH key into a Droplet.
28-
"""
29-
30-
fingerprint: Optional[str] = None
31-
"""
32-
A unique identifier that differentiates this key from other keys using a format
33-
that SSH recognizes. The fingerprint is created when the key is added to your
34-
account.
35-
"""
8+
__all__ = ["KeyUpdateResponse"]
369

3710

3811
class KeyUpdateResponse(BaseModel):
39-
ssh_key: Optional[SSHKey] = None
12+
ssh_key: Optional[SSHKeys] = None
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
from typing import Optional
4+
5+
from ...._models import BaseModel
6+
7+
__all__ = ["SSHKeys"]
8+
9+
10+
class SSHKeys(BaseModel):
11+
name: str
12+
"""
13+
A human-readable display name for this key, used to easily identify the SSH keys
14+
when they are displayed.
15+
"""
16+
17+
public_key: str
18+
"""The entire public key string that was uploaded.
19+
20+
Embedded into the root user's `authorized_keys` file if you include this key
21+
during Droplet creation.
22+
"""
23+
24+
id: Optional[int] = None
25+
"""A unique identification number for this key.
26+
27+
Can be used to embed a specific SSH key into a Droplet.
28+
"""
29+
30+
fingerprint: Optional[str] = None
31+
"""
32+
A unique identifier that differentiates this key from other keys using a format
33+
that SSH recognizes. The fingerprint is created when the key is added to your
34+
account.
35+
"""

0 commit comments

Comments
 (0)