|
29 | 29 | )
|
30 | 30 | from .....pagination import SyncTasksPage, AsyncTasksPage
|
31 | 31 | from ....._base_client import AsyncPaginator, make_request_options
|
| 32 | +from .....types.shared.task import Task |
| 33 | +from .....types.shared_params.task_spec import TaskSpec |
32 | 34 | from .....types.environments.automations import (
|
33 | 35 | task_list_params,
|
34 | 36 | task_start_params,
|
|
37 | 39 | task_update_params,
|
38 | 40 | task_retrieve_params,
|
39 | 41 | )
|
40 |
| -from .....types.environments.automations.task import Task |
41 |
| -from .....types.environments.automations.task_spec_param import TaskSpecParam |
42 |
| -from .....types.environments.automations.task_metadata_param import TaskMetadataParam |
| 42 | +from .....types.shared_params.task_metadata import TaskMetadata |
43 | 43 | from .....types.environments.automations.task_start_response import TaskStartResponse
|
44 | 44 | from .....types.environments.automations.task_create_response import TaskCreateResponse
|
45 | 45 | from .....types.environments.automations.task_retrieve_response import TaskRetrieveResponse
|
@@ -76,8 +76,8 @@ def create(
|
76 | 76 | *,
|
77 | 77 | depends_on: List[str] | NotGiven = NOT_GIVEN,
|
78 | 78 | environment_id: str | NotGiven = NOT_GIVEN,
|
79 |
| - metadata: TaskMetadataParam | NotGiven = NOT_GIVEN, |
80 |
| - spec: TaskSpecParam | NotGiven = NOT_GIVEN, |
| 79 | + metadata: TaskMetadata | NotGiven = NOT_GIVEN, |
| 80 | + spec: TaskSpec | NotGiven = NOT_GIVEN, |
81 | 81 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
82 | 82 | # The extra values given here take precedence over values defined on the client or passed to this method.
|
83 | 83 | extra_headers: Headers | None = None,
|
@@ -344,8 +344,8 @@ async def create(
|
344 | 344 | *,
|
345 | 345 | depends_on: List[str] | NotGiven = NOT_GIVEN,
|
346 | 346 | environment_id: str | NotGiven = NOT_GIVEN,
|
347 |
| - metadata: TaskMetadataParam | NotGiven = NOT_GIVEN, |
348 |
| - spec: TaskSpecParam | NotGiven = NOT_GIVEN, |
| 347 | + metadata: TaskMetadata | NotGiven = NOT_GIVEN, |
| 348 | + spec: TaskSpec | NotGiven = NOT_GIVEN, |
349 | 349 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
350 | 350 | # The extra values given here take precedence over values defined on the client or passed to this method.
|
351 | 351 | extra_headers: Headers | None = None,
|
|
0 commit comments