Skip to content

Commit 4e79f57

Browse files
authored
fix(cloud): fix SSH keys examples
1 parent ae21e7c commit 4e79f57

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

examples/cloud/ssh_keys.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from gcore import Gcore
22
from gcore.pagination import SyncOffsetPage
3-
from gcore.types.cloud import SSHKey, SSHKeyCreate
3+
from gcore.types.cloud import SSHKey, SSHKeyCreated
44

55

66
def main() -> None:
@@ -25,7 +25,7 @@ def main() -> None:
2525
delete_ssh_key(client=gcore, ssh_key_id=ssh_key.id)
2626

2727

28-
def create_ssh_key(*, client: Gcore) -> SSHKeyCreate:
28+
def create_ssh_key(*, client: Gcore) -> SSHKeyCreated:
2929
print("\n=== CREATE SSH KEY ===")
3030
ssh_key = client.cloud.ssh_keys.create(name="gcore-go-example")
3131
print(f"Created SSH key: ID={ssh_key.id}, name={ssh_key.name}")

examples/cloud/ssh_keys_async.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from gcore import AsyncGcore
44
from gcore.pagination import AsyncOffsetPage
5-
from gcore.types.cloud import SSHKey, SSHKeyCreate
5+
from gcore.types.cloud import SSHKey, SSHKeyCreated
66

77

88
async def main() -> None:
@@ -27,7 +27,7 @@ async def main() -> None:
2727
await delete_ssh_key(client=gcore, ssh_key_id=ssh_key.id)
2828

2929

30-
async def create_ssh_key(*, client: AsyncGcore) -> SSHKeyCreate:
30+
async def create_ssh_key(*, client: AsyncGcore) -> SSHKeyCreated:
3131
print("\n=== CREATE SSH KEY ===")
3232
ssh_key = await client.cloud.ssh_keys.create(name="gcore-go-example")
3333
print(f"Created SSH key: ID={ssh_key.id}, name={ssh_key.name}")

0 commit comments

Comments
 (0)