archastro.platform.v1.resources.automation_runs

 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: bb0e8487be4c
 4
 5from __future__ import annotations
 6
 7from ...runtime.http_client import HttpClient, SyncHttpClient
 8from ...types.automations import AutomationRun
 9
10
11class AsyncAutomationRunResource:
12    def __init__(self, http: HttpClient):
13        self._http = http
14
15    async def get(self, automation_run: str) -> AutomationRun:
16        """
17        Retrieve an automation run
18        Returns a single run created by an invoked automation.
19        This endpoint is restricted to runs whose parent automation has
20        `type: "invoked"`. Attempting to retrieve a run from a non-invoked
21        automation returns 404. The authenticated user must have access to the
22        automation run's parent automation within their workspace.
23
24        Args:
25            automation_run: Automation run ID (`arun_...`). Must belong to an invoked automation accessible to the authenticated user.
26
27        Returns:
28            The requested automation run.
29        """
30        return await self._http.request(
31            f"/api/v1/automation_runs/{automation_run}",
32            response_type=AutomationRun,
33        )
34
35
36class AutomationRunResource:
37    def __init__(self, http: SyncHttpClient):
38        self._http = http
39
40    def get(self, automation_run: str) -> AutomationRun:
41        """
42        Retrieve an automation run
43        Returns a single run created by an invoked automation.
44        This endpoint is restricted to runs whose parent automation has
45        `type: "invoked"`. Attempting to retrieve a run from a non-invoked
46        automation returns 404. The authenticated user must have access to the
47        automation run's parent automation within their workspace.
48
49        Args:
50            automation_run: Automation run ID (`arun_...`). Must belong to an invoked automation accessible to the authenticated user.
51
52        Returns:
53            The requested automation run.
54        """
55        return self._http.request(
56            f"/api/v1/automation_runs/{automation_run}",
57            response_type=AutomationRun,
58        )
class AsyncAutomationRunResource:
12class AsyncAutomationRunResource:
13    def __init__(self, http: HttpClient):
14        self._http = http
15
16    async def get(self, automation_run: str) -> AutomationRun:
17        """
18        Retrieve an automation run
19        Returns a single run created by an invoked automation.
20        This endpoint is restricted to runs whose parent automation has
21        `type: "invoked"`. Attempting to retrieve a run from a non-invoked
22        automation returns 404. The authenticated user must have access to the
23        automation run's parent automation within their workspace.
24
25        Args:
26            automation_run: Automation run ID (`arun_...`). Must belong to an invoked automation accessible to the authenticated user.
27
28        Returns:
29            The requested automation run.
30        """
31        return await self._http.request(
32            f"/api/v1/automation_runs/{automation_run}",
33            response_type=AutomationRun,
34        )
AsyncAutomationRunResource(http: archastro.platform.runtime.http_client.HttpClient)
13    def __init__(self, http: HttpClient):
14        self._http = http
async def get( self, automation_run: str) -> archastro.platform.types.automations.AutomationRun:
16    async def get(self, automation_run: str) -> AutomationRun:
17        """
18        Retrieve an automation run
19        Returns a single run created by an invoked automation.
20        This endpoint is restricted to runs whose parent automation has
21        `type: "invoked"`. Attempting to retrieve a run from a non-invoked
22        automation returns 404. The authenticated user must have access to the
23        automation run's parent automation within their workspace.
24
25        Args:
26            automation_run: Automation run ID (`arun_...`). Must belong to an invoked automation accessible to the authenticated user.
27
28        Returns:
29            The requested automation run.
30        """
31        return await self._http.request(
32            f"/api/v1/automation_runs/{automation_run}",
33            response_type=AutomationRun,
34        )

Retrieve an automation run Returns a single run created by an invoked automation. This endpoint is restricted to runs whose parent automation has type: "invoked". Attempting to retrieve a run from a non-invoked automation returns 404. The authenticated user must have access to the automation run's parent automation within their workspace.

Arguments:
  • automation_run: Automation run ID (arun_...). Must belong to an invoked automation accessible to the authenticated user.
Returns:

The requested automation run.

class AutomationRunResource:
37class AutomationRunResource:
38    def __init__(self, http: SyncHttpClient):
39        self._http = http
40
41    def get(self, automation_run: str) -> AutomationRun:
42        """
43        Retrieve an automation run
44        Returns a single run created by an invoked automation.
45        This endpoint is restricted to runs whose parent automation has
46        `type: "invoked"`. Attempting to retrieve a run from a non-invoked
47        automation returns 404. The authenticated user must have access to the
48        automation run's parent automation within their workspace.
49
50        Args:
51            automation_run: Automation run ID (`arun_...`). Must belong to an invoked automation accessible to the authenticated user.
52
53        Returns:
54            The requested automation run.
55        """
56        return self._http.request(
57            f"/api/v1/automation_runs/{automation_run}",
58            response_type=AutomationRun,
59        )
AutomationRunResource(http: archastro.platform.runtime.http_client.SyncHttpClient)
38    def __init__(self, http: SyncHttpClient):
39        self._http = http
def get( self, automation_run: str) -> archastro.platform.types.automations.AutomationRun:
41    def get(self, automation_run: str) -> AutomationRun:
42        """
43        Retrieve an automation run
44        Returns a single run created by an invoked automation.
45        This endpoint is restricted to runs whose parent automation has
46        `type: "invoked"`. Attempting to retrieve a run from a non-invoked
47        automation returns 404. The authenticated user must have access to the
48        automation run's parent automation within their workspace.
49
50        Args:
51            automation_run: Automation run ID (`arun_...`). Must belong to an invoked automation accessible to the authenticated user.
52
53        Returns:
54            The requested automation run.
55        """
56        return self._http.request(
57            f"/api/v1/automation_runs/{automation_run}",
58            response_type=AutomationRun,
59        )

Retrieve an automation run Returns a single run created by an invoked automation. This endpoint is restricted to runs whose parent automation has type: "invoked". Attempting to retrieve a run from a non-invoked automation returns 404. The authenticated user must have access to the automation run's parent automation within their workspace.

Arguments:
  • automation_run: Automation run ID (arun_...). Must belong to an invoked automation accessible to the authenticated user.
Returns:

The requested automation run.