File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 11from gcore import Gcore
22from gcore .pagination import SyncOffsetPage
3- from gcore .types .cloud import SSHKey , SSHKeyCreate
3+ from gcore .types .cloud import SSHKey , SSHKeyCreated
44
55
66def 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 } " )
Original file line number Diff line number Diff line change 22
33from gcore import AsyncGcore
44from gcore .pagination import AsyncOffsetPage
5- from gcore .types .cloud import SSHKey , SSHKeyCreate
5+ from gcore .types .cloud import SSHKey , SSHKeyCreated
66
77
88async 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 } " )
You can’t perform that action at this time.
0 commit comments