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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
9 changes: 9 additions & 0 deletions airflow_client/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
32 changes: 3 additions & 29 deletions airflow_client/README.md
Original file line number Diff line number Diff line change
@@ -1,22 +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.
-->

# Apache Airflow Python Client
# Overview

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down
17 changes: 0 additions & 17 deletions airflow_client/client/__init__.py
Original file line number Diff line number Diff line change
@@ -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

"""
Expand Down
17 changes: 0 additions & 17 deletions airflow_client/client/api/__init__.py
Original file line number Diff line number Diff line change
@@ -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
22 changes: 1 addition & 21 deletions airflow_client/client/api/config_api.py
Original file line number Diff line number Diff line change
@@ -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)

Expand Down Expand Up @@ -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',
Expand Down
50 changes: 8 additions & 42 deletions airflow_client/client/api/connection_api.py
Original file line number Diff line number Diff line change
@@ -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)

Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down
Loading