10000 Version 2.5.1 (#63) · apache/airflow-client-python@f1b6e33 · GitHub
[go: up one dir, main page]

Skip to content

Commit f1b6e33

Browse files
Version 2.5.1 (#63)
1 parent 38dfb51 commit f1b6e33

Some content is hidden

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

44 files changed

+1771
-708
lines changed

CHANGELOG.md

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

20+
# v2.5.1
21+
22+
Apache Airflow API version: 2.5.1
23+
24+
### Major changes:
25+
26+
- NA
27+
28+
### Major fixes:
29+
30+
- Fix authentication issues by regenerating the client with proper security schemas
31+
32+
### New API supported:
33+
34+
- NA
35+
2036
# v2.5.0
2137

2238
Apache Airflow API version: 2.5.x

airflow_client/README.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ fulfilling the request.
231231
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
232232

233233
- API version: 2.5.0
234-
- Package version: 2.3.0
234+
- Package version: 2.5.1
235235
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
236236
For more information, please visit [https://airflow.apache.org](https://airflow.apache.org)
237237

@@ -286,6 +286,16 @@ configuration = client.Configuration(
286286
host = "http://localhost/api/v1"
287287
)
288288

289+
# The client must configure the authentication and authorization parameters
290+
# in accordance with the API server security policy.
291+
# Examples for each auth method are provided below, use the example that
292+
# satisfies your auth use case.
293+
294+
# Configure HTTP basic authorization: Basic
295+
configuration = client.Configuration(
296+
username = 'YOUR_USERNAME',
297+
password = 'YOUR_PASSWORD'
298+
)
289299

290300

291301
# Enter a context with an instance of the API client
@@ -325,6 +335,8 @@ Class | Method | HTTP request | Description
325335
*DAGApi* | [**patch_dags**](docs/DAGApi.md#patch_dags) | **PATCH** /dags | Update DAGs
326336
*DAGApi* | [**post_clear_task_instances**](docs/DAGApi.md#post_clear_task_instances) | **POST** /dags/{dag_id}/clearTaskInstances | Clear a set of task instances
327337
*DAGApi* | [**post_set_task_instances_state**](docs/DAGApi.md#post_set_task_instances_state) | **POST** /dags/{dag_id}/updateTaskInstancesState | Set a state of task instances
338+
*DAGApi* | [**set_mapped_task_instance_note**](docs/DAGApi.md#set_mapped_task_instance_note) | **PATCH** /dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/{map_index}/setNote | Update the TaskInstance note.
339+
*DAGApi* | [**set_task_instance_note**](docs/DAGApi.md#set_task_instance_note) | **PATCH** /dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/setNote | Update the TaskInstance note.
328340
*DAGRunApi* | [**clear_dag_run**](docs/DAGRunApi.md#clear_dag_run) | **POST** /dags/{dag_id}/dagRuns/{dag_run_id}/clear | Clear a DAG run
329341
*DAGRunApi* | [**delete_dag_run**](docs/DAGRunApi.md#delete_dag_run) | **DELETE** /dags/{dag_id}/dagRuns/{dag_run_id} | Delete a DAG run
330342
*DAGRunApi* | [**get_dag_run**](docs/DAGRunApi.md#get_dag_run) | **GET** /dags/{dag_id}/dagRuns/{dag_run_id} | Get a DAG run
@@ -367,8 +379,6 @@ Class | Method | HTTP request | Description
367379
*TaskInstanceApi* | [**get_task_instances_batch**](docs/TaskInstanceApi.md#get_task_instances_batch) | **POST** /dags/~/dagRuns/~/taskInstances/list | List task instances (batch)
368380
*TaskInstanceApi* | [**patch_mapped_task_instance**](docs/TaskInstanceApi.md#patch_mapped_task_instance) | **PATCH** /dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/{map_index} | Updates the state of a mapped task instance
369381
*TaskInstanceApi* | [**patch_task_instance**](docs/TaskInstanceApi.md#patch_task_instance) | **PATCH** /dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id} | Updates the state of a task instance
370-
*TaskInstanceApi* | [**set_mapped_task_instance_note**](docs/TaskInstanceApi.md#set_mapped_task_instance_note) | **PATCH** /dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/{map_index}/setNote | Update the TaskInstance note.
371-
*TaskInstanceApi* | [**set_task_instance_note**](docs/TaskInstanceApi.md#set_task_instance_note) | **PATCH** /dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/setNote | Update the TaskInstance note.
372382
*UserApi* | [**delete_user**](docs/UserApi.md#delete_user) | **DELETE** /users/{username} | Delete a user
373383
*UserApi* | [**get_user**](docs/UserApi.md#get_user) | **GET** /users/{username} | Get a user
374384
*UserApi* | [**get_users**](docs/UserApi.md#get_users) | **GET** /users | List users

airflow_client/client/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"""
2929

3030

31-
__version__ = "2.3.0"
31+
__version__ = "2.5.1"
3232

3333
# import ApiClient
3434
from airflow_client.client.api_client import ApiClient

airflow_client/client/api/config_api.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,10 @@ def __init__(self, api_client=None):
5757
self.get_config_endpoint = _Endpoint(
5858
settings={
5959
'response_type': (Config,),
60-
'auth': [],
60+
'auth': [
61+
'Basic',
62+
'Kerberos'
63+
],
6164
'endpoint_path': '/config',
6265
'operation_id': 'get_config',
6366
'http_method': 'GET',

airflow_client/client/api/connection_api.py

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,10 @@ def __init__(self, api_client=None):
5959
self.delete_connection_endpoint = _Endpoint(
6060
settings={
6161
'response_type': None,
62-
'auth': [],
62+
'auth': [
63+
'Basic',
64+
'Kerberos'
65+
],
6366
'endpoint_path': '/connections/{connection_id}',
6467
'operation_id': 'delete_connection',
6568
'http_method': 'DELETE',
@@ -108,7 +111,10 @@ def __init__(self, api_client=None):
108111
self.get_connection_endpoint = _Endpoint(
109112
settings={
110113
'response_type': (Connection,),
111-
'auth': [],
114+
'auth': [
115+
'Basic',
116+
'Kerberos'
117+
],
112118
'endpoint_path': '/connections/{connection_id}',
113119
'operation_id': 'get_connection',
114120
'http_method': 'GET',
@@ -157,7 +163,10 @@ def __init__(self, api_client=None):
157163
self.get_connections_endpoint = _Endpoint(
158164
settings={
159165
'response_type': (ConnectionCollection,),
160-
'auth': [],
166+
'auth': [
167+
'Basic',
168+
'Kerberos'
169+
],
161170
'endpoint_path': '/connections',
162171
'operation_id': 'get_connections',
163172
'http_method': 'GET',
@@ -219,7 +228,10 @@ def __init__(self, api_client=None):
219228
self.patch_connection_endpoint = _Endpoint(
220229
settings={
221230
'response_type': (Connection,),
222-
'auth': [],
231+
'auth': [
232+
'Basic',
233+
'Kerberos'
234+
],
223235
'endpoint_path': '/connections/{connection_id}',
224236
'operation_id': 'patch_connection',
225237
'http_method': 'PATCH',
@@ -281,7 +293,10 @@ def __init__(self, api_client=None):
281293
self.post_connection_endpoint = _Endpoint(
282294
settings={
283295
'response_type': (Connection,),
284-
'auth': [],
296+
'auth': [
297+
'Basic',
298+
'Kerberos'
299+
],
285300
'endpoint_path': '/connections',
286301
'operation_id': 'post_connection',
287302
'http_method': 'POST',
@@ -331,7 +346,10 @@ def __init__(self, api_client=None):
331346
self.test_connection_endpoint = _Endpoint(
332347
settings={
333348
'response_type': (ConnectionTest,),
334-
'auth': [],
349+
'auth': [
350+
'Basic',
351+
'Kerberos'
352+
],
335353
'endpoint_path': '/connections/test',
336354
'operation_id': 'test_connection',
337355
'http_method': 'POST',

0 commit comments

Comments
 (0)
0