archastro.platform.v1.resources.external_object_capabilities
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: 05e042d75417 4 5from __future__ import annotations 6 7from typing import Any, TypedDict 8 9from ...runtime.http_client import HttpClient, SyncHttpClient 10from ...types.common import RuntimeCapability 11 12 13class ExternalObjectCapabilityCreateInput(TypedDict): 14 "Issue a revocable capability for hosted external-object bindings" 15 16 bindings: dict[str, Any] 17 subject: str 18 19 20class AsyncExternalObjectCapabilityResource: 21 def __init__(self, http: HttpClient): 22 self._http = http 23 24 async def remove(self) -> None: 25 """ 26 Revoke every active external-object capability for a hosted workload 27 28 Returns: 29 No content 30 """ 31 await self._http.request("/api/v1/external_object_capabilities", method="DELETE") 32 33 async def create(self, input: ExternalObjectCapabilityCreateInput) -> RuntimeCapability: 34 """ 35 Issue a revocable capability for hosted external-object bindings 36 37 Args: 38 input: Request body. 39 40 Returns: 41 Gateway bootstrap values for one hosted workload 42 """ 43 return await self._http.request( 44 "/api/v1/external_object_capabilities", 45 method="POST", 46 body=input, 47 response_type=RuntimeCapability, 48 ) 49 50 51class ExternalObjectCapabilityResource: 52 def __init__(self, http: SyncHttpClient): 53 self._http = http 54 55 def remove(self) -> None: 56 """ 57 Revoke every active external-object capability for a hosted workload 58 59 Returns: 60 No content 61 """ 62 self._http.request("/api/v1/external_object_capabilities", method="DELETE") 63 64 def create(self, input: ExternalObjectCapabilityCreateInput) -> RuntimeCapability: 65 """ 66 Issue a revocable capability for hosted external-object bindings 67 68 Args: 69 input: Request body. 70 71 Returns: 72 Gateway bootstrap values for one hosted workload 73 """ 74 return self._http.request( 75 "/api/v1/external_object_capabilities", 76 method="POST", 77 body=input, 78 response_type=RuntimeCapability, 79 )
class
ExternalObjectCapabilityCreateInput(typing.TypedDict):
14class ExternalObjectCapabilityCreateInput(TypedDict): 15 "Issue a revocable capability for hosted external-object bindings" 16 17 bindings: dict[str, Any] 18 subject: str
Issue a revocable capability for hosted external-object bindings
class
AsyncExternalObjectCapabilityResource:
21class AsyncExternalObjectCapabilityResource: 22 def __init__(self, http: HttpClient): 23 self._http = http 24 25 async def remove(self) -> None: 26 """ 27 Revoke every active external-object capability for a hosted workload 28 29 Returns: 30 No content 31 """ 32 await self._http.request("/api/v1/external_object_capabilities", method="DELETE") 33 34 async def create(self, input: ExternalObjectCapabilityCreateInput) -> RuntimeCapability: 35 """ 36 Issue a revocable capability for hosted external-object bindings 37 38 Args: 39 input: Request body. 40 41 Returns: 42 Gateway bootstrap values for one hosted workload 43 """ 44 return await self._http.request( 45 "/api/v1/external_object_capabilities", 46 method="POST", 47 body=input, 48 response_type=RuntimeCapability, 49 )
AsyncExternalObjectCapabilityResource(http: archastro.platform.runtime.http_client.HttpClient)
async def
remove(self) -> None:
25 async def remove(self) -> None: 26 """ 27 Revoke every active external-object capability for a hosted workload 28 29 Returns: 30 No content 31 """ 32 await self._http.request("/api/v1/external_object_capabilities", method="DELETE")
Revoke every active external-object capability for a hosted workload
Returns:
No content
async def
create( self, input: ExternalObjectCapabilityCreateInput) -> archastro.platform.types.common.RuntimeCapability:
34 async def create(self, input: ExternalObjectCapabilityCreateInput) -> RuntimeCapability: 35 """ 36 Issue a revocable capability for hosted external-object bindings 37 38 Args: 39 input: Request body. 40 41 Returns: 42 Gateway bootstrap values for one hosted workload 43 """ 44 return await self._http.request( 45 "/api/v1/external_object_capabilities", 46 method="POST", 47 body=input, 48 response_type=RuntimeCapability, 49 )
Issue a revocable capability for hosted external-object bindings
Arguments:
- input: Request body.
Returns:
Gateway bootstrap values for one hosted workload
class
ExternalObjectCapabilityResource:
52class ExternalObjectCapabilityResource: 53 def __init__(self, http: SyncHttpClient): 54 self._http = http 55 56 def remove(self) -> None: 57 """ 58 Revoke every active external-object capability for a hosted workload 59 60 Returns: 61 No content 62 """ 63 self._http.request("/api/v1/external_object_capabilities", method="DELETE") 64 65 def create(self, input: ExternalObjectCapabilityCreateInput) -> RuntimeCapability: 66 """ 67 Issue a revocable capability for hosted external-object bindings 68 69 Args: 70 input: Request body. 71 72 Returns: 73 Gateway bootstrap values for one hosted workload 74 """ 75 return self._http.request( 76 "/api/v1/external_object_capabilities", 77 method="POST", 78 body=input, 79 response_type=RuntimeCapability, 80 )
ExternalObjectCapabilityResource(http: archastro.platform.runtime.http_client.SyncHttpClient)
def
remove(self) -> None:
56 def remove(self) -> None: 57 """ 58 Revoke every active external-object capability for a hosted workload 59 60 Returns: 61 No content 62 """ 63 self._http.request("/api/v1/external_object_capabilities", method="DELETE")
Revoke every active external-object capability for a hosted workload
Returns:
No content
def
create( self, input: ExternalObjectCapabilityCreateInput) -> archastro.platform.types.common.RuntimeCapability:
65 def create(self, input: ExternalObjectCapabilityCreateInput) -> RuntimeCapability: 66 """ 67 Issue a revocable capability for hosted external-object bindings 68 69 Args: 70 input: Request body. 71 72 Returns: 73 Gateway bootstrap values for one hosted workload 74 """ 75 return self._http.request( 76 "/api/v1/external_object_capabilities", 77 method="POST", 78 body=input, 79 response_type=RuntimeCapability, 80 )
Issue a revocable capability for hosted external-object bindings
Arguments:
- input: Request body.
Returns:
Gateway bootstrap values for one hosted workload