windmill-api 1.481.0__py3-none-any.whl → 1.482.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of windmill-api might be problematic. Click here for more details.
- windmill_api/api/agent_workers/__init__.py +0 -0
- windmill_api/api/agent_workers/create_agent_token.py +149 -0
- windmill_api/api/app/sign_s3_objects.py +175 -0
- windmill_api/api/capture/set_capture_config.py +70 -7
- windmill_api/api/concurrency_groups/list_extended_jobs.py +15 -0
- windmill_api/api/gcp_trigger/__init__.py +0 -0
- windmill_api/api/gcp_trigger/create_gcp_trigger.py +105 -0
- windmill_api/api/gcp_trigger/delete_gcp_subscription.py +113 -0
- windmill_api/api/gcp_trigger/delete_gcp_trigger.py +101 -0
- windmill_api/api/gcp_trigger/exists_gcp_trigger.py +160 -0
- windmill_api/api/gcp_trigger/get_gcp_trigger.py +166 -0
- windmill_api/api/gcp_trigger/list_all_t_google_topic_subscriptions.py +179 -0
- windmill_api/api/gcp_trigger/list_gcp_triggers.py +237 -0
- windmill_api/api/gcp_trigger/list_google_topics.py +161 -0
- windmill_api/api/gcp_trigger/set_gcp_trigger_enabled.py +113 -0
- windmill_api/api/gcp_trigger/test_gcp_connection.py +105 -0
- windmill_api/api/gcp_trigger/update_gcp_trigger.py +113 -0
- windmill_api/api/job/batch_re_run_jobs.py +105 -0
- windmill_api/api/job/list_completed_jobs.py +15 -0
- windmill_api/api/job/list_filtered_jobs_uuids.py +633 -0
- windmill_api/api/job/{list_filtered_uuids.py → list_filtered_queue_uuids.py} +19 -4
- windmill_api/api/job/list_jobs.py +15 -0
- windmill_api/api/job/list_queue.py +15 -0
- windmill_api/api/job/list_selected_job_groups.py +104 -0
- windmill_api/models/add_granular_acls_kind.py +1 -0
- windmill_api/models/ai_config_code_completion_model_provider.py +1 -0
- windmill_api/models/ai_config_default_model_provider.py +1 -0
- windmill_api/models/ai_provider.py +1 -0
- windmill_api/models/ai_provider_model_provider.py +1 -0
- windmill_api/models/batch_re_run_jobs_json_body.py +84 -0
- windmill_api/models/batch_re_run_jobs_json_body_flow_options_by_path.py +66 -0
- windmill_api/models/batch_re_run_jobs_json_body_flow_options_by_path_additional_property.py +86 -0
- windmill_api/models/batch_re_run_jobs_json_body_flow_options_by_path_additional_property_input_transforms.py +123 -0
- windmill_api/models/batch_re_run_jobs_json_body_flow_options_by_path_additional_property_input_transforms_additional_property_type_0.py +78 -0
- windmill_api/models/batch_re_run_jobs_json_body_flow_options_by_path_additional_property_input_transforms_additional_property_type_0_type.py +8 -0
- windmill_api/models/batch_re_run_jobs_json_body_flow_options_by_path_additional_property_input_transforms_additional_property_type_1.py +75 -0
- windmill_api/models/batch_re_run_jobs_json_body_flow_options_by_path_additional_property_input_transforms_additional_property_type_1_type.py +8 -0
- windmill_api/models/batch_re_run_jobs_json_body_script_options_by_path.py +66 -0
- windmill_api/models/batch_re_run_jobs_json_body_script_options_by_path_additional_property.py +86 -0
- windmill_api/models/batch_re_run_jobs_json_body_script_options_by_path_additional_property_input_transforms.py +123 -0
- windmill_api/models/batch_re_run_jobs_json_body_script_options_by_path_additional_property_input_transforms_additional_property_type_0.py +78 -0
- windmill_api/models/batch_re_run_jobs_json_body_script_options_by_path_additional_property_input_transforms_additional_property_type_0_type.py +8 -0
- windmill_api/models/batch_re_run_jobs_json_body_script_options_by_path_additional_property_input_transforms_additional_property_type_1.py +75 -0
- windmill_api/models/batch_re_run_jobs_json_body_script_options_by_path_additional_property_input_transforms_additional_property_type_1_type.py +8 -0
- windmill_api/models/capture_config_trigger_kind.py +1 -0
- windmill_api/models/capture_trigger_kind.py +1 -0
- windmill_api/models/create_agent_token_json_body.py +73 -0
- windmill_api/models/create_gcp_trigger_json_body.py +115 -0
- windmill_api/models/create_gcp_trigger_json_body_subscription_mode.py +69 -0
- windmill_api/models/create_gcp_trigger_json_body_subscription_mode_subscription_mode.py +9 -0
- windmill_api/models/delete_gcp_subscription.py +58 -0
- windmill_api/models/delete_gcp_subscription_json_body.py +58 -0
- windmill_api/models/delivery_type.py +9 -0
- windmill_api/models/edit_copilot_config_json_body_code_completion_model_provider.py +1 -0
- windmill_api/models/edit_copilot_config_json_body_default_model_provider.py +1 -0
- windmill_api/models/edit_gcp_trigger.py +114 -0
- windmill_api/models/edit_gcp_trigger_subscription_mode.py +66 -0
- windmill_api/models/edit_gcp_trigger_subscription_mode_subscription_mode.py +9 -0
- windmill_api/models/gcp_create_update_subscription.py +91 -0
- windmill_api/models/gcp_create_update_subscription_delivery_config.py +75 -0
- windmill_api/models/gcp_create_update_subscription_delivery_type.py +9 -0
- windmill_api/models/gcp_existing_subscription.py +65 -0
- windmill_api/models/gcp_subscription_mode_config.py +66 -0
- windmill_api/models/gcp_subscription_mode_config_subscription_mode.py +9 -0
- windmill_api/models/gcp_trigger.py +206 -0
- windmill_api/models/gcp_trigger_delivery_config.py +75 -0
- windmill_api/models/gcp_trigger_delivery_type.py +9 -0
- windmill_api/models/gcp_trigger_extra_perms.py +44 -0
- windmill_api/models/get_all_topic_subscription.py +58 -0
- windmill_api/models/get_capture_configs_response_200_item_trigger_kind.py +1 -0
- windmill_api/models/get_capture_response_200_trigger_kind.py +1 -0
- windmill_api/models/get_copilot_info_response_200_code_completion_model_provider.py +1 -0
- windmill_api/models/get_copilot_info_response_200_default_model_provider.py +1 -0
- windmill_api/models/get_gcp_trigger_response_200.py +206 -0
- windmill_api/models/get_gcp_trigger_response_200_delivery_config.py +75 -0
- windmill_api/models/get_gcp_trigger_response_200_delivery_type.py +9 -0
- windmill_api/models/get_gcp_trigger_response_200_extra_perms.py +44 -0
- windmill_api/models/get_granular_acls_kind.py +1 -0
- windmill_api/models/get_settings_response_200_ai_config_code_completion_model_provider.py +1 -0
- windmill_api/models/get_settings_response_200_ai_config_default_model_provider.py +1 -0
- windmill_api/models/get_triggers_count_of_flow_response_200.py +8 -0
- windmill_api/models/get_triggers_count_of_script_response_200.py +8 -0
- windmill_api/models/get_used_triggers_response_200.py +7 -0
- windmill_api/models/list_all_t_google_topic_subscriptions_json_body.py +58 -0
- windmill_api/models/list_captures_response_200_item_trigger_kind.py +1 -0
- windmill_api/models/list_captures_trigger_kind.py +1 -0
- windmill_api/models/list_gcp_triggers_response_200_item.py +210 -0
- windmill_api/models/list_gcp_triggers_response_200_item_delivery_config.py +75 -0
- windmill_api/models/list_gcp_triggers_response_200_item_delivery_type.py +9 -0
- windmill_api/models/list_gcp_triggers_response_200_item_extra_perms.py +44 -0
- windmill_api/models/new_gcp_trigger.py +114 -0
- windmill_api/models/new_gcp_trigger_subscription_mode.py +66 -0
- windmill_api/models/new_gcp_trigger_subscription_mode_subscription_mode.py +9 -0
- windmill_api/models/ping_capture_config_trigger_kind.py +1 -0
- windmill_api/models/preview.py +8 -0
- windmill_api/models/push_config.py +75 -0
- windmill_api/models/remove_granular_acls_kind.py +1 -0
- windmill_api/models/run_script_preview_json_body.py +8 -0
- windmill_api/models/s3_object.py +84 -0
- windmill_api/models/set_capture_config_json_body_trigger_kind.py +1 -0
- windmill_api/models/set_capture_config_response_200.py +44 -0
- windmill_api/models/set_gcp_trigger_enabled_json_body.py +58 -0
- windmill_api/models/sign_s3_objects_json_body.py +73 -0
- windmill_api/models/sign_s3_objects_json_body_s3_objects_item.py +84 -0
- windmill_api/models/sign_s3_objects_response_200_item.py +84 -0
- windmill_api/models/subscription_mode.py +9 -0
- windmill_api/models/test_gcp_connection_json_body.py +64 -0
- windmill_api/models/test_gcp_connection_json_body_connection.py +44 -0
- windmill_api/models/triggers_count.py +8 -0
- windmill_api/models/update_gcp_trigger_json_body.py +115 -0
- windmill_api/models/update_gcp_trigger_json_body_subscription_mode.py +69 -0
- windmill_api/models/update_gcp_trigger_json_body_subscription_mode_subscription_mode.py +9 -0
- {windmill_api-1.481.0.dist-info → windmill_api-1.482.1.dist-info}/METADATA +1 -1
- {windmill_api-1.481.0.dist-info → windmill_api-1.482.1.dist-info}/RECORD +116 -37
- {windmill_api-1.481.0.dist-info → windmill_api-1.482.1.dist-info}/LICENSE +0 -0
- {windmill_api-1.481.0.dist-info → windmill_api-1.482.1.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,633 @@
|
|
|
1
|
+
import datetime
|
|
2
|
+
from http import HTTPStatus
|
|
3
|
+
from typing import Any, Dict, List, Optional, Union, cast
|
|
4
|
+
|
|
5
|
+
import httpx
|
|
6
|
+
|
|
7
|
+
from ... import errors
|
|
8
|
+
from ...client import AuthenticatedClient, Client
|
|
9
|
+
from ...types import UNSET, Response, Unset
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
def _get_kwargs(
|
|
13
|
+
workspace: str,
|
|
14
|
+
*,
|
|
15
|
+
created_by: Union[Unset, None, str] = UNSET,
|
|
16
|
+
label: Union[Unset, None, str] = UNSET,
|
|
17
|
+
worker: Union[Unset, None, str] = UNSET,
|
|
18
|
+
parent_job: Union[Unset, None, str] = UNSET,
|
|
19
|
+
script_path_exact: Union[Unset, None, str] = UNSET,
|
|
20
|
+
script_path_start: Union[Unset, None, str] = UNSET,
|
|
21
|
+
schedule_path: Union[Unset, None, str] = UNSET,
|
|
22
|
+
script_hash: Union[Unset, None, str] = UNSET,
|
|
23
|
+
started_before: Union[Unset, None, datetime.datetime] = UNSET,
|
|
24
|
+
started_after: Union[Unset, None, datetime.datetime] = UNSET,
|
|
25
|
+
created_before: Union[Unset, None, datetime.datetime] = UNSET,
|
|
26
|
+
created_after: Union[Unset, None, datetime.datetime] = UNSET,
|
|
27
|
+
created_or_started_before: Union[Unset, None, datetime.datetime] = UNSET,
|
|
28
|
+
running: Union[Unset, None, bool] = UNSET,
|
|
29
|
+
scheduled_for_before_now: Union[Unset, None, bool] = UNSET,
|
|
30
|
+
created_or_started_after: Union[Unset, None, datetime.datetime] = UNSET,
|
|
31
|
+
created_or_started_after_completed_jobs: Union[Unset, None, datetime.datetime] = UNSET,
|
|
32
|
+
job_kinds: Union[Unset, None, str] = UNSET,
|
|
33
|
+
suspended: Union[Unset, None, bool] = UNSET,
|
|
34
|
+
args: Union[Unset, None, str] = UNSET,
|
|
35
|
+
tag: Union[Unset, None, str] = UNSET,
|
|
36
|
+
result: Union[Unset, None, str] = UNSET,
|
|
37
|
+
page: Union[Unset, None, int] = UNSET,
|
|
38
|
+
per_page: Union[Unset, None, int] = UNSET,
|
|
39
|
+
is_skipped: Union[Unset, None, bool] = UNSET,
|
|
40
|
+
is_flow_step: Union[Unset, None, bool] = UNSET,
|
|
41
|
+
has_null_parent: Union[Unset, None, bool] = UNSET,
|
|
42
|
+
success: Union[Unset, None, bool] = UNSET,
|
|
43
|
+
all_workspaces: Union[Unset, None, bool] = UNSET,
|
|
44
|
+
is_not_schedule: Union[Unset, None, bool] = UNSET,
|
|
45
|
+
) -> Dict[str, Any]:
|
|
46
|
+
pass
|
|
47
|
+
|
|
48
|
+
params: Dict[str, Any] = {}
|
|
49
|
+
params["created_by"] = created_by
|
|
50
|
+
|
|
51
|
+
params["label"] = label
|
|
52
|
+
|
|
53
|
+
params["worker"] = worker
|
|
54
|
+
|
|
55
|
+
params["parent_job"] = parent_job
|
|
56
|
+
|
|
57
|
+
params["script_path_exact"] = script_path_exact
|
|
58
|
+
|
|
59
|
+
params["script_path_start"] = script_path_start
|
|
60
|
+
|
|
61
|
+
params["schedule_path"] = schedule_path
|
|
62
|
+
|
|
63
|
+
params["script_hash"] = script_hash
|
|
64
|
+
|
|
65
|
+
json_started_before: Union[Unset, None, str] = UNSET
|
|
66
|
+
if not isinstance(started_before, Unset):
|
|
67
|
+
json_started_before = started_before.isoformat() if started_before else None
|
|
68
|
+
|
|
69
|
+
params["started_before"] = json_started_before
|
|
70
|
+
|
|
71
|
+
json_started_after: Union[Unset, None, str] = UNSET
|
|
72
|
+
if not isinstance(started_after, Unset):
|
|
73
|
+
json_started_after = started_after.isoformat() if started_after else None
|
|
74
|
+
|
|
75
|
+
params["started_after"] = json_started_after
|
|
76
|
+
|
|
77
|
+
json_created_before: Union[Unset, None, str] = UNSET
|
|
78
|
+
if not isinstance(created_before, Unset):
|
|
79
|
+
json_created_before = created_before.isoformat() if created_before else None
|
|
80
|
+
|
|
81
|
+
params["created_before"] = json_created_before
|
|
82
|
+
|
|
83
|
+
json_created_after: Union[Unset, None, str] = UNSET
|
|
84
|
+
if not isinstance(created_after, Unset):
|
|
85
|
+
json_created_after = created_after.isoformat() if created_after else None
|
|
86
|
+
|
|
87
|
+
params["created_after"] = json_created_after
|
|
88
|
+
|
|
89
|
+
json_created_or_started_before: Union[Unset, None, str] = UNSET
|
|
90
|
+
if not isinstance(created_or_started_before, Unset):
|
|
91
|
+
json_created_or_started_before = created_or_started_before.isoformat() if created_or_started_before else None
|
|
92
|
+
|
|
93
|
+
params["created_or_started_before"] = json_created_or_started_before
|
|
94
|
+
|
|
95
|
+
params["running"] = running
|
|
96
|
+
|
|
97
|
+
params["scheduled_for_before_now"] = scheduled_for_before_now
|
|
98
|
+
|
|
99
|
+
json_created_or_started_after: Union[Unset, None, str] = UNSET
|
|
100
|
+
if not isinstance(created_or_started_after, Unset):
|
|
101
|
+
json_created_or_started_after = created_or_started_after.isoformat() if created_or_started_after else None
|
|
102
|
+
|
|
103
|
+
params["created_or_started_after"] = json_created_or_started_after
|
|
104
|
+
|
|
105
|
+
json_created_or_started_after_completed_jobs: Union[Unset, None, str] = UNSET
|
|
106
|
+
if not isinstance(created_or_started_after_completed_jobs, Unset):
|
|
107
|
+
json_created_or_started_after_completed_jobs = (
|
|
108
|
+
created_or_started_after_completed_jobs.isoformat() if created_or_started_after_completed_jobs else None
|
|
109
|
+
)
|
|
110
|
+
|
|
111
|
+
params["created_or_started_after_completed_jobs"] = json_created_or_started_after_completed_jobs
|
|
112
|
+
|
|
113
|
+
params["job_kinds"] = job_kinds
|
|
114
|
+
|
|
115
|
+
params["suspended"] = suspended
|
|
116
|
+
|
|
117
|
+
params["args"] = args
|
|
118
|
+
|
|
119
|
+
params["tag"] = tag
|
|
120
|
+
|
|
121
|
+
params["result"] = result
|
|
122
|
+
|
|
123
|
+
params["page"] = page
|
|
124
|
+
|
|
125
|
+
params["per_page"] = per_page
|
|
126
|
+
|
|
127
|
+
params["is_skipped"] = is_skipped
|
|
128
|
+
|
|
129
|
+
params["is_flow_step"] = is_flow_step
|
|
130
|
+
|
|
131
|
+
params["has_null_parent"] = has_null_parent
|
|
132
|
+
|
|
133
|
+
params["success"] = success
|
|
134
|
+
|
|
135
|
+
params["all_workspaces"] = all_workspaces
|
|
136
|
+
|
|
137
|
+
params["is_not_schedule"] = is_not_schedule
|
|
138
|
+
|
|
139
|
+
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
140
|
+
|
|
141
|
+
return {
|
|
142
|
+
"method": "get",
|
|
143
|
+
"url": "/w/{workspace}/jobs/list_filtered_uuids".format(
|
|
144
|
+
workspace=workspace,
|
|
145
|
+
),
|
|
146
|
+
"params": params,
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[List[str]]:
|
|
151
|
+
if response.status_code == HTTPStatus.OK:
|
|
152
|
+
response_200 = cast(List[str], response.json())
|
|
153
|
+
|
|
154
|
+
return response_200
|
|
155
|
+
if client.raise_on_unexpected_status:
|
|
156
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
157
|
+
else:
|
|
158
|
+
return None
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[List[str]]:
|
|
162
|
+
return Response(
|
|
163
|
+
status_code=HTTPStatus(response.status_code),
|
|
164
|
+
content=response.content,
|
|
165
|
+
headers=response.headers,
|
|
166
|
+
parsed=_parse_response(client=client, response=response),
|
|
167
|
+
)
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
def sync_detailed(
|
|
171
|
+
workspace: str,
|
|
172
|
+
*,
|
|
173
|
+
client: Union[AuthenticatedClient, Client],
|
|
174
|
+
created_by: Union[Unset, None, str] = UNSET,
|
|
175
|
+
label: Union[Unset, None, str] = UNSET,
|
|
176
|
+
worker: Union[Unset, None, str] = UNSET,
|
|
177
|
+
parent_job: Union[Unset, None, str] = UNSET,
|
|
178
|
+
script_path_exact: Union[Unset, None, str] = UNSET,
|
|
179
|
+
script_path_start: Union[Unset, None, str] = UNSET,
|
|
180
|
+
schedule_path: Union[Unset, None, str] = UNSET,
|
|
181
|
+
script_hash: Union[Unset, None, str] = UNSET,
|
|
182
|
+
started_before: Union[Unset, None, datetime.datetime] = UNSET,
|
|
183
|
+
started_after: Union[Unset, None, datetime.datetime] = UNSET,
|
|
184
|
+
created_before: Union[Unset, None, datetime.datetime] = UNSET,
|
|
185
|
+
created_after: Union[Unset, None, datetime.datetime] = UNSET,
|
|
186
|
+
created_or_started_before: Union[Unset, None, datetime.datetime] = UNSET,
|
|
187
|
+
running: Union[Unset, None, bool] = UNSET,
|
|
188
|
+
scheduled_for_before_now: Union[Unset, None, bool] = UNSET,
|
|
189
|
+
created_or_started_after: Union[Unset, None, datetime.datetime] = UNSET,
|
|
190
|
+
created_or_started_after_completed_jobs: Union[Unset, None, datetime.datetime] = UNSET,
|
|
191
|
+
job_kinds: Union[Unset, None, str] = UNSET,
|
|
192
|
+
suspended: Union[Unset, None, bool] = UNSET,
|
|
193
|
+
args: Union[Unset, None, str] = UNSET,
|
|
194
|
+
tag: Union[Unset, None, str] = UNSET,
|
|
195
|
+
result: Union[Unset, None, str] = UNSET,
|
|
196
|
+
page: Union[Unset, None, int] = UNSET,
|
|
197
|
+
per_page: Union[Unset, None, int] = UNSET,
|
|
198
|
+
is_skipped: Union[Unset, None, bool] = UNSET,
|
|
199
|
+
is_flow_step: Union[Unset, None, bool] = UNSET,
|
|
200
|
+
has_null_parent: Union[Unset, None, bool] = UNSET,
|
|
201
|
+
success: Union[Unset, None, bool] = UNSET,
|
|
202
|
+
all_workspaces: Union[Unset, None, bool] = UNSET,
|
|
203
|
+
is_not_schedule: Union[Unset, None, bool] = UNSET,
|
|
204
|
+
) -> Response[List[str]]:
|
|
205
|
+
"""get the ids of all jobs matching the given filters
|
|
206
|
+
|
|
207
|
+
Args:
|
|
208
|
+
workspace (str):
|
|
209
|
+
created_by (Union[Unset, None, str]):
|
|
210
|
+
label (Union[Unset, None, str]):
|
|
211
|
+
worker (Union[Unset, None, str]):
|
|
212
|
+
parent_job (Union[Unset, None, str]):
|
|
213
|
+
script_path_exact (Union[Unset, None, str]):
|
|
214
|
+
script_path_start (Union[Unset, None, str]):
|
|
215
|
+
schedule_path (Union[Unset, None, str]):
|
|
216
|
+
script_hash (Union[Unset, None, str]):
|
|
217
|
+
started_before (Union[Unset, None, datetime.datetime]):
|
|
218
|
+
started_after (Union[Unset, None, datetime.datetime]):
|
|
219
|
+
created_before (Union[Unset, None, datetime.datetime]):
|
|
220
|
+
created_after (Union[Unset, None, datetime.datetime]):
|
|
221
|
+
created_or_started_before (Union[Unset, None, datetime.datetime]):
|
|
222
|
+
running (Union[Unset, None, bool]):
|
|
223
|
+
scheduled_for_before_now (Union[Unset, None, bool]):
|
|
224
|
+
created_or_started_after (Union[Unset, None, datetime.datetime]):
|
|
225
|
+
created_or_started_after_completed_jobs (Union[Unset, None, datetime.datetime]):
|
|
226
|
+
job_kinds (Union[Unset, None, str]):
|
|
227
|
+
suspended (Union[Unset, None, bool]):
|
|
228
|
+
args (Union[Unset, None, str]):
|
|
229
|
+
tag (Union[Unset, None, str]):
|
|
230
|
+
result (Union[Unset, None, str]):
|
|
231
|
+
page (Union[Unset, None, int]):
|
|
232
|
+
per_page (Union[Unset, None, int]):
|
|
233
|
+
is_skipped (Union[Unset, None, bool]):
|
|
234
|
+
is_flow_step (Union[Unset, None, bool]):
|
|
235
|
+
has_null_parent (Union[Unset, None, bool]):
|
|
236
|
+
success (Union[Unset, None, bool]):
|
|
237
|
+
all_workspaces (Union[Unset, None, bool]):
|
|
238
|
+
is_not_schedule (Union[Unset, None, bool]):
|
|
239
|
+
|
|
240
|
+
Raises:
|
|
241
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
242
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
243
|
+
|
|
244
|
+
Returns:
|
|
245
|
+
Response[List[str]]
|
|
246
|
+
"""
|
|
247
|
+
|
|
248
|
+
kwargs = _get_kwargs(
|
|
249
|
+
workspace=workspace,
|
|
250
|
+
created_by=created_by,
|
|
251
|
+
label=label,
|
|
252
|
+
worker=worker,
|
|
253
|
+
parent_job=parent_job,
|
|
254
|
+
script_path_exact=script_path_exact,
|
|
255
|
+
script_path_start=script_path_start,
|
|
256
|
+
schedule_path=schedule_path,
|
|
257
|
+
script_hash=script_hash,
|
|
258
|
+
started_before=started_before,
|
|
259
|
+
started_after=started_after,
|
|
260
|
+
created_before=created_before,
|
|
261
|
+
created_after=created_after,
|
|
262
|
+
created_or_started_before=created_or_started_before,
|
|
263
|
+
running=running,
|
|
264
|
+
scheduled_for_before_now=scheduled_for_before_now,
|
|
265
|
+
created_or_started_after=created_or_started_after,
|
|
266
|
+
created_or_started_after_completed_jobs=created_or_started_after_completed_jobs,
|
|
267
|
+
job_kinds=job_kinds,
|
|
268
|
+
suspended=suspended,
|
|
269
|
+
args=args,
|
|
270
|
+
tag=tag,
|
|
271
|
+
result=result,
|
|
272
|
+
page=page,
|
|
273
|
+
per_page=per_page,
|
|
274
|
+
is_skipped=is_skipped,
|
|
275
|
+
is_flow_step=is_flow_step,
|
|
276
|
+
has_null_parent=has_null_parent,
|
|
277
|
+
success=success,
|
|
278
|
+
all_workspaces=all_workspaces,
|
|
279
|
+
is_not_schedule=is_not_schedule,
|
|
280
|
+
)
|
|
281
|
+
|
|
282
|
+
response = client.get_httpx_client().request(
|
|
283
|
+
**kwargs,
|
|
284
|
+
)
|
|
285
|
+
|
|
286
|
+
return _build_response(client=client, response=response)
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
def sync(
|
|
290
|
+
workspace: str,
|
|
291
|
+
*,
|
|
292
|
+
client: Union[AuthenticatedClient, Client],
|
|
293
|
+
created_by: Union[Unset, None, str] = UNSET,
|
|
294
|
+
label: Union[Unset, None, str] = UNSET,
|
|
295
|
+
worker: Union[Unset, None, str] = UNSET,
|
|
296
|
+
parent_job: Union[Unset, None, str] = UNSET,
|
|
297
|
+
script_path_exact: Union[Unset, None, str] = UNSET,
|
|
298
|
+
script_path_start: Union[Unset, None, str] = UNSET,
|
|
299
|
+
schedule_path: Union[Unset, None, str] = UNSET,
|
|
300
|
+
script_hash: Union[Unset, None, str] = UNSET,
|
|
301
|
+
started_before: Union[Unset, None, datetime.datetime] = UNSET,
|
|
302
|
+
started_after: Union[Unset, None, datetime.datetime] = UNSET,
|
|
303
|
+
created_before: Union[Unset, None, datetime.datetime] = UNSET,
|
|
304
|
+
created_after: Union[Unset, None, datetime.datetime] = UNSET,
|
|
305
|
+
created_or_started_before: Union[Unset, None, datetime.datetime] = UNSET,
|
|
306
|
+
running: Union[Unset, None, bool] = UNSET,
|
|
307
|
+
scheduled_for_before_now: Union[Unset, None, bool] = UNSET,
|
|
308
|
+
created_or_started_after: Union[Unset, None, datetime.datetime] = UNSET,
|
|
309
|
+
created_or_started_after_completed_jobs: Union[Unset, None, datetime.datetime] = UNSET,
|
|
310
|
+
job_kinds: Union[Unset, None, str] = UNSET,
|
|
311
|
+
suspended: Union[Unset, None, bool] = UNSET,
|
|
312
|
+
args: Union[Unset, None, str] = UNSET,
|
|
313
|
+
tag: Union[Unset, None, str] = UNSET,
|
|
314
|
+
result: Union[Unset, None, str] = UNSET,
|
|
315
|
+
page: Union[Unset, None, int] = UNSET,
|
|
316
|
+
per_page: Union[Unset, None, int] = UNSET,
|
|
317
|
+
is_skipped: Union[Unset, None, bool] = UNSET,
|
|
318
|
+
is_flow_step: Union[Unset, None, bool] = UNSET,
|
|
319
|
+
has_null_parent: Union[Unset, None, bool] = UNSET,
|
|
320
|
+
success: Union[Unset, None, bool] = UNSET,
|
|
321
|
+
all_workspaces: Union[Unset, None, bool] = UNSET,
|
|
322
|
+
is_not_schedule: Union[Unset, None, bool] = UNSET,
|
|
323
|
+
) -> Optional[List[str]]:
|
|
324
|
+
"""get the ids of all jobs matching the given filters
|
|
325
|
+
|
|
326
|
+
Args:
|
|
327
|
+
workspace (str):
|
|
328
|
+
created_by (Union[Unset, None, str]):
|
|
329
|
+
label (Union[Unset, None, str]):
|
|
330
|
+
worker (Union[Unset, None, str]):
|
|
331
|
+
parent_job (Union[Unset, None, str]):
|
|
332
|
+
script_path_exact (Union[Unset, None, str]):
|
|
333
|
+
script_path_start (Union[Unset, None, str]):
|
|
334
|
+
schedule_path (Union[Unset, None, str]):
|
|
335
|
+
script_hash (Union[Unset, None, str]):
|
|
336
|
+
started_before (Union[Unset, None, datetime.datetime]):
|
|
337
|
+
started_after (Union[Unset, None, datetime.datetime]):
|
|
338
|
+
created_before (Union[Unset, None, datetime.datetime]):
|
|
339
|
+
created_after (Union[Unset, None, datetime.datetime]):
|
|
340
|
+
created_or_started_before (Union[Unset, None, datetime.datetime]):
|
|
341
|
+
running (Union[Unset, None, bool]):
|
|
342
|
+
scheduled_for_before_now (Union[Unset, None, bool]):
|
|
343
|
+
created_or_started_after (Union[Unset, None, datetime.datetime]):
|
|
344
|
+
created_or_started_after_completed_jobs (Union[Unset, None, datetime.datetime]):
|
|
345
|
+
job_kinds (Union[Unset, None, str]):
|
|
346
|
+
suspended (Union[Unset, None, bool]):
|
|
347
|
+
args (Union[Unset, None, str]):
|
|
348
|
+
tag (Union[Unset, None, str]):
|
|
349
|
+
result (Union[Unset, None, str]):
|
|
350
|
+
page (Union[Unset, None, int]):
|
|
351
|
+
per_page (Union[Unset, None, int]):
|
|
352
|
+
is_skipped (Union[Unset, None, bool]):
|
|
353
|
+
is_flow_step (Union[Unset, None, bool]):
|
|
354
|
+
has_null_parent (Union[Unset, None, bool]):
|
|
355
|
+
success (Union[Unset, None, bool]):
|
|
356
|
+
all_workspaces (Union[Unset, None, bool]):
|
|
357
|
+
is_not_schedule (Union[Unset, None, bool]):
|
|
358
|
+
|
|
359
|
+
Raises:
|
|
360
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
361
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
362
|
+
|
|
363
|
+
Returns:
|
|
364
|
+
List[str]
|
|
365
|
+
"""
|
|
366
|
+
|
|
367
|
+
return sync_detailed(
|
|
368
|
+
workspace=workspace,
|
|
369
|
+
client=client,
|
|
370
|
+
created_by=created_by,
|
|
371
|
+
label=label,
|
|
372
|
+
worker=worker,
|
|
373
|
+
parent_job=parent_job,
|
|
374
|
+
script_path_exact=script_path_exact,
|
|
375
|
+
script_path_start=script_path_start,
|
|
376
|
+
schedule_path=schedule_path,
|
|
377
|
+
script_hash=script_hash,
|
|
378
|
+
started_before=started_before,
|
|
379
|
+
started_after=started_after,
|
|
380
|
+
created_before=created_before,
|
|
381
|
+
created_after=created_after,
|
|
382
|
+
created_or_started_before=created_or_started_before,
|
|
383
|
+
running=running,
|
|
384
|
+
scheduled_for_before_now=scheduled_for_before_now,
|
|
385
|
+
created_or_started_after=created_or_started_after,
|
|
386
|
+
created_or_started_after_completed_jobs=created_or_started_after_completed_jobs,
|
|
387
|
+
job_kinds=job_kinds,
|
|
388
|
+
suspended=suspended,
|
|
389
|
+
args=args,
|
|
390
|
+
tag=tag,
|
|
391
|
+
result=result,
|
|
392
|
+
page=page,
|
|
393
|
+
per_page=per_page,
|
|
394
|
+
is_skipped=is_skipped,
|
|
395
|
+
is_flow_step=is_flow_step,
|
|
396
|
+
has_null_parent=has_null_parent,
|
|
397
|
+
success=success,
|
|
398
|
+
all_workspaces=all_workspaces,
|
|
399
|
+
is_not_schedule=is_not_schedule,
|
|
400
|
+
).parsed
|
|
401
|
+
|
|
402
|
+
|
|
403
|
+
async def asyncio_detailed(
|
|
404
|
+
workspace: str,
|
|
405
|
+
*,
|
|
406
|
+
client: Union[AuthenticatedClient, Client],
|
|
407
|
+
created_by: Union[Unset, None, str] = UNSET,
|
|
408
|
+
label: Union[Unset, None, str] = UNSET,
|
|
409
|
+
worker: Union[Unset, None, str] = UNSET,
|
|
410
|
+
parent_job: Union[Unset, None, str] = UNSET,
|
|
411
|
+
script_path_exact: Union[Unset, None, str] = UNSET,
|
|
412
|
+
script_path_start: Union[Unset, None, str] = UNSET,
|
|
413
|
+
schedule_path: Union[Unset, None, str] = UNSET,
|
|
414
|
+
script_hash: Union[Unset, None, str] = UNSET,
|
|
415
|
+
started_before: Union[Unset, None, datetime.datetime] = UNSET,
|
|
416
|
+
started_after: Union[Unset, None, datetime.datetime] = UNSET,
|
|
417
|
+
created_before: Union[Unset, None, datetime.datetime] = UNSET,
|
|
418
|
+
created_after: Union[Unset, None, datetime.datetime] = UNSET,
|
|
419
|
+
created_or_started_before: Union[Unset, None, datetime.datetime] = UNSET,
|
|
420
|
+
running: Union[Unset, None, bool] = UNSET,
|
|
421
|
+
scheduled_for_before_now: Union[Unset, None, bool] = UNSET,
|
|
422
|
+
created_or_started_after: Union[Unset, None, datetime.datetime] = UNSET,
|
|
423
|
+
created_or_started_after_completed_jobs: Union[Unset, None, datetime.datetime] = UNSET,
|
|
424
|
+
job_kinds: Union[Unset, None, str] = UNSET,
|
|
425
|
+
suspended: Union[Unset, None, bool] = UNSET,
|
|
426
|
+
args: Union[Unset, None, str] = UNSET,
|
|
427
|
+
tag: Union[Unset, None, str] = UNSET,
|
|
428
|
+
result: Union[Unset, None, str] = UNSET,
|
|
429
|
+
page: Union[Unset, None, int] = UNSET,
|
|
430
|
+
per_page: Union[Unset, None, int] = UNSET,
|
|
431
|
+
is_skipped: Union[Unset, None, bool] = UNSET,
|
|
432
|
+
is_flow_step: Union[Unset, None, bool] = UNSET,
|
|
433
|
+
has_null_parent: Union[Unset, None, bool] = UNSET,
|
|
434
|
+
success: Union[Unset, None, bool] = UNSET,
|
|
435
|
+
all_workspaces: Union[Unset, None, bool] = UNSET,
|
|
436
|
+
is_not_schedule: Union[Unset, None, bool] = UNSET,
|
|
437
|
+
) -> Response[List[str]]:
|
|
438
|
+
"""get the ids of all jobs matching the given filters
|
|
439
|
+
|
|
440
|
+
Args:
|
|
441
|
+
workspace (str):
|
|
442
|
+
created_by (Union[Unset, None, str]):
|
|
443
|
+
label (Union[Unset, None, str]):
|
|
444
|
+
worker (Union[Unset, None, str]):
|
|
445
|
+
parent_job (Union[Unset, None, str]):
|
|
446
|
+
script_path_exact (Union[Unset, None, str]):
|
|
447
|
+
script_path_start (Union[Unset, None, str]):
|
|
448
|
+
schedule_path (Union[Unset, None, str]):
|
|
449
|
+
script_hash (Union[Unset, None, str]):
|
|
450
|
+
started_before (Union[Unset, None, datetime.datetime]):
|
|
451
|
+
started_after (Union[Unset, None, datetime.datetime]):
|
|
452
|
+
created_before (Union[Unset, None, datetime.datetime]):
|
|
453
|
+
created_after (Union[Unset, None, datetime.datetime]):
|
|
454
|
+
created_or_started_before (Union[Unset, None, datetime.datetime]):
|
|
455
|
+
running (Union[Unset, None, bool]):
|
|
456
|
+
scheduled_for_before_now (Union[Unset, None, bool]):
|
|
457
|
+
created_or_started_after (Union[Unset, None, datetime.datetime]):
|
|
458
|
+
created_or_started_after_completed_jobs (Union[Unset, None, datetime.datetime]):
|
|
459
|
+
job_kinds (Union[Unset, None, str]):
|
|
460
|
+
suspended (Union[Unset, None, bool]):
|
|
461
|
+
args (Union[Unset, None, str]):
|
|
462
|
+
tag (Union[Unset, None, str]):
|
|
463
|
+
result (Union[Unset, None, str]):
|
|
464
|
+
page (Union[Unset, None, int]):
|
|
465
|
+
per_page (Union[Unset, None, int]):
|
|
466
|
+
is_skipped (Union[Unset, None, bool]):
|
|
467
|
+
is_flow_step (Union[Unset, None, bool]):
|
|
468
|
+
has_null_parent (Union[Unset, None, bool]):
|
|
469
|
+
success (Union[Unset, None, bool]):
|
|
470
|
+
all_workspaces (Union[Unset, None, bool]):
|
|
471
|
+
is_not_schedule (Union[Unset, None, bool]):
|
|
472
|
+
|
|
473
|
+
Raises:
|
|
474
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
475
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
476
|
+
|
|
477
|
+
Returns:
|
|
478
|
+
Response[List[str]]
|
|
479
|
+
"""
|
|
480
|
+
|
|
481
|
+
kwargs = _get_kwargs(
|
|
482
|
+
workspace=workspace,
|
|
483
|
+
created_by=created_by,
|
|
484
|
+
label=label,
|
|
485
|
+
worker=worker,
|
|
486
|
+
parent_job=parent_job,
|
|
487
|
+
script_path_exact=script_path_exact,
|
|
488
|
+
script_path_start=script_path_start,
|
|
489
|
+
schedule_path=schedule_path,
|
|
490
|
+
script_hash=script_hash,
|
|
491
|
+
started_before=started_before,
|
|
492
|
+
started_after=started_after,
|
|
493
|
+
created_before=created_before,
|
|
494
|
+
created_after=created_after,
|
|
495
|
+
created_or_started_before=created_or_started_before,
|
|
496
|
+
running=running,
|
|
497
|
+
scheduled_for_before_now=scheduled_for_before_now,
|
|
498
|
+
created_or_started_after=created_or_started_after,
|
|
499
|
+
created_or_started_after_completed_jobs=created_or_started_after_completed_jobs,
|
|
500
|
+
job_kinds=job_kinds,
|
|
501
|
+
suspended=suspended,
|
|
502
|
+
args=args,
|
|
503
|
+
tag=tag,
|
|
504
|
+
result=result,
|
|
505
|
+
page=page,
|
|
506
|
+
per_page=per_page,
|
|
507
|
+
is_skipped=is_skipped,
|
|
508
|
+
is_flow_step=is_flow_step,
|
|
509
|
+
has_null_parent=has_null_parent,
|
|
510
|
+
success=success,
|
|
511
|
+
all_workspaces=all_workspaces,
|
|
512
|
+
is_not_schedule=is_not_schedule,
|
|
513
|
+
)
|
|
514
|
+
|
|
515
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
516
|
+
|
|
517
|
+
return _build_response(client=client, response=response)
|
|
518
|
+
|
|
519
|
+
|
|
520
|
+
async def asyncio(
|
|
521
|
+
workspace: str,
|
|
522
|
+
*,
|
|
523
|
+
client: Union[AuthenticatedClient, Client],
|
|
524
|
+
created_by: Union[Unset, None, str] = UNSET,
|
|
525
|
+
label: Union[Unset, None, str] = UNSET,
|
|
526
|
+
worker: Union[Unset, None, str] = UNSET,
|
|
527
|
+
parent_job: Union[Unset, None, str] = UNSET,
|
|
528
|
+
script_path_exact: Union[Unset, None, str] = UNSET,
|
|
529
|
+
script_path_start: Union[Unset, None, str] = UNSET,
|
|
530
|
+
schedule_path: Union[Unset, None, str] = UNSET,
|
|
531
|
+
script_hash: Union[Unset, None, str] = UNSET,
|
|
532
|
+
started_before: Union[Unset, None, datetime.datetime] = UNSET,
|
|
533
|
+
started_after: Union[Unset, None, datetime.datetime] = UNSET,
|
|
534
|
+
created_before: Union[Unset, None, datetime.datetime] = UNSET,
|
|
535
|
+
created_after: Union[Unset, None, datetime.datetime] = UNSET,
|
|
536
|
+
created_or_started_before: Union[Unset, None, datetime.datetime] = UNSET,
|
|
537
|
+
running: Union[Unset, None, bool] = UNSET,
|
|
538
|
+
scheduled_for_before_now: Union[Unset, None, bool] = UNSET,
|
|
539
|
+
created_or_started_after: Union[Unset, None, datetime.datetime] = UNSET,
|
|
540
|
+
created_or_started_after_completed_jobs: Union[Unset, None, datetime.datetime] = UNSET,
|
|
541
|
+
job_kinds: Union[Unset, None, str] = UNSET,
|
|
542
|
+
suspended: Union[Unset, None, bool] = UNSET,
|
|
543
|
+
args: Union[Unset, None, str] = UNSET,
|
|
544
|
+
tag: Union[Unset, None, str] = UNSET,
|
|
545
|
+
result: Union[Unset, None, str] = UNSET,
|
|
546
|
+
page: Union[Unset, None, int] = UNSET,
|
|
547
|
+
per_page: Union[Unset, None, int] = UNSET,
|
|
548
|
+
is_skipped: Union[Unset, None, bool] = UNSET,
|
|
549
|
+
is_flow_step: Union[Unset, None, bool] = UNSET,
|
|
550
|
+
has_null_parent: Union[Unset, None, bool] = UNSET,
|
|
551
|
+
success: Union[Unset, None, bool] = UNSET,
|
|
552
|
+
all_workspaces: Union[Unset, None, bool] = UNSET,
|
|
553
|
+
is_not_schedule: Union[Unset, None, bool] = UNSET,
|
|
554
|
+
) -> Optional[List[str]]:
|
|
555
|
+
"""get the ids of all jobs matching the given filters
|
|
556
|
+
|
|
557
|
+
Args:
|
|
558
|
+
workspace (str):
|
|
559
|
+
created_by (Union[Unset, None, str]):
|
|
560
|
+
label (Union[Unset, None, str]):
|
|
561
|
+
worker (Union[Unset, None, str]):
|
|
562
|
+
parent_job (Union[Unset, None, str]):
|
|
563
|
+
script_path_exact (Union[Unset, None, str]):
|
|
564
|
+
script_path_start (Union[Unset, None, str]):
|
|
565
|
+
schedule_path (Union[Unset, None, str]):
|
|
566
|
+
script_hash (Union[Unset, None, str]):
|
|
567
|
+
started_before (Union[Unset, None, datetime.datetime]):
|
|
568
|
+
started_after (Union[Unset, None, datetime.datetime]):
|
|
569
|
+
created_before (Union[Unset, None, datetime.datetime]):
|
|
570
|
+
created_after (Union[Unset, None, datetime.datetime]):
|
|
571
|
+
created_or_started_before (Union[Unset, None, datetime.datetime]):
|
|
572
|
+
running (Union[Unset, None, bool]):
|
|
573
|
+
scheduled_for_before_now (Union[Unset, None, bool]):
|
|
574
|
+
created_or_started_after (Union[Unset, None, datetime.datetime]):
|
|
575
|
+
created_or_started_after_completed_jobs (Union[Unset, None, datetime.datetime]):
|
|
576
|
+
job_kinds (Union[Unset, None, str]):
|
|
577
|
+
suspended (Union[Unset, None, bool]):
|
|
578
|
+
args (Union[Unset, None, str]):
|
|
579
|
+
tag (Union[Unset, None, str]):
|
|
580
|
+
result (Union[Unset, None, str]):
|
|
581
|
+
page (Union[Unset, None, int]):
|
|
582
|
+
per_page (Union[Unset, None, int]):
|
|
583
|
+
is_skipped (Union[Unset, None, bool]):
|
|
584
|
+
is_flow_step (Union[Unset, None, bool]):
|
|
585
|
+
has_null_parent (Union[Unset, None, bool]):
|
|
586
|
+
success (Union[Unset, None, bool]):
|
|
587
|
+
all_workspaces (Union[Unset, None, bool]):
|
|
588
|
+
is_not_schedule (Union[Unset, None, bool]):
|
|
589
|
+
|
|
590
|
+
Raises:
|
|
591
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
592
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
593
|
+
|
|
594
|
+
Returns:
|
|
595
|
+
List[str]
|
|
596
|
+
"""
|
|
597
|
+
|
|
598
|
+
return (
|
|
599
|
+
await asyncio_detailed(
|
|
600
|
+
workspace=workspace,
|
|
601
|
+
client=client,
|
|
602
|
+
created_by=created_by,
|
|
603
|
+
label=label,
|
|
604
|
+
worker=worker,
|
|
605
|
+
parent_job=parent_job,
|
|
606
|
+
script_path_exact=script_path_exact,
|
|
607
|
+
script_path_start=script_path_start,
|
|
608
|
+
schedule_path=schedule_path,
|
|
609
|
+
script_hash=script_hash,
|
|
610
|
+
started_before=started_before,
|
|
611
|
+
started_after=started_after,
|
|
612
|
+
created_before=created_before,
|
|
613
|
+
created_after=created_after,
|
|
614
|
+
created_or_started_before=created_or_started_before,
|
|
615
|
+
running=running,
|
|
616
|
+
scheduled_for_before_now=scheduled_for_before_now,
|
|
617
|
+
created_or_started_after=created_or_started_after,
|
|
618
|
+
created_or_started_after_completed_jobs=created_or_started_after_completed_jobs,
|
|
619
|
+
job_kinds=job_kinds,
|
|
620
|
+
suspended=suspended,
|
|
621
|
+
args=args,
|
|
622
|
+
tag=tag,
|
|
623
|
+
result=result,
|
|
624
|
+
page=page,
|
|
625
|
+
per_page=per_page,
|
|
626
|
+
is_skipped=is_skipped,
|
|
627
|
+
is_flow_step=is_flow_step,
|
|
628
|
+
has_null_parent=has_null_parent,
|
|
629
|
+
success=success,
|
|
630
|
+
all_workspaces=all_workspaces,
|
|
631
|
+
is_not_schedule=is_not_schedule,
|
|
632
|
+
)
|
|
633
|
+
).parsed
|