You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by ms...@apache.org on 2021/11/18 12:00:06 UTC
[airflow-client-python] branch master updated: Prepare release 2.2.0 (#36)
This is an automated email from the ASF dual-hosted git repository.
msumit pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airflow-client-python.git
The following commit(s) were added to refs/heads/master by this push:
new d12a10d Prepare release 2.2.0 (#36)
d12a10d is described below
commit d12a10dff10609025c6b41658075a262bb5b25ef
Author: Sumit Maheshwari <ms...@users.noreply.github.com>
AuthorDate: Thu Nov 18 17:29:57 2021 +0530
Prepare release 2.2.0 (#36)
Auto-generated code from Airflow 2.2.2
---
airflow_client/.openapi-generator-ignore | 16 -
airflow_client/.openapi-generator/FILES | 6 +
airflow_client/.openapi-generator/VERSION | 2 +-
airflow_client/README.md | 14 +-
airflow_client/client/__init__.py | 4 +-
airflow_client/client/api/config_api.py | 129 +-
airflow_client/client/api/connection_api.py | 816 ++++++-----
airflow_client/client/api/dag_api.py | 1416 +++++++++++---------
airflow_client/client/api/dag_run_api.py | 877 ++++++------
airflow_client/client/api/event_log_api.py | 273 ++--
airflow_client/client/api/import_error_api.py | 271 ++--
airflow_client/client/api/monitoring_api.py | 257 ++--
airflow_client/client/api/permission_api.py | 133 +-
airflow_client/client/api/plugin_api.py | 133 +-
airflow_client/client/api/pool_api.py | 697 +++++-----
airflow_client/client/api/provider_api.py | 131 +-
airflow_client/client/api/role_api.py | 697 +++++-----
airflow_client/client/api/task_instance_api.py | 793 ++++++-----
airflow_client/client/api/user_api.py | 645 +++++++--
airflow_client/client/api/variable_api.py | 703 +++++-----
airflow_client/client/api/x_com_api.py | 321 +++--
airflow_client/client/api_client.py | 23 +-
airflow_client/client/configuration.py | 6 +-
airflow_client/client/exceptions.py | 2 +-
airflow_client/client/model/action.py | 93 +-
airflow_client/client/model/action_collection.py | 118 +-
.../client/model/action_collection_all_of.py | 94 +-
airflow_client/client/model/action_resource.py | 95 +-
airflow_client/client/model/class_reference.py | 96 +-
airflow_client/client/model/clear_task_instance.py | 101 +-
airflow_client/client/model/collection_info.py | 93 +-
airflow_client/client/model/color.py | 101 +-
airflow_client/client/model/config.py | 94 +-
airflow_client/client/model/config_option.py | 96 +-
airflow_client/client/model/config_section.py | 96 +-
airflow_client/client/model/connection.py | 126 +-
airflow_client/client/model/connection_all_of.py | 96 +-
.../client/model/connection_collection.py | 118 +-
.../client/model/connection_collection_all_of.py | 94 +-
.../client/model/connection_collection_item.py | 98 +-
.../client/model/{user.py => connection_test.py} | 191 +--
airflow_client/client/model/cron_expression.py | 98 +-
airflow_client/client/model/dag.py | 116 +-
airflow_client/client/model/dag_collection.py | 118 +-
.../client/model/dag_collection_all_of.py | 94 +-
airflow_client/client/model/dag_detail.py | 155 ++-
airflow_client/client/model/dag_detail_all_of.py | 109 +-
airflow_client/client/model/dag_run.py | 126 +-
airflow_client/client/model/dag_run_collection.py | 118 +-
.../client/model/dag_run_collection_all_of.py | 94 +-
airflow_client/client/model/dag_state.py | 108 +-
airflow_client/client/model/error.py | 102 +-
airflow_client/client/model/event_log.py | 108 +-
.../client/model/event_log_collection.py | 118 +-
.../client/model/event_log_collection_all_of.py | 94 +-
airflow_client/client/model/extra_link.py | 98 +-
.../client/model/extra_link_collection.py | 94 +-
airflow_client/client/model/health_info.py | 95 +-
airflow_client/client/model/health_status.py | 101 +-
airflow_client/client/model/import_error.py | 100 +-
.../client/model/import_error_collection.py | 118 +-
.../client/model/import_error_collection_all_of.py | 94 +-
airflow_client/client/model/inline_response200.py | 94 +-
airflow_client/client/model/inline_response2001.py | 93 +-
airflow_client/client/model/list_dag_runs_form.py | 102 +-
.../client/model/list_task_instance_form.py | 104 +-
airflow_client/client/model/metadatabase_status.py | 94 +-
airflow_client/client/model/plugin_collection.py | 118 +-
.../client/model/plugin_collection_all_of.py | 94 +-
.../client/model/plugin_collection_item.py | 103 +-
airflow_client/client/model/pool.py | 102 +-
airflow_client/client/model/pool_collection.py | 118 +-
.../client/model/pool_collection_all_of.py | 94 +-
airflow_client/client/model/provider.py | 95 +-
airflow_client/client/model/provider_collection.py | 94 +-
airflow_client/client/model/relative_delta.py | 126 +-
airflow_client/client/model/resource.py | 93 +-
airflow_client/client/model/role.py | 95 +-
airflow_client/client/model/role_collection.py | 118 +-
.../client/model/role_collection_all_of.py | 94 +-
airflow_client/client/model/schedule_interval.py | 140 +-
airflow_client/client/model/scheduler_status.py | 96 +-
airflow_client/client/model/sla_miss.py | 100 +-
airflow_client/client/model/tag.py | 93 +-
airflow_client/client/model/task.py | 131 +-
airflow_client/client/model/task_collection.py | 94 +-
airflow_client/client/model/task_extra_links.py | 94 +-
airflow_client/client/model/task_instance.py | 117 +-
.../client/model/task_instance_collection.py | 118 +-
.../model/task_instance_collection_all_of.py | 94 +-
.../client/model/task_instance_reference.py | 100 +-
.../model/task_instance_reference_collection.py | 94 +-
airflow_client/client/model/task_state.py | 107 +-
airflow_client/client/model/time_delta.py | 102 +-
airflow_client/client/model/trigger_rule.py | 106 +-
.../model/{user.py => update_dag_run_state.py} | 191 +--
.../client/model/update_task_instances_state.py | 100 +-
airflow_client/client/model/user.py | 146 +-
airflow_client/client/model/user_all_of.py | 93 +-
airflow_client/client/model/user_collection.py | 118 +-
.../client/model/user_collection_all_of.py | 94 +-
.../client/model/user_collection_item.py | 122 +-
.../client/model/user_collection_item_roles.py | 93 +-
airflow_client/client/model/variable.py | 118 +-
airflow_client/client/model/variable_all_of.py | 93 +-
airflow_client/client/model/variable_collection.py | 118 +-
.../client/model/variable_collection_all_of.py | 94 +-
.../client/model/variable_collection_item.py | 93 +-
airflow_client/client/model/version_info.py | 94 +-
airflow_client/client/model/weight_rule.py | 101 +-
airflow_client/client/model/x_com.py | 122 +-
airflow_client/client/model/x_com_all_of.py | 93 +-
airflow_client/client/model/x_com_collection.py | 118 +-
.../client/model/x_com_collection_all_of.py | 94 +-
.../client/model/x_com_collection_item.py | 97 +-
airflow_client/client/model_utils.py | 483 ++++---
airflow_client/client/models/__init__.py | 2 +
airflow_client/client/rest.py | 10 +-
airflow_client/docs/Action.md | 1 +
airflow_client/docs/ActionCollectionAllOf.md | 1 +
airflow_client/docs/ActionResource.md | 1 +
airflow_client/docs/ClassReference.md | 1 +
airflow_client/docs/ClearTaskInstance.md | 1 +
airflow_client/docs/CollectionInfo.md | 1 +
airflow_client/docs/Config.md | 1 +
airflow_client/docs/ConfigApi.md | 2 +
airflow_client/docs/ConfigOption.md | 1 +
airflow_client/docs/ConfigSection.md | 1 +
airflow_client/docs/Connection.md | 2 +-
airflow_client/docs/ConnectionAllOf.md | 3 +-
airflow_client/docs/ConnectionApi.md | 97 +-
airflow_client/docs/ConnectionCollectionAllOf.md | 1 +
airflow_client/docs/ConnectionCollectionItem.md | 1 +
.../docs/{TriggerRule.md => ConnectionTest.md} | 8 +-
airflow_client/docs/CronExpression.md | 1 +
airflow_client/docs/DAG.md | 2 +
airflow_client/docs/DAGApi.md | 109 +-
airflow_client/docs/DAGCollectionAllOf.md | 1 +
airflow_client/docs/DAGDetail.md | 1 +
airflow_client/docs/DAGDetailAllOf.md | 1 +
airflow_client/docs/DAGRun.md | 6 +-
airflow_client/docs/DAGRunApi.md | 106 +-
airflow_client/docs/DAGRunCollectionAllOf.md | 1 +
airflow_client/docs/DagState.md | 2 +-
airflow_client/docs/Error.md | 1 +
airflow_client/docs/EventLog.md | 1 +
airflow_client/docs/EventLogApi.md | 4 +
airflow_client/docs/EventLogCollectionAllOf.md | 1 +
airflow_client/docs/ExtraLink.md | 1 +
airflow_client/docs/ExtraLinkCollection.md | 1 +
airflow_client/docs/HealthInfo.md | 1 +
airflow_client/docs/ImportError.md | 1 +
airflow_client/docs/ImportErrorApi.md | 4 +
airflow_client/docs/ImportErrorCollectionAllOf.md | 1 +
airflow_client/docs/InlineResponse200.md | 1 +
airflow_client/docs/InlineResponse2001.md | 1 +
airflow_client/docs/ListDagRunsForm.md | 1 +
airflow_client/docs/ListTaskInstanceForm.md | 1 +
airflow_client/docs/MetadatabaseStatus.md | 1 +
airflow_client/docs/MonitoringApi.md | 4 +
airflow_client/docs/PermissionApi.md | 2 +
airflow_client/docs/PluginApi.md | 2 +
airflow_client/docs/PluginCollectionAllOf.md | 1 +
airflow_client/docs/PluginCollectionItem.md | 1 +
airflow_client/docs/Pool.md | 1 +
airflow_client/docs/PoolApi.md | 12 +-
airflow_client/docs/PoolCollectionAllOf.md | 1 +
airflow_client/docs/Provider.md | 1 +
airflow_client/docs/ProviderApi.md | 6 +-
airflow_client/docs/ProviderCollection.md | 1 +
airflow_client/docs/RelativeDelta.md | 1 +
airflow_client/docs/Resource.md | 1 +
airflow_client/docs/Role.md | 1 +
airflow_client/docs/RoleApi.md | 10 +
airflow_client/docs/RoleCollectionAllOf.md | 1 +
airflow_client/docs/SLAMiss.md | 1 +
airflow_client/docs/SchedulerStatus.md | 1 +
airflow_client/docs/Tag.md | 1 +
airflow_client/docs/Task.md | 1 +
airflow_client/docs/TaskCollection.md | 1 +
airflow_client/docs/TaskExtraLinks.md | 1 +
airflow_client/docs/TaskInstance.md | 3 +-
airflow_client/docs/TaskInstanceApi.md | 10 +
airflow_client/docs/TaskInstanceCollectionAllOf.md | 1 +
airflow_client/docs/TaskInstanceReference.md | 1 +
.../docs/TaskInstanceReferenceCollection.md | 1 +
airflow_client/docs/TaskState.md | 2 +-
airflow_client/docs/TimeDelta.md | 1 +
airflow_client/docs/TriggerRule.md | 2 +-
.../docs/{TriggerRule.md => UpdateDagRunState.md} | 6 +-
airflow_client/docs/UpdateTaskInstancesState.md | 1 +
airflow_client/docs/User.md | 2 +-
airflow_client/docs/UserAllOf.md | 1 +
airflow_client/docs/UserApi.md | 264 ++++
airflow_client/docs/UserCollectionAllOf.md | 1 +
airflow_client/docs/UserCollectionItem.md | 3 +-
airflow_client/docs/UserCollectionItemRoles.md | 1 +
airflow_client/docs/VariableAllOf.md | 1 +
airflow_client/docs/VariableApi.md | 14 +-
airflow_client/docs/VariableCollectionAllOf.md | 1 +
airflow_client/docs/VariableCollectionItem.md | 1 +
airflow_client/docs/VersionInfo.md | 1 +
airflow_client/docs/XComAllOf.md | 1 +
airflow_client/docs/XComApi.md | 4 +
airflow_client/docs/XComCollectionAllOf.md | 1 +
airflow_client/docs/XComCollectionItem.md | 1 +
airflow_client/test/test_action.py | 2 +-
airflow_client/test/test_action_collection.py | 2 +-
.../test/test_action_collection_all_of.py | 2 +-
airflow_client/test/test_action_resource.py | 2 +-
airflow_client/test/test_class_reference.py | 2 +-
airflow_client/test/test_clear_task_instance.py | 2 +-
airflow_client/test/test_collection_info.py | 2 +-
airflow_client/test/test_color.py | 2 +-
airflow_client/test/test_config.py | 2 +-
airflow_client/test/test_config_api.py | 2 +-
airflow_client/test/test_config_option.py | 2 +-
airflow_client/test/test_config_section.py | 2 +-
airflow_client/test/test_connection.py | 2 +-
airflow_client/test/test_connection_all_of.py | 2 +-
airflow_client/test/test_connection_api.py | 9 +-
airflow_client/test/test_connection_collection.py | 2 +-
.../test/test_connection_collection_all_of.py | 2 +-
.../test/test_connection_collection_item.py | 2 +-
.../{test_color.py => test_connection_test.py} | 14 +-
airflow_client/test/test_cron_expression.py | 2 +-
airflow_client/test/test_dag.py | 2 +-
airflow_client/test/test_dag_api.py | 9 +-
airflow_client/test/test_dag_collection.py | 2 +-
airflow_client/test/test_dag_collection_all_of.py | 2 +-
airflow_client/test/test_dag_detail.py | 2 +-
airflow_client/test/test_dag_detail_all_of.py | 2 +-
airflow_client/test/test_dag_run.py | 2 +-
airflow_client/test/test_dag_run_api.py | 9 +-
airflow_client/test/test_dag_run_collection.py | 2 +-
.../test/test_dag_run_collection_all_of.py | 2 +-
airflow_client/test/test_dag_state.py | 2 +-
airflow_client/test/test_error.py | 2 +-
airflow_client/test/test_event_log.py | 2 +-
airflow_client/test/test_event_log_api.py | 2 +-
airflow_client/test/test_event_log_collection.py | 2 +-
.../test/test_event_log_collection_all_of.py | 2 +-
airflow_client/test/test_extra_link.py | 2 +-
airflow_client/test/test_extra_link_collection.py | 2 +-
airflow_client/test/test_health_info.py | 2 +-
airflow_client/test/test_health_status.py | 2 +-
airflow_client/test/test_import_error.py | 2 +-
airflow_client/test/test_import_error_api.py | 2 +-
.../test/test_import_error_collection.py | 2 +-
.../test/test_import_error_collection_all_of.py | 2 +-
airflow_client/test/test_inline_response200.py | 2 +-
airflow_client/test/test_inline_response2001.py | 2 +-
airflow_client/test/test_list_dag_runs_form.py | 2 +-
.../test/test_list_task_instance_form.py | 2 +-
airflow_client/test/test_metadatabase_status.py | 2 +-
airflow_client/test/test_monitoring_api.py | 2 +-
airflow_client/test/test_permission_api.py | 2 +-
airflow_client/test/test_plugin_api.py | 2 +-
airflow_client/test/test_plugin_collection.py | 2 +-
.../test/test_plugin_collection_all_of.py | 2 +-
airflow_client/test/test_plugin_collection_item.py | 2 +-
airflow_client/test/test_pool.py | 2 +-
airflow_client/test/test_pool_api.py | 2 +-
airflow_client/test/test_pool_collection.py | 2 +-
airflow_client/test/test_pool_collection_all_of.py | 2 +-
airflow_client/test/test_provider.py | 2 +-
airflow_client/test/test_provider_api.py | 2 +-
airflow_client/test/test_provider_collection.py | 2 +-
airflow_client/test/test_relative_delta.py | 2 +-
airflow_client/test/test_resource.py | 2 +-
airflow_client/test/test_role.py | 2 +-
airflow_client/test/test_role_api.py | 2 +-
airflow_client/test/test_role_collection.py | 2 +-
airflow_client/test/test_role_collection_all_of.py | 2 +-
airflow_client/test/test_schedule_interval.py | 2 +-
airflow_client/test/test_scheduler_status.py | 2 +-
airflow_client/test/test_sla_miss.py | 2 +-
airflow_client/test/test_tag.py | 2 +-
airflow_client/test/test_task.py | 2 +-
airflow_client/test/test_task_collection.py | 2 +-
airflow_client/test/test_task_extra_links.py | 2 +-
airflow_client/test/test_task_instance.py | 2 +-
airflow_client/test/test_task_instance_api.py | 2 +-
.../test/test_task_instance_collection.py | 2 +-
.../test/test_task_instance_collection_all_of.py | 2 +-
.../test/test_task_instance_reference.py | 2 +-
.../test_task_instance_reference_collection.py | 2 +-
airflow_client/test/test_task_state.py | 2 +-
airflow_client/test/test_time_delta.py | 2 +-
airflow_client/test/test_trigger_rule.py | 2 +-
...sk_instance.py => test_update_dag_run_state.py} | 14 +-
.../test/test_update_task_instances_state.py | 2 +-
airflow_client/test/test_user.py | 2 +-
airflow_client/test/test_user_all_of.py | 2 +-
airflow_client/test/test_user_api.py | 23 +-
airflow_client/test/test_user_collection.py | 2 +-
airflow_client/test/test_user_collection_all_of.py | 2 +-
airflow_client/test/test_user_collection_item.py | 2 +-
.../test/test_user_collection_item_roles.py | 2 +-
airflow_client/test/test_variable.py | 2 +-
airflow_client/test/test_variable_all_of.py | 2 +-
airflow_client/test/test_variable_api.py | 2 +-
airflow_client/test/test_variable_collection.py | 2 +-
.../test/test_variable_collection_all_of.py | 2 +-
.../test/test_variable_collection_item.py | 2 +-
airflow_client/test/test_version_info.py | 2 +-
airflow_client/test/test_weight_rule.py | 2 +-
airflow_client/test/test_x_com.py | 2 +-
airflow_client/test/test_x_com_all_of.py | 2 +-
airflow_client/test/test_x_com_api.py | 2 +-
airflow_client/test/test_x_com_collection.py | 2 +-
.../test/test_x_com_collection_all_of.py | 2 +-
airflow_client/test/test_x_com_collection_item.py | 2 +-
setup.py | 2 +-
314 files changed, 14793 insertions(+), 4767 deletions(-)
diff --git a/airflow_client/.openapi-generator-ignore b/airflow_client/.openapi-generator-ignore
index 8ece76f..36151b8 100644
--- a/airflow_client/.openapi-generator-ignore
+++ b/airflow_client/.openapi-generator-ignore
@@ -1,19 +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.
.travis.yml
git_push.sh
.gitlab-ci.yml
diff --git a/airflow_client/.openapi-generator/FILES b/airflow_client/.openapi-generator/FILES
index 6e4d5a7..a9428fa 100644
--- a/airflow_client/.openapi-generator/FILES
+++ b/airflow_client/.openapi-generator/FILES
@@ -39,6 +39,7 @@ client/model/connection_all_of.py
client/model/connection_collection.py
client/model/connection_collection_all_of.py
client/model/connection_collection_item.py
+client/model/connection_test.py
client/model/cron_expression.py
client/model/dag.py
client/model/dag_collection.py
@@ -93,6 +94,7 @@ client/model/task_instance_reference_collection.py
client/model/task_state.py
client/model/time_delta.py
client/model/trigger_rule.py
+client/model/update_dag_run_state.py
client/model/update_task_instances_state.py
client/model/user.py
client/model/user_all_of.py
@@ -133,6 +135,7 @@ docs/ConnectionApi.md
docs/ConnectionCollection.md
docs/ConnectionCollectionAllOf.md
docs/ConnectionCollectionItem.md
+docs/ConnectionTest.md
docs/CronExpression.md
docs/DAG.md
docs/DAGApi.md
@@ -198,6 +201,7 @@ docs/TaskInstanceReferenceCollection.md
docs/TaskState.md
docs/TimeDelta.md
docs/TriggerRule.md
+docs/UpdateDagRunState.md
docs/UpdateTaskInstancesState.md
docs/User.md
docs/UserAllOf.md
@@ -239,6 +243,7 @@ test/test_connection_api.py
test/test_connection_collection.py
test/test_connection_collection_all_of.py
test/test_connection_collection_item.py
+test/test_connection_test.py
test/test_cron_expression.py
test/test_dag.py
test/test_dag_api.py
@@ -304,6 +309,7 @@ test/test_task_instance_reference_collection.py
test/test_task_state.py
test/test_time_delta.py
test/test_trigger_rule.py
+test/test_update_dag_run_state.py
test/test_update_task_instances_state.py
test/test_user.py
test/test_user_all_of.py
diff --git a/airflow_client/.openapi-generator/VERSION b/airflow_client/.openapi-generator/VERSION
index 3bff059..e230c83 100644
--- a/airflow_client/.openapi-generator/VERSION
+++ b/airflow_client/.openapi-generator/VERSION
@@ -1 +1 @@
-5.1.1
\ No newline at end of file
+5.3.0
\ No newline at end of file
diff --git a/airflow_client/README.md b/airflow_client/README.md
index 76565c1..9a705f0 100644
--- a/airflow_client/README.md
+++ b/airflow_client/README.md
@@ -143,7 +143,7 @@ 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 POST 'https://example.com/api/v1/dags/{dag_id}?update_mask=is_paused' \\
+curl -X PATCH 'https://example.com/api/v1/dags/{dag_id}?update_mask=is_paused' \\
-H 'Content-Type: application/json' \\
--user \"username:password\" \\
-d '{
@@ -228,7 +228,7 @@ 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, meaning that the resource already exists
+resource, e.g. the resource it tries to create already exists.
## Unknown
@@ -239,7 +239,7 @@ fulfilling the request.
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
- API version: 1.0.0
-- Package version: 2.1.0
+- Package version: 2.2.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
For more information, please visit [https://airflow.apache.org](https://airflow.apache.org)
@@ -331,6 +331,8 @@ Class | Method | HTTP request | Description
*ConnectionApi* | [**get_connections**](docs/ConnectionApi.md#get_connections) | **GET** /connections | List connections
*ConnectionApi* | [**patch_connection**](docs/ConnectionApi.md#patch_connection) | **PATCH** /connections/{connection_id} | Update a connection
*ConnectionApi* | [**post_connection**](docs/ConnectionApi.md#post_connection) | **POST** /connections | Create a connection
+*ConnectionApi* | [**test_connection**](docs/ConnectionApi.md#test_connection) | **POST** /connections/test | Test a connection
+*DAGApi* | [**delete_dag**](docs/DAGApi.md#delete_dag) | **DELETE** /dags/{dag_id} | Delete a DAG
*DAGApi* | [**get_dag**](docs/DAGApi.md#get_dag) | **GET** /dags/{dag_id} | Get basic information about a DAG
*DAGApi* | [**get_dag_details**](docs/DAGApi.md#get_dag_details) | **GET** /dags/{dag_id}/details | Get a simplified representation of DAG
*DAGApi* | [**get_dag_source**](docs/DAGApi.md#get_dag_source) | **GET** /dagSources/{file_token} | Get a source code
@@ -345,6 +347,7 @@ Class | Method | HTTP request | Description
*DAGRunApi* | [**get_dag_runs**](docs/DAGRunApi.md#get_dag_runs) | **GET** /dags/{dag_id}/dagRuns | List DAG runs
*DAGRunApi* | [**get_dag_runs_batch**](docs/DAGRunApi.md#get_dag_runs_batch) | **POST** /dags/~/dagRuns/list | List DAG runs (batch)
*DAGRunApi* | [**post_dag_run**](docs/DAGRunApi.md#post_dag_run) | **POST** /dags/{dag_id}/dagRuns | Trigger a new DAG run
+*DAGRunApi* | [**update_dag_run_state**](docs/DAGRunApi.md#update_dag_run_state) | **PATCH** /dags/{dag_id}/dagRuns/{dag_run_id} | Modify a DAG run
*EventLogApi* | [**get_event_log**](docs/EventLogApi.md#get_event_log) | **GET** /eventLogs/{event_log_id} | Get a log entry
*EventLogApi* | [**get_event_logs**](docs/EventLogApi.md#get_event_logs) | **GET** /eventLogs | List log entries
*ImportErrorApi* | [**get_import_error**](docs/ImportErrorApi.md#get_import_error) | **GET** /importErrors/{import_error_id} | Get an import error
@@ -369,8 +372,11 @@ Class | Method | HTTP request | Description
*TaskInstanceApi* | [**get_task_instance**](docs/TaskInstanceApi.md#get_task_instance) | **GET** /dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id} | Get a task instance
*TaskInstanceApi* | [**get_task_instances**](docs/TaskInstanceApi.md#get_task_instances) | **GET** /dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances | List task instances
*TaskInstanceApi* | [**get_task_instances_batch**](docs/TaskInstanceApi.md#get_task_instances_batch) | **POST** /dags/~/dagRuns/~/taskInstances/list | List task instances (batch)
+*UserApi* | [**delete_user**](docs/UserApi.md#delete_user) | **DELETE** /users/{username} | Delete a user
*UserApi* | [**get_user**](docs/UserApi.md#get_user) | **GET** /users/{username} | Get a user
*UserApi* | [**get_users**](docs/UserApi.md#get_users) | **GET** /users | List users
+*UserApi* | [**patch_user**](docs/UserApi.md#patch_user) | **PATCH** /users/{username} | Update a user
+*UserApi* | [**post_user**](docs/UserApi.md#post_user) | **POST** /users | Create a user
*VariableApi* | [**delete_variable**](docs/VariableApi.md#delete_variable) | **DELETE** /variables/{variable_key} | Delete a variable
*VariableApi* | [**get_variable**](docs/VariableApi.md#get_variable) | **GET** /variables/{variable_key} | Get a variable
*VariableApi* | [**get_variables**](docs/VariableApi.md#get_variables) | **GET** /variables | List variables
@@ -398,6 +404,7 @@ Class | Method | HTTP request | Description
- [ConnectionCollection](docs/ConnectionCollection.md)
- [ConnectionCollectionAllOf](docs/ConnectionCollectionAllOf.md)
- [ConnectionCollectionItem](docs/ConnectionCollectionItem.md)
+ - [ConnectionTest](docs/ConnectionTest.md)
- [CronExpression](docs/CronExpression.md)
- [DAG](docs/DAG.md)
- [DAGCollection](docs/DAGCollection.md)
@@ -452,6 +459,7 @@ Class | Method | HTTP request | Description
- [TaskState](docs/TaskState.md)
- [TimeDelta](docs/TimeDelta.md)
- [TriggerRule](docs/TriggerRule.md)
+ - [UpdateDagRunState](docs/UpdateDagRunState.md)
- [UpdateTaskInstancesState](docs/UpdateTaskInstancesState.md)
- [User](docs/User.md)
- [UserAllOf](docs/UserAllOf.md)
diff --git a/airflow_client/client/__init__.py b/airflow_client/client/__init__.py
index bf377f1..e70eb75 100644
--- a/airflow_client/client/__init__.py
+++ b/airflow_client/client/__init__.py
@@ -20,7 +20,7 @@
"""
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 th [...]
+ # 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 th [...]
The version of the OpenAPI document: 1.0.0
Contact: dev@airflow.apache.org
@@ -28,7 +28,7 @@
"""
-__version__ = "2.1.0"
+__version__ = "2.2.0"
# import ApiClient
from airflow_client.client.api_client import ApiClient
diff --git a/airflow_client/client/api/config_api.py b/airflow_client/client/api/config_api.py
index 7869af3..c540e49 100644
--- a/airflow_client/client/api/config_api.py
+++ b/airflow_client/client/api/config_api.py
@@ -18,7 +18,7 @@
"""
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 th [...]
+ # 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 th [...]
The version of the OpenAPI document: 1.0.0
Contact: dev@airflow.apache.org
@@ -54,68 +54,7 @@ class ConfigApi(object):
if api_client is None:
api_client = ApiClient()
self.api_client = api_client
-
- def __get_config(
- self,
- **kwargs
- ):
- """Get current configuration # noqa: E501
-
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
-
- >>> thread = api.get_config(async_req=True)
- >>> result = thread.get()
-
-
- Keyword Args:
- _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
- will be returned without reading/decoding response data.
- Default is True.
- _request_timeout (float/tuple): timeout setting for this request. If one
- number provided, it will be total request timeout. It can also
- be a pair (tuple) of (connection, read) timeouts.
- Default is None.
- _check_input_type (bool): specifies if type checking
- should be done one the data sent to the server.
- Default is True.
- _check_return_type (bool): specifies if type checking
- should be done one the data received from the server.
- Default is True.
- _host_index (int/None): specifies the index of the server
- that we want to use.
- Default is read from the configuration.
- async_req (bool): execute request asynchronously
-
- Returns:
- Config
- If the method is called asynchronously, returns the request
- thread.
- """
- kwargs['async_req'] = kwargs.get(
- 'async_req', False
- )
- kwargs['_return_http_data_only'] = kwargs.get(
- '_return_http_data_only', True
- )
- kwargs['_preload_content'] = kwargs.get(
- '_preload_content', True
- )
- kwargs['_request_timeout'] = kwargs.get(
- '_request_timeout', None
- )
- kwargs['_check_input_type'] = kwargs.get(
- '_check_input_type', True
- )
- kwargs['_check_return_type'] = kwargs.get(
- '_check_return_type', True
- )
- kwargs['_host_index'] = kwargs.get('_host_index')
- return self.call_with_http_info(**kwargs)
-
- self.get_config = _Endpoint(
+ self.get_config_endpoint = _Endpoint(
settings={
'response_type': (Config,),
'auth': [
@@ -159,6 +98,66 @@ class ConfigApi(object):
],
'content_type': [],
},
- api_client=api_client,
- callable=__get_config
+ api_client=api_client
+ )
+
+ def get_config(
+ self,
+ **kwargs
+ ):
+ """Get current configuration # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+
+ >>> thread = api.get_config(async_req=True)
+ >>> result = thread.get()
+
+
+ Keyword Args:
+ _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
+ will be returned without reading/decoding response data.
+ Default is True.
+ _request_timeout (int/float/tuple): timeout setting for this request. If
+ one number provided, it will be total request timeout. It can also
+ be a pair (tuple) of (connection, read) timeouts.
+ Default is None.
+ _check_input_type (bool): specifies if type checking
+ should be done one the data sent to the server.
+ Default is True.
+ _check_return_type (bool): specifies if type checking
+ should be done one the data received from the server.
+ Default is True.
+ _host_index (int/None): specifies the index of the server
+ that we want to use.
+ Default is read from the configuration.
+ async_req (bool): execute request asynchronously
+
+ Returns:
+ Config
+ If the method is called asynchronously, returns the request
+ thread.
+ """
+ kwargs['async_req'] = kwargs.get(
+ 'async_req', False
+ )
+ kwargs['_return_http_data_only'] = kwargs.get(
+ '_return_http_data_only', True
+ )
+ kwargs['_preload_content'] = kwargs.get(
+ '_preload_content', True
)
+ kwargs['_request_timeout'] = kwargs.get(
+ '_request_timeout', None
+ )
+ kwargs['_check_input_type'] = kwargs.get(
+ '_check_input_type', True
+ )
+ kwargs['_check_return_type'] = kwargs.get(
+ '_check_return_type', True
+ )
+ kwargs['_host_index'] = kwargs.get('_host_index')
+ return self.get_config_endpoint.call_with_http_info(**kwargs)
+
diff --git a/airflow_client/client/api/connection_api.py b/airflow_client/client/api/connection_api.py
index 4cecc3c..95a0c7a 100644
--- a/airflow_client/client/api/connection_api.py
+++ b/airflow_client/client/api/connection_api.py
@@ -18,7 +18,7 @@
"""
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 th [...]
+ # 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 th [...]
The version of the OpenAPI document: 1.0.0
Contact: dev@airflow.apache.org
@@ -41,6 +41,7 @@ from airflow_client.client.model_utils import ( # noqa: F401
)
from airflow_client.client.model.connection import Connection
from airflow_client.client.model.connection_collection import ConnectionCollection
+from airflow_client.client.model.connection_test import ConnectionTest
from airflow_client.client.model.error import Error
@@ -55,73 +56,7 @@ class ConnectionApi(object):
if api_client is None:
api_client = ApiClient()
self.api_client = api_client
-
- def __delete_connection(
- self,
- connection_id,
- **kwargs
- ):
- """Delete a connection # noqa: E501
-
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
-
- >>> thread = api.delete_connection(connection_id, async_req=True)
- >>> result = thread.get()
-
- Args:
- connection_id (str): The connection ID.
-
- Keyword Args:
- _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
- will be returned without reading/decoding response data.
- Default is True.
- _request_timeout (float/tuple): timeout setting for this request. If one
- number provided, it will be total request timeout. It can also
- be a pair (tuple) of (connection, read) timeouts.
- Default is None.
- _check_input_type (bool): specifies if type checking
- should be done one the data sent to the server.
- Default is True.
- _check_return_type (bool): specifies if type checking
- should be done one the data received from the server.
- Default is True.
- _host_index (int/None): specifies the index of the server
- that we want to use.
- Default is read from the configuration.
- async_req (bool): execute request asynchronously
-
- Returns:
- None
- If the method is called asynchronously, returns the request
- thread.
- """
- kwargs['async_req'] = kwargs.get(
- 'async_req', False
- )
- kwargs['_return_http_data_only'] = kwargs.get(
- '_return_http_data_only', True
- )
- kwargs['_preload_content'] = kwargs.get(
- '_preload_content', True
- )
- kwargs['_request_timeout'] = kwargs.get(
- '_request_timeout', None
- )
- kwargs['_check_input_type'] = kwargs.get(
- '_check_input_type', True
- )
- kwargs['_check_return_type'] = kwargs.get(
- '_check_return_type', True
- )
- kwargs['_host_index'] = kwargs.get('_host_index')
- kwargs['connection_id'] = \
- connection_id
- return self.call_with_http_info(**kwargs)
-
- self.delete_connection = _Endpoint(
+ self.delete_connection_endpoint = _Endpoint(
settings={
'response_type': None,
'auth': [
@@ -171,76 +106,9 @@ class ConnectionApi(object):
],
'content_type': [],
},
- api_client=api_client,
- callable=__delete_connection
- )
-
- def __get_connection(
- self,
- connection_id,
- **kwargs
- ):
- """Get a connection # noqa: E501
-
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
-
- >>> thread = api.get_connection(connection_id, async_req=True)
- >>> result = thread.get()
-
- Args:
- connection_id (str): The connection ID.
-
- Keyword Args:
- _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
- will be returned without reading/decoding response data.
- Default is True.
- _request_timeout (float/tuple): timeout setting for this request. If one
- number provided, it will be total request timeout. It can also
- be a pair (tuple) of (connection, read) timeouts.
- Default is None.
- _check_input_type (bool): specifies if type checking
- should be done one the data sent to the server.
- Default is True.
- _check_return_type (bool): specifies if type checking
- should be done one the data received from the server.
- Default is True.
- _host_index (int/None): specifies the index of the server
- that we want to use.
- Default is read from the configuration.
- async_req (bool): execute request asynchronously
-
- Returns:
- Connection
- If the method is called asynchronously, returns the request
- thread.
- """
- kwargs['async_req'] = kwargs.get(
- 'async_req', False
- )
- kwargs['_return_http_data_only'] = kwargs.get(
- '_return_http_data_only', True
- )
- kwargs['_preload_content'] = kwargs.get(
- '_preload_content', True
- )
- kwargs['_request_timeout'] = kwargs.get(
- '_request_timeout', None
- )
- kwargs['_check_input_type'] = kwargs.get(
- '_check_input_type', True
- )
- kwargs['_check_return_type'] = kwargs.get(
- '_check_return_type', True
- )
- kwargs['_host_index'] = kwargs.get('_host_index')
- kwargs['connection_id'] = \
- connection_id
- return self.call_with_http_info(**kwargs)
-
- self.get_connection = _Endpoint(
+ api_client=api_client
+ )
+ self.get_connection_endpoint = _Endpoint(
settings={
'response_type': (Connection,),
'auth': [
@@ -290,74 +158,9 @@ class ConnectionApi(object):
],
'content_type': [],
},
- api_client=api_client,
- callable=__get_connection
- )
-
- def __get_connections(
- self,
- **kwargs
- ):
- """List connections # noqa: E501
-
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
-
- >>> thread = api.get_connections(async_req=True)
- >>> result = thread.get()
-
-
- 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]
- _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
- will be returned without reading/decoding response data.
- Default is True.
- _request_timeout (float/tuple): timeout setting for this request. If one
- number provided, it will be total request timeout. It can also
- be a pair (tuple) of (connection, read) timeouts.
- Default is None.
- _check_input_type (bool): specifies if type checking
- should be done one the data sent to the server.
- Default is True.
- _check_return_type (bool): specifies if type checking
- should be done one the data received from the server.
- Default is True.
- _host_index (int/None): specifies the index of the server
- that we want to use.
- Default is read from the configuration.
- async_req (bool): execute request asynchronously
-
- Returns:
- ConnectionCollection
- If the method is called asynchronously, returns the request
- thread.
- """
- kwargs['async_req'] = kwargs.get(
- 'async_req', False
- )
- kwargs['_return_http_data_only'] = kwargs.get(
- '_return_http_data_only', True
- )
- kwargs['_preload_content'] = kwargs.get(
- '_preload_content', True
- )
- kwargs['_request_timeout'] = kwargs.get(
- '_request_timeout', None
- )
- kwargs['_check_input_type'] = kwargs.get(
- '_check_input_type', True
- )
- kwargs['_check_return_type'] = kwargs.get(
- '_check_return_type', True
- )
- kwargs['_host_index'] = kwargs.get('_host_index')
- return self.call_with_http_info(**kwargs)
-
- self.get_connections = _Endpoint(
+ api_client=api_client
+ )
+ self.get_connections_endpoint = _Endpoint(
settings={
'response_type': (ConnectionCollection,),
'auth': [
@@ -420,81 +223,9 @@ class ConnectionApi(object):
],
'content_type': [],
},
- api_client=api_client,
- callable=__get_connections
- )
-
- def __patch_connection(
- self,
- connection_id,
- connection,
- **kwargs
- ):
- """Update a connection # noqa: E501
-
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
-
- >>> thread = api.patch_connection(connection_id, connection, async_req=True)
- >>> result = thread.get()
-
- Args:
- connection_id (str): The connection ID.
- connection (Connection):
-
- Keyword Args:
- 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]
- _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
- will be returned without reading/decoding response data.
- Default is True.
- _request_timeout (float/tuple): timeout setting for this request. If one
- number provided, it will be total request timeout. It can also
- be a pair (tuple) of (connection, read) timeouts.
- Default is None.
- _check_input_type (bool): specifies if type checking
- should be done one the data sent to the server.
- Default is True.
- _check_return_type (bool): specifies if type checking
- should be done one the data received from the server.
- Default is True.
- _host_index (int/None): specifies the index of the server
- that we want to use.
- Default is read from the configuration.
- async_req (bool): execute request asynchronously
-
- Returns:
- Connection
- If the method is called asynchronously, returns the request
- thread.
- """
- kwargs['async_req'] = kwargs.get(
- 'async_req', False
- )
- kwargs['_return_http_data_only'] = kwargs.get(
- '_return_http_data_only', True
- )
- kwargs['_preload_content'] = kwargs.get(
- '_preload_content', True
- )
- kwargs['_request_timeout'] = kwargs.get(
- '_request_timeout', None
- )
- kwargs['_check_input_type'] = kwargs.get(
- '_check_input_type', True
- )
- kwargs['_check_return_type'] = kwargs.get(
- '_check_return_type', True
- )
- kwargs['_host_index'] = kwargs.get('_host_index')
- kwargs['connection_id'] = \
- connection_id
- kwargs['connection'] = \
- connection
- return self.call_with_http_info(**kwargs)
-
- self.patch_connection = _Endpoint(
+ api_client=api_client
+ )
+ self.patch_connection_endpoint = _Endpoint(
settings={
'response_type': (Connection,),
'auth': [
@@ -557,76 +288,9 @@ class ConnectionApi(object):
'application/json'
]
},
- api_client=api_client,
- callable=__patch_connection
- )
-
- def __post_connection(
- self,
- connection,
- **kwargs
- ):
- """Create a connection # noqa: E501
-
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
-
- >>> thread = api.post_connection(connection, async_req=True)
- >>> result = thread.get()
-
- Args:
- connection (Connection):
-
- Keyword Args:
- _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
- will be returned without reading/decoding response data.
- Default is True.
- _request_timeout (float/tuple): timeout setting for this request. If one
- number provided, it will be total request timeout. It can also
- be a pair (tuple) of (connection, read) timeouts.
- Default is None.
- _check_input_type (bool): specifies if type checking
- should be done one the data sent to the server.
- Default is True.
- _check_return_type (bool): specifies if type checking
- should be done one the data received from the server.
- Default is True.
- _host_index (int/None): specifies the index of the server
- that we want to use.
- Default is read from the configuration.
- async_req (bool): execute request asynchronously
-
- Returns:
- Connection
- If the method is called asynchronously, returns the request
- thread.
- """
- kwargs['async_req'] = kwargs.get(
- 'async_req', False
- )
- kwargs['_return_http_data_only'] = kwargs.get(
- '_return_http_data_only', True
- )
- kwargs['_preload_content'] = kwargs.get(
- '_preload_content', True
- )
- kwargs['_request_timeout'] = kwargs.get(
- '_request_timeout', None
- )
- kwargs['_check_input_type'] = kwargs.get(
- '_check_input_type', True
- )
- kwargs['_check_return_type'] = kwargs.get(
- '_check_return_type', True
- )
- kwargs['_host_index'] = kwargs.get('_host_index')
- kwargs['connection'] = \
- connection
- return self.call_with_http_info(**kwargs)
-
- self.post_connection = _Endpoint(
+ api_client=api_client
+ )
+ self.post_connection_endpoint = _Endpoint(
settings={
'response_type': (Connection,),
'auth': [
@@ -677,6 +341,452 @@ class ConnectionApi(object):
'application/json'
]
},
- api_client=api_client,
- callable=__post_connection
+ api_client=api_client
)
+ self.test_connection_endpoint = _Endpoint(
+ settings={
+ 'response_type': (ConnectionTest,),
+ 'auth': [
+ 'Basic',
+ 'Kerberos'
+ ],
+ 'endpoint_path': '/connections/test',
+ 'operation_id': 'test_connection',
+ 'http_method': 'POST',
+ 'servers': None,
+ },
+ params_map={
+ 'all': [
+ 'connection',
+ ],
+ 'required': [
+ 'connection',
+ ],
+ 'nullable': [
+ ],
+ 'enum': [
+ ],
+ 'validation': [
+ ]
+ },
+ root_map={
+ 'validations': {
+ },
+ 'allowed_values': {
+ },
+ 'openapi_types': {
+ 'connection':
+ (Connection,),
+ },
+ 'attribute_map': {
+ },
+ 'location_map': {
+ 'connection': 'body',
+ },
+ 'collection_format_map': {
+ }
+ },
+ headers_map={
+ 'accept': [
+ 'application/json'
+ ],
+ 'content_type': [
+ 'application/json'
+ ]
+ },
+ api_client=api_client
+ )
+
+ def delete_connection(
+ self,
+ connection_id,
+ **kwargs
+ ):
+ """Delete a connection # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+
+ >>> thread = api.delete_connection(connection_id, async_req=True)
+ >>> result = thread.get()
+
+ Args:
+ connection_id (str): The connection ID.
+
+ Keyword Args:
+ _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
+ will be returned without reading/decoding response data.
+ Default is True.
+ _request_timeout (int/float/tuple): timeout setting for this request. If
+ one number provided, it will be total request timeout. It can also
+ be a pair (tuple) of (connection, read) timeouts.
+ Default is None.
+ _check_input_type (bool): specifies if type checking
+ should be done one the data sent to the server.
+ Default is True.
+ _check_return_type (bool): specifies if type checking
+ should be done one the data received from the server.
+ Default is True.
+ _host_index (int/None): specifies the index of the server
+ that we want to use.
+ Default is read from the configuration.
+ async_req (bool): execute request asynchronously
+
+ Returns:
+ None
+ If the method is called asynchronously, returns the request
+ thread.
+ """
+ kwargs['async_req'] = kwargs.get(
+ 'async_req', False
+ )
+ kwargs['_return_http_data_only'] = kwargs.get(
+ '_return_http_data_only', True
+ )
+ kwargs['_preload_content'] = kwargs.get(
+ '_preload_content', True
+ )
+ kwargs['_request_timeout'] = kwargs.get(
+ '_request_timeout', None
+ )
+ kwargs['_check_input_type'] = kwargs.get(
+ '_check_input_type', True
+ )
+ kwargs['_check_return_type'] = kwargs.get(
+ '_check_return_type', True
+ )
+ kwargs['_host_index'] = kwargs.get('_host_index')
+ kwargs['connection_id'] = \
+ connection_id
+ return self.delete_connection_endpoint.call_with_http_info(**kwargs)
+
+ def get_connection(
+ self,
+ connection_id,
+ **kwargs
+ ):
+ """Get a connection # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+
+ >>> thread = api.get_connection(connection_id, async_req=True)
+ >>> result = thread.get()
+
+ Args:
+ connection_id (str): The connection ID.
+
+ Keyword Args:
+ _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
+ will be returned without reading/decoding response data.
+ Default is True.
+ _request_timeout (int/float/tuple): timeout setting for this request. If
+ one number provided, it will be total request timeout. It can also
+ be a pair (tuple) of (connection, read) timeouts.
+ Default is None.
+ _check_input_type (bool): specifies if type checking
+ should be done one the data sent to the server.
+ Default is True.
+ _check_return_type (bool): specifies if type checking
+ should be done one the data received from the server.
+ Default is True.
+ _host_index (int/None): specifies the index of the server
+ that we want to use.
+ Default is read from the configuration.
+ async_req (bool): execute request asynchronously
+
+ Returns:
+ Connection
+ If the method is called asynchronously, returns the request
+ thread.
+ """
+ kwargs['async_req'] = kwargs.get(
+ 'async_req', False
+ )
+ kwargs['_return_http_data_only'] = kwargs.get(
+ '_return_http_data_only', True
+ )
+ kwargs['_preload_content'] = kwargs.get(
+ '_preload_content', True
+ )
+ kwargs['_request_timeout'] = kwargs.get(
+ '_request_timeout', None
+ )
+ kwargs['_check_input_type'] = kwargs.get(
+ '_check_input_type', True
+ )
+ kwargs['_check_return_type'] = kwargs.get(
+ '_check_return_type', True
+ )
+ kwargs['_host_index'] = kwargs.get('_host_index')
+ kwargs['connection_id'] = \
+ connection_id
+ return self.get_connection_endpoint.call_with_http_info(**kwargs)
+
+ def get_connections(
+ self,
+ **kwargs
+ ):
+ """List connections # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+
+ >>> thread = api.get_connections(async_req=True)
+ >>> result = thread.get()
+
+
+ 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]
+ _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
+ will be returned without reading/decoding response data.
+ Default is True.
+ _request_timeout (int/float/tuple): timeout setting for this request. If
+ one number provided, it will be total request timeout. It can also
+ be a pair (tuple) of (connection, read) timeouts.
+ Default is None.
+ _check_input_type (bool): specifies if type checking
+ should be done one the data sent to the server.
+ Default is True.
+ _check_return_type (bool): specifies if type checking
+ should be done one the data received from the server.
+ Default is True.
+ _host_index (int/None): specifies the index of the server
+ that we want to use.
+ Default is read from the configuration.
+ async_req (bool): execute request asynchronously
+
+ Returns:
+ ConnectionCollection
+ If the method is called asynchronously, returns the request
+ thread.
+ """
+ kwargs['async_req'] = kwargs.get(
+ 'async_req', False
+ )
+ kwargs['_return_http_data_only'] = kwargs.get(
+ '_return_http_data_only', True
+ )
+ kwargs['_preload_content'] = kwargs.get(
+ '_preload_content', True
+ )
+ kwargs['_request_timeout'] = kwargs.get(
+ '_request_timeout', None
+ )
+ kwargs['_check_input_type'] = kwargs.get(
+ '_check_input_type', True
+ )
+ kwargs['_check_return_type'] = kwargs.get(
+ '_check_return_type', True
+ )
+ kwargs['_host_index'] = kwargs.get('_host_index')
+ return self.get_connections_endpoint.call_with_http_info(**kwargs)
+
+ def patch_connection(
+ self,
+ connection_id,
+ connection,
+ **kwargs
+ ):
+ """Update a connection # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+
+ >>> thread = api.patch_connection(connection_id, connection, async_req=True)
+ >>> result = thread.get()
+
+ Args:
+ connection_id (str): The connection ID.
+ connection (Connection):
+
+ Keyword Args:
+ 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]
+ _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
+ will be returned without reading/decoding response data.
+ Default is True.
+ _request_timeout (int/float/tuple): timeout setting for this request. If
+ one number provided, it will be total request timeout. It can also
+ be a pair (tuple) of (connection, read) timeouts.
+ Default is None.
+ _check_input_type (bool): specifies if type checking
+ should be done one the data sent to the server.
+ Default is True.
+ _check_return_type (bool): specifies if type checking
+ should be done one the data received from the server.
+ Default is True.
+ _host_index (int/None): specifies the index of the server
+ that we want to use.
+ Default is read from the configuration.
+ async_req (bool): execute request asynchronously
+
+ Returns:
+ Connection
+ If the method is called asynchronously, returns the request
+ thread.
+ """
+ kwargs['async_req'] = kwargs.get(
+ 'async_req', False
+ )
+ kwargs['_return_http_data_only'] = kwargs.get(
+ '_return_http_data_only', True
+ )
+ kwargs['_preload_content'] = kwargs.get(
+ '_preload_content', True
+ )
+ kwargs['_request_timeout'] = kwargs.get(
+ '_request_timeout', None
+ )
+ kwargs['_check_input_type'] = kwargs.get(
+ '_check_input_type', True
+ )
+ kwargs['_check_return_type'] = kwargs.get(
+ '_check_return_type', True
+ )
+ kwargs['_host_index'] = kwargs.get('_host_index')
+ kwargs['connection_id'] = \
+ connection_id
+ kwargs['connection'] = \
+ connection
+ return self.patch_connection_endpoint.call_with_http_info(**kwargs)
+
+ def post_connection(
+ self,
+ connection,
+ **kwargs
+ ):
+ """Create a connection # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+
+ >>> thread = api.post_connection(connection, async_req=True)
+ >>> result = thread.get()
+
+ Args:
+ connection (Connection):
+
+ Keyword Args:
+ _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
+ will be returned without reading/decoding response data.
+ Default is True.
+ _request_timeout (int/float/tuple): timeout setting for this request. If
+ one number provided, it will be total request timeout. It can also
+ be a pair (tuple) of (connection, read) timeouts.
+ Default is None.
+ _check_input_type (bool): specifies if type checking
+ should be done one the data sent to the server.
+ Default is True.
+ _check_return_type (bool): specifies if type checking
+ should be done one the data received from the server.
+ Default is True.
+ _host_index (int/None): specifies the index of the server
+ that we want to use.
+ Default is read from the configuration.
+ async_req (bool): execute request asynchronously
+
+ Returns:
+ Connection
+ If the method is called asynchronously, returns the request
+ thread.
+ """
+ kwargs['async_req'] = kwargs.get(
+ 'async_req', False
+ )
+ kwargs['_return_http_data_only'] = kwargs.get(
+ '_return_http_data_only', True
+ )
+ kwargs['_preload_content'] = kwargs.get(
+ '_preload_content', True
+ )
+ kwargs['_request_timeout'] = kwargs.get(
+ '_request_timeout', None
+ )
+ kwargs['_check_input_type'] = kwargs.get(
+ '_check_input_type', True
+ )
+ kwargs['_check_return_type'] = kwargs.get(
+ '_check_return_type', True
+ )
+ kwargs['_host_index'] = kwargs.get('_host_index')
+ kwargs['connection'] = \
+ connection
+ return self.post_connection_endpoint.call_with_http_info(**kwargs)
+
+ def test_connection(
+ self,
+ connection,
+ **kwargs
+ ):
+ """Test a connection # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+
+ >>> thread = api.test_connection(connection, async_req=True)
+ >>> result = thread.get()
+
+ Args:
+ connection (Connection):
+
+ Keyword Args:
+ _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
+ will be returned without reading/decoding response data.
+ Default is True.
+ _request_timeout (int/float/tuple): timeout setting for this request. If
+ one number provided, it will be total request timeout. It can also
+ be a pair (tuple) of (connection, read) timeouts.
+ Default is None.
+ _check_input_type (bool): specifies if type checking
+ should be done one the data sent to the server.
+ Default is True.
+ _check_return_type (bool): specifies if type checking
+ should be done one the data received from the server.
+ Default is True.
+ _host_index (int/None): specifies the index of the server
+ that we want to use.
+ Default is read from the configuration.
+ async_req (bool): execute request asynchronously
+
+ Returns:
+ ConnectionTest
+ If the method is called asynchronously, returns the request
+ thread.
+ """
+ kwargs['async_req'] = kwargs.get(
+ 'async_req', False
+ )
+ kwargs['_return_http_data_only'] = kwargs.get(
+ '_return_http_data_only', True
+ )
+ kwargs['_preload_content'] = kwargs.get(
+ '_preload_content', True
+ )
+ kwargs['_request_timeout'] = kwargs.get(
+ '_request_timeout', None
+ )
+ kwargs['_check_input_type'] = kwargs.get(
+ '_check_input_type', True
+ )
+ kwargs['_check_return_type'] = kwargs.get(
+ '_check_return_type', True
+ )
+ kwargs['_host_index'] = kwargs.get('_host_index')
+ kwargs['connection'] = \
+ connection
+ return self.test_connection_endpoint.call_with_http_info(**kwargs)
+
diff --git a/airflow_client/client/api/dag_api.py b/airflow_client/client/api/dag_api.py
index 42ca1b8..21396ee 100644
--- a/airflow_client/client/api/dag_api.py
+++ b/airflow_client/client/api/dag_api.py
@@ -18,7 +18,7 @@
"""
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 th [...]
+ # 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 th [...]
The version of the OpenAPI document: 1.0.0
Contact: dev@airflow.apache.org
@@ -62,74 +62,59 @@ class DAGApi(object):
if api_client is None:
api_client = ApiClient()
self.api_client = api_client
-
- def __get_dag(
- self,
- dag_id,
- **kwargs
- ):
- """Get basic information about a DAG # noqa: E501
-
- Presents only information available in database (DAGModel). If you need detailed information, consider using GET /dags/{dag_id}/details. # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
-
- >>> thread = api.get_dag(dag_id, async_req=True)
- >>> result = thread.get()
-
- Args:
- dag_id (str): The DAG ID.
-
- Keyword Args:
- _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
- will be returned without reading/decoding response data.
- Default is True.
- _request_timeout (float/tuple): timeout setting for this request. If one
- number provided, it will be total request timeout. It can also
- be a pair (tuple) of (connection, read) timeouts.
- Default is None.
- _check_input_type (bool): specifies if type checking
- should be done one the data sent to the server.
- Default is True.
- _check_return_type (bool): specifies if type checking
- should be done one the data received from the server.
- Default is True.
- _host_index (int/None): specifies the index of the server
- that we want to use.
- Default is read from the configuration.
- async_req (bool): execute request asynchronously
-
- Returns:
- DAG
- If the method is called asynchronously, returns the request
- thread.
- """
- kwargs['async_req'] = kwargs.get(
- 'async_req', False
- )
- kwargs['_return_http_data_only'] = kwargs.get(
- '_return_http_data_only', True
- )
- kwargs['_preload_content'] = kwargs.get(
- '_preload_content', True
- )
- kwargs['_request_timeout'] = kwargs.get(
- '_request_timeout', None
- )
- kwargs['_check_input_type'] = kwargs.get(
- '_check_input_type', True
- )
- kwargs['_check_return_type'] = kwargs.get(
- '_check_return_type', True
- )
- kwargs['_host_index'] = kwargs.get('_host_index')
- kwargs['dag_id'] = \
- dag_id
- return self.call_with_http_info(**kwargs)
-
- self.get_dag = _Endpoint(
+ self.delete_dag_endpoint = _Endpoint(
+ settings={
+ 'response_type': None,
+ 'auth': [
+ 'Basic',
+ 'Kerberos'
+ ],
+ 'endpoint_path': '/dags/{dag_id}',
+ 'operation_id': 'delete_dag',
+ 'http_method': 'DELETE',
+ 'servers': None,
+ },
+ params_map={
+ 'all': [
+ 'dag_id',
+ ],
+ 'required': [
+ 'dag_id',
+ ],
+ 'nullable': [
+ ],
+ 'enum': [
+ ],
+ 'validation': [
+ ]
+ },
+ root_map={
+ 'validations': {
+ },
+ 'allowed_values': {
+ },
+ 'openapi_types': {
+ 'dag_id':
+ (str,),
+ },
+ 'attribute_map': {
+ 'dag_id': 'dag_id',
+ },
+ 'location_map': {
+ 'dag_id': 'path',
+ },
+ 'collection_format_map': {
+ }
+ },
+ headers_map={
+ 'accept': [
+ 'application/json'
+ ],
+ 'content_type': [],
+ },
+ api_client=api_client
+ )
+ self.get_dag_endpoint = _Endpoint(
settings={
'response_type': (DAG,),
'auth': [
@@ -179,77 +164,9 @@ class DAGApi(object):
],
'content_type': [],
},
- api_client=api_client,
- callable=__get_dag
- )
-
- def __get_dag_details(
- self,
- dag_id,
- **kwargs
- ):
- """Get a simplified representation of DAG # noqa: E501
-
- The response contains many DAG attributes, so the response can be large. If possible, consider using GET /dags/{dag_id}. # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
-
- >>> thread = api.get_dag_details(dag_id, async_req=True)
- >>> result = thread.get()
-
- Args:
- dag_id (str): The DAG ID.
-
- Keyword Args:
- _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
- will be returned without reading/decoding response data.
- Default is True.
- _request_timeout (float/tuple): timeout setting for this request. If one
- number provided, it will be total request timeout. It can also
- be a pair (tuple) of (connection, read) timeouts.
- Default is None.
- _check_input_type (bool): specifies if type checking
- should be done one the data sent to the server.
- Default is True.
- _check_return_type (bool): specifies if type checking
- should be done one the data received from the server.
- Default is True.
- _host_index (int/None): specifies the index of the server
- that we want to use.
- Default is read from the configuration.
- async_req (bool): execute request asynchronously
-
- Returns:
- DAGDetail
- If the method is called asynchronously, returns the request
- thread.
- """
- kwargs['async_req'] = kwargs.get(
- 'async_req', False
- )
- kwargs['_return_http_data_only'] = kwargs.get(
- '_return_http_data_only', True
- )
- kwargs['_preload_content'] = kwargs.get(
- '_preload_content', True
- )
- kwargs['_request_timeout'] = kwargs.get(
- '_request_timeout', None
- )
- kwargs['_check_input_type'] = kwargs.get(
- '_check_input_type', True
- )
- kwargs['_check_return_type'] = kwargs.get(
- '_check_return_type', True
- )
- kwargs['_host_index'] = kwargs.get('_host_index')
- kwargs['dag_id'] = \
- dag_id
- return self.call_with_http_info(**kwargs)
-
- self.get_dag_details = _Endpoint(
+ api_client=api_client
+ )
+ self.get_dag_details_endpoint = _Endpoint(
settings={
'response_type': (DAGDetail,),
'auth': [
@@ -299,77 +216,9 @@ class DAGApi(object):
],
'content_type': [],
},
- api_client=api_client,
- callable=__get_dag_details
- )
-
- def __get_dag_source(
- self,
- file_token,
- **kwargs
- ):
- """Get a source code # noqa: E501
-
- Get a source code using file token. # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
-
- >>> thread = api.get_dag_source(file_token, async_req=True)
- >>> result = thread.get()
-
- Args:
- 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.
-
- Keyword Args:
- _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
- will be returned without reading/decoding response data.
- Default is True.
- _request_timeout (float/tuple): timeout setting for this request. If one
- number provided, it will be total request timeout. It can also
- be a pair (tuple) of (connection, read) timeouts.
- Default is None.
- _check_input_type (bool): specifies if type checking
- should be done one the data sent to the server.
- Default is True.
- _check_return_type (bool): specifies if type checking
- should be done one the data received from the server.
- Default is True.
- _host_index (int/None): specifies the index of the server
- that we want to use.
- Default is read from the configuration.
- async_req (bool): execute request asynchronously
-
- Returns:
- InlineResponse2001
- If the method is called asynchronously, returns the request
- thread.
- """
- kwargs['async_req'] = kwargs.get(
- 'async_req', False
- )
- kwargs['_return_http_data_only'] = kwargs.get(
- '_return_http_data_only', True
- )
- kwargs['_preload_content'] = kwargs.get(
- '_preload_content', True
- )
- kwargs['_request_timeout'] = kwargs.get(
- '_request_timeout', None
- )
- kwargs['_check_input_type'] = kwargs.get(
- '_check_input_type', True
- )
- kwargs['_check_return_type'] = kwargs.get(
- '_check_return_type', True
- )
- kwargs['_host_index'] = kwargs.get('_host_index')
- kwargs['file_token'] = \
- file_token
- return self.call_with_http_info(**kwargs)
-
- self.get_dag_source = _Endpoint(
+ api_client=api_client
+ )
+ self.get_dag_source_endpoint = _Endpoint(
settings={
'response_type': (InlineResponse2001,),
'auth': [
@@ -420,74 +269,9 @@ class DAGApi(object):
],
'content_type': [],
},
- api_client=api_client,
- callable=__get_dag_source
- )
-
- def __get_dags(
- self,
- **kwargs
- ):
- """List DAGs # noqa: E501
-
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
-
- >>> thread = api.get_dags(async_req=True)
- >>> result = thread.get()
-
-
- 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]
- _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
- will be returned without reading/decoding response data.
- Default is True.
- _request_timeout (float/tuple): timeout setting for this request. If one
- number provided, it will be total request timeout. It can also
- be a pair (tuple) of (connection, read) timeouts.
- Default is None.
- _check_input_type (bool): specifies if type checking
- should be done one the data sent to the server.
- Default is True.
- _check_return_type (bool): specifies if type checking
- should be done one the data received from the server.
- Default is True.
- _host_index (int/None): specifies the index of the server
- that we want to use.
- Default is read from the configuration.
- async_req (bool): execute request asynchronously
-
- Returns:
- DAGCollection
- If the method is called asynchronously, returns the request
- thread.
- """
- kwargs['async_req'] = kwargs.get(
- 'async_req', False
- )
- kwargs['_return_http_data_only'] = kwargs.get(
- '_return_http_data_only', True
- )
- kwargs['_preload_content'] = kwargs.get(
- '_preload_content', True
- )
- kwargs['_request_timeout'] = kwargs.get(
- '_request_timeout', None
- )
- kwargs['_check_input_type'] = kwargs.get(
- '_check_input_type', True
- )
- kwargs['_check_return_type'] = kwargs.get(
- '_check_return_type', True
- )
- kwargs['_host_index'] = kwargs.get('_host_index')
- return self.call_with_http_info(**kwargs)
-
- self.get_dags = _Endpoint(
+ api_client=api_client
+ )
+ self.get_dags_endpoint = _Endpoint(
settings={
'response_type': (DAGCollection,),
'auth': [
@@ -504,6 +288,8 @@ class DAGApi(object):
'limit',
'offset',
'order_by',
+ 'tags',
+ 'only_active',
],
'required': [],
'nullable': [
@@ -530,18 +316,27 @@ class DAGApi(object):
(int,),
'order_by':
(str,),
+ 'tags':
+ ([str],),
+ 'only_active':
+ (bool,),
},
'attribute_map': {
'limit': 'limit',
'offset': 'offset',
'order_by': 'order_by',
+ 'tags': 'tags',
+ 'only_active': 'only_active',
},
'location_map': {
'limit': 'query',
'offset': 'query',
'order_by': 'query',
+ 'tags': 'query',
+ 'only_active': 'query',
},
'collection_format_map': {
+ 'tags': 'multi',
}
},
headers_map={
@@ -550,80 +345,9 @@ class DAGApi(object):
],
'content_type': [],
},
- api_client=api_client,
- callable=__get_dags
- )
-
- def __get_task(
- self,
- dag_id,
- task_id,
- **kwargs
- ):
- """Get simplified representation of a task # noqa: E501
-
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
-
- >>> thread = api.get_task(dag_id, task_id, async_req=True)
- >>> result = thread.get()
-
- Args:
- dag_id (str): The DAG ID.
- task_id (str): The task ID.
-
- Keyword Args:
- _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
- will be returned without reading/decoding response data.
- Default is True.
- _request_timeout (float/tuple): timeout setting for this request. If one
- number provided, it will be total request timeout. It can also
- be a pair (tuple) of (connection, read) timeouts.
- Default is None.
- _check_input_type (bool): specifies if type checking
- should be done one the data sent to the server.
- Default is True.
- _check_return_type (bool): specifies if type checking
- should be done one the data received from the server.
- Default is True.
- _host_index (int/None): specifies the index of the server
- that we want to use.
- Default is read from the configuration.
- async_req (bool): execute request asynchronously
-
- Returns:
- Task
- If the method is called asynchronously, returns the request
- thread.
- """
- kwargs['async_req'] = kwargs.get(
- 'async_req', False
- )
- kwargs['_return_http_data_only'] = kwargs.get(
- '_return_http_data_only', True
- )
- kwargs['_preload_content'] = kwargs.get(
- '_preload_content', True
- )
- kwargs['_request_timeout'] = kwargs.get(
- '_request_timeout', None
- )
- kwargs['_check_input_type'] = kwargs.get(
- '_check_input_type', True
- )
- kwargs['_check_return_type'] = kwargs.get(
- '_check_return_type', True
- )
- kwargs['_host_index'] = kwargs.get('_host_index')
- kwargs['dag_id'] = \
- dag_id
- kwargs['task_id'] = \
- task_id
- return self.call_with_http_info(**kwargs)
-
- self.get_task = _Endpoint(
+ api_client=api_client
+ )
+ self.get_task_endpoint = _Endpoint(
settings={
'response_type': (Task,),
'auth': [
@@ -679,77 +403,9 @@ class DAGApi(object):
],
'content_type': [],
},
- api_client=api_client,
- callable=__get_task
- )
-
- def __get_tasks(
- self,
- dag_id,
- **kwargs
- ):
- """Get tasks for DAG # noqa: E501
-
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
-
- >>> thread = api.get_tasks(dag_id, async_req=True)
- >>> result = thread.get()
-
- Args:
- 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]
- _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
- will be returned without reading/decoding response data.
- Default is True.
- _request_timeout (float/tuple): timeout setting for this request. If one
- number provided, it will be total request timeout. It can also
- be a pair (tuple) of (connection, read) timeouts.
- Default is None.
- _check_input_type (bool): specifies if type checking
- should be done one the data sent to the server.
- Default is True.
- _check_return_type (bool): specifies if type checking
- should be done one the data received from the server.
- Default is True.
- _host_index (int/None): specifies the index of the server
- that we want to use.
- Default is read from the configuration.
- async_req (bool): execute request asynchronously
-
- Returns:
- TaskCollection
- If the method is called asynchronously, returns the request
- thread.
- """
- kwargs['async_req'] = kwargs.get(
- 'async_req', False
- )
- kwargs['_return_http_data_only'] = kwargs.get(
- '_return_http_data_only', True
- )
- kwargs['_preload_content'] = kwargs.get(
- '_preload_content', True
- )
- kwargs['_request_timeout'] = kwargs.get(
- '_request_timeout', None
- )
- kwargs['_check_input_type'] = kwargs.get(
- '_check_input_type', True
- )
- kwargs['_check_return_type'] = kwargs.get(
- '_check_return_type', True
- )
- kwargs['_host_index'] = kwargs.get('_host_index')
- kwargs['dag_id'] = \
- dag_id
- return self.call_with_http_info(**kwargs)
-
- self.get_tasks = _Endpoint(
+ api_client=api_client
+ )
+ self.get_tasks_endpoint = _Endpoint(
settings={
'response_type': (TaskCollection,),
'auth': [
@@ -804,81 +460,9 @@ class DAGApi(object):
],
'content_type': [],
},
- api_client=api_client,
- callable=__get_tasks
- )
-
- def __patch_dag(
- self,
- dag_id,
- dag,
- **kwargs
- ):
- """Update a DAG # noqa: E501
-
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
-
- >>> thread = api.patch_dag(dag_id, dag, async_req=True)
- >>> result = thread.get()
-
- Args:
- dag_id (str): The DAG ID.
- dag (DAG):
-
- Keyword Args:
- 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]
- _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
- will be returned without reading/decoding response data.
- Default is True.
- _request_timeout (float/tuple): timeout setting for this request. If one
- number provided, it will be total request timeout. It can also
- be a pair (tuple) of (connection, read) timeouts.
- Default is None.
- _check_input_type (bool): specifies if type checking
- should be done one the data sent to the server.
- Default is True.
- _check_return_type (bool): specifies if type checking
- should be done one the data received from the server.
- Default is True.
- _host_index (int/None): specifies the index of the server
- that we want to use.
- Default is read from the configuration.
- async_req (bool): execute request asynchronously
-
- Returns:
- DAG
- If the method is called asynchronously, returns the request
- thread.
- """
- kwargs['async_req'] = kwargs.get(
- 'async_req', False
- )
- kwargs['_return_http_data_only'] = kwargs.get(
- '_return_http_data_only', True
- )
- kwargs['_preload_content'] = kwargs.get(
- '_preload_content', True
- )
- kwargs['_request_timeout'] = kwargs.get(
- '_request_timeout', None
- )
- kwargs['_check_input_type'] = kwargs.get(
- '_check_input_type', True
- )
- kwargs['_check_return_type'] = kwargs.get(
- '_check_return_type', True
- )
- kwargs['_host_index'] = kwargs.get('_host_index')
- kwargs['dag_id'] = \
- dag_id
- kwargs['dag'] = \
- dag
- return self.call_with_http_info(**kwargs)
-
- self.patch_dag = _Endpoint(
+ api_client=api_client
+ )
+ self.patch_dag_endpoint = _Endpoint(
settings={
'response_type': (DAG,),
'auth': [
@@ -941,81 +525,9 @@ class DAGApi(object):
'application/json'
]
},
- api_client=api_client,
- callable=__patch_dag
- )
-
- def __post_clear_task_instances(
- self,
- dag_id,
- clear_task_instance,
- **kwargs
- ):
- """Clear a set of task instances # noqa: E501
-
- Clears a set of task instances associated with the DAG for a specified date range. # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
-
- >>> thread = api.post_clear_task_instances(dag_id, clear_task_instance, async_req=True)
- >>> result = thread.get()
-
- Args:
- dag_id (str): The DAG ID.
- clear_task_instance (ClearTaskInstance): Parameters of action
-
- Keyword Args:
- _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
- will be returned without reading/decoding response data.
- Default is True.
- _request_timeout (float/tuple): timeout setting for this request. If one
- number provided, it will be total request timeout. It can also
- be a pair (tuple) of (connection, read) timeouts.
- Default is None.
- _check_input_type (bool): specifies if type checking
- should be done one the data sent to the server.
- Default is True.
- _check_return_type (bool): specifies if type checking
- should be done one the data received from the server.
- Default is True.
- _host_index (int/None): specifies the index of the server
- that we want to use.
- Default is read from the configuration.
- async_req (bool): execute request asynchronously
-
- Returns:
- TaskInstanceReferenceCollection
- If the method is called asynchronously, returns the request
- thread.
- """
- kwargs['async_req'] = kwargs.get(
- 'async_req', False
- )
- kwargs['_return_http_data_only'] = kwargs.get(
- '_return_http_data_only', True
- )
- kwargs['_preload_content'] = kwargs.get(
- '_preload_content', True
- )
- kwargs['_request_timeout'] = kwargs.get(
- '_request_timeout', None
- )
- kwargs['_check_input_type'] = kwargs.get(
- '_check_input_type', True
- )
- kwargs['_check_return_type'] = kwargs.get(
- '_check_return_type', True
- )
- kwargs['_host_index'] = kwargs.get('_host_index')
- kwargs['dag_id'] = \
- dag_id
- kwargs['clear_task_instance'] = \
- clear_task_instance
- return self.call_with_http_info(**kwargs)
-
- self.post_clear_task_instances = _Endpoint(
+ api_client=api_client
+ )
+ self.post_clear_task_instances_endpoint = _Endpoint(
settings={
'response_type': (TaskInstanceReferenceCollection,),
'auth': [
@@ -1072,81 +584,9 @@ class DAGApi(object):
'application/json'
]
},
- api_client=api_client,
- callable=__post_clear_task_instances
- )
-
- def __post_set_task_instances_state(
- self,
- dag_id,
- update_task_instances_state,
- **kwargs
- ):
- """Set a state of task instances # noqa: E501
-
- Updates the state for multiple task instances simultaneously. # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
-
- >>> thread = api.post_set_task_instances_state(dag_id, update_task_instances_state, async_req=True)
- >>> result = thread.get()
-
- Args:
- dag_id (str): The DAG ID.
- update_task_instances_state (UpdateTaskInstancesState): Parameters of action
-
- Keyword Args:
- _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
- will be returned without reading/decoding response data.
- Default is True.
- _request_timeout (float/tuple): timeout setting for this request. If one
- number provided, it will be total request timeout. It can also
- be a pair (tuple) of (connection, read) timeouts.
- Default is None.
- _check_input_type (bool): specifies if type checking
- should be done one the data sent to the server.
- Default is True.
- _check_return_type (bool): specifies if type checking
- should be done one the data received from the server.
- Default is True.
- _host_index (int/None): specifies the index of the server
- that we want to use.
- Default is read from the configuration.
- async_req (bool): execute request asynchronously
-
- Returns:
- TaskInstanceReferenceCollection
- If the method is called asynchronously, returns the request
- thread.
- """
- kwargs['async_req'] = kwargs.get(
- 'async_req', False
- )
- kwargs['_return_http_data_only'] = kwargs.get(
- '_return_http_data_only', True
- )
- kwargs['_preload_content'] = kwargs.get(
- '_preload_content', True
- )
- kwargs['_request_timeout'] = kwargs.get(
- '_request_timeout', None
- )
- kwargs['_check_input_type'] = kwargs.get(
- '_check_input_type', True
- )
- kwargs['_check_return_type'] = kwargs.get(
- '_check_return_type', True
- )
- kwargs['_host_index'] = kwargs.get('_host_index')
- kwargs['dag_id'] = \
- dag_id
- kwargs['update_task_instances_state'] = \
- update_task_instances_state
- return self.call_with_http_info(**kwargs)
-
- self.post_set_task_instances_state = _Endpoint(
+ api_client=api_client
+ )
+ self.post_set_task_instances_state_endpoint = _Endpoint(
settings={
'response_type': (TaskInstanceReferenceCollection,),
'auth': [
@@ -1203,6 +643,680 @@ class DAGApi(object):
'application/json'
]
},
- api_client=api_client,
- callable=__post_set_task_instances_state
+ api_client=api_client
+ )
+
+ def delete_dag(
+ self,
+ dag_id,
+ **kwargs
+ ):
+ """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
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+
+ >>> thread = api.delete_dag(dag_id, async_req=True)
+ >>> result = thread.get()
+
+ Args:
+ dag_id (str): The DAG ID.
+
+ Keyword Args:
+ _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
+ will be returned without reading/decoding response data.
+ Default is True.
+ _request_timeout (int/float/tuple): timeout setting for this request. If
+ one number provided, it will be total request timeout. It can also
+ be a pair (tuple) of (connection, read) timeouts.
+ Default is None.
+ _check_input_type (bool): specifies if type checking
+ should be done one the data sent to the server.
+ Default is True.
+ _check_return_type (bool): specifies if type checking
+ should be done one the data received from the server.
+ Default is True.
+ _host_index (int/None): specifies the index of the server
+ that we want to use.
+ Default is read from the configuration.
+ async_req (bool): execute request asynchronously
+
+ Returns:
+ None
+ If the method is called asynchronously, returns the request
+ thread.
+ """
+ kwargs['async_req'] = kwargs.get(
+ 'async_req', False
+ )
+ kwargs['_return_http_data_only'] = kwargs.get(
+ '_return_http_data_only', True
)
+ kwargs['_preload_content'] = kwargs.get(
+ '_preload_content', True
+ )
+ kwargs['_request_timeout'] = kwargs.get(
+ '_request_timeout', None
+ )
+ kwargs['_check_input_type'] = kwargs.get(
+ '_check_input_type', True
+ )
+ kwargs['_check_return_type'] = kwargs.get(
+ '_check_return_type', True
+ )
+ kwargs['_host_index'] = kwargs.get('_host_index')
+ kwargs['dag_id'] = \
+ dag_id
+ return self.delete_dag_endpoint.call_with_http_info(**kwargs)
+
+ def get_dag(
+ self,
+ dag_id,
+ **kwargs
+ ):
+ """Get basic information about a DAG # noqa: E501
+
+ Presents only information available in database (DAGModel). If you need detailed information, consider using GET /dags/{dag_id}/details. # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+
+ >>> thread = api.get_dag(dag_id, async_req=True)
+ >>> result = thread.get()
+
+ Args:
+ dag_id (str): The DAG ID.
+
+ Keyword Args:
+ _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
+ will be returned without reading/decoding response data.
+ Default is True.
+ _request_timeout (int/float/tuple): timeout setting for this request. If
+ one number provided, it will be total request timeout. It can also
+ be a pair (tuple) of (connection, read) timeouts.
+ Default is None.
+ _check_input_type (bool): specifies if type checking
+ should be done one the data sent to the server.
+ Default is True.
+ _check_return_type (bool): specifies if type checking
+ should be done one the data received from the server.
+ Default is True.
+ _host_index (int/None): specifies the index of the server
+ that we want to use.
+ Default is read from the configuration.
+ async_req (bool): execute request asynchronously
+
+ Returns:
+ DAG
+ If the method is called asynchronously, returns the request
+ thread.
+ """
+ kwargs['async_req'] = kwargs.get(
+ 'async_req', False
+ )
+ kwargs['_return_http_data_only'] = kwargs.get(
+ '_return_http_data_only', True
+ )
+ kwargs['_preload_content'] = kwargs.get(
+ '_preload_content', True
+ )
+ kwargs['_request_timeout'] = kwargs.get(
+ '_request_timeout', None
+ )
+ kwargs['_check_input_type'] = kwargs.get(
+ '_check_input_type', True
+ )
+ kwargs['_check_return_type'] = kwargs.get(
+ '_check_return_type', True
+ )
+ kwargs['_host_index'] = kwargs.get('_host_index')
+ kwargs['dag_id'] = \
+ dag_id
+ return self.get_dag_endpoint.call_with_http_info(**kwargs)
+
+ def get_dag_details(
+ self,
+ dag_id,
+ **kwargs
+ ):
+ """Get a simplified representation of DAG # noqa: E501
+
+ The response contains many DAG attributes, so the response can be large. If possible, consider using GET /dags/{dag_id}. # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+
+ >>> thread = api.get_dag_details(dag_id, async_req=True)
+ >>> result = thread.get()
+
+ Args:
+ dag_id (str): The DAG ID.
+
+ Keyword Args:
+ _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
+ will be returned without reading/decoding response data.
+ Default is True.
+ _request_timeout (int/float/tuple): timeout setting for this request. If
+ one number provided, it will be total request timeout. It can also
+ be a pair (tuple) of (connection, read) timeouts.
+ Default is None.
+ _check_input_type (bool): specifies if type checking
+ should be done one the data sent to the server.
+ Default is True.
+ _check_return_type (bool): specifies if type checking
+ should be done one the data received from the server.
+ Default is True.
+ _host_index (int/None): specifies the index of the server
+ that we want to use.
+ Default is read from the configuration.
+ async_req (bool): execute request asynchronously
+
+ Returns:
+ DAGDetail
+ If the method is called asynchronously, returns the request
+ thread.
+ """
+ kwargs['async_req'] = kwargs.get(
+ 'async_req', False
+ )
+ kwargs['_return_http_data_only'] = kwargs.get(
+ '_return_http_data_only', True
+ )
+ kwargs['_preload_content'] = kwargs.get(
+ '_preload_content', True
+ )
+ kwargs['_request_timeout'] = kwargs.get(
+ '_request_timeout', None
+ )
+ kwargs['_check_input_type'] = kwargs.get(
+ '_check_input_type', True
+ )
+ kwargs['_check_return_type'] = kwargs.get(
+ '_check_return_type', True
+ )
+ kwargs['_host_index'] = kwargs.get('_host_index')
+ kwargs['dag_id'] = \
+ dag_id
+ return self.get_dag_details_endpoint.call_with_http_info(**kwargs)
+
+ def get_dag_source(
+ self,
+ file_token,
+ **kwargs
+ ):
+ """Get a source code # noqa: E501
+
+ Get a source code using file token. # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+
+ >>> thread = api.get_dag_source(file_token, async_req=True)
+ >>> result = thread.get()
+
+ Args:
+ 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.
+
+ Keyword Args:
+ _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
+ will be returned without reading/decoding response data.
+ Default is True.
+ _request_timeout (int/float/tuple): timeout setting for this request. If
+ one number provided, it will be total request timeout. It can also
+ be a pair (tuple) of (connection, read) timeouts.
+ Default is None.
+ _check_input_type (bool): specifies if type checking
+ should be done one the data sent to the server.
+ Default is True.
+ _check_return_type (bool): specifies if type checking
+ should be done one the data received from the server.
+ Default is True.
+ _host_index (int/None): specifies the index of the server
+ that we want to use.
+ Default is read from the configuration.
+ async_req (bool): execute request asynchronously
+
+ Returns:
+ InlineResponse2001
+ If the method is called asynchronously, returns the request
+ thread.
+ """
+ kwargs['async_req'] = kwargs.get(
+ 'async_req', False
+ )
+ kwargs['_return_http_data_only'] = kwargs.get(
+ '_return_http_data_only', True
+ )
+ kwargs['_preload_content'] = kwargs.get(
+ '_preload_content', True
+ )
+ kwargs['_request_timeout'] = kwargs.get(
+ '_request_timeout', None
+ )
+ kwargs['_check_input_type'] = kwargs.get(
+ '_check_input_type', True
+ )
+ kwargs['_check_return_type'] = kwargs.get(
+ '_check_return_type', True
+ )
+ kwargs['_host_index'] = kwargs.get('_host_index')
+ kwargs['file_token'] = \
+ file_token
+ return self.get_dag_source_endpoint.call_with_http_info(**kwargs)
+
+ def get_dags(
+ self,
+ **kwargs
+ ):
+ """List DAGs # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+
+ >>> thread = api.get_dags(async_req=True)
+ >>> result = thread.get()
+
+
+ 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
+ _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
+ will be returned without reading/decoding response data.
+ Default is True.
+ _request_timeout (int/float/tuple): timeout setting for this request. If
+ one number provided, it will be total request timeout. It can also
+ be a pair (tuple) of (connection, read) timeouts.
+ Default is None.
+ _check_input_type (bool): specifies if type checking
+ should be done one the data sent to the server.
+ Default is True.
+ _check_return_type (bool): specifies if type checking
+ should be done one the data received from the server.
+ Default is True.
+ _host_index (int/None): specifies the index of the server
+ that we want to use.
+ Default is read from the configuration.
+ async_req (bool): execute request asynchronously
+
+ Returns:
+ DAGCollection
+ If the method is called asynchronously, returns the request
+ thread.
+ """
+ kwargs['async_req'] = kwargs.get(
+ 'async_req', False
+ )
+ kwargs['_return_http_data_only'] = kwargs.get(
+ '_return_http_data_only', True
+ )
+ kwargs['_preload_content'] = kwargs.get(
+ '_preload_content', True
+ )
+ kwargs['_request_timeout'] = kwargs.get(
+ '_request_timeout', None
+ )
+ kwargs['_check_input_type'] = kwargs.get(
+ '_check_input_type', True
+ )
+ kwargs['_check_return_type'] = kwargs.get(
+ '_check_return_type', True
+ )
+ kwargs['_host_index'] = kwargs.get('_host_index')
+ return self.get_dags_endpoint.call_with_http_info(**kwargs)
+
+ def get_task(
+ self,
+ dag_id,
+ task_id,
+ **kwargs
+ ):
+ """Get simplified representation of a task # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+
+ >>> thread = api.get_task(dag_id, task_id, async_req=True)
+ >>> result = thread.get()
+
+ Args:
+ dag_id (str): The DAG ID.
+ task_id (str): The task ID.
+
+ Keyword Args:
+ _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
+ will be returned without reading/decoding response data.
+ Default is True.
+ _request_timeout (int/float/tuple): timeout setting for this request. If
+ one number provided, it will be total request timeout. It can also
+ be a pair (tuple) of (connection, read) timeouts.
+ Default is None.
+ _check_input_type (bool): specifies if type checking
+ should be done one the data sent to the server.
+ Default is True.
+ _check_return_type (bool): specifies if type checking
+ should be done one the data received from the server.
+ Default is True.
+ _host_index (int/None): specifies the index of the server
+ that we want to use.
+ Default is read from the configuration.
+ async_req (bool): execute request asynchronously
+
+ Returns:
+ Task
+ If the method is called asynchronously, returns the request
+ thread.
+ """
+ kwargs['async_req'] = kwargs.get(
+ 'async_req', False
+ )
+ kwargs['_return_http_data_only'] = kwargs.get(
+ '_return_http_data_only', True
+ )
+ kwargs['_preload_content'] = kwargs.get(
+ '_preload_content', True
+ )
+ kwargs['_request_timeout'] = kwargs.get(
+ '_request_timeout', None
+ )
+ kwargs['_check_input_type'] = kwargs.get(
+ '_check_input_type', True
+ )
+ kwargs['_check_return_type'] = kwargs.get(
+ '_check_return_type', True
+ )
+ kwargs['_host_index'] = kwargs.get('_host_index')
+ kwargs['dag_id'] = \
+ dag_id
+ kwargs['task_id'] = \
+ task_id
+ return self.get_task_endpoint.call_with_http_info(**kwargs)
+
+ def get_tasks(
+ self,
+ dag_id,
+ **kwargs
+ ):
+ """Get tasks for DAG # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+
+ >>> thread = api.get_tasks(dag_id, async_req=True)
+ >>> result = thread.get()
+
+ Args:
+ 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]
+ _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
+ will be returned without reading/decoding response data.
+ Default is True.
+ _request_timeout (int/float/tuple): timeout setting for this request. If
+ one number provided, it will be total request timeout. It can also
+ be a pair (tuple) of (connection, read) timeouts.
+ Default is None.
+ _check_input_type (bool): specifies if type checking
+ should be done one the data sent to the server.
+ Default is True.
+ _check_return_type (bool): specifies if type checking
+ should be done one the data received from the server.
+ Default is True.
+ _host_index (int/None): specifies the index of the server
+ that we want to use.
+ Default is read from the configuration.
+ async_req (bool): execute request asynchronously
+
+ Returns:
+ TaskCollection
+ If the method is called asynchronously, returns the request
+ thread.
+ """
+ kwargs['async_req'] = kwargs.get(
+ 'async_req', False
+ )
+ kwargs['_return_http_data_only'] = kwargs.get(
+ '_return_http_data_only', True
+ )
+ kwargs['_preload_content'] = kwargs.get(
+ '_preload_content', True
+ )
+ kwargs['_request_timeout'] = kwargs.get(
+ '_request_timeout', None
+ )
+ kwargs['_check_input_type'] = kwargs.get(
+ '_check_input_type', True
+ )
+ kwargs['_check_return_type'] = kwargs.get(
+ '_check_return_type', True
+ )
+ kwargs['_host_index'] = kwargs.get('_host_index')
+ kwargs['dag_id'] = \
+ dag_id
+ return self.get_tasks_endpoint.call_with_http_info(**kwargs)
+
+ def patch_dag(
+ self,
+ dag_id,
+ dag,
+ **kwargs
+ ):
+ """Update a DAG # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+
+ >>> thread = api.patch_dag(dag_id, dag, async_req=True)
+ >>> result = thread.get()
+
+ Args:
+ dag_id (str): The DAG ID.
+ dag (DAG):
+
+ Keyword Args:
+ 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]
+ _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
+ will be returned without reading/decoding response data.
+ Default is True.
+ _request_timeout (int/float/tuple): timeout setting for this request. If
+ one number provided, it will be total request timeout. It can also
+ be a pair (tuple) of (connection, read) timeouts.
+ Default is None.
+ _check_input_type (bool): specifies if type checking
+ should be done one the data sent to the server.
+ Default is True.
+ _check_return_type (bool): specifies if type checking
+ should be done one the data received from the server.
+ Default is True.
+ _host_index (int/None): specifies the index of the server
+ that we want to use.
+ Default is read from the configuration.
+ async_req (bool): execute request asynchronously
+
+ Returns:
+ DAG
+ If the method is called asynchronously, returns the request
+ thread.
+ """
+ kwargs['async_req'] = kwargs.get(
+ 'async_req', False
+ )
+ kwargs['_return_http_data_only'] = kwargs.get(
+ '_return_http_data_only', True
+ )
+ kwargs['_preload_content'] = kwargs.get(
+ '_preload_content', True
+ )
+ kwargs['_request_timeout'] = kwargs.get(
+ '_request_timeout', None
+ )
+ kwargs['_check_input_type'] = kwargs.get(
+ '_check_input_type', True
+ )
+ kwargs['_check_return_type'] = kwargs.get(
+ '_check_return_type', True
+ )
+ kwargs['_host_index'] = kwargs.get('_host_index')
+ kwargs['dag_id'] = \
+ dag_id
+ kwargs['dag'] = \
+ dag
+ return self.patch_dag_endpoint.call_with_http_info(**kwargs)
+
+ def post_clear_task_instances(
+ self,
+ dag_id,
+ clear_task_instance,
+ **kwargs
+ ):
+ """Clear a set of task instances # noqa: E501
+
+ Clears a set of task instances associated with the DAG for a specified date range. # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+
+ >>> thread = api.post_clear_task_instances(dag_id, clear_task_instance, async_req=True)
+ >>> result = thread.get()
+
+ Args:
+ dag_id (str): The DAG ID.
+ clear_task_instance (ClearTaskInstance): Parameters of action
+
+ Keyword Args:
+ _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
+ will be returned without reading/decoding response data.
+ Default is True.
+ _request_timeout (int/float/tuple): timeout setting for this request. If
+ one number provided, it will be total request timeout. It can also
+ be a pair (tuple) of (connection, read) timeouts.
+ Default is None.
+ _check_input_type (bool): specifies if type checking
+ should be done one the data sent to the server.
+ Default is True.
+ _check_return_type (bool): specifies if type checking
+ should be done one the data received from the server.
+ Default is True.
+ _host_index (int/None): specifies the index of the server
+ that we want to use.
+ Default is read from the configuration.
+ async_req (bool): execute request asynchronously
+
+ Returns:
+ TaskInstanceReferenceCollection
+ If the method is called asynchronously, returns the request
+ thread.
+ """
+ kwargs['async_req'] = kwargs.get(
+ 'async_req', False
+ )
+ kwargs['_return_http_data_only'] = kwargs.get(
+ '_return_http_data_only', True
+ )
+ kwargs['_preload_content'] = kwargs.get(
+ '_preload_content', True
+ )
+ kwargs['_request_timeout'] = kwargs.get(
+ '_request_timeout', None
+ )
+ kwargs['_check_input_type'] = kwargs.get(
+ '_check_input_type', True
+ )
+ kwargs['_check_return_type'] = kwargs.get(
+ '_check_return_type', True
+ )
+ kwargs['_host_index'] = kwargs.get('_host_index')
+ kwargs['dag_id'] = \
+ dag_id
+ kwargs['clear_task_instance'] = \
+ clear_task_instance
+ return self.post_clear_task_instances_endpoint.call_with_http_info(**kwargs)
+
+ def post_set_task_instances_state(
+ self,
+ dag_id,
+ update_task_instances_state,
+ **kwargs
+ ):
+ """Set a state of task instances # noqa: E501
+
+ Updates the state for multiple task instances simultaneously. # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+
+ >>> thread = api.post_set_task_instances_state(dag_id, update_task_instances_state, async_req=True)
+ >>> result = thread.get()
+
+ Args:
+ dag_id (str): The DAG ID.
+ update_task_instances_state (UpdateTaskInstancesState): Parameters of action
+
+ Keyword Args:
+ _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
+ will be returned without reading/decoding response data.
+ Default is True.
+ _request_timeout (int/float/tuple): timeout setting for this request. If
+ one number provided, it will be total request timeout. It can also
+ be a pair (tuple) of (connection, read) timeouts.
+ Default is None.
+ _check_input_type (bool): specifies if type checking
+ should be done one the data sent to the server.
+ Default is True.
+ _check_return_type (bool): specifies if type checking
+ should be done one the data received from the server.
+ Default is True.
+ _host_index (int/None): specifies the index of the server
+ that we want to use.
+ Default is read from the configuration.
+ async_req (bool): execute request asynchronously
+
+ Returns:
+ TaskInstanceReferenceCollection
+ If the method is called asynchronously, returns the request
+ thread.
+ """
+ kwargs['async_req'] = kwargs.get(
+ 'async_req', False
+ )
+ kwargs['_return_http_data_only'] = kwargs.get(
+ '_return_http_data_only', True
+ )
+ kwargs['_preload_content'] = kwargs.get(
+ '_preload_content', True
+ )
+ kwargs['_request_timeout'] = kwargs.get(
+ '_request_timeout', None
+ )
+ kwargs['_check_input_type'] = kwargs.get(
+ '_check_input_type', True
+ )
+ kwargs['_check_return_type'] = kwargs.get(
+ '_check_return_type', True
+ )
+ kwargs['_host_index'] = kwargs.get('_host_index')
+ kwargs['dag_id'] = \
+ dag_id
+ kwargs['update_task_instances_state'] = \
+ update_task_instances_state
+ return self.post_set_task_instances_state_endpoint.call_with_http_info(**kwargs)
+
diff --git a/airflow_client/client/api/dag_run_api.py b/airflow_client/client/api/dag_run_api.py
index b31b8d0..171623f 100644
--- a/airflow_client/client/api/dag_run_api.py
+++ b/airflow_client/client/api/dag_run_api.py
@@ -18,7 +18,7 @@
"""
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 th [...]
+ # 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 th [...]
The version of the OpenAPI document: 1.0.0
Contact: dev@airflow.apache.org
@@ -43,6 +43,7 @@ from airflow_client.client.model.dag_run import DAGRun
from airflow_client.client.model.dag_run_collection import DAGRunCollection
from airflow_client.client.model.error import Error
from airflow_client.client.model.list_dag_runs_form import ListDagRunsForm
+from airflow_client.client.model.update_dag_run_state import UpdateDagRunState
class DAGRunApi(object):
@@ -56,77 +57,7 @@ class DAGRunApi(object):
if api_client is None:
api_client = ApiClient()
self.api_client = api_client
-
- def __delete_dag_run(
- self,
- dag_id,
- dag_run_id,
- **kwargs
- ):
- """Delete a DAG run # noqa: E501
-
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
-
- >>> thread = api.delete_dag_run(dag_id, dag_run_id, async_req=True)
- >>> result = thread.get()
-
- Args:
- dag_id (str): The DAG ID.
- dag_run_id (str): The DAG run ID.
-
- Keyword Args:
- _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
- will be returned without reading/decoding response data.
- Default is True.
- _request_timeout (float/tuple): timeout setting for this request. If one
- number provided, it will be total request timeout. It can also
- be a pair (tuple) of (connection, read) timeouts.
- Default is None.
- _check_input_type (bool): specifies if type checking
- should be done one the data sent to the server.
- Default is True.
- _check_return_type (bool): specifies if type checking
- should be done one the data received from the server.
- Default is True.
- _host_index (int/None): specifies the index of the server
- that we want to use.
- Default is read from the configuration.
- async_req (bool): execute request asynchronously
-
- Returns:
- None
- If the method is called asynchronously, returns the request
- thread.
- """
- kwargs['async_req'] = kwargs.get(
- 'async_req', False
- )
- kwargs['_return_http_data_only'] = kwargs.get(
- '_return_http_data_only', True
- )
- kwargs['_preload_content'] = kwargs.get(
- '_preload_content', True
- )
- kwargs['_request_timeout'] = kwargs.get(
- '_request_timeout', None
- )
- kwargs['_check_input_type'] = kwargs.get(
- '_check_input_type', True
- )
- kwargs['_check_return_type'] = kwargs.get(
- '_check_return_type', True
- )
- kwargs['_host_index'] = kwargs.get('_host_index')
- kwargs['dag_id'] = \
- dag_id
- kwargs['dag_run_id'] = \
- dag_run_id
- return self.call_with_http_info(**kwargs)
-
- self.delete_dag_run = _Endpoint(
+ self.delete_dag_run_endpoint = _Endpoint(
settings={
'response_type': None,
'auth': [
@@ -182,80 +113,9 @@ class DAGRunApi(object):
],
'content_type': [],
},
- api_client=api_client,
- callable=__delete_dag_run
- )
-
- def __get_dag_run(
- self,
- dag_id,
- dag_run_id,
- **kwargs
- ):
- """Get a DAG run # noqa: E501
-
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
-
- >>> thread = api.get_dag_run(dag_id, dag_run_id, async_req=True)
- >>> result = thread.get()
-
- Args:
- dag_id (str): The DAG ID.
- dag_run_id (str): The DAG run ID.
-
- Keyword Args:
- _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
- will be returned without reading/decoding response data.
- Default is True.
- _request_timeout (float/tuple): timeout setting for this request. If one
- number provided, it will be total request timeout. It can also
- be a pair (tuple) of (connection, read) timeouts.
- Default is None.
- _check_input_type (bool): specifies if type checking
- should be done one the data sent to the server.
- Default is True.
- _check_return_type (bool): specifies if type checking
- should be done one the data received from the server.
- Default is True.
- _host_index (int/None): specifies the index of the server
- that we want to use.
- Default is read from the configuration.
- async_req (bool): execute request asynchronously
-
- Returns:
- DAGRun
- If the method is called asynchronously, returns the request
- thread.
- """
- kwargs['async_req'] = kwargs.get(
- 'async_req', False
- )
- kwargs['_return_http_data_only'] = kwargs.get(
- '_return_http_data_only', True
- )
- kwargs['_preload_content'] = kwargs.get(
- '_preload_content', True
- )
- kwargs['_request_timeout'] = kwargs.get(
- '_request_timeout', None
- )
- kwargs['_check_input_type'] = kwargs.get(
- '_check_input_type', True
- )
- kwargs['_check_return_type'] = kwargs.get(
- '_check_return_type', True
- )
- kwargs['_host_index'] = kwargs.get('_host_index')
- kwargs['dag_id'] = \
- dag_id
- kwargs['dag_run_id'] = \
- dag_run_id
- return self.call_with_http_info(**kwargs)
-
- self.get_dag_run = _Endpoint(
+ api_client=api_client
+ )
+ self.get_dag_run_endpoint = _Endpoint(
settings={
'response_type': (DAGRun,),
'auth': [
@@ -311,86 +171,9 @@ class DAGRunApi(object):
],
'content_type': [],
},
- api_client=api_client,
- callable=__get_dag_run
- )
-
- def __get_dag_runs(
- self,
- dag_id,
- **kwargs
- ):
- """List DAG runs # noqa: E501
-
- This endpoint allows specifying `~` as the dag_id to retrieve DAG runs for all DAGs. # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
-
- >>> thread = api.get_dag_runs(dag_id, async_req=True)
- >>> result = thread.get()
-
- Args:
- dag_id (str): The DAG ID.
-
- 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]
- execution_date_gte (datetime): Returns objects greater or equal to the specified date. This can be combined with execution_date_lte parameter 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 parameter 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 parameter to receive only the selected period. . [optional]
- 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]
- _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
- will be returned without reading/decoding response data.
- Default is True.
- _request_timeout (float/tuple): timeout setting for this request. If one
- number provided, it will be total request timeout. It can also
- be a pair (tuple) of (connection, read) timeouts.
- Default is None.
- _check_input_type (bool): specifies if type checking
- should be done one the data sent to the server.
- Default is True.
- _check_return_type (bool): specifies if type checking
- should be done one the data received from the server.
- Default is True.
- _host_index (int/None): specifies the index of the server
- that we want to use.
- Default is read from the configuration.
- async_req (bool): execute request asynchronously
-
- Returns:
- DAGRunCollection
- If the method is called asynchronously, returns the request
- thread.
- """
- kwargs['async_req'] = kwargs.get(
- 'async_req', False
- )
- kwargs['_return_http_data_only'] = kwargs.get(
- '_return_http_data_only', True
- )
- kwargs['_preload_content'] = kwargs.get(
- '_preload_content', True
- )
- kwargs['_request_timeout'] = kwargs.get(
- '_request_timeout', None
- )
- kwargs['_check_input_type'] = kwargs.get(
- '_check_input_type', True
- )
- kwargs['_check_return_type'] = kwargs.get(
- '_check_return_type', True
- )
- kwargs['_host_index'] = kwargs.get('_host_index')
- kwargs['dag_id'] = \
- dag_id
- return self.call_with_http_info(**kwargs)
-
- self.get_dag_runs = _Endpoint(
+ api_client=api_client
+ )
+ self.get_dag_runs_endpoint = _Endpoint(
settings={
'response_type': (DAGRunCollection,),
'auth': [
@@ -490,77 +273,9 @@ class DAGRunApi(object):
],
'content_type': [],
},
- api_client=api_client,
- callable=__get_dag_runs
- )
-
- def __get_dag_runs_batch(
- self,
- list_dag_runs_form,
- **kwargs
- ):
- """List DAG runs (batch) # noqa: E501
-
- This endpoint is a POST to allow filtering across a large number of DAG IDs, where as a GET it would run in to maximum HTTP request URL length limit. # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
-
- >>> thread = api.get_dag_runs_batch(list_dag_runs_form, async_req=True)
- >>> result = thread.get()
-
- Args:
- list_dag_runs_form (ListDagRunsForm):
-
- Keyword Args:
- _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
- will be returned without reading/decoding response data.
- Default is True.
- _request_timeout (float/tuple): timeout setting for this request. If one
- number provided, it will be total request timeout. It can also
- be a pair (tuple) of (connection, read) timeouts.
- Default is None.
- _check_input_type (bool): specifies if type checking
- should be done one the data sent to the server.
- Default is True.
- _check_return_type (bool): specifies if type checking
- should be done one the data received from the server.
- Default is True.
- _host_index (int/None): specifies the index of the server
- that we want to use.
- Default is read from the configuration.
- async_req (bool): execute request asynchronously
-
- Returns:
- DAGRunCollection
- If the method is called asynchronously, returns the request
- thread.
- """
- kwargs['async_req'] = kwargs.get(
- 'async_req', False
- )
- kwargs['_return_http_data_only'] = kwargs.get(
- '_return_http_data_only', True
- )
- kwargs['_preload_content'] = kwargs.get(
- '_preload_content', True
- )
- kwargs['_request_timeout'] = kwargs.get(
- '_request_timeout', None
- )
- kwargs['_check_input_type'] = kwargs.get(
- '_check_input_type', True
- )
- kwargs['_check_return_type'] = kwargs.get(
- '_check_return_type', True
- )
- kwargs['_host_index'] = kwargs.get('_host_index')
- kwargs['list_dag_runs_form'] = \
- list_dag_runs_form
- return self.call_with_http_info(**kwargs)
-
- self.get_dag_runs_batch = _Endpoint(
+ api_client=api_client
+ )
+ self.get_dag_runs_batch_endpoint = _Endpoint(
settings={
'response_type': (DAGRunCollection,),
'auth': [
@@ -611,80 +326,9 @@ class DAGRunApi(object):
'application/json'
]
},
- api_client=api_client,
- callable=__get_dag_runs_batch
- )
-
- def __post_dag_run(
- self,
- dag_id,
- dag_run,
- **kwargs
- ):
- """Trigger a new DAG run # noqa: E501
-
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
-
- >>> thread = api.post_dag_run(dag_id, dag_run, async_req=True)
- >>> result = thread.get()
-
- Args:
- dag_id (str): The DAG ID.
- dag_run (DAGRun):
-
- Keyword Args:
- _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
- will be returned without reading/decoding response data.
- Default is True.
- _request_timeout (float/tuple): timeout setting for this request. If one
- number provided, it will be total request timeout. It can also
- be a pair (tuple) of (connection, read) timeouts.
- Default is None.
- _check_input_type (bool): specifies if type checking
- should be done one the data sent to the server.
- Default is True.
- _check_return_type (bool): specifies if type checking
- should be done one the data received from the server.
- Default is True.
- _host_index (int/None): specifies the index of the server
- that we want to use.
- Default is read from the configuration.
- async_req (bool): execute request asynchronously
-
- Returns:
- DAGRun
- If the method is called asynchronously, returns the request
- thread.
- """
- kwargs['async_req'] = kwargs.get(
- 'async_req', False
- )
- kwargs['_return_http_data_only'] = kwargs.get(
- '_return_http_data_only', True
- )
- kwargs['_preload_content'] = kwargs.get(
- '_preload_content', True
- )
- kwargs['_request_timeout'] = kwargs.get(
- '_request_timeout', None
- )
- kwargs['_check_input_type'] = kwargs.get(
- '_check_input_type', True
- )
- kwargs['_check_return_type'] = kwargs.get(
- '_check_return_type', True
- )
- kwargs['_host_index'] = kwargs.get('_host_index')
- kwargs['dag_id'] = \
- dag_id
- kwargs['dag_run'] = \
- dag_run
- return self.call_with_http_info(**kwargs)
-
- self.post_dag_run = _Endpoint(
+ api_client=api_client
+ )
+ self.post_dag_run_endpoint = _Endpoint(
settings={
'response_type': (DAGRun,),
'auth': [
@@ -741,6 +385,493 @@ class DAGRunApi(object):
'application/json'
]
},
- api_client=api_client,
- callable=__post_dag_run
+ api_client=api_client
)
+ self.update_dag_run_state_endpoint = _Endpoint(
+ settings={
+ 'response_type': (DAGRun,),
+ 'auth': [
+ 'Basic',
+ 'Kerberos'
+ ],
+ 'endpoint_path': '/dags/{dag_id}/dagRuns/{dag_run_id}',
+ 'operation_id': 'update_dag_run_state',
+ 'http_method': 'PATCH',
+ 'servers': None,
+ },
+ params_map={
+ 'all': [
+ 'dag_id',
+ 'dag_run_id',
+ 'update_dag_run_state',
+ ],
+ 'required': [
+ 'dag_id',
+ 'dag_run_id',
+ 'update_dag_run_state',
+ ],
+ 'nullable': [
+ ],
+ 'enum': [
+ ],
+ 'validation': [
+ ]
+ },
+ root_map={
+ 'validations': {
+ },
+ 'allowed_values': {
+ },
+ 'openapi_types': {
+ 'dag_id':
+ (str,),
+ 'dag_run_id':
+ (str,),
+ 'update_dag_run_state':
+ (UpdateDagRunState,),
+ },
+ 'attribute_map': {
+ 'dag_id': 'dag_id',
+ 'dag_run_id': 'dag_run_id',
+ },
+ 'location_map': {
+ 'dag_id': 'path',
+ 'dag_run_id': 'path',
+ 'update_dag_run_state': 'body',
+ },
+ 'collection_format_map': {
+ }
+ },
+ headers_map={
+ 'accept': [
+ 'application/json'
+ ],
+ 'content_type': [
+ 'application/json'
+ ]
+ },
+ api_client=api_client
+ )
+
+ def delete_dag_run(
+ self,
+ dag_id,
+ dag_run_id,
+ **kwargs
+ ):
+ """Delete a DAG run # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+
+ >>> thread = api.delete_dag_run(dag_id, dag_run_id, async_req=True)
+ >>> result = thread.get()
+
+ Args:
+ dag_id (str): The DAG ID.
+ dag_run_id (str): The DAG run ID.
+
+ Keyword Args:
+ _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
+ will be returned without reading/decoding response data.
+ Default is True.
+ _request_timeout (int/float/tuple): timeout setting for this request. If
+ one number provided, it will be total request timeout. It can also
+ be a pair (tuple) of (connection, read) timeouts.
+ Default is None.
+ _check_input_type (bool): specifies if type checking
+ should be done one the data sent to the server.
+ Default is True.
+ _check_return_type (bool): specifies if type checking
+ should be done one the data received from the server.
+ Default is True.
+ _host_index (int/None): specifies the index of the server
+ that we want to use.
+ Default is read from the configuration.
+ async_req (bool): execute request asynchronously
+
+ Returns:
+ None
+ If the method is called asynchronously, returns the request
+ thread.
+ """
+ kwargs['async_req'] = kwargs.get(
+ 'async_req', False
+ )
+ kwargs['_return_http_data_only'] = kwargs.get(
+ '_return_http_data_only', True
+ )
+ kwargs['_preload_content'] = kwargs.get(
+ '_preload_content', True
+ )
+ kwargs['_request_timeout'] = kwargs.get(
+ '_request_timeout', None
+ )
+ kwargs['_check_input_type'] = kwargs.get(
+ '_check_input_type', True
+ )
+ kwargs['_check_return_type'] = kwargs.get(
+ '_check_return_type', True
+ )
+ kwargs['_host_index'] = kwargs.get('_host_index')
+ kwargs['dag_id'] = \
+ dag_id
+ kwargs['dag_run_id'] = \
+ dag_run_id
+ return self.delete_dag_run_endpoint.call_with_http_info(**kwargs)
+
+ def get_dag_run(
+ self,
+ dag_id,
+ dag_run_id,
+ **kwargs
+ ):
+ """Get a DAG run # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+
+ >>> thread = api.get_dag_run(dag_id, dag_run_id, async_req=True)
+ >>> result = thread.get()
+
+ Args:
+ dag_id (str): The DAG ID.
+ dag_run_id (str): The DAG run ID.
+
+ Keyword Args:
+ _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
+ will be returned without reading/decoding response data.
+ Default is True.
+ _request_timeout (int/float/tuple): timeout setting for this request. If
+ one number provided, it will be total request timeout. It can also
+ be a pair (tuple) of (connection, read) timeouts.
+ Default is None.
+ _check_input_type (bool): specifies if type checking
+ should be done one the data sent to the server.
+ Default is True.
+ _check_return_type (bool): specifies if type checking
+ should be done one the data received from the server.
+ Default is True.
+ _host_index (int/None): specifies the index of the server
+ that we want to use.
+ Default is read from the configuration.
+ async_req (bool): execute request asynchronously
+
+ Returns:
+ DAGRun
+ If the method is called asynchronously, returns the request
+ thread.
+ """
+ kwargs['async_req'] = kwargs.get(
+ 'async_req', False
+ )
+ kwargs['_return_http_data_only'] = kwargs.get(
+ '_return_http_data_only', True
+ )
+ kwargs['_preload_content'] = kwargs.get(
+ '_preload_content', True
+ )
+ kwargs['_request_timeout'] = kwargs.get(
+ '_request_timeout', None
+ )
+ kwargs['_check_input_type'] = kwargs.get(
+ '_check_input_type', True
+ )
+ kwargs['_check_return_type'] = kwargs.get(
+ '_check_return_type', True
+ )
+ kwargs['_host_index'] = kwargs.get('_host_index')
+ kwargs['dag_id'] = \
+ dag_id
+ kwargs['dag_run_id'] = \
+ dag_run_id
+ return self.get_dag_run_endpoint.call_with_http_info(**kwargs)
+
+ def get_dag_runs(
+ self,
+ dag_id,
+ **kwargs
+ ):
+ """List DAG runs # noqa: E501
+
+ This endpoint allows specifying `~` as the dag_id to retrieve DAG runs for all DAGs. # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+
+ >>> thread = api.get_dag_runs(dag_id, async_req=True)
+ >>> result = thread.get()
+
+ Args:
+ dag_id (str): The DAG ID.
+
+ 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]
+ execution_date_gte (datetime): Returns objects greater or equal to the specified date. This can be combined with execution_date_lte parameter 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 parameter 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 parameter to receive only the selected period. . [optional]
+ 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]
+ _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
+ will be returned without reading/decoding response data.
+ Default is True.
+ _request_timeout (int/float/tuple): timeout setting for this request. If
+ one number provided, it will be total request timeout. It can also
+ be a pair (tuple) of (connection, read) timeouts.
+ Default is None.
+ _check_input_type (bool): specifies if type checking
+ should be done one the data sent to the server.
+ Default is True.
+ _check_return_type (bool): specifies if type checking
+ should be done one the data received from the server.
+ Default is True.
+ _host_index (int/None): specifies the index of the server
+ that we want to use.
+ Default is read from the configuration.
+ async_req (bool): execute request asynchronously
+
+ Returns:
+ DAGRunCollection
+ If the method is called asynchronously, returns the request
+ thread.
+ """
+ kwargs['async_req'] = kwargs.get(
+ 'async_req', False
+ )
+ kwargs['_return_http_data_only'] = kwargs.get(
+ '_return_http_data_only', True
+ )
+ kwargs['_preload_content'] = kwargs.get(
+ '_preload_content', True
+ )
+ kwargs['_request_timeout'] = kwargs.get(
+ '_request_timeout', None
+ )
+ kwargs['_check_input_type'] = kwargs.get(
+ '_check_input_type', True
+ )
+ kwargs['_check_return_type'] = kwargs.get(
+ '_check_return_type', True
+ )
+ kwargs['_host_index'] = kwargs.get('_host_index')
+ kwargs['dag_id'] = \
+ dag_id
+ return self.get_dag_runs_endpoint.call_with_http_info(**kwargs)
+
+ def get_dag_runs_batch(
+ self,
+ list_dag_runs_form,
+ **kwargs
+ ):
+ """List DAG runs (batch) # noqa: E501
+
+ This endpoint is a POST to allow filtering across a large number of DAG IDs, where as a GET it would run in to maximum HTTP request URL length limit. # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+
+ >>> thread = api.get_dag_runs_batch(list_dag_runs_form, async_req=True)
+ >>> result = thread.get()
+
+ Args:
+ list_dag_runs_form (ListDagRunsForm):
+
+ Keyword Args:
+ _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
+ will be returned without reading/decoding response data.
+ Default is True.
+ _request_timeout (int/float/tuple): timeout setting for this request. If
+ one number provided, it will be total request timeout. It can also
+ be a pair (tuple) of (connection, read) timeouts.
+ Default is None.
+ _check_input_type (bool): specifies if type checking
+ should be done one the data sent to the server.
+ Default is True.
+ _check_return_type (bool): specifies if type checking
+ should be done one the data received from the server.
+ Default is True.
+ _host_index (int/None): specifies the index of the server
+ that we want to use.
+ Default is read from the configuration.
+ async_req (bool): execute request asynchronously
+
+ Returns:
+ DAGRunCollection
+ If the method is called asynchronously, returns the request
+ thread.
+ """
+ kwargs['async_req'] = kwargs.get(
+ 'async_req', False
+ )
+ kwargs['_return_http_data_only'] = kwargs.get(
+ '_return_http_data_only', True
+ )
+ kwargs['_preload_content'] = kwargs.get(
+ '_preload_content', True
+ )
+ kwargs['_request_timeout'] = kwargs.get(
+ '_request_timeout', None
+ )
+ kwargs['_check_input_type'] = kwargs.get(
+ '_check_input_type', True
+ )
+ kwargs['_check_return_type'] = kwargs.get(
+ '_check_return_type', True
+ )
+ kwargs['_host_index'] = kwargs.get('_host_index')
+ kwargs['list_dag_runs_form'] = \
+ list_dag_runs_form
+ return self.get_dag_runs_batch_endpoint.call_with_http_info(**kwargs)
+
+ def post_dag_run(
+ self,
+ dag_id,
+ dag_run,
+ **kwargs
+ ):
+ """Trigger a new DAG run # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+
+ >>> thread = api.post_dag_run(dag_id, dag_run, async_req=True)
+ >>> result = thread.get()
+
+ Args:
+ dag_id (str): The DAG ID.
+ dag_run (DAGRun):
+
+ Keyword Args:
+ _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
+ will be returned without reading/decoding response data.
+ Default is True.
+ _request_timeout (int/float/tuple): timeout setting for this request. If
+ one number provided, it will be total request timeout. It can also
+ be a pair (tuple) of (connection, read) timeouts.
+ Default is None.
+ _check_input_type (bool): specifies if type checking
+ should be done one the data sent to the server.
+ Default is True.
+ _check_return_type (bool): specifies if type checking
+ should be done one the data received from the server.
+ Default is True.
+ _host_index (int/None): specifies the index of the server
+ that we want to use.
+ Default is read from the configuration.
+ async_req (bool): execute request asynchronously
+
+ Returns:
+ DAGRun
+ If the method is called asynchronously, returns the request
+ thread.
+ """
+ kwargs['async_req'] = kwargs.get(
+ 'async_req', False
+ )
+ kwargs['_return_http_data_only'] = kwargs.get(
+ '_return_http_data_only', True
+ )
+ kwargs['_preload_content'] = kwargs.get(
+ '_preload_content', True
+ )
+ kwargs['_request_timeout'] = kwargs.get(
+ '_request_timeout', None
+ )
+ kwargs['_check_input_type'] = kwargs.get(
+ '_check_input_type', True
+ )
+ kwargs['_check_return_type'] = kwargs.get(
+ '_check_return_type', True
+ )
+ kwargs['_host_index'] = kwargs.get('_host_index')
+ kwargs['dag_id'] = \
+ dag_id
+ kwargs['dag_run'] = \
+ dag_run
+ return self.post_dag_run_endpoint.call_with_http_info(**kwargs)
+
+ def update_dag_run_state(
+ self,
+ dag_id,
+ dag_run_id,
+ update_dag_run_state,
+ **kwargs
+ ):
+ """Modify a DAG run # noqa: E501
+
+ Modify a DAG run # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+
+ >>> thread = api.update_dag_run_state(dag_id, dag_run_id, update_dag_run_state, async_req=True)
+ >>> result = thread.get()
+
+ Args:
+ dag_id (str): The DAG ID.
+ dag_run_id (str): The DAG run ID.
+ update_dag_run_state (UpdateDagRunState):
+
+ Keyword Args:
+ _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
+ will be returned without reading/decoding response data.
+ Default is True.
+ _request_timeout (int/float/tuple): timeout setting for this request. If
+ one number provided, it will be total request timeout. It can also
+ be a pair (tuple) of (connection, read) timeouts.
+ Default is None.
+ _check_input_type (bool): specifies if type checking
+ should be done one the data sent to the server.
+ Default is True.
+ _check_return_type (bool): specifies if type checking
+ should be done one the data received from the server.
+ Default is True.
+ _host_index (int/None): specifies the index of the server
+ that we want to use.
+ Default is read from the configuration.
+ async_req (bool): execute request asynchronously
+
+ Returns:
+ DAGRun
+ If the method is called asynchronously, returns the request
+ thread.
+ """
+ kwargs['async_req'] = kwargs.get(
+ 'async_req', False
+ )
+ kwargs['_return_http_data_only'] = kwargs.get(
+ '_return_http_data_only', True
+ )
+ kwargs['_preload_content'] = kwargs.get(
+ '_preload_content', True
+ )
+ kwargs['_request_timeout'] = kwargs.get(
+ '_request_timeout', None
+ )
+ kwargs['_check_input_type'] = kwargs.get(
+ '_check_input_type', True
+ )
+ kwargs['_check_return_type'] = kwargs.get(
+ '_check_return_type', True
+ )
+ kwargs['_host_index'] = kwargs.get('_host_index')
+ kwargs['dag_id'] = \
+ dag_id
+ kwargs['dag_run_id'] = \
+ dag_run_id
+ kwargs['update_dag_run_state'] = \
+ update_dag_run_state
+ return self.update_dag_run_state_endpoint.call_with_http_info(**kwargs)
+
diff --git a/airflow_client/client/api/event_log_api.py b/airflow_client/client/api/event_log_api.py
index 4720c6d..cbbaad3 100644
--- a/airflow_client/client/api/event_log_api.py
+++ b/airflow_client/client/api/event_log_api.py
@@ -18,7 +18,7 @@
"""
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 th [...]
+ # 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 th [...]
The version of the OpenAPI document: 1.0.0
Contact: dev@airflow.apache.org
@@ -55,73 +55,7 @@ class EventLogApi(object):
if api_client is None:
api_client = ApiClient()
self.api_client = api_client
-
- def __get_event_log(
- self,
- event_log_id,
- **kwargs
- ):
- """Get a log entry # noqa: E501
-
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
-
- >>> thread = api.get_event_log(event_log_id, async_req=True)
- >>> result = thread.get()
-
- Args:
- event_log_id (int): The event log ID.
-
- Keyword Args:
- _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
- will be returned without reading/decoding response data.
- Default is True.
- _request_timeout (float/tuple): timeout setting for this request. If one
- number provided, it will be total request timeout. It can also
- be a pair (tuple) of (connection, read) timeouts.
- Default is None.
- _check_input_type (bool): specifies if type checking
- should be done one the data sent to the server.
- Default is True.
- _check_return_type (bool): specifies if type checking
- should be done one the data received from the server.
- Default is True.
- _host_index (int/None): specifies the index of the server
- that we want to use.
- Default is read from the configuration.
- async_req (bool): execute request asynchronously
-
- Returns:
- EventLog
- If the method is called asynchronously, returns the request
- thread.
- """
- kwargs['async_req'] = kwargs.get(
- 'async_req', False
- )
- kwargs['_return_http_data_only'] = kwargs.get(
- '_return_http_data_only', True
- )
- kwargs['_preload_content'] = kwargs.get(
- '_preload_content', True
- )
- kwargs['_request_timeout'] = kwargs.get(
- '_request_timeout', None
- )
- kwargs['_check_input_type'] = kwargs.get(
- '_check_input_type', True
- )
- kwargs['_check_return_type'] = kwargs.get(
- '_check_return_type', True
- )
- kwargs['_host_index'] = kwargs.get('_host_index')
- kwargs['event_log_id'] = \
- event_log_id
- return self.call_with_http_info(**kwargs)
-
- self.get_event_log = _Endpoint(
+ self.get_event_log_endpoint = _Endpoint(
settings={
'response_type': (EventLog,),
'auth': [
@@ -171,75 +105,9 @@ class EventLogApi(object):
],
'content_type': [],
},
- api_client=api_client,
- callable=__get_event_log
+ api_client=api_client
)
-
- def __get_event_logs(
- self,
- **kwargs
- ):
- """List log entries # noqa: E501
-
- List log entries from event log. # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
-
- >>> thread = api.get_event_logs(async_req=True)
- >>> result = thread.get()
-
-
- 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]
- _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
- will be returned without reading/decoding response data.
- Default is True.
- _request_timeout (float/tuple): timeout setting for this request. If one
- number provided, it will be total request timeout. It can also
- be a pair (tuple) of (connection, read) timeouts.
- Default is None.
- _check_input_type (bool): specifies if type checking
- should be done one the data sent to the server.
- Default is True.
- _check_return_type (bool): specifies if type checking
- should be done one the data received from the server.
- Default is True.
- _host_index (int/None): specifies the index of the server
- that we want to use.
- Default is read from the configuration.
- async_req (bool): execute request asynchronously
-
- Returns:
- EventLogCollection
- If the method is called asynchronously, returns the request
- thread.
- """
- kwargs['async_req'] = kwargs.get(
- 'async_req', False
- )
- kwargs['_return_http_data_only'] = kwargs.get(
- '_return_http_data_only', True
- )
- kwargs['_preload_content'] = kwargs.get(
- '_preload_content', True
- )
- kwargs['_request_timeout'] = kwargs.get(
- '_request_timeout', None
- )
- kwargs['_check_input_type'] = kwargs.get(
- '_check_input_type', True
- )
- kwargs['_check_return_type'] = kwargs.get(
- '_check_return_type', True
- )
- kwargs['_host_index'] = kwargs.get('_host_index')
- return self.call_with_http_info(**kwargs)
-
- self.get_event_logs = _Endpoint(
+ self.get_event_logs_endpoint = _Endpoint(
settings={
'response_type': (EventLogCollection,),
'auth': [
@@ -302,6 +170,135 @@ class EventLogApi(object):
],
'content_type': [],
},
- api_client=api_client,
- callable=__get_event_logs
+ api_client=api_client
)
+
+ def get_event_log(
+ self,
+ event_log_id,
+ **kwargs
+ ):
+ """Get a log entry # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+
+ >>> thread = api.get_event_log(event_log_id, async_req=True)
+ >>> result = thread.get()
+
+ Args:
+ event_log_id (int): The event log ID.
+
+ Keyword Args:
+ _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
+ will be returned without reading/decoding response data.
+ Default is True.
+ _request_timeout (int/float/tuple): timeout setting for this request. If
+ one number provided, it will be total request timeout. It can also
+ be a pair (tuple) of (connection, read) timeouts.
+ Default is None.
+ _check_input_type (bool): specifies if type checking
+ should be done one the data sent to the server.
+ Default is True.
+ _check_return_type (bool): specifies if type checking
+ should be done one the data received from the server.
+ Default is True.
+ _host_index (int/None): specifies the index of the server
+ that we want to use.
+ Default is read from the configuration.
+ async_req (bool): execute request asynchronously
+
+ Returns:
+ EventLog
+ If the method is called asynchronously, returns the request
+ thread.
+ """
+ kwargs['async_req'] = kwargs.get(
+ 'async_req', False
+ )
+ kwargs['_return_http_data_only'] = kwargs.get(
+ '_return_http_data_only', True
+ )
+ kwargs['_preload_content'] = kwargs.get(
+ '_preload_content', True
+ )
+ kwargs['_request_timeout'] = kwargs.get(
+ '_request_timeout', None
+ )
+ kwargs['_check_input_type'] = kwargs.get(
+ '_check_input_type', True
+ )
+ kwargs['_check_return_type'] = kwargs.get(
+ '_check_return_type', True
+ )
+ kwargs['_host_index'] = kwargs.get('_host_index')
+ kwargs['event_log_id'] = \
+ event_log_id
+ return self.get_event_log_endpoint.call_with_http_info(**kwargs)
+
+ def get_event_logs(
+ self,
+ **kwargs
+ ):
+ """List log entries # noqa: E501
+
+ List log entries from event log. # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+
+ >>> thread = api.get_event_logs(async_req=True)
+ >>> result = thread.get()
+
+
+ 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]
+ _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
+ will be returned without reading/decoding response data.
+ Default is True.
+ _request_timeout (int/float/tuple): timeout setting for this request. If
+ one number provided, it will be total request timeout. It can also
+ be a pair (tuple) of (connection, read) timeouts.
+ Default is None.
+ _check_input_type (bool): specifies if type checking
+ should be done one the data sent to the server.
+ Default is True.
+ _check_return_type (bool): specifies if type checking
+ should be done one the data received from the server.
+ Default is True.
+ _host_index (int/None): specifies the index of the server
+ that we want to use.
+ Default is read from the configuration.
+ async_req (bool): execute request asynchronously
+
+ Returns:
+ EventLogCollection
+ If the method is called asynchronously, returns the request
+ thread.
+ """
+ kwargs['async_req'] = kwargs.get(
+ 'async_req', False
+ )
+ kwargs['_return_http_data_only'] = kwargs.get(
+ '_return_http_data_only', True
+ )
+ kwargs['_preload_content'] = kwargs.get(
+ '_preload_content', True
+ )
+ kwargs['_request_timeout'] = kwargs.get(
+ '_request_timeout', None
+ )
+ kwargs['_check_input_type'] = kwargs.get(
+ '_check_input_type', True
+ )
+ kwargs['_check_return_type'] = kwargs.get(
+ '_check_return_type', True
+ )
+ kwargs['_host_index'] = kwargs.get('_host_index')
+ return self.get_event_logs_endpoint.call_with_http_info(**kwargs)
+
diff --git a/airflow_client/client/api/import_error_api.py b/airflow_client/client/api/import_error_api.py
index dd1023f..e3bbd78 100644
--- a/airflow_client/client/api/import_error_api.py
+++ b/airflow_client/client/api/import_error_api.py
@@ -18,7 +18,7 @@
"""
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 th [...]
+ # 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 th [...]
The version of the OpenAPI document: 1.0.0
Contact: dev@airflow.apache.org
@@ -55,73 +55,7 @@ class ImportErrorApi(object):
if api_client is None:
api_client = ApiClient()
self.api_client = api_client
-
- def __get_import_error(
- self,
- import_error_id,
- **kwargs
- ):
- """Get an import error # noqa: E501
-
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
-
- >>> thread = api.get_import_error(import_error_id, async_req=True)
- >>> result = thread.get()
-
- Args:
- import_error_id (int): The import error ID.
-
- Keyword Args:
- _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
- will be returned without reading/decoding response data.
- Default is True.
- _request_timeout (float/tuple): timeout setting for this request. If one
- number provided, it will be total request timeout. It can also
- be a pair (tuple) of (connection, read) timeouts.
- Default is None.
- _check_input_type (bool): specifies if type checking
- should be done one the data sent to the server.
- Default is True.
- _check_return_type (bool): specifies if type checking
- should be done one the data received from the server.
- Default is True.
- _host_index (int/None): specifies the index of the server
- that we want to use.
- Default is read from the configuration.
- async_req (bool): execute request asynchronously
-
- Returns:
- ImportError
- If the method is called asynchronously, returns the request
- thread.
- """
- kwargs['async_req'] = kwargs.get(
- 'async_req', False
- )
- kwargs['_return_http_data_only'] = kwargs.get(
- '_return_http_data_only', True
- )
- kwargs['_preload_content'] = kwargs.get(
- '_preload_content', True
- )
- kwargs['_request_timeout'] = kwargs.get(
- '_request_timeout', None
- )
- kwargs['_check_input_type'] = kwargs.get(
- '_check_input_type', True
- )
- kwargs['_check_return_type'] = kwargs.get(
- '_check_return_type', True
- )
- kwargs['_host_index'] = kwargs.get('_host_index')
- kwargs['import_error_id'] = \
- import_error_id
- return self.call_with_http_info(**kwargs)
-
- self.get_import_error = _Endpoint(
+ self.get_import_error_endpoint = _Endpoint(
settings={
'response_type': (ImportError,),
'auth': [
@@ -171,74 +105,9 @@ class ImportErrorApi(object):
],
'content_type': [],
},
- api_client=api_client,
- callable=__get_import_error
+ api_client=api_client
)
-
- def __get_import_errors(
- self,
- **kwargs
- ):
- """List import errors # noqa: E501
-
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
-
- >>> thread = api.get_import_errors(async_req=True)
- >>> result = thread.get()
-
-
- 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]
- _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
- will be returned without reading/decoding response data.
- Default is True.
- _request_timeout (float/tuple): timeout setting for this request. If one
- number provided, it will be total request timeout. It can also
- be a pair (tuple) of (connection, read) timeouts.
- Default is None.
- _check_input_type (bool): specifies if type checking
- should be done one the data sent to the server.
- Default is True.
- _check_return_type (bool): specifies if type checking
- should be done one the data received from the server.
- Default is True.
- _host_index (int/None): specifies the index of the server
- that we want to use.
- Default is read from the configuration.
- async_req (bool): execute request asynchronously
-
- Returns:
- ImportErrorCollection
- If the method is called asynchronously, returns the request
- thread.
- """
- kwargs['async_req'] = kwargs.get(
- 'async_req', False
- )
- kwargs['_return_http_data_only'] = kwargs.get(
- '_return_http_data_only', True
- )
- kwargs['_preload_content'] = kwargs.get(
- '_preload_content', True
- )
- kwargs['_request_timeout'] = kwargs.get(
- '_request_timeout', None
- )
- kwargs['_check_input_type'] = kwargs.get(
- '_check_input_type', True
- )
- kwargs['_check_return_type'] = kwargs.get(
- '_check_return_type', True
- )
- kwargs['_host_index'] = kwargs.get('_host_index')
- return self.call_with_http_info(**kwargs)
-
- self.get_import_errors = _Endpoint(
+ self.get_import_errors_endpoint = _Endpoint(
settings={
'response_type': (ImportErrorCollection,),
'auth': [
@@ -301,6 +170,134 @@ class ImportErrorApi(object):
],
'content_type': [],
},
- api_client=api_client,
- callable=__get_import_errors
+ api_client=api_client
)
+
+ def get_import_error(
+ self,
+ import_error_id,
+ **kwargs
+ ):
+ """Get an import error # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+
+ >>> thread = api.get_import_error(import_error_id, async_req=True)
+ >>> result = thread.get()
+
+ Args:
+ import_error_id (int): The import error ID.
+
+ Keyword Args:
+ _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
+ will be returned without reading/decoding response data.
+ Default is True.
+ _request_timeout (int/float/tuple): timeout setting for this request. If
+ one number provided, it will be total request timeout. It can also
+ be a pair (tuple) of (connection, read) timeouts.
+ Default is None.
+ _check_input_type (bool): specifies if type checking
+ should be done one the data sent to the server.
+ Default is True.
+ _check_return_type (bool): specifies if type checking
+ should be done one the data received from the server.
+ Default is True.
+ _host_index (int/None): specifies the index of the server
+ that we want to use.
+ Default is read from the configuration.
+ async_req (bool): execute request asynchronously
+
+ Returns:
+ ImportError
+ If the method is called asynchronously, returns the request
+ thread.
+ """
+ kwargs['async_req'] = kwargs.get(
+ 'async_req', False
+ )
+ kwargs['_return_http_data_only'] = kwargs.get(
+ '_return_http_data_only', True
+ )
+ kwargs['_preload_content'] = kwargs.get(
+ '_preload_content', True
+ )
+ kwargs['_request_timeout'] = kwargs.get(
+ '_request_timeout', None
+ )
+ kwargs['_check_input_type'] = kwargs.get(
+ '_check_input_type', True
+ )
+ kwargs['_check_return_type'] = kwargs.get(
+ '_check_return_type', True
+ )
+ kwargs['_host_index'] = kwargs.get('_host_index')
+ kwargs['import_error_id'] = \
+ import_error_id
+ return self.get_import_error_endpoint.call_with_http_info(**kwargs)
+
+ def get_import_errors(
+ self,
+ **kwargs
+ ):
+ """List import errors # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+
+ >>> thread = api.get_import_errors(async_req=True)
+ >>> result = thread.get()
+
+
+ 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]
+ _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
+ will be returned without reading/decoding response data.
+ Default is True.
+ _request_timeout (int/float/tuple): timeout setting for this request. If
+ one number provided, it will be total request timeout. It can also
+ be a pair (tuple) of (connection, read) timeouts.
+ Default is None.
+ _check_input_type (bool): specifies if type checking
+ should be done one the data sent to the server.
+ Default is True.
+ _check_return_type (bool): specifies if type checking
+ should be done one the data received from the server.
+ Default is True.
+ _host_index (int/None): specifies the index of the server
+ that we want to use.
+ Default is read from the configuration.
+ async_req (bool): execute request asynchronously
+
+ Returns:
+ ImportErrorCollection
+ If the method is called asynchronously, returns the request
+ thread.
+ """
+ kwargs['async_req'] = kwargs.get(
+ 'async_req', False
+ )
+ kwargs['_return_http_data_only'] = kwargs.get(
+ '_return_http_data_only', True
+ )
+ kwargs['_preload_content'] = kwargs.get(
+ '_preload_content', True
+ )
+ kwargs['_request_timeout'] = kwargs.get(
+ '_request_timeout', None
+ )
+ kwargs['_check_input_type'] = kwargs.get(
+ '_check_input_type', True
+ )
+ kwargs['_check_return_type'] = kwargs.get(
+ '_check_return_type', True
+ )
+ kwargs['_host_index'] = kwargs.get('_host_index')
+ return self.get_import_errors_endpoint.call_with_http_info(**kwargs)
+
diff --git a/airflow_client/client/api/monitoring_api.py b/airflow_client/client/api/monitoring_api.py
index d6d2cf5..eaf1182 100644
--- a/airflow_client/client/api/monitoring_api.py
+++ b/airflow_client/client/api/monitoring_api.py
@@ -18,7 +18,7 @@
"""
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 th [...]
+ # 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 th [...]
The version of the OpenAPI document: 1.0.0
Contact: dev@airflow.apache.org
@@ -54,69 +54,7 @@ class MonitoringApi(object):
if api_client is None:
api_client = ApiClient()
self.api_client = api_client
-
- def __get_health(
- self,
- **kwargs
- ):
- """Get instance status # noqa: E501
-
- Get the status of Airflow's metadatabase and scheduler. It includes info about metadatabase and last heartbeat of scheduler. # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
-
- >>> thread = api.get_health(async_req=True)
- >>> result = thread.get()
-
-
- Keyword Args:
- _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
- will be returned without reading/decoding response data.
- Default is True.
- _request_timeout (float/tuple): timeout setting for this request. If one
- number provided, it will be total request timeout. It can also
- be a pair (tuple) of (connection, read) timeouts.
- Default is None.
- _check_input_type (bool): specifies if type checking
- should be done one the data sent to the server.
- Default is True.
- _check_return_type (bool): specifies if type checking
- should be done one the data received from the server.
- Default is True.
- _host_index (int/None): specifies the index of the server
- that we want to use.
- Default is read from the configuration.
- async_req (bool): execute request asynchronously
-
- Returns:
- HealthInfo
- If the method is called asynchronously, returns the request
- thread.
- """
- kwargs['async_req'] = kwargs.get(
- 'async_req', False
- )
- kwargs['_return_http_data_only'] = kwargs.get(
- '_return_http_data_only', True
- )
- kwargs['_preload_content'] = kwargs.get(
- '_preload_content', True
- )
- kwargs['_request_timeout'] = kwargs.get(
- '_request_timeout', None
- )
- kwargs['_check_input_type'] = kwargs.get(
- '_check_input_type', True
- )
- kwargs['_check_return_type'] = kwargs.get(
- '_check_return_type', True
- )
- kwargs['_host_index'] = kwargs.get('_host_index')
- return self.call_with_http_info(**kwargs)
-
- self.get_health = _Endpoint(
+ self.get_health_endpoint = _Endpoint(
settings={
'response_type': (HealthInfo,),
'auth': [
@@ -159,71 +97,9 @@ class MonitoringApi(object):
],
'content_type': [],
},
- api_client=api_client,
- callable=__get_health
+ api_client=api_client
)
-
- def __get_version(
- self,
- **kwargs
- ):
- """Get version information # noqa: E501
-
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
-
- >>> thread = api.get_version(async_req=True)
- >>> result = thread.get()
-
-
- Keyword Args:
- _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
- will be returned without reading/decoding response data.
- Default is True.
- _request_timeout (float/tuple): timeout setting for this request. If one
- number provided, it will be total request timeout. It can also
- be a pair (tuple) of (connection, read) timeouts.
- Default is None.
- _check_input_type (bool): specifies if type checking
- should be done one the data sent to the server.
- Default is True.
- _check_return_type (bool): specifies if type checking
- should be done one the data received from the server.
- Default is True.
- _host_index (int/None): specifies the index of the server
- that we want to use.
- Default is read from the configuration.
- async_req (bool): execute request asynchronously
-
- Returns:
- VersionInfo
- If the method is called asynchronously, returns the request
- thread.
- """
- kwargs['async_req'] = kwargs.get(
- 'async_req', False
- )
- kwargs['_return_http_data_only'] = kwargs.get(
- '_return_http_data_only', True
- )
- kwargs['_preload_content'] = kwargs.get(
- '_preload_content', True
- )
- kwargs['_request_timeout'] = kwargs.get(
- '_request_timeout', None
- )
- kwargs['_check_input_type'] = kwargs.get(
- '_check_input_type', True
- )
- kwargs['_check_return_type'] = kwargs.get(
- '_check_return_type', True
- )
- kwargs['_host_index'] = kwargs.get('_host_index')
- return self.call_with_http_info(**kwargs)
-
- self.get_version = _Endpoint(
+ self.get_version_endpoint = _Endpoint(
settings={
'response_type': (VersionInfo,),
'auth': [
@@ -266,6 +142,127 @@ class MonitoringApi(object):
],
'content_type': [],
},
- api_client=api_client,
- callable=__get_version
+ api_client=api_client
)
+
+ def get_health(
+ self,
+ **kwargs
+ ):
+ """Get instance status # noqa: E501
+
+ Get the status of Airflow's metadatabase and scheduler. It includes info about metadatabase and last heartbeat of scheduler. # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+
+ >>> thread = api.get_health(async_req=True)
+ >>> result = thread.get()
+
+
+ Keyword Args:
+ _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
+ will be returned without reading/decoding response data.
+ Default is True.
+ _request_timeout (int/float/tuple): timeout setting for this request. If
+ one number provided, it will be total request timeout. It can also
+ be a pair (tuple) of (connection, read) timeouts.
+ Default is None.
+ _check_input_type (bool): specifies if type checking
+ should be done one the data sent to the server.
+ Default is True.
+ _check_return_type (bool): specifies if type checking
+ should be done one the data received from the server.
+ Default is True.
+ _host_index (int/None): specifies the index of the server
+ that we want to use.
+ Default is read from the configuration.
+ async_req (bool): execute request asynchronously
+
+ Returns:
+ HealthInfo
+ If the method is called asynchronously, returns the request
+ thread.
+ """
+ kwargs['async_req'] = kwargs.get(
+ 'async_req', False
+ )
+ kwargs['_return_http_data_only'] = kwargs.get(
+ '_return_http_data_only', True
+ )
+ kwargs['_preload_content'] = kwargs.get(
+ '_preload_content', True
+ )
+ kwargs['_request_timeout'] = kwargs.get(
+ '_request_timeout', None
+ )
+ kwargs['_check_input_type'] = kwargs.get(
+ '_check_input_type', True
+ )
+ kwargs['_check_return_type'] = kwargs.get(
+ '_check_return_type', True
+ )
+ kwargs['_host_index'] = kwargs.get('_host_index')
+ return self.get_health_endpoint.call_with_http_info(**kwargs)
+
+ def get_version(
+ self,
+ **kwargs
+ ):
+ """Get version information # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+
+ >>> thread = api.get_version(async_req=True)
+ >>> result = thread.get()
+
+
+ Keyword Args:
+ _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
+ will be returned without reading/decoding response data.
+ Default is True.
+ _request_timeout (int/float/tuple): timeout setting for this request. If
+ one number provided, it will be total request timeout. It can also
+ be a pair (tuple) of (connection, read) timeouts.
+ Default is None.
+ _check_input_type (bool): specifies if type checking
+ should be done one the data sent to the server.
+ Default is True.
+ _check_return_type (bool): specifies if type checking
+ should be done one the data received from the server.
+ Default is True.
+ _host_index (int/None): specifies the index of the server
+ that we want to use.
+ Default is read from the configuration.
+ async_req (bool): execute request asynchronously
+
+ Returns:
+ VersionInfo
+ If the method is called asynchronously, returns the request
+ thread.
+ """
+ kwargs['async_req'] = kwargs.get(
+ 'async_req', False
+ )
+ kwargs['_return_http_data_only'] = kwargs.get(
+ '_return_http_data_only', True
+ )
+ kwargs['_preload_content'] = kwargs.get(
+ '_preload_content', True
+ )
+ kwargs['_request_timeout'] = kwargs.get(
+ '_request_timeout', None
+ )
+ kwargs['_check_input_type'] = kwargs.get(
+ '_check_input_type', True
+ )
+ kwargs['_check_return_type'] = kwargs.get(
+ '_check_return_type', True
+ )
+ kwargs['_host_index'] = kwargs.get('_host_index')
+ return self.get_version_endpoint.call_with_http_info(**kwargs)
+
diff --git a/airflow_client/client/api/permission_api.py b/airflow_client/client/api/permission_api.py
index 7da81bb..1629997 100644
--- a/airflow_client/client/api/permission_api.py
+++ b/airflow_client/client/api/permission_api.py
@@ -18,7 +18,7 @@
"""
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 th [...]
+ # 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 th [...]
The version of the OpenAPI document: 1.0.0
Contact: dev@airflow.apache.org
@@ -54,70 +54,7 @@ class PermissionApi(object):
if api_client is None:
api_client = ApiClient()
self.api_client = api_client
-
- def __get_permissions(
- self,
- **kwargs
- ):
- """List permissions # noqa: E501
-
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
-
- >>> thread = api.get_permissions(async_req=True)
- >>> result = thread.get()
-
-
- 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]
- _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
- will be returned without reading/decoding response data.
- Default is True.
- _request_timeout (float/tuple): timeout setting for this request. If one
- number provided, it will be total request timeout. It can also
- be a pair (tuple) of (connection, read) timeouts.
- Default is None.
- _check_input_type (bool): specifies if type checking
- should be done one the data sent to the server.
- Default is True.
- _check_return_type (bool): specifies if type checking
- should be done one the data received from the server.
- Default is True.
- _host_index (int/None): specifies the index of the server
- that we want to use.
- Default is read from the configuration.
- async_req (bool): execute request asynchronously
-
- Returns:
- ActionCollection
- If the method is called asynchronously, returns the request
- thread.
- """
- kwargs['async_req'] = kwargs.get(
- 'async_req', False
- )
- kwargs['_return_http_data_only'] = kwargs.get(
- '_return_http_data_only', True
- )
- kwargs['_preload_content'] = kwargs.get(
- '_preload_content', True
- )
- kwargs['_request_timeout'] = kwargs.get(
- '_request_timeout', None
- )
- kwargs['_check_input_type'] = kwargs.get(
- '_check_input_type', True
- )
- kwargs['_check_return_type'] = kwargs.get(
- '_check_return_type', True
- )
- kwargs['_host_index'] = kwargs.get('_host_index')
- return self.call_with_http_info(**kwargs)
-
- self.get_permissions = _Endpoint(
+ self.get_permissions_endpoint = _Endpoint(
settings={
'response_type': (ActionCollection,),
'auth': [
@@ -175,6 +112,68 @@ class PermissionApi(object):
],
'content_type': [],
},
- api_client=api_client,
- callable=__get_permissions
+ api_client=api_client
+ )
+
+ def get_permissions(
+ self,
+ **kwargs
+ ):
+ """List permissions # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+
+ >>> thread = api.get_permissions(async_req=True)
+ >>> result = thread.get()
+
+
+ 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]
+ _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
+ will be returned without reading/decoding response data.
+ Default is True.
+ _request_timeout (int/float/tuple): timeout setting for this request. If
+ one number provided, it will be total request timeout. It can also
+ be a pair (tuple) of (connection, read) timeouts.
+ Default is None.
+ _check_input_type (bool): specifies if type checking
+ should be done one the data sent to the server.
+ Default is True.
+ _check_return_type (bool): specifies if type checking
+ should be done one the data received from the server.
+ Default is True.
+ _host_index (int/None): specifies the index of the server
+ that we want to use.
+ Default is read from the configuration.
+ async_req (bool): execute request asynchronously
+
+ Returns:
+ ActionCollection
+ If the method is called asynchronously, returns the request
+ thread.
+ """
+ kwargs['async_req'] = kwargs.get(
+ 'async_req', False
+ )
+ kwargs['_return_http_data_only'] = kwargs.get(
+ '_return_http_data_only', True
+ )
+ kwargs['_preload_content'] = kwargs.get(
+ '_preload_content', True
)
+ kwargs['_request_timeout'] = kwargs.get(
+ '_request_timeout', None
+ )
+ kwargs['_check_input_type'] = kwargs.get(
+ '_check_input_type', True
+ )
+ kwargs['_check_return_type'] = kwargs.get(
+ '_check_return_type', True
+ )
+ kwargs['_host_index'] = kwargs.get('_host_index')
+ return self.get_permissions_endpoint.call_with_http_info(**kwargs)
+
diff --git a/airflow_client/client/api/plugin_api.py b/airflow_client/client/api/plugin_api.py
index 1b58d22..ae214db 100644
--- a/airflow_client/client/api/plugin_api.py
+++ b/airflow_client/client/api/plugin_api.py
@@ -18,7 +18,7 @@
"""
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 th [...]
+ # 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 th [...]
The version of the OpenAPI document: 1.0.0
Contact: dev@airflow.apache.org
@@ -54,70 +54,7 @@ class PluginApi(object):
if api_client is None:
api_client = ApiClient()
self.api_client = api_client
-
- def __get_plugins(
- self,
- **kwargs
- ):
- """Get a list of loaded plugins # noqa: E501
-
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
-
- >>> thread = api.get_plugins(async_req=True)
- >>> result = thread.get()
-
-
- 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]
- _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
- will be returned without reading/decoding response data.
- Default is True.
- _request_timeout (float/tuple): timeout setting for this request. If one
- number provided, it will be total request timeout. It can also
- be a pair (tuple) of (connection, read) timeouts.
- Default is None.
- _check_input_type (bool): specifies if type checking
- should be done one the data sent to the server.
- Default is True.
- _check_return_type (bool): specifies if type checking
- should be done one the data received from the server.
- Default is True.
- _host_index (int/None): specifies the index of the server
- that we want to use.
- Default is read from the configuration.
- async_req (bool): execute request asynchronously
-
- Returns:
- PluginCollection
- If the method is called asynchronously, returns the request
- thread.
- """
- kwargs['async_req'] = kwargs.get(
- 'async_req', False
- )
- kwargs['_return_http_data_only'] = kwargs.get(
- '_return_http_data_only', True
- )
- kwargs['_preload_content'] = kwargs.get(
- '_preload_content', True
- )
- kwargs['_request_timeout'] = kwargs.get(
- '_request_timeout', None
- )
- kwargs['_check_input_type'] = kwargs.get(
- '_check_input_type', True
- )
- kwargs['_check_return_type'] = kwargs.get(
- '_check_return_type', True
- )
- kwargs['_host_index'] = kwargs.get('_host_index')
- return self.call_with_http_info(**kwargs)
-
- self.get_plugins = _Endpoint(
+ self.get_plugins_endpoint = _Endpoint(
settings={
'response_type': (PluginCollection,),
'auth': [
@@ -175,6 +112,68 @@ class PluginApi(object):
],
'content_type': [],
},
- api_client=api_client,
- callable=__get_plugins
+ api_client=api_client
+ )
+
+ def get_plugins(
+ self,
+ **kwargs
+ ):
+ """Get a list of loaded plugins # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+
+ >>> thread = api.get_plugins(async_req=True)
+ >>> result = thread.get()
+
+
+ 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]
+ _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
+ will be returned without reading/decoding response data.
+ Default is True.
+ _request_timeout (int/float/tuple): timeout setting for this request. If
+ one number provided, it will be total request timeout. It can also
+ be a pair (tuple) of (connection, read) timeouts.
+ Default is None.
+ _check_input_type (bool): specifies if type checking
+ should be done one the data sent to the server.
+ Default is True.
+ _check_return_type (bool): specifies if type checking
+ should be done one the data received from the server.
+ Default is True.
+ _host_index (int/None): specifies the index of the server
+ that we want to use.
+ Default is read from the configuration.
+ async_req (bool): execute request asynchronously
+
+ Returns:
+ PluginCollection
+ If the method is called asynchronously, returns the request
+ thread.
+ """
+ kwargs['async_req'] = kwargs.get(
+ 'async_req', False
+ )
+ kwargs['_return_http_data_only'] = kwargs.get(
+ '_return_http_data_only', True
+ )
+ kwargs['_preload_content'] = kwargs.get(
+ '_preload_content', True
)
+ kwargs['_request_timeout'] = kwargs.get(
+ '_request_timeout', None
+ )
+ kwargs['_check_input_type'] = kwargs.get(
+ '_check_input_type', True
+ )
+ kwargs['_check_return_type'] = kwargs.get(
+ '_check_return_type', True
+ )
+ kwargs['_host_index'] = kwargs.get('_host_index')
+ return self.get_plugins_endpoint.call_with_http_info(**kwargs)
+
diff --git a/airflow_client/client/api/pool_api.py b/airflow_client/client/api/pool_api.py
index ce1d67f..d75cc8f 100644
--- a/airflow_client/client/api/pool_api.py
+++ b/airflow_client/client/api/pool_api.py
@@ -18,7 +18,7 @@
"""
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 th [...]
+ # 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 th [...]
The version of the OpenAPI document: 1.0.0
Contact: dev@airflow.apache.org
@@ -55,73 +55,7 @@ class PoolApi(object):
if api_client is None:
api_client = ApiClient()
self.api_client = api_client
-
- def __delete_pool(
- self,
- pool_name,
- **kwargs
- ):
- """Delete a pool # noqa: E501
-
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
-
- >>> thread = api.delete_pool(pool_name, async_req=True)
- >>> result = thread.get()
-
- Args:
- pool_name (str): The pool name.
-
- Keyword Args:
- _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
- will be returned without reading/decoding response data.
- Default is True.
- _request_timeout (float/tuple): timeout setting for this request. If one
- number provided, it will be total request timeout. It can also
- be a pair (tuple) of (connection, read) timeouts.
- Default is None.
- _check_input_type (bool): specifies if type checking
- should be done one the data sent to the server.
- Default is True.
- _check_return_type (bool): specifies if type checking
- should be done one the data received from the server.
- Default is True.
- _host_index (int/None): specifies the index of the server
- that we want to use.
- Default is read from the configuration.
- async_req (bool): execute request asynchronously
-
- Returns:
- None
- If the method is called asynchronously, returns the request
- thread.
- """
- kwargs['async_req'] = kwargs.get(
- 'async_req', False
- )
- kwargs['_return_http_data_only'] = kwargs.get(
- '_return_http_data_only', True
- )
- kwargs['_preload_content'] = kwargs.get(
- '_preload_content', True
- )
- kwargs['_request_timeout'] = kwargs.get(
- '_request_timeout', None
- )
- kwargs['_check_input_type'] = kwargs.get(
- '_check_input_type', True
- )
- kwargs['_check_return_type'] = kwargs.get(
- '_check_return_type', True
- )
- kwargs['_host_index'] = kwargs.get('_host_index')
- kwargs['pool_name'] = \
- pool_name
- return self.call_with_http_info(**kwargs)
-
- self.delete_pool = _Endpoint(
+ self.delete_pool_endpoint = _Endpoint(
settings={
'response_type': None,
'auth': [
@@ -171,76 +105,9 @@ class PoolApi(object):
],
'content_type': [],
},
- api_client=api_client,
- callable=__delete_pool
- )
-
- def __get_pool(
- self,
- pool_name,
- **kwargs
- ):
- """Get a pool # noqa: E501
-
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
-
- >>> thread = api.get_pool(pool_name, async_req=True)
- >>> result = thread.get()
-
- Args:
- pool_name (str): The pool name.
-
- Keyword Args:
- _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
- will be returned without reading/decoding response data.
- Default is True.
- _request_timeout (float/tuple): timeout setting for this request. If one
- number provided, it will be total request timeout. It can also
- be a pair (tuple) of (connection, read) timeouts.
- Default is None.
- _check_input_type (bool): specifies if type checking
- should be done one the data sent to the server.
- Default is True.
- _check_return_type (bool): specifies if type checking
- should be done one the data received from the server.
- Default is True.
- _host_index (int/None): specifies the index of the server
- that we want to use.
- Default is read from the configuration.
- async_req (bool): execute request asynchronously
-
- Returns:
- Pool
- If the method is called asynchronously, returns the request
- thread.
- """
- kwargs['async_req'] = kwargs.get(
- 'async_req', False
- )
- kwargs['_return_http_data_only'] = kwargs.get(
- '_return_http_data_only', True
- )
- kwargs['_preload_content'] = kwargs.get(
- '_preload_content', True
- )
- kwargs['_request_timeout'] = kwargs.get(
- '_request_timeout', None
- )
- kwargs['_check_input_type'] = kwargs.get(
- '_check_input_type', True
- )
- kwargs['_check_return_type'] = kwargs.get(
- '_check_return_type', True
- )
- kwargs['_host_index'] = kwargs.get('_host_index')
- kwargs['pool_name'] = \
- pool_name
- return self.call_with_http_info(**kwargs)
-
- self.get_pool = _Endpoint(
+ api_client=api_client
+ )
+ self.get_pool_endpoint = _Endpoint(
settings={
'response_type': (Pool,),
'auth': [
@@ -290,74 +157,9 @@ class PoolApi(object):
],
'content_type': [],
},
- api_client=api_client,
- callable=__get_pool
- )
-
- def __get_pools(
- self,
- **kwargs
- ):
- """List pools # noqa: E501
-
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
-
- >>> thread = api.get_pools(async_req=True)
- >>> result = thread.get()
-
-
- 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]
- _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
- will be returned without reading/decoding response data.
- Default is True.
- _request_timeout (float/tuple): timeout setting for this request. If one
- number provided, it will be total request timeout. It can also
- be a pair (tuple) of (connection, read) timeouts.
- Default is None.
- _check_input_type (bool): specifies if type checking
- should be done one the data sent to the server.
- Default is True.
- _check_return_type (bool): specifies if type checking
- should be done one the data received from the server.
- Default is True.
- _host_index (int/None): specifies the index of the server
- that we want to use.
- Default is read from the configuration.
- async_req (bool): execute request asynchronously
-
- Returns:
- PoolCollection
- If the method is called asynchronously, returns the request
- thread.
- """
- kwargs['async_req'] = kwargs.get(
- 'async_req', False
- )
- kwargs['_return_http_data_only'] = kwargs.get(
- '_return_http_data_only', True
- )
- kwargs['_preload_content'] = kwargs.get(
- '_preload_content', True
- )
- kwargs['_request_timeout'] = kwargs.get(
- '_request_timeout', None
- )
- kwargs['_check_input_type'] = kwargs.get(
- '_check_input_type', True
- )
- kwargs['_check_return_type'] = kwargs.get(
- '_check_return_type', True
- )
- kwargs['_host_index'] = kwargs.get('_host_index')
- return self.call_with_http_info(**kwargs)
-
- self.get_pools = _Endpoint(
+ api_client=api_client
+ )
+ self.get_pools_endpoint = _Endpoint(
settings={
'response_type': (PoolCollection,),
'auth': [
@@ -420,81 +222,9 @@ class PoolApi(object):
],
'content_type': [],
},
- api_client=api_client,
- callable=__get_pools
- )
-
- def __patch_pool(
- self,
- pool_name,
- pool,
- **kwargs
- ):
- """Update a pool # noqa: E501
-
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
-
- >>> thread = api.patch_pool(pool_name, pool, async_req=True)
- >>> result = thread.get()
-
- Args:
- pool_name (str): The pool name.
- pool (Pool):
-
- Keyword Args:
- 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]
- _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
- will be returned without reading/decoding response data.
- Default is True.
- _request_timeout (float/tuple): timeout setting for this request. If one
- number provided, it will be total request timeout. It can also
- be a pair (tuple) of (connection, read) timeouts.
- Default is None.
- _check_input_type (bool): specifies if type checking
- should be done one the data sent to the server.
- Default is True.
- _check_return_type (bool): specifies if type checking
- should be done one the data received from the server.
- Default is True.
- _host_index (int/None): specifies the index of the server
- that we want to use.
- Default is read from the configuration.
- async_req (bool): execute request asynchronously
-
- Returns:
- Pool
- If the method is called asynchronously, returns the request
- thread.
- """
- kwargs['async_req'] = kwargs.get(
- 'async_req', False
- )
- kwargs['_return_http_data_only'] = kwargs.get(
- '_return_http_data_only', True
- )
- kwargs['_preload_content'] = kwargs.get(
- '_preload_content', True
- )
- kwargs['_request_timeout'] = kwargs.get(
- '_request_timeout', None
- )
- kwargs['_check_input_type'] = kwargs.get(
- '_check_input_type', True
- )
- kwargs['_check_return_type'] = kwargs.get(
- '_check_return_type', True
- )
- kwargs['_host_index'] = kwargs.get('_host_index')
- kwargs['pool_name'] = \
- pool_name
- kwargs['pool'] = \
- pool
- return self.call_with_http_info(**kwargs)
-
- self.patch_pool = _Endpoint(
+ api_client=api_client
+ )
+ self.patch_pool_endpoint = _Endpoint(
settings={
'response_type': (Pool,),
'auth': [
@@ -557,76 +287,9 @@ class PoolApi(object):
'application/json'
]
},
- api_client=api_client,
- callable=__patch_pool
- )
-
- def __post_pool(
- self,
- pool,
- **kwargs
- ):
- """Create a pool # noqa: E501
-
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
-
- >>> thread = api.post_pool(pool, async_req=True)
- >>> result = thread.get()
-
- Args:
- pool (Pool):
-
- Keyword Args:
- _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
- will be returned without reading/decoding response data.
- Default is True.
- _request_timeout (float/tuple): timeout setting for this request. If one
- number provided, it will be total request timeout. It can also
- be a pair (tuple) of (connection, read) timeouts.
- Default is None.
- _check_input_type (bool): specifies if type checking
- should be done one the data sent to the server.
- Default is True.
- _check_return_type (bool): specifies if type checking
- should be done one the data received from the server.
- Default is True.
- _host_index (int/None): specifies the index of the server
- that we want to use.
- Default is read from the configuration.
- async_req (bool): execute request asynchronously
-
- Returns:
- Pool
- If the method is called asynchronously, returns the request
- thread.
- """
- kwargs['async_req'] = kwargs.get(
- 'async_req', False
- )
- kwargs['_return_http_data_only'] = kwargs.get(
- '_return_http_data_only', True
- )
- kwargs['_preload_content'] = kwargs.get(
- '_preload_content', True
- )
- kwargs['_request_timeout'] = kwargs.get(
- '_request_timeout', None
- )
- kwargs['_check_input_type'] = kwargs.get(
- '_check_input_type', True
- )
- kwargs['_check_return_type'] = kwargs.get(
- '_check_return_type', True
- )
- kwargs['_host_index'] = kwargs.get('_host_index')
- kwargs['pool'] = \
- pool
- return self.call_with_http_info(**kwargs)
-
- self.post_pool = _Endpoint(
+ api_client=api_client
+ )
+ self.post_pool_endpoint = _Endpoint(
settings={
'response_type': (Pool,),
'auth': [
@@ -677,6 +340,334 @@ class PoolApi(object):
'application/json'
]
},
- api_client=api_client,
- callable=__post_pool
+ api_client=api_client
+ )
+
+ def delete_pool(
+ self,
+ pool_name,
+ **kwargs
+ ):
+ """Delete a pool # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+
+ >>> thread = api.delete_pool(pool_name, async_req=True)
+ >>> result = thread.get()
+
+ Args:
+ pool_name (str): The pool name.
+
+ Keyword Args:
+ _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
+ will be returned without reading/decoding response data.
+ Default is True.
+ _request_timeout (int/float/tuple): timeout setting for this request. If
+ one number provided, it will be total request timeout. It can also
+ be a pair (tuple) of (connection, read) timeouts.
+ Default is None.
+ _check_input_type (bool): specifies if type checking
+ should be done one the data sent to the server.
+ Default is True.
+ _check_return_type (bool): specifies if type checking
+ should be done one the data received from the server.
+ Default is True.
+ _host_index (int/None): specifies the index of the server
+ that we want to use.
+ Default is read from the configuration.
+ async_req (bool): execute request asynchronously
+
+ Returns:
+ None
+ If the method is called asynchronously, returns the request
+ thread.
+ """
+ kwargs['async_req'] = kwargs.get(
+ 'async_req', False
+ )
+ kwargs['_return_http_data_only'] = kwargs.get(
+ '_return_http_data_only', True
+ )
+ kwargs['_preload_content'] = kwargs.get(
+ '_preload_content', True
+ )
+ kwargs['_request_timeout'] = kwargs.get(
+ '_request_timeout', None
+ )
+ kwargs['_check_input_type'] = kwargs.get(
+ '_check_input_type', True
+ )
+ kwargs['_check_return_type'] = kwargs.get(
+ '_check_return_type', True
+ )
+ kwargs['_host_index'] = kwargs.get('_host_index')
+ kwargs['pool_name'] = \
+ pool_name
+ return self.delete_pool_endpoint.call_with_http_info(**kwargs)
+
+ def get_pool(
+ self,
+ pool_name,
+ **kwargs
+ ):
+ """Get a pool # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+
+ >>> thread = api.get_pool(pool_name, async_req=True)
+ >>> result = thread.get()
+
+ Args:
+ pool_name (str): The pool name.
+
+ Keyword Args:
+ _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
+ will be returned without reading/decoding response data.
+ Default is True.
+ _request_timeout (int/float/tuple): timeout setting for this request. If
+ one number provided, it will be total request timeout. It can also
+ be a pair (tuple) of (connection, read) timeouts.
+ Default is None.
+ _check_input_type (bool): specifies if type checking
+ should be done one the data sent to the server.
+ Default is True.
+ _check_return_type (bool): specifies if type checking
+ should be done one the data received from the server.
+ Default is True.
+ _host_index (int/None): specifies the index of the server
+ that we want to use.
+ Default is read from the configuration.
+ async_req (bool): execute request asynchronously
+
+ Returns:
+ Pool
+ If the method is called asynchronously, returns the request
+ thread.
+ """
+ kwargs['async_req'] = kwargs.get(
+ 'async_req', False
+ )
+ kwargs['_return_http_data_only'] = kwargs.get(
+ '_return_http_data_only', True
+ )
+ kwargs['_preload_content'] = kwargs.get(
+ '_preload_content', True
+ )
+ kwargs['_request_timeout'] = kwargs.get(
+ '_request_timeout', None
+ )
+ kwargs['_check_input_type'] = kwargs.get(
+ '_check_input_type', True
+ )
+ kwargs['_check_return_type'] = kwargs.get(
+ '_check_return_type', True
+ )
+ kwargs['_host_index'] = kwargs.get('_host_index')
+ kwargs['pool_name'] = \
+ pool_name
+ return self.get_pool_endpoint.call_with_http_info(**kwargs)
+
+ def get_pools(
+ self,
+ **kwargs
+ ):
+ """List pools # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+
+ >>> thread = api.get_pools(async_req=True)
+ >>> result = thread.get()
+
+
+ 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]
+ _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
+ will be returned without reading/decoding response data.
+ Default is True.
+ _request_timeout (int/float/tuple): timeout setting for this request. If
+ one number provided, it will be total request timeout. It can also
+ be a pair (tuple) of (connection, read) timeouts.
+ Default is None.
+ _check_input_type (bool): specifies if type checking
+ should be done one the data sent to the server.
+ Default is True.
+ _check_return_type (bool): specifies if type checking
+ should be done one the data received from the server.
+ Default is True.
+ _host_index (int/None): specifies the index of the server
+ that we want to use.
+ Default is read from the configuration.
+ async_req (bool): execute request asynchronously
+
+ Returns:
+ PoolCollection
+ If the method is called asynchronously, returns the request
+ thread.
+ """
+ kwargs['async_req'] = kwargs.get(
+ 'async_req', False
)
+ kwargs['_return_http_data_only'] = kwargs.get(
+ '_return_http_data_only', True
+ )
+ kwargs['_preload_content'] = kwargs.get(
+ '_preload_content', True
+ )
+ kwargs['_request_timeout'] = kwargs.get(
+ '_request_timeout', None
+ )
+ kwargs['_check_input_type'] = kwargs.get(
+ '_check_input_type', True
+ )
+ kwargs['_check_return_type'] = kwargs.get(
+ '_check_return_type', True
+ )
+ kwargs['_host_index'] = kwargs.get('_host_index')
+ return self.get_pools_endpoint.call_with_http_info(**kwargs)
+
+ def patch_pool(
+ self,
+ pool_name,
+ pool,
+ **kwargs
+ ):
+ """Update a pool # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+
+ >>> thread = api.patch_pool(pool_name, pool, async_req=True)
+ >>> result = thread.get()
+
+ Args:
+ pool_name (str): The pool name.
+ pool (Pool):
+
+ Keyword Args:
+ 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]
+ _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
+ will be returned without reading/decoding response data.
+ Default is True.
+ _request_timeout (int/float/tuple): timeout setting for this request. If
+ one number provided, it will be total request timeout. It can also
+ be a pair (tuple) of (connection, read) timeouts.
+ Default is None.
+ _check_input_type (bool): specifies if type checking
+ should be done one the data sent to the server.
+ Default is True.
+ _check_return_type (bool): specifies if type checking
+ should be done one the data received from the server.
+ Default is True.
+ _host_index (int/None): specifies the index of the server
+ that we want to use.
+ Default is read from the configuration.
+ async_req (bool): execute request asynchronously
+
+ Returns:
+ Pool
+ If the method is called asynchronously, returns the request
+ thread.
+ """
+ kwargs['async_req'] = kwargs.get(
+ 'async_req', False
+ )
+ kwargs['_return_http_data_only'] = kwargs.get(
+ '_return_http_data_only', True
+ )
+ kwargs['_preload_content'] = kwargs.get(
+ '_preload_content', True
+ )
+ kwargs['_request_timeout'] = kwargs.get(
+ '_request_timeout', None
+ )
+ kwargs['_check_input_type'] = kwargs.get(
+ '_check_input_type', True
+ )
+ kwargs['_check_return_type'] = kwargs.get(
+ '_check_return_type', True
+ )
+ kwargs['_host_index'] = kwargs.get('_host_index')
+ kwargs['pool_name'] = \
+ pool_name
+ kwargs['pool'] = \
+ pool
+ return self.patch_pool_endpoint.call_with_http_info(**kwargs)
+
+ def post_pool(
+ self,
+ pool,
+ **kwargs
+ ):
+ """Create a pool # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+
+ >>> thread = api.post_pool(pool, async_req=True)
+ >>> result = thread.get()
+
+ Args:
+ pool (Pool):
+
+ Keyword Args:
+ _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
+ will be returned without reading/decoding response data.
+ Default is True.
+ _request_timeout (int/float/tuple): timeout setting for this request. If
+ one number provided, it will be total request timeout. It can also
+ be a pair (tuple) of (connection, read) timeouts.
+ Default is None.
+ _check_input_type (bool): specifies if type checking
+ should be done one the data sent to the server.
+ Default is True.
+ _check_return_type (bool): specifies if type checking
+ should be done one the data received from the server.
+ Default is True.
+ _host_index (int/None): specifies the index of the server
+ that we want to use.
+ Default is read from the configuration.
+ async_req (bool): execute request asynchronously
+
+ Returns:
+ Pool
+ If the method is called asynchronously, returns the request
+ thread.
+ """
+ kwargs['async_req'] = kwargs.get(
+ 'async_req', False
+ )
+ kwargs['_return_http_data_only'] = kwargs.get(
+ '_return_http_data_only', True
+ )
+ kwargs['_preload_content'] = kwargs.get(
+ '_preload_content', True
+ )
+ kwargs['_request_timeout'] = kwargs.get(
+ '_request_timeout', None
+ )
+ kwargs['_check_input_type'] = kwargs.get(
+ '_check_input_type', True
+ )
+ kwargs['_check_return_type'] = kwargs.get(
+ '_check_return_type', True
+ )
+ kwargs['_host_index'] = kwargs.get('_host_index')
+ kwargs['pool'] = \
+ pool
+ return self.post_pool_endpoint.call_with_http_info(**kwargs)
+
diff --git a/airflow_client/client/api/provider_api.py b/airflow_client/client/api/provider_api.py
index dde4411..7f60de8 100644
--- a/airflow_client/client/api/provider_api.py
+++ b/airflow_client/client/api/provider_api.py
@@ -18,7 +18,7 @@
"""
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 th [...]
+ # 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 th [...]
The version of the OpenAPI document: 1.0.0
Contact: dev@airflow.apache.org
@@ -53,70 +53,9 @@ class ProviderApi(object):
if api_client is None:
api_client = ApiClient()
self.api_client = api_client
-
- def __get_providers(
- self,
- **kwargs
- ):
- """List providers # noqa: E501
-
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
-
- >>> thread = api.get_providers(async_req=True)
- >>> result = thread.get()
-
-
- Keyword Args:
- _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
- will be returned without reading/decoding response data.
- Default is True.
- _request_timeout (float/tuple): timeout setting for this request. If one
- number provided, it will be total request timeout. It can also
- be a pair (tuple) of (connection, read) timeouts.
- Default is None.
- _check_input_type (bool): specifies if type checking
- should be done one the data sent to the server.
- Default is True.
- _check_return_type (bool): specifies if type checking
- should be done one the data received from the server.
- Default is True.
- _host_index (int/None): specifies the index of the server
- that we want to use.
- Default is read from the configuration.
- async_req (bool): execute request asynchronously
-
- Returns:
- object
- If the method is called asynchronously, returns the request
- thread.
- """
- kwargs['async_req'] = kwargs.get(
- 'async_req', False
- )
- kwargs['_return_http_data_only'] = kwargs.get(
- '_return_http_data_only', True
- )
- kwargs['_preload_content'] = kwargs.get(
- '_preload_content', True
- )
- kwargs['_request_timeout'] = kwargs.get(
- '_request_timeout', None
- )
- kwargs['_check_input_type'] = kwargs.get(
- '_check_input_type', True
- )
- kwargs['_check_return_type'] = kwargs.get(
- '_check_return_type', True
- )
- kwargs['_host_index'] = kwargs.get('_host_index')
- return self.call_with_http_info(**kwargs)
-
- self.get_providers = _Endpoint(
+ self.get_providers_endpoint = _Endpoint(
settings={
- 'response_type': (object,),
+ 'response_type': (bool, date, datetime, dict, float, int, list, str, none_type,),
'auth': [
'Basic',
'Kerberos'
@@ -157,6 +96,66 @@ class ProviderApi(object):
],
'content_type': [],
},
- api_client=api_client,
- callable=__get_providers
+ api_client=api_client
+ )
+
+ def get_providers(
+ self,
+ **kwargs
+ ):
+ """List providers # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+
+ >>> thread = api.get_providers(async_req=True)
+ >>> result = thread.get()
+
+
+ Keyword Args:
+ _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
+ will be returned without reading/decoding response data.
+ Default is True.
+ _request_timeout (int/float/tuple): timeout setting for this request. If
+ one number provided, it will be total request timeout. It can also
+ be a pair (tuple) of (connection, read) timeouts.
+ Default is None.
+ _check_input_type (bool): specifies if type checking
+ should be done one the data sent to the server.
+ Default is True.
+ _check_return_type (bool): specifies if type checking
+ should be done one the data received from the server.
+ Default is True.
+ _host_index (int/None): specifies the index of the server
+ that we want to use.
+ Default is read from the configuration.
+ async_req (bool): execute request asynchronously
+
+ Returns:
+ bool, date, datetime, dict, float, int, list, str, none_type
+ If the method is called asynchronously, returns the request
+ thread.
+ """
+ kwargs['async_req'] = kwargs.get(
+ 'async_req', False
+ )
+ kwargs['_return_http_data_only'] = kwargs.get(
+ '_return_http_data_only', True
+ )
+ kwargs['_preload_content'] = kwargs.get(
+ '_preload_content', True
)
+ kwargs['_request_timeout'] = kwargs.get(
+ '_request_timeout', None
+ )
+ kwargs['_check_input_type'] = kwargs.get(
+ '_check_input_type', True
+ )
+ kwargs['_check_return_type'] = kwargs.get(
+ '_check_return_type', True
+ )
+ kwargs['_host_index'] = kwargs.get('_host_index')
+ return self.get_providers_endpoint.call_with_http_info(**kwargs)
+
diff --git a/airflow_client/client/api/role_api.py b/airflow_client/client/api/role_api.py
index 5982825..8845abd 100644
--- a/airflow_client/client/api/role_api.py
+++ b/airflow_client/client/api/role_api.py
@@ -18,7 +18,7 @@
"""
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 th [...]
+ # 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 th [...]
The version of the OpenAPI document: 1.0.0
Contact: dev@airflow.apache.org
@@ -55,73 +55,7 @@ class RoleApi(object):
if api_client is None:
api_client = ApiClient()
self.api_client = api_client
-
- def __delete_role(
- self,
- role_name,
- **kwargs
- ):
- """Delete a role # noqa: E501
-
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
-
- >>> thread = api.delete_role(role_name, async_req=True)
- >>> result = thread.get()
-
- Args:
- role_name (str): The role name
-
- Keyword Args:
- _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
- will be returned without reading/decoding response data.
- Default is True.
- _request_timeout (float/tuple): timeout setting for this request. If one
- number provided, it will be total request timeout. It can also
- be a pair (tuple) of (connection, read) timeouts.
- Default is None.
- _check_input_type (bool): specifies if type checking
- should be done one the data sent to the server.
- Default is True.
- _check_return_type (bool): specifies if type checking
- should be done one the data received from the server.
- Default is True.
- _host_index (int/None): specifies the index of the server
- that we want to use.
- Default is read from the configuration.
- async_req (bool): execute request asynchronously
-
- Returns:
- None
- If the method is called asynchronously, returns the request
- thread.
- """
- kwargs['async_req'] = kwargs.get(
- 'async_req', False
- )
- kwargs['_return_http_data_only'] = kwargs.get(
- '_return_http_data_only', True
- )
- kwargs['_preload_content'] = kwargs.get(
- '_preload_content', True
- )
- kwargs['_request_timeout'] = kwargs.get(
- '_request_timeout', None
- )
- kwargs['_check_input_type'] = kwargs.get(
- '_check_input_type', True
- )
- kwargs['_check_return_type'] = kwargs.get(
- '_check_return_type', True
- )
- kwargs['_host_index'] = kwargs.get('_host_index')
- kwargs['role_name'] = \
- role_name
- return self.call_with_http_info(**kwargs)
-
- self.delete_role = _Endpoint(
+ self.delete_role_endpoint = _Endpoint(
settings={
'response_type': None,
'auth': [
@@ -171,76 +105,9 @@ class RoleApi(object):
],
'content_type': [],
},
- api_client=api_client,
- callable=__delete_role
- )
-
- def __get_role(
- self,
- role_name,
- **kwargs
- ):
- """Get a role # noqa: E501
-
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
-
- >>> thread = api.get_role(role_name, async_req=True)
- >>> result = thread.get()
-
- Args:
- role_name (str): The role name
-
- Keyword Args:
- _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
- will be returned without reading/decoding response data.
- Default is True.
- _request_timeout (float/tuple): timeout setting for this request. If one
- number provided, it will be total request timeout. It can also
- be a pair (tuple) of (connection, read) timeouts.
- Default is None.
- _check_input_type (bool): specifies if type checking
- should be done one the data sent to the server.
- Default is True.
- _check_return_type (bool): specifies if type checking
- should be done one the data received from the server.
- Default is True.
- _host_index (int/None): specifies the index of the server
- that we want to use.
- Default is read from the configuration.
- async_req (bool): execute request asynchronously
-
- Returns:
- Role
- If the method is called asynchronously, returns the request
- thread.
- """
- kwargs['async_req'] = kwargs.get(
- 'async_req', False
- )
- kwargs['_return_http_data_only'] = kwargs.get(
- '_return_http_data_only', True
- )
- kwargs['_preload_content'] = kwargs.get(
- '_preload_content', True
- )
- kwargs['_request_timeout'] = kwargs.get(
- '_request_timeout', None
- )
- kwargs['_check_input_type'] = kwargs.get(
- '_check_input_type', True
- )
- kwargs['_check_return_type'] = kwargs.get(
- '_check_return_type', True
- )
- kwargs['_host_index'] = kwargs.get('_host_index')
- kwargs['role_name'] = \
- role_name
- return self.call_with_http_info(**kwargs)
-
- self.get_role = _Endpoint(
+ api_client=api_client
+ )
+ self.get_role_endpoint = _Endpoint(
settings={
'response_type': (Role,),
'auth': [
@@ -290,74 +157,9 @@ class RoleApi(object):
],
'content_type': [],
},
- api_client=api_client,
- callable=__get_role
- )
-
- def __get_roles(
- self,
- **kwargs
- ):
- """List roles # noqa: E501
-
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
-
- >>> thread = api.get_roles(async_req=True)
- >>> result = thread.get()
-
-
- 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]
- _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
- will be returned without reading/decoding response data.
- Default is True.
- _request_timeout (float/tuple): timeout setting for this request. If one
- number provided, it will be total request timeout. It can also
- be a pair (tuple) of (connection, read) timeouts.
- Default is None.
- _check_input_type (bool): specifies if type checking
- should be done one the data sent to the server.
- Default is True.
- _check_return_type (bool): specifies if type checking
- should be done one the data received from the server.
- Default is True.
- _host_index (int/None): specifies the index of the server
- that we want to use.
- Default is read from the configuration.
- async_req (bool): execute request asynchronously
-
- Returns:
- RoleCollection
- If the method is called asynchronously, returns the request
- thread.
- """
- kwargs['async_req'] = kwargs.get(
- 'async_req', False
- )
- kwargs['_return_http_data_only'] = kwargs.get(
- '_return_http_data_only', True
- )
- kwargs['_preload_content'] = kwargs.get(
- '_preload_content', True
- )
- kwargs['_request_timeout'] = kwargs.get(
- '_request_timeout', None
- )
- kwargs['_check_input_type'] = kwargs.get(
- '_check_input_type', True
- )
- kwargs['_check_return_type'] = kwargs.get(
- '_check_return_type', True
- )
- kwargs['_host_index'] = kwargs.get('_host_index')
- return self.call_with_http_info(**kwargs)
-
- self.get_roles = _Endpoint(
+ api_client=api_client
+ )
+ self.get_roles_endpoint = _Endpoint(
settings={
'response_type': (RoleCollection,),
'auth': [
@@ -420,81 +222,9 @@ class RoleApi(object):
],
'content_type': [],
},
- api_client=api_client,
- callable=__get_roles
- )
-
- def __patch_role(
- self,
- role_name,
- role,
- **kwargs
- ):
- """Update a role # noqa: E501
-
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
-
- >>> thread = api.patch_role(role_name, role, async_req=True)
- >>> result = thread.get()
-
- Args:
- role_name (str): The role name
- role (Role):
-
- Keyword Args:
- 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]
- _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
- will be returned without reading/decoding response data.
- Default is True.
- _request_timeout (float/tuple): timeout setting for this request. If one
- number provided, it will be total request timeout. It can also
- be a pair (tuple) of (connection, read) timeouts.
- Default is None.
- _check_input_type (bool): specifies if type checking
- should be done one the data sent to the server.
- Default is True.
- _check_return_type (bool): specifies if type checking
- should be done one the data received from the server.
- Default is True.
- _host_index (int/None): specifies the index of the server
- that we want to use.
- Default is read from the configuration.
- async_req (bool): execute request asynchronously
-
- Returns:
- Role
- If the method is called asynchronously, returns the request
- thread.
- """
- kwargs['async_req'] = kwargs.get(
- 'async_req', False
- )
- kwargs['_return_http_data_only'] = kwargs.get(
- '_return_http_data_only', True
- )
- kwargs['_preload_content'] = kwargs.get(
- '_preload_content', True
- )
- kwargs['_request_timeout'] = kwargs.get(
- '_request_timeout', None
- )
- kwargs['_check_input_type'] = kwargs.get(
- '_check_input_type', True
- )
- kwargs['_check_return_type'] = kwargs.get(
- '_check_return_type', True
- )
- kwargs['_host_index'] = kwargs.get('_host_index')
- kwargs['role_name'] = \
- role_name
- kwargs['role'] = \
- role
- return self.call_with_http_info(**kwargs)
-
- self.patch_role = _Endpoint(
+ api_client=api_client
+ )
+ self.patch_role_endpoint = _Endpoint(
settings={
'response_type': (Role,),
'auth': [
@@ -557,76 +287,9 @@ class RoleApi(object):
'application/json'
]
},
- api_client=api_client,
- callable=__patch_role
- )
-
- def __post_role(
- self,
- role,
- **kwargs
- ):
- """Create a role # noqa: E501
-
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
-
- >>> thread = api.post_role(role, async_req=True)
- >>> result = thread.get()
-
- Args:
- role (Role):
-
- Keyword Args:
- _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
- will be returned without reading/decoding response data.
- Default is True.
- _request_timeout (float/tuple): timeout setting for this request. If one
- number provided, it will be total request timeout. It can also
- be a pair (tuple) of (connection, read) timeouts.
- Default is None.
- _check_input_type (bool): specifies if type checking
- should be done one the data sent to the server.
- Default is True.
- _check_return_type (bool): specifies if type checking
- should be done one the data received from the server.
- Default is True.
- _host_index (int/None): specifies the index of the server
- that we want to use.
- Default is read from the configuration.
- async_req (bool): execute request asynchronously
-
- Returns:
- Role
- If the method is called asynchronously, returns the request
- thread.
- """
- kwargs['async_req'] = kwargs.get(
- 'async_req', False
- )
- kwargs['_return_http_data_only'] = kwargs.get(
- '_return_http_data_only', True
- )
- kwargs['_preload_content'] = kwargs.get(
- '_preload_content', True
- )
- kwargs['_request_timeout'] = kwargs.get(
- '_request_timeout', None
- )
- kwargs['_check_input_type'] = kwargs.get(
- '_check_input_type', True
- )
- kwargs['_check_return_type'] = kwargs.get(
- '_check_return_type', True
- )
- kwargs['_host_index'] = kwargs.get('_host_index')
- kwargs['role'] = \
- role
- return self.call_with_http_info(**kwargs)
-
- self.post_role = _Endpoint(
+ api_client=api_client
+ )
+ self.post_role_endpoint = _Endpoint(
settings={
'response_type': (Role,),
'auth': [
@@ -677,6 +340,334 @@ class RoleApi(object):
'application/json'
]
},
- api_client=api_client,
- callable=__post_role
+ api_client=api_client
+ )
+
+ def delete_role(
+ self,
+ role_name,
+ **kwargs
+ ):
+ """Delete a role # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+
+ >>> thread = api.delete_role(role_name, async_req=True)
+ >>> result = thread.get()
+
+ Args:
+ role_name (str): The role name
+
+ Keyword Args:
+ _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
+ will be returned without reading/decoding response data.
+ Default is True.
+ _request_timeout (int/float/tuple): timeout setting for this request. If
+ one number provided, it will be total request timeout. It can also
+ be a pair (tuple) of (connection, read) timeouts.
+ Default is None.
+ _check_input_type (bool): specifies if type checking
+ should be done one the data sent to the server.
+ Default is True.
+ _check_return_type (bool): specifies if type checking
+ should be done one the data received from the server.
+ Default is True.
+ _host_index (int/None): specifies the index of the server
+ that we want to use.
+ Default is read from the configuration.
+ async_req (bool): execute request asynchronously
+
+ Returns:
+ None
+ If the method is called asynchronously, returns the request
+ thread.
+ """
+ kwargs['async_req'] = kwargs.get(
+ 'async_req', False
+ )
+ kwargs['_return_http_data_only'] = kwargs.get(
+ '_return_http_data_only', True
+ )
+ kwargs['_preload_content'] = kwargs.get(
+ '_preload_content', True
+ )
+ kwargs['_request_timeout'] = kwargs.get(
+ '_request_timeout', None
+ )
+ kwargs['_check_input_type'] = kwargs.get(
+ '_check_input_type', True
+ )
+ kwargs['_check_return_type'] = kwargs.get(
+ '_check_return_type', True
+ )
+ kwargs['_host_index'] = kwargs.get('_host_index')
+ kwargs['role_name'] = \
+ role_name
+ return self.delete_role_endpoint.call_with_http_info(**kwargs)
+
+ def get_role(
+ self,
+ role_name,
+ **kwargs
+ ):
+ """Get a role # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+
+ >>> thread = api.get_role(role_name, async_req=True)
+ >>> result = thread.get()
+
+ Args:
+ role_name (str): The role name
+
+ Keyword Args:
+ _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
+ will be returned without reading/decoding response data.
+ Default is True.
+ _request_timeout (int/float/tuple): timeout setting for this request. If
+ one number provided, it will be total request timeout. It can also
+ be a pair (tuple) of (connection, read) timeouts.
+ Default is None.
+ _check_input_type (bool): specifies if type checking
+ should be done one the data sent to the server.
+ Default is True.
+ _check_return_type (bool): specifies if type checking
+ should be done one the data received from the server.
+ Default is True.
+ _host_index (int/None): specifies the index of the server
+ that we want to use.
+ Default is read from the configuration.
+ async_req (bool): execute request asynchronously
+
+ Returns:
+ Role
+ If the method is called asynchronously, returns the request
+ thread.
+ """
+ kwargs['async_req'] = kwargs.get(
+ 'async_req', False
+ )
+ kwargs['_return_http_data_only'] = kwargs.get(
+ '_return_http_data_only', True
+ )
+ kwargs['_preload_content'] = kwargs.get(
+ '_preload_content', True
+ )
+ kwargs['_request_timeout'] = kwargs.get(
+ '_request_timeout', None
+ )
+ kwargs['_check_input_type'] = kwargs.get(
+ '_check_input_type', True
+ )
+ kwargs['_check_return_type'] = kwargs.get(
+ '_check_return_type', True
+ )
+ kwargs['_host_index'] = kwargs.get('_host_index')
+ kwargs['role_name'] = \
+ role_name
+ return self.get_role_endpoint.call_with_http_info(**kwargs)
+
+ def get_roles(
+ self,
+ **kwargs
+ ):
+ """List roles # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+
+ >>> thread = api.get_roles(async_req=True)
+ >>> result = thread.get()
+
+
+ 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]
+ _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
+ will be returned without reading/decoding response data.
+ Default is True.
+ _request_timeout (int/float/tuple): timeout setting for this request. If
+ one number provided, it will be total request timeout. It can also
+ be a pair (tuple) of (connection, read) timeouts.
+ Default is None.
+ _check_input_type (bool): specifies if type checking
+ should be done one the data sent to the server.
+ Default is True.
+ _check_return_type (bool): specifies if type checking
+ should be done one the data received from the server.
+ Default is True.
+ _host_index (int/None): specifies the index of the server
+ that we want to use.
+ Default is read from the configuration.
+ async_req (bool): execute request asynchronously
+
+ Returns:
+ RoleCollection
+ If the method is called asynchronously, returns the request
+ thread.
+ """
+ kwargs['async_req'] = kwargs.get(
+ 'async_req', False
)
+ kwargs['_return_http_data_only'] = kwargs.get(
+ '_return_http_data_only', True
+ )
+ kwargs['_preload_content'] = kwargs.get(
+ '_preload_content', True
+ )
+ kwargs['_request_timeout'] = kwargs.get(
+ '_request_timeout', None
+ )
+ kwargs['_check_input_type'] = kwargs.get(
+ '_check_input_type', True
+ )
+ kwargs['_check_return_type'] = kwargs.get(
+ '_check_return_type', True
+ )
+ kwargs['_host_index'] = kwargs.get('_host_index')
+ return self.get_roles_endpoint.call_with_http_info(**kwargs)
+
+ def patch_role(
+ self,
+ role_name,
+ role,
+ **kwargs
+ ):
+ """Update a role # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+
+ >>> thread = api.patch_role(role_name, role, async_req=True)
+ >>> result = thread.get()
+
+ Args:
+ role_name (str): The role name
+ role (Role):
+
+ Keyword Args:
+ 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]
+ _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
+ will be returned without reading/decoding response data.
+ Default is True.
+ _request_timeout (int/float/tuple): timeout setting for this request. If
+ one number provided, it will be total request timeout. It can also
+ be a pair (tuple) of (connection, read) timeouts.
+ Default is None.
+ _check_input_type (bool): specifies if type checking
+ should be done one the data sent to the server.
+ Default is True.
+ _check_return_type (bool): specifies if type checking
+ should be done one the data received from the server.
+ Default is True.
+ _host_index (int/None): specifies the index of the server
+ that we want to use.
+ Default is read from the configuration.
+ async_req (bool): execute request asynchronously
+
+ Returns:
+ Role
+ If the method is called asynchronously, returns the request
+ thread.
+ """
+ kwargs['async_req'] = kwargs.get(
+ 'async_req', False
+ )
+ kwargs['_return_http_data_only'] = kwargs.get(
+ '_return_http_data_only', True
+ )
+ kwargs['_preload_content'] = kwargs.get(
+ '_preload_content', True
+ )
+ kwargs['_request_timeout'] = kwargs.get(
+ '_request_timeout', None
+ )
+ kwargs['_check_input_type'] = kwargs.get(
+ '_check_input_type', True
+ )
+ kwargs['_check_return_type'] = kwargs.get(
+ '_check_return_type', True
+ )
+ kwargs['_host_index'] = kwargs.get('_host_index')
+ kwargs['role_name'] = \
+ role_name
+ kwargs['role'] = \
+ role
+ return self.patch_role_endpoint.call_with_http_info(**kwargs)
+
+ def post_role(
+ self,
+ role,
+ **kwargs
+ ):
+ """Create a role # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+
+ >>> thread = api.post_role(role, async_req=True)
+ >>> result = thread.get()
+
+ Args:
+ role (Role):
+
+ Keyword Args:
+ _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
+ will be returned without reading/decoding response data.
+ Default is True.
+ _request_timeout (int/float/tuple): timeout setting for this request. If
+ one number provided, it will be total request timeout. It can also
+ be a pair (tuple) of (connection, read) timeouts.
+ Default is None.
+ _check_input_type (bool): specifies if type checking
+ should be done one the data sent to the server.
+ Default is True.
+ _check_return_type (bool): specifies if type checking
+ should be done one the data received from the server.
+ Default is True.
+ _host_index (int/None): specifies the index of the server
+ that we want to use.
+ Default is read from the configuration.
+ async_req (bool): execute request asynchronously
+
+ Returns:
+ Role
+ If the method is called asynchronously, returns the request
+ thread.
+ """
+ kwargs['async_req'] = kwargs.get(
+ 'async_req', False
+ )
+ kwargs['_return_http_data_only'] = kwargs.get(
+ '_return_http_data_only', True
+ )
+ kwargs['_preload_content'] = kwargs.get(
+ '_preload_content', True
+ )
+ kwargs['_request_timeout'] = kwargs.get(
+ '_request_timeout', None
+ )
+ kwargs['_check_input_type'] = kwargs.get(
+ '_check_input_type', True
+ )
+ kwargs['_check_return_type'] = kwargs.get(
+ '_check_return_type', True
+ )
+ kwargs['_host_index'] = kwargs.get('_host_index')
+ kwargs['role'] = \
+ role
+ return self.post_role_endpoint.call_with_http_info(**kwargs)
+
diff --git a/airflow_client/client/api/task_instance_api.py b/airflow_client/client/api/task_instance_api.py
index 0a0314e..69072a0 100644
--- a/airflow_client/client/api/task_instance_api.py
+++ b/airflow_client/client/api/task_instance_api.py
@@ -18,7 +18,7 @@
"""
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 th [...]
+ # 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 th [...]
The version of the OpenAPI document: 1.0.0
Contact: dev@airflow.apache.org
@@ -58,82 +58,7 @@ class TaskInstanceApi(object):
if api_client is None:
api_client = ApiClient()
self.api_client = api_client
-
- def __get_extra_links(
- self,
- dag_id,
- dag_run_id,
- task_id,
- **kwargs
- ):
- """List extra links # noqa: E501
-
- List extra links for task instance. # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
-
- >>> thread = api.get_extra_links(dag_id, dag_run_id, task_id, async_req=True)
- >>> result = thread.get()
-
- Args:
- dag_id (str): The DAG ID.
- dag_run_id (str): The DAG run ID.
- task_id (str): The task ID.
-
- Keyword Args:
- _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
- will be returned without reading/decoding response data.
- Default is True.
- _request_timeout (float/tuple): timeout setting for this request. If one
- number provided, it will be total request timeout. It can also
- be a pair (tuple) of (connection, read) timeouts.
- Default is None.
- _check_input_type (bool): specifies if type checking
- should be done one the data sent to the server.
- Default is True.
- _check_return_type (bool): specifies if type checking
- should be done one the data received from the server.
- Default is True.
- _host_index (int/None): specifies the index of the server
- that we want to use.
- Default is read from the configuration.
- async_req (bool): execute request asynchronously
-
- Returns:
- ExtraLinkCollection
- If the method is called asynchronously, returns the request
- thread.
- """
- kwargs['async_req'] = kwargs.get(
- 'async_req', False
- )
- kwargs['_return_http_data_only'] = kwargs.get(
- '_return_http_data_only', True
- )
- kwargs['_preload_content'] = kwargs.get(
- '_preload_content', True
- )
- kwargs['_request_timeout'] = kwargs.get(
- '_request_timeout', None
- )
- kwargs['_check_input_type'] = kwargs.get(
- '_check_input_type', True
- )
- kwargs['_check_return_type'] = kwargs.get(
- '_check_return_type', True
- )
- kwargs['_host_index'] = kwargs.get('_host_index')
- kwargs['dag_id'] = \
- dag_id
- kwargs['dag_run_id'] = \
- dag_run_id
- kwargs['task_id'] = \
- task_id
- return self.call_with_http_info(**kwargs)
-
- self.get_extra_links = _Endpoint(
+ self.get_extra_links_endpoint = _Endpoint(
settings={
'response_type': (ExtraLinkCollection,),
'auth': [
@@ -195,91 +120,9 @@ class TaskInstanceApi(object):
],
'content_type': [],
},
- api_client=api_client,
- callable=__get_extra_links
- )
-
- def __get_log(
- self,
- dag_id,
- dag_run_id,
- task_id,
- task_try_number,
- **kwargs
- ):
- """Get logs # noqa: E501
-
- Get logs for a specific task instance and its try number. # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
-
- >>> thread = api.get_log(dag_id, dag_run_id, task_id, task_try_number, async_req=True)
- >>> result = thread.get()
-
- Args:
- dag_id (str): The DAG ID.
- dag_run_id (str): The DAG run ID.
- task_id (str): The task ID.
- task_try_number (int): The task try number.
-
- Keyword Args:
- full_content (bool): A full content will be returned. By default, only the first fragment will be returned. . [optional]
- token (str): A token that allows you to continue fetching logs. If passed, it will specify the location from which the download should be continued. . [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
- will be returned without reading/decoding response data.
- Default is True.
- _request_timeout (float/tuple): timeout setting for this request. If one
- number provided, it will be total request timeout. It can also
- be a pair (tuple) of (connection, read) timeouts.
- Default is None.
- _check_input_type (bool): specifies if type checking
- should be done one the data sent to the server.
- Default is True.
- _check_return_type (bool): specifies if type checking
- should be done one the data received from the server.
- Default is True.
- _host_index (int/None): specifies the index of the server
- that we want to use.
- Default is read from the configuration.
- async_req (bool): execute request asynchronously
-
- Returns:
- InlineResponse200
- If the method is called asynchronously, returns the request
- thread.
- """
- kwargs['async_req'] = kwargs.get(
- 'async_req', False
- )
- kwargs['_return_http_data_only'] = kwargs.get(
- '_return_http_data_only', True
- )
- kwargs['_preload_content'] = kwargs.get(
- '_preload_content', True
- )
- kwargs['_request_timeout'] = kwargs.get(
- '_request_timeout', None
- )
- kwargs['_check_input_type'] = kwargs.get(
- '_check_input_type', True
- )
- kwargs['_check_return_type'] = kwargs.get(
- '_check_return_type', True
- )
- kwargs['_host_index'] = kwargs.get('_host_index')
- kwargs['dag_id'] = \
- dag_id
- kwargs['dag_run_id'] = \
- dag_run_id
- kwargs['task_id'] = \
- task_id
- kwargs['task_try_number'] = \
- task_try_number
- return self.call_with_http_info(**kwargs)
-
- self.get_log = _Endpoint(
+ api_client=api_client
+ )
+ self.get_log_endpoint = _Endpoint(
settings={
'response_type': (InlineResponse200,),
'auth': [
@@ -358,84 +201,9 @@ class TaskInstanceApi(object):
],
'content_type': [],
},
- api_client=api_client,
- callable=__get_log
- )
-
- def __get_task_instance(
- self,
- dag_id,
- dag_run_id,
- task_id,
- **kwargs
- ):
- """Get a task instance # noqa: E501
-
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
-
- >>> thread = api.get_task_instance(dag_id, dag_run_id, task_id, async_req=True)
- >>> result = thread.get()
-
- Args:
- dag_id (str): The DAG ID.
- dag_run_id (str): The DAG run ID.
- task_id (str): The task ID.
-
- Keyword Args:
- _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
- will be returned without reading/decoding response data.
- Default is True.
- _request_timeout (float/tuple): timeout setting for this request. If one
- number provided, it will be total request timeout. It can also
- be a pair (tuple) of (connection, read) timeouts.
- Default is None.
- _check_input_type (bool): specifies if type checking
- should be done one the data sent to the server.
- Default is True.
- _check_return_type (bool): specifies if type checking
- should be done one the data received from the server.
- Default is True.
- _host_index (int/None): specifies the index of the server
- that we want to use.
- Default is read from the configuration.
- async_req (bool): execute request asynchronously
-
- Returns:
- TaskInstance
- If the method is called asynchronously, returns the request
- thread.
- """
- kwargs['async_req'] = kwargs.get(
- 'async_req', False
- )
- kwargs['_return_http_data_only'] = kwargs.get(
- '_return_http_data_only', True
- )
- kwargs['_preload_content'] = kwargs.get(
- '_preload_content', True
- )
- kwargs['_request_timeout'] = kwargs.get(
- '_request_timeout', None
- )
- kwargs['_check_input_type'] = kwargs.get(
- '_check_input_type', True
- )
- kwargs['_check_return_type'] = kwargs.get(
- '_check_return_type', True
- )
- kwargs['_host_index'] = kwargs.get('_host_index')
- kwargs['dag_id'] = \
- dag_id
- kwargs['dag_run_id'] = \
- dag_run_id
- kwargs['task_id'] = \
- task_id
- return self.call_with_http_info(**kwargs)
-
- self.get_task_instance = _Endpoint(
+ api_client=api_client
+ )
+ self.get_task_instance_endpoint = _Endpoint(
settings={
'response_type': (TaskInstance,),
'auth': [
@@ -497,94 +265,9 @@ class TaskInstanceApi(object):
],
'content_type': [],
},
- api_client=api_client,
- callable=__get_task_instance
- )
-
- def __get_task_instances(
- self,
- dag_id,
- dag_run_id,
- **kwargs
- ):
- """List task instances # noqa: E501
-
- This endpoint allows specifying `~` as the dag_id, dag_run_id to retrieve DAG runs for all DAGs and DAG runs. # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
-
- >>> thread = api.get_task_instances(dag_id, dag_run_id, async_req=True)
- >>> result = thread.get()
-
- Args:
- dag_id (str): The DAG ID.
- dag_run_id (str): The DAG run ID.
-
- Keyword Args:
- execution_date_gte (datetime): Returns objects greater or equal to the specified date. This can be combined with execution_date_lte parameter 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 parameter 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 parameter to receive only the selected period. . [optional]
- 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]
- 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]
- 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]
- 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]
- _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
- will be returned without reading/decoding response data.
- Default is True.
- _request_timeout (float/tuple): timeout setting for this request. If one
- number provided, it will be total request timeout. It can also
- be a pair (tuple) of (connection, read) timeouts.
- Default is None.
- _check_input_type (bool): specifies if type checking
- should be done one the data sent to the server.
- Default is True.
- _check_return_type (bool): specifies if type checking
- should be done one the data received from the server.
- Default is True.
- _host_index (int/None): specifies the index of the server
- that we want to use.
- Default is read from the configuration.
- async_req (bool): execute request asynchronously
-
- Returns:
- TaskInstanceCollection
- If the method is called asynchronously, returns the request
- thread.
- """
- kwargs['async_req'] = kwargs.get(
- 'async_req', False
- )
- kwargs['_return_http_data_only'] = kwargs.get(
- '_return_http_data_only', True
- )
- kwargs['_preload_content'] = kwargs.get(
- '_preload_content', True
- )
- kwargs['_request_timeout'] = kwargs.get(
- '_request_timeout', None
- )
- kwargs['_check_input_type'] = kwargs.get(
- '_check_input_type', True
- )
- kwargs['_check_return_type'] = kwargs.get(
- '_check_return_type', True
- )
- kwargs['_host_index'] = kwargs.get('_host_index')
- kwargs['dag_id'] = \
- dag_id
- kwargs['dag_run_id'] = \
- dag_run_id
- return self.call_with_http_info(**kwargs)
-
- self.get_task_instances = _Endpoint(
+ api_client=api_client
+ )
+ self.get_task_instances_endpoint = _Endpoint(
settings={
'response_type': (TaskInstanceCollection,),
'auth': [
@@ -713,77 +396,9 @@ class TaskInstanceApi(object):
],
'content_type': [],
},
- api_client=api_client,
- callable=__get_task_instances
- )
-
- def __get_task_instances_batch(
- self,
- list_task_instance_form,
- **kwargs
- ):
- """List task instances (batch) # noqa: E501
-
- List task instances from all DAGs and DAG runs. This endpoint is a POST to allow filtering across a large number of DAG IDs, where as a GET it would run in to maximum HTTP request URL length limits. # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
-
- >>> thread = api.get_task_instances_batch(list_task_instance_form, async_req=True)
- >>> result = thread.get()
-
- Args:
- list_task_instance_form (ListTaskInstanceForm):
-
- Keyword Args:
- _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
- will be returned without reading/decoding response data.
- Default is True.
- _request_timeout (float/tuple): timeout setting for this request. If one
- number provided, it will be total request timeout. It can also
- be a pair (tuple) of (connection, read) timeouts.
- Default is None.
- _check_input_type (bool): specifies if type checking
- should be done one the data sent to the server.
- Default is True.
- _check_return_type (bool): specifies if type checking
- should be done one the data received from the server.
- Default is True.
- _host_index (int/None): specifies the index of the server
- that we want to use.
- Default is read from the configuration.
- async_req (bool): execute request asynchronously
-
- Returns:
- TaskInstanceCollection
- If the method is called asynchronously, returns the request
- thread.
- """
- kwargs['async_req'] = kwargs.get(
- 'async_req', False
- )
- kwargs['_return_http_data_only'] = kwargs.get(
- '_return_http_data_only', True
- )
- kwargs['_preload_content'] = kwargs.get(
- '_preload_content', True
- )
- kwargs['_request_timeout'] = kwargs.get(
- '_request_timeout', None
- )
- kwargs['_check_input_type'] = kwargs.get(
- '_check_input_type', True
- )
- kwargs['_check_return_type'] = kwargs.get(
- '_check_return_type', True
- )
- kwargs['_host_index'] = kwargs.get('_host_index')
- kwargs['list_task_instance_form'] = \
- list_task_instance_form
- return self.call_with_http_info(**kwargs)
-
- self.get_task_instances_batch = _Endpoint(
+ api_client=api_client
+ )
+ self.get_task_instances_batch_endpoint = _Endpoint(
settings={
'response_type': (TaskInstanceCollection,),
'auth': [
@@ -834,6 +449,382 @@ class TaskInstanceApi(object):
'application/json'
]
},
- api_client=api_client,
- callable=__get_task_instances_batch
+ api_client=api_client
+ )
+
+ def get_extra_links(
+ self,
+ dag_id,
+ dag_run_id,
+ task_id,
+ **kwargs
+ ):
+ """List extra links # noqa: E501
+
+ List extra links for task instance. # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+
+ >>> thread = api.get_extra_links(dag_id, dag_run_id, task_id, async_req=True)
+ >>> result = thread.get()
+
+ Args:
+ dag_id (str): The DAG ID.
+ dag_run_id (str): The DAG run ID.
+ task_id (str): The task ID.
+
+ Keyword Args:
+ _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
+ will be returned without reading/decoding response data.
+ Default is True.
+ _request_timeout (int/float/tuple): timeout setting for this request. If
+ one number provided, it will be total request timeout. It can also
+ be a pair (tuple) of (connection, read) timeouts.
+ Default is None.
+ _check_input_type (bool): specifies if type checking
+ should be done one the data sent to the server.
+ Default is True.
+ _check_return_type (bool): specifies if type checking
+ should be done one the data received from the server.
+ Default is True.
+ _host_index (int/None): specifies the index of the server
+ that we want to use.
+ Default is read from the configuration.
+ async_req (bool): execute request asynchronously
+
+ Returns:
+ ExtraLinkCollection
+ If the method is called asynchronously, returns the request
+ thread.
+ """
+ kwargs['async_req'] = kwargs.get(
+ 'async_req', False
+ )
+ kwargs['_return_http_data_only'] = kwargs.get(
+ '_return_http_data_only', True
+ )
+ kwargs['_preload_content'] = kwargs.get(
+ '_preload_content', True
+ )
+ kwargs['_request_timeout'] = kwargs.get(
+ '_request_timeout', None
+ )
+ kwargs['_check_input_type'] = kwargs.get(
+ '_check_input_type', True
+ )
+ kwargs['_check_return_type'] = kwargs.get(
+ '_check_return_type', True
+ )
+ kwargs['_host_index'] = kwargs.get('_host_index')
+ kwargs['dag_id'] = \
+ dag_id
+ kwargs['dag_run_id'] = \
+ dag_run_id
+ kwargs['task_id'] = \
+ task_id
+ return self.get_extra_links_endpoint.call_with_http_info(**kwargs)
+
+ def get_log(
+ self,
+ dag_id,
+ dag_run_id,
+ task_id,
+ task_try_number,
+ **kwargs
+ ):
+ """Get logs # noqa: E501
+
+ Get logs for a specific task instance and its try number. # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+
+ >>> thread = api.get_log(dag_id, dag_run_id, task_id, task_try_number, async_req=True)
+ >>> result = thread.get()
+
+ Args:
+ dag_id (str): The DAG ID.
+ dag_run_id (str): The DAG run ID.
+ task_id (str): The task ID.
+ task_try_number (int): The task try number.
+
+ Keyword Args:
+ full_content (bool): A full content will be returned. By default, only the first fragment will be returned. . [optional]
+ token (str): A token that allows you to continue fetching logs. If passed, it will specify the location from which the download should be continued. . [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
+ will be returned without reading/decoding response data.
+ Default is True.
+ _request_timeout (int/float/tuple): timeout setting for this request. If
+ one number provided, it will be total request timeout. It can also
+ be a pair (tuple) of (connection, read) timeouts.
+ Default is None.
+ _check_input_type (bool): specifies if type checking
+ should be done one the data sent to the server.
+ Default is True.
+ _check_return_type (bool): specifies if type checking
+ should be done one the data received from the server.
+ Default is True.
+ _host_index (int/None): specifies the index of the server
+ that we want to use.
+ Default is read from the configuration.
+ async_req (bool): execute request asynchronously
+
+ Returns:
+ InlineResponse200
+ If the method is called asynchronously, returns the request
+ thread.
+ """
+ kwargs['async_req'] = kwargs.get(
+ 'async_req', False
+ )
+ kwargs['_return_http_data_only'] = kwargs.get(
+ '_return_http_data_only', True
+ )
+ kwargs['_preload_content'] = kwargs.get(
+ '_preload_content', True
+ )
+ kwargs['_request_timeout'] = kwargs.get(
+ '_request_timeout', None
+ )
+ kwargs['_check_input_type'] = kwargs.get(
+ '_check_input_type', True
+ )
+ kwargs['_check_return_type'] = kwargs.get(
+ '_check_return_type', True
+ )
+ kwargs['_host_index'] = kwargs.get('_host_index')
+ kwargs['dag_id'] = \
+ dag_id
+ kwargs['dag_run_id'] = \
+ dag_run_id
+ kwargs['task_id'] = \
+ task_id
+ kwargs['task_try_number'] = \
+ task_try_number
+ return self.get_log_endpoint.call_with_http_info(**kwargs)
+
+ def get_task_instance(
+ self,
+ dag_id,
+ dag_run_id,
+ task_id,
+ **kwargs
+ ):
+ """Get a task instance # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+
+ >>> thread = api.get_task_instance(dag_id, dag_run_id, task_id, async_req=True)
+ >>> result = thread.get()
+
+ Args:
+ dag_id (str): The DAG ID.
+ dag_run_id (str): The DAG run ID.
+ task_id (str): The task ID.
+
+ Keyword Args:
+ _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
+ will be returned without reading/decoding response data.
+ Default is True.
+ _request_timeout (int/float/tuple): timeout setting for this request. If
+ one number provided, it will be total request timeout. It can also
+ be a pair (tuple) of (connection, read) timeouts.
+ Default is None.
+ _check_input_type (bool): specifies if type checking
+ should be done one the data sent to the server.
+ Default is True.
+ _check_return_type (bool): specifies if type checking
+ should be done one the data received from the server.
+ Default is True.
+ _host_index (int/None): specifies the index of the server
+ that we want to use.
+ Default is read from the configuration.
+ async_req (bool): execute request asynchronously
+
+ Returns:
+ TaskInstance
+ If the method is called asynchronously, returns the request
+ thread.
+ """
+ kwargs['async_req'] = kwargs.get(
+ 'async_req', False
)
+ kwargs['_return_http_data_only'] = kwargs.get(
+ '_return_http_data_only', True
+ )
+ kwargs['_preload_content'] = kwargs.get(
+ '_preload_content', True
+ )
+ kwargs['_request_timeout'] = kwargs.get(
+ '_request_timeout', None
+ )
+ kwargs['_check_input_type'] = kwargs.get(
+ '_check_input_type', True
+ )
+ kwargs['_check_return_type'] = kwargs.get(
+ '_check_return_type', True
+ )
+ kwargs['_host_index'] = kwargs.get('_host_index')
+ kwargs['dag_id'] = \
+ dag_id
+ kwargs['dag_run_id'] = \
+ dag_run_id
+ kwargs['task_id'] = \
+ task_id
+ return self.get_task_instance_endpoint.call_with_http_info(**kwargs)
+
+ def get_task_instances(
+ self,
+ dag_id,
+ dag_run_id,
+ **kwargs
+ ):
+ """List task instances # noqa: E501
+
+ This endpoint allows specifying `~` as the dag_id, dag_run_id to retrieve DAG runs for all DAGs and DAG runs. # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+
+ >>> thread = api.get_task_instances(dag_id, dag_run_id, async_req=True)
+ >>> result = thread.get()
+
+ Args:
+ dag_id (str): The DAG ID.
+ dag_run_id (str): The DAG run ID.
+
+ Keyword Args:
+ execution_date_gte (datetime): Returns objects greater or equal to the specified date. This can be combined with execution_date_lte parameter 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 parameter 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 parameter to receive only the selected period. . [optional]
+ 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]
+ 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]
+ 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]
+ 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]
+ _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
+ will be returned without reading/decoding response data.
+ Default is True.
+ _request_timeout (int/float/tuple): timeout setting for this request. If
+ one number provided, it will be total request timeout. It can also
+ be a pair (tuple) of (connection, read) timeouts.
+ Default is None.
+ _check_input_type (bool): specifies if type checking
+ should be done one the data sent to the server.
+ Default is True.
+ _check_return_type (bool): specifies if type checking
+ should be done one the data received from the server.
+ Default is True.
+ _host_index (int/None): specifies the index of the server
+ that we want to use.
+ Default is read from the configuration.
+ async_req (bool): execute request asynchronously
+
+ Returns:
+ TaskInstanceCollection
+ If the method is called asynchronously, returns the request
+ thread.
+ """
+ kwargs['async_req'] = kwargs.get(
+ 'async_req', False
+ )
+ kwargs['_return_http_data_only'] = kwargs.get(
+ '_return_http_data_only', True
+ )
+ kwargs['_preload_content'] = kwargs.get(
+ '_preload_content', True
+ )
+ kwargs['_request_timeout'] = kwargs.get(
+ '_request_timeout', None
+ )
+ kwargs['_check_input_type'] = kwargs.get(
+ '_check_input_type', True
+ )
+ kwargs['_check_return_type'] = kwargs.get(
+ '_check_return_type', True
+ )
+ kwargs['_host_index'] = kwargs.get('_host_index')
+ kwargs['dag_id'] = \
+ dag_id
+ kwargs['dag_run_id'] = \
+ dag_run_id
+ return self.get_task_instances_endpoint.call_with_http_info(**kwargs)
+
+ def get_task_instances_batch(
+ self,
+ list_task_instance_form,
+ **kwargs
+ ):
+ """List task instances (batch) # noqa: E501
+
+ List task instances from all DAGs and DAG runs. This endpoint is a POST to allow filtering across a large number of DAG IDs, where as a GET it would run in to maximum HTTP request URL length limits. # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+
+ >>> thread = api.get_task_instances_batch(list_task_instance_form, async_req=True)
+ >>> result = thread.get()
+
+ Args:
+ list_task_instance_form (ListTaskInstanceForm):
+
+ Keyword Args:
+ _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
+ will be returned without reading/decoding response data.
+ Default is True.
+ _request_timeout (int/float/tuple): timeout setting for this request. If
+ one number provided, it will be total request timeout. It can also
+ be a pair (tuple) of (connection, read) timeouts.
+ Default is None.
+ _check_input_type (bool): specifies if type checking
+ should be done one the data sent to the server.
+ Default is True.
+ _check_return_type (bool): specifies if type checking
+ should be done one the data received from the server.
+ Default is True.
+ _host_index (int/None): specifies the index of the server
+ that we want to use.
+ Default is read from the configuration.
+ async_req (bool): execute request asynchronously
+
+ Returns:
+ TaskInstanceCollection
+ If the method is called asynchronously, returns the request
+ thread.
+ """
+ kwargs['async_req'] = kwargs.get(
+ 'async_req', False
+ )
+ kwargs['_return_http_data_only'] = kwargs.get(
+ '_return_http_data_only', True
+ )
+ kwargs['_preload_content'] = kwargs.get(
+ '_preload_content', True
+ )
+ kwargs['_request_timeout'] = kwargs.get(
+ '_request_timeout', None
+ )
+ kwargs['_check_input_type'] = kwargs.get(
+ '_check_input_type', True
+ )
+ kwargs['_check_return_type'] = kwargs.get(
+ '_check_return_type', True
+ )
+ kwargs['_host_index'] = kwargs.get('_host_index')
+ kwargs['list_task_instance_form'] = \
+ list_task_instance_form
+ return self.get_task_instances_batch_endpoint.call_with_http_info(**kwargs)
+
diff --git a/airflow_client/client/api/user_api.py b/airflow_client/client/api/user_api.py
index c635988..4598881 100644
--- a/airflow_client/client/api/user_api.py
+++ b/airflow_client/client/api/user_api.py
@@ -18,7 +18,7 @@
"""
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 th [...]
+ # 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 th [...]
The version of the OpenAPI document: 1.0.0
Contact: dev@airflow.apache.org
@@ -40,6 +40,8 @@ from airflow_client.client.model_utils import ( # noqa: F401
validate_and_convert_types
)
from airflow_client.client.model.error import Error
+from airflow_client.client.model.role import Role
+from airflow_client.client.model.user import User
from airflow_client.client.model.user_collection import UserCollection
from airflow_client.client.model.user_collection_item import UserCollectionItem
@@ -55,73 +57,59 @@ class UserApi(object):
if api_client is None:
api_client = ApiClient()
self.api_client = api_client
-
- def __get_user(
- self,
- username,
- **kwargs
- ):
- """Get a user # noqa: E501
-
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
-
- >>> thread = api.get_user(username, async_req=True)
- >>> result = thread.get()
-
- Args:
- username (str): The username of the user
-
- Keyword Args:
- _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
- will be returned without reading/decoding response data.
- Default is True.
- _request_timeout (float/tuple): timeout setting for this request. If one
- number provided, it will be total request timeout. It can also
- be a pair (tuple) of (connection, read) timeouts.
- Default is None.
- _check_input_type (bool): specifies if type checking
- should be done one the data sent to the server.
- Default is True.
- _check_return_type (bool): specifies if type checking
- should be done one the data received from the server.
- Default is True.
- _host_index (int/None): specifies the index of the server
- that we want to use.
- Default is read from the configuration.
- async_req (bool): execute request asynchronously
-
- Returns:
- UserCollectionItem
- If the method is called asynchronously, returns the request
- thread.
- """
- kwargs['async_req'] = kwargs.get(
- 'async_req', False
- )
- kwargs['_return_http_data_only'] = kwargs.get(
- '_return_http_data_only', True
- )
- kwargs['_preload_content'] = kwargs.get(
- '_preload_content', True
- )
- kwargs['_request_timeout'] = kwargs.get(
- '_request_timeout', None
- )
- kwargs['_check_input_type'] = kwargs.get(
- '_check_input_type', True
- )
- kwargs['_check_return_type'] = kwargs.get(
- '_check_return_type', True
- )
- kwargs['_host_index'] = kwargs.get('_host_index')
- kwargs['username'] = \
- username
- return self.call_with_http_info(**kwargs)
-
- self.get_user = _Endpoint(
+ self.delete_user_endpoint = _Endpoint(
+ settings={
+ 'response_type': None,
+ 'auth': [
+ 'Basic',
+ 'Kerberos'
+ ],
+ 'endpoint_path': '/users/{username}',
+ 'operation_id': 'delete_user',
+ 'http_method': 'DELETE',
+ 'servers': None,
+ },
+ params_map={
+ 'all': [
+ 'username',
+ ],
+ 'required': [
+ 'username',
+ ],
+ 'nullable': [
+ ],
+ 'enum': [
+ ],
+ 'validation': [
+ ]
+ },
+ root_map={
+ 'validations': {
+ },
+ 'allowed_values': {
+ },
+ 'openapi_types': {
+ 'username':
+ (str,),
+ },
+ 'attribute_map': {
+ 'username': 'username',
+ },
+ 'location_map': {
+ 'username': 'path',
+ },
+ 'collection_format_map': {
+ }
+ },
+ headers_map={
+ 'accept': [
+ 'application/json'
+ ],
+ 'content_type': [],
+ },
+ api_client=api_client
+ )
+ self.get_user_endpoint = _Endpoint(
settings={
'response_type': (UserCollectionItem,),
'auth': [
@@ -171,74 +159,9 @@ class UserApi(object):
],
'content_type': [],
},
- api_client=api_client,
- callable=__get_user
- )
-
- def __get_users(
- self,
- **kwargs
- ):
- """List users # noqa: E501
-
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
-
- >>> thread = api.get_users(async_req=True)
- >>> result = thread.get()
-
-
- 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]
- _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
- will be returned without reading/decoding response data.
- Default is True.
- _request_timeout (float/tuple): timeout setting for this request. If one
- number provided, it will be total request timeout. It can also
- be a pair (tuple) of (connection, read) timeouts.
- Default is None.
- _check_input_type (bool): specifies if type checking
- should be done one the data sent to the server.
- Default is True.
- _check_return_type (bool): specifies if type checking
- should be done one the data received from the server.
- Default is True.
- _host_index (int/None): specifies the index of the server
- that we want to use.
- Default is read from the configuration.
- async_req (bool): execute request asynchronously
-
- Returns:
- UserCollection
- If the method is called asynchronously, returns the request
- thread.
- """
- kwargs['async_req'] = kwargs.get(
- 'async_req', False
- )
- kwargs['_return_http_data_only'] = kwargs.get(
- '_return_http_data_only', True
- )
- kwargs['_preload_content'] = kwargs.get(
- '_preload_content', True
- )
- kwargs['_request_timeout'] = kwargs.get(
- '_request_timeout', None
- )
- kwargs['_check_input_type'] = kwargs.get(
- '_check_input_type', True
- )
- kwargs['_check_return_type'] = kwargs.get(
- '_check_return_type', True
- )
- kwargs['_host_index'] = kwargs.get('_host_index')
- return self.call_with_http_info(**kwargs)
-
- self.get_users = _Endpoint(
+ api_client=api_client
+ )
+ self.get_users_endpoint = _Endpoint(
settings={
'response_type': (UserCollection,),
'auth': [
@@ -301,6 +224,452 @@ class UserApi(object):
],
'content_type': [],
},
- api_client=api_client,
- callable=__get_users
+ api_client=api_client
+ )
+ self.patch_user_endpoint = _Endpoint(
+ settings={
+ 'response_type': (Role,),
+ 'auth': [
+ 'Basic',
+ 'Kerberos'
+ ],
+ 'endpoint_path': '/users/{username}',
+ 'operation_id': 'patch_user',
+ 'http_method': 'PATCH',
+ 'servers': None,
+ },
+ params_map={
+ 'all': [
+ 'username',
+ 'user',
+ 'update_mask',
+ ],
+ 'required': [
+ 'username',
+ 'user',
+ ],
+ 'nullable': [
+ ],
+ 'enum': [
+ ],
+ 'validation': [
+ ]
+ },
+ root_map={
+ 'validations': {
+ },
+ 'allowed_values': {
+ },
+ 'openapi_types': {
+ 'username':
+ (str,),
+ 'user':
+ (User,),
+ 'update_mask':
+ ([str],),
+ },
+ 'attribute_map': {
+ 'username': 'username',
+ 'update_mask': 'update_mask',
+ },
+ 'location_map': {
+ 'username': 'path',
+ 'user': 'body',
+ 'update_mask': 'query',
+ },
+ 'collection_format_map': {
+ 'update_mask': 'csv',
+ }
+ },
+ headers_map={
+ 'accept': [
+ 'application/json'
+ ],
+ 'content_type': [
+ 'application/json'
+ ]
+ },
+ api_client=api_client
+ )
+ self.post_user_endpoint = _Endpoint(
+ settings={
+ 'response_type': (User,),
+ 'auth': [
+ 'Basic',
+ 'Kerberos'
+ ],
+ 'endpoint_path': '/users',
+ 'operation_id': 'post_user',
+ 'http_method': 'POST',
+ 'servers': None,
+ },
+ params_map={
+ 'all': [
+ 'user',
+ ],
+ 'required': [
+ 'user',
+ ],
+ 'nullable': [
+ ],
+ 'enum': [
+ ],
+ 'validation': [
+ ]
+ },
+ root_map={
+ 'validations': {
+ },
+ 'allowed_values': {
+ },
+ 'openapi_types': {
+ 'user':
+ (User,),
+ },
+ 'attribute_map': {
+ },
+ 'location_map': {
+ 'user': 'body',
+ },
+ 'collection_format_map': {
+ }
+ },
+ headers_map={
+ 'accept': [
+ 'application/json'
+ ],
+ 'content_type': [
+ 'application/json'
+ ]
+ },
+ api_client=api_client
+ )
+
+ def delete_user(
+ self,
+ username,
+ **kwargs
+ ):
+ """Delete a user # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+
+ >>> thread = api.delete_user(username, async_req=True)
+ >>> result = thread.get()
+
+ Args:
+ username (str): The username of the user
+
+ Keyword Args:
+ _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
+ will be returned without reading/decoding response data.
+ Default is True.
+ _request_timeout (int/float/tuple): timeout setting for this request. If
+ one number provided, it will be total request timeout. It can also
+ be a pair (tuple) of (connection, read) timeouts.
+ Default is None.
+ _check_input_type (bool): specifies if type checking
+ should be done one the data sent to the server.
+ Default is True.
+ _check_return_type (bool): specifies if type checking
+ should be done one the data received from the server.
+ Default is True.
+ _host_index (int/None): specifies the index of the server
+ that we want to use.
+ Default is read from the configuration.
+ async_req (bool): execute request asynchronously
+
+ Returns:
+ None
+ If the method is called asynchronously, returns the request
+ thread.
+ """
+ kwargs['async_req'] = kwargs.get(
+ 'async_req', False
+ )
+ kwargs['_return_http_data_only'] = kwargs.get(
+ '_return_http_data_only', True
+ )
+ kwargs['_preload_content'] = kwargs.get(
+ '_preload_content', True
+ )
+ kwargs['_request_timeout'] = kwargs.get(
+ '_request_timeout', None
+ )
+ kwargs['_check_input_type'] = kwargs.get(
+ '_check_input_type', True
)
+ kwargs['_check_return_type'] = kwargs.get(
+ '_check_return_type', True
+ )
+ kwargs['_host_index'] = kwargs.get('_host_index')
+ kwargs['username'] = \
+ username
+ return self.delete_user_endpoint.call_with_http_info(**kwargs)
+
+ def get_user(
+ self,
+ username,
+ **kwargs
+ ):
+ """Get a user # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+
+ >>> thread = api.get_user(username, async_req=True)
+ >>> result = thread.get()
+
+ Args:
+ username (str): The username of the user
+
+ Keyword Args:
+ _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
+ will be returned without reading/decoding response data.
+ Default is True.
+ _request_timeout (int/float/tuple): timeout setting for this request. If
+ one number provided, it will be total request timeout. It can also
+ be a pair (tuple) of (connection, read) timeouts.
+ Default is None.
+ _check_input_type (bool): specifies if type checking
+ should be done one the data sent to the server.
+ Default is True.
+ _check_return_type (bool): specifies if type checking
+ should be done one the data received from the server.
+ Default is True.
+ _host_index (int/None): specifies the index of the server
+ that we want to use.
+ Default is read from the configuration.
+ async_req (bool): execute request asynchronously
+
+ Returns:
+ UserCollectionItem
+ If the method is called asynchronously, returns the request
+ thread.
+ """
+ kwargs['async_req'] = kwargs.get(
+ 'async_req', False
+ )
+ kwargs['_return_http_data_only'] = kwargs.get(
+ '_return_http_data_only', True
+ )
+ kwargs['_preload_content'] = kwargs.get(
+ '_preload_content', True
+ )
+ kwargs['_request_timeout'] = kwargs.get(
+ '_request_timeout', None
+ )
+ kwargs['_check_input_type'] = kwargs.get(
+ '_check_input_type', True
+ )
+ kwargs['_check_return_type'] = kwargs.get(
+ '_check_return_type', True
+ )
+ kwargs['_host_index'] = kwargs.get('_host_index')
+ kwargs['username'] = \
+ username
+ return self.get_user_endpoint.call_with_http_info(**kwargs)
+
+ def get_users(
+ self,
+ **kwargs
+ ):
+ """List users # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+
+ >>> thread = api.get_users(async_req=True)
+ >>> result = thread.get()
+
+
+ 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]
+ _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
+ will be returned without reading/decoding response data.
+ Default is True.
+ _request_timeout (int/float/tuple): timeout setting for this request. If
+ one number provided, it will be total request timeout. It can also
+ be a pair (tuple) of (connection, read) timeouts.
+ Default is None.
+ _check_input_type (bool): specifies if type checking
+ should be done one the data sent to the server.
+ Default is True.
+ _check_return_type (bool): specifies if type checking
+ should be done one the data received from the server.
+ Default is True.
+ _host_index (int/None): specifies the index of the server
+ that we want to use.
+ Default is read from the configuration.
+ async_req (bool): execute request asynchronously
+
+ Returns:
+ UserCollection
+ If the method is called asynchronously, returns the request
+ thread.
+ """
+ kwargs['async_req'] = kwargs.get(
+ 'async_req', False
+ )
+ kwargs['_return_http_data_only'] = kwargs.get(
+ '_return_http_data_only', True
+ )
+ kwargs['_preload_content'] = kwargs.get(
+ '_preload_content', True
+ )
+ kwargs['_request_timeout'] = kwargs.get(
+ '_request_timeout', None
+ )
+ kwargs['_check_input_type'] = kwargs.get(
+ '_check_input_type', True
+ )
+ kwargs['_check_return_type'] = kwargs.get(
+ '_check_return_type', True
+ )
+ kwargs['_host_index'] = kwargs.get('_host_index')
+ return self.get_users_endpoint.call_with_http_info(**kwargs)
+
+ def patch_user(
+ self,
+ username,
+ user,
+ **kwargs
+ ):
+ """Update a user # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+
+ >>> thread = api.patch_user(username, user, async_req=True)
+ >>> result = thread.get()
+
+ Args:
+ username (str): The username of the user
+ user (User):
+
+ Keyword Args:
+ 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]
+ _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
+ will be returned without reading/decoding response data.
+ Default is True.
+ _request_timeout (int/float/tuple): timeout setting for this request. If
+ one number provided, it will be total request timeout. It can also
+ be a pair (tuple) of (connection, read) timeouts.
+ Default is None.
+ _check_input_type (bool): specifies if type checking
+ should be done one the data sent to the server.
+ Default is True.
+ _check_return_type (bool): specifies if type checking
+ should be done one the data received from the server.
+ Default is True.
+ _host_index (int/None): specifies the index of the server
+ that we want to use.
+ Default is read from the configuration.
+ async_req (bool): execute request asynchronously
+
+ Returns:
+ Role
+ If the method is called asynchronously, returns the request
+ thread.
+ """
+ kwargs['async_req'] = kwargs.get(
+ 'async_req', False
+ )
+ kwargs['_return_http_data_only'] = kwargs.get(
+ '_return_http_data_only', True
+ )
+ kwargs['_preload_content'] = kwargs.get(
+ '_preload_content', True
+ )
+ kwargs['_request_timeout'] = kwargs.get(
+ '_request_timeout', None
+ )
+ kwargs['_check_input_type'] = kwargs.get(
+ '_check_input_type', True
+ )
+ kwargs['_check_return_type'] = kwargs.get(
+ '_check_return_type', True
+ )
+ kwargs['_host_index'] = kwargs.get('_host_index')
+ kwargs['username'] = \
+ username
+ kwargs['user'] = \
+ user
+ return self.patch_user_endpoint.call_with_http_info(**kwargs)
+
+ def post_user(
+ self,
+ user,
+ **kwargs
+ ):
+ """Create a user # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+
+ >>> thread = api.post_user(user, async_req=True)
+ >>> result = thread.get()
+
+ Args:
+ user (User):
+
+ Keyword Args:
+ _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
+ will be returned without reading/decoding response data.
+ Default is True.
+ _request_timeout (int/float/tuple): timeout setting for this request. If
+ one number provided, it will be total request timeout. It can also
+ be a pair (tuple) of (connection, read) timeouts.
+ Default is None.
+ _check_input_type (bool): specifies if type checking
+ should be done one the data sent to the server.
+ Default is True.
+ _check_return_type (bool): specifies if type checking
+ should be done one the data received from the server.
+ Default is True.
+ _host_index (int/None): specifies the index of the server
+ that we want to use.
+ Default is read from the configuration.
+ async_req (bool): execute request asynchronously
+
+ Returns:
+ User
+ If the method is called asynchronously, returns the request
+ thread.
+ """
+ kwargs['async_req'] = kwargs.get(
+ 'async_req', False
+ )
+ kwargs['_return_http_data_only'] = kwargs.get(
+ '_return_http_data_only', True
+ )
+ kwargs['_preload_content'] = kwargs.get(
+ '_preload_content', True
+ )
+ kwargs['_request_timeout'] = kwargs.get(
+ '_request_timeout', None
+ )
+ kwargs['_check_input_type'] = kwargs.get(
+ '_check_input_type', True
+ )
+ kwargs['_check_return_type'] = kwargs.get(
+ '_check_return_type', True
+ )
+ kwargs['_host_index'] = kwargs.get('_host_index')
+ kwargs['user'] = \
+ user
+ return self.post_user_endpoint.call_with_http_info(**kwargs)
+
diff --git a/airflow_client/client/api/variable_api.py b/airflow_client/client/api/variable_api.py
index 3538851..9139695 100644
--- a/airflow_client/client/api/variable_api.py
+++ b/airflow_client/client/api/variable_api.py
@@ -18,7 +18,7 @@
"""
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 th [...]
+ # 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 th [...]
The version of the OpenAPI document: 1.0.0
Contact: dev@airflow.apache.org
@@ -55,73 +55,7 @@ class VariableApi(object):
if api_client is None:
api_client = ApiClient()
self.api_client = api_client
-
- def __delete_variable(
- self,
- variable_key,
- **kwargs
- ):
- """Delete a variable # noqa: E501
-
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
-
- >>> thread = api.delete_variable(variable_key, async_req=True)
- >>> result = thread.get()
-
- Args:
- variable_key (str): The variable Key.
-
- Keyword Args:
- _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
- will be returned without reading/decoding response data.
- Default is True.
- _request_timeout (float/tuple): timeout setting for this request. If one
- number provided, it will be total request timeout. It can also
- be a pair (tuple) of (connection, read) timeouts.
- Default is None.
- _check_input_type (bool): specifies if type checking
- should be done one the data sent to the server.
- Default is True.
- _check_return_type (bool): specifies if type checking
- should be done one the data received from the server.
- Default is True.
- _host_index (int/None): specifies the index of the server
- that we want to use.
- Default is read from the configuration.
- async_req (bool): execute request asynchronously
-
- Returns:
- None
- If the method is called asynchronously, returns the request
- thread.
- """
- kwargs['async_req'] = kwargs.get(
- 'async_req', False
- )
- kwargs['_return_http_data_only'] = kwargs.get(
- '_return_http_data_only', True
- )
- kwargs['_preload_content'] = kwargs.get(
- '_preload_content', True
- )
- kwargs['_request_timeout'] = kwargs.get(
- '_request_timeout', None
- )
- kwargs['_check_input_type'] = kwargs.get(
- '_check_input_type', True
- )
- kwargs['_check_return_type'] = kwargs.get(
- '_check_return_type', True
- )
- kwargs['_host_index'] = kwargs.get('_host_index')
- kwargs['variable_key'] = \
- variable_key
- return self.call_with_http_info(**kwargs)
-
- self.delete_variable = _Endpoint(
+ self.delete_variable_endpoint = _Endpoint(
settings={
'response_type': None,
'auth': [
@@ -171,77 +105,9 @@ class VariableApi(object):
],
'content_type': [],
},
- api_client=api_client,
- callable=__delete_variable
- )
-
- def __get_variable(
- self,
- variable_key,
- **kwargs
- ):
- """Get a variable # noqa: E501
-
- Get a variable by key. # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
-
- >>> thread = api.get_variable(variable_key, async_req=True)
- >>> result = thread.get()
-
- Args:
- variable_key (str): The variable Key.
-
- Keyword Args:
- _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
- will be returned without reading/decoding response data.
- Default is True.
- _request_timeout (float/tuple): timeout setting for this request. If one
- number provided, it will be total request timeout. It can also
- be a pair (tuple) of (connection, read) timeouts.
- Default is None.
- _check_input_type (bool): specifies if type checking
- should be done one the data sent to the server.
- Default is True.
- _check_return_type (bool): specifies if type checking
- should be done one the data received from the server.
- Default is True.
- _host_index (int/None): specifies the index of the server
- that we want to use.
- Default is read from the configuration.
- async_req (bool): execute request asynchronously
-
- Returns:
- Variable
- If the method is called asynchronously, returns the request
- thread.
- """
- kwargs['async_req'] = kwargs.get(
- 'async_req', False
- )
- kwargs['_return_http_data_only'] = kwargs.get(
- '_return_http_data_only', True
- )
- kwargs['_preload_content'] = kwargs.get(
- '_preload_content', True
- )
- kwargs['_request_timeout'] = kwargs.get(
- '_request_timeout', None
- )
- kwargs['_check_input_type'] = kwargs.get(
- '_check_input_type', True
- )
- kwargs['_check_return_type'] = kwargs.get(
- '_check_return_type', True
- )
- kwargs['_host_index'] = kwargs.get('_host_index')
- kwargs['variable_key'] = \
- variable_key
- return self.call_with_http_info(**kwargs)
-
- self.get_variable = _Endpoint(
+ api_client=api_client
+ )
+ self.get_variable_endpoint = _Endpoint(
settings={
'response_type': (Variable,),
'auth': [
@@ -291,75 +157,9 @@ class VariableApi(object):
],
'content_type': [],
},
- api_client=api_client,
- callable=__get_variable
- )
-
- def __get_variables(
- self,
- **kwargs
- ):
- """List variables # noqa: E501
-
- The collection does not contain data. To get data, you must get a single entity. # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
-
- >>> thread = api.get_variables(async_req=True)
- >>> result = thread.get()
-
-
- 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]
- _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
- will be returned without reading/decoding response data.
- Default is True.
- _request_timeout (float/tuple): timeout setting for this request. If one
- number provided, it will be total request timeout. It can also
- be a pair (tuple) of (connection, read) timeouts.
- Default is None.
- _check_input_type (bool): specifies if type checking
- should be done one the data sent to the server.
- Default is True.
- _check_return_type (bool): specifies if type checking
- should be done one the data received from the server.
- Default is True.
- _host_index (int/None): specifies the index of the server
- that we want to use.
- Default is read from the configuration.
- async_req (bool): execute request asynchronously
-
- Returns:
- VariableCollection
- If the method is called asynchronously, returns the request
- thread.
- """
- kwargs['async_req'] = kwargs.get(
- 'async_req', False
- )
- kwargs['_return_http_data_only'] = kwargs.get(
- '_return_http_data_only', True
- )
- kwargs['_preload_content'] = kwargs.get(
- '_preload_content', True
- )
- kwargs['_request_timeout'] = kwargs.get(
- '_request_timeout', None
- )
- kwargs['_check_input_type'] = kwargs.get(
- '_check_input_type', True
- )
- kwargs['_check_return_type'] = kwargs.get(
- '_check_return_type', True
- )
- kwargs['_host_index'] = kwargs.get('_host_index')
- return self.call_with_http_info(**kwargs)
-
- self.get_variables = _Endpoint(
+ api_client=api_client
+ )
+ self.get_variables_endpoint = _Endpoint(
settings={
'response_type': (VariableCollection,),
'auth': [
@@ -422,82 +222,9 @@ class VariableApi(object):
],
'content_type': [],
},
- api_client=api_client,
- callable=__get_variables
- )
-
- def __patch_variable(
- self,
- variable_key,
- variable,
- **kwargs
- ):
- """Update a variable # noqa: E501
-
- Update a variable by key. # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
-
- >>> thread = api.patch_variable(variable_key, variable, async_req=True)
- >>> result = thread.get()
-
- Args:
- variable_key (str): The variable Key.
- variable (Variable):
-
- Keyword Args:
- 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]
- _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
- will be returned without reading/decoding response data.
- Default is True.
- _request_timeout (float/tuple): timeout setting for this request. If one
- number provided, it will be total request timeout. It can also
- be a pair (tuple) of (connection, read) timeouts.
- Default is None.
- _check_input_type (bool): specifies if type checking
- should be done one the data sent to the server.
- Default is True.
- _check_return_type (bool): specifies if type checking
- should be done one the data received from the server.
- Default is True.
- _host_index (int/None): specifies the index of the server
- that we want to use.
- Default is read from the configuration.
- async_req (bool): execute request asynchronously
-
- Returns:
- Variable
- If the method is called asynchronously, returns the request
- thread.
- """
- kwargs['async_req'] = kwargs.get(
- 'async_req', False
- )
- kwargs['_return_http_data_only'] = kwargs.get(
- '_return_http_data_only', True
- )
- kwargs['_preload_content'] = kwargs.get(
- '_preload_content', True
- )
- kwargs['_request_timeout'] = kwargs.get(
- '_request_timeout', None
- )
- kwargs['_check_input_type'] = kwargs.get(
- '_check_input_type', True
- )
- kwargs['_check_return_type'] = kwargs.get(
- '_check_return_type', True
- )
- kwargs['_host_index'] = kwargs.get('_host_index')
- kwargs['variable_key'] = \
- variable_key
- kwargs['variable'] = \
- variable
- return self.call_with_http_info(**kwargs)
-
- self.patch_variable = _Endpoint(
+ api_client=api_client
+ )
+ self.patch_variable_endpoint = _Endpoint(
settings={
'response_type': (Variable,),
'auth': [
@@ -560,76 +287,9 @@ class VariableApi(object):
'application/json'
]
},
- api_client=api_client,
- callable=__patch_variable
- )
-
- def __post_variables(
- self,
- variable,
- **kwargs
- ):
- """Create a variable # noqa: E501
-
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
-
- >>> thread = api.post_variables(variable, async_req=True)
- >>> result = thread.get()
-
- Args:
- variable (Variable):
-
- Keyword Args:
- _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
- will be returned without reading/decoding response data.
- Default is True.
- _request_timeout (float/tuple): timeout setting for this request. If one
- number provided, it will be total request timeout. It can also
- be a pair (tuple) of (connection, read) timeouts.
- Default is None.
- _check_input_type (bool): specifies if type checking
- should be done one the data sent to the server.
- Default is True.
- _check_return_type (bool): specifies if type checking
- should be done one the data received from the server.
- Default is True.
- _host_index (int/None): specifies the index of the server
- that we want to use.
- Default is read from the configuration.
- async_req (bool): execute request asynchronously
-
- Returns:
- Variable
- If the method is called asynchronously, returns the request
- thread.
- """
- kwargs['async_req'] = kwargs.get(
- 'async_req', False
- )
- kwargs['_return_http_data_only'] = kwargs.get(
- '_return_http_data_only', True
- )
- kwargs['_preload_content'] = kwargs.get(
- '_preload_content', True
- )
- kwargs['_request_timeout'] = kwargs.get(
- '_request_timeout', None
- )
- kwargs['_check_input_type'] = kwargs.get(
- '_check_input_type', True
- )
- kwargs['_check_return_type'] = kwargs.get(
- '_check_return_type', True
- )
- kwargs['_host_index'] = kwargs.get('_host_index')
- kwargs['variable'] = \
- variable
- return self.call_with_http_info(**kwargs)
-
- self.post_variables = _Endpoint(
+ api_client=api_client
+ )
+ self.post_variables_endpoint = _Endpoint(
settings={
'response_type': (Variable,),
'auth': [
@@ -680,6 +340,337 @@ class VariableApi(object):
'application/json'
]
},
- api_client=api_client,
- callable=__post_variables
+ api_client=api_client
+ )
+
+ def delete_variable(
+ self,
+ variable_key,
+ **kwargs
+ ):
+ """Delete a variable # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+
+ >>> thread = api.delete_variable(variable_key, async_req=True)
+ >>> result = thread.get()
+
+ Args:
+ variable_key (str): The variable Key.
+
+ Keyword Args:
+ _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
+ will be returned without reading/decoding response data.
+ Default is True.
+ _request_timeout (int/float/tuple): timeout setting for this request. If
+ one number provided, it will be total request timeout. It can also
+ be a pair (tuple) of (connection, read) timeouts.
+ Default is None.
+ _check_input_type (bool): specifies if type checking
+ should be done one the data sent to the server.
+ Default is True.
+ _check_return_type (bool): specifies if type checking
+ should be done one the data received from the server.
+ Default is True.
+ _host_index (int/None): specifies the index of the server
+ that we want to use.
+ Default is read from the configuration.
+ async_req (bool): execute request asynchronously
+
+ Returns:
+ None
+ If the method is called asynchronously, returns the request
+ thread.
+ """
+ kwargs['async_req'] = kwargs.get(
+ 'async_req', False
+ )
+ kwargs['_return_http_data_only'] = kwargs.get(
+ '_return_http_data_only', True
+ )
+ kwargs['_preload_content'] = kwargs.get(
+ '_preload_content', True
+ )
+ kwargs['_request_timeout'] = kwargs.get(
+ '_request_timeout', None
+ )
+ kwargs['_check_input_type'] = kwargs.get(
+ '_check_input_type', True
+ )
+ kwargs['_check_return_type'] = kwargs.get(
+ '_check_return_type', True
+ )
+ kwargs['_host_index'] = kwargs.get('_host_index')
+ kwargs['variable_key'] = \
+ variable_key
+ return self.delete_variable_endpoint.call_with_http_info(**kwargs)
+
+ def get_variable(
+ self,
+ variable_key,
+ **kwargs
+ ):
+ """Get a variable # noqa: E501
+
+ Get a variable by key. # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+
+ >>> thread = api.get_variable(variable_key, async_req=True)
+ >>> result = thread.get()
+
+ Args:
+ variable_key (str): The variable Key.
+
+ Keyword Args:
+ _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
+ will be returned without reading/decoding response data.
+ Default is True.
+ _request_timeout (int/float/tuple): timeout setting for this request. If
+ one number provided, it will be total request timeout. It can also
+ be a pair (tuple) of (connection, read) timeouts.
+ Default is None.
+ _check_input_type (bool): specifies if type checking
+ should be done one the data sent to the server.
+ Default is True.
+ _check_return_type (bool): specifies if type checking
+ should be done one the data received from the server.
+ Default is True.
+ _host_index (int/None): specifies the index of the server
+ that we want to use.
+ Default is read from the configuration.
+ async_req (bool): execute request asynchronously
+
+ Returns:
+ Variable
+ If the method is called asynchronously, returns the request
+ thread.
+ """
+ kwargs['async_req'] = kwargs.get(
+ 'async_req', False
+ )
+ kwargs['_return_http_data_only'] = kwargs.get(
+ '_return_http_data_only', True
+ )
+ kwargs['_preload_content'] = kwargs.get(
+ '_preload_content', True
+ )
+ kwargs['_request_timeout'] = kwargs.get(
+ '_request_timeout', None
+ )
+ kwargs['_check_input_type'] = kwargs.get(
+ '_check_input_type', True
+ )
+ kwargs['_check_return_type'] = kwargs.get(
+ '_check_return_type', True
+ )
+ kwargs['_host_index'] = kwargs.get('_host_index')
+ kwargs['variable_key'] = \
+ variable_key
+ return self.get_variable_endpoint.call_with_http_info(**kwargs)
+
+ def get_variables(
+ self,
+ **kwargs
+ ):
+ """List variables # noqa: E501
+
+ The collection does not contain data. To get data, you must get a single entity. # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+
+ >>> thread = api.get_variables(async_req=True)
+ >>> result = thread.get()
+
+
+ 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]
+ _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
+ will be returned without reading/decoding response data.
+ Default is True.
+ _request_timeout (int/float/tuple): timeout setting for this request. If
+ one number provided, it will be total request timeout. It can also
+ be a pair (tuple) of (connection, read) timeouts.
+ Default is None.
+ _check_input_type (bool): specifies if type checking
+ should be done one the data sent to the server.
+ Default is True.
+ _check_return_type (bool): specifies if type checking
+ should be done one the data received from the server.
+ Default is True.
+ _host_index (int/None): specifies the index of the server
+ that we want to use.
+ Default is read from the configuration.
+ async_req (bool): execute request asynchronously
+
+ Returns:
+ VariableCollection
+ If the method is called asynchronously, returns the request
+ thread.
+ """
+ kwargs['async_req'] = kwargs.get(
+ 'async_req', False
)
+ kwargs['_return_http_data_only'] = kwargs.get(
+ '_return_http_data_only', True
+ )
+ kwargs['_preload_content'] = kwargs.get(
+ '_preload_content', True
+ )
+ kwargs['_request_timeout'] = kwargs.get(
+ '_request_timeout', None
+ )
+ kwargs['_check_input_type'] = kwargs.get(
+ '_check_input_type', True
+ )
+ kwargs['_check_return_type'] = kwargs.get(
+ '_check_return_type', True
+ )
+ kwargs['_host_index'] = kwargs.get('_host_index')
+ return self.get_variables_endpoint.call_with_http_info(**kwargs)
+
+ def patch_variable(
+ self,
+ variable_key,
+ variable,
+ **kwargs
+ ):
+ """Update a variable # noqa: E501
+
+ Update a variable by key. # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+
+ >>> thread = api.patch_variable(variable_key, variable, async_req=True)
+ >>> result = thread.get()
+
+ Args:
+ variable_key (str): The variable Key.
+ variable (Variable):
+
+ Keyword Args:
+ 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]
+ _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
+ will be returned without reading/decoding response data.
+ Default is True.
+ _request_timeout (int/float/tuple): timeout setting for this request. If
+ one number provided, it will be total request timeout. It can also
+ be a pair (tuple) of (connection, read) timeouts.
+ Default is None.
+ _check_input_type (bool): specifies if type checking
+ should be done one the data sent to the server.
+ Default is True.
+ _check_return_type (bool): specifies if type checking
+ should be done one the data received from the server.
+ Default is True.
+ _host_index (int/None): specifies the index of the server
+ that we want to use.
+ Default is read from the configuration.
+ async_req (bool): execute request asynchronously
+
+ Returns:
+ Variable
+ If the method is called asynchronously, returns the request
+ thread.
+ """
+ kwargs['async_req'] = kwargs.get(
+ 'async_req', False
+ )
+ kwargs['_return_http_data_only'] = kwargs.get(
+ '_return_http_data_only', True
+ )
+ kwargs['_preload_content'] = kwargs.get(
+ '_preload_content', True
+ )
+ kwargs['_request_timeout'] = kwargs.get(
+ '_request_timeout', None
+ )
+ kwargs['_check_input_type'] = kwargs.get(
+ '_check_input_type', True
+ )
+ kwargs['_check_return_type'] = kwargs.get(
+ '_check_return_type', True
+ )
+ kwargs['_host_index'] = kwargs.get('_host_index')
+ kwargs['variable_key'] = \
+ variable_key
+ kwargs['variable'] = \
+ variable
+ return self.patch_variable_endpoint.call_with_http_info(**kwargs)
+
+ def post_variables(
+ self,
+ variable,
+ **kwargs
+ ):
+ """Create a variable # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+
+ >>> thread = api.post_variables(variable, async_req=True)
+ >>> result = thread.get()
+
+ Args:
+ variable (Variable):
+
+ Keyword Args:
+ _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
+ will be returned without reading/decoding response data.
+ Default is True.
+ _request_timeout (int/float/tuple): timeout setting for this request. If
+ one number provided, it will be total request timeout. It can also
+ be a pair (tuple) of (connection, read) timeouts.
+ Default is None.
+ _check_input_type (bool): specifies if type checking
+ should be done one the data sent to the server.
+ Default is True.
+ _check_return_type (bool): specifies if type checking
+ should be done one the data received from the server.
+ Default is True.
+ _host_index (int/None): specifies the index of the server
+ that we want to use.
+ Default is read from the configuration.
+ async_req (bool): execute request asynchronously
+
+ Returns:
+ Variable
+ If the method is called asynchronously, returns the request
+ thread.
+ """
+ kwargs['async_req'] = kwargs.get(
+ 'async_req', False
+ )
+ kwargs['_return_http_data_only'] = kwargs.get(
+ '_return_http_data_only', True
+ )
+ kwargs['_preload_content'] = kwargs.get(
+ '_preload_content', True
+ )
+ kwargs['_request_timeout'] = kwargs.get(
+ '_request_timeout', None
+ )
+ kwargs['_check_input_type'] = kwargs.get(
+ '_check_input_type', True
+ )
+ kwargs['_check_return_type'] = kwargs.get(
+ '_check_return_type', True
+ )
+ kwargs['_host_index'] = kwargs.get('_host_index')
+ kwargs['variable'] = \
+ variable
+ return self.post_variables_endpoint.call_with_http_info(**kwargs)
+
diff --git a/airflow_client/client/api/x_com_api.py b/airflow_client/client/api/x_com_api.py
index 60f0332..2246254 100644
--- a/airflow_client/client/api/x_com_api.py
+++ b/airflow_client/client/api/x_com_api.py
@@ -18,7 +18,7 @@
"""
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 th [...]
+ # 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 th [...]
The version of the OpenAPI document: 1.0.0
Contact: dev@airflow.apache.org
@@ -55,84 +55,7 @@ class XComApi(object):
if api_client is None:
api_client = ApiClient()
self.api_client = api_client
-
- def __get_xcom_entries(
- self,
- dag_id,
- dag_run_id,
- task_id,
- **kwargs
- ):
- """List XCom entries # noqa: E501
-
- This endpoint allows specifying `~` as the dag_id, dag_run_id, task_id to retrieve XCOM entries for for all DAGs, DAG runs and task instances. XCom values won't be returned as they can be large. Use this endpoint to get a list of XCom entries and then fetch individual entry to get value. # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
-
- >>> thread = api.get_xcom_entries(dag_id, dag_run_id, task_id, async_req=True)
- >>> result = thread.get()
-
- Args:
- dag_id (str): The DAG ID.
- dag_run_id (str): The DAG run ID.
- task_id (str): The task ID.
-
- 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]
- _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
- will be returned without reading/decoding response data.
- Default is True.
- _request_timeout (float/tuple): timeout setting for this request. If one
- number provided, it will be total request timeout. It can also
- be a pair (tuple) of (connection, read) timeouts.
- Default is None.
- _check_input_type (bool): specifies if type checking
- should be done one the data sent to the server.
- Default is True.
- _check_return_type (bool): specifies if type checking
- should be done one the data received from the server.
- Default is True.
- _host_index (int/None): specifies the index of the server
- that we want to use.
- Default is read from the configuration.
- async_req (bool): execute request asynchronously
-
- Returns:
- XComCollection
- If the method is called asynchronously, returns the request
- thread.
- """
- kwargs['async_req'] = kwargs.get(
- 'async_req', False
- )
- kwargs['_return_http_data_only'] = kwargs.get(
- '_return_http_data_only', True
- )
- kwargs['_preload_content'] = kwargs.get(
- '_preload_content', True
- )
- kwargs['_request_timeout'] = kwargs.get(
- '_request_timeout', None
- )
- kwargs['_check_input_type'] = kwargs.get(
- '_check_input_type', True
- )
- kwargs['_check_return_type'] = kwargs.get(
- '_check_return_type', True
- )
- kwargs['_host_index'] = kwargs.get('_host_index')
- kwargs['dag_id'] = \
- dag_id
- kwargs['dag_run_id'] = \
- dag_run_id
- kwargs['task_id'] = \
- task_id
- return self.call_with_http_info(**kwargs)
-
- self.get_xcom_entries = _Endpoint(
+ self.get_xcom_entries_endpoint = _Endpoint(
settings={
'response_type': (XComCollection,),
'auth': [
@@ -209,88 +132,9 @@ class XComApi(object):
],
'content_type': [],
},
- api_client=api_client,
- callable=__get_xcom_entries
+ api_client=api_client
)
-
- def __get_xcom_entry(
- self,
- dag_id,
- dag_run_id,
- task_id,
- xcom_key,
- **kwargs
- ):
- """Get an XCom entry # noqa: E501
-
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
-
- >>> thread = api.get_xcom_entry(dag_id, dag_run_id, task_id, xcom_key, async_req=True)
- >>> result = thread.get()
-
- Args:
- dag_id (str): The DAG ID.
- dag_run_id (str): The DAG run ID.
- task_id (str): The task ID.
- xcom_key (str): The XCom key.
-
- Keyword Args:
- _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
- will be returned without reading/decoding response data.
- Default is True.
- _request_timeout (float/tuple): timeout setting for this request. If one
- number provided, it will be total request timeout. It can also
- be a pair (tuple) of (connection, read) timeouts.
- Default is None.
- _check_input_type (bool): specifies if type checking
- should be done one the data sent to the server.
- Default is True.
- _check_return_type (bool): specifies if type checking
- should be done one the data received from the server.
- Default is True.
- _host_index (int/None): specifies the index of the server
- that we want to use.
- Default is read from the configuration.
- async_req (bool): execute request asynchronously
-
- Returns:
- XCom
- If the method is called asynchronously, returns the request
- thread.
- """
- kwargs['async_req'] = kwargs.get(
- 'async_req', False
- )
- kwargs['_return_http_data_only'] = kwargs.get(
- '_return_http_data_only', True
- )
- kwargs['_preload_content'] = kwargs.get(
- '_preload_content', True
- )
- kwargs['_request_timeout'] = kwargs.get(
- '_request_timeout', None
- )
- kwargs['_check_input_type'] = kwargs.get(
- '_check_input_type', True
- )
- kwargs['_check_return_type'] = kwargs.get(
- '_check_return_type', True
- )
- kwargs['_host_index'] = kwargs.get('_host_index')
- kwargs['dag_id'] = \
- dag_id
- kwargs['dag_run_id'] = \
- dag_run_id
- kwargs['task_id'] = \
- task_id
- kwargs['xcom_key'] = \
- xcom_key
- return self.call_with_http_info(**kwargs)
-
- self.get_xcom_entry = _Endpoint(
+ self.get_xcom_entry_endpoint = _Endpoint(
settings={
'response_type': (XCom,),
'auth': [
@@ -358,6 +202,159 @@ class XComApi(object):
],
'content_type': [],
},
- api_client=api_client,
- callable=__get_xcom_entry
+ api_client=api_client
)
+
+ def get_xcom_entries(
+ self,
+ dag_id,
+ dag_run_id,
+ task_id,
+ **kwargs
+ ):
+ """List XCom entries # noqa: E501
+
+ This endpoint allows specifying `~` as the dag_id, dag_run_id, task_id to retrieve XCOM entries for for all DAGs, DAG runs and task instances. XCom values won't be returned as they can be large. Use this endpoint to get a list of XCom entries and then fetch individual entry to get value. # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+
+ >>> thread = api.get_xcom_entries(dag_id, dag_run_id, task_id, async_req=True)
+ >>> result = thread.get()
+
+ Args:
+ dag_id (str): The DAG ID.
+ dag_run_id (str): The DAG run ID.
+ task_id (str): The task ID.
+
+ 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]
+ _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
+ will be returned without reading/decoding response data.
+ Default is True.
+ _request_timeout (int/float/tuple): timeout setting for this request. If
+ one number provided, it will be total request timeout. It can also
+ be a pair (tuple) of (connection, read) timeouts.
+ Default is None.
+ _check_input_type (bool): specifies if type checking
+ should be done one the data sent to the server.
+ Default is True.
+ _check_return_type (bool): specifies if type checking
+ should be done one the data received from the server.
+ Default is True.
+ _host_index (int/None): specifies the index of the server
+ that we want to use.
+ Default is read from the configuration.
+ async_req (bool): execute request asynchronously
+
+ Returns:
+ XComCollection
+ If the method is called asynchronously, returns the request
+ thread.
+ """
+ kwargs['async_req'] = kwargs.get(
+ 'async_req', False
+ )
+ kwargs['_return_http_data_only'] = kwargs.get(
+ '_return_http_data_only', True
+ )
+ kwargs['_preload_content'] = kwargs.get(
+ '_preload_content', True
+ )
+ kwargs['_request_timeout'] = kwargs.get(
+ '_request_timeout', None
+ )
+ kwargs['_check_input_type'] = kwargs.get(
+ '_check_input_type', True
+ )
+ kwargs['_check_return_type'] = kwargs.get(
+ '_check_return_type', True
+ )
+ kwargs['_host_index'] = kwargs.get('_host_index')
+ kwargs['dag_id'] = \
+ dag_id
+ kwargs['dag_run_id'] = \
+ dag_run_id
+ kwargs['task_id'] = \
+ task_id
+ return self.get_xcom_entries_endpoint.call_with_http_info(**kwargs)
+
+ def get_xcom_entry(
+ self,
+ dag_id,
+ dag_run_id,
+ task_id,
+ xcom_key,
+ **kwargs
+ ):
+ """Get an XCom entry # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+
+ >>> thread = api.get_xcom_entry(dag_id, dag_run_id, task_id, xcom_key, async_req=True)
+ >>> result = thread.get()
+
+ Args:
+ dag_id (str): The DAG ID.
+ dag_run_id (str): The DAG run ID.
+ task_id (str): The task ID.
+ xcom_key (str): The XCom key.
+
+ Keyword Args:
+ _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
+ will be returned without reading/decoding response data.
+ Default is True.
+ _request_timeout (int/float/tuple): timeout setting for this request. If
+ one number provided, it will be total request timeout. It can also
+ be a pair (tuple) of (connection, read) timeouts.
+ Default is None.
+ _check_input_type (bool): specifies if type checking
+ should be done one the data sent to the server.
+ Default is True.
+ _check_return_type (bool): specifies if type checking
+ should be done one the data received from the server.
+ Default is True.
+ _host_index (int/None): specifies the index of the server
+ that we want to use.
+ Default is read from the configuration.
+ async_req (bool): execute request asynchronously
+
+ Returns:
+ XCom
+ If the method is called asynchronously, returns the request
+ thread.
+ """
+ kwargs['async_req'] = kwargs.get(
+ 'async_req', False
+ )
+ kwargs['_return_http_data_only'] = kwargs.get(
+ '_return_http_data_only', True
+ )
+ kwargs['_preload_content'] = kwargs.get(
+ '_preload_content', True
+ )
+ kwargs['_request_timeout'] = kwargs.get(
+ '_request_timeout', None
+ )
+ kwargs['_check_input_type'] = kwargs.get(
+ '_check_input_type', True
+ )
+ kwargs['_check_return_type'] = kwargs.get(
+ '_check_return_type', True
+ )
+ kwargs['_host_index'] = kwargs.get('_host_index')
+ kwargs['dag_id'] = \
+ dag_id
+ kwargs['dag_run_id'] = \
+ dag_run_id
+ kwargs['task_id'] = \
+ task_id
+ kwargs['xcom_key'] = \
+ xcom_key
+ return self.get_xcom_entry_endpoint.call_with_http_info(**kwargs)
+
diff --git a/airflow_client/client/api_client.py b/airflow_client/client/api_client.py
index c190f07..5faeeec 100644
--- a/airflow_client/client/api_client.py
+++ b/airflow_client/client/api_client.py
@@ -18,7 +18,7 @@
"""
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 th [...]
+ # 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 th [...]
The version of the OpenAPI document: 1.0.0
Contact: dev@airflow.apache.org
@@ -94,7 +94,7 @@ class ApiClient(object):
self.default_headers[header_name] = header_value
self.cookie = cookie
# Set default User-Agent.
- self.user_agent = 'OpenAPI-Generator/2.1.0/python'
+ self.user_agent = 'OpenAPI-Generator/2.2.0/python'
def __enter__(self):
return self
@@ -147,7 +147,7 @@ class ApiClient(object):
_return_http_data_only: typing.Optional[bool] = None,
collection_formats: typing.Optional[typing.Dict[str, str]] = None,
_preload_content: bool = True,
- _request_timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ _request_timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None,
_host: typing.Optional[str] = None,
_check_type: typing.Optional[bool] = None
):
@@ -365,7 +365,7 @@ class ApiClient(object):
_return_http_data_only: typing.Optional[bool] = None,
collection_formats: typing.Optional[typing.Dict[str, str]] = None,
_preload_content: bool = True,
- _request_timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ _request_timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None,
_host: typing.Optional[str] = None,
_check_type: typing.Optional[bool] = None
):
@@ -606,12 +606,12 @@ class ApiClient(object):
else:
return content_types[0]
- def update_params_for_auth(self, headers, querys, auth_settings,
+ def update_params_for_auth(self, headers, queries, auth_settings,
resource_path, method, body):
"""Updates header and query params based on authentication setting.
:param headers: Header parameters dict to be updated.
- :param querys: Query parameters tuple list to be updated.
+ :param queries: Query parameters tuple list to be updated.
:param auth_settings: Authentication setting identifiers list.
:param resource_path: A string representation of the HTTP request resource path.
:param method: A string representation of the HTTP request method.
@@ -630,7 +630,7 @@ class ApiClient(object):
if auth_setting['type'] != 'http-signature':
headers[auth_setting['key']] = auth_setting['value']
elif auth_setting['in'] == 'query':
- querys.append((auth_setting['key'], auth_setting['value']))
+ queries.append((auth_setting['key'], auth_setting['value']))
else:
raise ApiValueError(
'Authentication token must be in `query` or `header`'
@@ -692,7 +692,7 @@ class Endpoint(object):
'async_req': (bool,),
'_host_index': (none_type, int),
'_preload_content': (bool,),
- '_request_timeout': (none_type, int, (int,), [int]),
+ '_request_timeout': (none_type, float, (float,), [float], int, (int,), [int]),
'_return_http_data_only': (bool,),
'_check_input_type': (bool,),
'_check_return_type': (bool,)
@@ -844,9 +844,10 @@ class Endpoint(object):
content_type_headers_list = self.headers_map['content_type']
if content_type_headers_list:
- header_list = self.api_client.select_header_content_type(
- content_type_headers_list)
- params['header']['Content-Type'] = header_list
+ if params['body'] != "":
+ header_list = self.api_client.select_header_content_type(
+ content_type_headers_list)
+ params['header']['Content-Type'] = header_list
return self.api_client.call_api(
self.settings['endpoint_path'], self.settings['http_method'],
diff --git a/airflow_client/client/configuration.py b/airflow_client/client/configuration.py
index 1017ca1..9c0b70b 100644
--- a/airflow_client/client/configuration.py
+++ b/airflow_client/client/configuration.py
@@ -18,7 +18,7 @@
"""
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 th [...]
+ # 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 th [...]
The version of the OpenAPI document: 1.0.0
Contact: dev@airflow.apache.org
@@ -91,7 +91,7 @@ class Configuration(object):
:param server_operation_variables: Mapping from operation ID to a mapping with
string values to replace variables in templated server configuration.
The validation of enums is performed for variables with defined enum values before.
- :param ssl_ca_cert: str - the path to a file of concatenated CA certificates
+ :param ssl_ca_cert: str - the path to a file of concatenated CA certificates
in PEM format
:Example:
@@ -419,7 +419,7 @@ conf = client.Configuration(
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
"Version of the API: 1.0.0\n"\
- "SDK Package Version: 2.1.0".\
+ "SDK Package Version: 2.2.0".\
format(env=sys.platform, pyversion=sys.version)
def get_host_settings(self):
diff --git a/airflow_client/client/exceptions.py b/airflow_client/client/exceptions.py
index e9726cf..6a83fa1 100644
--- a/airflow_client/client/exceptions.py
+++ b/airflow_client/client/exceptions.py
@@ -18,7 +18,7 @@
"""
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 th [...]
+ # 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 th [...]
The version of the OpenAPI document: 1.0.0
Contact: dev@airflow.apache.org
diff --git a/airflow_client/client/model/action.py b/airflow_client/client/model/action.py
index b97a5a6..33a03f2 100644
--- a/airflow_client/client/model/action.py
+++ b/airflow_client/client/model/action.py
@@ -18,7 +18,7 @@
"""
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 th [...]
+ # 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 th [...]
The version of the OpenAPI document: 1.0.0
Contact: dev@airflow.apache.org
@@ -43,6 +43,9 @@ from airflow_client.client.model_utils import ( # noqa: F401
none_type,
validate_get_composed_info,
)
+from ..model_utils import OpenApiModel
+from airflow_client.client.exceptions import ApiAttributeError
+
class Action(ModelNormal):
@@ -75,7 +78,13 @@ class Action(ModelNormal):
validations = {
}
- additional_properties_type = None
+ @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
+ """
+ return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
_nullable = False
@@ -102,8 +111,85 @@ class Action(ModelNormal):
'name': 'name', # noqa: E501
}
+ read_only_vars = {
+ }
+
_composed_schemas = {}
+ @classmethod
+ @convert_js_args_to_python_args
+ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
+ """Action - 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,)
+ name (str): The name of the permission \"action\". [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__,)
+
+ for var_name, var_value in kwargs.items():
+ if var_name not in self.attribute_map and \
+ self._configuration is not None and \
+ self._configuration.discard_unknown_keys and \
+ self.additional_properties_type is None:
+ # discard variable.
+ continue
+ setattr(self, var_name, var_value)
+ return self
+
required_properties = set([
'_data_store',
'_check_type',
@@ -182,3 +268,6 @@ class Action(ModelNormal):
# 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.")
diff --git a/airflow_client/client/model/action_collection.py b/airflow_client/client/model/action_collection.py
index c9ff228..c06f99f 100644
--- a/airflow_client/client/model/action_collection.py
+++ b/airflow_client/client/model/action_collection.py
@@ -18,7 +18,7 @@
"""
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 th [...]
+ # 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 th [...]
The version of the OpenAPI document: 1.0.0
Contact: dev@airflow.apache.org
@@ -43,6 +43,9 @@ from airflow_client.client.model_utils import ( # noqa: F401
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.action import Action
@@ -120,6 +123,99 @@ class ActionCollection(ModelComposed):
'total_entries': 'total_entries', # noqa: E501
}
+ read_only_vars = {
+ }
+
+ @classmethod
+ @convert_js_args_to_python_args
+ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
+ """ActionCollection - 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,)
+ actions ([Action]): [optional] # noqa: E501
+ total_entries (int): Count of objects in the current result set.. [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',
@@ -201,35 +297,31 @@ class ActionCollection(ModelComposed):
'_configuration': _configuration,
'_visited_composed_classes': self._visited_composed_classes,
}
- required_args = {
- }
- model_args = {}
- model_args.update(required_args)
- model_args.update(kwargs)
composed_info = validate_get_composed_info(
- constant_args, model_args, self)
+ 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]
- unused_args = composed_info[3]
+ discarded_args = composed_info[3]
- for var_name, var_value in required_args.items():
- setattr(self, var_name, var_value)
for var_name, var_value in kwargs.items():
- if var_name in unused_args and \
+ if var_name in discarded_args and \
self._configuration is not None and \
self._configuration.discard_unknown_keys and \
- not self._additional_properties_model_instances:
+ 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 beause the class level
+ # 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
diff --git a/airflow_client/client/model/action_collection_all_of.py b/airflow_client/client/model/action_collection_all_of.py
index 87e6360..0d17155 100644
--- a/airflow_client/client/model/action_collection_all_of.py
+++ b/airflow_client/client/model/action_collection_all_of.py
@@ -18,7 +18,7 @@
"""
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 th [...]
+ # 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 th [...]
The version of the OpenAPI document: 1.0.0
Contact: dev@airflow.apache.org
@@ -43,6 +43,9 @@ from airflow_client.client.model_utils import ( # noqa: F401
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.action import Action
@@ -79,7 +82,14 @@ class ActionCollectionAllOf(ModelNormal):
validations = {
}
- additional_properties_type = None
+ @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
@@ -107,8 +117,85 @@ class ActionCollectionAllOf(ModelNormal):
'actions': 'actions', # noqa: E501
}
+ read_only_vars = {
+ }
+
_composed_schemas = {}
+ @classmethod
+ @convert_js_args_to_python_args
+ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
+ """ActionCollectionAllOf - 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,)
+ actions ([Action]): [optional] # noqa: E501
+ """
+
+ _check_type = kwargs.pop('_check_type', True)
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
... 17941 lines suppressed ...