Skip to content

Commit 704e21d

Browse files
committed
Update Python Client to 3.1.8rc1
1 parent 9cdee7b commit 704e21d

File tree

103 files changed

+489
-494
lines changed

Some content is hidden

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

103 files changed

+489
-494
lines changed

CHANGELOG.md

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

20+
# v3.1.8
21+
22+
## Bug Fixes:
23+
24+
- Fix: 404 queued asset events from API server logs ([#62934](https://github.com/apache/airflow/pull/62934))
25+
- Fix executor slots showing negative infinity ([#61140](https://github.com/apache/airflow/pull/61140))
26+
- Fix Pool API slots validation ([#61071](https://github.com/apache/airflow/pull/61071))
27+
- Add ``run_after`` alias to ``XComResponse`` for backward compatibility ([#61443](https://github.com/apache/airflow/pull/61443))
28+
2029
# v3.1.6
2130

2231
## Bug Fixes:

README.md

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,6 @@
1919

2020
# Apache Airflow Python Client
2121

22-
> [!NOTE]
23-
> Code in this repository is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech)
24-
> project using Open-API specification from the Apache Airflow repository.
25-
>
26-
> The process of generating the code is described in the
27-
> [Python Client Readme](https://github.com/apache/airflow/blob/main/clients/README.md).
28-
> We enabled [GitHub discussions](https://github.com/apache/airflow-client-python/discussions)
29-
> in the `airflow-client-python` repository, and we encourage you to start discussions if you have any questions
30-
> or suggestions to improve the client. However, in case the discussions result in a need to create an
31-
> actionable issuee, the issues in this repo are deliberately not enabled.
32-
>
33-
> Instead, you should create GitHub issues or even PRs improving the client
34-
> in the main [Apache Airflow repository](https://github.com/apache/airflow) and test it by generating the
35-
> client locally following the instructions from the repo.
36-
37-
3822
# Overview
3923

4024
To facilitate management, Apache Airflow supports a range of REST API endpoints across its
@@ -49,7 +33,6 @@ Content-type: application/json
4933
Accept: application/json
5034
```
5135

52-
5336
## Resources
5437

5538
The term `resource` refers to a single type of object in the Airflow metadata. An API is broken up by its

airflow_client/client/__init__.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
""" # noqa: E501
1515

1616

17-
__version__ = "3.1.6"
17+
__version__ = "3.1.8"
1818

1919
# Define package exports
2020
__all__ = [
@@ -53,6 +53,10 @@
5353
"ApiKeyError",
5454
"ApiAttributeError",
5555
"ApiException",
56+
"ActionsInner",
57+
"ActionsInner1",
58+
"ActionsInner2",
59+
"ActionsInner3",
5660
"AppBuilderMenuItemResponse",
5761
"AppBuilderViewResponse",
5862
"AssetAliasCollectionResponse",
@@ -69,19 +73,14 @@
6973
"BulkActionOnExistence",
7074
"BulkActionResponse",
7175
"BulkBodyBulkTaskInstanceBody",
72-
"BulkBodyBulkTaskInstanceBodyActionsInner",
7376
"BulkBodyConnectionBody",
74-
"BulkBodyConnectionBodyActionsInner",
7577
"BulkBodyPoolBody",
76-
"BulkBodyPoolBodyActionsInner",
7778
"BulkBodyVariableBody",
78-
"BulkBodyVariableBodyActionsInner",
7979
"BulkCreateActionBulkTaskInstanceBody",
8080
"BulkCreateActionConnectionBody",
8181
"BulkCreateActionPoolBody",
8282
"BulkCreateActionVariableBody",
8383
"BulkDeleteActionBulkTaskInstanceBody",
84-
"BulkDeleteActionBulkTaskInstanceBodyEntitiesInner",
8584
"BulkDeleteActionConnectionBody",
8685
"BulkDeleteActionPoolBody",
8786
"BulkDeleteActionVariableBody",
@@ -132,6 +131,7 @@
132131
"Detail",
133132
"DryRunBackfillCollectionResponse",
134133
"DryRunBackfillResponse",
134+
"EntitiesInner",
135135
"EventLogCollectionResponse",
136136
"EventLogResponse",
137137
"ExternalLogUrlResponse",
@@ -151,6 +151,7 @@
151151
"JobCollectionResponse",
152152
"JobResponse",
153153
"LastAssetEventResponse",
154+
"LocationInner",
154155
"PatchTaskInstanceBody",
155156
"PluginCollectionResponse",
156157
"PluginImportErrorCollectionResponse",
@@ -189,7 +190,6 @@
189190
"TriggererInfoResponse",
190191
"UpdateHITLDetailPayload",
191192
"ValidationError",
192-
"ValidationErrorLocInner",
193193
"Value",
194194
"VariableBody",
195195
"VariableCollectionResponse",
@@ -243,6 +243,10 @@
243243
from airflow_client.client.exceptions import ApiException as ApiException
244244

245245
# import models into sdk package
246+
from airflow_client.client.models.actions_inner import ActionsInner as ActionsInner
247+
from airflow_client.client.models.actions_inner1 import ActionsInner1 as ActionsInner1
248+
from airflow_client.client.models.actions_inner2 import ActionsInner2 as ActionsInner2
249+
from airflow_client.client.models.actions_inner3 import ActionsInner3 as ActionsInner3
246250
from airflow_client.client.models.app_builder_menu_item_response import AppBuilderMenuItemResponse as AppBuilderMenuItemResponse
247251
from airflow_client.client.models.app_builder_view_response import AppBuilderViewResponse as AppBuilderViewResponse
248252
from airflow_client.client.models.asset_alias_collection_response import AssetAliasCollectionResponse as AssetAliasCollectionResponse
@@ -259,19 +263,14 @@
259263
from airflow_client.client.models.bulk_action_on_existence import BulkActionOnExistence as BulkActionOnExistence
260264
from airflow_client.client.models.bulk_action_response import BulkActionResponse as BulkActionResponse
261265
from airflow_client.client.models.bulk_body_bulk_task_instance_body import BulkBodyBulkTaskInstanceBody as BulkBodyBulkTaskInstanceBody
262-
from airflow_client.client.models.bulk_body_bulk_task_instance_body_actions_inner import BulkBodyBulkTaskInstanceBodyActionsInner as BulkBodyBulkTaskInstanceBodyActionsInner
263266
from airflow_client.client.models.bulk_body_connection_body import BulkBodyConnectionBody as BulkBodyConnectionBody
264-
from airflow_client.client.models.bulk_body_connection_body_actions_inner import BulkBodyConnectionBodyActionsInner as BulkBodyConnectionBodyActionsInner
265267
from airflow_client.client.models.bulk_body_pool_body import BulkBodyPoolBody as BulkBodyPoolBody
266-
from airflow_client.client.models.bulk_body_pool_body_actions_inner import BulkBodyPoolBodyActionsInner as BulkBodyPoolBodyActionsInner
267268
from airflow_client.client.models.bulk_body_variable_body import BulkBodyVariableBody as BulkBodyVariableBody
268-
from airflow_client.client.models.bulk_body_variable_body_actions_inner import BulkBodyVariableBodyActionsInner as BulkBodyVariableBodyActionsInner
269269
from airflow_client.client.models.bulk_create_action_bulk_task_instance_body import BulkCreateActionBulkTaskInstanceBody as BulkCreateActionBulkTaskInstanceBody
270270
from airflow_client.client.models.bulk_create_action_connection_body import BulkCreateActionConnectionBody as BulkCreateActionConnectionBody
271271
from airflow_client.client.models.bulk_create_action_pool_body import BulkCreateActionPoolBody as BulkCreateActionPoolBody
272272
from airflow_client.client.models.bulk_create_action_variable_body import BulkCreateActionVariableBody as BulkCreateActionVariableBody
273273
from airflow_client.client.models.bulk_delete_action_bulk_task_instance_body import BulkDeleteActionBulkTaskInstanceBody as BulkDeleteActionBulkTaskInstanceBody
274-
from airflow_client.client.models.bulk_delete_action_bulk_task_instance_body_entities_inner import BulkDeleteActionBulkTaskInstanceBodyEntitiesInner as BulkDeleteActionBulkTaskInstanceBodyEntitiesInner
275274
from airflow_client.client.models.bulk_delete_action_connection_body import BulkDeleteActionConnectionBody as BulkDeleteActionConnectionBody
276275
from airflow_client.client.models.bulk_delete_action_pool_body import BulkDeleteActionPoolBody as BulkDeleteActionPoolBody
277276
from airflow_client.client.models.bulk_delete_action_variable_body import BulkDeleteActionVariableBody as BulkDeleteActionVariableBody
@@ -322,6 +321,7 @@
322321
from airflow_client.client.models.detail import Detail as Detail
323322
from airflow_client.client.models.dry_run_backfill_collection_response import DryRunBackfillCollectionResponse as DryRunBackfillCollectionResponse
324323
from airflow_client.client.models.dry_run_backfill_response import DryRunBackfillResponse as DryRunBackfillResponse
324+
from airflow_client.client.models.entities_inner import EntitiesInner as EntitiesInner
325325
from airflow_client.client.models.event_log_collection_response import EventLogCollectionResponse as EventLogCollectionResponse
326326
from airflow_client.client.models.event_log_response import EventLogResponse as EventLogResponse
327327
from airflow_client.client.models.external_log_url_response import ExternalLogUrlResponse as ExternalLogUrlResponse
@@ -341,6 +341,7 @@
341341
from airflow_client.client.models.job_collection_response import JobCollectionResponse as JobCollectionResponse
342342
from airflow_client.client.models.job_response import JobResponse as JobResponse
343343
from airflow_client.client.models.last_asset_event_response import LastAssetEventResponse as LastAssetEventResponse
344+
from airflow_client.client.models.location_inner import LocationInner as LocationInner
344345
from airflow_client.client.models.patch_task_instance_body import PatchTaskInstanceBody as PatchTaskInstanceBody
345346
from airflow_client.client.models.plugin_collection_response import PluginCollectionResponse as PluginCollectionResponse
346347
from airflow_client.client.models.plugin_import_error_collection_response import PluginImportErrorCollectionResponse as PluginImportErrorCollectionResponse
@@ -379,7 +380,6 @@
379380
from airflow_client.client.models.triggerer_info_response import TriggererInfoResponse as TriggererInfoResponse
380381
from airflow_client.client.models.update_hitl_detail_payload import UpdateHITLDetailPayload as UpdateHITLDetailPayload
381382
from airflow_client.client.models.validation_error import ValidationError as ValidationError
382-
from airflow_client.client.models.validation_error_loc_inner import ValidationErrorLocInner as ValidationErrorLocInner
383383
from airflow_client.client.models.value import Value as Value
384384
from airflow_client.client.models.variable_body import VariableBody as VariableBody
385385
from airflow_client.client.models.variable_collection_response import VariableCollectionResponse as VariableCollectionResponse

airflow_client/client/api/asset_api.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# coding: utf-8
2-
31
"""
42
Airflow API
53
@@ -11,6 +9,7 @@
119
Do not edit the class manually.
1210
""" # noqa: E501
1311

12+
1413
import warnings
1514
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
1615
from typing import Any, Dict, List, Optional, Tuple, Union
@@ -2663,7 +2662,6 @@ def get_asset_queued_events(
26632662
'200': "QueuedEventCollectionResponse",
26642663
'401': "HTTPExceptionResponse",
26652664
'403': "HTTPExceptionResponse",
2666-
'404': "HTTPExceptionResponse",
26672665
'422': "HTTPValidationError",
26682666
}
26692667
response_data = self.api_client.call_api(
@@ -2738,7 +2736,6 @@ def get_asset_queued_events_with_http_info(
27382736
'200': "QueuedEventCollectionResponse",
27392737
'401': "HTTPExceptionResponse",
27402738
'403': "HTTPExceptionResponse",
2741-
'404': "HTTPExceptionResponse",
27422739
'422': "HTTPValidationError",
27432740
}
27442741
response_data = self.api_client.call_api(
@@ -2813,7 +2810,6 @@ def get_asset_queued_events_without_preload_content(
28132810
'200': "QueuedEventCollectionResponse",
28142811
'401': "HTTPExceptionResponse",
28152812
'403': "HTTPExceptionResponse",
2816-
'404': "HTTPExceptionResponse",
28172813
'422': "HTTPValidationError",
28182814
}
28192815
response_data = self.api_client.call_api(
@@ -3640,7 +3636,6 @@ def get_dag_asset_queued_events(
36403636
'200': "QueuedEventCollectionResponse",
36413637
'401': "HTTPExceptionResponse",
36423638
'403': "HTTPExceptionResponse",
3643-
'404': "HTTPExceptionResponse",
36443639
'422': "HTTPValidationError",
36453640
}
36463641
response_data = self.api_client.call_api(
@@ -3715,7 +3710,6 @@ def get_dag_asset_queued_events_with_http_info(
37153710
'200': "QueuedEventCollectionResponse",
37163711
'401': "HTTPExceptionResponse",
37173712
'403': "HTTPExceptionResponse",
3718-
'404': "HTTPExceptionResponse",
37193713
'422': "HTTPValidationError",
37203714
}
37213715
response_data = self.api_client.call_api(
@@ -3790,7 +3784,6 @@ def get_dag_asset_queued_events_without_preload_content(
37903784
'200': "QueuedEventCollectionResponse",
37913785
'401': "HTTPExceptionResponse",
37923786
'403': "HTTPExceptionResponse",
3793-
'404': "HTTPExceptionResponse",
37943787
'422': "HTTPValidationError",
37953788
}
37963789
response_data = self.api_client.call_api(

airflow_client/client/api/backfill_api.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# coding: utf-8
2-
31
"""
42
Airflow API
53
@@ -11,6 +9,7 @@
119
Do not edit the class manually.
1210
""" # noqa: E501
1311

12+
1413
import warnings
1514
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
1615
from typing import Any, Dict, List, Optional, Tuple, Union

airflow_client/client/api/config_api.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# coding: utf-8
2-
31
"""
42
Airflow API
53
@@ -11,6 +9,7 @@
119
Do not edit the class manually.
1210
""" # noqa: E501
1311

12+
1413
import warnings
1514
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
1615
from typing import Any, Dict, List, Optional, Tuple, Union

airflow_client/client/api/connection_api.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# coding: utf-8
2-
31
"""
42
Airflow API
53
@@ -11,6 +9,7 @@
119
Do not edit the class manually.
1210
""" # noqa: E501
1311

12+
1413
import warnings
1514
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
1615
from typing import Any, Dict, List, Optional, Tuple, Union

airflow_client/client/api/dag_api.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# coding: utf-8
2-
31
"""
42
Airflow API
53
@@ -11,6 +9,7 @@
119
Do not edit the class manually.
1210
""" # noqa: E501
1311

12+
1413
import warnings
1514
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
1615
from typing import Any, Dict, List, Optional, Tuple, Union

airflow_client/client/api/dag_parsing_api.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# coding: utf-8
2-
31
"""
42
Airflow API
53
@@ -11,6 +9,7 @@
119
Do not edit the class manually.
1210
""" # noqa: E501
1311

12+
1413
import warnings
1514
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
1615
from typing import Any, Dict, List, Optional, Tuple, Union

airflow_client/client/api/dag_run_api.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# coding: utf-8
2-
31
"""
42
Airflow API
53
@@ -11,13 +9,14 @@
119
Do not edit the class manually.
1210
""" # noqa: E501
1311

12+
1413
import warnings
1514
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
1615
from typing import Any, Dict, List, Optional, Tuple, Union
1716
from typing_extensions import Annotated
1817

1918
from datetime import datetime
20-
from pydantic import Field, StrictFloat, StrictInt, StrictStr, field_validator
19+
from pydantic import Field, StrictInt, StrictStr, field_validator
2120
from typing import Any, List, Optional, Union
2221
from typing_extensions import Annotated
2322
from airflow_client.client.models.asset_event_collection_response import AssetEventCollectionResponse
@@ -3115,7 +3114,7 @@ def wait_dag_run_until_finished(
31153114
self,
31163115
dag_id: StrictStr,
31173116
dag_run_id: StrictStr,
3118-
interval: Annotated[Union[StrictFloat, StrictInt], Field(description="Seconds to wait between dag run state checks")],
3117+
interval: Annotated[Union[Annotated[float, Field(strict=True, gt=0.0)], Annotated[int, Field(strict=True, gt=0)]], Field(description="Seconds to wait between dag run state checks")],
31193118
result: Annotated[Optional[List[StrictStr]], Field(description="Collect result XCom from task. Can be set multiple times.")] = None,
31203119
_request_timeout: Union[
31213120
None,
@@ -3198,7 +3197,7 @@ def wait_dag_run_until_finished_with_http_info(
31983197
self,
31993198
dag_id: StrictStr,
32003199
dag_run_id: StrictStr,
3201-
interval: Annotated[Union[StrictFloat, StrictInt], Field(description="Seconds to wait between dag run state checks")],
3200+
interval: Annotated[Union[Annotated[float, Field(strict=True, gt=0.0)], Annotated[int, Field(strict=True, gt=0)]], Field(description="Seconds to wait between dag run state checks")],
32023201
result: Annotated[Optional[List[StrictStr]], Field(description="Collect result XCom from task. Can be set multiple times.")] = None,
32033202
_request_timeout: Union[
32043203
None,
@@ -3281,7 +3280,7 @@ def wait_dag_run_until_finished_without_preload_content(
32813280
self,
32823281
dag_id: StrictStr,
32833282
dag_run_id: StrictStr,
3284-
interval: Annotated[Union[StrictFloat, StrictInt], Field(description="Seconds to wait between dag run state checks")],
3283+
interval: Annotated[Union[Annotated[float, Field(strict=True, gt=0.0)], Annotated[int, Field(strict=True, gt=0)]], Field(description="Seconds to wait between dag run state checks")],
32853284
result: Annotated[Optional[List[StrictStr]], Field(description="Collect result XCom from task. Can be set multiple times.")] = None,
32863285
_request_timeout: Union[
32873286
None,

0 commit comments

Comments
 (0)