Skip to content

Commit cfbb3c5

Browse files
Update Python Client to 3.3.2rc1 (#159)
1 parent d1ac3c8 commit cfbb3c5

102 files changed

Lines changed: 556 additions & 367 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎CHANGELOG.md‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,19 @@
1717
under the License.
1818
-->
1919

20+
# v3.3.2
21+
22+
## Improvements:
23+
24+
- Document HTTP statuses that API routes raise but never declared (#71622)
25+
26+
## Bug Fixes:
27+
28+
- Revoke every credential presented to the logout endpoint, not just the session cookie (#72933)
29+
- Restore counts on the Dag Run and Task Instance lists (#72739)
30+
- Return HTTP 404 from task state store endpoints for unknown task instances (#71860)
31+
- Mark only a run's most recent asset event as triggering it (#71547)
32+
2033
# v3.3.1
2134

2235
## Bug Fixes:

‎airflow_client/client/__init__.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
""" # noqa: E501
1515

1616

17-
__version__ = "3.3.1"
17+
__version__ = "3.3.2"
1818

1919
# Define package exports
2020
__all__ = [

‎airflow_client/client/api/backfill_api.py‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -662,6 +662,7 @@ def create_backfill_dry_run(
662662

663663
_response_types_map: Dict[str, Optional[str]] = {
664664
'200': "DryRunBackfillCollectionResponse",
665+
'400': "HTTPExceptionResponse",
665666
'401': "HTTPExceptionResponse",
666667
'403': "HTTPExceptionResponse",
667668
'404': "HTTPExceptionResponse",
@@ -734,6 +735,7 @@ def create_backfill_dry_run_with_http_info(
734735

735736
_response_types_map: Dict[str, Optional[str]] = {
736737
'200': "DryRunBackfillCollectionResponse",
738+
'400': "HTTPExceptionResponse",
737739
'401': "HTTPExceptionResponse",
738740
'403': "HTTPExceptionResponse",
739741
'404': "HTTPExceptionResponse",
@@ -806,6 +808,7 @@ def create_backfill_dry_run_without_preload_content(
806808

807809
_response_types_map: Dict[str, Optional[str]] = {
808810
'200': "DryRunBackfillCollectionResponse",
811+
'400': "HTTPExceptionResponse",
809812
'401': "HTTPExceptionResponse",
810813
'403': "HTTPExceptionResponse",
811814
'404': "HTTPExceptionResponse",

‎airflow_client/client/api/dag_api.py‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ def delete_dag(
102102
'401': "HTTPExceptionResponse",
103103
'403': "HTTPExceptionResponse",
104104
'404': "HTTPExceptionResponse",
105+
'409': "HTTPExceptionResponse",
105106
'422': "HTTPExceptionResponse",
106107
}
107108
response_data = self.api_client.call_api(
@@ -174,6 +175,7 @@ def delete_dag_with_http_info(
174175
'401': "HTTPExceptionResponse",
175176
'403': "HTTPExceptionResponse",
176177
'404': "HTTPExceptionResponse",
178+
'409': "HTTPExceptionResponse",
177179
'422': "HTTPExceptionResponse",
178180
}
179181
response_data = self.api_client.call_api(
@@ -246,6 +248,7 @@ def delete_dag_without_preload_content(
246248
'401': "HTTPExceptionResponse",
247249
'403': "HTTPExceptionResponse",
248250
'404': "HTTPExceptionResponse",
251+
'409': "HTTPExceptionResponse",
249252
'422': "HTTPExceptionResponse",
250253
}
251254
response_data = self.api_client.call_api(

‎airflow_client/client/api/dag_run_api.py‎

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1338,6 +1338,7 @@ def delete_dag_run(
13381338
'401': "HTTPExceptionResponse",
13391339
'403': "HTTPExceptionResponse",
13401340
'404': "HTTPExceptionResponse",
1341+
'409': "HTTPExceptionResponse",
13411342
'422': "HTTPValidationError",
13421343
}
13431344
response_data = self.api_client.call_api(
@@ -1414,6 +1415,7 @@ def delete_dag_run_with_http_info(
14141415
'401': "HTTPExceptionResponse",
14151416
'403': "HTTPExceptionResponse",
14161417
'404': "HTTPExceptionResponse",
1418+
'409': "HTTPExceptionResponse",
14171419
'422': "HTTPValidationError",
14181420
}
14191421
response_data = self.api_client.call_api(
@@ -1490,6 +1492,7 @@ def delete_dag_run_without_preload_content(
14901492
'401': "HTTPExceptionResponse",
14911493
'403': "HTTPExceptionResponse",
14921494
'404': "HTTPExceptionResponse",
1495+
'409': "HTTPExceptionResponse",
14931496
'422': "HTTPValidationError",
14941497
}
14951498
response_data = self.api_client.call_api(
@@ -1916,7 +1919,7 @@ def get_dag_runs(
19161919
) -> DAGRunCollectionResponse:
19171920
"""Get Dag Runs
19181921
1919-
Get all Dag Runs. This endpoint allows specifying `~` as the dag_id to retrieve Dag Runs for all Dags. Supports two pagination modes: **Offset (default):** use `limit` and `offset` query parameters. Returns `total_entries`. **Cursor:** pass `cursor` (empty string for the first page, then `next_cursor` from the response). When `cursor` is provided, `offset` is ignored and `total_entries` is not returned. ``next_cursor`` is ``null`` when there are no more pages; ``previous_cursor`` is ``null`` on the first page.
1922+
Get all Dag Runs. This endpoint allows specifying `~` as the dag_id to retrieve Dag Runs for all Dags. Supports two pagination modes: **Offset (default):** use `limit` and `offset` query parameters. Returns `total_entries`. **Cursor:** pass `cursor` (empty string for the first page, then `next_cursor` from the response). When `cursor` is provided, `offset` is ignored and `total_entries` is capped at `total_entries_limit` (a value equal to that limit means at least that many runs match). ``next_cursor`` is ``null`` when there are no more pages; ``previous_cursor`` is ``null`` on the first page.
19201923
19211924
:param dag_id: (required)
19221925
:type dag_id: str
@@ -2084,6 +2087,7 @@ def get_dag_runs(
20842087

20852088
_response_types_map: Dict[str, Optional[str]] = {
20862089
'200': "DAGRunCollectionResponse",
2090+
'400': "HTTPExceptionResponse",
20872091
'401': "HTTPExceptionResponse",
20882092
'403': "HTTPExceptionResponse",
20892093
'404': "HTTPExceptionResponse",
@@ -2163,7 +2167,7 @@ def get_dag_runs_with_http_info(
21632167
) -> ApiResponse[DAGRunCollectionResponse]:
21642168
"""Get Dag Runs
21652169
2166-
Get all Dag Runs. This endpoint allows specifying `~` as the dag_id to retrieve Dag Runs for all Dags. Supports two pagination modes: **Offset (default):** use `limit` and `offset` query parameters. Returns `total_entries`. **Cursor:** pass `cursor` (empty string for the first page, then `next_cursor` from the response). When `cursor` is provided, `offset` is ignored and `total_entries` is not returned. ``next_cursor`` is ``null`` when there are no more pages; ``previous_cursor`` is ``null`` on the first page.
2170+
Get all Dag Runs. This endpoint allows specifying `~` as the dag_id to retrieve Dag Runs for all Dags. Supports two pagination modes: **Offset (default):** use `limit` and `offset` query parameters. Returns `total_entries`. **Cursor:** pass `cursor` (empty string for the first page, then `next_cursor` from the response). When `cursor` is provided, `offset` is ignored and `total_entries` is capped at `total_entries_limit` (a value equal to that limit means at least that many runs match). ``next_cursor`` is ``null`` when there are no more pages; ``previous_cursor`` is ``null`` on the first page.
21672171
21682172
:param dag_id: (required)
21692173
:type dag_id: str
@@ -2331,6 +2335,7 @@ def get_dag_runs_with_http_info(
23312335

23322336
_response_types_map: Dict[str, Optional[str]] = {
23332337
'200': "DAGRunCollectionResponse",
2338+
'400': "HTTPExceptionResponse",
23342339
'401': "HTTPExceptionResponse",
23352340
'403': "HTTPExceptionResponse",
23362341
'404': "HTTPExceptionResponse",
@@ -2410,7 +2415,7 @@ def get_dag_runs_without_preload_content(
24102415
) -> RESTResponseType:
24112416
"""Get Dag Runs
24122417
2413-
Get all Dag Runs. This endpoint allows specifying `~` as the dag_id to retrieve Dag Runs for all Dags. Supports two pagination modes: **Offset (default):** use `limit` and `offset` query parameters. Returns `total_entries`. **Cursor:** pass `cursor` (empty string for the first page, then `next_cursor` from the response). When `cursor` is provided, `offset` is ignored and `total_entries` is not returned. ``next_cursor`` is ``null`` when there are no more pages; ``previous_cursor`` is ``null`` on the first page.
2418+
Get all Dag Runs. This endpoint allows specifying `~` as the dag_id to retrieve Dag Runs for all Dags. Supports two pagination modes: **Offset (default):** use `limit` and `offset` query parameters. Returns `total_entries`. **Cursor:** pass `cursor` (empty string for the first page, then `next_cursor` from the response). When `cursor` is provided, `offset` is ignored and `total_entries` is capped at `total_entries_limit` (a value equal to that limit means at least that many runs match). ``next_cursor`` is ``null`` when there are no more pages; ``previous_cursor`` is ``null`` on the first page.
24142419
24152420
:param dag_id: (required)
24162421
:type dag_id: str
@@ -2578,6 +2583,7 @@ def get_dag_runs_without_preload_content(
25782583

25792584
_response_types_map: Dict[str, Optional[str]] = {
25802585
'200': "DAGRunCollectionResponse",
2586+
'400': "HTTPExceptionResponse",
25812587
'401': "HTTPExceptionResponse",
25822588
'403': "HTTPExceptionResponse",
25832589
'404': "HTTPExceptionResponse",

‎airflow_client/client/api/login_api.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -535,6 +535,8 @@ def _logout_serialize(
535535

536536
# authentication setting
537537
_auth_settings: List[str] = [
538+
'OAuth2PasswordBearer',
539+
'HTTPBearer'
538540
]
539541

540542
return self.api_client.param_serialize(

‎airflow_client/client/api/task_instance_api.py‎

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6919,7 +6919,7 @@ def get_task_instances(
69196919
) -> TaskInstanceCollectionResponse:
69206920
"""Get Task Instances
69216921
6922-
Get list of task instances. This endpoint allows specifying `~` as the dag_id, dag_run_id to retrieve task instances for all Dags and Dag runs. Supports two pagination modes: **Offset (default):** use `limit` and `offset` query parameters. Returns `total_entries`. **Cursor:** pass `cursor` (empty string for the first page, then `next_cursor` from the response). When `cursor` is provided, `offset` is ignored and `total_entries` is not returned. ``next_cursor`` is ``null`` when there are no more pages; ``previous_cursor`` is ``null`` on the first page.
6922+
Get list of task instances. This endpoint allows specifying `~` as the dag_id, dag_run_id to retrieve task instances for all Dags and Dag runs. Supports two pagination modes: **Offset (default):** use `limit` and `offset` query parameters. Returns `total_entries`. **Cursor:** pass `cursor` (empty string for the first page, then `next_cursor` from the response). When `cursor` is provided, `offset` is ignored and `total_entries` is capped at `total_entries_limit` (a value equal to that limit means at least that many task instances match). ``next_cursor`` is ``null`` when there are no more pages; ``previous_cursor`` is ``null`` on the first page.
69236923
69246924
:param dag_id: (required)
69256925
:type dag_id: str
@@ -7203,7 +7203,7 @@ def get_task_instances_with_http_info(
72037203
) -> ApiResponse[TaskInstanceCollectionResponse]:
72047204
"""Get Task Instances
72057205
7206-
Get list of task instances. This endpoint allows specifying `~` as the dag_id, dag_run_id to retrieve task instances for all Dags and Dag runs. Supports two pagination modes: **Offset (default):** use `limit` and `offset` query parameters. Returns `total_entries`. **Cursor:** pass `cursor` (empty string for the first page, then `next_cursor` from the response). When `cursor` is provided, `offset` is ignored and `total_entries` is not returned. ``next_cursor`` is ``null`` when there are no more pages; ``previous_cursor`` is ``null`` on the first page.
7206+
Get list of task instances. This endpoint allows specifying `~` as the dag_id, dag_run_id to retrieve task instances for all Dags and Dag runs. Supports two pagination modes: **Offset (default):** use `limit` and `offset` query parameters. Returns `total_entries`. **Cursor:** pass `cursor` (empty string for the first page, then `next_cursor` from the response). When `cursor` is provided, `offset` is ignored and `total_entries` is capped at `total_entries_limit` (a value equal to that limit means at least that many task instances match). ``next_cursor`` is ``null`` when there are no more pages; ``previous_cursor`` is ``null`` on the first page.
72077207
72087208
:param dag_id: (required)
72097209
:type dag_id: str
@@ -7487,7 +7487,7 @@ def get_task_instances_without_preload_content(
74877487
) -> RESTResponseType:
74887488
"""Get Task Instances
74897489
7490-
Get list of task instances. This endpoint allows specifying `~` as the dag_id, dag_run_id to retrieve task instances for all Dags and Dag runs. Supports two pagination modes: **Offset (default):** use `limit` and `offset` query parameters. Returns `total_entries`. **Cursor:** pass `cursor` (empty string for the first page, then `next_cursor` from the response). When `cursor` is provided, `offset` is ignored and `total_entries` is not returned. ``next_cursor`` is ``null`` when there are no more pages; ``previous_cursor`` is ``null`` on the first page.
7490+
Get list of task instances. This endpoint allows specifying `~` as the dag_id, dag_run_id to retrieve task instances for all Dags and Dag runs. Supports two pagination modes: **Offset (default):** use `limit` and `offset` query parameters. Returns `total_entries`. **Cursor:** pass `cursor` (empty string for the first page, then `next_cursor` from the response). When `cursor` is provided, `offset` is ignored and `total_entries` is capped at `total_entries_limit` (a value equal to that limit means at least that many task instances match). ``next_cursor`` is ``null`` when there are no more pages; ``previous_cursor`` is ``null`` on the first page.
74917491
74927492
:param dag_id: (required)
74937493
:type dag_id: str
@@ -10761,6 +10761,7 @@ def post_clear_task_instances(
1076110761

1076210762
_response_types_map: Dict[str, Optional[str]] = {
1076310763
'200': "TaskInstanceCollectionResponse",
10764+
'400': "HTTPExceptionResponse",
1076410765
'401': "HTTPExceptionResponse",
1076510766
'403': "HTTPExceptionResponse",
1076610767
'404': "HTTPExceptionResponse",
@@ -10837,6 +10838,7 @@ def post_clear_task_instances_with_http_info(
1083710838

1083810839
_response_types_map: Dict[str, Optional[str]] = {
1083910840
'200': "TaskInstanceCollectionResponse",
10841+
'400': "HTTPExceptionResponse",
1084010842
'401': "HTTPExceptionResponse",
1084110843
'403': "HTTPExceptionResponse",
1084210844
'404': "HTTPExceptionResponse",
@@ -10913,6 +10915,7 @@ def post_clear_task_instances_without_preload_content(
1091310915

1091410916
_response_types_map: Dict[str, Optional[str]] = {
1091510917
'200': "TaskInstanceCollectionResponse",
10918+
'400': "HTTPExceptionResponse",
1091610919
'401': "HTTPExceptionResponse",
1091710920
'403': "HTTPExceptionResponse",
1091810921
'404': "HTTPExceptionResponse",
@@ -11078,6 +11081,7 @@ def update_hitl_detail(
1107811081

1107911082
_response_types_map: Dict[str, Optional[str]] = {
1108011083
'200': "HITLDetailResponse",
11084+
'400': "HTTPExceptionResponse",
1108111085
'401': "HTTPExceptionResponse",
1108211086
'403': "HTTPExceptionResponse",
1108311087
'404': "HTTPExceptionResponse",
@@ -11166,6 +11170,7 @@ def update_hitl_detail_with_http_info(
1116611170

1116711171
_response_types_map: Dict[str, Optional[str]] = {
1116811172
'200': "HITLDetailResponse",
11173+
'400': "HTTPExceptionResponse",
1116911174
'401': "HTTPExceptionResponse",
1117011175
'403': "HTTPExceptionResponse",
1117111176
'404': "HTTPExceptionResponse",
@@ -11254,6 +11259,7 @@ def update_hitl_detail_without_preload_content(
1125411259

1125511260
_response_types_map: Dict[str, Optional[str]] = {
1125611261
'200': "HITLDetailResponse",
11262+
'400': "HTTPExceptionResponse",
1125711263
'401': "HTTPExceptionResponse",
1125811264
'403': "HTTPExceptionResponse",
1125911265
'404': "HTTPExceptionResponse",

0 commit comments

Comments
 (0)