archastro.platform.v1.resources.task_ownership_conversions

 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: 3294b6630a47
 4
 5from __future__ import annotations
 6
 7from ...runtime.http_client import HttpClient, SyncHttpClient
 8from ...types.tasks import TaskOwnershipJob
 9
10
11class AsyncTaskOwnershipConversionResource:
12    def __init__(self, http: HttpClient):
13        self._http = http
14
15    async def get(self, job_id: str) -> TaskOwnershipJob:
16        """
17        Read the status of a task ownership conversion
18        Returns only the requesting user's job status, even after task visibility changes.
19
20        Args:
21            job_id: The accepted background job ID.
22
23        Returns:
24            Current background job state.
25        """
26        return await self._http.request(
27            f"/api/v1/task_ownership_conversions/{job_id}",
28            response_type=TaskOwnershipJob,
29        )
30
31
32class TaskOwnershipConversionResource:
33    def __init__(self, http: SyncHttpClient):
34        self._http = http
35
36    def get(self, job_id: str) -> TaskOwnershipJob:
37        """
38        Read the status of a task ownership conversion
39        Returns only the requesting user's job status, even after task visibility changes.
40
41        Args:
42            job_id: The accepted background job ID.
43
44        Returns:
45            Current background job state.
46        """
47        return self._http.request(
48            f"/api/v1/task_ownership_conversions/{job_id}",
49            response_type=TaskOwnershipJob,
50        )
class AsyncTaskOwnershipConversionResource:
12class AsyncTaskOwnershipConversionResource:
13    def __init__(self, http: HttpClient):
14        self._http = http
15
16    async def get(self, job_id: str) -> TaskOwnershipJob:
17        """
18        Read the status of a task ownership conversion
19        Returns only the requesting user's job status, even after task visibility changes.
20
21        Args:
22            job_id: The accepted background job ID.
23
24        Returns:
25            Current background job state.
26        """
27        return await self._http.request(
28            f"/api/v1/task_ownership_conversions/{job_id}",
29            response_type=TaskOwnershipJob,
30        )
AsyncTaskOwnershipConversionResource(http: archastro.platform.runtime.http_client.HttpClient)
13    def __init__(self, http: HttpClient):
14        self._http = http
async def get(self, job_id: str) -> archastro.platform.types.tasks.TaskOwnershipJob:
16    async def get(self, job_id: str) -> TaskOwnershipJob:
17        """
18        Read the status of a task ownership conversion
19        Returns only the requesting user's job status, even after task visibility changes.
20
21        Args:
22            job_id: The accepted background job ID.
23
24        Returns:
25            Current background job state.
26        """
27        return await self._http.request(
28            f"/api/v1/task_ownership_conversions/{job_id}",
29            response_type=TaskOwnershipJob,
30        )

Read the status of a task ownership conversion Returns only the requesting user's job status, even after task visibility changes.

Arguments:
  • job_id: The accepted background job ID.
Returns:

Current background job state.

class TaskOwnershipConversionResource:
33class TaskOwnershipConversionResource:
34    def __init__(self, http: SyncHttpClient):
35        self._http = http
36
37    def get(self, job_id: str) -> TaskOwnershipJob:
38        """
39        Read the status of a task ownership conversion
40        Returns only the requesting user's job status, even after task visibility changes.
41
42        Args:
43            job_id: The accepted background job ID.
44
45        Returns:
46            Current background job state.
47        """
48        return self._http.request(
49            f"/api/v1/task_ownership_conversions/{job_id}",
50            response_type=TaskOwnershipJob,
51        )
TaskOwnershipConversionResource(http: archastro.platform.runtime.http_client.SyncHttpClient)
34    def __init__(self, http: SyncHttpClient):
35        self._http = http
def get(self, job_id: str) -> archastro.platform.types.tasks.TaskOwnershipJob:
37    def get(self, job_id: str) -> TaskOwnershipJob:
38        """
39        Read the status of a task ownership conversion
40        Returns only the requesting user's job status, even after task visibility changes.
41
42        Args:
43            job_id: The accepted background job ID.
44
45        Returns:
46            Current background job state.
47        """
48        return self._http.request(
49            f"/api/v1/task_ownership_conversions/{job_id}",
50            response_type=TaskOwnershipJob,
51        )

Read the status of a task ownership conversion Returns only the requesting user's job status, even after task visibility changes.

Arguments:
  • job_id: The accepted background job ID.
Returns:

Current background job state.