diff --git a/airflow_client/.openapi-generator/FILES b/airflow_client/.openapi-generator/FILES index a9428fa0..2466f07d 100644 --- a/airflow_client/.openapi-generator/FILES +++ b/airflow_client/.openapi-generator/FILES @@ -66,6 +66,9 @@ client/model/inline_response2001.py client/model/list_dag_runs_form.py client/model/list_task_instance_form.py client/model/metadatabase_status.py +client/model/nullable_sla_miss.py +client/model/nullable_task_state.py +client/model/nullable_time_delta.py client/model/plugin_collection.py client/model/plugin_collection_all_of.py client/model/plugin_collection_item.py @@ -167,6 +170,9 @@ docs/ListDagRunsForm.md docs/ListTaskInstanceForm.md docs/MetadatabaseStatus.md docs/MonitoringApi.md +docs/NullableSLAMiss.md +docs/NullableTaskState.md +docs/NullableTimeDelta.md docs/PermissionApi.md docs/PluginApi.md docs/PluginCollection.md @@ -275,6 +281,9 @@ test/test_list_dag_runs_form.py test/test_list_task_instance_form.py test/test_metadatabase_status.py test/test_monitoring_api.py +test/test_nullable_sla_miss.py +test/test_nullable_task_state.py +test/test_nullable_time_delta.py test/test_permission_api.py test/test_plugin_api.py test/test_plugin_collection.py diff --git a/airflow_client/README.md b/airflow_client/README.md index 9a705f07..4c7edf29 100644 --- a/airflow_client/README.md +++ b/airflow_client/README.md @@ -1,22 +1,3 @@ - - # Apache Airflow Python Client # Overview @@ -294,16 +275,6 @@ configuration = client.Configuration( host = "http://localhost/api/v1" ) -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = client.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) # Enter a context with an instance of the API client @@ -431,6 +402,9 @@ Class | Method | HTTP request | Description - [ListDagRunsForm](docs/ListDagRunsForm.md) - [ListTaskInstanceForm](docs/ListTaskInstanceForm.md) - [MetadatabaseStatus](docs/MetadatabaseStatus.md) + - [NullableSLAMiss](docs/NullableSLAMiss.md) + - [NullableTaskState](docs/NullableTaskState.md) + - [NullableTimeDelta](docs/NullableTimeDelta.md) - [PluginCollection](docs/PluginCollection.md) - [PluginCollectionAllOf](docs/PluginCollectionAllOf.md) - [PluginCollectionItem](docs/PluginCollectionItem.md) diff --git a/airflow_client/client/__init__.py b/airflow_client/client/__init__.py index e70eb758..be1fd507 100644 --- a/airflow_client/client/__init__.py +++ b/airflow_client/client/__init__.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - # flake8: noqa """ diff --git a/airflow_client/client/api/__init__.py b/airflow_client/client/api/__init__.py index 0f3ba40a..10c6e181 100644 --- a/airflow_client/client/api/__init__.py +++ b/airflow_client/client/api/__init__.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - # do not import all apis into this module because that uses a lot of memory and stack frames # if you need the ability to import all apis from one package, import them with # from airflow_client.client.apis import ConfigApi diff --git a/airflow_client/client/api/config_api.py b/airflow_client/client/api/config_api.py index c540e491..edc3a890 100644 --- a/airflow_client/client/api/config_api.py +++ b/airflow_client/client/api/config_api.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) @@ -57,10 +40,7 @@ def __init__(self, api_client=None): self.get_config_endpoint = _Endpoint( settings={ 'response_type': (Config,), - 'auth': [ - 'Basic', - 'Kerberos' - ], + 'auth': [], 'endpoint_path': '/config', 'operation_id': 'get_config', 'http_method': 'GET', diff --git a/airflow_client/client/api/connection_api.py b/airflow_client/client/api/connection_api.py index 95a0c7af..8fd2060c 100644 --- a/airflow_client/client/api/connection_api.py +++ b/airflow_client/client/api/connection_api.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) @@ -59,10 +42,7 @@ def __init__(self, api_client=None): self.delete_connection_endpoint = _Endpoint( settings={ 'response_type': None, - 'auth': [ - 'Basic', - 'Kerberos' - ], + 'auth': [], 'endpoint_path': '/connections/{connection_id}', 'operation_id': 'delete_connection', 'http_method': 'DELETE', @@ -111,10 +91,7 @@ def __init__(self, api_client=None): self.get_connection_endpoint = _Endpoint( settings={ 'response_type': (Connection,), - 'auth': [ - 'Basic', - 'Kerberos' - ], + 'auth': [], 'endpoint_path': '/connections/{connection_id}', 'operation_id': 'get_connection', 'http_method': 'GET', @@ -163,10 +140,7 @@ def __init__(self, api_client=None): self.get_connections_endpoint = _Endpoint( settings={ 'response_type': (ConnectionCollection,), - 'auth': [ - 'Basic', - 'Kerberos' - ], + 'auth': [], 'endpoint_path': '/connections', 'operation_id': 'get_connections', 'http_method': 'GET', @@ -228,10 +202,7 @@ def __init__(self, api_client=None): self.patch_connection_endpoint = _Endpoint( settings={ 'response_type': (Connection,), - 'auth': [ - 'Basic', - 'Kerberos' - ], + 'auth': [], 'endpoint_path': '/connections/{connection_id}', 'operation_id': 'patch_connection', 'http_method': 'PATCH', @@ -293,10 +264,7 @@ def __init__(self, api_client=None): self.post_connection_endpoint = _Endpoint( settings={ 'response_type': (Connection,), - 'auth': [ - 'Basic', - 'Kerberos' - ], + 'auth': [], 'endpoint_path': '/connections', 'operation_id': 'post_connection', 'http_method': 'POST', @@ -346,10 +314,7 @@ def __init__(self, api_client=None): self.test_connection_endpoint = _Endpoint( settings={ 'response_type': (ConnectionTest,), - 'auth': [ - 'Basic', - 'Kerberos' - ], + 'auth': [], 'endpoint_path': '/connections/test', 'operation_id': 'test_connection', 'http_method': 'POST', @@ -543,7 +508,7 @@ def get_connections( Keyword Args: limit (int): The numbers of items to return.. [optional] if omitted the server will use the default value of 100 offset (int): The number of items to skip before starting to collect the result set.. [optional] - order_by (str): The name of the field to order the results by. Prefix a field name with `-` to reverse the sort order. . [optional] + order_by (str): The name of the field to order the results by. Prefix a field name with `-` to reverse the sort order. *New in version 2.1.0* . [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -732,6 +697,7 @@ def test_connection( ): """Test a connection # noqa: E501 + Test a connection. *New in version 2.2.0* # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True diff --git a/airflow_client/client/api/dag_api.py b/airflow_client/client/api/dag_api.py index 21396eec..f411664b 100644 --- a/airflow_client/client/api/dag_api.py +++ b/airflow_client/client/api/dag_api.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) @@ -65,10 +48,7 @@ def __init__(self, api_client=None): self.delete_dag_endpoint = _Endpoint( settings={ 'response_type': None, - 'auth': [ - 'Basic', - 'Kerberos' - ], + 'auth': [], 'endpoint_path': '/dags/{dag_id}', 'operation_id': 'delete_dag', 'http_method': 'DELETE', @@ -117,10 +97,7 @@ def __init__(self, api_client=None): self.get_dag_endpoint = _Endpoint( settings={ 'response_type': (DAG,), - 'auth': [ - 'Basic', - 'Kerberos' - ], + 'auth': [], 'endpoint_path': '/dags/{dag_id}', 'operation_id': 'get_dag', 'http_method': 'GET', @@ -169,10 +146,7 @@ def __init__(self, api_client=None): self.get_dag_details_endpoint = _Endpoint( settings={ 'response_type': (DAGDetail,), - 'auth': [ - 'Basic', - 'Kerberos' - ], + 'auth': [], 'endpoint_path': '/dags/{dag_id}/details', 'operation_id': 'get_dag_details', 'http_method': 'GET', @@ -221,10 +195,7 @@ def __init__(self, api_client=None): self.get_dag_source_endpoint = _Endpoint( settings={ 'response_type': (InlineResponse2001,), - 'auth': [ - 'Basic', - 'Kerberos' - ], + 'auth': [], 'endpoint_path': '/dagSources/{file_token}', 'operation_id': 'get_dag_source', 'http_method': 'GET', @@ -274,10 +245,7 @@ def __init__(self, api_client=None): self.get_dags_endpoint = _Endpoint( settings={ 'response_type': (DAGCollection,), - 'auth': [ - 'Basic', - 'Kerberos' - ], + 'auth': [], 'endpoint_path': '/dags', 'operation_id': 'get_dags', 'http_method': 'GET', @@ -290,6 +258,7 @@ def __init__(self, api_client=None): 'order_by', 'tags', 'only_active', + 'dag_id_pattern', ], 'required': [], 'nullable': [ @@ -320,6 +289,8 @@ def __init__(self, api_client=None): ([str],), 'only_active': (bool,), + 'dag_id_pattern': + (str,), }, 'attribute_map': { 'limit': 'limit', @@ -327,6 +298,7 @@ def __init__(self, api_client=None): 'order_by': 'order_by', 'tags': 'tags', 'only_active': 'only_active', + 'dag_id_pattern': 'dag_id_pattern', }, 'location_map': { 'limit': 'query', @@ -334,6 +306,7 @@ def __init__(self, api_client=None): 'order_by': 'query', 'tags': 'query', 'only_active': 'query', + 'dag_id_pattern': 'query', }, 'collection_format_map': { 'tags': 'multi', @@ -350,10 +323,7 @@ def __init__(self, api_client=None): self.get_task_endpoint = _Endpoint( settings={ 'response_type': (Task,), - 'auth': [ - 'Basic', - 'Kerberos' - ], + 'auth': [], 'endpoint_path': '/dags/{dag_id}/tasks/{task_id}', 'operation_id': 'get_task', 'http_method': 'GET', @@ -408,10 +378,7 @@ def __init__(self, api_client=None): self.get_tasks_endpoint = _Endpoint( settings={ 'response_type': (TaskCollection,), - 'auth': [ - 'Basic', - 'Kerberos' - ], + 'auth': [], 'endpoint_path': '/dags/{dag_id}/tasks', 'operation_id': 'get_tasks', 'http_method': 'GET', @@ -465,10 +432,7 @@ def __init__(self, api_client=None): self.patch_dag_endpoint = _Endpoint( settings={ 'response_type': (DAG,), - 'auth': [ - 'Basic', - 'Kerberos' - ], + 'auth': [], 'endpoint_path': '/dags/{dag_id}', 'operation_id': 'patch_dag', 'http_method': 'PATCH', @@ -530,10 +494,7 @@ def __init__(self, api_client=None): self.post_clear_task_instances_endpoint = _Endpoint( settings={ 'response_type': (TaskInstanceReferenceCollection,), - 'auth': [ - 'Basic', - 'Kerberos' - ], + 'auth': [], 'endpoint_path': '/dags/{dag_id}/clearTaskInstances', 'operation_id': 'post_clear_task_instances', 'http_method': 'POST', @@ -589,10 +550,7 @@ def __init__(self, api_client=None): self.post_set_task_instances_state_endpoint = _Endpoint( settings={ 'response_type': (TaskInstanceReferenceCollection,), - 'auth': [ - 'Basic', - 'Kerberos' - ], + 'auth': [], 'endpoint_path': '/dags/{dag_id}/updateTaskInstancesState', 'operation_id': 'post_set_task_instances_state', 'http_method': 'POST', @@ -653,7 +611,7 @@ def delete_dag( ): """Delete a DAG # noqa: E501 - Deletes all metadata related to the DAG, including finished DAG Runs and Tasks. Logs are not deleted. This action cannot be undone. # noqa: E501 + Deletes all metadata related to the DAG, including finished DAG Runs and Tasks. Logs are not deleted. This action cannot be undone. *New in version 2.2.0* # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -926,9 +884,10 @@ def get_dags( Keyword Args: limit (int): The numbers of items to return.. [optional] if omitted the server will use the default value of 100 offset (int): The number of items to skip before starting to collect the result set.. [optional] - order_by (str): The name of the field to order the results by. Prefix a field name with `-` to reverse the sort order. . [optional] - tags ([str]): List of tags to filter results. [optional] - only_active (bool): Only return active DAGs.. [optional] if omitted the server will use the default value of True + order_by (str): The name of the field to order the results by. Prefix a field name with `-` to reverse the sort order. *New in version 2.1.0* . [optional] + tags ([str]): List of tags to filter results. *New in version 2.2.0* . [optional] + only_active (bool): Only return active DAGs. *New in version 2.1.1* . [optional] if omitted the server will use the default value of True + dag_id_pattern (str): If set, only return DAGs with dag_ids matching this pattern. *New in version 2.3.0* . [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -1061,7 +1020,7 @@ def get_tasks( dag_id (str): The DAG ID. Keyword Args: - order_by (str): The name of the field to order the results by. Prefix a field name with `-` to reverse the sort order. . [optional] + order_by (str): The name of the field to order the results by. Prefix a field name with `-` to reverse the sort order. *New in version 2.1.0* . [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object diff --git a/airflow_client/client/api/dag_run_api.py b/airflow_client/client/api/dag_run_api.py index 171623f1..c7b85108 100644 --- a/airflow_client/client/api/dag_run_api.py +++ b/airflow_client/client/api/dag_run_api.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) @@ -60,10 +43,7 @@ def __init__(self, api_client=None): self.delete_dag_run_endpoint = _Endpoint( settings={ 'response_type': None, - 'auth': [ - 'Basic', - 'Kerberos' - ], + 'auth': [], 'endpoint_path': '/dags/{dag_id}/dagRuns/{dag_run_id}', 'operation_id': 'delete_dag_run', 'http_method': 'DELETE', @@ -118,10 +98,7 @@ def __init__(self, api_client=None): self.get_dag_run_endpoint = _Endpoint( settings={ 'response_type': (DAGRun,), - 'auth': [ - 'Basic', - 'Kerberos' - ], + 'auth': [], 'endpoint_path': '/dags/{dag_id}/dagRuns/{dag_run_id}', 'operation_id': 'get_dag_run', 'http_method': 'GET', @@ -176,10 +153,7 @@ def __init__(self, api_client=None): self.get_dag_runs_endpoint = _Endpoint( settings={ 'response_type': (DAGRunCollection,), - 'auth': [ - 'Basic', - 'Kerberos' - ], + 'auth': [], 'endpoint_path': '/dags/{dag_id}/dagRuns', 'operation_id': 'get_dag_runs', 'http_method': 'GET', @@ -196,6 +170,7 @@ def __init__(self, api_client=None): 'start_date_lte', 'end_date_gte', 'end_date_lte', + 'state', 'order_by', ], 'required': [ @@ -237,6 +212,8 @@ def __init__(self, api_client=None): (datetime,), 'end_date_lte': (datetime,), + 'state': + ([str],), 'order_by': (str,), }, @@ -250,6 +227,7 @@ def __init__(self, api_client=None): 'start_date_lte': 'start_date_lte', 'end_date_gte': 'end_date_gte', 'end_date_lte': 'end_date_lte', + 'state': 'state', 'order_by': 'order_by', }, 'location_map': { @@ -262,9 +240,11 @@ def __init__(self, api_client=None): 'start_date_lte': 'query', 'end_date_gte': 'query', 'end_date_lte': 'query', + 'state': 'query', 'order_by': 'query', }, 'collection_format_map': { + 'state': 'multi', } }, headers_map={ @@ -278,10 +258,7 @@ def __init__(self, api_client=None): self.get_dag_runs_batch_endpoint = _Endpoint( settings={ 'response_type': (DAGRunCollection,), - 'auth': [ - 'Basic', - 'Kerberos' - ], + 'auth': [], 'endpoint_path': '/dags/~/dagRuns/list', 'operation_id': 'get_dag_runs_batch', 'http_method': 'POST', @@ -331,10 +308,7 @@ def __init__(self, api_client=None): self.post_dag_run_endpoint = _Endpoint( settings={ 'response_type': (DAGRun,), - 'auth': [ - 'Basic', - 'Kerberos' - ], + 'auth': [], 'endpoint_path': '/dags/{dag_id}/dagRuns', 'operation_id': 'post_dag_run', 'http_method': 'POST', @@ -390,10 +364,7 @@ def __init__(self, api_client=None): self.update_dag_run_state_endpoint = _Endpoint( settings={ 'response_type': (DAGRun,), - 'auth': [ - 'Basic', - 'Kerberos' - ], + 'auth': [], 'endpoint_path': '/dags/{dag_id}/dagRuns/{dag_run_id}', 'operation_id': 'update_dag_run_state', 'http_method': 'PATCH', @@ -617,7 +588,8 @@ def get_dag_runs( start_date_lte (datetime): Returns objects less or equal the specified date. This can be combined with start_date_gte parameter to receive only the selected period. . [optional] end_date_gte (datetime): Returns objects greater or equal the specified date. This can be combined with start_date_lte parameter to receive only the selected period. . [optional] end_date_lte (datetime): Returns objects less than or equal to the specified date. This can be combined with start_date_gte parameter to receive only the selected period. . [optional] - order_by (str): The name of the field to order the results by. Prefix a field name with `-` to reverse the sort order. . [optional] + state ([str]): The value can be repeated to retrieve multiple matching values (OR condition).. [optional] + order_by (str): The name of the field to order the results by. Prefix a field name with `-` to reverse the sort order. *New in version 2.1.0* . [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -810,7 +782,7 @@ def update_dag_run_state( ): """Modify a DAG run # noqa: E501 - Modify a DAG run # noqa: E501 + Modify a DAG run. *New in version 2.2.0* # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True diff --git a/airflow_client/client/api/event_log_api.py b/airflow_client/client/api/event_log_api.py index cbbaad36..2a6831dd 100644 --- a/airflow_client/client/api/event_log_api.py +++ b/airflow_client/client/api/event_log_api.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) @@ -58,10 +41,7 @@ def __init__(self, api_client=None): self.get_event_log_endpoint = _Endpoint( settings={ 'response_type': (EventLog,), - 'auth': [ - 'Basic', - 'Kerberos' - ], + 'auth': [], 'endpoint_path': '/eventLogs/{event_log_id}', 'operation_id': 'get_event_log', 'http_method': 'GET', @@ -110,10 +90,7 @@ def __init__(self, api_client=None): self.get_event_logs_endpoint = _Endpoint( settings={ 'response_type': (EventLogCollection,), - 'auth': [ - 'Basic', - 'Kerberos' - ], + 'auth': [], 'endpoint_path': '/eventLogs', 'operation_id': 'get_event_logs', 'http_method': 'GET', @@ -255,7 +232,7 @@ def get_event_logs( Keyword Args: limit (int): The numbers of items to return.. [optional] if omitted the server will use the default value of 100 offset (int): The number of items to skip before starting to collect the result set.. [optional] - order_by (str): The name of the field to order the results by. Prefix a field name with `-` to reverse the sort order. . [optional] + order_by (str): The name of the field to order the results by. Prefix a field name with `-` to reverse the sort order. *New in version 2.1.0* . [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object diff --git a/airflow_client/client/api/import_error_api.py b/airflow_client/client/api/import_error_api.py index e3bbd788..b0a6d53b 100644 --- a/airflow_client/client/api/import_error_api.py +++ b/airflow_client/client/api/import_error_api.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) @@ -58,10 +41,7 @@ def __init__(self, api_client=None): self.get_import_error_endpoint = _Endpoint( settings={ 'response_type': (ImportError,), - 'auth': [ - 'Basic', - 'Kerberos' - ], + 'auth': [], 'endpoint_path': '/importErrors/{import_error_id}', 'operation_id': 'get_import_error', 'http_method': 'GET', @@ -110,10 +90,7 @@ def __init__(self, api_client=None): self.get_import_errors_endpoint = _Endpoint( settings={ 'response_type': (ImportErrorCollection,), - 'auth': [ - 'Basic', - 'Kerberos' - ], + 'auth': [], 'endpoint_path': '/importErrors', 'operation_id': 'get_import_errors', 'http_method': 'GET', @@ -254,7 +231,7 @@ def get_import_errors( Keyword Args: limit (int): The numbers of items to return.. [optional] if omitted the server will use the default value of 100 offset (int): The number of items to skip before starting to collect the result set.. [optional] - order_by (str): The name of the field to order the results by. Prefix a field name with `-` to reverse the sort order. . [optional] + order_by (str): The name of the field to order the results by. Prefix a field name with `-` to reverse the sort order. *New in version 2.1.0* . [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object diff --git a/airflow_client/client/api/monitoring_api.py b/airflow_client/client/api/monitoring_api.py index eaf1182f..962a8b0a 100644 --- a/airflow_client/client/api/monitoring_api.py +++ b/airflow_client/client/api/monitoring_api.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) @@ -57,10 +40,7 @@ def __init__(self, api_client=None): self.get_health_endpoint = _Endpoint( settings={ 'response_type': (HealthInfo,), - 'auth': [ - 'Basic', - 'Kerberos' - ], + 'auth': [], 'endpoint_path': '/health', 'operation_id': 'get_health', 'http_method': 'GET', @@ -102,10 +82,7 @@ def __init__(self, api_client=None): self.get_version_endpoint = _Endpoint( settings={ 'response_type': (VersionInfo,), - 'auth': [ - 'Basic', - 'Kerberos' - ], + 'auth': [], 'endpoint_path': '/version', 'operation_id': 'get_version', 'http_method': 'GET', diff --git a/airflow_client/client/api/permission_api.py b/airflow_client/client/api/permission_api.py index 1629997d..835c8279 100644 --- a/airflow_client/client/api/permission_api.py +++ b/airflow_client/client/api/permission_api.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) @@ -57,10 +40,7 @@ def __init__(self, api_client=None): self.get_permissions_endpoint = _Endpoint( settings={ 'response_type': (ActionCollection,), - 'auth': [ - 'Basic', - 'Kerberos' - ], + 'auth': [], 'endpoint_path': '/permissions', 'operation_id': 'get_permissions', 'http_method': 'GET', @@ -121,6 +101,7 @@ def get_permissions( ): """List permissions # noqa: E501 + Get a list of permissions. *New in version 2.1.0* # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True diff --git a/airflow_client/client/api/plugin_api.py b/airflow_client/client/api/plugin_api.py index ae214db5..6a6faaf4 100644 --- a/airflow_client/client/api/plugin_api.py +++ b/airflow_client/client/api/plugin_api.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) @@ -57,10 +40,7 @@ def __init__(self, api_client=None): self.get_plugins_endpoint = _Endpoint( settings={ 'response_type': (PluginCollection,), - 'auth': [ - 'Basic', - 'Kerberos' - ], + 'auth': [], 'endpoint_path': '/plugins', 'operation_id': 'get_plugins', 'http_method': 'GET', @@ -121,6 +101,7 @@ def get_plugins( ): """Get a list of loaded plugins # noqa: E501 + Get a list of loaded plugins. *New in version 2.1.0* # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True diff --git a/airflow_client/client/api/pool_api.py b/airflow_client/client/api/pool_api.py index d75cc8f5..e601455e 100644 --- a/airflow_client/client/api/pool_api.py +++ b/airflow_client/client/api/pool_api.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) @@ -58,10 +41,7 @@ def __init__(self, api_client=None): self.delete_pool_endpoint = _Endpoint( settings={ 'response_type': None, - 'auth': [ - 'Basic', - 'Kerberos' - ], + 'auth': [], 'endpoint_path': '/pools/{pool_name}', 'operation_id': 'delete_pool', 'http_method': 'DELETE', @@ -110,10 +90,7 @@ def __init__(self, api_client=None): self.get_pool_endpoint = _Endpoint( settings={ 'response_type': (Pool,), - 'auth': [ - 'Basic', - 'Kerberos' - ], + 'auth': [], 'endpoint_path': '/pools/{pool_name}', 'operation_id': 'get_pool', 'http_method': 'GET', @@ -162,10 +139,7 @@ def __init__(self, api_client=None): self.get_pools_endpoint = _Endpoint( settings={ 'response_type': (PoolCollection,), - 'auth': [ - 'Basic', - 'Kerberos' - ], + 'auth': [], 'endpoint_path': '/pools', 'operation_id': 'get_pools', 'http_method': 'GET', @@ -227,10 +201,7 @@ def __init__(self, api_client=None): self.patch_pool_endpoint = _Endpoint( settings={ 'response_type': (Pool,), - 'auth': [ - 'Basic', - 'Kerberos' - ], + 'auth': [], 'endpoint_path': '/pools/{pool_name}', 'operation_id': 'patch_pool', 'http_method': 'PATCH', @@ -292,10 +263,7 @@ def __init__(self, api_client=None): self.post_pool_endpoint = _Endpoint( settings={ 'response_type': (Pool,), - 'auth': [ - 'Basic', - 'Kerberos' - ], + 'auth': [], 'endpoint_path': '/pools', 'operation_id': 'post_pool', 'http_method': 'POST', @@ -489,7 +457,7 @@ def get_pools( Keyword Args: limit (int): The numbers of items to return.. [optional] if omitted the server will use the default value of 100 offset (int): The number of items to skip before starting to collect the result set.. [optional] - order_by (str): The name of the field to order the results by. Prefix a field name with `-` to reverse the sort order. . [optional] + order_by (str): The name of the field to order the results by. Prefix a field name with `-` to reverse the sort order. *New in version 2.1.0* . [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object diff --git a/airflow_client/client/api/provider_api.py b/airflow_client/client/api/provider_api.py index 7f60de8f..343058ce 100644 --- a/airflow_client/client/api/provider_api.py +++ b/airflow_client/client/api/provider_api.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) @@ -56,10 +39,7 @@ def __init__(self, api_client=None): self.get_providers_endpoint = _Endpoint( settings={ 'response_type': (bool, date, datetime, dict, float, int, list, str, none_type,), - 'auth': [ - 'Basic', - 'Kerberos' - ], + 'auth': [], 'endpoint_path': '/providers', 'operation_id': 'get_providers', 'http_method': 'GET', @@ -105,6 +85,7 @@ def get_providers( ): """List providers # noqa: E501 + Get a list of providers. *New in version 2.1.0* # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True diff --git a/airflow_client/client/api/role_api.py b/airflow_client/client/api/role_api.py index 8845abd4..3183fab8 100644 --- a/airflow_client/client/api/role_api.py +++ b/airflow_client/client/api/role_api.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) @@ -58,10 +41,7 @@ def __init__(self, api_client=None): self.delete_role_endpoint = _Endpoint( settings={ 'response_type': None, - 'auth': [ - 'Basic', - 'Kerberos' - ], + 'auth': [], 'endpoint_path': '/roles/{role_name}', 'operation_id': 'delete_role', 'http_method': 'DELETE', @@ -110,10 +90,7 @@ def __init__(self, api_client=None): self.get_role_endpoint = _Endpoint( settings={ 'response_type': (Role,), - 'auth': [ - 'Basic', - 'Kerberos' - ], + 'auth': [], 'endpoint_path': '/roles/{role_name}', 'operation_id': 'get_role', 'http_method': 'GET', @@ -162,10 +139,7 @@ def __init__(self, api_client=None): self.get_roles_endpoint = _Endpoint( settings={ 'response_type': (RoleCollection,), - 'auth': [ - 'Basic', - 'Kerberos' - ], + 'auth': [], 'endpoint_path': '/roles', 'operation_id': 'get_roles', 'http_method': 'GET', @@ -227,10 +201,7 @@ def __init__(self, api_client=None): self.patch_role_endpoint = _Endpoint( settings={ 'response_type': (Role,), - 'auth': [ - 'Basic', - 'Kerberos' - ], + 'auth': [], 'endpoint_path': '/roles/{role_name}', 'operation_id': 'patch_role', 'http_method': 'PATCH', @@ -292,10 +263,7 @@ def __init__(self, api_client=None): self.post_role_endpoint = _Endpoint( settings={ 'response_type': (Role,), - 'auth': [ - 'Basic', - 'Kerberos' - ], + 'auth': [], 'endpoint_path': '/roles', 'operation_id': 'post_role', 'http_method': 'POST', @@ -350,6 +318,7 @@ def delete_role( ): """Delete a role # noqa: E501 + Delete a role. *New in version 2.1.0* # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -415,6 +384,7 @@ def get_role( ): """Get a role # noqa: E501 + Get a role. *New in version 2.1.0* # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -479,6 +449,7 @@ def get_roles( ): """List roles # noqa: E501 + Get a list of roles. *New in version 2.1.0* # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -489,7 +460,7 @@ def get_roles( Keyword Args: limit (int): The numbers of items to return.. [optional] if omitted the server will use the default value of 100 offset (int): The number of items to skip before starting to collect the result set.. [optional] - order_by (str): The name of the field to order the results by. Prefix a field name with `-` to reverse the sort order. . [optional] + order_by (str): The name of the field to order the results by. Prefix a field name with `-` to reverse the sort order. *New in version 2.1.0* . [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -544,6 +515,7 @@ def patch_role( ): """Update a role # noqa: E501 + Update a role. *New in version 2.1.0* # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -613,6 +585,7 @@ def post_role( ): """Create a role # noqa: E501 + Create a new role. *New in version 2.1.0* # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True diff --git a/airflow_client/client/api/task_instance_api.py b/airflow_client/client/api/task_instance_api.py index 69072a00..a6d49c83 100644 --- a/airflow_client/client/api/task_instance_api.py +++ b/airflow_client/client/api/task_instance_api.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) @@ -61,10 +44,7 @@ def __init__(self, api_client=None): self.get_extra_links_endpoint = _Endpoint( settings={ 'response_type': (ExtraLinkCollection,), - 'auth': [ - 'Basic', - 'Kerberos' - ], + 'auth': [], 'endpoint_path': '/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/links', 'operation_id': 'get_extra_links', 'http_method': 'GET', @@ -125,10 +105,7 @@ def __init__(self, api_client=None): self.get_log_endpoint = _Endpoint( settings={ 'response_type': (InlineResponse200,), - 'auth': [ - 'Basic', - 'Kerberos' - ], + 'auth': [], 'endpoint_path': '/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/logs/{task_try_number}', 'operation_id': 'get_log', 'http_method': 'GET', @@ -206,10 +183,7 @@ def __init__(self, api_client=None): self.get_task_instance_endpoint = _Endpoint( settings={ 'response_type': (TaskInstance,), - 'auth': [ - 'Basic', - 'Kerberos' - ], + 'auth': [], 'endpoint_path': '/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}', 'operation_id': 'get_task_instance', 'http_method': 'GET', @@ -270,10 +244,7 @@ def __init__(self, api_client=None): self.get_task_instances_endpoint = _Endpoint( settings={ 'response_type': (TaskInstanceCollection,), - 'auth': [ - 'Basic', - 'Kerberos' - ], + 'auth': [], 'endpoint_path': '/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances', 'operation_id': 'get_task_instances', 'http_method': 'GET', @@ -401,10 +372,7 @@ def __init__(self, api_client=None): self.get_task_instances_batch_endpoint = _Endpoint( settings={ 'response_type': (TaskInstanceCollection,), - 'auth': [ - 'Basic', - 'Kerberos' - ], + 'auth': [], 'endpoint_path': '/dags/~/dagRuns/~/taskInstances/list', 'operation_id': 'get_task_instances_batch', 'http_method': 'POST', diff --git a/airflow_client/client/api/user_api.py b/airflow_client/client/api/user_api.py index 45988817..d347cb95 100644 --- a/airflow_client/client/api/user_api.py +++ b/airflow_client/client/api/user_api.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) @@ -60,10 +43,7 @@ def __init__(self, api_client=None): self.delete_user_endpoint = _Endpoint( settings={ 'response_type': None, - 'auth': [ - 'Basic', - 'Kerberos' - ], + 'auth': [], 'endpoint_path': '/users/{username}', 'operation_id': 'delete_user', 'http_method': 'DELETE', @@ -112,10 +92,7 @@ def __init__(self, api_client=None): self.get_user_endpoint = _Endpoint( settings={ 'response_type': (UserCollectionItem,), - 'auth': [ - 'Basic', - 'Kerberos' - ], + 'auth': [], 'endpoint_path': '/users/{username}', 'operation_id': 'get_user', 'http_method': 'GET', @@ -164,10 +141,7 @@ def __init__(self, api_client=None): self.get_users_endpoint = _Endpoint( settings={ 'response_type': (UserCollection,), - 'auth': [ - 'Basic', - 'Kerberos' - ], + 'auth': [], 'endpoint_path': '/users', 'operation_id': 'get_users', 'http_method': 'GET', @@ -229,10 +203,7 @@ def __init__(self, api_client=None): self.patch_user_endpoint = _Endpoint( settings={ 'response_type': (Role,), - 'auth': [ - 'Basic', - 'Kerberos' - ], + 'auth': [], 'endpoint_path': '/users/{username}', 'operation_id': 'patch_user', 'http_method': 'PATCH', @@ -294,10 +265,7 @@ def __init__(self, api_client=None): self.post_user_endpoint = _Endpoint( settings={ 'response_type': (User,), - 'auth': [ - 'Basic', - 'Kerberos' - ], + 'auth': [], 'endpoint_path': '/users', 'operation_id': 'post_user', 'http_method': 'POST', @@ -352,6 +320,7 @@ def delete_user( ): """Delete a user # noqa: E501 + Delete a user with a specific username. *New in version 2.2.0* # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -359,7 +328,7 @@ def delete_user( >>> result = thread.get() Args: - username (str): The username of the user + username (str): The username of the user. *New in version 2.1.0* Keyword Args: _return_http_data_only (bool): response data without head status @@ -417,6 +386,7 @@ def get_user( ): """Get a user # noqa: E501 + Get a user with a specific username. *New in version 2.1.0* # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -424,7 +394,7 @@ def get_user( >>> result = thread.get() Args: - username (str): The username of the user + username (str): The username of the user. *New in version 2.1.0* Keyword Args: _return_http_data_only (bool): response data without head status @@ -481,6 +451,7 @@ def get_users( ): """List users # noqa: E501 + Get a list of users. *New in version 2.1.0* # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -491,7 +462,7 @@ def get_users( Keyword Args: limit (int): The numbers of items to return.. [optional] if omitted the server will use the default value of 100 offset (int): The number of items to skip before starting to collect the result set.. [optional] - order_by (str): The name of the field to order the results by. Prefix a field name with `-` to reverse the sort order. . [optional] + order_by (str): The name of the field to order the results by. Prefix a field name with `-` to reverse the sort order. *New in version 2.1.0* . [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -546,6 +517,7 @@ def patch_user( ): """Update a user # noqa: E501 + Update fields for a user. *New in version 2.2.0* # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -553,7 +525,7 @@ def patch_user( >>> result = thread.get() Args: - username (str): The username of the user + username (str): The username of the user. *New in version 2.1.0* user (User): Keyword Args: @@ -615,6 +587,7 @@ def post_user( ): """Create a user # noqa: E501 + Create a new user with unique username and email. *New in version 2.2.0* # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True diff --git a/airflow_client/client/api/variable_api.py b/airflow_client/client/api/variable_api.py index 91396956..60c177b2 100644 --- a/airflow_client/client/api/variable_api.py +++ b/airflow_client/client/api/variable_api.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) @@ -58,10 +41,7 @@ def __init__(self, api_client=None): self.delete_variable_endpoint = _Endpoint( settings={ 'response_type': None, - 'auth': [ - 'Basic', - 'Kerberos' - ], + 'auth': [], 'endpoint_path': '/variables/{variable_key}', 'operation_id': 'delete_variable', 'http_method': 'DELETE', @@ -110,10 +90,7 @@ def __init__(self, api_client=None): self.get_variable_endpoint = _Endpoint( settings={ 'response_type': (Variable,), - 'auth': [ - 'Basic', - 'Kerberos' - ], + 'auth': [], 'endpoint_path': '/variables/{variable_key}', 'operation_id': 'get_variable', 'http_method': 'GET', @@ -162,10 +139,7 @@ def __init__(self, api_client=None): self.get_variables_endpoint = _Endpoint( settings={ 'response_type': (VariableCollection,), - 'auth': [ - 'Basic', - 'Kerberos' - ], + 'auth': [], 'endpoint_path': '/variables', 'operation_id': 'get_variables', 'http_method': 'GET', @@ -227,10 +201,7 @@ def __init__(self, api_client=None): self.patch_variable_endpoint = _Endpoint( settings={ 'response_type': (Variable,), - 'auth': [ - 'Basic', - 'Kerberos' - ], + 'auth': [], 'endpoint_path': '/variables/{variable_key}', 'operation_id': 'patch_variable', 'http_method': 'PATCH', @@ -292,10 +263,7 @@ def __init__(self, api_client=None): self.post_variables_endpoint = _Endpoint( settings={ 'response_type': (Variable,), - 'auth': [ - 'Basic', - 'Kerberos' - ], + 'auth': [], 'endpoint_path': '/variables', 'operation_id': 'post_variables', 'http_method': 'POST', @@ -491,7 +459,7 @@ def get_variables( Keyword Args: limit (int): The numbers of items to return.. [optional] if omitted the server will use the default value of 100 offset (int): The number of items to skip before starting to collect the result set.. [optional] - order_by (str): The name of the field to order the results by. Prefix a field name with `-` to reverse the sort order. . [optional] + order_by (str): The name of the field to order the results by. Prefix a field name with `-` to reverse the sort order. *New in version 2.1.0* . [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object diff --git a/airflow_client/client/api/x_com_api.py b/airflow_client/client/api/x_com_api.py index 22462546..81d6f326 100644 --- a/airflow_client/client/api/x_com_api.py +++ b/airflow_client/client/api/x_com_api.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) @@ -58,10 +41,7 @@ def __init__(self, api_client=None): self.get_xcom_entries_endpoint = _Endpoint( settings={ 'response_type': (XComCollection,), - 'auth': [ - 'Basic', - 'Kerberos' - ], + 'auth': [], 'endpoint_path': '/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/xcomEntries', 'operation_id': 'get_xcom_entries', 'http_method': 'GET', @@ -137,10 +117,7 @@ def __init__(self, api_client=None): self.get_xcom_entry_endpoint = _Endpoint( settings={ 'response_type': (XCom,), - 'auth': [ - 'Basic', - 'Kerberos' - ], + 'auth': [], 'endpoint_path': '/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/xcomEntries/{xcom_key}', 'operation_id': 'get_xcom_entry', 'http_method': 'GET', diff --git a/airflow_client/client/api_client.py b/airflow_client/client/api_client.py index 5faeeec5..2ae96776 100644 --- a/airflow_client/client/api_client.py +++ b/airflow_client/client/api_client.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/client/apis/__init__.py b/airflow_client/client/apis/__init__.py index 4109d336..45050b8c 100644 --- a/airflow_client/client/apis/__init__.py +++ b/airflow_client/client/apis/__init__.py @@ -1,21 +1,4 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - # flake8: noqa # Import all APIs into this package. diff --git a/airflow_client/client/configuration.py b/airflow_client/client/configuration.py index 9c0b70b4..cdaff5de 100644 --- a/airflow_client/client/configuration.py +++ b/airflow_client/client/configuration.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/client/exceptions.py b/airflow_client/client/exceptions.py index 6a83fa16..e03bf342 100644 --- a/airflow_client/client/exceptions.py +++ b/airflow_client/client/exceptions.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/client/model/__init__.py b/airflow_client/client/model/__init__.py index d5d37214..cfe32b78 100644 --- a/airflow_client/client/model/__init__.py +++ b/airflow_client/client/model/__init__.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - # we can not import model classes here because that would create a circular # reference which would not work in python2 # do not import all models into this module because that uses a lot of memory and stack frames diff --git a/airflow_client/client/model/action.py b/airflow_client/client/model/action.py index 33a03f20..ce8023a7 100644 --- a/airflow_client/client/model/action.py +++ b/airflow_client/client/model/action.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/client/model/action_collection.py b/airflow_client/client/model/action_collection.py index c06f99f0..71937e0e 100644 --- a/airflow_client/client/model/action_collection.py +++ b/airflow_client/client/model/action_collection.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/client/model/action_collection_all_of.py b/airflow_client/client/model/action_collection_all_of.py index 0d17155c..78235dd9 100644 --- a/airflow_client/client/model/action_collection_all_of.py +++ b/airflow_client/client/model/action_collection_all_of.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/client/model/action_resource.py b/airflow_client/client/model/action_resource.py index a990c160..757f54f8 100644 --- a/airflow_client/client/model/action_resource.py +++ b/airflow_client/client/model/action_resource.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/client/model/class_reference.py b/airflow_client/client/model/class_reference.py index f582ab5d..ef87b9a2 100644 --- a/airflow_client/client/model/class_reference.py +++ b/airflow_client/client/model/class_reference.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/client/model/clear_task_instance.py b/airflow_client/client/model/clear_task_instance.py index 1f0f3dd4..8cc80288 100644 --- a/airflow_client/client/model/clear_task_instance.py +++ b/airflow_client/client/model/clear_task_instance.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) @@ -172,7 +155,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) dry_run (bool): If set, don't actually run this operation. The response will contain a list of task instances planned to be cleaned, but not modified in any way. . [optional] if omitted the server will use the default value of True # noqa: E501 - task_ids ([str]): A list of task ids to clear.. [optional] # noqa: E501 + task_ids ([str]): A list of task ids to clear. *New in version 2.1.0* . [optional] # noqa: E501 start_date (str): The minimum execution date to clear.. [optional] # noqa: E501 end_date (str): The maximum execution date to clear.. [optional] # noqa: E501 only_failed (bool): Only clear failed tasks.. [optional] if omitted the server will use the default value of True # noqa: E501 @@ -262,7 +245,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) dry_run (bool): If set, don't actually run this operation. The response will contain a list of task instances planned to be cleaned, but not modified in any way. . [optional] if omitted the server will use the default value of True # noqa: E501 - task_ids ([str]): A list of task ids to clear.. [optional] # noqa: E501 + task_ids ([str]): A list of task ids to clear. *New in version 2.1.0* . [optional] # noqa: E501 start_date (str): The minimum execution date to clear.. [optional] # noqa: E501 end_date (str): The maximum execution date to clear.. [optional] # noqa: E501 only_failed (bool): Only clear failed tasks.. [optional] if omitted the server will use the default value of True # noqa: E501 diff --git a/airflow_client/client/model/collection_info.py b/airflow_client/client/model/collection_info.py index 0e26845a..ddf4d86e 100644 --- a/airflow_client/client/model/collection_info.py +++ b/airflow_client/client/model/collection_info.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/client/model/color.py b/airflow_client/client/model/color.py index ba1d5bb4..3f18e061 100644 --- a/airflow_client/client/model/color.py +++ b/airflow_client/client/model/color.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/client/model/config.py b/airflow_client/client/model/config.py index 68569bc8..527069f8 100644 --- a/airflow_client/client/model/config.py +++ b/airflow_client/client/model/config.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/client/model/config_option.py b/airflow_client/client/model/config_option.py index e01cfbc4..a5837ac8 100644 --- a/airflow_client/client/model/config_option.py +++ b/airflow_client/client/model/config_option.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/client/model/config_section.py b/airflow_client/client/model/config_section.py index 9800b5f9..193be87c 100644 --- a/airflow_client/client/model/config_section.py +++ b/airflow_client/client/model/config_section.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/client/model/connection.py b/airflow_client/client/model/connection.py index 20a91b58..6452dbd3 100644 --- a/airflow_client/client/model/connection.py +++ b/airflow_client/client/model/connection.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/client/model/connection_all_of.py b/airflow_client/client/model/connection_all_of.py index c8004dce..e5d7784c 100644 --- a/airflow_client/client/model/connection_all_of.py +++ b/airflow_client/client/model/connection_all_of.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/client/model/connection_collection.py b/airflow_client/client/model/connection_collection.py index af8a06ea..54e94f52 100644 --- a/airflow_client/client/model/connection_collection.py +++ b/airflow_client/client/model/connection_collection.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/client/model/connection_collection_all_of.py b/airflow_client/client/model/connection_collection_all_of.py index c1deb255..ba397b80 100644 --- a/airflow_client/client/model/connection_collection_all_of.py +++ b/airflow_client/client/model/connection_collection_all_of.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/client/model/connection_collection_item.py b/airflow_client/client/model/connection_collection_item.py index a5b853dc..8d5fbb3b 100644 --- a/airflow_client/client/model/connection_collection_item.py +++ b/airflow_client/client/model/connection_collection_item.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/client/model/connection_test.py b/airflow_client/client/model/connection_test.py index f0815d27..a7e7e816 100644 --- a/airflow_client/client/model/connection_test.py +++ b/airflow_client/client/model/connection_test.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/client/model/cron_expression.py b/airflow_client/client/model/cron_expression.py index 8bd1ab5b..bdbeadb2 100644 --- a/airflow_client/client/model/cron_expression.py +++ b/airflow_client/client/model/cron_expression.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/client/model/dag.py b/airflow_client/client/model/dag.py index 41b5a4a4..d0f3ad17 100644 --- a/airflow_client/client/model/dag.py +++ b/airflow_client/client/model/dag.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) @@ -192,7 +175,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 dag_id (str): The ID of the DAG.. [optional] # noqa: E501 root_dag_id (str, none_type): If the DAG is SubDAG then it is the top level DAG identifier. Otherwise, null.. [optional] # noqa: E501 is_paused (bool, none_type): Whether the DAG is paused.. [optional] # noqa: E501 - is_active (bool, none_type): Whether the DAG is currently seen by the scheduler(s).. [optional] # noqa: E501 + is_active (bool, none_type): Whether the DAG is currently seen by the scheduler(s). *New in version 2.1.1* *Changed in version 2.2.0*: Field is read-only. . [optional] # noqa: E501 is_subdag (bool): Whether the DAG is SubDAG.. [optional] # noqa: E501 fileloc (str): The absolute path to the file.. [optional] # noqa: E501 file_token (str): The key containing the encrypted path to the file. Encryption and decryption take place only on the server. This prevents the client from reading an non-DAG file. This also ensures API extensibility, because the format of encrypted data may change. . [optional] # noqa: E501 @@ -284,7 +267,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 dag_id (str): The ID of the DAG.. [optional] # noqa: E501 root_dag_id (str, none_type): If the DAG is SubDAG then it is the top level DAG identifier. Otherwise, null.. [optional] # noqa: E501 is_paused (bool, none_type): Whether the DAG is paused.. [optional] # noqa: E501 - is_active (bool, none_type): Whether the DAG is currently seen by the scheduler(s).. [optional] # noqa: E501 + is_active (bool, none_type): Whether the DAG is currently seen by the scheduler(s). *New in version 2.1.1* *Changed in version 2.2.0*: Field is read-only. . [optional] # noqa: E501 is_subdag (bool): Whether the DAG is SubDAG.. [optional] # noqa: E501 fileloc (str): The absolute path to the file.. [optional] # noqa: E501 file_token (str): The key containing the encrypted path to the file. Encryption and decryption take place only on the server. This prevents the client from reading an non-DAG file. This also ensures API extensibility, because the format of encrypted data may change. . [optional] # noqa: E501 diff --git a/airflow_client/client/model/dag_collection.py b/airflow_client/client/model/dag_collection.py index 41774c6e..5b899117 100644 --- a/airflow_client/client/model/dag_collection.py +++ b/airflow_client/client/model/dag_collection.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/client/model/dag_collection_all_of.py b/airflow_client/client/model/dag_collection_all_of.py index 3dad50ed..a92067de 100644 --- a/airflow_client/client/model/dag_collection_all_of.py +++ b/airflow_client/client/model/dag_collection_all_of.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/client/model/dag_detail.py b/airflow_client/client/model/dag_detail.py index 32ad337f..4899a816 100644 --- a/airflow_client/client/model/dag_detail.py +++ b/airflow_client/client/model/dag_detail.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) @@ -50,14 +33,14 @@ def lazy_import(): from airflow_client.client.model.dag import DAG from airflow_client.client.model.dag_detail_all_of import DAGDetailAllOf + from airflow_client.client.model.nullable_time_delta import NullableTimeDelta from airflow_client.client.model.schedule_interval import ScheduleInterval from airflow_client.client.model.tag import Tag - from airflow_client.client.model.time_delta import TimeDelta globals()['DAG'] = DAG globals()['DAGDetailAllOf'] = DAGDetailAllOf + globals()['NullableTimeDelta'] = NullableTimeDelta globals()['ScheduleInterval'] = ScheduleInterval globals()['Tag'] = Tag - globals()['TimeDelta'] = TimeDelta class DAGDetail(ModelComposed): @@ -129,7 +112,7 @@ def openapi_types(): 'orientation': (str,), # noqa: E501 'concurrency': (float,), # noqa: E501 'start_date': (datetime, none_type,), # noqa: E501 - 'dag_run_timeout': (TimeDelta,), # noqa: E501 + 'dag_run_timeout': (NullableTimeDelta,), # noqa: E501 'doc_md': (str, none_type,), # noqa: E501 'default_view': (str,), # noqa: E501 'params': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},), # noqa: E501 @@ -221,7 +204,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 dag_id (str): The ID of the DAG.. [optional] # noqa: E501 root_dag_id (str, none_type): If the DAG is SubDAG then it is the top level DAG identifier. Otherwise, null.. [optional] # noqa: E501 is_paused (bool, none_type): Whether the DAG is paused.. [optional] # noqa: E501 - is_active (bool, none_type): Whether the DAG is currently seen by the scheduler(s).. [optional] # noqa: E501 + is_active (bool, none_type): Whether the DAG is currently seen by the scheduler(s). *New in version 2.1.1* *Changed in version 2.2.0*: Field is read-only. . [optional] # noqa: E501 is_subdag (bool): Whether the DAG is SubDAG.. [optional] # noqa: E501 fileloc (str): The absolute path to the file.. [optional] # noqa: E501 file_token (str): The key containing the encrypted path to the file. Encryption and decryption take place only on the server. This prevents the client from reading an non-DAG file. This also ensures API extensibility, because the format of encrypted data may change. . [optional] # noqa: E501 @@ -233,11 +216,11 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 catchup (bool): [optional] # noqa: E501 orientation (str): [optional] # noqa: E501 concurrency (float): [optional] # noqa: E501 - start_date (datetime, none_type): [optional] # noqa: E501 - dag_run_timeout (TimeDelta): [optional] # noqa: E501 + start_date (datetime, none_type): The DAG's start date. *Changed in version 2.0.1*: Field becomes nullable. . [optional] # noqa: E501 + dag_run_timeout (NullableTimeDelta): [optional] # noqa: E501 doc_md (str, none_type): [optional] # noqa: E501 default_view (str): [optional] # noqa: E501 - params ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): [optional] # noqa: E501 + params ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): User-specified DAG params. *New in version 2.0.1* . [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -340,7 +323,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 dag_id (str): The ID of the DAG.. [optional] # noqa: E501 root_dag_id (str, none_type): If the DAG is SubDAG then it is the top level DAG identifier. Otherwise, null.. [optional] # noqa: E501 is_paused (bool, none_type): Whether the DAG is paused.. [optional] # noqa: E501 - is_active (bool, none_type): Whether the DAG is currently seen by the scheduler(s).. [optional] # noqa: E501 + is_active (bool, none_type): Whether the DAG is currently seen by the scheduler(s). *New in version 2.1.1* *Changed in version 2.2.0*: Field is read-only. . [optional] # noqa: E501 is_subdag (bool): Whether the DAG is SubDAG.. [optional] # noqa: E501 fileloc (str): The absolute path to the file.. [optional] # noqa: E501 file_token (str): The key containing the encrypted path to the file. Encryption and decryption take place only on the server. This prevents the client from reading an non-DAG file. This also ensures API extensibility, because the format of encrypted data may change. . [optional] # noqa: E501 @@ -352,11 +335,11 @@ def __init__(self, *args, **kwargs): # noqa: E501 catchup (bool): [optional] # noqa: E501 orientation (str): [optional] # noqa: E501 concurrency (float): [optional] # noqa: E501 - start_date (datetime, none_type): [optional] # noqa: E501 - dag_run_timeout (TimeDelta): [optional] # noqa: E501 + start_date (datetime, none_type): The DAG's start date. *Changed in version 2.0.1*: Field becomes nullable. . [optional] # noqa: E501 + dag_run_timeout (NullableTimeDelta): [optional] # noqa: E501 doc_md (str, none_type): [optional] # noqa: E501 default_view (str): [optional] # noqa: E501 - params ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): [optional] # noqa: E501 + params ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): User-specified DAG params. *New in version 2.0.1* . [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/airflow_client/client/model/dag_detail_all_of.py b/airflow_client/client/model/dag_detail_all_of.py index a983bbd8..1da7bfde 100644 --- a/airflow_client/client/model/dag_detail_all_of.py +++ b/airflow_client/client/model/dag_detail_all_of.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) @@ -48,8 +31,8 @@ def lazy_import(): - from airflow_client.client.model.time_delta import TimeDelta - globals()['TimeDelta'] = TimeDelta + from airflow_client.client.model.nullable_time_delta import NullableTimeDelta + globals()['NullableTimeDelta'] = NullableTimeDelta class DAGDetailAllOf(ModelNormal): @@ -110,7 +93,7 @@ def openapi_types(): 'orientation': (str,), # noqa: E501 'concurrency': (float,), # noqa: E501 'start_date': (datetime, none_type,), # noqa: E501 - 'dag_run_timeout': (TimeDelta,), # noqa: E501 + 'dag_run_timeout': (NullableTimeDelta,), # noqa: E501 'doc_md': (str, none_type,), # noqa: E501 'default_view': (str,), # noqa: E501 'params': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},), # noqa: E501 @@ -185,11 +168,11 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 catchup (bool): [optional] # noqa: E501 orientation (str): [optional] # noqa: E501 concurrency (float): [optional] # noqa: E501 - start_date (datetime, none_type): [optional] # noqa: E501 - dag_run_timeout (TimeDelta): [optional] # noqa: E501 + start_date (datetime, none_type): The DAG's start date. *Changed in version 2.0.1*: Field becomes nullable. . [optional] # noqa: E501 + dag_run_timeout (NullableTimeDelta): [optional] # noqa: E501 doc_md (str, none_type): [optional] # noqa: E501 default_view (str): [optional] # noqa: E501 - params ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): [optional] # noqa: E501 + params ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): User-specified DAG params. *New in version 2.0.1* . [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -275,11 +258,11 @@ def __init__(self, *args, **kwargs): # noqa: E501 catchup (bool): [optional] # noqa: E501 orientation (str): [optional] # noqa: E501 concurrency (float): [optional] # noqa: E501 - start_date (datetime, none_type): [optional] # noqa: E501 - dag_run_timeout (TimeDelta): [optional] # noqa: E501 + start_date (datetime, none_type): The DAG's start date. *Changed in version 2.0.1*: Field becomes nullable. . [optional] # noqa: E501 + dag_run_timeout (NullableTimeDelta): [optional] # noqa: E501 doc_md (str, none_type): [optional] # noqa: E501 default_view (str): [optional] # noqa: E501 - params ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): [optional] # noqa: E501 + params ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): User-specified DAG params. *New in version 2.0.1* . [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/airflow_client/client/model/dag_run.py b/airflow_client/client/model/dag_run.py index 869e28b6..056ae959 100644 --- a/airflow_client/client/model/dag_run.py +++ b/airflow_client/client/model/dag_run.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) @@ -105,8 +88,8 @@ def openapi_types(): """ lazy_import() return { - 'dag_id': (str,), # noqa: E501 'dag_run_id': (str, none_type,), # noqa: E501 + 'dag_id': (str,), # noqa: E501 'logical_date': (datetime, none_type,), # noqa: E501 'execution_date': (datetime, none_type,), # noqa: E501 'start_date': (datetime, none_type,), # noqa: E501 @@ -122,8 +105,8 @@ def discriminator(): attribute_map = { - 'dag_id': 'dag_id', # noqa: E501 'dag_run_id': 'dag_run_id', # noqa: E501 + 'dag_id': 'dag_id', # noqa: E501 'logical_date': 'logical_date', # noqa: E501 'execution_date': 'execution_date', # noqa: E501 'start_date': 'start_date', # noqa: E501 @@ -144,12 +127,9 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, dag_id, *args, **kwargs): # noqa: E501 + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 """DAGRun - a model defined in OpenAPI - Args: - dag_id (str): - Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -182,9 +162,10 @@ def _from_openapi_data(cls, dag_id, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) dag_run_id (str, none_type): Run ID. The value of this field can be set only when creating the object. If you try to modify the field of an existing object, the request fails with an BAD_REQUEST error. If not provided, a value will be generated based on execution_date. If the specified dag_run_id is in use, the creation request fails with an ALREADY_EXISTS error. This together with DAG_ID are a unique key. . [optional] # noqa: E501 - logical_date (datetime, none_type): The logical date (previously called execution date). This is the time or interval covered by this DAG run, according to the DAG definition. The value of this field can be set only when creating the object. If you try to modify the field of an existing object, the request fails with an BAD_REQUEST error. This together with DAG_ID are a unique key. . [optional] # noqa: E501 - execution_date (datetime, none_type): The execution date. This is the same as logical_date, kept for backwards compatibility. If both this field and logical_date are provided but with different values, the request will fail with an BAD_REQUEST error. . [optional] # noqa: E501 - start_date (datetime, none_type): The start time. The time when DAG run was actually created. . [optional] # noqa: E501 + dag_id (str): [optional] # noqa: E501 + logical_date (datetime, none_type): The logical date (previously called execution date). This is the time or interval covered by this DAG run, according to the DAG definition. The value of this field can be set only when creating the object. If you try to modify the field of an existing object, the request fails with an BAD_REQUEST error. This together with DAG_ID are a unique key. *New in version 2.2.0* . [optional] # noqa: E501 + execution_date (datetime, none_type): The execution date. This is the same as logical_date, kept for backwards compatibility. If both this field and logical_date are provided but with different values, the request will fail with an BAD_REQUEST error. *Changed in version 2.2.0*: Field becomes nullable. *Deprecated since version 2.2.0*: Use 'logical_date' instead. . [optional] # noqa: E501 + start_date (datetime, none_type): The start time. The time when DAG run was actually created. *Changed in version 2.1.3*: Field becomes nullable. . [optional] # noqa: E501 end_date (datetime, none_type): [optional] # noqa: E501 state (DagState): [optional] # noqa: E501 external_trigger (bool): [optional] if omitted the server will use the default value of True # noqa: E501 @@ -216,7 +197,6 @@ def _from_openapi_data(cls, dag_id, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.dag_id = dag_id for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -272,9 +252,10 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) dag_run_id (str, none_type): Run ID. The value of this field can be set only when creating the object. If you try to modify the field of an existing object, the request fails with an BAD_REQUEST error. If not provided, a value will be generated based on execution_date. If the specified dag_run_id is in use, the creation request fails with an ALREADY_EXISTS error. This together with DAG_ID are a unique key. . [optional] # noqa: E501 - logical_date (datetime, none_type): The logical date (previously called execution date). This is the time or interval covered by this DAG run, according to the DAG definition. The value of this field can be set only when creating the object. If you try to modify the field of an existing object, the request fails with an BAD_REQUEST error. This together with DAG_ID are a unique key. . [optional] # noqa: E501 - execution_date (datetime, none_type): The execution date. This is the same as logical_date, kept for backwards compatibility. If both this field and logical_date are provided but with different values, the request will fail with an BAD_REQUEST error. . [optional] # noqa: E501 - start_date (datetime, none_type): The start time. The time when DAG run was actually created. . [optional] # noqa: E501 + dag_id (str): [optional] # noqa: E501 + logical_date (datetime, none_type): The logical date (previously called execution date). This is the time or interval covered by this DAG run, according to the DAG definition. The value of this field can be set only when creating the object. If you try to modify the field of an existing object, the request fails with an BAD_REQUEST error. This together with DAG_ID are a unique key. *New in version 2.2.0* . [optional] # noqa: E501 + execution_date (datetime, none_type): The execution date. This is the same as logical_date, kept for backwards compatibility. If both this field and logical_date are provided but with different values, the request will fail with an BAD_REQUEST error. *Changed in version 2.2.0*: Field becomes nullable. *Deprecated since version 2.2.0*: Use 'logical_date' instead. . [optional] # noqa: E501 + start_date (datetime, none_type): The start time. The time when DAG run was actually created. *Changed in version 2.1.3*: Field becomes nullable. . [optional] # noqa: E501 end_date (datetime, none_type): [optional] # noqa: E501 state (DagState): [optional] # noqa: E501 external_trigger (bool): [optional] if omitted the server will use the default value of True # noqa: E501 diff --git a/airflow_client/client/model/dag_run_collection.py b/airflow_client/client/model/dag_run_collection.py index 7bdb5f3d..52e28ace 100644 --- a/airflow_client/client/model/dag_run_collection.py +++ b/airflow_client/client/model/dag_run_collection.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/client/model/dag_run_collection_all_of.py b/airflow_client/client/model/dag_run_collection_all_of.py index 71422d77..a5b327f0 100644 --- a/airflow_client/client/model/dag_run_collection_all_of.py +++ b/airflow_client/client/model/dag_run_collection_all_of.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/client/model/dag_state.py b/airflow_client/client/model/dag_state.py index 9ba66e35..9acb41de 100644 --- a/airflow_client/client/model/dag_state.py +++ b/airflow_client/client/model/dag_state.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) @@ -125,10 +108,10 @@ def __init__(self, *args, **kwargs): Note that value can be passed either in args or in kwargs, but not in both. Args: - args[0] (str): DAG State.., must be one of ["queued", "running", "success", "failed", ] # noqa: E501 + args[0] (str): DAG State. *Changed in version 2.1.3*: 'queued' is added as a possible value. ., must be one of ["queued", "running", "success", "failed", ] # noqa: E501 Keyword Args: - value (str): DAG State.., must be one of ["queued", "running", "success", "failed", ] # noqa: E501 + value (str): DAG State. *Changed in version 2.1.3*: 'queued' is added as a possible value. ., must be one of ["queued", "running", "success", "failed", ] # noqa: E501 _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be raised if the wrong type is input. @@ -215,10 +198,10 @@ def _from_openapi_data(cls, *args, **kwargs): Note that value can be passed either in args or in kwargs, but not in both. Args: - args[0] (str): DAG State.., must be one of ["queued", "running", "success", "failed", ] # noqa: E501 + args[0] (str): DAG State. *Changed in version 2.1.3*: 'queued' is added as a possible value. ., must be one of ["queued", "running", "success", "failed", ] # noqa: E501 Keyword Args: - value (str): DAG State.., must be one of ["queued", "running", "success", "failed", ] # noqa: E501 + value (str): DAG State. *Changed in version 2.1.3*: 'queued' is added as a possible value. ., must be one of ["queued", "running", "success", "failed", ] # noqa: E501 _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be raised if the wrong type is input. diff --git a/airflow_client/client/model/error.py b/airflow_client/client/model/error.py index 3c0d5d47..6743ac11 100644 --- a/airflow_client/client/model/error.py +++ b/airflow_client/client/model/error.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/client/model/event_log.py b/airflow_client/client/model/event_log.py index b5f858d5..a8d90bc4 100644 --- a/airflow_client/client/model/event_log.py +++ b/airflow_client/client/model/event_log.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/client/model/event_log_collection.py b/airflow_client/client/model/event_log_collection.py index 87dbefc9..a940dc2f 100644 --- a/airflow_client/client/model/event_log_collection.py +++ b/airflow_client/client/model/event_log_collection.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/client/model/event_log_collection_all_of.py b/airflow_client/client/model/event_log_collection_all_of.py index 83af62c3..0e1d8c0b 100644 --- a/airflow_client/client/model/event_log_collection_all_of.py +++ b/airflow_client/client/model/event_log_collection_all_of.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/client/model/extra_link.py b/airflow_client/client/model/extra_link.py index 631e32c2..15b57804 100644 --- a/airflow_client/client/model/extra_link.py +++ b/airflow_client/client/model/extra_link.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/client/model/extra_link_collection.py b/airflow_client/client/model/extra_link_collection.py index a394ad12..396064bf 100644 --- a/airflow_client/client/model/extra_link_collection.py +++ b/airflow_client/client/model/extra_link_collection.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/client/model/health_info.py b/airflow_client/client/model/health_info.py index 939880a8..5f2ec1c4 100644 --- a/airflow_client/client/model/health_info.py +++ b/airflow_client/client/model/health_info.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/client/model/health_status.py b/airflow_client/client/model/health_status.py index 959e8ab2..07e1028b 100644 --- a/airflow_client/client/model/health_status.py +++ b/airflow_client/client/model/health_status.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/client/model/import_error.py b/airflow_client/client/model/import_error.py index 93bbffe9..4f268159 100644 --- a/airflow_client/client/model/import_error.py +++ b/airflow_client/client/model/import_error.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/client/model/import_error_collection.py b/airflow_client/client/model/import_error_collection.py index d4ca6633..e0d01034 100644 --- a/airflow_client/client/model/import_error_collection.py +++ b/airflow_client/client/model/import_error_collection.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/client/model/import_error_collection_all_of.py b/airflow_client/client/model/import_error_collection_all_of.py index 01dbfc9e..baf7affe 100644 --- a/airflow_client/client/model/import_error_collection_all_of.py +++ b/airflow_client/client/model/import_error_collection_all_of.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/client/model/inline_response200.py b/airflow_client/client/model/inline_response200.py index 1b622208..2ac932cb 100644 --- a/airflow_client/client/model/inline_response200.py +++ b/airflow_client/client/model/inline_response200.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/client/model/inline_response2001.py b/airflow_client/client/model/inline_response2001.py index bad1773d..07496035 100644 --- a/airflow_client/client/model/inline_response2001.py +++ b/airflow_client/client/model/inline_response2001.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/client/model/list_dag_runs_form.py b/airflow_client/client/model/list_dag_runs_form.py index 9ae44e20..8ec269b8 100644 --- a/airflow_client/client/model/list_dag_runs_form.py +++ b/airflow_client/client/model/list_dag_runs_form.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) @@ -109,6 +92,7 @@ def openapi_types(): 'page_offset': (int,), # noqa: E501 'page_limit': (int,), # noqa: E501 'dag_ids': ([str],), # noqa: E501 + 'states': ([str],), # noqa: E501 'execution_date_gte': (datetime,), # noqa: E501 'execution_date_lte': (datetime,), # noqa: E501 'start_date_gte': (datetime,), # noqa: E501 @@ -127,6 +111,7 @@ def discriminator(): 'page_offset': 'page_offset', # noqa: E501 'page_limit': 'page_limit', # noqa: E501 'dag_ids': 'dag_ids', # noqa: E501 + 'states': 'states', # noqa: E501 'execution_date_gte': 'execution_date_gte', # noqa: E501 'execution_date_lte': 'execution_date_lte', # noqa: E501 'start_date_gte': 'start_date_gte', # noqa: E501 @@ -176,10 +161,11 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - order_by (str): The name of the field to order the results by. Prefix a field name with `-` to reverse the sort order. . [optional] # noqa: E501 + order_by (str): The name of the field to order the results by. Prefix a field name with `-` to reverse the sort order. *New in version 2.1.0* . [optional] # noqa: E501 page_offset (int): The number of items to skip before starting to collect the result set.. [optional] # noqa: E501 page_limit (int): The numbers of items to return.. [optional] if omitted the server will use the default value of 100 # noqa: E501 dag_ids ([str]): Return objects with specific DAG IDs. The value can be repeated to retrieve multiple matching values (OR condition).. [optional] # noqa: E501 + states ([str]): Return objects with specific states. The value can be repeated to retrieve multiple matching values (OR condition).. [optional] # noqa: E501 execution_date_gte (datetime): Returns objects greater or equal to the specified date. This can be combined with execution_date_lte key to receive only the selected period. . [optional] # noqa: E501 execution_date_lte (datetime): Returns objects less than or equal to the specified date. This can be combined with execution_date_gte key to receive only the selected period. . [optional] # noqa: E501 start_date_gte (datetime): Returns objects greater or equal the specified date. This can be combined with start_date_lte key to receive only the selected period. . [optional] # noqa: E501 @@ -267,10 +253,11 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - order_by (str): The name of the field to order the results by. Prefix a field name with `-` to reverse the sort order. . [optional] # noqa: E501 + order_by (str): The name of the field to order the results by. Prefix a field name with `-` to reverse the sort order. *New in version 2.1.0* . [optional] # noqa: E501 page_offset (int): The number of items to skip before starting to collect the result set.. [optional] # noqa: E501 page_limit (int): The numbers of items to return.. [optional] if omitted the server will use the default value of 100 # noqa: E501 dag_ids ([str]): Return objects with specific DAG IDs. The value can be repeated to retrieve multiple matching values (OR condition).. [optional] # noqa: E501 + states ([str]): Return objects with specific states. The value can be repeated to retrieve multiple matching values (OR condition).. [optional] # noqa: E501 execution_date_gte (datetime): Returns objects greater or equal to the specified date. This can be combined with execution_date_lte key to receive only the selected period. . [optional] # noqa: E501 execution_date_lte (datetime): Returns objects less than or equal to the specified date. This can be combined with execution_date_gte key to receive only the selected period. . [optional] # noqa: E501 start_date_gte (datetime): Returns objects greater or equal the specified date. This can be combined with start_date_lte key to receive only the selected period. . [optional] # noqa: E501 diff --git a/airflow_client/client/model/list_task_instance_form.py b/airflow_client/client/model/list_task_instance_form.py index 7b8c86d2..7fff5782 100644 --- a/airflow_client/client/model/list_task_instance_form.py +++ b/airflow_client/client/model/list_task_instance_form.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) @@ -47,6 +30,10 @@ from airflow_client.client.exceptions import ApiAttributeError +def lazy_import(): + from airflow_client.client.model.task_state import TaskState + globals()['TaskState'] = TaskState + class ListTaskInstanceForm(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. @@ -84,6 +71,7 @@ def additional_properties_type(): This must be a method because a model may have properties that are of type self, this must run after the class is loaded """ + lazy_import() return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 _nullable = False @@ -98,6 +86,7 @@ def openapi_types(): openapi_types (dict): The key is attribute name and the value is attribute type. """ + lazy_import() return { 'dag_ids': ([str],), # noqa: E501 'execution_date_gte': (datetime,), # noqa: E501 @@ -108,7 +97,7 @@ def openapi_types(): 'end_date_lte': (datetime,), # noqa: E501 'duration_gte': (float,), # noqa: E501 'duration_lte': (float,), # noqa: E501 - 'state': ([str],), # noqa: E501 + 'state': ([TaskState],), # noqa: E501 'pool': ([str],), # noqa: E501 'queue': ([str],), # noqa: E501 } @@ -183,7 +172,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 end_date_lte (datetime): Returns objects less than or equal to the specified date. This can be combined with start_date_gte parameter to receive only the selected period. . [optional] # noqa: E501 duration_gte (float): Returns objects greater than or equal to the specified values. This can be combined with duration_lte parameter to receive only the selected period. . [optional] # noqa: E501 duration_lte (float): Returns objects less than or equal to the specified values. This can be combined with duration_gte parameter to receive only the selected range. . [optional] # noqa: E501 - state ([str]): The value can be repeated to retrieve multiple matching values (OR condition).. [optional] # noqa: E501 + state ([TaskState]): The value can be repeated to retrieve multiple matching values (OR condition).. [optional] # noqa: E501 pool ([str]): The value can be repeated to retrieve multiple matching values (OR condition).. [optional] # noqa: E501 queue ([str]): The value can be repeated to retrieve multiple matching values (OR condition).. [optional] # noqa: E501 """ @@ -276,7 +265,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 end_date_lte (datetime): Returns objects less than or equal to the specified date. This can be combined with start_date_gte parameter to receive only the selected period. . [optional] # noqa: E501 duration_gte (float): Returns objects greater than or equal to the specified values. This can be combined with duration_lte parameter to receive only the selected period. . [optional] # noqa: E501 duration_lte (float): Returns objects less than or equal to the specified values. This can be combined with duration_gte parameter to receive only the selected range. . [optional] # noqa: E501 - state ([str]): The value can be repeated to retrieve multiple matching values (OR condition).. [optional] # noqa: E501 + state ([TaskState]): The value can be repeated to retrieve multiple matching values (OR condition).. [optional] # noqa: E501 pool ([str]): The value can be repeated to retrieve multiple matching values (OR condition).. [optional] # noqa: E501 queue ([str]): The value can be repeated to retrieve multiple matching values (OR condition).. [optional] # noqa: E501 """ diff --git a/airflow_client/client/model/metadatabase_status.py b/airflow_client/client/model/metadatabase_status.py index 0104c905..55520676 100644 --- a/airflow_client/client/model/metadatabase_status.py +++ b/airflow_client/client/model/metadatabase_status.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/client/model/nullable_sla_miss.py b/airflow_client/client/model/nullable_sla_miss.py new file mode 100644 index 00000000..7478b162 --- /dev/null +++ b/airflow_client/client/model/nullable_sla_miss.py @@ -0,0 +1,338 @@ +""" + Airflow API (Stable) + + # Overview To facilitate management, Apache Airflow supports a range of REST API endpoints across its objects. This section provides an overview of the API design, methods, and supported use cases. Most of the endpoints accept `JSON` as input and return `JSON` responses. This means that you must usually add the following headers to your request: ``` Content-type: application/json Accept: application/json ``` ## Resources The term `resource` refers to a single type of object in the Airflow metadata. An API is broken up by its endpoint's corresponding resource. The name of a resource is typically plural and expressed in camelCase. Example: `dagRuns`. Resource names are used as part of endpoint URLs, as well as in API parameters and responses. ## CRUD Operations The platform supports **C**reate, **R**ead, **U**pdate, and **D**elete operations on most resources. You can review the standards for these operations and their standard parameters below. Some endpoints have special behavior as exceptions. ### Create To create a resource, you typically submit an HTTP `POST` request with the resource's required metadata in the request body. The response returns a `201 Created` response code upon success with the resource's metadata, including its internal `id`, in the response body. ### Read The HTTP `GET` request can be used to read a resource or to list a number of resources. A resource's `id` can be submitted in the request parameters to read a specific resource. The response usually returns a `200 OK` response code upon success, with the resource's metadata in the response body. If a `GET` request does not include a specific resource `id`, it is treated as a list request. The response usually returns a `200 OK` response code upon success, with an object containing a list of resources' metadata in the response body. When reading resources, some common query parameters are usually available. e.g.: ``` v1/connections?limit=25&offset=25 ``` |Query Parameter|Type|Description| |---------------|----|-----------| |limit|integer|Maximum number of objects to fetch. Usually 25 by default| |offset|integer|Offset after which to start returning objects. For use with limit query parameter.| ### Update Updating a resource requires the resource `id`, and is typically done using an HTTP `PATCH` request, with the fields to modify in the request body. The response usually returns a `200 OK` response code upon success, with information about the modified resource in the response body. ### Delete Deleting a resource requires the resource `id` and is typically executing via an HTTP `DELETE` request. The response usually returns a `204 No Content` response code upon success. ## Conventions - Resource names are plural and expressed in camelCase. - Names are consistent between URL parameter name and field name. - Field names are in snake_case. ```json { \"name\": \"string\", \"slots\": 0, \"occupied_slots\": 0, \"used_slots\": 0, \"queued_slots\": 0, \"open_slots\": 0 } ``` ### Update Mask Update mask is available as a query parameter in patch endpoints. It is used to notify the API which fields you want to update. Using `update_mask` makes it easier to update objects by helping the server know which fields to update in an object instead of updating all fields. The update request ignores any fields that aren't specified in the field mask, leaving them with their current values. Example: ``` resource = request.get('/resource/my-id').json() resource['my_field'] = 'new-value' request.patch('/resource/my-id?update_mask=my_field', data=json.dumps(resource)) ``` ## Versioning and Endpoint Lifecycle - API versioning is not synchronized to specific releases of the Apache Airflow. - APIs are designed to be backward compatible. - Any changes to the API will first go through a deprecation phase. # Summary of Changes | Airflow version | Description | |-|-| | v2.0 | Initial release | | v2.0.2 | Added /plugins endpoint | | v2.1 | New providers endpoint | # Trying the API You can use a third party client, such as [curl](https://curl.haxx.se/), [HTTPie](https://httpie.org/), [Postman](https://www.postman.com/) or [the Insomnia rest client](https://insomnia.rest/) to test the Apache Airflow API. Note that you will need to pass credentials data. For e.g., here is how to pause a DAG with [curl](https://curl.haxx.se/), when basic authorization is used: ```bash curl -X PATCH 'https://example.com/api/v1/dags/{dag_id}?update_mask=is_paused' \\ -H 'Content-Type: application/json' \\ --user \"username:password\" \\ -d '{ \"is_paused\": true }' ``` Using a graphical tool such as [Postman](https://www.postman.com/) or [Insomnia](https://insomnia.rest/), it is possible to import the API specifications directly: 1. Download the API specification by clicking the **Download** button at top of this document 2. Import the JSON specification in the graphical tool of your choice. - In *Postman*, you can click the **import** button at the top - With *Insomnia*, you can just drag-and-drop the file on the UI Note that with *Postman*, you can also generate code snippets by selecting a request and clicking on the **Code** button. ## Enabling CORS [Cross-origin resource sharing (CORS)](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) is a browser security feature that restricts HTTP requests that are initiated from scripts running in the browser. For details on enabling/configuring CORS, see [Enabling CORS](https://airflow.apache.org/docs/apache-airflow/stable/security/api.html). # Authentication To be able to meet the requirements of many organizations, Airflow supports many authentication methods, and it is even possible to add your own method. If you want to check which auth backend is currently set, you can use `airflow config get-value api auth_backend` command as in the example below. ```bash $ airflow config get-value api auth_backend airflow.api.auth.backend.basic_auth ``` The default is to deny all requests. For details on configuring the authentication, see [API Authorization](https://airflow.apache.org/docs/apache-airflow/stable/security/api.html). # Errors We follow the error response format proposed in [RFC 7807](https://tools.ietf.org/html/rfc7807) also known as Problem Details for HTTP APIs. As with our normal API responses, your client must be prepared to gracefully handle additional members of the response. ## Unauthenticated This indicates that the request has not been applied because it lacks valid authentication credentials for the target resource. Please check that you have valid credentials. ## PermissionDenied This response means that the server understood the request but refuses to authorize it because it lacks sufficient rights to the resource. It happens when you do not have the necessary permission to execute the action you performed. You need to get the appropriate permissions in other to resolve this error. ## BadRequest This response means that the server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing). To resolve this, please ensure that your syntax is correct. ## NotFound This client error response indicates that the server cannot find the requested resource. ## MethodNotAllowed Indicates that the request method is known by the server but is not supported by the target resource. ## NotAcceptable The target resource does not have a current representation that would be acceptable to the user agent, according to the proactive negotiation header fields received in the request, and the server is unwilling to supply a default representation. ## AlreadyExists The request could not be completed due to a conflict with the current state of the target resource, e.g. the resource it tries to create already exists. ## Unknown This means that the server encountered an unexpected condition that prevented it from fulfilling the request. # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: dev@airflow.apache.org + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from airflow_client.client.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, +) +from ..model_utils import OpenApiModel +from airflow_client.client.exceptions import ApiAttributeError + + +def lazy_import(): + from airflow_client.client.model.sla_miss import SLAMiss + globals()['SLAMiss'] = SLAMiss + + +class NullableSLAMiss(ModelComposed): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'task_id': (str,), # noqa: E501 + 'dag_id': (str,), # noqa: E501 + 'execution_date': (str,), # noqa: E501 + 'email_sent': (bool,), # noqa: E501 + 'timestamp': (str,), # noqa: E501 + 'description': (str, none_type,), # noqa: E501 + 'notification_sent': (bool,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'task_id': 'task_id', # noqa: E501 + 'dag_id': 'dag_id', # noqa: E501 + 'execution_date': 'execution_date', # noqa: E501 + 'email_sent': 'email_sent', # noqa: E501 + 'timestamp': 'timestamp', # noqa: E501 + 'description': 'description', # noqa: E501 + 'notification_sent': 'notification_sent', # noqa: E501 + } + + read_only_vars = { + 'task_id', # noqa: E501 + } + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """NullableSLAMiss - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + task_id (str): The task ID.. [optional] # noqa: E501 + dag_id (str): The DAG ID.. [optional] # noqa: E501 + execution_date (str): [optional] # noqa: E501 + email_sent (bool): [optional] # noqa: E501 + timestamp (str): [optional] # noqa: E501 + description (str, none_type): [optional] # noqa: E501 + notification_sent (bool): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + constant_args = { + '_check_type': _check_type, + '_path_to_item': _path_to_item, + '_spec_property_naming': _spec_property_naming, + '_configuration': _configuration, + '_visited_composed_classes': self._visited_composed_classes, + } + composed_info = validate_get_composed_info( + constant_args, kwargs, self) + self._composed_instances = composed_info[0] + self._var_name_to_model_instances = composed_info[1] + self._additional_properties_model_instances = composed_info[2] + discarded_args = composed_info[3] + + for var_name, var_value in kwargs.items(): + if var_name in discarded_args and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self._additional_properties_model_instances: + # discard variable. + continue + setattr(self, var_name, var_value) + + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + '_composed_instances', + '_var_name_to_model_instances', + '_additional_properties_model_instances', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """NullableSLAMiss - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + task_id (str): The task ID.. [optional] # noqa: E501 + dag_id (str): The DAG ID.. [optional] # noqa: E501 + execution_date (str): [optional] # noqa: E501 + email_sent (bool): [optional] # noqa: E501 + timestamp (str): [optional] # noqa: E501 + description (str, none_type): [optional] # noqa: E501 + notification_sent (bool): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + constant_args = { + '_check_type': _check_type, + '_path_to_item': _path_to_item, + '_spec_property_naming': _spec_property_naming, + '_configuration': _configuration, + '_visited_composed_classes': self._visited_composed_classes, + } + composed_info = validate_get_composed_info( + constant_args, kwargs, self) + self._composed_instances = composed_info[0] + self._var_name_to_model_instances = composed_info[1] + self._additional_properties_model_instances = composed_info[2] + discarded_args = composed_info[3] + + for var_name, var_value in kwargs.items(): + if var_name in discarded_args and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self._additional_properties_model_instances: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") + + @cached_property + def _composed_schemas(): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + lazy_import() + return { + 'anyOf': [ + ], + 'allOf': [ + ], + 'oneOf': [ + SLAMiss, + none_type, + ], + } diff --git a/airflow_client/client/model/nullable_task_state.py b/airflow_client/client/model/nullable_task_state.py new file mode 100644 index 00000000..e9c7f340 --- /dev/null +++ b/airflow_client/client/model/nullable_task_state.py @@ -0,0 +1,309 @@ +""" + Airflow API (Stable) + + # Overview To facilitate management, Apache Airflow supports a range of REST API endpoints across its objects. This section provides an overview of the API design, methods, and supported use cases. Most of the endpoints accept `JSON` as input and return `JSON` responses. This means that you must usually add the following headers to your request: ``` Content-type: application/json Accept: application/json ``` ## Resources The term `resource` refers to a single type of object in the Airflow metadata. An API is broken up by its endpoint's corresponding resource. The name of a resource is typically plural and expressed in camelCase. Example: `dagRuns`. Resource names are used as part of endpoint URLs, as well as in API parameters and responses. ## CRUD Operations The platform supports **C**reate, **R**ead, **U**pdate, and **D**elete operations on most resources. You can review the standards for these operations and their standard parameters below. Some endpoints have special behavior as exceptions. ### Create To create a resource, you typically submit an HTTP `POST` request with the resource's required metadata in the request body. The response returns a `201 Created` response code upon success with the resource's metadata, including its internal `id`, in the response body. ### Read The HTTP `GET` request can be used to read a resource or to list a number of resources. A resource's `id` can be submitted in the request parameters to read a specific resource. The response usually returns a `200 OK` response code upon success, with the resource's metadata in the response body. If a `GET` request does not include a specific resource `id`, it is treated as a list request. The response usually returns a `200 OK` response code upon success, with an object containing a list of resources' metadata in the response body. When reading resources, some common query parameters are usually available. e.g.: ``` v1/connections?limit=25&offset=25 ``` |Query Parameter|Type|Description| |---------------|----|-----------| |limit|integer|Maximum number of objects to fetch. Usually 25 by default| |offset|integer|Offset after which to start returning objects. For use with limit query parameter.| ### Update Updating a resource requires the resource `id`, and is typically done using an HTTP `PATCH` request, with the fields to modify in the request body. The response usually returns a `200 OK` response code upon success, with information about the modified resource in the response body. ### Delete Deleting a resource requires the resource `id` and is typically executing via an HTTP `DELETE` request. The response usually returns a `204 No Content` response code upon success. ## Conventions - Resource names are plural and expressed in camelCase. - Names are consistent between URL parameter name and field name. - Field names are in snake_case. ```json { \"name\": \"string\", \"slots\": 0, \"occupied_slots\": 0, \"used_slots\": 0, \"queued_slots\": 0, \"open_slots\": 0 } ``` ### Update Mask Update mask is available as a query parameter in patch endpoints. It is used to notify the API which fields you want to update. Using `update_mask` makes it easier to update objects by helping the server know which fields to update in an object instead of updating all fields. The update request ignores any fields that aren't specified in the field mask, leaving them with their current values. Example: ``` resource = request.get('/resource/my-id').json() resource['my_field'] = 'new-value' request.patch('/resource/my-id?update_mask=my_field', data=json.dumps(resource)) ``` ## Versioning and Endpoint Lifecycle - API versioning is not synchronized to specific releases of the Apache Airflow. - APIs are designed to be backward compatible. - Any changes to the API will first go through a deprecation phase. # Summary of Changes | Airflow version | Description | |-|-| | v2.0 | Initial release | | v2.0.2 | Added /plugins endpoint | | v2.1 | New providers endpoint | # Trying the API You can use a third party client, such as [curl](https://curl.haxx.se/), [HTTPie](https://httpie.org/), [Postman](https://www.postman.com/) or [the Insomnia rest client](https://insomnia.rest/) to test the Apache Airflow API. Note that you will need to pass credentials data. For e.g., here is how to pause a DAG with [curl](https://curl.haxx.se/), when basic authorization is used: ```bash curl -X PATCH 'https://example.com/api/v1/dags/{dag_id}?update_mask=is_paused' \\ -H 'Content-Type: application/json' \\ --user \"username:password\" \\ -d '{ \"is_paused\": true }' ``` Using a graphical tool such as [Postman](https://www.postman.com/) or [Insomnia](https://insomnia.rest/), it is possible to import the API specifications directly: 1. Download the API specification by clicking the **Download** button at top of this document 2. Import the JSON specification in the graphical tool of your choice. - In *Postman*, you can click the **import** button at the top - With *Insomnia*, you can just drag-and-drop the file on the UI Note that with *Postman*, you can also generate code snippets by selecting a request and clicking on the **Code** button. ## Enabling CORS [Cross-origin resource sharing (CORS)](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) is a browser security feature that restricts HTTP requests that are initiated from scripts running in the browser. For details on enabling/configuring CORS, see [Enabling CORS](https://airflow.apache.org/docs/apache-airflow/stable/security/api.html). # Authentication To be able to meet the requirements of many organizations, Airflow supports many authentication methods, and it is even possible to add your own method. If you want to check which auth backend is currently set, you can use `airflow config get-value api auth_backend` command as in the example below. ```bash $ airflow config get-value api auth_backend airflow.api.auth.backend.basic_auth ``` The default is to deny all requests. For details on configuring the authentication, see [API Authorization](https://airflow.apache.org/docs/apache-airflow/stable/security/api.html). # Errors We follow the error response format proposed in [RFC 7807](https://tools.ietf.org/html/rfc7807) also known as Problem Details for HTTP APIs. As with our normal API responses, your client must be prepared to gracefully handle additional members of the response. ## Unauthenticated This indicates that the request has not been applied because it lacks valid authentication credentials for the target resource. Please check that you have valid credentials. ## PermissionDenied This response means that the server understood the request but refuses to authorize it because it lacks sufficient rights to the resource. It happens when you do not have the necessary permission to execute the action you performed. You need to get the appropriate permissions in other to resolve this error. ## BadRequest This response means that the server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing). To resolve this, please ensure that your syntax is correct. ## NotFound This client error response indicates that the server cannot find the requested resource. ## MethodNotAllowed Indicates that the request method is known by the server but is not supported by the target resource. ## NotAcceptable The target resource does not have a current representation that would be acceptable to the user agent, according to the proactive negotiation header fields received in the request, and the server is unwilling to supply a default representation. ## AlreadyExists The request could not be completed due to a conflict with the current state of the target resource, e.g. the resource it tries to create already exists. ## Unknown This means that the server encountered an unexpected condition that prevented it from fulfilling the request. # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: dev@airflow.apache.org + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from airflow_client.client.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, +) +from ..model_utils import OpenApiModel +from airflow_client.client.exceptions import ApiAttributeError + + +def lazy_import(): + from airflow_client.client.model.task_state import TaskState + globals()['TaskState'] = TaskState + + +class NullableTaskState(ModelComposed): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + } + + read_only_vars = { + } + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """NullableTaskState - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + constant_args = { + '_check_type': _check_type, + '_path_to_item': _path_to_item, + '_spec_property_naming': _spec_property_naming, + '_configuration': _configuration, + '_visited_composed_classes': self._visited_composed_classes, + } + composed_info = validate_get_composed_info( + constant_args, kwargs, self) + self._composed_instances = composed_info[0] + self._var_name_to_model_instances = composed_info[1] + self._additional_properties_model_instances = composed_info[2] + discarded_args = composed_info[3] + + for var_name, var_value in kwargs.items(): + if var_name in discarded_args and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self._additional_properties_model_instances: + # discard variable. + continue + setattr(self, var_name, var_value) + + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + '_composed_instances', + '_var_name_to_model_instances', + '_additional_properties_model_instances', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """NullableTaskState - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + constant_args = { + '_check_type': _check_type, + '_path_to_item': _path_to_item, + '_spec_property_naming': _spec_property_naming, + '_configuration': _configuration, + '_visited_composed_classes': self._visited_composed_classes, + } + composed_info = validate_get_composed_info( + constant_args, kwargs, self) + self._composed_instances = composed_info[0] + self._var_name_to_model_instances = composed_info[1] + self._additional_properties_model_instances = composed_info[2] + discarded_args = composed_info[3] + + for var_name, var_value in kwargs.items(): + if var_name in discarded_args and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self._additional_properties_model_instances: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") + + @cached_property + def _composed_schemas(): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + lazy_import() + return { + 'anyOf': [ + ], + 'allOf': [ + ], + 'oneOf': [ + TaskState, + none_type, + ], + } diff --git a/airflow_client/client/model/nullable_time_delta.py b/airflow_client/client/model/nullable_time_delta.py new file mode 100644 index 00000000..197873b3 --- /dev/null +++ b/airflow_client/client/model/nullable_time_delta.py @@ -0,0 +1,325 @@ +""" + Airflow API (Stable) + + # Overview To facilitate management, Apache Airflow supports a range of REST API endpoints across its objects. This section provides an overview of the API design, methods, and supported use cases. Most of the endpoints accept `JSON` as input and return `JSON` responses. This means that you must usually add the following headers to your request: ``` Content-type: application/json Accept: application/json ``` ## Resources The term `resource` refers to a single type of object in the Airflow metadata. An API is broken up by its endpoint's corresponding resource. The name of a resource is typically plural and expressed in camelCase. Example: `dagRuns`. Resource names are used as part of endpoint URLs, as well as in API parameters and responses. ## CRUD Operations The platform supports **C**reate, **R**ead, **U**pdate, and **D**elete operations on most resources. You can review the standards for these operations and their standard parameters below. Some endpoints have special behavior as exceptions. ### Create To create a resource, you typically submit an HTTP `POST` request with the resource's required metadata in the request body. The response returns a `201 Created` response code upon success with the resource's metadata, including its internal `id`, in the response body. ### Read The HTTP `GET` request can be used to read a resource or to list a number of resources. A resource's `id` can be submitted in the request parameters to read a specific resource. The response usually returns a `200 OK` response code upon success, with the resource's metadata in the response body. If a `GET` request does not include a specific resource `id`, it is treated as a list request. The response usually returns a `200 OK` response code upon success, with an object containing a list of resources' metadata in the response body. When reading resources, some common query parameters are usually available. e.g.: ``` v1/connections?limit=25&offset=25 ``` |Query Parameter|Type|Description| |---------------|----|-----------| |limit|integer|Maximum number of objects to fetch. Usually 25 by default| |offset|integer|Offset after which to start returning objects. For use with limit query parameter.| ### Update Updating a resource requires the resource `id`, and is typically done using an HTTP `PATCH` request, with the fields to modify in the request body. The response usually returns a `200 OK` response code upon success, with information about the modified resource in the response body. ### Delete Deleting a resource requires the resource `id` and is typically executing via an HTTP `DELETE` request. The response usually returns a `204 No Content` response code upon success. ## Conventions - Resource names are plural and expressed in camelCase. - Names are consistent between URL parameter name and field name. - Field names are in snake_case. ```json { \"name\": \"string\", \"slots\": 0, \"occupied_slots\": 0, \"used_slots\": 0, \"queued_slots\": 0, \"open_slots\": 0 } ``` ### Update Mask Update mask is available as a query parameter in patch endpoints. It is used to notify the API which fields you want to update. Using `update_mask` makes it easier to update objects by helping the server know which fields to update in an object instead of updating all fields. The update request ignores any fields that aren't specified in the field mask, leaving them with their current values. Example: ``` resource = request.get('/resource/my-id').json() resource['my_field'] = 'new-value' request.patch('/resource/my-id?update_mask=my_field', data=json.dumps(resource)) ``` ## Versioning and Endpoint Lifecycle - API versioning is not synchronized to specific releases of the Apache Airflow. - APIs are designed to be backward compatible. - Any changes to the API will first go through a deprecation phase. # Summary of Changes | Airflow version | Description | |-|-| | v2.0 | Initial release | | v2.0.2 | Added /plugins endpoint | | v2.1 | New providers endpoint | # Trying the API You can use a third party client, such as [curl](https://curl.haxx.se/), [HTTPie](https://httpie.org/), [Postman](https://www.postman.com/) or [the Insomnia rest client](https://insomnia.rest/) to test the Apache Airflow API. Note that you will need to pass credentials data. For e.g., here is how to pause a DAG with [curl](https://curl.haxx.se/), when basic authorization is used: ```bash curl -X PATCH 'https://example.com/api/v1/dags/{dag_id}?update_mask=is_paused' \\ -H 'Content-Type: application/json' \\ --user \"username:password\" \\ -d '{ \"is_paused\": true }' ``` Using a graphical tool such as [Postman](https://www.postman.com/) or [Insomnia](https://insomnia.rest/), it is possible to import the API specifications directly: 1. Download the API specification by clicking the **Download** button at top of this document 2. Import the JSON specification in the graphical tool of your choice. - In *Postman*, you can click the **import** button at the top - With *Insomnia*, you can just drag-and-drop the file on the UI Note that with *Postman*, you can also generate code snippets by selecting a request and clicking on the **Code** button. ## Enabling CORS [Cross-origin resource sharing (CORS)](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) is a browser security feature that restricts HTTP requests that are initiated from scripts running in the browser. For details on enabling/configuring CORS, see [Enabling CORS](https://airflow.apache.org/docs/apache-airflow/stable/security/api.html). # Authentication To be able to meet the requirements of many organizations, Airflow supports many authentication methods, and it is even possible to add your own method. If you want to check which auth backend is currently set, you can use `airflow config get-value api auth_backend` command as in the example below. ```bash $ airflow config get-value api auth_backend airflow.api.auth.backend.basic_auth ``` The default is to deny all requests. For details on configuring the authentication, see [API Authorization](https://airflow.apache.org/docs/apache-airflow/stable/security/api.html). # Errors We follow the error response format proposed in [RFC 7807](https://tools.ietf.org/html/rfc7807) also known as Problem Details for HTTP APIs. As with our normal API responses, your client must be prepared to gracefully handle additional members of the response. ## Unauthenticated This indicates that the request has not been applied because it lacks valid authentication credentials for the target resource. Please check that you have valid credentials. ## PermissionDenied This response means that the server understood the request but refuses to authorize it because it lacks sufficient rights to the resource. It happens when you do not have the necessary permission to execute the action you performed. You need to get the appropriate permissions in other to resolve this error. ## BadRequest This response means that the server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing). To resolve this, please ensure that your syntax is correct. ## NotFound This client error response indicates that the server cannot find the requested resource. ## MethodNotAllowed Indicates that the request method is known by the server but is not supported by the target resource. ## NotAcceptable The target resource does not have a current representation that would be acceptable to the user agent, according to the proactive negotiation header fields received in the request, and the server is unwilling to supply a default representation. ## AlreadyExists The request could not be completed due to a conflict with the current state of the target resource, e.g. the resource it tries to create already exists. ## Unknown This means that the server encountered an unexpected condition that prevented it from fulfilling the request. # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: dev@airflow.apache.org + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from airflow_client.client.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, +) +from ..model_utils import OpenApiModel +from airflow_client.client.exceptions import ApiAttributeError + + +def lazy_import(): + from airflow_client.client.model.time_delta import TimeDelta + globals()['TimeDelta'] = TimeDelta + + +class NullableTimeDelta(ModelComposed): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'type': (str,), # noqa: E501 + 'days': (int,), # noqa: E501 + 'seconds': (int,), # noqa: E501 + 'microseconds': (int,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'type': '__type', # noqa: E501 + 'days': 'days', # noqa: E501 + 'seconds': 'seconds', # noqa: E501 + 'microseconds': 'microseconds', # noqa: E501 + } + + read_only_vars = { + } + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """NullableTimeDelta - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + type (str): [optional] # noqa: E501 + days (int): [optional] # noqa: E501 + seconds (int): [optional] # noqa: E501 + microseconds (int): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + constant_args = { + '_check_type': _check_type, + '_path_to_item': _path_to_item, + '_spec_property_naming': _spec_property_naming, + '_configuration': _configuration, + '_visited_composed_classes': self._visited_composed_classes, + } + composed_info = validate_get_composed_info( + constant_args, kwargs, self) + self._composed_instances = composed_info[0] + self._var_name_to_model_instances = composed_info[1] + self._additional_properties_model_instances = composed_info[2] + discarded_args = composed_info[3] + + for var_name, var_value in kwargs.items(): + if var_name in discarded_args and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self._additional_properties_model_instances: + # discard variable. + continue + setattr(self, var_name, var_value) + + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + '_composed_instances', + '_var_name_to_model_instances', + '_additional_properties_model_instances', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """NullableTimeDelta - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + type (str): [optional] # noqa: E501 + days (int): [optional] # noqa: E501 + seconds (int): [optional] # noqa: E501 + microseconds (int): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + constant_args = { + '_check_type': _check_type, + '_path_to_item': _path_to_item, + '_spec_property_naming': _spec_property_naming, + '_configuration': _configuration, + '_visited_composed_classes': self._visited_composed_classes, + } + composed_info = validate_get_composed_info( + constant_args, kwargs, self) + self._composed_instances = composed_info[0] + self._var_name_to_model_instances = composed_info[1] + self._additional_properties_model_instances = composed_info[2] + discarded_args = composed_info[3] + + for var_name, var_value in kwargs.items(): + if var_name in discarded_args and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self._additional_properties_model_instances: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") + + @cached_property + def _composed_schemas(): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + lazy_import() + return { + 'anyOf': [ + ], + 'allOf': [ + ], + 'oneOf': [ + TimeDelta, + none_type, + ], + } diff --git a/airflow_client/client/model/plugin_collection.py b/airflow_client/client/model/plugin_collection.py index 8e516b01..096aacd0 100644 --- a/airflow_client/client/model/plugin_collection.py +++ b/airflow_client/client/model/plugin_collection.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/client/model/plugin_collection_all_of.py b/airflow_client/client/model/plugin_collection_all_of.py index 8c1f9d75..494afb66 100644 --- a/airflow_client/client/model/plugin_collection_all_of.py +++ b/airflow_client/client/model/plugin_collection_all_of.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/client/model/plugin_collection_item.py b/airflow_client/client/model/plugin_collection_item.py index 56550657..f1c3a0d8 100644 --- a/airflow_client/client/model/plugin_collection_item.py +++ b/airflow_client/client/model/plugin_collection_item.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/client/model/pool.py b/airflow_client/client/model/pool.py index e9504ae9..f3736173 100644 --- a/airflow_client/client/model/pool.py +++ b/airflow_client/client/model/pool.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) @@ -105,6 +88,7 @@ def openapi_types(): 'used_slots': (int,), # noqa: E501 'queued_slots': (int,), # noqa: E501 'open_slots': (int,), # noqa: E501 + 'description': (str, none_type,), # noqa: E501 } @cached_property @@ -119,6 +103,7 @@ def discriminator(): 'used_slots': 'used_slots', # noqa: E501 'queued_slots': 'queued_slots', # noqa: E501 'open_slots': 'open_slots', # noqa: E501 + 'description': 'description', # noqa: E501 } read_only_vars = { @@ -172,6 +157,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 used_slots (int): The number of slots used by running tasks at the moment.. [optional] # noqa: E501 queued_slots (int): The number of slots used by queued tasks at the moment.. [optional] # noqa: E501 open_slots (int): The number of free slots at the moment.. [optional] # noqa: E501 + description (str, none_type): The description of the pool. *New in version 2.3.0* . [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -259,6 +245,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 used_slots (int): The number of slots used by running tasks at the moment.. [optional] # noqa: E501 queued_slots (int): The number of slots used by queued tasks at the moment.. [optional] # noqa: E501 open_slots (int): The number of free slots at the moment.. [optional] # noqa: E501 + description (str, none_type): The description of the pool. *New in version 2.3.0* . [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/airflow_client/client/model/pool_collection.py b/airflow_client/client/model/pool_collection.py index dd928c89..05f5d577 100644 --- a/airflow_client/client/model/pool_collection.py +++ b/airflow_client/client/model/pool_collection.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/client/model/pool_collection_all_of.py b/airflow_client/client/model/pool_collection_all_of.py index 68fe25c0..220ad1dd 100644 --- a/airflow_client/client/model/pool_collection_all_of.py +++ b/airflow_client/client/model/pool_collection_all_of.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/client/model/provider.py b/airflow_client/client/model/provider.py index 05d6c8c5..96be6238 100644 --- a/airflow_client/client/model/provider.py +++ b/airflow_client/client/model/provider.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/client/model/provider_collection.py b/airflow_client/client/model/provider_collection.py index 871087f9..8b7e5424 100644 --- a/airflow_client/client/model/provider_collection.py +++ b/airflow_client/client/model/provider_collection.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/client/model/relative_delta.py b/airflow_client/client/model/relative_delta.py index dd7c98bc..b0ad00b8 100644 --- a/airflow_client/client/model/relative_delta.py +++ b/airflow_client/client/model/relative_delta.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/client/model/resource.py b/airflow_client/client/model/resource.py index 39c32483..78976bc1 100644 --- a/airflow_client/client/model/resource.py +++ b/airflow_client/client/model/resource.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/client/model/role.py b/airflow_client/client/model/role.py index f8888a44..e2c8925e 100644 --- a/airflow_client/client/model/role.py +++ b/airflow_client/client/model/role.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) @@ -80,6 +63,9 @@ class Role(ModelNormal): } validations = { + ('name',): { + 'min_length': 1, + }, } @cached_property @@ -160,7 +146,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - name (str): The name of the role. [optional] # noqa: E501 + name (str): The name of the role *Changed in version 2.3.0*: A minimum character length requirement ('minLength') is added. . [optional] # noqa: E501 actions ([ActionResource]): [optional] # noqa: E501 """ @@ -243,7 +229,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - name (str): The name of the role. [optional] # noqa: E501 + name (str): The name of the role *Changed in version 2.3.0*: A minimum character length requirement ('minLength') is added. . [optional] # noqa: E501 actions ([ActionResource]): [optional] # noqa: E501 """ diff --git a/airflow_client/client/model/role_collection.py b/airflow_client/client/model/role_collection.py index 8d46259b..46395505 100644 --- a/airflow_client/client/model/role_collection.py +++ b/airflow_client/client/model/role_collection.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/client/model/role_collection_all_of.py b/airflow_client/client/model/role_collection_all_of.py index e374a231..086d0483 100644 --- a/airflow_client/client/model/role_collection_all_of.py +++ b/airflow_client/client/model/role_collection_all_of.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/client/model/schedule_interval.py b/airflow_client/client/model/schedule_interval.py index 6ede15d7..87db7b62 100644 --- a/airflow_client/client/model/schedule_interval.py +++ b/airflow_client/client/model/schedule_interval.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/client/model/scheduler_status.py b/airflow_client/client/model/scheduler_status.py index 1436a090..1a611733 100644 --- a/airflow_client/client/model/scheduler_status.py +++ b/airflow_client/client/model/scheduler_status.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/client/model/sla_miss.py b/airflow_client/client/model/sla_miss.py index e361df04..4931dd45 100644 --- a/airflow_client/client/model/sla_miss.py +++ b/airflow_client/client/model/sla_miss.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/client/model/tag.py b/airflow_client/client/model/tag.py index 91213a38..c61f56a3 100644 --- a/airflow_client/client/model/tag.py +++ b/airflow_client/client/model/tag.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/client/model/task.py b/airflow_client/client/model/task.py index f83d8708..86be7dd9 100644 --- a/airflow_client/client/model/task.py +++ b/airflow_client/client/model/task.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) @@ -51,15 +34,15 @@ def lazy_import(): from airflow_client.client.model.class_reference import ClassReference from airflow_client.client.model.color import Color from airflow_client.client.model.dag import DAG + from airflow_client.client.model.nullable_time_delta import NullableTimeDelta from airflow_client.client.model.task_extra_links import TaskExtraLinks - from airflow_client.client.model.time_delta import TimeDelta from airflow_client.client.model.trigger_rule import TriggerRule from airflow_client.client.model.weight_rule import WeightRule globals()['ClassReference'] = ClassReference globals()['Color'] = Color globals()['DAG'] = DAG + globals()['NullableTimeDelta'] = NullableTimeDelta globals()['TaskExtraLinks'] = TaskExtraLinks - globals()['TimeDelta'] = TimeDelta globals()['TriggerRule'] = TriggerRule globals()['WeightRule'] = WeightRule @@ -130,8 +113,8 @@ def openapi_types(): 'queue': (str,), # noqa: E501 'pool': (str,), # noqa: E501 'pool_slots': (float,), # noqa: E501 - 'execution_timeout': (TimeDelta,), # noqa: E501 - 'retry_delay': (TimeDelta,), # noqa: E501 + 'execution_timeout': (NullableTimeDelta,), # noqa: E501 + 'retry_delay': (NullableTimeDelta,), # noqa: E501 'retry_exponential_backoff': (bool,), # noqa: E501 'priority_weight': (float,), # noqa: E501 'weight_rule': (WeightRule,), # noqa: E501 @@ -242,8 +225,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 queue (str): [optional] # noqa: E501 pool (str): [optional] # noqa: E501 pool_slots (float): [optional] # noqa: E501 - execution_timeout (TimeDelta): [optional] # noqa: E501 - retry_delay (TimeDelta): [optional] # noqa: E501 + execution_timeout (NullableTimeDelta): [optional] # noqa: E501 + retry_delay (NullableTimeDelta): [optional] # noqa: E501 retry_exponential_backoff (bool): [optional] # noqa: E501 priority_weight (float): [optional] # noqa: E501 weight_rule (WeightRule): [optional] # noqa: E501 @@ -346,8 +329,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 queue (str): [optional] # noqa: E501 pool (str): [optional] # noqa: E501 pool_slots (float): [optional] # noqa: E501 - execution_timeout (TimeDelta): [optional] # noqa: E501 - retry_delay (TimeDelta): [optional] # noqa: E501 + execution_timeout (NullableTimeDelta): [optional] # noqa: E501 + retry_delay (NullableTimeDelta): [optional] # noqa: E501 retry_exponential_backoff (bool): [optional] # noqa: E501 priority_weight (float): [optional] # noqa: E501 weight_rule (WeightRule): [optional] # noqa: E501 diff --git a/airflow_client/client/model/task_collection.py b/airflow_client/client/model/task_collection.py index 1ba46507..eb1b25d7 100644 --- a/airflow_client/client/model/task_collection.py +++ b/airflow_client/client/model/task_collection.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/client/model/task_extra_links.py b/airflow_client/client/model/task_extra_links.py index 55d36444..cab2fc1d 100644 --- a/airflow_client/client/model/task_extra_links.py +++ b/airflow_client/client/model/task_extra_links.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/client/model/task_instance.py b/airflow_client/client/model/task_instance.py index a5d29bf3..ce7ce42b 100644 --- a/airflow_client/client/model/task_instance.py +++ b/airflow_client/client/model/task_instance.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) @@ -48,10 +31,10 @@ def lazy_import(): - from airflow_client.client.model.sla_miss import SLAMiss - from airflow_client.client.model.task_state import TaskState - globals()['SLAMiss'] = SLAMiss - globals()['TaskState'] = TaskState + from airflow_client.client.model.nullable_sla_miss import NullableSLAMiss + from airflow_client.client.model.nullable_task_state import NullableTaskState + globals()['NullableSLAMiss'] = NullableSLAMiss + globals()['NullableTaskState'] = NullableTaskState class TaskInstance(ModelNormal): @@ -109,11 +92,12 @@ def openapi_types(): return { 'task_id': (str,), # noqa: E501 'dag_id': (str,), # noqa: E501 + 'dag_run_id': (str,), # noqa: E501 'execution_date': (str,), # noqa: E501 'start_date': (str, none_type,), # noqa: E501 'end_date': (str, none_type,), # noqa: E501 'duration': (float, none_type,), # noqa: E501 - 'state': (TaskState,), # noqa: E501 + 'state': (NullableTaskState,), # noqa: E501 'try_number': (int,), # noqa: E501 'max_tries': (int,), # noqa: E501 'hostname': (str,), # noqa: E501 @@ -126,7 +110,7 @@ def openapi_types(): 'queued_when': (str, none_type,), # noqa: E501 'pid': (int, none_type,), # noqa: E501 'executor_config': (str,), # noqa: E501 - 'sla_miss': (SLAMiss,), # noqa: E501 + 'sla_miss': (NullableSLAMiss,), # noqa: E501 } @cached_property @@ -137,6 +121,7 @@ def discriminator(): attribute_map = { 'task_id': 'task_id', # noqa: E501 'dag_id': 'dag_id', # noqa: E501 + 'dag_run_id': 'dag_run_id', # noqa: E501 'execution_date': 'execution_date', # noqa: E501 'start_date': 'start_date', # noqa: E501 'end_date': 'end_date', # noqa: E501 @@ -200,11 +185,12 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) task_id (str): [optional] # noqa: E501 dag_id (str): [optional] # noqa: E501 + dag_run_id (str): The DagRun ID for this task instance *New in version 2.3.0* . [optional] # noqa: E501 execution_date (str): [optional] # noqa: E501 start_date (str, none_type): [optional] # noqa: E501 end_date (str, none_type): [optional] # noqa: E501 duration (float, none_type): [optional] # noqa: E501 - state (TaskState): [optional] # noqa: E501 + state (NullableTaskState): [optional] # noqa: E501 try_number (int): [optional] # noqa: E501 max_tries (int): [optional] # noqa: E501 hostname (str): [optional] # noqa: E501 @@ -213,11 +199,11 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 pool_slots (int): [optional] # noqa: E501 queue (str): [optional] # noqa: E501 priority_weight (int): [optional] # noqa: E501 - operator (str, none_type): [optional] # noqa: E501 + operator (str, none_type): *Changed in version 2.1.1*: Field becomes nullable. . [optional] # noqa: E501 queued_when (str, none_type): [optional] # noqa: E501 pid (int, none_type): [optional] # noqa: E501 executor_config (str): [optional] # noqa: E501 - sla_miss (SLAMiss): [optional] # noqa: E501 + sla_miss (NullableSLAMiss): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -301,11 +287,12 @@ def __init__(self, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) task_id (str): [optional] # noqa: E501 dag_id (str): [optional] # noqa: E501 + dag_run_id (str): The DagRun ID for this task instance *New in version 2.3.0* . [optional] # noqa: E501 execution_date (str): [optional] # noqa: E501 start_date (str, none_type): [optional] # noqa: E501 end_date (str, none_type): [optional] # noqa: E501 duration (float, none_type): [optional] # noqa: E501 - state (TaskState): [optional] # noqa: E501 + state (NullableTaskState): [optional] # noqa: E501 try_number (int): [optional] # noqa: E501 max_tries (int): [optional] # noqa: E501 hostname (str): [optional] # noqa: E501 @@ -314,11 +301,11 @@ def __init__(self, *args, **kwargs): # noqa: E501 pool_slots (int): [optional] # noqa: E501 queue (str): [optional] # noqa: E501 priority_weight (int): [optional] # noqa: E501 - operator (str, none_type): [optional] # noqa: E501 + operator (str, none_type): *Changed in version 2.1.1*: Field becomes nullable. . [optional] # noqa: E501 queued_when (str, none_type): [optional] # noqa: E501 pid (int, none_type): [optional] # noqa: E501 executor_config (str): [optional] # noqa: E501 - sla_miss (SLAMiss): [optional] # noqa: E501 + sla_miss (NullableSLAMiss): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/airflow_client/client/model/task_instance_collection.py b/airflow_client/client/model/task_instance_collection.py index d21a6c3f..bfe00568 100644 --- a/airflow_client/client/model/task_instance_collection.py +++ b/airflow_client/client/model/task_instance_collection.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/client/model/task_instance_collection_all_of.py b/airflow_client/client/model/task_instance_collection_all_of.py index 637c5c65..4487b4ec 100644 --- a/airflow_client/client/model/task_instance_collection_all_of.py +++ b/airflow_client/client/model/task_instance_collection_all_of.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/client/model/task_instance_reference.py b/airflow_client/client/model/task_instance_reference.py index 5caabb24..7f7961de 100644 --- a/airflow_client/client/model/task_instance_reference.py +++ b/airflow_client/client/model/task_instance_reference.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/client/model/task_instance_reference_collection.py b/airflow_client/client/model/task_instance_reference_collection.py index c04bef33..6587e57a 100644 --- a/airflow_client/client/model/task_instance_reference_collection.py +++ b/airflow_client/client/model/task_instance_reference_collection.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/client/model/task_state.py b/airflow_client/client/model/task_state.py index d517f0a9..4104ab8c 100644 --- a/airflow_client/client/model/task_state.py +++ b/airflow_client/client/model/task_state.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) @@ -134,10 +117,10 @@ def __init__(self, *args, **kwargs): Note that value can be passed either in args or in kwargs, but not in both. Args: - args[0] (str): Task state.., must be one of ["success", "running", "failed", "upstream_failed", "skipped", "up_for_retry", "up_for_reschedule", "queued", "none", "scheduled", "deferred", "sensing", "removed", ] # noqa: E501 + args[0] (str): Task state. *Changed in version 2.0.2*: 'removed' is added as a possible value. *Changed in version 2.2.0*: 'deferred' and 'sensing' is added as a possible value. ., must be one of ["success", "running", "failed", "upstream_failed", "skipped", "up_for_retry", "up_for_reschedule", "queued", "none", "scheduled", "deferred", "sensing", "removed", ] # noqa: E501 Keyword Args: - value (str): Task state.., must be one of ["success", "running", "failed", "upstream_failed", "skipped", "up_for_retry", "up_for_reschedule", "queued", "none", "scheduled", "deferred", "sensing", "removed", ] # noqa: E501 + value (str): Task state. *Changed in version 2.0.2*: 'removed' is added as a possible value. *Changed in version 2.2.0*: 'deferred' and 'sensing' is added as a possible value. ., must be one of ["success", "running", "failed", "upstream_failed", "skipped", "up_for_retry", "up_for_reschedule", "queued", "none", "scheduled", "deferred", "sensing", "removed", ] # noqa: E501 _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be raised if the wrong type is input. @@ -224,10 +207,10 @@ def _from_openapi_data(cls, *args, **kwargs): Note that value can be passed either in args or in kwargs, but not in both. Args: - args[0] (str): Task state.., must be one of ["success", "running", "failed", "upstream_failed", "skipped", "up_for_retry", "up_for_reschedule", "queued", "none", "scheduled", "deferred", "sensing", "removed", ] # noqa: E501 + args[0] (str): Task state. *Changed in version 2.0.2*: 'removed' is added as a possible value. *Changed in version 2.2.0*: 'deferred' and 'sensing' is added as a possible value. ., must be one of ["success", "running", "failed", "upstream_failed", "skipped", "up_for_retry", "up_for_reschedule", "queued", "none", "scheduled", "deferred", "sensing", "removed", ] # noqa: E501 Keyword Args: - value (str): Task state.., must be one of ["success", "running", "failed", "upstream_failed", "skipped", "up_for_retry", "up_for_reschedule", "queued", "none", "scheduled", "deferred", "sensing", "removed", ] # noqa: E501 + value (str): Task state. *Changed in version 2.0.2*: 'removed' is added as a possible value. *Changed in version 2.2.0*: 'deferred' and 'sensing' is added as a possible value. ., must be one of ["success", "running", "failed", "upstream_failed", "skipped", "up_for_retry", "up_for_reschedule", "queued", "none", "scheduled", "deferred", "sensing", "removed", ] # noqa: E501 _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be raised if the wrong type is input. diff --git a/airflow_client/client/model/time_delta.py b/airflow_client/client/model/time_delta.py index d5e77a51..0e53ceec 100644 --- a/airflow_client/client/model/time_delta.py +++ b/airflow_client/client/model/time_delta.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/client/model/trigger_rule.py b/airflow_client/client/model/trigger_rule.py index 4faabb4e..e6b0aed5 100644 --- a/airflow_client/client/model/trigger_rule.py +++ b/airflow_client/client/model/trigger_rule.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) @@ -131,10 +114,10 @@ def __init__(self, *args, **kwargs): Note that value can be passed either in args or in kwargs, but not in both. Args: - args[0] (str): Trigger rule.., must be one of ["all_success", "all_failed", "all_done", "one_success", "one_failed", "none_failed", "none_skipped", "none_failed_or_skipped", "none_failed_min_one_success", "dummy", ] # noqa: E501 + args[0] (str): Trigger rule. *Changed in version 2.2.0*: 'none_failed_min_one_success' is added as a possible value. ., must be one of ["all_success", "all_failed", "all_done", "one_success", "one_failed", "none_failed", "none_skipped", "none_failed_or_skipped", "none_failed_min_one_success", "dummy", ] # noqa: E501 Keyword Args: - value (str): Trigger rule.., must be one of ["all_success", "all_failed", "all_done", "one_success", "one_failed", "none_failed", "none_skipped", "none_failed_or_skipped", "none_failed_min_one_success", "dummy", ] # noqa: E501 + value (str): Trigger rule. *Changed in version 2.2.0*: 'none_failed_min_one_success' is added as a possible value. ., must be one of ["all_success", "all_failed", "all_done", "one_success", "one_failed", "none_failed", "none_skipped", "none_failed_or_skipped", "none_failed_min_one_success", "dummy", ] # noqa: E501 _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be raised if the wrong type is input. @@ -221,10 +204,10 @@ def _from_openapi_data(cls, *args, **kwargs): Note that value can be passed either in args or in kwargs, but not in both. Args: - args[0] (str): Trigger rule.., must be one of ["all_success", "all_failed", "all_done", "one_success", "one_failed", "none_failed", "none_skipped", "none_failed_or_skipped", "none_failed_min_one_success", "dummy", ] # noqa: E501 + args[0] (str): Trigger rule. *Changed in version 2.2.0*: 'none_failed_min_one_success' is added as a possible value. ., must be one of ["all_success", "all_failed", "all_done", "one_success", "one_failed", "none_failed", "none_skipped", "none_failed_or_skipped", "none_failed_min_one_success", "dummy", ] # noqa: E501 Keyword Args: - value (str): Trigger rule.., must be one of ["all_success", "all_failed", "all_done", "one_success", "one_failed", "none_failed", "none_skipped", "none_failed_or_skipped", "none_failed_min_one_success", "dummy", ] # noqa: E501 + value (str): Trigger rule. *Changed in version 2.2.0*: 'none_failed_min_one_success' is added as a possible value. ., must be one of ["all_success", "all_failed", "all_done", "one_success", "one_failed", "none_failed", "none_skipped", "none_failed_or_skipped", "none_failed_min_one_success", "dummy", ] # noqa: E501 _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be raised if the wrong type is input. diff --git a/airflow_client/client/model/update_dag_run_state.py b/airflow_client/client/model/update_dag_run_state.py index 23cda83b..8f667db4 100644 --- a/airflow_client/client/model/update_dag_run_state.py +++ b/airflow_client/client/model/update_dag_run_state.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/client/model/update_task_instances_state.py b/airflow_client/client/model/update_task_instances_state.py index ae50ec60..ed1147c9 100644 --- a/airflow_client/client/model/update_task_instances_state.py +++ b/airflow_client/client/model/update_task_instances_state.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) @@ -106,6 +89,7 @@ def openapi_types(): 'dry_run': (bool,), # noqa: E501 'task_id': (str,), # noqa: E501 'execution_date': (str,), # noqa: E501 + 'dag_run_id': (str,), # noqa: E501 'include_upstream': (bool,), # noqa: E501 'include_downstream': (bool,), # noqa: E501 'include_future': (bool,), # noqa: E501 @@ -122,6 +106,7 @@ def discriminator(): 'dry_run': 'dry_run', # noqa: E501 'task_id': 'task_id', # noqa: E501 'execution_date': 'execution_date', # noqa: E501 + 'dag_run_id': 'dag_run_id', # noqa: E501 'include_upstream': 'include_upstream', # noqa: E501 'include_downstream': 'include_downstream', # noqa: E501 'include_future': 'include_future', # noqa: E501 @@ -172,7 +157,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) dry_run (bool): If set, don't actually run this operation. The response will contain a list of task instances planned to be affected, but won't be modified in any way. . [optional] if omitted the server will use the default value of True # noqa: E501 task_id (str): The task ID.. [optional] # noqa: E501 - execution_date (str): The execution date.. [optional] # noqa: E501 + execution_date (str): The execution date. Either set this or dag_run_id but not both.. [optional] # noqa: E501 + dag_run_id (str): The task instance's DAG run ID. Either set this or execution_date but not both. *New in version 2.3.0* . [optional] # noqa: E501 include_upstream (bool): If set to true, upstream tasks are also affected.. [optional] # noqa: E501 include_downstream (bool): If set to true, downstream tasks are also affected.. [optional] # noqa: E501 include_future (bool): If set to True, also tasks from future DAG Runs are affected.. [optional] # noqa: E501 @@ -261,7 +247,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) dry_run (bool): If set, don't actually run this operation. The response will contain a list of task instances planned to be affected, but won't be modified in any way. . [optional] if omitted the server will use the default value of True # noqa: E501 task_id (str): The task ID.. [optional] # noqa: E501 - execution_date (str): The execution date.. [optional] # noqa: E501 + execution_date (str): The execution date. Either set this or dag_run_id but not both.. [optional] # noqa: E501 + dag_run_id (str): The task instance's DAG run ID. Either set this or execution_date but not both. *New in version 2.3.0* . [optional] # noqa: E501 include_upstream (bool): If set to true, upstream tasks are also affected.. [optional] # noqa: E501 include_downstream (bool): If set to true, downstream tasks are also affected.. [optional] # noqa: E501 include_future (bool): If set to True, also tasks from future DAG Runs are affected.. [optional] # noqa: E501 diff --git a/airflow_client/client/model/user.py b/airflow_client/client/model/user.py index 93e201d1..0bccd28e 100644 --- a/airflow_client/client/model/user.py +++ b/airflow_client/client/model/user.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) @@ -200,15 +183,15 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - first_name (str): The user firstname. [optional] # noqa: E501 - last_name (str): The user lastname. [optional] # noqa: E501 - username (str): The username. [optional] # noqa: E501 - email (str): The user's email. [optional] # noqa: E501 + first_name (str): The user's first name. *Changed in version 2.2.0*: A minimum character length requirement ('minLength') is added. . [optional] # noqa: E501 + last_name (str): The user's last name. *Changed in version 2.2.0*: A minimum character length requirement ('minLength') is added. . [optional] # noqa: E501 + username (str): The username. *Changed in version 2.2.0*: A minimum character length requirement ('minLength') is added. . [optional] # noqa: E501 + email (str): The user's email. *Changed in version 2.2.0*: A minimum character length requirement ('minLength') is added. . [optional] # noqa: E501 active (bool, none_type): Whether the user is active. [optional] # noqa: E501 last_login (str, none_type): The last user login. [optional] # noqa: E501 login_count (int, none_type): The login count. [optional] # noqa: E501 failed_login_count (int, none_type): The number of times the login failed. [optional] # noqa: E501 - roles ([UserCollectionItemRoles]): User roles. [optional] # noqa: E501 + roles ([UserCollectionItemRoles]): User roles. *Changed in version 2.2.0*: Field is no longer read-only. . [optional] # noqa: E501 created_on (str, none_type): The date user was created. [optional] # noqa: E501 changed_on (str, none_type): The date user was changed. [optional] # noqa: E501 password (str): [optional] # noqa: E501 @@ -311,15 +294,15 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - first_name (str): The user firstname. [optional] # noqa: E501 - last_name (str): The user lastname. [optional] # noqa: E501 - username (str): The username. [optional] # noqa: E501 - email (str): The user's email. [optional] # noqa: E501 + first_name (str): The user's first name. *Changed in version 2.2.0*: A minimum character length requirement ('minLength') is added. . [optional] # noqa: E501 + last_name (str): The user's last name. *Changed in version 2.2.0*: A minimum character length requirement ('minLength') is added. . [optional] # noqa: E501 + username (str): The username. *Changed in version 2.2.0*: A minimum character length requirement ('minLength') is added. . [optional] # noqa: E501 + email (str): The user's email. *Changed in version 2.2.0*: A minimum character length requirement ('minLength') is added. . [optional] # noqa: E501 active (bool, none_type): Whether the user is active. [optional] # noqa: E501 last_login (str, none_type): The last user login. [optional] # noqa: E501 login_count (int, none_type): The login count. [optional] # noqa: E501 failed_login_count (int, none_type): The number of times the login failed. [optional] # noqa: E501 - roles ([UserCollectionItemRoles]): User roles. [optional] # noqa: E501 + roles ([UserCollectionItemRoles]): User roles. *Changed in version 2.2.0*: Field is no longer read-only. . [optional] # noqa: E501 created_on (str, none_type): The date user was created. [optional] # noqa: E501 changed_on (str, none_type): The date user was changed. [optional] # noqa: E501 password (str): [optional] # noqa: E501 diff --git a/airflow_client/client/model/user_all_of.py b/airflow_client/client/model/user_all_of.py index a30f0ff7..dce32c47 100644 --- a/airflow_client/client/model/user_all_of.py +++ b/airflow_client/client/model/user_all_of.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/client/model/user_collection.py b/airflow_client/client/model/user_collection.py index 3f12d5b5..d0ec338d 100644 --- a/airflow_client/client/model/user_collection.py +++ b/airflow_client/client/model/user_collection.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/client/model/user_collection_all_of.py b/airflow_client/client/model/user_collection_all_of.py index 60d3ca1c..5ddfdf3a 100644 --- a/airflow_client/client/model/user_collection_all_of.py +++ b/airflow_client/client/model/user_collection_all_of.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/client/model/user_collection_item.py b/airflow_client/client/model/user_collection_item.py index ae6d4088..c099f739 100644 --- a/airflow_client/client/model/user_collection_item.py +++ b/airflow_client/client/model/user_collection_item.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) @@ -196,15 +179,15 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - first_name (str): The user firstname. [optional] # noqa: E501 - last_name (str): The user lastname. [optional] # noqa: E501 - username (str): The username. [optional] # noqa: E501 - email (str): The user's email. [optional] # noqa: E501 + first_name (str): The user's first name. *Changed in version 2.2.0*: A minimum character length requirement ('minLength') is added. . [optional] # noqa: E501 + last_name (str): The user's last name. *Changed in version 2.2.0*: A minimum character length requirement ('minLength') is added. . [optional] # noqa: E501 + username (str): The username. *Changed in version 2.2.0*: A minimum character length requirement ('minLength') is added. . [optional] # noqa: E501 + email (str): The user's email. *Changed in version 2.2.0*: A minimum character length requirement ('minLength') is added. . [optional] # noqa: E501 active (bool, none_type): Whether the user is active. [optional] # noqa: E501 last_login (str, none_type): The last user login. [optional] # noqa: E501 login_count (int, none_type): The login count. [optional] # noqa: E501 failed_login_count (int, none_type): The number of times the login failed. [optional] # noqa: E501 - roles ([UserCollectionItemRoles]): User roles. [optional] # noqa: E501 + roles ([UserCollectionItemRoles]): User roles. *Changed in version 2.2.0*: Field is no longer read-only. . [optional] # noqa: E501 created_on (str, none_type): The date user was created. [optional] # noqa: E501 changed_on (str, none_type): The date user was changed. [optional] # noqa: E501 """ @@ -288,15 +271,15 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - first_name (str): The user firstname. [optional] # noqa: E501 - last_name (str): The user lastname. [optional] # noqa: E501 - username (str): The username. [optional] # noqa: E501 - email (str): The user's email. [optional] # noqa: E501 + first_name (str): The user's first name. *Changed in version 2.2.0*: A minimum character length requirement ('minLength') is added. . [optional] # noqa: E501 + last_name (str): The user's last name. *Changed in version 2.2.0*: A minimum character length requirement ('minLength') is added. . [optional] # noqa: E501 + username (str): The username. *Changed in version 2.2.0*: A minimum character length requirement ('minLength') is added. . [optional] # noqa: E501 + email (str): The user's email. *Changed in version 2.2.0*: A minimum character length requirement ('minLength') is added. . [optional] # noqa: E501 active (bool, none_type): Whether the user is active. [optional] # noqa: E501 last_login (str, none_type): The last user login. [optional] # noqa: E501 login_count (int, none_type): The login count. [optional] # noqa: E501 failed_login_count (int, none_type): The number of times the login failed. [optional] # noqa: E501 - roles ([UserCollectionItemRoles]): User roles. [optional] # noqa: E501 + roles ([UserCollectionItemRoles]): User roles. *Changed in version 2.2.0*: Field is no longer read-only. . [optional] # noqa: E501 created_on (str, none_type): The date user was created. [optional] # noqa: E501 changed_on (str, none_type): The date user was changed. [optional] # noqa: E501 """ diff --git a/airflow_client/client/model/user_collection_item_roles.py b/airflow_client/client/model/user_collection_item_roles.py index c3cea5fd..404dfb6e 100644 --- a/airflow_client/client/model/user_collection_item_roles.py +++ b/airflow_client/client/model/user_collection_item_roles.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/client/model/variable.py b/airflow_client/client/model/variable.py index 5c6ed213..87118e41 100644 --- a/airflow_client/client/model/variable.py +++ b/airflow_client/client/model/variable.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/client/model/variable_all_of.py b/airflow_client/client/model/variable_all_of.py index c620168f..a37d8683 100644 --- a/airflow_client/client/model/variable_all_of.py +++ b/airflow_client/client/model/variable_all_of.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/client/model/variable_collection.py b/airflow_client/client/model/variable_collection.py index 428215d3..d949ac79 100644 --- a/airflow_client/client/model/variable_collection.py +++ b/airflow_client/client/model/variable_collection.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/client/model/variable_collection_all_of.py b/airflow_client/client/model/variable_collection_all_of.py index 550c1fcd..19e1cb0a 100644 --- a/airflow_client/client/model/variable_collection_all_of.py +++ b/airflow_client/client/model/variable_collection_all_of.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/client/model/variable_collection_item.py b/airflow_client/client/model/variable_collection_item.py index 2c94f7c7..5fafa3c9 100644 --- a/airflow_client/client/model/variable_collection_item.py +++ b/airflow_client/client/model/variable_collection_item.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/client/model/version_info.py b/airflow_client/client/model/version_info.py index 4312035d..41e42347 100644 --- a/airflow_client/client/model/version_info.py +++ b/airflow_client/client/model/version_info.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/client/model/weight_rule.py b/airflow_client/client/model/weight_rule.py index ca9b1d03..556d2b4e 100644 --- a/airflow_client/client/model/weight_rule.py +++ b/airflow_client/client/model/weight_rule.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/client/model/x_com.py b/airflow_client/client/model/x_com.py index 944978cf..9faa13e4 100644 --- a/airflow_client/client/model/x_com.py +++ b/airflow_client/client/model/x_com.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/client/model/x_com_all_of.py b/airflow_client/client/model/x_com_all_of.py index 0248452f..004d1f86 100644 --- a/airflow_client/client/model/x_com_all_of.py +++ b/airflow_client/client/model/x_com_all_of.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/client/model/x_com_collection.py b/airflow_client/client/model/x_com_collection.py index bb643551..020dfc68 100644 --- a/airflow_client/client/model/x_com_collection.py +++ b/airflow_client/client/model/x_com_collection.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/client/model/x_com_collection_all_of.py b/airflow_client/client/model/x_com_collection_all_of.py index 32d99492..5bfa2c62 100644 --- a/airflow_client/client/model/x_com_collection_all_of.py +++ b/airflow_client/client/model/x_com_collection_all_of.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/client/model/x_com_collection_item.py b/airflow_client/client/model/x_com_collection_item.py index 8c6f4ef0..6867b53b 100644 --- a/airflow_client/client/model/x_com_collection_item.py +++ b/airflow_client/client/model/x_com_collection_item.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/client/model_utils.py b/airflow_client/client/model_utils.py index 549b5754..ad09a32c 100644 --- a/airflow_client/client/model_utils.py +++ b/airflow_client/client/model_utils.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/client/models/__init__.py b/airflow_client/client/models/__init__.py index 8654fdf3..0677917f 100644 --- a/airflow_client/client/models/__init__.py +++ b/airflow_client/client/models/__init__.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - # flake8: noqa # import all models into this package @@ -69,6 +52,9 @@ from airflow_client.client.model.list_dag_runs_form import ListDagRunsForm from airflow_client.client.model.list_task_instance_form import ListTaskInstanceForm from airflow_client.client.model.metadatabase_status import MetadatabaseStatus +from airflow_client.client.model.nullable_sla_miss import NullableSLAMiss +from airflow_client.client.model.nullable_task_state import NullableTaskState +from airflow_client.client.model.nullable_time_delta import NullableTimeDelta from airflow_client.client.model.plugin_collection import PluginCollection from airflow_client.client.model.plugin_collection_all_of import PluginCollectionAllOf from airflow_client.client.model.plugin_collection_item import PluginCollectionItem diff --git a/airflow_client/client/rest.py b/airflow_client/client/rest.py index 0bad0c7f..3107cfe1 100644 --- a/airflow_client/client/rest.py +++ b/airflow_client/client/rest.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/docs/Action.md b/airflow_client/docs/Action.md index 4c47b76a..bc8389b7 100644 --- a/airflow_client/docs/Action.md +++ b/airflow_client/docs/Action.md @@ -1,25 +1,6 @@ - - # Action -Action Item +An action Item. *New in version 2.1.0* ## Properties Name | Type | Description | Notes diff --git a/airflow_client/docs/ActionCollection.md b/airflow_client/docs/ActionCollection.md index 4a24bf16..2ae4c80e 100644 --- a/airflow_client/docs/ActionCollection.md +++ b/airflow_client/docs/ActionCollection.md @@ -1,25 +1,6 @@ - - # ActionCollection -Action Collection +A collection of actions. *New in version 2.1.0* ## Properties Name | Type | Description | Notes diff --git a/airflow_client/docs/ActionCollectionAllOf.md b/airflow_client/docs/ActionCollectionAllOf.md index c96ee3c7..a4524c3a 100644 --- a/airflow_client/docs/ActionCollectionAllOf.md +++ b/airflow_client/docs/ActionCollectionAllOf.md @@ -1,22 +1,3 @@ - - # ActionCollectionAllOf diff --git a/airflow_client/docs/ActionResource.md b/airflow_client/docs/ActionResource.md index 7fc51f0c..b1ff3d44 100644 --- a/airflow_client/docs/ActionResource.md +++ b/airflow_client/docs/ActionResource.md @@ -1,25 +1,6 @@ - - # ActionResource -The Action-Resource item +The Action-Resource item. *New in version 2.1.0* ## Properties Name | Type | Description | Notes diff --git a/airflow_client/docs/ClassReference.md b/airflow_client/docs/ClassReference.md index 233a68cd..b18a6ed3 100644 --- a/airflow_client/docs/ClassReference.md +++ b/airflow_client/docs/ClassReference.md @@ -1,22 +1,3 @@ - - # ClassReference Class reference diff --git a/airflow_client/docs/ClearTaskInstance.md b/airflow_client/docs/ClearTaskInstance.md index ce1b8464..ca8217e4 100644 --- a/airflow_client/docs/ClearTaskInstance.md +++ b/airflow_client/docs/ClearTaskInstance.md @@ -1,22 +1,3 @@ - - # ClearTaskInstance @@ -24,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **dry_run** | **bool** | If set, don't actually run this operation. The response will contain a list of task instances planned to be cleaned, but not modified in any way. | [optional] if omitted the server will use the default value of True -**task_ids** | **[str]** | A list of task ids to clear. | [optional] +**task_ids** | **[str]** | A list of task ids to clear. *New in version 2.1.0* | [optional] **start_date** | **str** | The minimum execution date to clear. | [optional] **end_date** | **str** | The maximum execution date to clear. | [optional] **only_failed** | **bool** | Only clear failed tasks. | [optional] if omitted the server will use the default value of True diff --git a/airflow_client/docs/CollectionInfo.md b/airflow_client/docs/CollectionInfo.md index e137d405..711eb58b 100644 --- a/airflow_client/docs/CollectionInfo.md +++ b/airflow_client/docs/CollectionInfo.md @@ -1,22 +1,3 @@ - - # CollectionInfo Metadata about collection. diff --git a/airflow_client/docs/Color.md b/airflow_client/docs/Color.md index 69dddc50..cd9ba31e 100644 --- a/airflow_client/docs/Color.md +++ b/airflow_client/docs/Color.md @@ -1,22 +1,3 @@ - - # Color Color in hexadecimal notation. diff --git a/airflow_client/docs/Config.md b/airflow_client/docs/Config.md index 701dc0e1..8a4cffd9 100644 --- a/airflow_client/docs/Config.md +++ b/airflow_client/docs/Config.md @@ -1,22 +1,3 @@ - - # Config The configuration. diff --git a/airflow_client/docs/ConfigApi.md b/airflow_client/docs/ConfigApi.md index dca73a99..13781894 100644 --- a/airflow_client/docs/ConfigApi.md +++ b/airflow_client/docs/ConfigApi.md @@ -1,22 +1,3 @@ - - # Apache Airflow Python Client.ConfigApi All URIs are relative to *http://localhost/api/v1* @@ -33,7 +14,6 @@ Get current configuration ### Example -* Basic Authentication (Basic): ```python import time @@ -48,19 +28,9 @@ configuration = client.Configuration( host = "http://localhost/api/v1" ) -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = client.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) # Enter a context with an instance of the API client -with client.ApiClient(configuration) as api_client: +with client.ApiClient() as api_client: # Create an instance of the API class api_instance = config_api.ConfigApi(api_client) @@ -83,7 +53,7 @@ This endpoint does not need any parameter. ### Authorization -[Basic](../README.md#Basic), [Kerberos](../README.md#Kerberos) +No authorization required ### HTTP request headers diff --git a/airflow_client/docs/ConfigOption.md b/airflow_client/docs/ConfigOption.md index ab50af57..70d8def1 100644 --- a/airflow_client/docs/ConfigOption.md +++ b/airflow_client/docs/ConfigOption.md @@ -1,22 +1,3 @@ - - # ConfigOption The option of configuration. diff --git a/airflow_client/docs/ConfigSection.md b/airflow_client/docs/ConfigSection.md index ca8d7526..039d869e 100644 --- a/airflow_client/docs/ConfigSection.md +++ b/airflow_client/docs/ConfigSection.md @@ -1,22 +1,3 @@ - - # ConfigSection The section of configuration. diff --git a/airflow_client/docs/Connection.md b/airflow_client/docs/Connection.md index 04bae587..c6b0c028 100644 --- a/airflow_client/docs/Connection.md +++ b/airflow_client/docs/Connection.md @@ -1,22 +1,3 @@ - - # Connection Full representation of the connection. diff --git a/airflow_client/docs/ConnectionAllOf.md b/airflow_client/docs/ConnectionAllOf.md index c951f046..9347b353 100644 --- a/airflow_client/docs/ConnectionAllOf.md +++ b/airflow_client/docs/ConnectionAllOf.md @@ -1,22 +1,3 @@ - - # ConnectionAllOf diff --git a/airflow_client/docs/ConnectionApi.md b/airflow_client/docs/ConnectionApi.md index ff94e9a6..0a54d929 100644 --- a/airflow_client/docs/ConnectionApi.md +++ b/airflow_client/docs/ConnectionApi.md @@ -1,22 +1,3 @@ - - # Apache Airflow Python Client.ConnectionApi All URIs are relative to *http://localhost/api/v1* @@ -38,7 +19,6 @@ Delete a connection ### Example -* Basic Authentication (Basic): ```python import time @@ -52,19 +32,9 @@ configuration = client.Configuration( host = "http://localhost/api/v1" ) -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = client.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) # Enter a context with an instance of the API client -with client.ApiClient(configuration) as api_client: +with client.ApiClient() as api_client: # Create an instance of the API class api_instance = connection_api.ConnectionApi(api_client) connection_id = "connection_id_example" # str | The connection ID. @@ -90,7 +60,7 @@ void (empty response body) ### Authorization -[Basic](../README.md#Basic), [Kerberos](../README.md#Kerberos) +No authorization required ### HTTP request headers @@ -117,7 +87,6 @@ Get a connection ### Example -* Basic Authentication (Basic): ```python import time @@ -132,19 +101,9 @@ configuration = client.Configuration( host = "http://localhost/api/v1" ) -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = client.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) # Enter a context with an instance of the API client -with client.ApiClient(configuration) as api_client: +with client.ApiClient() as api_client: # Create an instance of the API class api_instance = connection_api.ConnectionApi(api_client) connection_id = "connection_id_example" # str | The connection ID. @@ -171,7 +130,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic), [Kerberos](../README.md#Kerberos) +No authorization required ### HTTP request headers @@ -197,7 +156,6 @@ List connections ### Example -* Basic Authentication (Basic): ```python import time @@ -212,24 +170,14 @@ configuration = client.Configuration( host = "http://localhost/api/v1" ) -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = client.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) # Enter a context with an instance of the API client -with client.ApiClient(configuration) as api_client: +with client.ApiClient() as api_client: # Create an instance of the API class api_instance = connection_api.ConnectionApi(api_client) limit = 100 # int | The numbers of items to return. (optional) if omitted the server will use the default value of 100 offset = 0 # int | The number of items to skip before starting to collect the result set. (optional) - order_by = "order_by_example" # str | The name of the field to order the results by. Prefix a field name with `-` to reverse the sort order. (optional) + order_by = "order_by_example" # str | The name of the field to order the results by. Prefix a field name with `-` to reverse the sort order. *New in version 2.1.0* (optional) # example passing only required values which don't have defaults set # and optional values @@ -248,7 +196,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **limit** | **int**| The numbers of items to return. | [optional] if omitted the server will use the default value of 100 **offset** | **int**| The number of items to skip before starting to collect the result set. | [optional] - **order_by** | **str**| The name of the field to order the results by. Prefix a field name with `-` to reverse the sort order. | [optional] + **order_by** | **str**| The name of the field to order the results by. Prefix a field name with `-` to reverse the sort order. *New in version 2.1.0* | [optional] ### Return type @@ -256,7 +204,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic), [Kerberos](../README.md#Kerberos) +No authorization required ### HTTP request headers @@ -281,7 +229,6 @@ Update a connection ### Example -* Basic Authentication (Basic): ```python import time @@ -296,19 +243,9 @@ configuration = client.Configuration( host = "http://localhost/api/v1" ) -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = client.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) # Enter a context with an instance of the API client -with client.ApiClient(configuration) as api_client: +with client.ApiClient() as api_client: # Create an instance of the API class api_instance = connection_api.ConnectionApi(api_client) connection_id = "connection_id_example" # str | The connection ID. @@ -350,7 +287,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic), [Kerberos](../README.md#Kerberos) +No authorization required ### HTTP request headers @@ -377,7 +314,6 @@ Create a connection ### Example -* Basic Authentication (Basic): ```python import time @@ -392,19 +328,9 @@ configuration = client.Configuration( host = "http://localhost/api/v1" ) -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = client.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) # Enter a context with an instance of the API client -with client.ApiClient(configuration) as api_client: +with client.ApiClient() as api_client: # Create an instance of the API class api_instance = connection_api.ConnectionApi(api_client) connection = Connection(None) # Connection | @@ -431,7 +357,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic), [Kerberos](../README.md#Kerberos) +No authorization required ### HTTP request headers @@ -455,9 +381,10 @@ Name | Type | Description | Notes Test a connection +Test a connection. *New in version 2.2.0* + ### Example -* Basic Authentication (Basic): ```python import time @@ -473,19 +400,9 @@ configuration = client.Configuration( host = "http://localhost/api/v1" ) -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = client.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) # Enter a context with an instance of the API client -with client.ApiClient(configuration) as api_client: +with client.ApiClient() as api_client: # Create an instance of the API class api_instance = connection_api.ConnectionApi(api_client) connection = Connection(None) # Connection | @@ -512,7 +429,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic), [Kerberos](../README.md#Kerberos) +No authorization required ### HTTP request headers diff --git a/airflow_client/docs/ConnectionCollection.md b/airflow_client/docs/ConnectionCollection.md index 63532102..9f66e01b 100644 --- a/airflow_client/docs/ConnectionCollection.md +++ b/airflow_client/docs/ConnectionCollection.md @@ -1,25 +1,6 @@ - - # ConnectionCollection -Collection of connections. +Collection of connections. *Changed in version 2.1.0*: 'total_entries' field is added. ## Properties Name | Type | Description | Notes diff --git a/airflow_client/docs/ConnectionCollectionAllOf.md b/airflow_client/docs/ConnectionCollectionAllOf.md index 064566aa..cee6cfd6 100644 --- a/airflow_client/docs/ConnectionCollectionAllOf.md +++ b/airflow_client/docs/ConnectionCollectionAllOf.md @@ -1,22 +1,3 @@ - - # ConnectionCollectionAllOf diff --git a/airflow_client/docs/ConnectionCollectionItem.md b/airflow_client/docs/ConnectionCollectionItem.md index f6a18c1b..b6987e83 100644 --- a/airflow_client/docs/ConnectionCollectionItem.md +++ b/airflow_client/docs/ConnectionCollectionItem.md @@ -1,22 +1,3 @@ - - # ConnectionCollectionItem Connection collection item. The password and extra fields are only available when retrieving a single object due to the sensitivity of this data. diff --git a/airflow_client/docs/ConnectionTest.md b/airflow_client/docs/ConnectionTest.md index e5dcc785..ec434ec6 100644 --- a/airflow_client/docs/ConnectionTest.md +++ b/airflow_client/docs/ConnectionTest.md @@ -1,25 +1,6 @@ - - # ConnectionTest -Connection test results. +Connection test results. *New in version 2.2.0* ## Properties Name | Type | Description | Notes diff --git a/airflow_client/docs/CronExpression.md b/airflow_client/docs/CronExpression.md index 48a629d7..05f07fd8 100644 --- a/airflow_client/docs/CronExpression.md +++ b/airflow_client/docs/CronExpression.md @@ -1,22 +1,3 @@ - - # CronExpression Cron expression diff --git a/airflow_client/docs/DAG.md b/airflow_client/docs/DAG.md index d01bbed3..d5c3de38 100644 --- a/airflow_client/docs/DAG.md +++ b/airflow_client/docs/DAG.md @@ -1,22 +1,3 @@ - - # DAG DAG @@ -27,7 +8,7 @@ Name | Type | Description | Notes **dag_id** | **str** | The ID of the DAG. | [optional] [readonly] **root_dag_id** | **str, none_type** | If the DAG is SubDAG then it is the top level DAG identifier. Otherwise, null. | [optional] [readonly] **is_paused** | **bool, none_type** | Whether the DAG is paused. | [optional] -**is_active** | **bool, none_type** | Whether the DAG is currently seen by the scheduler(s). | [optional] [readonly] +**is_active** | **bool, none_type** | Whether the DAG is currently seen by the scheduler(s). *New in version 2.1.1* *Changed in version 2.2.0*: Field is read-only. | [optional] [readonly] **is_subdag** | **bool** | Whether the DAG is SubDAG. | [optional] [readonly] **fileloc** | **str** | The absolute path to the file. | [optional] [readonly] **file_token** | **str** | The key containing the encrypted path to the file. Encryption and decryption take place only on the server. This prevents the client from reading an non-DAG file. This also ensures API extensibility, because the format of encrypted data may change. | [optional] [readonly] diff --git a/airflow_client/docs/DAGApi.md b/airflow_client/docs/DAGApi.md index b3c2398d..13f53c77 100644 --- a/airflow_client/docs/DAGApi.md +++ b/airflow_client/docs/DAGApi.md @@ -1,22 +1,3 @@ - - # Apache Airflow Python Client.DAGApi All URIs are relative to *http://localhost/api/v1* @@ -40,11 +21,10 @@ Method | HTTP request | Description Delete a DAG -Deletes all metadata related to the DAG, including finished DAG Runs and Tasks. Logs are not deleted. This action cannot be undone. +Deletes all metadata related to the DAG, including finished DAG Runs and Tasks. Logs are not deleted. This action cannot be undone. *New in version 2.2.0* ### Example -* Basic Authentication (Basic): ```python import time @@ -58,19 +38,9 @@ configuration = client.Configuration( host = "http://localhost/api/v1" ) -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = client.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) # Enter a context with an instance of the API client -with client.ApiClient(configuration) as api_client: +with client.ApiClient() as api_client: # Create an instance of the API class api_instance = dag_api.DAGApi(api_client) dag_id = "dag_id_example" # str | The DAG ID. @@ -96,7 +66,7 @@ void (empty response body) ### Authorization -[Basic](../README.md#Basic), [Kerberos](../README.md#Kerberos) +No authorization required ### HTTP request headers @@ -126,7 +96,6 @@ Presents only information available in database (DAGModel). If you need detailed ### Example -* Basic Authentication (Basic): ```python import time @@ -141,19 +110,9 @@ configuration = client.Configuration( host = "http://localhost/api/v1" ) -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = client.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) # Enter a context with an instance of the API client -with client.ApiClient(configuration) as api_client: +with client.ApiClient() as api_client: # Create an instance of the API class api_instance = dag_api.DAGApi(api_client) dag_id = "dag_id_example" # str | The DAG ID. @@ -180,7 +139,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic), [Kerberos](../README.md#Kerberos) +No authorization required ### HTTP request headers @@ -208,7 +167,6 @@ The response contains many DAG attributes, so the response can be large. If poss ### Example -* Basic Authentication (Basic): ```python import time @@ -223,19 +181,9 @@ configuration = client.Configuration( host = "http://localhost/api/v1" ) -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = client.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) # Enter a context with an instance of the API client -with client.ApiClient(configuration) as api_client: +with client.ApiClient() as api_client: # Create an instance of the API class api_instance = dag_api.DAGApi(api_client) dag_id = "dag_id_example" # str | The DAG ID. @@ -262,7 +210,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic), [Kerberos](../README.md#Kerberos) +No authorization required ### HTTP request headers @@ -290,7 +238,6 @@ Get a source code using file token. ### Example -* Basic Authentication (Basic): ```python import time @@ -305,19 +252,9 @@ configuration = client.Configuration( host = "http://localhost/api/v1" ) -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = client.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) # Enter a context with an instance of the API client -with client.ApiClient(configuration) as api_client: +with client.ApiClient() as api_client: # Create an instance of the API class api_instance = dag_api.DAGApi(api_client) file_token = "file_token_example" # str | The key containing the encrypted path to the file. Encryption and decryption take place only on the server. This prevents the client from reading an non-DAG file. This also ensures API extensibility, because the format of encrypted data may change. @@ -344,7 +281,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic), [Kerberos](../README.md#Kerberos) +No authorization required ### HTTP request headers @@ -371,7 +308,6 @@ List DAGs ### Example -* Basic Authentication (Basic): ```python import time @@ -386,34 +322,25 @@ configuration = client.Configuration( host = "http://localhost/api/v1" ) -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = client.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) # Enter a context with an instance of the API client -with client.ApiClient(configuration) as api_client: +with client.ApiClient() as api_client: # Create an instance of the API class api_instance = dag_api.DAGApi(api_client) limit = 100 # int | The numbers of items to return. (optional) if omitted the server will use the default value of 100 offset = 0 # int | The number of items to skip before starting to collect the result set. (optional) - order_by = "order_by_example" # str | The name of the field to order the results by. Prefix a field name with `-` to reverse the sort order. (optional) + order_by = "order_by_example" # str | The name of the field to order the results by. Prefix a field name with `-` to reverse the sort order. *New in version 2.1.0* (optional) tags = [ "tags_example", - ] # [str] | List of tags to filter results (optional) - only_active = True # bool | Only return active DAGs. (optional) if omitted the server will use the default value of True + ] # [str] | List of tags to filter results. *New in version 2.2.0* (optional) + only_active = True # bool | Only return active DAGs. *New in version 2.1.1* (optional) if omitted the server will use the default value of True + dag_id_pattern = "dag_id_pattern_example" # str | If set, only return DAGs with dag_ids matching this pattern. *New in version 2.3.0* (optional) # example passing only required values which don't have defaults set # and optional values try: # List DAGs - api_response = api_instance.get_dags(limit=limit, offset=offset, order_by=order_by, tags=tags, only_active=only_active) + api_response = api_instance.get_dags(limit=limit, offset=offset, order_by=order_by, tags=tags, only_active=only_active, dag_id_pattern=dag_id_pattern) pprint(api_response) except client.ApiException as e: print("Exception when calling DAGApi->get_dags: %s\n" % e) @@ -426,9 +353,10 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **limit** | **int**| The numbers of items to return. | [optional] if omitted the server will use the default value of 100 **offset** | **int**| The number of items to skip before starting to collect the result set. | [optional] - **order_by** | **str**| The name of the field to order the results by. Prefix a field name with `-` to reverse the sort order. | [optional] - **tags** | **[str]**| List of tags to filter results | [optional] - **only_active** | **bool**| Only return active DAGs. | [optional] if omitted the server will use the default value of True + **order_by** | **str**| The name of the field to order the results by. Prefix a field name with `-` to reverse the sort order. *New in version 2.1.0* | [optional] + **tags** | **[str]**| List of tags to filter results. *New in version 2.2.0* | [optional] + **only_active** | **bool**| Only return active DAGs. *New in version 2.1.1* | [optional] if omitted the server will use the default value of True + **dag_id_pattern** | **str**| If set, only return DAGs with dag_ids matching this pattern. *New in version 2.3.0* | [optional] ### Return type @@ -436,7 +364,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic), [Kerberos](../README.md#Kerberos) +No authorization required ### HTTP request headers @@ -460,7 +388,6 @@ Get simplified representation of a task ### Example -* Basic Authentication (Basic): ```python import time @@ -475,19 +402,9 @@ configuration = client.Configuration( host = "http://localhost/api/v1" ) -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = client.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) # Enter a context with an instance of the API client -with client.ApiClient(configuration) as api_client: +with client.ApiClient() as api_client: # Create an instance of the API class api_instance = dag_api.DAGApi(api_client) dag_id = "dag_id_example" # str | The DAG ID. @@ -516,7 +433,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic), [Kerberos](../README.md#Kerberos) +No authorization required ### HTTP request headers @@ -542,7 +459,6 @@ Get tasks for DAG ### Example -* Basic Authentication (Basic): ```python import time @@ -557,23 +473,13 @@ configuration = client.Configuration( host = "http://localhost/api/v1" ) -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = client.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) # Enter a context with an instance of the API client -with client.ApiClient(configuration) as api_client: +with client.ApiClient() as api_client: # Create an instance of the API class api_instance = dag_api.DAGApi(api_client) dag_id = "dag_id_example" # str | The DAG ID. - order_by = "order_by_example" # str | The name of the field to order the results by. Prefix a field name with `-` to reverse the sort order. (optional) + order_by = "order_by_example" # str | The name of the field to order the results by. Prefix a field name with `-` to reverse the sort order. *New in version 2.1.0* (optional) # example passing only required values which don't have defaults set try: @@ -599,7 +505,7 @@ with client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **dag_id** | **str**| The DAG ID. | - **order_by** | **str**| The name of the field to order the results by. Prefix a field name with `-` to reverse the sort order. | [optional] + **order_by** | **str**| The name of the field to order the results by. Prefix a field name with `-` to reverse the sort order. *New in version 2.1.0* | [optional] ### Return type @@ -607,7 +513,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic), [Kerberos](../README.md#Kerberos) +No authorization required ### HTTP request headers @@ -633,7 +539,6 @@ Update a DAG ### Example -* Basic Authentication (Basic): ```python import time @@ -648,19 +553,9 @@ configuration = client.Configuration( host = "http://localhost/api/v1" ) -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = client.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) # Enter a context with an instance of the API client -with client.ApiClient(configuration) as api_client: +with client.ApiClient() as api_client: # Create an instance of the API class api_instance = dag_api.DAGApi(api_client) dag_id = "dag_id_example" # str | The DAG ID. @@ -704,7 +599,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic), [Kerberos](../README.md#Kerberos) +No authorization required ### HTTP request headers @@ -732,7 +627,6 @@ Clears a set of task instances associated with the DAG for a specified date rang ### Example -* Basic Authentication (Basic): ```python import time @@ -748,19 +642,9 @@ configuration = client.Configuration( host = "http://localhost/api/v1" ) -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = client.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) # Enter a context with an instance of the API client -with client.ApiClient(configuration) as api_client: +with client.ApiClient() as api_client: # Create an instance of the API class api_instance = dag_api.DAGApi(api_client) dag_id = "dag_id_example" # str | The DAG ID. @@ -801,7 +685,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic), [Kerberos](../README.md#Kerberos) +No authorization required ### HTTP request headers @@ -829,7 +713,6 @@ Updates the state for multiple task instances simultaneously. ### Example -* Basic Authentication (Basic): ```python import time @@ -845,19 +728,9 @@ configuration = client.Configuration( host = "http://localhost/api/v1" ) -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = client.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) # Enter a context with an instance of the API client -with client.ApiClient(configuration) as api_client: +with client.ApiClient() as api_client: # Create an instance of the API class api_instance = dag_api.DAGApi(api_client) dag_id = "dag_id_example" # str | The DAG ID. @@ -865,6 +738,7 @@ with client.ApiClient(configuration) as api_client: dry_run=True, task_id="task_id_example", execution_date="execution_date_example", + dag_run_id="dag_run_id_example", include_upstream=True, include_downstream=True, include_future=True, @@ -895,7 +769,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic), [Kerberos](../README.md#Kerberos) +No authorization required ### HTTP request headers diff --git a/airflow_client/docs/DAGCollection.md b/airflow_client/docs/DAGCollection.md index c5bea1ec..0bfc8f7f 100644 --- a/airflow_client/docs/DAGCollection.md +++ b/airflow_client/docs/DAGCollection.md @@ -1,25 +1,6 @@ - - # DAGCollection -Collection of DAGs. +Collection of DAGs. *Changed in version 2.1.0*: 'total_entries' field is added. ## Properties Name | Type | Description | Notes diff --git a/airflow_client/docs/DAGCollectionAllOf.md b/airflow_client/docs/DAGCollectionAllOf.md index a08e2e56..09a28e5a 100644 --- a/airflow_client/docs/DAGCollectionAllOf.md +++ b/airflow_client/docs/DAGCollectionAllOf.md @@ -1,22 +1,3 @@ - - # DAGCollectionAllOf diff --git a/airflow_client/docs/DAGDetail.md b/airflow_client/docs/DAGDetail.md index 17885ea8..494ad230 100644 --- a/airflow_client/docs/DAGDetail.md +++ b/airflow_client/docs/DAGDetail.md @@ -1,25 +1,6 @@ - - # DAGDetail -DAG details. For details see: (airflow.models.DAG)[https://airflow.apache.org/docs/apache-airflow/stable/_api/airflow/models/index.html#airflow.models.DAG] +DAG details. For details see: [airflow.models.DAG](https://airflow.apache.org/docs/apache-airflow/stable/_api/airflow/models/index.html#airflow.models.DAG) ## Properties Name | Type | Description | Notes @@ -27,7 +8,7 @@ Name | Type | Description | Notes **dag_id** | **str** | The ID of the DAG. | [optional] [readonly] **root_dag_id** | **str, none_type** | If the DAG is SubDAG then it is the top level DAG identifier. Otherwise, null. | [optional] [readonly] **is_paused** | **bool, none_type** | Whether the DAG is paused. | [optional] -**is_active** | **bool, none_type** | Whether the DAG is currently seen by the scheduler(s). | [optional] [readonly] +**is_active** | **bool, none_type** | Whether the DAG is currently seen by the scheduler(s). *New in version 2.1.1* *Changed in version 2.2.0*: Field is read-only. | [optional] [readonly] **is_subdag** | **bool** | Whether the DAG is SubDAG. | [optional] [readonly] **fileloc** | **str** | The absolute path to the file. | [optional] [readonly] **file_token** | **str** | The key containing the encrypted path to the file. Encryption and decryption take place only on the server. This prevents the client from reading an non-DAG file. This also ensures API extensibility, because the format of encrypted data may change. | [optional] [readonly] @@ -39,11 +20,11 @@ Name | Type | Description | Notes **catchup** | **bool** | | [optional] [readonly] **orientation** | **str** | | [optional] [readonly] **concurrency** | **float** | | [optional] [readonly] -**start_date** | **datetime, none_type** | | [optional] [readonly] -**dag_run_timeout** | [**TimeDelta**](TimeDelta.md) | | [optional] +**start_date** | **datetime, none_type** | The DAG's start date. *Changed in version 2.0.1*: Field becomes nullable. | [optional] [readonly] +**dag_run_timeout** | [**NullableTimeDelta**](NullableTimeDelta.md) | | [optional] **doc_md** | **str, none_type** | | [optional] [readonly] **default_view** | **str** | | [optional] [readonly] -**params** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | | [optional] [readonly] +**params** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | User-specified DAG params. *New in version 2.0.1* | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/airflow_client/docs/DAGDetailAllOf.md b/airflow_client/docs/DAGDetailAllOf.md index 740ea50a..4f4ddb9d 100644 --- a/airflow_client/docs/DAGDetailAllOf.md +++ b/airflow_client/docs/DAGDetailAllOf.md @@ -1,22 +1,3 @@ - - # DAGDetailAllOf @@ -27,11 +8,11 @@ Name | Type | Description | Notes **catchup** | **bool** | | [optional] [readonly] **orientation** | **str** | | [optional] [readonly] **concurrency** | **float** | | [optional] [readonly] -**start_date** | **datetime, none_type** | | [optional] [readonly] -**dag_run_timeout** | [**TimeDelta**](TimeDelta.md) | | [optional] +**start_date** | **datetime, none_type** | The DAG's start date. *Changed in version 2.0.1*: Field becomes nullable. | [optional] [readonly] +**dag_run_timeout** | [**NullableTimeDelta**](NullableTimeDelta.md) | | [optional] **doc_md** | **str, none_type** | | [optional] [readonly] **default_view** | **str** | | [optional] [readonly] -**params** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | | [optional] [readonly] +**params** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | User-specified DAG params. *New in version 2.0.1* | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/airflow_client/docs/DAGRun.md b/airflow_client/docs/DAGRun.md index fe071f12..2892911b 100644 --- a/airflow_client/docs/DAGRun.md +++ b/airflow_client/docs/DAGRun.md @@ -1,33 +1,14 @@ - - # DAGRun ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**dag_id** | **str** | | [readonly] **dag_run_id** | **str, none_type** | Run ID. The value of this field can be set only when creating the object. If you try to modify the field of an existing object, the request fails with an BAD_REQUEST error. If not provided, a value will be generated based on execution_date. If the specified dag_run_id is in use, the creation request fails with an ALREADY_EXISTS error. This together with DAG_ID are a unique key. | [optional] -**logical_date** | **datetime, none_type** | The logical date (previously called execution date). This is the time or interval covered by this DAG run, according to the DAG definition. The value of this field can be set only when creating the object. If you try to modify the field of an existing object, the request fails with an BAD_REQUEST error. This together with DAG_ID are a unique key. | [optional] -**execution_date** | **datetime, none_type** | The execution date. This is the same as logical_date, kept for backwards compatibility. If both this field and logical_date are provided but with different values, the request will fail with an BAD_REQUEST error. | [optional] -**start_date** | **datetime, none_type** | The start time. The time when DAG run was actually created. | [optional] [readonly] +**dag_id** | **str** | | [optional] [readonly] +**logical_date** | **datetime, none_type** | The logical date (previously called execution date). This is the time or interval covered by this DAG run, according to the DAG definition. The value of this field can be set only when creating the object. If you try to modify the field of an existing object, the request fails with an BAD_REQUEST error. This together with DAG_ID are a unique key. *New in version 2.2.0* | [optional] +**execution_date** | **datetime, none_type** | The execution date. This is the same as logical_date, kept for backwards compatibility. If both this field and logical_date are provided but with different values, the request will fail with an BAD_REQUEST error. *Changed in version 2.2.0*: Field becomes nullable. *Deprecated since version 2.2.0*: Use 'logical_date' instead. | [optional] +**start_date** | **datetime, none_type** | The start time. The time when DAG run was actually created. *Changed in version 2.1.3*: Field becomes nullable. | [optional] [readonly] **end_date** | **datetime, none_type** | | [optional] [readonly] **state** | [**DagState**](DagState.md) | | [optional] **external_trigger** | **bool** | | [optional] [readonly] if omitted the server will use the default value of True diff --git a/airflow_client/docs/DAGRunApi.md b/airflow_client/docs/DAGRunApi.md index 874ec446..a4897f18 100644 --- a/airflow_client/docs/DAGRunApi.md +++ b/airflow_client/docs/DAGRunApi.md @@ -1,22 +1,3 @@ - - # Apache Airflow Python Client.DAGRunApi All URIs are relative to *http://localhost/api/v1* @@ -38,7 +19,6 @@ Delete a DAG run ### Example -* Basic Authentication (Basic): ```python import time @@ -52,19 +32,9 @@ configuration = client.Configuration( host = "http://localhost/api/v1" ) -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = client.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) # Enter a context with an instance of the API client -with client.ApiClient(configuration) as api_client: +with client.ApiClient() as api_client: # Create an instance of the API class api_instance = dag_run_api.DAGRunApi(api_client) dag_id = "dag_id_example" # str | The DAG ID. @@ -92,7 +62,7 @@ void (empty response body) ### Authorization -[Basic](../README.md#Basic), [Kerberos](../README.md#Kerberos) +No authorization required ### HTTP request headers @@ -119,7 +89,6 @@ Get a DAG run ### Example -* Basic Authentication (Basic): ```python import time @@ -134,19 +103,9 @@ configuration = client.Configuration( host = "http://localhost/api/v1" ) -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = client.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) # Enter a context with an instance of the API client -with client.ApiClient(configuration) as api_client: +with client.ApiClient() as api_client: # Create an instance of the API class api_instance = dag_run_api.DAGRunApi(api_client) dag_id = "dag_id_example" # str | The DAG ID. @@ -175,7 +134,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic), [Kerberos](../README.md#Kerberos) +No authorization required ### HTTP request headers @@ -203,7 +162,6 @@ This endpoint allows specifying `~` as the dag_id to retrieve DAG runs for all D ### Example -* Basic Authentication (Basic): ```python import time @@ -218,19 +176,9 @@ configuration = client.Configuration( host = "http://localhost/api/v1" ) -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = client.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) # Enter a context with an instance of the API client -with client.ApiClient(configuration) as api_client: +with client.ApiClient() as api_client: # Create an instance of the API class api_instance = dag_run_api.DAGRunApi(api_client) dag_id = "dag_id_example" # str | The DAG ID. @@ -242,7 +190,10 @@ with client.ApiClient(configuration) as api_client: start_date_lte = dateutil_parser('1970-01-01T00:00:00.00Z') # datetime | Returns objects less or equal the specified date. This can be combined with start_date_gte parameter to receive only the selected period. (optional) end_date_gte = dateutil_parser('1970-01-01T00:00:00.00Z') # datetime | Returns objects greater or equal the specified date. This can be combined with start_date_lte parameter to receive only the selected period. (optional) end_date_lte = dateutil_parser('1970-01-01T00:00:00.00Z') # datetime | Returns objects less than or equal to the specified date. This can be combined with start_date_gte parameter to receive only the selected period. (optional) - order_by = "order_by_example" # str | The name of the field to order the results by. Prefix a field name with `-` to reverse the sort order. (optional) + state = [ + "state_example", + ] # [str] | The value can be repeated to retrieve multiple matching values (OR condition). (optional) + order_by = "order_by_example" # str | The name of the field to order the results by. Prefix a field name with `-` to reverse the sort order. *New in version 2.1.0* (optional) # example passing only required values which don't have defaults set try: @@ -256,7 +207,7 @@ with client.ApiClient(configuration) as api_client: # and optional values try: # List DAG runs - api_response = api_instance.get_dag_runs(dag_id, limit=limit, offset=offset, execution_date_gte=execution_date_gte, execution_date_lte=execution_date_lte, start_date_gte=start_date_gte, start_date_lte=start_date_lte, end_date_gte=end_date_gte, end_date_lte=end_date_lte, order_by=order_by) + api_response = api_instance.get_dag_runs(dag_id, limit=limit, offset=offset, execution_date_gte=execution_date_gte, execution_date_lte=execution_date_lte, start_date_gte=start_date_gte, start_date_lte=start_date_lte, end_date_gte=end_date_gte, end_date_lte=end_date_lte, state=state, order_by=order_by) pprint(api_response) except client.ApiException as e: print("Exception when calling DAGRunApi->get_dag_runs: %s\n" % e) @@ -276,7 +227,8 @@ Name | Type | Description | Notes **start_date_lte** | **datetime**| Returns objects less or equal the specified date. This can be combined with start_date_gte parameter to receive only the selected period. | [optional] **end_date_gte** | **datetime**| Returns objects greater or equal the specified date. This can be combined with start_date_lte parameter to receive only the selected period. | [optional] **end_date_lte** | **datetime**| Returns objects less than or equal to the specified date. This can be combined with start_date_gte parameter to receive only the selected period. | [optional] - **order_by** | **str**| The name of the field to order the results by. Prefix a field name with `-` to reverse the sort order. | [optional] + **state** | **[str]**| The value can be repeated to retrieve multiple matching values (OR condition). | [optional] + **order_by** | **str**| The name of the field to order the results by. Prefix a field name with `-` to reverse the sort order. *New in version 2.1.0* | [optional] ### Return type @@ -284,7 +236,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic), [Kerberos](../README.md#Kerberos) +No authorization required ### HTTP request headers @@ -310,7 +262,6 @@ This endpoint is a POST to allow filtering across a large number of DAG IDs, whe ### Example -* Basic Authentication (Basic): ```python import time @@ -326,19 +277,9 @@ configuration = client.Configuration( host = "http://localhost/api/v1" ) -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = client.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) # Enter a context with an instance of the API client -with client.ApiClient(configuration) as api_client: +with client.ApiClient() as api_client: # Create an instance of the API class api_instance = dag_run_api.DAGRunApi(api_client) list_dag_runs_form = ListDagRunsForm( @@ -348,6 +289,9 @@ with client.ApiClient(configuration) as api_client: dag_ids=[ "dag_ids_example", ], + states=[ + "states_example", + ], execution_date_gte=dateutil_parser('1970-01-01T00:00:00.00Z'), execution_date_lte=dateutil_parser('1970-01-01T00:00:00.00Z'), start_date_gte=dateutil_parser('1970-01-01T00:00:00.00Z'), @@ -378,7 +322,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic), [Kerberos](../README.md#Kerberos) +No authorization required ### HTTP request headers @@ -404,7 +348,6 @@ Trigger a new DAG run ### Example -* Basic Authentication (Basic): ```python import time @@ -419,19 +362,9 @@ configuration = client.Configuration( host = "http://localhost/api/v1" ) -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = client.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) # Enter a context with an instance of the API client -with client.ApiClient(configuration) as api_client: +with client.ApiClient() as api_client: # Create an instance of the API class api_instance = dag_run_api.DAGRunApi(api_client) dag_id = "dag_id_example" # str | The DAG ID. @@ -466,7 +399,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic), [Kerberos](../README.md#Kerberos) +No authorization required ### HTTP request headers @@ -492,11 +425,10 @@ Name | Type | Description | Notes Modify a DAG run -Modify a DAG run +Modify a DAG run. *New in version 2.2.0* ### Example -* Basic Authentication (Basic): ```python import time @@ -512,19 +444,9 @@ configuration = client.Configuration( host = "http://localhost/api/v1" ) -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = client.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) # Enter a context with an instance of the API client -with client.ApiClient(configuration) as api_client: +with client.ApiClient() as api_client: # Create an instance of the API class api_instance = dag_run_api.DAGRunApi(api_client) dag_id = "dag_id_example" # str | The DAG ID. @@ -557,7 +479,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic), [Kerberos](../README.md#Kerberos) +No authorization required ### HTTP request headers diff --git a/airflow_client/docs/DAGRunCollection.md b/airflow_client/docs/DAGRunCollection.md index 7a787cab..09ac89fb 100644 --- a/airflow_client/docs/DAGRunCollection.md +++ b/airflow_client/docs/DAGRunCollection.md @@ -1,25 +1,6 @@ - - # DAGRunCollection -Collection of DAG runs. +Collection of DAG runs. *Changed in version 2.1.0*: 'total_entries' field is added. ## Properties Name | Type | Description | Notes diff --git a/airflow_client/docs/DAGRunCollectionAllOf.md b/airflow_client/docs/DAGRunCollectionAllOf.md index 5a1e199a..8d366836 100644 --- a/airflow_client/docs/DAGRunCollectionAllOf.md +++ b/airflow_client/docs/DAGRunCollectionAllOf.md @@ -1,22 +1,3 @@ - - # DAGRunCollectionAllOf diff --git a/airflow_client/docs/DagState.md b/airflow_client/docs/DagState.md index 143bf2d1..eb1eff4d 100644 --- a/airflow_client/docs/DagState.md +++ b/airflow_client/docs/DagState.md @@ -1,30 +1,11 @@ - - # DagState -DAG State. +DAG State. *Changed in version 2.1.3*: 'queued' is added as a possible value. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**value** | **str** | DAG State. | must be one of ["queued", "running", "success", "failed", ] +**value** | **str** | DAG State. *Changed in version 2.1.3*: 'queued' is added as a possible value. | must be one of ["queued", "running", "success", "failed", ] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/airflow_client/docs/Error.md b/airflow_client/docs/Error.md index 2f76591c..c8cbeec2 100644 --- a/airflow_client/docs/Error.md +++ b/airflow_client/docs/Error.md @@ -1,22 +1,3 @@ - - # Error [RFC7807](https://tools.ietf.org/html/rfc7807) compliant response. diff --git a/airflow_client/docs/EventLog.md b/airflow_client/docs/EventLog.md index c0d4e458..1e5de708 100644 --- a/airflow_client/docs/EventLog.md +++ b/airflow_client/docs/EventLog.md @@ -1,22 +1,3 @@ - - # EventLog Log of user operations via CLI or Web UI. diff --git a/airflow_client/docs/EventLogApi.md b/airflow_client/docs/EventLogApi.md index c1d63f98..ff65bf5c 100644 --- a/airflow_client/docs/EventLogApi.md +++ b/airflow_client/docs/EventLogApi.md @@ -1,22 +1,3 @@ - - # Apache Airflow Python Client.EventLogApi All URIs are relative to *http://localhost/api/v1* @@ -34,7 +15,6 @@ Get a log entry ### Example -* Basic Authentication (Basic): ```python import time @@ -49,19 +29,9 @@ configuration = client.Configuration( host = "http://localhost/api/v1" ) -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = client.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) # Enter a context with an instance of the API client -with client.ApiClient(configuration) as api_client: +with client.ApiClient() as api_client: # Create an instance of the API class api_instance = event_log_api.EventLogApi(api_client) event_log_id = 1 # int | The event log ID. @@ -88,7 +58,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic), [Kerberos](../README.md#Kerberos) +No authorization required ### HTTP request headers @@ -116,7 +86,6 @@ List log entries from event log. ### Example -* Basic Authentication (Basic): ```python import time @@ -131,24 +100,14 @@ configuration = client.Configuration( host = "http://localhost/api/v1" ) -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = client.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) # Enter a context with an instance of the API client -with client.ApiClient(configuration) as api_client: +with client.ApiClient() as api_client: # Create an instance of the API class api_instance = event_log_api.EventLogApi(api_client) limit = 100 # int | The numbers of items to return. (optional) if omitted the server will use the default value of 100 offset = 0 # int | The number of items to skip before starting to collect the result set. (optional) - order_by = "order_by_example" # str | The name of the field to order the results by. Prefix a field name with `-` to reverse the sort order. (optional) + order_by = "order_by_example" # str | The name of the field to order the results by. Prefix a field name with `-` to reverse the sort order. *New in version 2.1.0* (optional) # example passing only required values which don't have defaults set # and optional values @@ -167,7 +126,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **limit** | **int**| The numbers of items to return. | [optional] if omitted the server will use the default value of 100 **offset** | **int**| The number of items to skip before starting to collect the result set. | [optional] - **order_by** | **str**| The name of the field to order the results by. Prefix a field name with `-` to reverse the sort order. | [optional] + **order_by** | **str**| The name of the field to order the results by. Prefix a field name with `-` to reverse the sort order. *New in version 2.1.0* | [optional] ### Return type @@ -175,7 +134,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic), [Kerberos](../README.md#Kerberos) +No authorization required ### HTTP request headers diff --git a/airflow_client/docs/EventLogCollection.md b/airflow_client/docs/EventLogCollection.md index 5720bee2..877515e1 100644 --- a/airflow_client/docs/EventLogCollection.md +++ b/airflow_client/docs/EventLogCollection.md @@ -1,25 +1,6 @@ - - # EventLogCollection -Collection of event logs. +Collection of event logs. *Changed in version 2.1.0*: 'total_entries' field is added. ## Properties Name | Type | Description | Notes diff --git a/airflow_client/docs/EventLogCollectionAllOf.md b/airflow_client/docs/EventLogCollectionAllOf.md index 914f2e01..238a8966 100644 --- a/airflow_client/docs/EventLogCollectionAllOf.md +++ b/airflow_client/docs/EventLogCollectionAllOf.md @@ -1,22 +1,3 @@ - - # EventLogCollectionAllOf diff --git a/airflow_client/docs/ExtraLink.md b/airflow_client/docs/ExtraLink.md index 3e39ae97..152543dd 100644 --- a/airflow_client/docs/ExtraLink.md +++ b/airflow_client/docs/ExtraLink.md @@ -1,22 +1,3 @@ - - # ExtraLink Additional links containing additional information about the task. diff --git a/airflow_client/docs/ExtraLinkCollection.md b/airflow_client/docs/ExtraLinkCollection.md index 01466425..b50445f4 100644 --- a/airflow_client/docs/ExtraLinkCollection.md +++ b/airflow_client/docs/ExtraLinkCollection.md @@ -1,22 +1,3 @@ - - # ExtraLinkCollection The collection of extra links. diff --git a/airflow_client/docs/HealthInfo.md b/airflow_client/docs/HealthInfo.md index 3219ca7d..37fe5643 100644 --- a/airflow_client/docs/HealthInfo.md +++ b/airflow_client/docs/HealthInfo.md @@ -1,22 +1,3 @@ - - # HealthInfo Instance status information. diff --git a/airflow_client/docs/HealthStatus.md b/airflow_client/docs/HealthStatus.md index c535b819..fe1b6aea 100644 --- a/airflow_client/docs/HealthStatus.md +++ b/airflow_client/docs/HealthStatus.md @@ -1,22 +1,3 @@ - - # HealthStatus Health status diff --git a/airflow_client/docs/ImportError.md b/airflow_client/docs/ImportError.md index 6b494c3f..b93fcf19 100644 --- a/airflow_client/docs/ImportError.md +++ b/airflow_client/docs/ImportError.md @@ -1,22 +1,3 @@ - - # ImportError diff --git a/airflow_client/docs/ImportErrorApi.md b/airflow_client/docs/ImportErrorApi.md index 79efb0fd..738361fa 100644 --- a/airflow_client/docs/ImportErrorApi.md +++ b/airflow_client/docs/ImportErrorApi.md @@ -1,22 +1,3 @@ - - # Apache Airflow Python Client.ImportErrorApi All URIs are relative to *http://localhost/api/v1* @@ -34,7 +15,6 @@ Get an import error ### Example -* Basic Authentication (Basic): ```python import time @@ -49,19 +29,9 @@ configuration = client.Configuration( host = "http://localhost/api/v1" ) -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = client.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) # Enter a context with an instance of the API client -with client.ApiClient(configuration) as api_client: +with client.ApiClient() as api_client: # Create an instance of the API class api_instance = import_error_api.ImportErrorApi(api_client) import_error_id = 1 # int | The import error ID. @@ -88,7 +58,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic), [Kerberos](../README.md#Kerberos) +No authorization required ### HTTP request headers @@ -114,7 +84,6 @@ List import errors ### Example -* Basic Authentication (Basic): ```python import time @@ -129,24 +98,14 @@ configuration = client.Configuration( host = "http://localhost/api/v1" ) -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = client.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) # Enter a context with an instance of the API client -with client.ApiClient(configuration) as api_client: +with client.ApiClient() as api_client: # Create an instance of the API class api_instance = import_error_api.ImportErrorApi(api_client) limit = 100 # int | The numbers of items to return. (optional) if omitted the server will use the default value of 100 offset = 0 # int | The number of items to skip before starting to collect the result set. (optional) - order_by = "order_by_example" # str | The name of the field to order the results by. Prefix a field name with `-` to reverse the sort order. (optional) + order_by = "order_by_example" # str | The name of the field to order the results by. Prefix a field name with `-` to reverse the sort order. *New in version 2.1.0* (optional) # example passing only required values which don't have defaults set # and optional values @@ -165,7 +124,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **limit** | **int**| The numbers of items to return. | [optional] if omitted the server will use the default value of 100 **offset** | **int**| The number of items to skip before starting to collect the result set. | [optional] - **order_by** | **str**| The name of the field to order the results by. Prefix a field name with `-` to reverse the sort order. | [optional] + **order_by** | **str**| The name of the field to order the results by. Prefix a field name with `-` to reverse the sort order. *New in version 2.1.0* | [optional] ### Return type @@ -173,7 +132,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic), [Kerberos](../README.md#Kerberos) +No authorization required ### HTTP request headers diff --git a/airflow_client/docs/ImportErrorCollection.md b/airflow_client/docs/ImportErrorCollection.md index 6d79ea2e..81ff3ea4 100644 --- a/airflow_client/docs/ImportErrorCollection.md +++ b/airflow_client/docs/ImportErrorCollection.md @@ -1,25 +1,6 @@ - - # ImportErrorCollection -Collection of import errors. +Collection of import errors. *Changed in version 2.1.0*: 'total_entries' field is added. ## Properties Name | Type | Description | Notes diff --git a/airflow_client/docs/ImportErrorCollectionAllOf.md b/airflow_client/docs/ImportErrorCollectionAllOf.md index e5d1b964..a41a803c 100644 --- a/airflow_client/docs/ImportErrorCollectionAllOf.md +++ b/airflow_client/docs/ImportErrorCollectionAllOf.md @@ -1,22 +1,3 @@ - - # ImportErrorCollectionAllOf diff --git a/airflow_client/docs/InlineResponse200.md b/airflow_client/docs/InlineResponse200.md index 3f2cb83c..2b6918b1 100644 --- a/airflow_client/docs/InlineResponse200.md +++ b/airflow_client/docs/InlineResponse200.md @@ -1,22 +1,3 @@ - - # InlineResponse200 diff --git a/airflow_client/docs/InlineResponse2001.md b/airflow_client/docs/InlineResponse2001.md index a89ce2d3..69dda110 100644 --- a/airflow_client/docs/InlineResponse2001.md +++ b/airflow_client/docs/InlineResponse2001.md @@ -1,22 +1,3 @@ - - # InlineResponse2001 diff --git a/airflow_client/docs/ListDagRunsForm.md b/airflow_client/docs/ListDagRunsForm.md index 756570f8..653c7c2c 100644 --- a/airflow_client/docs/ListDagRunsForm.md +++ b/airflow_client/docs/ListDagRunsForm.md @@ -1,32 +1,14 @@ - - # ListDagRunsForm ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**order_by** | **str** | The name of the field to order the results by. Prefix a field name with `-` to reverse the sort order. | [optional] +**order_by** | **str** | The name of the field to order the results by. Prefix a field name with `-` to reverse the sort order. *New in version 2.1.0* | [optional] **page_offset** | **int** | The number of items to skip before starting to collect the result set. | [optional] **page_limit** | **int** | The numbers of items to return. | [optional] if omitted the server will use the default value of 100 **dag_ids** | **[str]** | Return objects with specific DAG IDs. The value can be repeated to retrieve multiple matching values (OR condition). | [optional] +**states** | **[str]** | Return objects with specific states. The value can be repeated to retrieve multiple matching values (OR condition). | [optional] **execution_date_gte** | **datetime** | Returns objects greater or equal to the specified date. This can be combined with execution_date_lte key to receive only the selected period. | [optional] **execution_date_lte** | **datetime** | Returns objects less than or equal to the specified date. This can be combined with execution_date_gte key to receive only the selected period. | [optional] **start_date_gte** | **datetime** | Returns objects greater or equal the specified date. This can be combined with start_date_lte key to receive only the selected period. | [optional] diff --git a/airflow_client/docs/ListTaskInstanceForm.md b/airflow_client/docs/ListTaskInstanceForm.md index d302c9bd..f860f0fe 100644 --- a/airflow_client/docs/ListTaskInstanceForm.md +++ b/airflow_client/docs/ListTaskInstanceForm.md @@ -1,22 +1,3 @@ - - # ListTaskInstanceForm @@ -32,7 +13,7 @@ Name | Type | Description | Notes **end_date_lte** | **datetime** | Returns objects less than or equal to the specified date. This can be combined with start_date_gte parameter to receive only the selected period. | [optional] **duration_gte** | **float** | Returns objects greater than or equal to the specified values. This can be combined with duration_lte parameter to receive only the selected period. | [optional] **duration_lte** | **float** | Returns objects less than or equal to the specified values. This can be combined with duration_gte parameter to receive only the selected range. | [optional] -**state** | **[str]** | The value can be repeated to retrieve multiple matching values (OR condition). | [optional] +**state** | [**[TaskState]**](TaskState.md) | The value can be repeated to retrieve multiple matching values (OR condition). | [optional] **pool** | **[str]** | The value can be repeated to retrieve multiple matching values (OR condition). | [optional] **queue** | **[str]** | The value can be repeated to retrieve multiple matching values (OR condition). | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/airflow_client/docs/MetadatabaseStatus.md b/airflow_client/docs/MetadatabaseStatus.md index 48a74a8e..c9db3551 100644 --- a/airflow_client/docs/MetadatabaseStatus.md +++ b/airflow_client/docs/MetadatabaseStatus.md @@ -1,22 +1,3 @@ - - # MetadatabaseStatus The status of the metadatabase. diff --git a/airflow_client/docs/MonitoringApi.md b/airflow_client/docs/MonitoringApi.md index ef3166d1..ead33848 100644 --- a/airflow_client/docs/MonitoringApi.md +++ b/airflow_client/docs/MonitoringApi.md @@ -1,22 +1,3 @@ - - # Apache Airflow Python Client.MonitoringApi All URIs are relative to *http://localhost/api/v1* @@ -36,7 +17,6 @@ Get the status of Airflow's metadatabase and scheduler. It includes info about m ### Example -* Basic Authentication (Basic): ```python import time @@ -50,19 +30,9 @@ configuration = client.Configuration( host = "http://localhost/api/v1" ) -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = client.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) # Enter a context with an instance of the API client -with client.ApiClient(configuration) as api_client: +with client.ApiClient() as api_client: # Create an instance of the API class api_instance = monitoring_api.MonitoringApi(api_client) @@ -85,7 +55,7 @@ This endpoint does not need any parameter. ### Authorization -[Basic](../README.md#Basic), [Kerberos](../README.md#Kerberos) +No authorization required ### HTTP request headers @@ -108,7 +78,6 @@ Get version information ### Example -* Basic Authentication (Basic): ```python import time @@ -122,19 +91,9 @@ configuration = client.Configuration( host = "http://localhost/api/v1" ) -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = client.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) # Enter a context with an instance of the API client -with client.ApiClient(configuration) as api_client: +with client.ApiClient() as api_client: # Create an instance of the API class api_instance = monitoring_api.MonitoringApi(api_client) @@ -157,7 +116,7 @@ This endpoint does not need any parameter. ### Authorization -[Basic](../README.md#Basic), [Kerberos](../README.md#Kerberos) +No authorization required ### HTTP request headers diff --git a/airflow_client/docs/NullableSLAMiss.md b/airflow_client/docs/NullableSLAMiss.md new file mode 100644 index 00000000..8cff0d81 --- /dev/null +++ b/airflow_client/docs/NullableSLAMiss.md @@ -0,0 +1,18 @@ +# NullableSLAMiss + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**task_id** | **str** | The task ID. | [optional] [readonly] +**dag_id** | **str** | The DAG ID. | [optional] +**execution_date** | **str** | | [optional] +**email_sent** | **bool** | | [optional] +**timestamp** | **str** | | [optional] +**description** | **str, none_type** | | [optional] +**notification_sent** | **bool** | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/airflow_client/docs/NullableTaskState.md b/airflow_client/docs/NullableTaskState.md new file mode 100644 index 00000000..07dedab2 --- /dev/null +++ b/airflow_client/docs/NullableTaskState.md @@ -0,0 +1,11 @@ +# NullableTaskState + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/airflow_client/docs/NullableTimeDelta.md b/airflow_client/docs/NullableTimeDelta.md new file mode 100644 index 00000000..8599832c --- /dev/null +++ b/airflow_client/docs/NullableTimeDelta.md @@ -0,0 +1,16 @@ +# NullableTimeDelta + +nullable timeDelta. marks a timeDelta object to be nullable. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | | [optional] +**days** | **int** | | [optional] +**seconds** | **int** | | [optional] +**microseconds** | **int** | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/airflow_client/docs/PermissionApi.md b/airflow_client/docs/PermissionApi.md index 15091593..901ad175 100644 --- a/airflow_client/docs/PermissionApi.md +++ b/airflow_client/docs/PermissionApi.md @@ -1,22 +1,3 @@ - - # Apache Airflow Python Client.PermissionApi All URIs are relative to *http://localhost/api/v1* @@ -31,9 +12,10 @@ Method | HTTP request | Description List permissions +Get a list of permissions. *New in version 2.1.0* + ### Example -* Basic Authentication (Basic): ```python import time @@ -48,19 +30,9 @@ configuration = client.Configuration( host = "http://localhost/api/v1" ) -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = client.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) # Enter a context with an instance of the API client -with client.ApiClient(configuration) as api_client: +with client.ApiClient() as api_client: # Create an instance of the API class api_instance = permission_api.PermissionApi(api_client) limit = 100 # int | The numbers of items to return. (optional) if omitted the server will use the default value of 100 @@ -90,7 +62,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic), [Kerberos](../README.md#Kerberos) +No authorization required ### HTTP request headers diff --git a/airflow_client/docs/PluginApi.md b/airflow_client/docs/PluginApi.md index 0562f883..fc6538da 100644 --- a/airflow_client/docs/PluginApi.md +++ b/airflow_client/docs/PluginApi.md @@ -1,22 +1,3 @@ - - # Apache Airflow Python Client.PluginApi All URIs are relative to *http://localhost/api/v1* @@ -31,9 +12,10 @@ Method | HTTP request | Description Get a list of loaded plugins +Get a list of loaded plugins. *New in version 2.1.0* + ### Example -* Basic Authentication (Basic): ```python import time @@ -48,19 +30,9 @@ configuration = client.Configuration( host = "http://localhost/api/v1" ) -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = client.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) # Enter a context with an instance of the API client -with client.ApiClient(configuration) as api_client: +with client.ApiClient() as api_client: # Create an instance of the API class api_instance = plugin_api.PluginApi(api_client) limit = 100 # int | The numbers of items to return. (optional) if omitted the server will use the default value of 100 @@ -90,7 +62,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic), [Kerberos](../README.md#Kerberos) +No authorization required ### HTTP request headers diff --git a/airflow_client/docs/PluginCollection.md b/airflow_client/docs/PluginCollection.md index 962cff9c..5c091d8f 100644 --- a/airflow_client/docs/PluginCollection.md +++ b/airflow_client/docs/PluginCollection.md @@ -1,25 +1,6 @@ - - # PluginCollection -Plugin Collection +A collection of plugin. *New in version 2.1.0* ## Properties Name | Type | Description | Notes diff --git a/airflow_client/docs/PluginCollectionAllOf.md b/airflow_client/docs/PluginCollectionAllOf.md index 3fad4a8b..d7a1502e 100644 --- a/airflow_client/docs/PluginCollectionAllOf.md +++ b/airflow_client/docs/PluginCollectionAllOf.md @@ -1,22 +1,3 @@ - - # PluginCollectionAllOf diff --git a/airflow_client/docs/PluginCollectionItem.md b/airflow_client/docs/PluginCollectionItem.md index 27ea7c81..732d149c 100644 --- a/airflow_client/docs/PluginCollectionItem.md +++ b/airflow_client/docs/PluginCollectionItem.md @@ -1,25 +1,6 @@ - - # PluginCollectionItem -Plugin Item +A plugin Item. *New in version 2.1.0* ## Properties Name | Type | Description | Notes diff --git a/airflow_client/docs/Pool.md b/airflow_client/docs/Pool.md index ea4644e9..46c3f2eb 100644 --- a/airflow_client/docs/Pool.md +++ b/airflow_client/docs/Pool.md @@ -1,22 +1,3 @@ - - # Pool The pool @@ -30,6 +11,7 @@ Name | Type | Description | Notes **used_slots** | **int** | The number of slots used by running tasks at the moment. | [optional] [readonly] **queued_slots** | **int** | The number of slots used by queued tasks at the moment. | [optional] [readonly] **open_slots** | **int** | The number of free slots at the moment. | [optional] [readonly] +**description** | **str, none_type** | The description of the pool. *New in version 2.3.0* | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/airflow_client/docs/PoolApi.md b/airflow_client/docs/PoolApi.md index ae9ab5ac..396ec8ba 100644 --- a/airflow_client/docs/PoolApi.md +++ b/airflow_client/docs/PoolApi.md @@ -1,22 +1,3 @@ - - # Apache Airflow Python Client.PoolApi All URIs are relative to *http://localhost/api/v1* @@ -37,7 +18,6 @@ Delete a pool ### Example -* Basic Authentication (Basic): ```python import time @@ -51,19 +31,9 @@ configuration = client.Configuration( host = "http://localhost/api/v1" ) -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = client.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) # Enter a context with an instance of the API client -with client.ApiClient(configuration) as api_client: +with client.ApiClient() as api_client: # Create an instance of the API class api_instance = pool_api.PoolApi(api_client) pool_name = "pool_name_example" # str | The pool name. @@ -89,7 +59,7 @@ void (empty response body) ### Authorization -[Basic](../README.md#Basic), [Kerberos](../README.md#Kerberos) +No authorization required ### HTTP request headers @@ -116,7 +86,6 @@ Get a pool ### Example -* Basic Authentication (Basic): ```python import time @@ -131,19 +100,9 @@ configuration = client.Configuration( host = "http://localhost/api/v1" ) -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = client.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) # Enter a context with an instance of the API client -with client.ApiClient(configuration) as api_client: +with client.ApiClient() as api_client: # Create an instance of the API class api_instance = pool_api.PoolApi(api_client) pool_name = "pool_name_example" # str | The pool name. @@ -170,7 +129,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic), [Kerberos](../README.md#Kerberos) +No authorization required ### HTTP request headers @@ -196,7 +155,6 @@ List pools ### Example -* Basic Authentication (Basic): ```python import time @@ -211,24 +169,14 @@ configuration = client.Configuration( host = "http://localhost/api/v1" ) -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = client.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) # Enter a context with an instance of the API client -with client.ApiClient(configuration) as api_client: +with client.ApiClient() as api_client: # Create an instance of the API class api_instance = pool_api.PoolApi(api_client) limit = 100 # int | The numbers of items to return. (optional) if omitted the server will use the default value of 100 offset = 0 # int | The number of items to skip before starting to collect the result set. (optional) - order_by = "order_by_example" # str | The name of the field to order the results by. Prefix a field name with `-` to reverse the sort order. (optional) + order_by = "order_by_example" # str | The name of the field to order the results by. Prefix a field name with `-` to reverse the sort order. *New in version 2.1.0* (optional) # example passing only required values which don't have defaults set # and optional values @@ -247,7 +195,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **limit** | **int**| The numbers of items to return. | [optional] if omitted the server will use the default value of 100 **offset** | **int**| The number of items to skip before starting to collect the result set. | [optional] - **order_by** | **str**| The name of the field to order the results by. Prefix a field name with `-` to reverse the sort order. | [optional] + **order_by** | **str**| The name of the field to order the results by. Prefix a field name with `-` to reverse the sort order. *New in version 2.1.0* | [optional] ### Return type @@ -255,7 +203,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic), [Kerberos](../README.md#Kerberos) +No authorization required ### HTTP request headers @@ -280,7 +228,6 @@ Update a pool ### Example -* Basic Authentication (Basic): ```python import time @@ -295,25 +242,16 @@ configuration = client.Configuration( host = "http://localhost/api/v1" ) -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = client.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) # Enter a context with an instance of the API client -with client.ApiClient(configuration) as api_client: +with client.ApiClient() as api_client: # Create an instance of the API class api_instance = pool_api.PoolApi(api_client) pool_name = "pool_name_example" # str | The pool name. pool = Pool( name="name_example", slots=1, + description="description_example", ) # Pool | update_mask = [ "update_mask_example", @@ -352,7 +290,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic), [Kerberos](../README.md#Kerberos) +No authorization required ### HTTP request headers @@ -380,7 +318,6 @@ Create a pool ### Example -* Basic Authentication (Basic): ```python import time @@ -395,24 +332,15 @@ configuration = client.Configuration( host = "http://localhost/api/v1" ) -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = client.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) # Enter a context with an instance of the API client -with client.ApiClient(configuration) as api_client: +with client.ApiClient() as api_client: # Create an instance of the API class api_instance = pool_api.PoolApi(api_client) pool = Pool( name="name_example", slots=1, + description="description_example", ) # Pool | # example passing only required values which don't have defaults set @@ -437,7 +365,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic), [Kerberos](../README.md#Kerberos) +No authorization required ### HTTP request headers diff --git a/airflow_client/docs/PoolCollection.md b/airflow_client/docs/PoolCollection.md index c10d25f3..10c5d7ad 100644 --- a/airflow_client/docs/PoolCollection.md +++ b/airflow_client/docs/PoolCollection.md @@ -1,25 +1,6 @@ - - # PoolCollection -Collection of pools. +Collection of pools. *Changed in version 2.1.0*: 'total_entries' field is added. ## Properties Name | Type | Description | Notes diff --git a/airflow_client/docs/PoolCollectionAllOf.md b/airflow_client/docs/PoolCollectionAllOf.md index b13a34b8..45c55832 100644 --- a/airflow_client/docs/PoolCollectionAllOf.md +++ b/airflow_client/docs/PoolCollectionAllOf.md @@ -1,22 +1,3 @@ - - # PoolCollectionAllOf diff --git a/airflow_client/docs/Provider.md b/airflow_client/docs/Provider.md index 2bd8f4a7..e5d8a03f 100644 --- a/airflow_client/docs/Provider.md +++ b/airflow_client/docs/Provider.md @@ -1,25 +1,6 @@ - - # Provider -The provider +The provider *New in version 2.1.0* ## Properties Name | Type | Description | Notes diff --git a/airflow_client/docs/ProviderApi.md b/airflow_client/docs/ProviderApi.md index 657a9106..d5fa7432 100644 --- a/airflow_client/docs/ProviderApi.md +++ b/airflow_client/docs/ProviderApi.md @@ -1,22 +1,3 @@ - - # Apache Airflow Python Client.ProviderApi All URIs are relative to *http://localhost/api/v1* @@ -31,9 +12,10 @@ Method | HTTP request | Description List providers +Get a list of providers. *New in version 2.1.0* + ### Example -* Basic Authentication (Basic): ```python import time @@ -47,19 +29,9 @@ configuration = client.Configuration( host = "http://localhost/api/v1" ) -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = client.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) # Enter a context with an instance of the API client -with client.ApiClient(configuration) as api_client: +with client.ApiClient() as api_client: # Create an instance of the API class api_instance = provider_api.ProviderApi(api_client) @@ -82,7 +54,7 @@ This endpoint does not need any parameter. ### Authorization -[Basic](../README.md#Basic), [Kerberos](../README.md#Kerberos) +No authorization required ### HTTP request headers diff --git a/airflow_client/docs/ProviderCollection.md b/airflow_client/docs/ProviderCollection.md index e2e7a3da..11cbdf5d 100644 --- a/airflow_client/docs/ProviderCollection.md +++ b/airflow_client/docs/ProviderCollection.md @@ -1,24 +1,6 @@ - - # ProviderCollection +Collection of providers. *New in version 2.1.0* ## Properties Name | Type | Description | Notes diff --git a/airflow_client/docs/RelativeDelta.md b/airflow_client/docs/RelativeDelta.md index dd7b5d71..18266553 100644 --- a/airflow_client/docs/RelativeDelta.md +++ b/airflow_client/docs/RelativeDelta.md @@ -1,22 +1,3 @@ - - # RelativeDelta Relative delta diff --git a/airflow_client/docs/Resource.md b/airflow_client/docs/Resource.md index 15df8ed3..221c7c0a 100644 --- a/airflow_client/docs/Resource.md +++ b/airflow_client/docs/Resource.md @@ -1,25 +1,6 @@ - - # Resource -A \"resource\" on which permissions are granted. +A resource on which permissions are granted. *New in version 2.1.0* ## Properties Name | Type | Description | Notes diff --git a/airflow_client/docs/Role.md b/airflow_client/docs/Role.md index 1e9cf9b1..b4ecd031 100644 --- a/airflow_client/docs/Role.md +++ b/airflow_client/docs/Role.md @@ -1,30 +1,11 @@ - - # Role -Role item +a role item. *New in version 2.1.0* ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str** | The name of the role | [optional] +**name** | **str** | The name of the role *Changed in version 2.3.0*: A minimum character length requirement ('minLength') is added. | [optional] **actions** | [**[ActionResource]**](ActionResource.md) | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/airflow_client/docs/RoleApi.md b/airflow_client/docs/RoleApi.md index 5c0d2fdd..7cd2a688 100644 --- a/airflow_client/docs/RoleApi.md +++ b/airflow_client/docs/RoleApi.md @@ -1,22 +1,3 @@ - - # Apache Airflow Python Client.RoleApi All URIs are relative to *http://localhost/api/v1* @@ -35,9 +16,10 @@ Method | HTTP request | Description Delete a role +Delete a role. *New in version 2.1.0* + ### Example -* Basic Authentication (Basic): ```python import time @@ -51,19 +33,9 @@ configuration = client.Configuration( host = "http://localhost/api/v1" ) -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = client.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) # Enter a context with an instance of the API client -with client.ApiClient(configuration) as api_client: +with client.ApiClient() as api_client: # Create an instance of the API class api_instance = role_api.RoleApi(api_client) role_name = "role_name_example" # str | The role name @@ -89,7 +61,7 @@ void (empty response body) ### Authorization -[Basic](../README.md#Basic), [Kerberos](../README.md#Kerberos) +No authorization required ### HTTP request headers @@ -114,9 +86,10 @@ void (empty response body) Get a role +Get a role. *New in version 2.1.0* + ### Example -* Basic Authentication (Basic): ```python import time @@ -131,19 +104,9 @@ configuration = client.Configuration( host = "http://localhost/api/v1" ) -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = client.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) # Enter a context with an instance of the API client -with client.ApiClient(configuration) as api_client: +with client.ApiClient() as api_client: # Create an instance of the API class api_instance = role_api.RoleApi(api_client) role_name = "role_name_example" # str | The role name @@ -170,7 +133,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic), [Kerberos](../README.md#Kerberos) +No authorization required ### HTTP request headers @@ -194,9 +157,10 @@ Name | Type | Description | Notes List roles +Get a list of roles. *New in version 2.1.0* + ### Example -* Basic Authentication (Basic): ```python import time @@ -211,24 +175,14 @@ configuration = client.Configuration( host = "http://localhost/api/v1" ) -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = client.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) # Enter a context with an instance of the API client -with client.ApiClient(configuration) as api_client: +with client.ApiClient() as api_client: # Create an instance of the API class api_instance = role_api.RoleApi(api_client) limit = 100 # int | The numbers of items to return. (optional) if omitted the server will use the default value of 100 offset = 0 # int | The number of items to skip before starting to collect the result set. (optional) - order_by = "order_by_example" # str | The name of the field to order the results by. Prefix a field name with `-` to reverse the sort order. (optional) + order_by = "order_by_example" # str | The name of the field to order the results by. Prefix a field name with `-` to reverse the sort order. *New in version 2.1.0* (optional) # example passing only required values which don't have defaults set # and optional values @@ -247,7 +201,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **limit** | **int**| The numbers of items to return. | [optional] if omitted the server will use the default value of 100 **offset** | **int**| The number of items to skip before starting to collect the result set. | [optional] - **order_by** | **str**| The name of the field to order the results by. Prefix a field name with `-` to reverse the sort order. | [optional] + **order_by** | **str**| The name of the field to order the results by. Prefix a field name with `-` to reverse the sort order. *New in version 2.1.0* | [optional] ### Return type @@ -255,7 +209,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic), [Kerberos](../README.md#Kerberos) +No authorization required ### HTTP request headers @@ -278,9 +232,10 @@ Name | Type | Description | Notes Update a role +Update a role. *New in version 2.1.0* + ### Example -* Basic Authentication (Basic): ```python import time @@ -295,19 +250,9 @@ configuration = client.Configuration( host = "http://localhost/api/v1" ) -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = client.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) # Enter a context with an instance of the API client -with client.ApiClient(configuration) as api_client: +with client.ApiClient() as api_client: # Create an instance of the API class api_instance = role_api.RoleApi(api_client) role_name = "role_name_example" # str | The role name @@ -361,7 +306,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic), [Kerberos](../README.md#Kerberos) +No authorization required ### HTTP request headers @@ -386,9 +331,10 @@ Name | Type | Description | Notes Create a role +Create a new role. *New in version 2.1.0* + ### Example -* Basic Authentication (Basic): ```python import time @@ -403,19 +349,9 @@ configuration = client.Configuration( host = "http://localhost/api/v1" ) -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = client.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) # Enter a context with an instance of the API client -with client.ApiClient(configuration) as api_client: +with client.ApiClient() as api_client: # Create an instance of the API class api_instance = role_api.RoleApi(api_client) role = Role( @@ -454,7 +390,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic), [Kerberos](../README.md#Kerberos) +No authorization required ### HTTP request headers diff --git a/airflow_client/docs/RoleCollection.md b/airflow_client/docs/RoleCollection.md index 7f7b8ad9..40ce3cd0 100644 --- a/airflow_client/docs/RoleCollection.md +++ b/airflow_client/docs/RoleCollection.md @@ -1,25 +1,6 @@ - - # RoleCollection -Role Collections +A collection of roles. *New in version 2.1.0* ## Properties Name | Type | Description | Notes diff --git a/airflow_client/docs/RoleCollectionAllOf.md b/airflow_client/docs/RoleCollectionAllOf.md index e69d0480..b88a7eff 100644 --- a/airflow_client/docs/RoleCollectionAllOf.md +++ b/airflow_client/docs/RoleCollectionAllOf.md @@ -1,22 +1,3 @@ - - # RoleCollectionAllOf diff --git a/airflow_client/docs/SLAMiss.md b/airflow_client/docs/SLAMiss.md index 1371ffab..992228e4 100644 --- a/airflow_client/docs/SLAMiss.md +++ b/airflow_client/docs/SLAMiss.md @@ -1,22 +1,3 @@ - - # SLAMiss diff --git a/airflow_client/docs/ScheduleInterval.md b/airflow_client/docs/ScheduleInterval.md index 807fa4a5..a866b2d0 100644 --- a/airflow_client/docs/ScheduleInterval.md +++ b/airflow_client/docs/ScheduleInterval.md @@ -1,22 +1,3 @@ - - # ScheduleInterval Schedule interval. Defines how often DAG runs, this object gets added to your latest task instance's execution_date to figure out the next schedule. diff --git a/airflow_client/docs/SchedulerStatus.md b/airflow_client/docs/SchedulerStatus.md index 1cf1ef51..d63cf9e9 100644 --- a/airflow_client/docs/SchedulerStatus.md +++ b/airflow_client/docs/SchedulerStatus.md @@ -1,22 +1,3 @@ - - # SchedulerStatus The status and the latest scheduler heartbeat. diff --git a/airflow_client/docs/Tag.md b/airflow_client/docs/Tag.md index 8a9e81d6..16044a11 100644 --- a/airflow_client/docs/Tag.md +++ b/airflow_client/docs/Tag.md @@ -1,22 +1,3 @@ - - # Tag Tag diff --git a/airflow_client/docs/Task.md b/airflow_client/docs/Task.md index 07f0a015..dd0dc923 100644 --- a/airflow_client/docs/Task.md +++ b/airflow_client/docs/Task.md @@ -1,25 +1,6 @@ - - # Task -For details see: (airflow.models.BaseOperator)[https://airflow.apache.org/docs/apache-airflow/stable/_api/airflow/models/index.html#airflow.models.BaseOperator] +For details see: [airflow.models.BaseOperator](https://airflow.apache.org/docs/apache-airflow/stable/_api/airflow/models/index.html#airflow.models.BaseOperator) ## Properties Name | Type | Description | Notes @@ -37,8 +18,8 @@ Name | Type | Description | Notes **queue** | **str** | | [optional] [readonly] **pool** | **str** | | [optional] [readonly] **pool_slots** | **float** | | [optional] [readonly] -**execution_timeout** | [**TimeDelta**](TimeDelta.md) | | [optional] -**retry_delay** | [**TimeDelta**](TimeDelta.md) | | [optional] +**execution_timeout** | [**NullableTimeDelta**](NullableTimeDelta.md) | | [optional] +**retry_delay** | [**NullableTimeDelta**](NullableTimeDelta.md) | | [optional] **retry_exponential_backoff** | **bool** | | [optional] [readonly] **priority_weight** | **float** | | [optional] [readonly] **weight_rule** | [**WeightRule**](WeightRule.md) | | [optional] diff --git a/airflow_client/docs/TaskCollection.md b/airflow_client/docs/TaskCollection.md index f6406e71..6f18f180 100644 --- a/airflow_client/docs/TaskCollection.md +++ b/airflow_client/docs/TaskCollection.md @@ -1,22 +1,3 @@ - - # TaskCollection Collection of tasks. diff --git a/airflow_client/docs/TaskExtraLinks.md b/airflow_client/docs/TaskExtraLinks.md index 07012318..357b7006 100644 --- a/airflow_client/docs/TaskExtraLinks.md +++ b/airflow_client/docs/TaskExtraLinks.md @@ -1,22 +1,3 @@ - - # TaskExtraLinks diff --git a/airflow_client/docs/TaskInstance.md b/airflow_client/docs/TaskInstance.md index f1ccbbec..deb2f5af 100644 --- a/airflow_client/docs/TaskInstance.md +++ b/airflow_client/docs/TaskInstance.md @@ -1,22 +1,3 @@ - - # TaskInstance @@ -25,11 +6,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **task_id** | **str** | | [optional] **dag_id** | **str** | | [optional] +**dag_run_id** | **str** | The DagRun ID for this task instance *New in version 2.3.0* | [optional] **execution_date** | **str** | | [optional] **start_date** | **str, none_type** | | [optional] **end_date** | **str, none_type** | | [optional] **duration** | **float, none_type** | | [optional] -**state** | [**TaskState**](TaskState.md) | | [optional] +**state** | [**NullableTaskState**](NullableTaskState.md) | | [optional] **try_number** | **int** | | [optional] **max_tries** | **int** | | [optional] **hostname** | **str** | | [optional] @@ -38,11 +20,11 @@ Name | Type | Description | Notes **pool_slots** | **int** | | [optional] **queue** | **str** | | [optional] **priority_weight** | **int** | | [optional] -**operator** | **str, none_type** | | [optional] +**operator** | **str, none_type** | *Changed in version 2.1.1*: Field becomes nullable. | [optional] **queued_when** | **str, none_type** | | [optional] **pid** | **int, none_type** | | [optional] **executor_config** | **str** | | [optional] -**sla_miss** | [**SLAMiss**](SLAMiss.md) | | [optional] +**sla_miss** | [**NullableSLAMiss**](NullableSLAMiss.md) | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/airflow_client/docs/TaskInstanceApi.md b/airflow_client/docs/TaskInstanceApi.md index 838e2f3a..444fc0c0 100644 --- a/airflow_client/docs/TaskInstanceApi.md +++ b/airflow_client/docs/TaskInstanceApi.md @@ -1,22 +1,3 @@ - - # Apache Airflow Python Client.TaskInstanceApi All URIs are relative to *http://localhost/api/v1* @@ -39,7 +20,6 @@ List extra links for task instance. ### Example -* Basic Authentication (Basic): ```python import time @@ -54,19 +34,9 @@ configuration = client.Configuration( host = "http://localhost/api/v1" ) -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = client.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) # Enter a context with an instance of the API client -with client.ApiClient(configuration) as api_client: +with client.ApiClient() as api_client: # Create an instance of the API class api_instance = task_instance_api.TaskInstanceApi(api_client) dag_id = "dag_id_example" # str | The DAG ID. @@ -97,7 +67,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic), [Kerberos](../README.md#Kerberos) +No authorization required ### HTTP request headers @@ -125,7 +95,6 @@ Get logs for a specific task instance and its try number. ### Example -* Basic Authentication (Basic): ```python import time @@ -140,19 +109,9 @@ configuration = client.Configuration( host = "http://localhost/api/v1" ) -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = client.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) # Enter a context with an instance of the API client -with client.ApiClient(configuration) as api_client: +with client.ApiClient() as api_client: # Create an instance of the API class api_instance = task_instance_api.TaskInstanceApi(api_client) dag_id = "dag_id_example" # str | The DAG ID. @@ -198,7 +157,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic), [Kerberos](../README.md#Kerberos) +No authorization required ### HTTP request headers @@ -225,7 +184,6 @@ Get a task instance ### Example -* Basic Authentication (Basic): ```python import time @@ -240,19 +198,9 @@ configuration = client.Configuration( host = "http://localhost/api/v1" ) -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = client.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) # Enter a context with an instance of the API client -with client.ApiClient(configuration) as api_client: +with client.ApiClient() as api_client: # Create an instance of the API class api_instance = task_instance_api.TaskInstanceApi(api_client) dag_id = "dag_id_example" # str | The DAG ID. @@ -283,7 +231,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic), [Kerberos](../README.md#Kerberos) +No authorization required ### HTTP request headers @@ -311,7 +259,6 @@ This endpoint allows specifying `~` as the dag_id, dag_run_id to retrieve DAG ru ### Example -* Basic Authentication (Basic): ```python import time @@ -326,19 +273,9 @@ configuration = client.Configuration( host = "http://localhost/api/v1" ) -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = client.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) # Enter a context with an instance of the API client -with client.ApiClient(configuration) as api_client: +with client.ApiClient() as api_client: # Create an instance of the API class api_instance = task_instance_api.TaskInstanceApi(api_client) dag_id = "dag_id_example" # str | The DAG ID. @@ -408,7 +345,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic), [Kerberos](../README.md#Kerberos) +No authorization required ### HTTP request headers @@ -435,7 +372,6 @@ List task instances from all DAGs and DAG runs. This endpoint is a POST to allow ### Example -* Basic Authentication (Basic): ```python import time @@ -451,19 +387,9 @@ configuration = client.Configuration( host = "http://localhost/api/v1" ) -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = client.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) # Enter a context with an instance of the API client -with client.ApiClient(configuration) as api_client: +with client.ApiClient() as api_client: # Create an instance of the API class api_instance = task_instance_api.TaskInstanceApi(api_client) list_task_instance_form = ListTaskInstanceForm( @@ -479,7 +405,7 @@ with client.ApiClient(configuration) as api_client: duration_gte=3.14, duration_lte=3.14, state=[ - "state_example", + TaskState("success"), ], pool=[ "pool_example", @@ -511,7 +437,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic), [Kerberos](../README.md#Kerberos) +No authorization required ### HTTP request headers diff --git a/airflow_client/docs/TaskInstanceCollection.md b/airflow_client/docs/TaskInstanceCollection.md index 2478b7bc..59908798 100644 --- a/airflow_client/docs/TaskInstanceCollection.md +++ b/airflow_client/docs/TaskInstanceCollection.md @@ -1,25 +1,6 @@ - - # TaskInstanceCollection -Collection of task instances. +Collection of task instances. *Changed in version 2.1.0*: 'total_entries' field is added. ## Properties Name | Type | Description | Notes diff --git a/airflow_client/docs/TaskInstanceCollectionAllOf.md b/airflow_client/docs/TaskInstanceCollectionAllOf.md index 4861f855..aa7ac1b9 100644 --- a/airflow_client/docs/TaskInstanceCollectionAllOf.md +++ b/airflow_client/docs/TaskInstanceCollectionAllOf.md @@ -1,22 +1,3 @@ - - # TaskInstanceCollectionAllOf diff --git a/airflow_client/docs/TaskInstanceReference.md b/airflow_client/docs/TaskInstanceReference.md index 76f93286..a3915322 100644 --- a/airflow_client/docs/TaskInstanceReference.md +++ b/airflow_client/docs/TaskInstanceReference.md @@ -1,22 +1,3 @@ - - # TaskInstanceReference diff --git a/airflow_client/docs/TaskInstanceReferenceCollection.md b/airflow_client/docs/TaskInstanceReferenceCollection.md index 7b29d571..d52037e9 100644 --- a/airflow_client/docs/TaskInstanceReferenceCollection.md +++ b/airflow_client/docs/TaskInstanceReferenceCollection.md @@ -1,22 +1,3 @@ - - # TaskInstanceReferenceCollection diff --git a/airflow_client/docs/TaskState.md b/airflow_client/docs/TaskState.md index eac8bdd8..72cdd540 100644 --- a/airflow_client/docs/TaskState.md +++ b/airflow_client/docs/TaskState.md @@ -1,30 +1,11 @@ - - # TaskState -Task state. +Task state. *Changed in version 2.0.2*: 'removed' is added as a possible value. *Changed in version 2.2.0*: 'deferred' and 'sensing' is added as a possible value. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**value** | **str** | Task state. | must be one of ["success", "running", "failed", "upstream_failed", "skipped", "up_for_retry", "up_for_reschedule", "queued", "none", "scheduled", "deferred", "sensing", "removed", ] +**value** | **str** | Task state. *Changed in version 2.0.2*: 'removed' is added as a possible value. *Changed in version 2.2.0*: 'deferred' and 'sensing' is added as a possible value. | must be one of ["success", "running", "failed", "upstream_failed", "skipped", "up_for_retry", "up_for_reschedule", "queued", "none", "scheduled", "deferred", "sensing", "removed", ] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/airflow_client/docs/TimeDelta.md b/airflow_client/docs/TimeDelta.md index 1ab20f4b..38080ab6 100644 --- a/airflow_client/docs/TimeDelta.md +++ b/airflow_client/docs/TimeDelta.md @@ -1,22 +1,3 @@ - - # TimeDelta Time delta diff --git a/airflow_client/docs/TriggerRule.md b/airflow_client/docs/TriggerRule.md index d5018293..47b5dcac 100644 --- a/airflow_client/docs/TriggerRule.md +++ b/airflow_client/docs/TriggerRule.md @@ -1,30 +1,11 @@ - - # TriggerRule -Trigger rule. +Trigger rule. *Changed in version 2.2.0*: 'none_failed_min_one_success' is added as a possible value. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**value** | **str** | Trigger rule. | must be one of ["all_success", "all_failed", "all_done", "one_success", "one_failed", "none_failed", "none_skipped", "none_failed_or_skipped", "none_failed_min_one_success", "dummy", ] +**value** | **str** | Trigger rule. *Changed in version 2.2.0*: 'none_failed_min_one_success' is added as a possible value. | must be one of ["all_success", "all_failed", "all_done", "one_success", "one_failed", "none_failed", "none_skipped", "none_failed_or_skipped", "none_failed_min_one_success", "dummy", ] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/airflow_client/docs/UpdateDagRunState.md b/airflow_client/docs/UpdateDagRunState.md index 8cdf8e6f..6a99563c 100644 --- a/airflow_client/docs/UpdateDagRunState.md +++ b/airflow_client/docs/UpdateDagRunState.md @@ -1,24 +1,6 @@ - - # UpdateDagRunState +Modify the state of a DAG run. *New in version 2.2.0* ## Properties Name | Type | Description | Notes diff --git a/airflow_client/docs/UpdateTaskInstancesState.md b/airflow_client/docs/UpdateTaskInstancesState.md index 10df641d..1aa5da5f 100644 --- a/airflow_client/docs/UpdateTaskInstancesState.md +++ b/airflow_client/docs/UpdateTaskInstancesState.md @@ -1,22 +1,3 @@ - - # UpdateTaskInstancesState @@ -25,7 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **dry_run** | **bool** | If set, don't actually run this operation. The response will contain a list of task instances planned to be affected, but won't be modified in any way. | [optional] if omitted the server will use the default value of True **task_id** | **str** | The task ID. | [optional] -**execution_date** | **str** | The execution date. | [optional] +**execution_date** | **str** | The execution date. Either set this or dag_run_id but not both. | [optional] +**dag_run_id** | **str** | The task instance's DAG run ID. Either set this or execution_date but not both. *New in version 2.3.0* | [optional] **include_upstream** | **bool** | If set to true, upstream tasks are also affected. | [optional] **include_downstream** | **bool** | If set to true, downstream tasks are also affected. | [optional] **include_future** | **bool** | If set to True, also tasks from future DAG Runs are affected. | [optional] diff --git a/airflow_client/docs/User.md b/airflow_client/docs/User.md index 2cb48ce4..df4cb7d5 100644 --- a/airflow_client/docs/User.md +++ b/airflow_client/docs/User.md @@ -1,38 +1,19 @@ - - # User -A user object with sensitive data +A user object with sensitive data. *New in version 2.1.0* ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**first_name** | **str** | The user firstname | [optional] -**last_name** | **str** | The user lastname | [optional] -**username** | **str** | The username | [optional] -**email** | **str** | The user's email | [optional] +**first_name** | **str** | The user's first name. *Changed in version 2.2.0*: A minimum character length requirement ('minLength') is added. | [optional] +**last_name** | **str** | The user's last name. *Changed in version 2.2.0*: A minimum character length requirement ('minLength') is added. | [optional] +**username** | **str** | The username. *Changed in version 2.2.0*: A minimum character length requirement ('minLength') is added. | [optional] +**email** | **str** | The user's email. *Changed in version 2.2.0*: A minimum character length requirement ('minLength') is added. | [optional] **active** | **bool, none_type** | Whether the user is active | [optional] [readonly] **last_login** | **str, none_type** | The last user login | [optional] [readonly] **login_count** | **int, none_type** | The login count | [optional] [readonly] **failed_login_count** | **int, none_type** | The number of times the login failed | [optional] [readonly] -**roles** | [**[UserCollectionItemRoles]**](UserCollectionItemRoles.md) | User roles | [optional] +**roles** | [**[UserCollectionItemRoles]**](UserCollectionItemRoles.md) | User roles. *Changed in version 2.2.0*: Field is no longer read-only. | [optional] **created_on** | **str, none_type** | The date user was created | [optional] [readonly] **changed_on** | **str, none_type** | The date user was changed | [optional] [readonly] **password** | **str** | | [optional] diff --git a/airflow_client/docs/UserAllOf.md b/airflow_client/docs/UserAllOf.md index 59d0648c..9acf92a4 100644 --- a/airflow_client/docs/UserAllOf.md +++ b/airflow_client/docs/UserAllOf.md @@ -1,22 +1,3 @@ - - # UserAllOf diff --git a/airflow_client/docs/UserApi.md b/airflow_client/docs/UserApi.md index 5b935329..a51aa021 100644 --- a/airflow_client/docs/UserApi.md +++ b/airflow_client/docs/UserApi.md @@ -1,22 +1,3 @@ - - # Apache Airflow Python Client.UserApi All URIs are relative to *http://localhost/api/v1* @@ -35,9 +16,10 @@ Method | HTTP request | Description Delete a user +Delete a user with a specific username. *New in version 2.2.0* + ### Example -* Basic Authentication (Basic): ```python import time @@ -51,22 +33,12 @@ configuration = client.Configuration( host = "http://localhost/api/v1" ) -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = client.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) # Enter a context with an instance of the API client -with client.ApiClient(configuration) as api_client: +with client.ApiClient() as api_client: # Create an instance of the API class api_instance = user_api.UserApi(api_client) - username = "username_example" # str | The username of the user + username = "username_example" # str | The username of the user. *New in version 2.1.0* # example passing only required values which don't have defaults set try: @@ -81,7 +53,7 @@ with client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **username** | **str**| The username of the user | + **username** | **str**| The username of the user. *New in version 2.1.0* | ### Return type @@ -89,7 +61,7 @@ void (empty response body) ### Authorization -[Basic](../README.md#Basic), [Kerberos](../README.md#Kerberos) +No authorization required ### HTTP request headers @@ -114,9 +86,10 @@ void (empty response body) Get a user +Get a user with a specific username. *New in version 2.1.0* + ### Example -* Basic Authentication (Basic): ```python import time @@ -131,22 +104,12 @@ configuration = client.Configuration( host = "http://localhost/api/v1" ) -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = client.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) # Enter a context with an instance of the API client -with client.ApiClient(configuration) as api_client: +with client.ApiClient() as api_client: # Create an instance of the API class api_instance = user_api.UserApi(api_client) - username = "username_example" # str | The username of the user + username = "username_example" # str | The username of the user. *New in version 2.1.0* # example passing only required values which don't have defaults set try: @@ -162,7 +125,7 @@ with client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **username** | **str**| The username of the user | + **username** | **str**| The username of the user. *New in version 2.1.0* | ### Return type @@ -170,7 +133,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic), [Kerberos](../README.md#Kerberos) +No authorization required ### HTTP request headers @@ -194,9 +157,10 @@ Name | Type | Description | Notes List users +Get a list of users. *New in version 2.1.0* + ### Example -* Basic Authentication (Basic): ```python import time @@ -211,24 +175,14 @@ configuration = client.Configuration( host = "http://localhost/api/v1" ) -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = client.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) # Enter a context with an instance of the API client -with client.ApiClient(configuration) as api_client: +with client.ApiClient() as api_client: # Create an instance of the API class api_instance = user_api.UserApi(api_client) limit = 100 # int | The numbers of items to return. (optional) if omitted the server will use the default value of 100 offset = 0 # int | The number of items to skip before starting to collect the result set. (optional) - order_by = "order_by_example" # str | The name of the field to order the results by. Prefix a field name with `-` to reverse the sort order. (optional) + order_by = "order_by_example" # str | The name of the field to order the results by. Prefix a field name with `-` to reverse the sort order. *New in version 2.1.0* (optional) # example passing only required values which don't have defaults set # and optional values @@ -247,7 +201,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **limit** | **int**| The numbers of items to return. | [optional] if omitted the server will use the default value of 100 **offset** | **int**| The number of items to skip before starting to collect the result set. | [optional] - **order_by** | **str**| The name of the field to order the results by. Prefix a field name with `-` to reverse the sort order. | [optional] + **order_by** | **str**| The name of the field to order the results by. Prefix a field name with `-` to reverse the sort order. *New in version 2.1.0* | [optional] ### Return type @@ -255,7 +209,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic), [Kerberos](../README.md#Kerberos) +No authorization required ### HTTP request headers @@ -278,9 +232,10 @@ Name | Type | Description | Notes Update a user +Update fields for a user. *New in version 2.2.0* + ### Example -* Basic Authentication (Basic): ```python import time @@ -296,22 +251,12 @@ configuration = client.Configuration( host = "http://localhost/api/v1" ) -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = client.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) # Enter a context with an instance of the API client -with client.ApiClient(configuration) as api_client: +with client.ApiClient() as api_client: # Create an instance of the API class api_instance = user_api.UserApi(api_client) - username = "username_example" # str | The username of the user + username = "username_example" # str | The username of the user. *New in version 2.1.0* user = User() # User | update_mask = [ "update_mask_example", @@ -340,7 +285,7 @@ with client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **username** | **str**| The username of the user | + **username** | **str**| The username of the user. *New in version 2.1.0* | **user** | [**User**](User.md)| | **update_mask** | **[str]**| The fields to update on the resource. If absent or empty, all modifiable fields are updated. A comma-separated list of fully qualified names of fields. | [optional] @@ -350,7 +295,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic), [Kerberos](../README.md#Kerberos) +No authorization required ### HTTP request headers @@ -375,9 +320,10 @@ Name | Type | Description | Notes Create a user +Create a new user with unique username and email. *New in version 2.2.0* + ### Example -* Basic Authentication (Basic): ```python import time @@ -392,19 +338,9 @@ configuration = client.Configuration( host = "http://localhost/api/v1" ) -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = client.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) # Enter a context with an instance of the API client -with client.ApiClient(configuration) as api_client: +with client.ApiClient() as api_client: # Create an instance of the API class api_instance = user_api.UserApi(api_client) user = User() # User | @@ -431,7 +367,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic), [Kerberos](../README.md#Kerberos) +No authorization required ### HTTP request headers diff --git a/airflow_client/docs/UserCollection.md b/airflow_client/docs/UserCollection.md index d4c5d86a..d0fa70c1 100644 --- a/airflow_client/docs/UserCollection.md +++ b/airflow_client/docs/UserCollection.md @@ -1,25 +1,6 @@ - - # UserCollection -Collection of users. +Collection of users. *New in version 2.1.0* ## Properties Name | Type | Description | Notes diff --git a/airflow_client/docs/UserCollectionAllOf.md b/airflow_client/docs/UserCollectionAllOf.md index e07eab1c..fe7d7e22 100644 --- a/airflow_client/docs/UserCollectionAllOf.md +++ b/airflow_client/docs/UserCollectionAllOf.md @@ -1,22 +1,3 @@ - - # UserCollectionAllOf diff --git a/airflow_client/docs/UserCollectionItem.md b/airflow_client/docs/UserCollectionItem.md index 764f92d1..bf93664e 100644 --- a/airflow_client/docs/UserCollectionItem.md +++ b/airflow_client/docs/UserCollectionItem.md @@ -1,38 +1,19 @@ - - # UserCollectionItem -A user object +A user object. *New in version 2.1.0* ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**first_name** | **str** | The user firstname | [optional] -**last_name** | **str** | The user lastname | [optional] -**username** | **str** | The username | [optional] -**email** | **str** | The user's email | [optional] +**first_name** | **str** | The user's first name. *Changed in version 2.2.0*: A minimum character length requirement ('minLength') is added. | [optional] +**last_name** | **str** | The user's last name. *Changed in version 2.2.0*: A minimum character length requirement ('minLength') is added. | [optional] +**username** | **str** | The username. *Changed in version 2.2.0*: A minimum character length requirement ('minLength') is added. | [optional] +**email** | **str** | The user's email. *Changed in version 2.2.0*: A minimum character length requirement ('minLength') is added. | [optional] **active** | **bool, none_type** | Whether the user is active | [optional] [readonly] **last_login** | **str, none_type** | The last user login | [optional] [readonly] **login_count** | **int, none_type** | The login count | [optional] [readonly] **failed_login_count** | **int, none_type** | The number of times the login failed | [optional] [readonly] -**roles** | [**[UserCollectionItemRoles]**](UserCollectionItemRoles.md) | User roles | [optional] +**roles** | [**[UserCollectionItemRoles]**](UserCollectionItemRoles.md) | User roles. *Changed in version 2.2.0*: Field is no longer read-only. | [optional] **created_on** | **str, none_type** | The date user was created | [optional] [readonly] **changed_on** | **str, none_type** | The date user was changed | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/airflow_client/docs/UserCollectionItemRoles.md b/airflow_client/docs/UserCollectionItemRoles.md index 2ceabaed..b0079301 100644 --- a/airflow_client/docs/UserCollectionItemRoles.md +++ b/airflow_client/docs/UserCollectionItemRoles.md @@ -1,22 +1,3 @@ - - # UserCollectionItemRoles diff --git a/airflow_client/docs/Variable.md b/airflow_client/docs/Variable.md index 6a2dbdee..813f2f09 100644 --- a/airflow_client/docs/Variable.md +++ b/airflow_client/docs/Variable.md @@ -1,22 +1,3 @@ - - # Variable Full representation of Variable diff --git a/airflow_client/docs/VariableAllOf.md b/airflow_client/docs/VariableAllOf.md index c35b29fd..1bfa26a6 100644 --- a/airflow_client/docs/VariableAllOf.md +++ b/airflow_client/docs/VariableAllOf.md @@ -1,22 +1,3 @@ - - # VariableAllOf diff --git a/airflow_client/docs/VariableApi.md b/airflow_client/docs/VariableApi.md index 836d7ee8..da5fd38f 100644 --- a/airflow_client/docs/VariableApi.md +++ b/airflow_client/docs/VariableApi.md @@ -1,22 +1,3 @@ - - # Apache Airflow Python Client.VariableApi All URIs are relative to *http://localhost/api/v1* @@ -37,7 +18,6 @@ Delete a variable ### Example -* Basic Authentication (Basic): ```python import time @@ -51,19 +31,9 @@ configuration = client.Configuration( host = "http://localhost/api/v1" ) -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = client.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) # Enter a context with an instance of the API client -with client.ApiClient(configuration) as api_client: +with client.ApiClient() as api_client: # Create an instance of the API class api_instance = variable_api.VariableApi(api_client) variable_key = "variable_key_example" # str | The variable Key. @@ -89,7 +59,7 @@ void (empty response body) ### Authorization -[Basic](../README.md#Basic), [Kerberos](../README.md#Kerberos) +No authorization required ### HTTP request headers @@ -118,7 +88,6 @@ Get a variable by key. ### Example -* Basic Authentication (Basic): ```python import time @@ -133,19 +102,9 @@ configuration = client.Configuration( host = "http://localhost/api/v1" ) -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = client.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) # Enter a context with an instance of the API client -with client.ApiClient(configuration) as api_client: +with client.ApiClient() as api_client: # Create an instance of the API class api_instance = variable_api.VariableApi(api_client) variable_key = "variable_key_example" # str | The variable Key. @@ -172,7 +131,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic), [Kerberos](../README.md#Kerberos) +No authorization required ### HTTP request headers @@ -200,7 +159,6 @@ The collection does not contain data. To get data, you must get a single entity. ### Example -* Basic Authentication (Basic): ```python import time @@ -215,24 +173,14 @@ configuration = client.Configuration( host = "http://localhost/api/v1" ) -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = client.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) # Enter a context with an instance of the API client -with client.ApiClient(configuration) as api_client: +with client.ApiClient() as api_client: # Create an instance of the API class api_instance = variable_api.VariableApi(api_client) limit = 100 # int | The numbers of items to return. (optional) if omitted the server will use the default value of 100 offset = 0 # int | The number of items to skip before starting to collect the result set. (optional) - order_by = "order_by_example" # str | The name of the field to order the results by. Prefix a field name with `-` to reverse the sort order. (optional) + order_by = "order_by_example" # str | The name of the field to order the results by. Prefix a field name with `-` to reverse the sort order. *New in version 2.1.0* (optional) # example passing only required values which don't have defaults set # and optional values @@ -251,7 +199,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **limit** | **int**| The numbers of items to return. | [optional] if omitted the server will use the default value of 100 **offset** | **int**| The number of items to skip before starting to collect the result set. | [optional] - **order_by** | **str**| The name of the field to order the results by. Prefix a field name with `-` to reverse the sort order. | [optional] + **order_by** | **str**| The name of the field to order the results by. Prefix a field name with `-` to reverse the sort order. *New in version 2.1.0* | [optional] ### Return type @@ -259,7 +207,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic), [Kerberos](../README.md#Kerberos) +No authorization required ### HTTP request headers @@ -286,7 +234,6 @@ Update a variable by key. ### Example -* Basic Authentication (Basic): ```python import time @@ -301,19 +248,9 @@ configuration = client.Configuration( host = "http://localhost/api/v1" ) -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = client.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) # Enter a context with an instance of the API client -with client.ApiClient(configuration) as api_client: +with client.ApiClient() as api_client: # Create an instance of the API class api_instance = variable_api.VariableApi(api_client) variable_key = "variable_key_example" # str | The variable Key. @@ -355,7 +292,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic), [Kerberos](../README.md#Kerberos) +No authorization required ### HTTP request headers @@ -382,7 +319,6 @@ Create a variable ### Example -* Basic Authentication (Basic): ```python import time @@ -397,19 +333,9 @@ configuration = client.Configuration( host = "http://localhost/api/v1" ) -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = client.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) # Enter a context with an instance of the API client -with client.ApiClient(configuration) as api_client: +with client.ApiClient() as api_client: # Create an instance of the API class api_instance = variable_api.VariableApi(api_client) variable = Variable(None) # Variable | @@ -436,7 +362,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic), [Kerberos](../README.md#Kerberos) +No authorization required ### HTTP request headers diff --git a/airflow_client/docs/VariableCollection.md b/airflow_client/docs/VariableCollection.md index bbbc6547..888e1c6a 100644 --- a/airflow_client/docs/VariableCollection.md +++ b/airflow_client/docs/VariableCollection.md @@ -1,25 +1,6 @@ - - # VariableCollection -Collection of variables. +Collection of variables. *Changed in version 2.1.0*: 'total_entries' field is added. ## Properties Name | Type | Description | Notes diff --git a/airflow_client/docs/VariableCollectionAllOf.md b/airflow_client/docs/VariableCollectionAllOf.md index c7a87bdd..34c4c787 100644 --- a/airflow_client/docs/VariableCollectionAllOf.md +++ b/airflow_client/docs/VariableCollectionAllOf.md @@ -1,22 +1,3 @@ - - # VariableCollectionAllOf diff --git a/airflow_client/docs/VariableCollectionItem.md b/airflow_client/docs/VariableCollectionItem.md index 9b38042a..458620f5 100644 --- a/airflow_client/docs/VariableCollectionItem.md +++ b/airflow_client/docs/VariableCollectionItem.md @@ -1,22 +1,3 @@ - - # VariableCollectionItem XCom entry collection item. The value field are only available when retrieving a single object due to the sensitivity of this data. diff --git a/airflow_client/docs/VersionInfo.md b/airflow_client/docs/VersionInfo.md index dab2d394..51810603 100644 --- a/airflow_client/docs/VersionInfo.md +++ b/airflow_client/docs/VersionInfo.md @@ -1,22 +1,3 @@ - - # VersionInfo Version information. diff --git a/airflow_client/docs/WeightRule.md b/airflow_client/docs/WeightRule.md index d7a590f0..547eccb3 100644 --- a/airflow_client/docs/WeightRule.md +++ b/airflow_client/docs/WeightRule.md @@ -1,22 +1,3 @@ - - # WeightRule Weight rule. diff --git a/airflow_client/docs/XCom.md b/airflow_client/docs/XCom.md index c75be442..d46a415f 100644 --- a/airflow_client/docs/XCom.md +++ b/airflow_client/docs/XCom.md @@ -1,22 +1,3 @@ - - # XCom Full representations of XCom entry. diff --git a/airflow_client/docs/XComAllOf.md b/airflow_client/docs/XComAllOf.md index 9305e9a7..0a89dc72 100644 --- a/airflow_client/docs/XComAllOf.md +++ b/airflow_client/docs/XComAllOf.md @@ -1,22 +1,3 @@ - - # XComAllOf diff --git a/airflow_client/docs/XComApi.md b/airflow_client/docs/XComApi.md index 94fd1271..05d79f94 100644 --- a/airflow_client/docs/XComApi.md +++ b/airflow_client/docs/XComApi.md @@ -1,22 +1,3 @@ - - # Apache Airflow Python Client.XComApi All URIs are relative to *http://localhost/api/v1* @@ -36,7 +17,6 @@ This endpoint allows specifying `~` as the dag_id, dag_run_id, task_id to retrie ### Example -* Basic Authentication (Basic): ```python import time @@ -51,19 +31,9 @@ configuration = client.Configuration( host = "http://localhost/api/v1" ) -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = client.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) # Enter a context with an instance of the API client -with client.ApiClient(configuration) as api_client: +with client.ApiClient() as api_client: # Create an instance of the API class api_instance = x_com_api.XComApi(api_client) dag_id = "dag_id_example" # str | The DAG ID. @@ -107,7 +77,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic), [Kerberos](../README.md#Kerberos) +No authorization required ### HTTP request headers @@ -132,7 +102,6 @@ Get an XCom entry ### Example -* Basic Authentication (Basic): ```python import time @@ -147,19 +116,9 @@ configuration = client.Configuration( host = "http://localhost/api/v1" ) -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = client.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) # Enter a context with an instance of the API client -with client.ApiClient(configuration) as api_client: +with client.ApiClient() as api_client: # Create an instance of the API class api_instance = x_com_api.XComApi(api_client) dag_id = "dag_id_example" # str | The DAG ID. @@ -192,7 +151,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic), [Kerberos](../README.md#Kerberos) +No authorization required ### HTTP request headers diff --git a/airflow_client/docs/XComCollection.md b/airflow_client/docs/XComCollection.md index 4527a8f6..601ee049 100644 --- a/airflow_client/docs/XComCollection.md +++ b/airflow_client/docs/XComCollection.md @@ -1,25 +1,6 @@ - - # XComCollection -Collection of XCom entries. +Collection of XCom entries. *Changed in version 2.1.0*: 'total_entries' field is added. ## Properties Name | Type | Description | Notes diff --git a/airflow_client/docs/XComCollectionAllOf.md b/airflow_client/docs/XComCollectionAllOf.md index cfebe870..4c6114f1 100644 --- a/airflow_client/docs/XComCollectionAllOf.md +++ b/airflow_client/docs/XComCollectionAllOf.md @@ -1,22 +1,3 @@ - - # XComCollectionAllOf diff --git a/airflow_client/docs/XComCollectionItem.md b/airflow_client/docs/XComCollectionItem.md index b8b96e33..74f75e7e 100644 --- a/airflow_client/docs/XComCollectionItem.md +++ b/airflow_client/docs/XComCollectionItem.md @@ -1,22 +1,3 @@ - - # XComCollectionItem XCom entry collection item. The value field is only available when reading a single object due to the size of the value. diff --git a/airflow_client/test/__init__.py b/airflow_client/test/__init__.py index 24569233..e69de29b 100644 --- a/airflow_client/test/__init__.py +++ b/airflow_client/test/__init__.py @@ -1,17 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - diff --git a/airflow_client/test/test_action.py b/airflow_client/test/test_action.py index 87d6cd31..9253fbb6 100644 --- a/airflow_client/test/test_action.py +++ b/airflow_client/test/test_action.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_action_collection.py b/airflow_client/test/test_action_collection.py index 8167a447..68518826 100644 --- a/airflow_client/test/test_action_collection.py +++ b/airflow_client/test/test_action_collection.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_action_collection_all_of.py b/airflow_client/test/test_action_collection_all_of.py index bd45b9f6..3e246652 100644 --- a/airflow_client/test/test_action_collection_all_of.py +++ b/airflow_client/test/test_action_collection_all_of.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_action_resource.py b/airflow_client/test/test_action_resource.py index 38957d2a..eeefb55d 100644 --- a/airflow_client/test/test_action_resource.py +++ b/airflow_client/test/test_action_resource.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_class_reference.py b/airflow_client/test/test_class_reference.py index 2dc2b912..7bde15cf 100644 --- a/airflow_client/test/test_class_reference.py +++ b/airflow_client/test/test_class_reference.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_clear_task_instance.py b/airflow_client/test/test_clear_task_instance.py index 2665f066..b28d3dd9 100644 --- a/airflow_client/test/test_clear_task_instance.py +++ b/airflow_client/test/test_clear_task_instance.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_collection_info.py b/airflow_client/test/test_collection_info.py index 8225cdca..aecd1c52 100644 --- a/airflow_client/test/test_collection_info.py +++ b/airflow_client/test/test_collection_info.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_color.py b/airflow_client/test/test_color.py index 86ffbcf8..319ad6b5 100644 --- a/airflow_client/test/test_color.py +++ b/airflow_client/test/test_color.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_config.py b/airflow_client/test/test_config.py index 30a277fd..7359bda6 100644 --- a/airflow_client/test/test_config.py +++ b/airflow_client/test/test_config.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_config_api.py b/airflow_client/test/test_config_api.py index fd17b2b0..1104462f 100644 --- a/airflow_client/test/test_config_api.py +++ b/airflow_client/test/test_config_api.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_config_option.py b/airflow_client/test/test_config_option.py index 62e19119..e4bdfcae 100644 --- a/airflow_client/test/test_config_option.py +++ b/airflow_client/test/test_config_option.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_config_section.py b/airflow_client/test/test_config_section.py index 51984d5d..35d158c1 100644 --- a/airflow_client/test/test_config_section.py +++ b/airflow_client/test/test_config_section.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_connection.py b/airflow_client/test/test_connection.py index c69bb38d..709c0fe0 100644 --- a/airflow_client/test/test_connection.py +++ b/airflow_client/test/test_connection.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_connection_all_of.py b/airflow_client/test/test_connection_all_of.py index d45080ab..a5d8d897 100644 --- a/airflow_client/test/test_connection_all_of.py +++ b/airflow_client/test/test_connection_all_of.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_connection_api.py b/airflow_client/test/test_connection_api.py index 92fad453..c17b079f 100644 --- a/airflow_client/test/test_connection_api.py +++ b/airflow_client/test/test_connection_api.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_connection_collection.py b/airflow_client/test/test_connection_collection.py index fb9c2dc3..ace1f8a7 100644 --- a/airflow_client/test/test_connection_collection.py +++ b/airflow_client/test/test_connection_collection.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_connection_collection_all_of.py b/airflow_client/test/test_connection_collection_all_of.py index e8b8e3fb..16536f7e 100644 --- a/airflow_client/test/test_connection_collection_all_of.py +++ b/airflow_client/test/test_connection_collection_all_of.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_connection_collection_item.py b/airflow_client/test/test_connection_collection_item.py index 72857ab5..1cc1839f 100644 --- a/airflow_client/test/test_connection_collection_item.py +++ b/airflow_client/test/test_connection_collection_item.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_connection_test.py b/airflow_client/test/test_connection_test.py index f28da1af..e867a8fe 100644 --- a/airflow_client/test/test_connection_test.py +++ b/airflow_client/test/test_connection_test.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_cron_expression.py b/airflow_client/test/test_cron_expression.py index bf339db1..101c56f3 100644 --- a/airflow_client/test/test_cron_expression.py +++ b/airflow_client/test/test_cron_expression.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_dag.py b/airflow_client/test/test_dag.py index 0609f826..abfce353 100644 --- a/airflow_client/test/test_dag.py +++ b/airflow_client/test/test_dag.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_dag_api.py b/airflow_client/test/test_dag_api.py index d2e53e73..2bfc1dd7 100644 --- a/airflow_client/test/test_dag_api.py +++ b/airflow_client/test/test_dag_api.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_dag_collection.py b/airflow_client/test/test_dag_collection.py index 160c9479..5d0dd54f 100644 --- a/airflow_client/test/test_dag_collection.py +++ b/airflow_client/test/test_dag_collection.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_dag_collection_all_of.py b/airflow_client/test/test_dag_collection_all_of.py index b67d5830..791acd35 100644 --- a/airflow_client/test/test_dag_collection_all_of.py +++ b/airflow_client/test/test_dag_collection_all_of.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_dag_detail.py b/airflow_client/test/test_dag_detail.py index 71ca0424..351e8d4c 100644 --- a/airflow_client/test/test_dag_detail.py +++ b/airflow_client/test/test_dag_detail.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) @@ -32,14 +15,14 @@ import airflow_client.client from airflow_client.client.model.dag import DAG from airflow_client.client.model.dag_detail_all_of import DAGDetailAllOf +from airflow_client.client.model.nullable_time_delta import NullableTimeDelta from airflow_client.client.model.schedule_interval import ScheduleInterval from airflow_client.client.model.tag import Tag -from airflow_client.client.model.time_delta import TimeDelta globals()['DAG'] = DAG globals()['DAGDetailAllOf'] = DAGDetailAllOf +globals()['NullableTimeDelta'] = NullableTimeDelta globals()['ScheduleInterval'] = ScheduleInterval globals()['Tag'] = Tag -globals()['TimeDelta'] = TimeDelta from airflow_client.client.model.dag_detail import DAGDetail diff --git a/airflow_client/test/test_dag_detail_all_of.py b/airflow_client/test/test_dag_detail_all_of.py index cbac8269..a440dbc8 100644 --- a/airflow_client/test/test_dag_detail_all_of.py +++ b/airflow_client/test/test_dag_detail_all_of.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) @@ -30,8 +13,8 @@ import unittest import airflow_client.client -from airflow_client.client.model.time_delta import TimeDelta -globals()['TimeDelta'] = TimeDelta +from airflow_client.client.model.nullable_time_delta import NullableTimeDelta +globals()['NullableTimeDelta'] = NullableTimeDelta from airflow_client.client.model.dag_detail_all_of import DAGDetailAllOf diff --git a/airflow_client/test/test_dag_run.py b/airflow_client/test/test_dag_run.py index a74aba53..44fcad48 100644 --- a/airflow_client/test/test_dag_run.py +++ b/airflow_client/test/test_dag_run.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_dag_run_api.py b/airflow_client/test/test_dag_run_api.py index 208f94c4..dd269363 100644 --- a/airflow_client/test/test_dag_run_api.py +++ b/airflow_client/test/test_dag_run_api.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_dag_run_collection.py b/airflow_client/test/test_dag_run_collection.py index db9840a7..51143bdf 100644 --- a/airflow_client/test/test_dag_run_collection.py +++ b/airflow_client/test/test_dag_run_collection.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_dag_run_collection_all_of.py b/airflow_client/test/test_dag_run_collection_all_of.py index 97beae09..e2accd49 100644 --- a/airflow_client/test/test_dag_run_collection_all_of.py +++ b/airflow_client/test/test_dag_run_collection_all_of.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_dag_state.py b/airflow_client/test/test_dag_state.py index 5c92eb1a..2dc45888 100644 --- a/airflow_client/test/test_dag_state.py +++ b/airflow_client/test/test_dag_state.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_error.py b/airflow_client/test/test_error.py index c9f09c6f..1ad2a014 100644 --- a/airflow_client/test/test_error.py +++ b/airflow_client/test/test_error.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_event_log.py b/airflow_client/test/test_event_log.py index d8dbee6a..f0d8b4ac 100644 --- a/airflow_client/test/test_event_log.py +++ b/airflow_client/test/test_event_log.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_event_log_api.py b/airflow_client/test/test_event_log_api.py index 10648288..ca337145 100644 --- a/airflow_client/test/test_event_log_api.py +++ b/airflow_client/test/test_event_log_api.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_event_log_collection.py b/airflow_client/test/test_event_log_collection.py index d648938e..012a498f 100644 --- a/airflow_client/test/test_event_log_collection.py +++ b/airflow_client/test/test_event_log_collection.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_event_log_collection_all_of.py b/airflow_client/test/test_event_log_collection_all_of.py index 261e5d1a..c0d5ae09 100644 --- a/airflow_client/test/test_event_log_collection_all_of.py +++ b/airflow_client/test/test_event_log_collection_all_of.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_extra_link.py b/airflow_client/test/test_extra_link.py index 5ae9b44a..4d284e03 100644 --- a/airflow_client/test/test_extra_link.py +++ b/airflow_client/test/test_extra_link.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_extra_link_collection.py b/airflow_client/test/test_extra_link_collection.py index 7b556924..2e20b186 100644 --- a/airflow_client/test/test_extra_link_collection.py +++ b/airflow_client/test/test_extra_link_collection.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_health_info.py b/airflow_client/test/test_health_info.py index 1dc7ff12..90c2ff34 100644 --- a/airflow_client/test/test_health_info.py +++ b/airflow_client/test/test_health_info.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_health_status.py b/airflow_client/test/test_health_status.py index 595e96ac..bec25b74 100644 --- a/airflow_client/test/test_health_status.py +++ b/airflow_client/test/test_health_status.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_import_error.py b/airflow_client/test/test_import_error.py index 67d93389..67832bd6 100644 --- a/airflow_client/test/test_import_error.py +++ b/airflow_client/test/test_import_error.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_import_error_api.py b/airflow_client/test/test_import_error_api.py index c561bab5..887a6450 100644 --- a/airflow_client/test/test_import_error_api.py +++ b/airflow_client/test/test_import_error_api.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_import_error_collection.py b/airflow_client/test/test_import_error_collection.py index fb24a325..fc9bc675 100644 --- a/airflow_client/test/test_import_error_collection.py +++ b/airflow_client/test/test_import_error_collection.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_import_error_collection_all_of.py b/airflow_client/test/test_import_error_collection_all_of.py index fa1fb274..50410982 100644 --- a/airflow_client/test/test_import_error_collection_all_of.py +++ b/airflow_client/test/test_import_error_collection_all_of.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_inline_response200.py b/airflow_client/test/test_inline_response200.py index 5bc7bbf2..876c7bc4 100644 --- a/airflow_client/test/test_inline_response200.py +++ b/airflow_client/test/test_inline_response200.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_inline_response2001.py b/airflow_client/test/test_inline_response2001.py index 3b83ad88..da0a5cb2 100644 --- a/airflow_client/test/test_inline_response2001.py +++ b/airflow_client/test/test_inline_response2001.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_list_dag_runs_form.py b/airflow_client/test/test_list_dag_runs_form.py index 8d905c94..619b2bba 100644 --- a/airflow_client/test/test_list_dag_runs_form.py +++ b/airflow_client/test/test_list_dag_runs_form.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_list_task_instance_form.py b/airflow_client/test/test_list_task_instance_form.py index d339f2b8..8d1b0db2 100644 --- a/airflow_client/test/test_list_task_instance_form.py +++ b/airflow_client/test/test_list_task_instance_form.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) @@ -30,6 +13,8 @@ import unittest import airflow_client.client +from airflow_client.client.model.task_state import TaskState +globals()['TaskState'] = TaskState from airflow_client.client.model.list_task_instance_form import ListTaskInstanceForm diff --git a/airflow_client/test/test_metadatabase_status.py b/airflow_client/test/test_metadatabase_status.py index 74ad30af..4fac452b 100644 --- a/airflow_client/test/test_metadatabase_status.py +++ b/airflow_client/test/test_metadatabase_status.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_monitoring_api.py b/airflow_client/test/test_monitoring_api.py index c25371a8..914aaf30 100644 --- a/airflow_client/test/test_monitoring_api.py +++ b/airflow_client/test/test_monitoring_api.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_nullable_sla_miss.py b/airflow_client/test/test_nullable_sla_miss.py new file mode 100644 index 00000000..432ecf00 --- /dev/null +++ b/airflow_client/test/test_nullable_sla_miss.py @@ -0,0 +1,38 @@ +""" + Airflow API (Stable) + + # Overview To facilitate management, Apache Airflow supports a range of REST API endpoints across its objects. This section provides an overview of the API design, methods, and supported use cases. Most of the endpoints accept `JSON` as input and return `JSON` responses. This means that you must usually add the following headers to your request: ``` Content-type: application/json Accept: application/json ``` ## Resources The term `resource` refers to a single type of object in the Airflow metadata. An API is broken up by its endpoint's corresponding resource. The name of a resource is typically plural and expressed in camelCase. Example: `dagRuns`. Resource names are used as part of endpoint URLs, as well as in API parameters and responses. ## CRUD Operations The platform supports **C**reate, **R**ead, **U**pdate, and **D**elete operations on most resources. You can review the standards for these operations and their standard parameters below. Some endpoints have special behavior as exceptions. ### Create To create a resource, you typically submit an HTTP `POST` request with the resource's required metadata in the request body. The response returns a `201 Created` response code upon success with the resource's metadata, including its internal `id`, in the response body. ### Read The HTTP `GET` request can be used to read a resource or to list a number of resources. A resource's `id` can be submitted in the request parameters to read a specific resource. The response usually returns a `200 OK` response code upon success, with the resource's metadata in the response body. If a `GET` request does not include a specific resource `id`, it is treated as a list request. The response usually returns a `200 OK` response code upon success, with an object containing a list of resources' metadata in the response body. When reading resources, some common query parameters are usually available. e.g.: ``` v1/connections?limit=25&offset=25 ``` |Query Parameter|Type|Description| |---------------|----|-----------| |limit|integer|Maximum number of objects to fetch. Usually 25 by default| |offset|integer|Offset after which to start returning objects. For use with limit query parameter.| ### Update Updating a resource requires the resource `id`, and is typically done using an HTTP `PATCH` request, with the fields to modify in the request body. The response usually returns a `200 OK` response code upon success, with information about the modified resource in the response body. ### Delete Deleting a resource requires the resource `id` and is typically executing via an HTTP `DELETE` request. The response usually returns a `204 No Content` response code upon success. ## Conventions - Resource names are plural and expressed in camelCase. - Names are consistent between URL parameter name and field name. - Field names are in snake_case. ```json { \"name\": \"string\", \"slots\": 0, \"occupied_slots\": 0, \"used_slots\": 0, \"queued_slots\": 0, \"open_slots\": 0 } ``` ### Update Mask Update mask is available as a query parameter in patch endpoints. It is used to notify the API which fields you want to update. Using `update_mask` makes it easier to update objects by helping the server know which fields to update in an object instead of updating all fields. The update request ignores any fields that aren't specified in the field mask, leaving them with their current values. Example: ``` resource = request.get('/resource/my-id').json() resource['my_field'] = 'new-value' request.patch('/resource/my-id?update_mask=my_field', data=json.dumps(resource)) ``` ## Versioning and Endpoint Lifecycle - API versioning is not synchronized to specific releases of the Apache Airflow. - APIs are designed to be backward compatible. - Any changes to the API will first go through a deprecation phase. # Summary of Changes | Airflow version | Description | |-|-| | v2.0 | Initial release | | v2.0.2 | Added /plugins endpoint | | v2.1 | New providers endpoint | # Trying the API You can use a third party airflow_client.client, such as [curl](https://curl.haxx.se/), [HTTPie](https://httpie.org/), [Postman](https://www.postman.com/) or [the Insomnia rest airflow_client.client](https://insomnia.rest/) to test the Apache Airflow API. Note that you will need to pass credentials data. For e.g., here is how to pause a DAG with [curl](https://curl.haxx.se/), when basic authorization is used: ```bash curl -X PATCH 'https://example.com/api/v1/dags/{dag_id}?update_mask=is_paused' \\ -H 'Content-Type: application/json' \\ --user \"username:password\" \\ -d '{ \"is_paused\": true }' ``` Using a graphical tool such as [Postman](https://www.postman.com/) or [Insomnia](https://insomnia.rest/), it is possible to import the API specifications directly: 1. Download the API specification by clicking the **Download** button at top of this document 2. Import the JSON specification in the graphical tool of your choice. - In *Postman*, you can click the **import** button at the top - With *Insomnia*, you can just drag-and-drop the file on the UI Note that with *Postman*, you can also generate code snippets by selecting a request and clicking on the **Code** button. ## Enabling CORS [Cross-origin resource sharing (CORS)](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) is a browser security feature that restricts HTTP requests that are initiated from scripts running in the browser. For details on enabling/configuring CORS, see [Enabling CORS](https://airflow.apache.org/docs/apache-airflow/stable/security/api.html). # Authentication To be able to meet the requirements of many organizations, Airflow supports many authentication methods, and it is even possible to add your own method. If you want to check which auth backend is currently set, you can use `airflow config get-value api auth_backend` command as in the example below. ```bash $ airflow config get-value api auth_backend airflow.api.auth.backend.basic_auth ``` The default is to deny all requests. For details on configuring the authentication, see [API Authorization](https://airflow.apache.org/docs/apache-airflow/stable/security/api.html). # Errors We follow the error response format proposed in [RFC 7807](https://tools.ietf.org/html/rfc7807) also known as Problem Details for HTTP APIs. As with our normal API responses, your airflow_client.client must be prepared to gracefully handle additional members of the response. ## Unauthenticated This indicates that the request has not been applied because it lacks valid authentication credentials for the target resource. Please check that you have valid credentials. ## PermissionDenied This response means that the server understood the request but refuses to authorize it because it lacks sufficient rights to the resource. It happens when you do not have the necessary permission to execute the action you performed. You need to get the appropriate permissions in other to resolve this error. ## BadRequest This response means that the server cannot or will not process the request due to something that is perceived to be a airflow_client.client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing). To resolve this, please ensure that your syntax is correct. ## NotFound This airflow_client.client error response indicates that the server cannot find the requested resource. ## MethodNotAllowed Indicates that the request method is known by the server but is not supported by the target resource. ## NotAcceptable The target resource does not have a current representation that would be acceptable to the user agent, according to the proactive negotiation header fields received in the request, and the server is unwilling to supply a default representation. ## AlreadyExists The request could not be completed due to a conflict with the current state of the target resource, e.g. the resource it tries to create already exists. ## Unknown This means that the server encountered an unexpected condition that prevented it from fulfilling the request. # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: dev@airflow.apache.org + Generated by: https://openapi-generator.tech +""" + + +import sys +import unittest + +import airflow_client.client +from airflow_client.client.model.sla_miss import SLAMiss +globals()['SLAMiss'] = SLAMiss +from airflow_client.client.model.nullable_sla_miss import NullableSLAMiss + + +class TestNullableSLAMiss(unittest.TestCase): + """NullableSLAMiss unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNullableSLAMiss(self): + """Test NullableSLAMiss""" + # FIXME: construct object with mandatory attributes with example values + # model = NullableSLAMiss() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/airflow_client/test/test_nullable_task_state.py b/airflow_client/test/test_nullable_task_state.py new file mode 100644 index 00000000..a1707f51 --- /dev/null +++ b/airflow_client/test/test_nullable_task_state.py @@ -0,0 +1,38 @@ +""" + Airflow API (Stable) + + # Overview To facilitate management, Apache Airflow supports a range of REST API endpoints across its objects. This section provides an overview of the API design, methods, and supported use cases. Most of the endpoints accept `JSON` as input and return `JSON` responses. This means that you must usually add the following headers to your request: ``` Content-type: application/json Accept: application/json ``` ## Resources The term `resource` refers to a single type of object in the Airflow metadata. An API is broken up by its endpoint's corresponding resource. The name of a resource is typically plural and expressed in camelCase. Example: `dagRuns`. Resource names are used as part of endpoint URLs, as well as in API parameters and responses. ## CRUD Operations The platform supports **C**reate, **R**ead, **U**pdate, and **D**elete operations on most resources. You can review the standards for these operations and their standard parameters below. Some endpoints have special behavior as exceptions. ### Create To create a resource, you typically submit an HTTP `POST` request with the resource's required metadata in the request body. The response returns a `201 Created` response code upon success with the resource's metadata, including its internal `id`, in the response body. ### Read The HTTP `GET` request can be used to read a resource or to list a number of resources. A resource's `id` can be submitted in the request parameters to read a specific resource. The response usually returns a `200 OK` response code upon success, with the resource's metadata in the response body. If a `GET` request does not include a specific resource `id`, it is treated as a list request. The response usually returns a `200 OK` response code upon success, with an object containing a list of resources' metadata in the response body. When reading resources, some common query parameters are usually available. e.g.: ``` v1/connections?limit=25&offset=25 ``` |Query Parameter|Type|Description| |---------------|----|-----------| |limit|integer|Maximum number of objects to fetch. Usually 25 by default| |offset|integer|Offset after which to start returning objects. For use with limit query parameter.| ### Update Updating a resource requires the resource `id`, and is typically done using an HTTP `PATCH` request, with the fields to modify in the request body. The response usually returns a `200 OK` response code upon success, with information about the modified resource in the response body. ### Delete Deleting a resource requires the resource `id` and is typically executing via an HTTP `DELETE` request. The response usually returns a `204 No Content` response code upon success. ## Conventions - Resource names are plural and expressed in camelCase. - Names are consistent between URL parameter name and field name. - Field names are in snake_case. ```json { \"name\": \"string\", \"slots\": 0, \"occupied_slots\": 0, \"used_slots\": 0, \"queued_slots\": 0, \"open_slots\": 0 } ``` ### Update Mask Update mask is available as a query parameter in patch endpoints. It is used to notify the API which fields you want to update. Using `update_mask` makes it easier to update objects by helping the server know which fields to update in an object instead of updating all fields. The update request ignores any fields that aren't specified in the field mask, leaving them with their current values. Example: ``` resource = request.get('/resource/my-id').json() resource['my_field'] = 'new-value' request.patch('/resource/my-id?update_mask=my_field', data=json.dumps(resource)) ``` ## Versioning and Endpoint Lifecycle - API versioning is not synchronized to specific releases of the Apache Airflow. - APIs are designed to be backward compatible. - Any changes to the API will first go through a deprecation phase. # Summary of Changes | Airflow version | Description | |-|-| | v2.0 | Initial release | | v2.0.2 | Added /plugins endpoint | | v2.1 | New providers endpoint | # Trying the API You can use a third party airflow_client.client, such as [curl](https://curl.haxx.se/), [HTTPie](https://httpie.org/), [Postman](https://www.postman.com/) or [the Insomnia rest airflow_client.client](https://insomnia.rest/) to test the Apache Airflow API. Note that you will need to pass credentials data. For e.g., here is how to pause a DAG with [curl](https://curl.haxx.se/), when basic authorization is used: ```bash curl -X PATCH 'https://example.com/api/v1/dags/{dag_id}?update_mask=is_paused' \\ -H 'Content-Type: application/json' \\ --user \"username:password\" \\ -d '{ \"is_paused\": true }' ``` Using a graphical tool such as [Postman](https://www.postman.com/) or [Insomnia](https://insomnia.rest/), it is possible to import the API specifications directly: 1. Download the API specification by clicking the **Download** button at top of this document 2. Import the JSON specification in the graphical tool of your choice. - In *Postman*, you can click the **import** button at the top - With *Insomnia*, you can just drag-and-drop the file on the UI Note that with *Postman*, you can also generate code snippets by selecting a request and clicking on the **Code** button. ## Enabling CORS [Cross-origin resource sharing (CORS)](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) is a browser security feature that restricts HTTP requests that are initiated from scripts running in the browser. For details on enabling/configuring CORS, see [Enabling CORS](https://airflow.apache.org/docs/apache-airflow/stable/security/api.html). # Authentication To be able to meet the requirements of many organizations, Airflow supports many authentication methods, and it is even possible to add your own method. If you want to check which auth backend is currently set, you can use `airflow config get-value api auth_backend` command as in the example below. ```bash $ airflow config get-value api auth_backend airflow.api.auth.backend.basic_auth ``` The default is to deny all requests. For details on configuring the authentication, see [API Authorization](https://airflow.apache.org/docs/apache-airflow/stable/security/api.html). # Errors We follow the error response format proposed in [RFC 7807](https://tools.ietf.org/html/rfc7807) also known as Problem Details for HTTP APIs. As with our normal API responses, your airflow_client.client must be prepared to gracefully handle additional members of the response. ## Unauthenticated This indicates that the request has not been applied because it lacks valid authentication credentials for the target resource. Please check that you have valid credentials. ## PermissionDenied This response means that the server understood the request but refuses to authorize it because it lacks sufficient rights to the resource. It happens when you do not have the necessary permission to execute the action you performed. You need to get the appropriate permissions in other to resolve this error. ## BadRequest This response means that the server cannot or will not process the request due to something that is perceived to be a airflow_client.client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing). To resolve this, please ensure that your syntax is correct. ## NotFound This airflow_client.client error response indicates that the server cannot find the requested resource. ## MethodNotAllowed Indicates that the request method is known by the server but is not supported by the target resource. ## NotAcceptable The target resource does not have a current representation that would be acceptable to the user agent, according to the proactive negotiation header fields received in the request, and the server is unwilling to supply a default representation. ## AlreadyExists The request could not be completed due to a conflict with the current state of the target resource, e.g. the resource it tries to create already exists. ## Unknown This means that the server encountered an unexpected condition that prevented it from fulfilling the request. # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: dev@airflow.apache.org + Generated by: https://openapi-generator.tech +""" + + +import sys +import unittest + +import airflow_client.client +from airflow_client.client.model.task_state import TaskState +globals()['TaskState'] = TaskState +from airflow_client.client.model.nullable_task_state import NullableTaskState + + +class TestNullableTaskState(unittest.TestCase): + """NullableTaskState unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNullableTaskState(self): + """Test NullableTaskState""" + # FIXME: construct object with mandatory attributes with example values + # model = NullableTaskState() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/airflow_client/test/test_nullable_time_delta.py b/airflow_client/test/test_nullable_time_delta.py new file mode 100644 index 00000000..055ff96f --- /dev/null +++ b/airflow_client/test/test_nullable_time_delta.py @@ -0,0 +1,38 @@ +""" + Airflow API (Stable) + + # Overview To facilitate management, Apache Airflow supports a range of REST API endpoints across its objects. This section provides an overview of the API design, methods, and supported use cases. Most of the endpoints accept `JSON` as input and return `JSON` responses. This means that you must usually add the following headers to your request: ``` Content-type: application/json Accept: application/json ``` ## Resources The term `resource` refers to a single type of object in the Airflow metadata. An API is broken up by its endpoint's corresponding resource. The name of a resource is typically plural and expressed in camelCase. Example: `dagRuns`. Resource names are used as part of endpoint URLs, as well as in API parameters and responses. ## CRUD Operations The platform supports **C**reate, **R**ead, **U**pdate, and **D**elete operations on most resources. You can review the standards for these operations and their standard parameters below. Some endpoints have special behavior as exceptions. ### Create To create a resource, you typically submit an HTTP `POST` request with the resource's required metadata in the request body. The response returns a `201 Created` response code upon success with the resource's metadata, including its internal `id`, in the response body. ### Read The HTTP `GET` request can be used to read a resource or to list a number of resources. A resource's `id` can be submitted in the request parameters to read a specific resource. The response usually returns a `200 OK` response code upon success, with the resource's metadata in the response body. If a `GET` request does not include a specific resource `id`, it is treated as a list request. The response usually returns a `200 OK` response code upon success, with an object containing a list of resources' metadata in the response body. When reading resources, some common query parameters are usually available. e.g.: ``` v1/connections?limit=25&offset=25 ``` |Query Parameter|Type|Description| |---------------|----|-----------| |limit|integer|Maximum number of objects to fetch. Usually 25 by default| |offset|integer|Offset after which to start returning objects. For use with limit query parameter.| ### Update Updating a resource requires the resource `id`, and is typically done using an HTTP `PATCH` request, with the fields to modify in the request body. The response usually returns a `200 OK` response code upon success, with information about the modified resource in the response body. ### Delete Deleting a resource requires the resource `id` and is typically executing via an HTTP `DELETE` request. The response usually returns a `204 No Content` response code upon success. ## Conventions - Resource names are plural and expressed in camelCase. - Names are consistent between URL parameter name and field name. - Field names are in snake_case. ```json { \"name\": \"string\", \"slots\": 0, \"occupied_slots\": 0, \"used_slots\": 0, \"queued_slots\": 0, \"open_slots\": 0 } ``` ### Update Mask Update mask is available as a query parameter in patch endpoints. It is used to notify the API which fields you want to update. Using `update_mask` makes it easier to update objects by helping the server know which fields to update in an object instead of updating all fields. The update request ignores any fields that aren't specified in the field mask, leaving them with their current values. Example: ``` resource = request.get('/resource/my-id').json() resource['my_field'] = 'new-value' request.patch('/resource/my-id?update_mask=my_field', data=json.dumps(resource)) ``` ## Versioning and Endpoint Lifecycle - API versioning is not synchronized to specific releases of the Apache Airflow. - APIs are designed to be backward compatible. - Any changes to the API will first go through a deprecation phase. # Summary of Changes | Airflow version | Description | |-|-| | v2.0 | Initial release | | v2.0.2 | Added /plugins endpoint | | v2.1 | New providers endpoint | # Trying the API You can use a third party airflow_client.client, such as [curl](https://curl.haxx.se/), [HTTPie](https://httpie.org/), [Postman](https://www.postman.com/) or [the Insomnia rest airflow_client.client](https://insomnia.rest/) to test the Apache Airflow API. Note that you will need to pass credentials data. For e.g., here is how to pause a DAG with [curl](https://curl.haxx.se/), when basic authorization is used: ```bash curl -X PATCH 'https://example.com/api/v1/dags/{dag_id}?update_mask=is_paused' \\ -H 'Content-Type: application/json' \\ --user \"username:password\" \\ -d '{ \"is_paused\": true }' ``` Using a graphical tool such as [Postman](https://www.postman.com/) or [Insomnia](https://insomnia.rest/), it is possible to import the API specifications directly: 1. Download the API specification by clicking the **Download** button at top of this document 2. Import the JSON specification in the graphical tool of your choice. - In *Postman*, you can click the **import** button at the top - With *Insomnia*, you can just drag-and-drop the file on the UI Note that with *Postman*, you can also generate code snippets by selecting a request and clicking on the **Code** button. ## Enabling CORS [Cross-origin resource sharing (CORS)](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) is a browser security feature that restricts HTTP requests that are initiated from scripts running in the browser. For details on enabling/configuring CORS, see [Enabling CORS](https://airflow.apache.org/docs/apache-airflow/stable/security/api.html). # Authentication To be able to meet the requirements of many organizations, Airflow supports many authentication methods, and it is even possible to add your own method. If you want to check which auth backend is currently set, you can use `airflow config get-value api auth_backend` command as in the example below. ```bash $ airflow config get-value api auth_backend airflow.api.auth.backend.basic_auth ``` The default is to deny all requests. For details on configuring the authentication, see [API Authorization](https://airflow.apache.org/docs/apache-airflow/stable/security/api.html). # Errors We follow the error response format proposed in [RFC 7807](https://tools.ietf.org/html/rfc7807) also known as Problem Details for HTTP APIs. As with our normal API responses, your airflow_client.client must be prepared to gracefully handle additional members of the response. ## Unauthenticated This indicates that the request has not been applied because it lacks valid authentication credentials for the target resource. Please check that you have valid credentials. ## PermissionDenied This response means that the server understood the request but refuses to authorize it because it lacks sufficient rights to the resource. It happens when you do not have the necessary permission to execute the action you performed. You need to get the appropriate permissions in other to resolve this error. ## BadRequest This response means that the server cannot or will not process the request due to something that is perceived to be a airflow_client.client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing). To resolve this, please ensure that your syntax is correct. ## NotFound This airflow_client.client error response indicates that the server cannot find the requested resource. ## MethodNotAllowed Indicates that the request method is known by the server but is not supported by the target resource. ## NotAcceptable The target resource does not have a current representation that would be acceptable to the user agent, according to the proactive negotiation header fields received in the request, and the server is unwilling to supply a default representation. ## AlreadyExists The request could not be completed due to a conflict with the current state of the target resource, e.g. the resource it tries to create already exists. ## Unknown This means that the server encountered an unexpected condition that prevented it from fulfilling the request. # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: dev@airflow.apache.org + Generated by: https://openapi-generator.tech +""" + + +import sys +import unittest + +import airflow_client.client +from airflow_client.client.model.time_delta import TimeDelta +globals()['TimeDelta'] = TimeDelta +from airflow_client.client.model.nullable_time_delta import NullableTimeDelta + + +class TestNullableTimeDelta(unittest.TestCase): + """NullableTimeDelta unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNullableTimeDelta(self): + """Test NullableTimeDelta""" + # FIXME: construct object with mandatory attributes with example values + # model = NullableTimeDelta() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/airflow_client/test/test_permission_api.py b/airflow_client/test/test_permission_api.py index 6bfff686..8e50bec3 100644 --- a/airflow_client/test/test_permission_api.py +++ b/airflow_client/test/test_permission_api.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_plugin_api.py b/airflow_client/test/test_plugin_api.py index a7ab8500..893d1597 100644 --- a/airflow_client/test/test_plugin_api.py +++ b/airflow_client/test/test_plugin_api.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_plugin_collection.py b/airflow_client/test/test_plugin_collection.py index c6d44dcc..76401b0c 100644 --- a/airflow_client/test/test_plugin_collection.py +++ b/airflow_client/test/test_plugin_collection.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_plugin_collection_all_of.py b/airflow_client/test/test_plugin_collection_all_of.py index 3ae8a2a0..aa6ff720 100644 --- a/airflow_client/test/test_plugin_collection_all_of.py +++ b/airflow_client/test/test_plugin_collection_all_of.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_plugin_collection_item.py b/airflow_client/test/test_plugin_collection_item.py index 9e8b984f..005e4653 100644 --- a/airflow_client/test/test_plugin_collection_item.py +++ b/airflow_client/test/test_plugin_collection_item.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_pool.py b/airflow_client/test/test_pool.py index 6e04faaa..c1b4aca3 100644 --- a/airflow_client/test/test_pool.py +++ b/airflow_client/test/test_pool.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_pool_api.py b/airflow_client/test/test_pool_api.py index 74cad9ae..fa6e5284 100644 --- a/airflow_client/test/test_pool_api.py +++ b/airflow_client/test/test_pool_api.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_pool_collection.py b/airflow_client/test/test_pool_collection.py index ef8db993..c5b3628d 100644 --- a/airflow_client/test/test_pool_collection.py +++ b/airflow_client/test/test_pool_collection.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_pool_collection_all_of.py b/airflow_client/test/test_pool_collection_all_of.py index edf80a76..453f8b4f 100644 --- a/airflow_client/test/test_pool_collection_all_of.py +++ b/airflow_client/test/test_pool_collection_all_of.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_provider.py b/airflow_client/test/test_provider.py index 40230585..2a7d182a 100644 --- a/airflow_client/test/test_provider.py +++ b/airflow_client/test/test_provider.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_provider_api.py b/airflow_client/test/test_provider_api.py index 0cc59f59..c2040860 100644 --- a/airflow_client/test/test_provider_api.py +++ b/airflow_client/test/test_provider_api.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_provider_collection.py b/airflow_client/test/test_provider_collection.py index 2eeceb46..0bfe6dd8 100644 --- a/airflow_client/test/test_provider_collection.py +++ b/airflow_client/test/test_provider_collection.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_relative_delta.py b/airflow_client/test/test_relative_delta.py index 76c91d9f..146d3332 100644 --- a/airflow_client/test/test_relative_delta.py +++ b/airflow_client/test/test_relative_delta.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_resource.py b/airflow_client/test/test_resource.py index e93ff58e..aaefbd25 100644 --- a/airflow_client/test/test_resource.py +++ b/airflow_client/test/test_resource.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_role.py b/airflow_client/test/test_role.py index 27b5c2a0..cced8e26 100644 --- a/airflow_client/test/test_role.py +++ b/airflow_client/test/test_role.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_role_api.py b/airflow_client/test/test_role_api.py index 555d62bf..0a0f1e56 100644 --- a/airflow_client/test/test_role_api.py +++ b/airflow_client/test/test_role_api.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_role_collection.py b/airflow_client/test/test_role_collection.py index 8b37d899..52f053c9 100644 --- a/airflow_client/test/test_role_collection.py +++ b/airflow_client/test/test_role_collection.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_role_collection_all_of.py b/airflow_client/test/test_role_collection_all_of.py index 54fdac5b..2ff54c2d 100644 --- a/airflow_client/test/test_role_collection_all_of.py +++ b/airflow_client/test/test_role_collection_all_of.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_schedule_interval.py b/airflow_client/test/test_schedule_interval.py index cb5c0b22..5ace4ae0 100644 --- a/airflow_client/test/test_schedule_interval.py +++ b/airflow_client/test/test_schedule_interval.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_scheduler_status.py b/airflow_client/test/test_scheduler_status.py index 281c6513..3adeb6f3 100644 --- a/airflow_client/test/test_scheduler_status.py +++ b/airflow_client/test/test_scheduler_status.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_sla_miss.py b/airflow_client/test/test_sla_miss.py index b4f1eb35..be30b76c 100644 --- a/airflow_client/test/test_sla_miss.py +++ b/airflow_client/test/test_sla_miss.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_tag.py b/airflow_client/test/test_tag.py index 5aa6df0d..f0c8fc11 100644 --- a/airflow_client/test/test_tag.py +++ b/airflow_client/test/test_tag.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_task.py b/airflow_client/test/test_task.py index 6e06b7f6..e1f173ad 100644 --- a/airflow_client/test/test_task.py +++ b/airflow_client/test/test_task.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) @@ -33,15 +16,15 @@ from airflow_client.client.model.class_reference import ClassReference from airflow_client.client.model.color import Color from airflow_client.client.model.dag import DAG +from airflow_client.client.model.nullable_time_delta import NullableTimeDelta from airflow_client.client.model.task_extra_links import TaskExtraLinks -from airflow_client.client.model.time_delta import TimeDelta from airflow_client.client.model.trigger_rule import TriggerRule from airflow_client.client.model.weight_rule import WeightRule globals()['ClassReference'] = ClassReference globals()['Color'] = Color globals()['DAG'] = DAG +globals()['NullableTimeDelta'] = NullableTimeDelta globals()['TaskExtraLinks'] = TaskExtraLinks -globals()['TimeDelta'] = TimeDelta globals()['TriggerRule'] = TriggerRule globals()['WeightRule'] = WeightRule from airflow_client.client.model.task import Task diff --git a/airflow_client/test/test_task_collection.py b/airflow_client/test/test_task_collection.py index b814fc92..ccb54727 100644 --- a/airflow_client/test/test_task_collection.py +++ b/airflow_client/test/test_task_collection.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_task_extra_links.py b/airflow_client/test/test_task_extra_links.py index c17b5ee3..3dbc6183 100644 --- a/airflow_client/test/test_task_extra_links.py +++ b/airflow_client/test/test_task_extra_links.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_task_instance.py b/airflow_client/test/test_task_instance.py index c075fc06..30a92d79 100644 --- a/airflow_client/test/test_task_instance.py +++ b/airflow_client/test/test_task_instance.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) @@ -30,10 +13,10 @@ import unittest import airflow_client.client -from airflow_client.client.model.sla_miss import SLAMiss -from airflow_client.client.model.task_state import TaskState -globals()['SLAMiss'] = SLAMiss -globals()['TaskState'] = TaskState +from airflow_client.client.model.nullable_sla_miss import NullableSLAMiss +from airflow_client.client.model.nullable_task_state import NullableTaskState +globals()['NullableSLAMiss'] = NullableSLAMiss +globals()['NullableTaskState'] = NullableTaskState from airflow_client.client.model.task_instance import TaskInstance diff --git a/airflow_client/test/test_task_instance_api.py b/airflow_client/test/test_task_instance_api.py index 06dd974d..49d8157e 100644 --- a/airflow_client/test/test_task_instance_api.py +++ b/airflow_client/test/test_task_instance_api.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_task_instance_collection.py b/airflow_client/test/test_task_instance_collection.py index e5c9826e..d24972f2 100644 --- a/airflow_client/test/test_task_instance_collection.py +++ b/airflow_client/test/test_task_instance_collection.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_task_instance_collection_all_of.py b/airflow_client/test/test_task_instance_collection_all_of.py index 63be6bed..5779113f 100644 --- a/airflow_client/test/test_task_instance_collection_all_of.py +++ b/airflow_client/test/test_task_instance_collection_all_of.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_task_instance_reference.py b/airflow_client/test/test_task_instance_reference.py index 271cfd31..97b1e94f 100644 --- a/airflow_client/test/test_task_instance_reference.py +++ b/airflow_client/test/test_task_instance_reference.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_task_instance_reference_collection.py b/airflow_client/test/test_task_instance_reference_collection.py index 6a4e5cdf..b8f4e713 100644 --- a/airflow_client/test/test_task_instance_reference_collection.py +++ b/airflow_client/test/test_task_instance_reference_collection.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_task_state.py b/airflow_client/test/test_task_state.py index 608be421..45142f50 100644 --- a/airflow_client/test/test_task_state.py +++ b/airflow_client/test/test_task_state.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_time_delta.py b/airflow_client/test/test_time_delta.py index ea8750f6..241e3e85 100644 --- a/airflow_client/test/test_time_delta.py +++ b/airflow_client/test/test_time_delta.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_trigger_rule.py b/airflow_client/test/test_trigger_rule.py index 1964f1cd..919fd848 100644 --- a/airflow_client/test/test_trigger_rule.py +++ b/airflow_client/test/test_trigger_rule.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_update_dag_run_state.py b/airflow_client/test/test_update_dag_run_state.py index 4ffb8bea..f8246a6c 100644 --- a/airflow_client/test/test_update_dag_run_state.py +++ b/airflow_client/test/test_update_dag_run_state.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_update_task_instances_state.py b/airflow_client/test/test_update_task_instances_state.py index f1549350..53645c28 100644 --- a/airflow_client/test/test_update_task_instances_state.py +++ b/airflow_client/test/test_update_task_instances_state.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_user.py b/airflow_client/test/test_user.py index 556d4880..6bf4a00f 100644 --- a/airflow_client/test/test_user.py +++ b/airflow_client/test/test_user.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_user_all_of.py b/airflow_client/test/test_user_all_of.py index 7269b8f6..69000a66 100644 --- a/airflow_client/test/test_user_all_of.py +++ b/airflow_client/test/test_user_all_of.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_user_api.py b/airflow_client/test/test_user_api.py index b8a18bc5..08a95b3c 100644 --- a/airflow_client/test/test_user_api.py +++ b/airflow_client/test/test_user_api.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_user_collection.py b/airflow_client/test/test_user_collection.py index 96df4c9f..dc5aa3c7 100644 --- a/airflow_client/test/test_user_collection.py +++ b/airflow_client/test/test_user_collection.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_user_collection_all_of.py b/airflow_client/test/test_user_collection_all_of.py index 465cb77d..7b280bc4 100644 --- a/airflow_client/test/test_user_collection_all_of.py +++ b/airflow_client/test/test_user_collection_all_of.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_user_collection_item.py b/airflow_client/test/test_user_collection_item.py index e23fdcc1..0a3d5eb6 100644 --- a/airflow_client/test/test_user_collection_item.py +++ b/airflow_client/test/test_user_collection_item.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_user_collection_item_roles.py b/airflow_client/test/test_user_collection_item_roles.py index 8f734d7f..58abd4fd 100644 --- a/airflow_client/test/test_user_collection_item_roles.py +++ b/airflow_client/test/test_user_collection_item_roles.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_variable.py b/airflow_client/test/test_variable.py index f1ce9d47..9c6cc595 100644 --- a/airflow_client/test/test_variable.py +++ b/airflow_client/test/test_variable.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_variable_all_of.py b/airflow_client/test/test_variable_all_of.py index 13cba8e9..83959f89 100644 --- a/airflow_client/test/test_variable_all_of.py +++ b/airflow_client/test/test_variable_all_of.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_variable_api.py b/airflow_client/test/test_variable_api.py index 6accee5e..27569764 100644 --- a/airflow_client/test/test_variable_api.py +++ b/airflow_client/test/test_variable_api.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_variable_collection.py b/airflow_client/test/test_variable_collection.py index 43f45908..82a725fa 100644 --- a/airflow_client/test/test_variable_collection.py +++ b/airflow_client/test/test_variable_collection.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_variable_collection_all_of.py b/airflow_client/test/test_variable_collection_all_of.py index 2c57dea5..16848f99 100644 --- a/airflow_client/test/test_variable_collection_all_of.py +++ b/airflow_client/test/test_variable_collection_all_of.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_variable_collection_item.py b/airflow_client/test/test_variable_collection_item.py index 643841eb..02e42438 100644 --- a/airflow_client/test/test_variable_collection_item.py +++ b/airflow_client/test/test_variable_collection_item.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_version_info.py b/airflow_client/test/test_version_info.py index 9accd6df..bf66cf75 100644 --- a/airflow_client/test/test_version_info.py +++ b/airflow_client/test/test_version_info.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_weight_rule.py b/airflow_client/test/test_weight_rule.py index 9ec7fc16..af2fd810 100644 --- a/airflow_client/test/test_weight_rule.py +++ b/airflow_client/test/test_weight_rule.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_x_com.py b/airflow_client/test/test_x_com.py index 1897a89b..a4f0acf3 100644 --- a/airflow_client/test/test_x_com.py +++ b/airflow_client/test/test_x_com.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_x_com_all_of.py b/airflow_client/test/test_x_com_all_of.py index bc3c75dd..e68e7538 100644 --- a/airflow_client/test/test_x_com_all_of.py +++ b/airflow_client/test/test_x_com_all_of.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_x_com_api.py b/airflow_client/test/test_x_com_api.py index 6f3e8599..05fc0cd5 100644 --- a/airflow_client/test/test_x_com_api.py +++ b/airflow_client/test/test_x_com_api.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_x_com_collection.py b/airflow_client/test/test_x_com_collection.py index cf94cad3..1bee684c 100644 --- a/airflow_client/test/test_x_com_collection.py +++ b/airflow_client/test/test_x_com_collection.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_x_com_collection_all_of.py b/airflow_client/test/test_x_com_collection_all_of.py index d39187c0..b2225499 100644 --- a/airflow_client/test/test_x_com_collection_all_of.py +++ b/airflow_client/test/test_x_com_collection_all_of.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable) diff --git a/airflow_client/test/test_x_com_collection_item.py b/airflow_client/test/test_x_com_collection_item.py index 3a73637a..f93949c6 100644 --- a/airflow_client/test/test_x_com_collection_item.py +++ b/airflow_client/test/test_x_com_collection_item.py @@ -1,20 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - """ Airflow API (Stable)