archastro.platform.v1.resources.installation_sources

 1# Copyright (c) 2026 ArchAstro Inc. All Rights Reserved.
 2# This file is auto-generated by @archastro/sdk-generator. Do not edit.
 3# Content hash: 9835142c86fe
 4
 5from __future__ import annotations
 6
 7from ...runtime.http_client import HttpClient, SyncHttpClient
 8
 9
10class AsyncInstallationSourceResource:
11    def __init__(self, http: HttpClient):
12        self._http = http
13
14    async def delete(self, source: str) -> None:
15        """
16        Remove a source from an installation
17        Detaches and permanently deletes a source from an installation. This action
18        cannot be undone; the source and its associated content will no longer be
19        available to the installation's agent.
20        This endpoint requires an app-scoped token. You may identify the target
21        indirectly by providing only the `source` ID the installation is resolved
22        automatically from the source record. Providing `installation` explicitly
23        is also accepted and may be more efficient.
24
25        Args:
26            source: Source ID (`cso_...`) of the source to remove.
27
28        Returns:
29            No content
30        """
31        await self._http.request(f"/api/v1/installation_sources/{source}", method="DELETE")
32
33
34class InstallationSourceResource:
35    def __init__(self, http: SyncHttpClient):
36        self._http = http
37
38    def delete(self, source: str) -> None:
39        """
40        Remove a source from an installation
41        Detaches and permanently deletes a source from an installation. This action
42        cannot be undone; the source and its associated content will no longer be
43        available to the installation's agent.
44        This endpoint requires an app-scoped token. You may identify the target
45        indirectly by providing only the `source` ID the installation is resolved
46        automatically from the source record. Providing `installation` explicitly
47        is also accepted and may be more efficient.
48
49        Args:
50            source: Source ID (`cso_...`) of the source to remove.
51
52        Returns:
53            No content
54        """
55        self._http.request(f"/api/v1/installation_sources/{source}", method="DELETE")
class AsyncInstallationSourceResource:
11class AsyncInstallationSourceResource:
12    def __init__(self, http: HttpClient):
13        self._http = http
14
15    async def delete(self, source: str) -> None:
16        """
17        Remove a source from an installation
18        Detaches and permanently deletes a source from an installation. This action
19        cannot be undone; the source and its associated content will no longer be
20        available to the installation's agent.
21        This endpoint requires an app-scoped token. You may identify the target
22        indirectly by providing only the `source` ID the installation is resolved
23        automatically from the source record. Providing `installation` explicitly
24        is also accepted and may be more efficient.
25
26        Args:
27            source: Source ID (`cso_...`) of the source to remove.
28
29        Returns:
30            No content
31        """
32        await self._http.request(f"/api/v1/installation_sources/{source}", method="DELETE")
AsyncInstallationSourceResource(http: archastro.platform.runtime.http_client.HttpClient)
12    def __init__(self, http: HttpClient):
13        self._http = http
async def delete(self, source: str) -> None:
15    async def delete(self, source: str) -> None:
16        """
17        Remove a source from an installation
18        Detaches and permanently deletes a source from an installation. This action
19        cannot be undone; the source and its associated content will no longer be
20        available to the installation's agent.
21        This endpoint requires an app-scoped token. You may identify the target
22        indirectly by providing only the `source` ID the installation is resolved
23        automatically from the source record. Providing `installation` explicitly
24        is also accepted and may be more efficient.
25
26        Args:
27            source: Source ID (`cso_...`) of the source to remove.
28
29        Returns:
30            No content
31        """
32        await self._http.request(f"/api/v1/installation_sources/{source}", method="DELETE")

Remove a source from an installation Detaches and permanently deletes a source from an installation. This action cannot be undone; the source and its associated content will no longer be available to the installation's agent. This endpoint requires an app-scoped token. You may identify the target indirectly by providing only the source ID the installation is resolved automatically from the source record. Providing installation explicitly is also accepted and may be more efficient.

Arguments:
  • source: Source ID (cso_...) of the source to remove.
Returns:

No content

class InstallationSourceResource:
35class InstallationSourceResource:
36    def __init__(self, http: SyncHttpClient):
37        self._http = http
38
39    def delete(self, source: str) -> None:
40        """
41        Remove a source from an installation
42        Detaches and permanently deletes a source from an installation. This action
43        cannot be undone; the source and its associated content will no longer be
44        available to the installation's agent.
45        This endpoint requires an app-scoped token. You may identify the target
46        indirectly by providing only the `source` ID the installation is resolved
47        automatically from the source record. Providing `installation` explicitly
48        is also accepted and may be more efficient.
49
50        Args:
51            source: Source ID (`cso_...`) of the source to remove.
52
53        Returns:
54            No content
55        """
56        self._http.request(f"/api/v1/installation_sources/{source}", method="DELETE")
InstallationSourceResource(http: archastro.platform.runtime.http_client.SyncHttpClient)
36    def __init__(self, http: SyncHttpClient):
37        self._http = http
def delete(self, source: str) -> None:
39    def delete(self, source: str) -> None:
40        """
41        Remove a source from an installation
42        Detaches and permanently deletes a source from an installation. This action
43        cannot be undone; the source and its associated content will no longer be
44        available to the installation's agent.
45        This endpoint requires an app-scoped token. You may identify the target
46        indirectly by providing only the `source` ID the installation is resolved
47        automatically from the source record. Providing `installation` explicitly
48        is also accepted and may be more efficient.
49
50        Args:
51            source: Source ID (`cso_...`) of the source to remove.
52
53        Returns:
54            No content
55        """
56        self._http.request(f"/api/v1/installation_sources/{source}", method="DELETE")

Remove a source from an installation Detaches and permanently deletes a source from an installation. This action cannot be undone; the source and its associated content will no longer be available to the installation's agent. This endpoint requires an app-scoped token. You may identify the target indirectly by providing only the source ID the installation is resolved automatically from the source record. Providing installation explicitly is also accepted and may be more efficient.

Arguments:
  • source: Source ID (cso_...) of the source to remove.
Returns:

No content