Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,19 @@
under the License.
-->

# v3.3.2

## Improvements:

- Document HTTP statuses that API routes raise but never declared (#71622)

## Bug Fixes:

- Revoke every credential presented to the logout endpoint, not just the session cookie (#72933)
- Restore counts on the Dag Run and Task Instance lists (#72739)
- Return HTTP 404 from task state store endpoints for unknown task instances (#71860)
- Mark only a run's most recent asset event as triggering it (#71547)

# v3.3.1

## Bug Fixes:
Expand Down
2 changes: 1 addition & 1 deletion airflow_client/client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
""" # noqa: E501


__version__ = "3.3.1"
__version__ = "3.3.2"

# Define package exports
__all__ = [
Expand Down
3 changes: 3 additions & 0 deletions airflow_client/client/api/backfill_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -662,6 +662,7 @@ def create_backfill_dry_run(

_response_types_map: Dict[str, Optional[str]] = {
'200': "DryRunBackfillCollectionResponse",
'400': "HTTPExceptionResponse",
'401': "HTTPExceptionResponse",
'403': "HTTPExceptionResponse",
'404': "HTTPExceptionResponse",
Expand Down Expand Up @@ -734,6 +735,7 @@ def create_backfill_dry_run_with_http_info(

_response_types_map: Dict[str, Optional[str]] = {
'200': "DryRunBackfillCollectionResponse",
'400': "HTTPExceptionResponse",
'401': "HTTPExceptionResponse",
'403': "HTTPExceptionResponse",
'404': "HTTPExceptionResponse",
Expand Down Expand Up @@ -806,6 +808,7 @@ def create_backfill_dry_run_without_preload_content(

_response_types_map: Dict[str, Optional[str]] = {
'200': "DryRunBackfillCollectionResponse",
'400': "HTTPExceptionResponse",
'401': "HTTPExceptionResponse",
'403': "HTTPExceptionResponse",
'404': "HTTPExceptionResponse",
Expand Down
3 changes: 3 additions & 0 deletions airflow_client/client/api/dag_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ def delete_dag(
'401': "HTTPExceptionResponse",
'403': "HTTPExceptionResponse",
'404': "HTTPExceptionResponse",
'409': "HTTPExceptionResponse",
'422': "HTTPExceptionResponse",
}
response_data = self.api_client.call_api(
Expand Down Expand Up @@ -174,6 +175,7 @@ def delete_dag_with_http_info(
'401': "HTTPExceptionResponse",
'403': "HTTPExceptionResponse",
'404': "HTTPExceptionResponse",
'409': "HTTPExceptionResponse",
'422': "HTTPExceptionResponse",
}
response_data = self.api_client.call_api(
Expand Down Expand Up @@ -246,6 +248,7 @@ def delete_dag_without_preload_content(
'401': "HTTPExceptionResponse",
'403': "HTTPExceptionResponse",
'404': "HTTPExceptionResponse",
'409': "HTTPExceptionResponse",
'422': "HTTPExceptionResponse",
}
response_data = self.api_client.call_api(
Expand Down
12 changes: 9 additions & 3 deletions airflow_client/client/api/dag_run_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1338,6 +1338,7 @@ def delete_dag_run(
'401': "HTTPExceptionResponse",
'403': "HTTPExceptionResponse",
'404': "HTTPExceptionResponse",
'409': "HTTPExceptionResponse",
'422': "HTTPValidationError",
}
response_data = self.api_client.call_api(
Expand Down Expand Up @@ -1414,6 +1415,7 @@ def delete_dag_run_with_http_info(
'401': "HTTPExceptionResponse",
'403': "HTTPExceptionResponse",
'404': "HTTPExceptionResponse",
'409': "HTTPExceptionResponse",
'422': "HTTPValidationError",
}
response_data = self.api_client.call_api(
Expand Down Expand Up @@ -1490,6 +1492,7 @@ def delete_dag_run_without_preload_content(
'401': "HTTPExceptionResponse",
'403': "HTTPExceptionResponse",
'404': "HTTPExceptionResponse",
'409': "HTTPExceptionResponse",
'422': "HTTPValidationError",
}
response_data = self.api_client.call_api(
Expand Down Expand Up @@ -1916,7 +1919,7 @@ def get_dag_runs(
) -> DAGRunCollectionResponse:
"""Get Dag Runs

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.
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.

:param dag_id: (required)
:type dag_id: str
Expand Down Expand Up @@ -2084,6 +2087,7 @@ def get_dag_runs(

_response_types_map: Dict[str, Optional[str]] = {
'200': "DAGRunCollectionResponse",
'400': "HTTPExceptionResponse",
'401': "HTTPExceptionResponse",
'403': "HTTPExceptionResponse",
'404': "HTTPExceptionResponse",
Expand Down Expand Up @@ -2163,7 +2167,7 @@ def get_dag_runs_with_http_info(
) -> ApiResponse[DAGRunCollectionResponse]:
"""Get Dag Runs

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.
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.

:param dag_id: (required)
:type dag_id: str
Expand Down Expand Up @@ -2331,6 +2335,7 @@ def get_dag_runs_with_http_info(

_response_types_map: Dict[str, Optional[str]] = {
'200': "DAGRunCollectionResponse",
'400': "HTTPExceptionResponse",
'401': "HTTPExceptionResponse",
'403': "HTTPExceptionResponse",
'404': "HTTPExceptionResponse",
Expand Down Expand Up @@ -2410,7 +2415,7 @@ def get_dag_runs_without_preload_content(
) -> RESTResponseType:
"""Get Dag Runs

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.
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.

:param dag_id: (required)
:type dag_id: str
Expand Down Expand Up @@ -2578,6 +2583,7 @@ def get_dag_runs_without_preload_content(

_response_types_map: Dict[str, Optional[str]] = {
'200': "DAGRunCollectionResponse",
'400': "HTTPExceptionResponse",
'401': "HTTPExceptionResponse",
'403': "HTTPExceptionResponse",
'404': "HTTPExceptionResponse",
Expand Down
2 changes: 2 additions & 0 deletions airflow_client/client/api/login_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,8 @@ def _logout_serialize(

# authentication setting
_auth_settings: List[str] = [
'OAuth2PasswordBearer',
'HTTPBearer'
]

return self.api_client.param_serialize(
Expand Down
12 changes: 9 additions & 3 deletions airflow_client/client/api/task_instance_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -6919,7 +6919,7 @@ def get_task_instances(
) -> TaskInstanceCollectionResponse:
"""Get Task Instances

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.
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.

:param dag_id: (required)
:type dag_id: str
Expand Down Expand Up @@ -7203,7 +7203,7 @@ def get_task_instances_with_http_info(
) -> ApiResponse[TaskInstanceCollectionResponse]:
"""Get Task Instances

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.
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.

:param dag_id: (required)
:type dag_id: str
Expand Down Expand Up @@ -7487,7 +7487,7 @@ def get_task_instances_without_preload_content(
) -> RESTResponseType:
"""Get Task Instances

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.
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.

:param dag_id: (required)
:type dag_id: str
Expand Down Expand Up @@ -10761,6 +10761,7 @@ def post_clear_task_instances(

_response_types_map: Dict[str, Optional[str]] = {
'200': "TaskInstanceCollectionResponse",
'400': "HTTPExceptionResponse",
'401': "HTTPExceptionResponse",
'403': "HTTPExceptionResponse",
'404': "HTTPExceptionResponse",
Expand Down Expand Up @@ -10837,6 +10838,7 @@ def post_clear_task_instances_with_http_info(

_response_types_map: Dict[str, Optional[str]] = {
'200': "TaskInstanceCollectionResponse",
'400': "HTTPExceptionResponse",
'401': "HTTPExceptionResponse",
'403': "HTTPExceptionResponse",
'404': "HTTPExceptionResponse",
Expand Down Expand Up @@ -10913,6 +10915,7 @@ def post_clear_task_instances_without_preload_content(

_response_types_map: Dict[str, Optional[str]] = {
'200': "TaskInstanceCollectionResponse",
'400': "HTTPExceptionResponse",
'401': "HTTPExceptionResponse",
'403': "HTTPExceptionResponse",
'404': "HTTPExceptionResponse",
Expand Down Expand Up @@ -11078,6 +11081,7 @@ def update_hitl_detail(

_response_types_map: Dict[str, Optional[str]] = {
'200': "HITLDetailResponse",
'400': "HTTPExceptionResponse",
'401': "HTTPExceptionResponse",
'403': "HTTPExceptionResponse",
'404': "HTTPExceptionResponse",
Expand Down Expand Up @@ -11166,6 +11170,7 @@ def update_hitl_detail_with_http_info(

_response_types_map: Dict[str, Optional[str]] = {
'200': "HITLDetailResponse",
'400': "HTTPExceptionResponse",
'401': "HTTPExceptionResponse",
'403': "HTTPExceptionResponse",
'404': "HTTPExceptionResponse",
Expand Down Expand Up @@ -11254,6 +11259,7 @@ def update_hitl_detail_without_preload_content(

_response_types_map: Dict[str, Optional[str]] = {
'200': "HITLDetailResponse",
'400': "HTTPExceptionResponse",
'401': "HTTPExceptionResponse",
'403': "HTTPExceptionResponse",
'404': "HTTPExceptionResponse",
Expand Down
Loading
Loading