archastro.platform.v1.resources.ssh_keys
1# Copyright (c) 2026 ArchAstro Inc. Licensed under the MIT License. 2# This file is auto-generated by @archastro/sdk-generator. Do not edit. 3# Content hash: 1e4635f05ba7 4 5from __future__ import annotations 6 7from ...runtime.http_client import HttpClient, SyncHttpClient 8 9 10class AsyncSshKeyResource: 11 def __init__(self, http: HttpClient): 12 self._http = http 13 14 async def delete(self, ssh_key: str) -> None: 15 """ 16 Revoke an SSH public key 17 Revokes an owned key immediately. The key remains visible as audit metadata. 18 19 Args: 20 ssh_key: Registered SSH key ID (`ssk_...`). 21 22 Returns: 23 No content 24 """ 25 await self._http.request(f"/api/v1/ssh_keys/{ssh_key}", method="DELETE") 26 27 28class SshKeyResource: 29 def __init__(self, http: SyncHttpClient): 30 self._http = http 31 32 def delete(self, ssh_key: str) -> None: 33 """ 34 Revoke an SSH public key 35 Revokes an owned key immediately. The key remains visible as audit metadata. 36 37 Args: 38 ssh_key: Registered SSH key ID (`ssk_...`). 39 40 Returns: 41 No content 42 """ 43 self._http.request(f"/api/v1/ssh_keys/{ssh_key}", method="DELETE")
class
AsyncSshKeyResource:
11class AsyncSshKeyResource: 12 def __init__(self, http: HttpClient): 13 self._http = http 14 15 async def delete(self, ssh_key: str) -> None: 16 """ 17 Revoke an SSH public key 18 Revokes an owned key immediately. The key remains visible as audit metadata. 19 20 Args: 21 ssh_key: Registered SSH key ID (`ssk_...`). 22 23 Returns: 24 No content 25 """ 26 await self._http.request(f"/api/v1/ssh_keys/{ssh_key}", method="DELETE")
AsyncSshKeyResource(http: archastro.platform.runtime.http_client.HttpClient)
async def
delete(self, ssh_key: str) -> None:
15 async def delete(self, ssh_key: str) -> None: 16 """ 17 Revoke an SSH public key 18 Revokes an owned key immediately. The key remains visible as audit metadata. 19 20 Args: 21 ssh_key: Registered SSH key ID (`ssk_...`). 22 23 Returns: 24 No content 25 """ 26 await self._http.request(f"/api/v1/ssh_keys/{ssh_key}", method="DELETE")
Revoke an SSH public key Revokes an owned key immediately. The key remains visible as audit metadata.
Arguments:
- ssh_key: Registered SSH key ID (
ssk_...).
Returns:
No content
class
SshKeyResource:
29class SshKeyResource: 30 def __init__(self, http: SyncHttpClient): 31 self._http = http 32 33 def delete(self, ssh_key: str) -> None: 34 """ 35 Revoke an SSH public key 36 Revokes an owned key immediately. The key remains visible as audit metadata. 37 38 Args: 39 ssh_key: Registered SSH key ID (`ssk_...`). 40 41 Returns: 42 No content 43 """ 44 self._http.request(f"/api/v1/ssh_keys/{ssh_key}", method="DELETE")
SshKeyResource(http: archastro.platform.runtime.http_client.SyncHttpClient)
def
delete(self, ssh_key: str) -> None:
33 def delete(self, ssh_key: str) -> None: 34 """ 35 Revoke an SSH public key 36 Revokes an owned key immediately. The key remains visible as audit metadata. 37 38 Args: 39 ssh_key: Registered SSH key ID (`ssk_...`). 40 41 Returns: 42 No content 43 """ 44 self._http.request(f"/api/v1/ssh_keys/{ssh_key}", method="DELETE")
Revoke an SSH public key Revokes an owned key immediately. The key remains visible as audit metadata.
Arguments:
- ssh_key: Registered SSH key ID (
ssk_...).
Returns:
No content