archastro.platform.v1.resources.private_service_definitions

 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: f6f726e7a2f3
 4
 5from __future__ import annotations
 6
 7from ...runtime.http_client import HttpClient, SyncHttpClient
 8
 9
10class AsyncPrivateServiceDefinitionResource:
11    def __init__(self, http: HttpClient):
12        self._http = http
13
14    async def get(self, app_id: str, private_service_id: str) -> dict[str, str]:
15        """
16        Download an enrolled private service definition
17        Returns the canonical callable definition authorized by an enrollment token.
18
19        Returns:
20            Raw content
21        """
22        return await self._http.request_raw(
23            f"/api/v1/private_service_definitions/{app_id}/{private_service_id}",
24        )
25
26
27class PrivateServiceDefinitionResource:
28    def __init__(self, http: SyncHttpClient):
29        self._http = http
30
31    def get(self, app_id: str, private_service_id: str) -> dict[str, str]:
32        """
33        Download an enrolled private service definition
34        Returns the canonical callable definition authorized by an enrollment token.
35
36        Returns:
37            Raw content
38        """
39        return self._http.request_raw(
40            f"/api/v1/private_service_definitions/{app_id}/{private_service_id}",
41        )
class AsyncPrivateServiceDefinitionResource:
11class AsyncPrivateServiceDefinitionResource:
12    def __init__(self, http: HttpClient):
13        self._http = http
14
15    async def get(self, app_id: str, private_service_id: str) -> dict[str, str]:
16        """
17        Download an enrolled private service definition
18        Returns the canonical callable definition authorized by an enrollment token.
19
20        Returns:
21            Raw content
22        """
23        return await self._http.request_raw(
24            f"/api/v1/private_service_definitions/{app_id}/{private_service_id}",
25        )
AsyncPrivateServiceDefinitionResource(http: archastro.platform.runtime.http_client.HttpClient)
12    def __init__(self, http: HttpClient):
13        self._http = http
async def get(self, app_id: str, private_service_id: str) -> dict[str, str]:
15    async def get(self, app_id: str, private_service_id: str) -> dict[str, str]:
16        """
17        Download an enrolled private service definition
18        Returns the canonical callable definition authorized by an enrollment token.
19
20        Returns:
21            Raw content
22        """
23        return await self._http.request_raw(
24            f"/api/v1/private_service_definitions/{app_id}/{private_service_id}",
25        )

Download an enrolled private service definition Returns the canonical callable definition authorized by an enrollment token.

Returns:

Raw content

class PrivateServiceDefinitionResource:
28class PrivateServiceDefinitionResource:
29    def __init__(self, http: SyncHttpClient):
30        self._http = http
31
32    def get(self, app_id: str, private_service_id: str) -> dict[str, str]:
33        """
34        Download an enrolled private service definition
35        Returns the canonical callable definition authorized by an enrollment token.
36
37        Returns:
38            Raw content
39        """
40        return self._http.request_raw(
41            f"/api/v1/private_service_definitions/{app_id}/{private_service_id}",
42        )
PrivateServiceDefinitionResource(http: archastro.platform.runtime.http_client.SyncHttpClient)
29    def __init__(self, http: SyncHttpClient):
30        self._http = http
def get(self, app_id: str, private_service_id: str) -> dict[str, str]:
32    def get(self, app_id: str, private_service_id: str) -> dict[str, str]:
33        """
34        Download an enrolled private service definition
35        Returns the canonical callable definition authorized by an enrollment token.
36
37        Returns:
38            Raw content
39        """
40        return self._http.request_raw(
41            f"/api/v1/private_service_definitions/{app_id}/{private_service_id}",
42        )

Download an enrolled private service definition Returns the canonical callable definition authorized by an enrollment token.

Returns:

Raw content