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/04/07 11:12:22 UTC
[airflow-client-python] 01/01: Release 2.0.0
This is an automated email from the ASF dual-hosted git repository.
msumit pushed a commit to branch r2.0
in repository https://gitbox.apache.org/repos/asf/airflow-client-python.git
commit c6a045ada915957dea51a2f05aaadbcfe4f1f4cc
Author: Sumit Maheshwari <su...@astronomer.io>
AuthorDate: Wed Apr 7 16:41:42 2021 +0530
Release 2.0.0
---
airflow_client/.openapi-generator/FILES | 90 -------
airflow_client/README.md | 44 +--
airflow_client/client/__init__.py | 4 +-
airflow_client/client/api/config_api.py | 2 +-
airflow_client/client/api/connection_api.py | 7 +-
airflow_client/client/api/dag_api.py | 7 +-
airflow_client/client/api/dag_run_api.py | 11 +-
airflow_client/client/api/event_log_api.py | 7 +-
airflow_client/client/api/import_error_api.py | 7 +-
airflow_client/client/api/monitoring_api.py | 2 +-
airflow_client/client/api/permission_api.py | 180 -------------
airflow_client/client/api/plugin_api.py | 180 -------------
airflow_client/client/api/pool_api.py | 7 +-
airflow_client/client/api/role_api.py | 300 ---------------------
airflow_client/client/api/task_instance_api.py | 11 +-
airflow_client/client/api/user_api.py | 300 ---------------------
airflow_client/client/api/variable_api.py | 7 +-
airflow_client/client/api/x_com_api.py | 7 +-
airflow_client/client/api_client.py | 4 +-
airflow_client/client/apis/__init__.py | 4 -
airflow_client/client/configuration.py | 4 +-
airflow_client/client/exceptions.py | 2 +-
airflow_client/client/model/action.py | 184 -------------
airflow_client/client/model/action_collection.py | 246 -----------------
.../client/model/action_collection_all_of.py | 189 -------------
airflow_client/client/model/action_resource.py | 194 -------------
airflow_client/client/model/class_reference.py | 2 +-
airflow_client/client/model/clear_task_instance.py | 2 +-
airflow_client/client/model/collection_info.py | 2 +-
airflow_client/client/model/color.py | 2 +-
airflow_client/client/model/config.py | 2 +-
airflow_client/client/model/config_option.py | 2 +-
airflow_client/client/model/config_section.py | 2 +-
airflow_client/client/model/connection.py | 2 +-
airflow_client/client/model/connection_all_of.py | 2 +-
.../client/model/connection_collection.py | 71 +----
.../client/model/connection_collection_all_of.py | 189 -------------
.../client/model/connection_collection_item.py | 2 +-
airflow_client/client/model/cron_expression.py | 2 +-
airflow_client/client/model/dag.py | 4 +-
airflow_client/client/model/dag_collection.py | 71 +----
.../client/model/dag_collection_all_of.py | 189 -------------
airflow_client/client/model/dag_detail.py | 4 +-
airflow_client/client/model/dag_detail_all_of.py | 2 +-
airflow_client/client/model/dag_run.py | 2 +-
airflow_client/client/model/dag_run_collection.py | 71 +----
.../client/model/dag_run_collection_all_of.py | 189 -------------
airflow_client/client/model/dag_state.py | 2 +-
airflow_client/client/model/error.py | 2 +-
airflow_client/client/model/event_log.py | 2 +-
.../client/model/event_log_collection.py | 71 +----
.../client/model/event_log_collection_all_of.py | 189 -------------
airflow_client/client/model/extra_link.py | 2 +-
.../client/model/extra_link_collection.py | 2 +-
airflow_client/client/model/health_info.py | 2 +-
airflow_client/client/model/health_status.py | 2 +-
airflow_client/client/model/import_error.py | 2 +-
.../client/model/import_error_collection.py | 71 +----
.../client/model/import_error_collection_all_of.py | 189 -------------
airflow_client/client/model/inline_response200.py | 2 +-
airflow_client/client/model/inline_response2001.py | 2 +-
airflow_client/client/model/list_dag_runs_form.py | 2 +-
.../client/model/list_task_instance_form.py | 2 +-
airflow_client/client/model/metadatabase_status.py | 2 +-
airflow_client/client/model/plugin_collection.py | 246 -----------------
.../client/model/plugin_collection_all_of.py | 189 -------------
.../client/model/plugin_collection_item.py | 214 ---------------
airflow_client/client/model/pool.py | 2 +-
airflow_client/client/model/pool_collection.py | 71 +----
.../client/model/pool_collection_all_of.py | 189 -------------
airflow_client/client/model/relative_delta.py | 2 +-
airflow_client/client/model/resource.py | 184 -------------
airflow_client/client/model/role.py | 192 -------------
airflow_client/client/model/role_collection.py | 246 -----------------
.../client/model/role_collection_all_of.py | 189 -------------
airflow_client/client/model/schedule_interval.py | 2 +-
airflow_client/client/model/scheduler_status.py | 2 +-
airflow_client/client/model/sla_miss.py | 2 +-
airflow_client/client/model/tag.py | 2 +-
airflow_client/client/model/task.py | 2 +-
airflow_client/client/model/task_collection.py | 2 +-
airflow_client/client/model/task_extra_links.py | 2 +-
airflow_client/client/model/task_instance.py | 2 +-
.../client/model/task_instance_collection.py | 71 +----
.../model/task_instance_collection_all_of.py | 189 -------------
.../client/model/task_instance_reference.py | 2 +-
.../model/task_instance_reference_collection.py | 2 +-
airflow_client/client/model/task_state.py | 7 +-
airflow_client/client/model/time_delta.py | 2 +-
airflow_client/client/model/trigger_rule.py | 2 +-
.../client/model/update_task_instances_state.py | 2 +-
airflow_client/client/model/user.py | 279 -------------------
airflow_client/client/model/user_all_of.py | 184 -------------
airflow_client/client/model/user_collection.py | 246 -----------------
.../client/model/user_collection_all_of.py | 189 -------------
.../client/model/user_collection_item.py | 222 ---------------
.../client/model/user_collection_item_roles.py | 184 -------------
airflow_client/client/model/variable.py | 2 +-
airflow_client/client/model/variable_all_of.py | 2 +-
airflow_client/client/model/variable_collection.py | 71 +----
.../client/model/variable_collection_all_of.py | 189 -------------
.../client/model/variable_collection_item.py | 2 +-
airflow_client/client/model/version_info.py | 2 +-
airflow_client/client/model/weight_rule.py | 2 +-
airflow_client/client/model/x_com.py | 2 +-
airflow_client/client/model/x_com_all_of.py | 2 +-
airflow_client/client/model/x_com_collection.py | 71 +----
.../client/model/x_com_collection_all_of.py | 189 -------------
.../client/model/x_com_collection_item.py | 2 +-
airflow_client/client/model_utils.py | 2 +-
airflow_client/client/models/__init__.py | 26 --
airflow_client/client/rest.py | 2 +-
airflow_client/docs/Action.md | 31 ---
airflow_client/docs/ActionCollection.md | 33 ---
airflow_client/docs/ActionCollectionAllOf.md | 30 ---
airflow_client/docs/ActionResource.md | 32 ---
airflow_client/docs/ConnectionApi.md | 5 +-
airflow_client/docs/ConnectionCollection.md | 4 +-
airflow_client/docs/ConnectionCollectionAllOf.md | 30 ---
airflow_client/docs/DAG.md | 2 +-
airflow_client/docs/DAGApi.md | 5 +-
airflow_client/docs/DAGCollection.md | 4 +-
airflow_client/docs/DAGCollectionAllOf.md | 30 ---
airflow_client/docs/DAGDetail.md | 2 +-
airflow_client/docs/DAGRunApi.md | 10 +-
airflow_client/docs/DAGRunCollection.md | 4 +-
airflow_client/docs/DAGRunCollectionAllOf.md | 30 ---
airflow_client/docs/EventLogApi.md | 5 +-
airflow_client/docs/EventLogCollection.md | 4 +-
airflow_client/docs/EventLogCollectionAllOf.md | 30 ---
airflow_client/docs/ImportErrorApi.md | 5 +-
airflow_client/docs/ImportErrorCollection.md | 3 -
airflow_client/docs/ImportErrorCollectionAllOf.md | 30 ---
airflow_client/docs/PermissionApi.md | 108 --------
airflow_client/docs/PluginApi.md | 109 --------
airflow_client/docs/PluginCollection.md | 33 ---
airflow_client/docs/PluginCollectionAllOf.md | 30 ---
airflow_client/docs/PluginCollectionItem.md | 41 ---
airflow_client/docs/PoolApi.md | 5 +-
airflow_client/docs/PoolCollection.md | 4 +-
airflow_client/docs/PoolCollectionAllOf.md | 30 ---
airflow_client/docs/Resource.md | 31 ---
airflow_client/docs/Role.md | 32 ---
airflow_client/docs/RoleApi.md | 187 -------------
airflow_client/docs/RoleCollection.md | 33 ---
airflow_client/docs/RoleCollectionAllOf.md | 30 ---
airflow_client/docs/TaskInstanceApi.md | 10 +-
airflow_client/docs/TaskInstanceCollection.md | 3 -
airflow_client/docs/TaskInstanceCollectionAllOf.md | 30 ---
airflow_client/docs/TaskState.md | 2 +-
airflow_client/docs/User.md | 44 ---
airflow_client/docs/UserAllOf.md | 30 ---
airflow_client/docs/UserApi.md | 187 -------------
airflow_client/docs/UserCollection.md | 33 ---
airflow_client/docs/UserCollectionAllOf.md | 30 ---
airflow_client/docs/UserCollectionItem.md | 42 ---
airflow_client/docs/UserCollectionItemRoles.md | 30 ---
airflow_client/docs/VariableApi.md | 5 +-
airflow_client/docs/VariableCollection.md | 4 +-
airflow_client/docs/VariableCollectionAllOf.md | 30 ---
airflow_client/docs/XComApi.md | 5 +-
airflow_client/docs/XComCollection.md | 2 -
airflow_client/docs/XComCollectionAllOf.md | 30 ---
airflow_client/test/test_action.py | 53 ----
airflow_client/test/test_action_collection.py | 59 ----
.../test/test_action_collection_all_of.py | 55 ----
airflow_client/test/test_action_resource.py | 57 ----
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 | 2 +-
airflow_client/test/test_connection_collection.py | 6 +-
.../test/test_connection_collection_all_of.py | 55 ----
.../test/test_connection_collection_item.py | 2 +-
airflow_client/test/test_cron_expression.py | 2 +-
airflow_client/test/test_dag.py | 2 +-
airflow_client/test/test_dag_api.py | 2 +-
airflow_client/test/test_dag_collection.py | 6 +-
airflow_client/test/test_dag_collection_all_of.py | 55 ----
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 | 2 +-
airflow_client/test/test_dag_run_collection.py | 6 +-
.../test/test_dag_run_collection_all_of.py | 55 ----
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 | 6 +-
.../test/test_event_log_collection_all_of.py | 55 ----
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 | 6 +-
.../test/test_import_error_collection_all_of.py | 55 ----
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 | 53 ----
airflow_client/test/test_plugin_api.py | 53 ----
airflow_client/test/test_plugin_collection.py | 59 ----
.../test/test_plugin_collection_all_of.py | 55 ----
airflow_client/test/test_plugin_collection_item.py | 53 ----
airflow_client/test/test_pool.py | 2 +-
airflow_client/test/test_pool_api.py | 2 +-
airflow_client/test/test_pool_collection.py | 6 +-
airflow_client/test/test_pool_collection_all_of.py | 55 ----
airflow_client/test/test_relative_delta.py | 2 +-
airflow_client/test/test_resource.py | 53 ----
airflow_client/test/test_role.py | 55 ----
airflow_client/test/test_role_api.py | 60 -----
airflow_client/test/test_role_collection.py | 59 ----
airflow_client/test/test_role_collection_all_of.py | 55 ----
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 | 6 +-
.../test/test_task_instance_collection_all_of.py | 55 ----
.../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 +-
.../test/test_update_task_instances_state.py | 2 +-
airflow_client/test/test_user.py | 59 ----
airflow_client/test/test_user_all_of.py | 53 ----
airflow_client/test/test_user_api.py | 60 -----
airflow_client/test/test_user_collection.py | 59 ----
airflow_client/test/test_user_collection_all_of.py | 55 ----
airflow_client/test/test_user_collection_item.py | 55 ----
.../test/test_user_collection_item_roles.py | 53 ----
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 | 6 +-
.../test/test_variable_collection_all_of.py | 55 ----
.../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 | 6 +-
.../test/test_x_com_collection_all_of.py | 55 ----
airflow_client/test/test_x_com_collection_item.py | 2 +-
265 files changed, 265 insertions(+), 10349 deletions(-)
diff --git a/airflow_client/.openapi-generator/FILES b/airflow_client/.openapi-generator/FILES
index 7cb763d..c4323cc 100644
--- a/airflow_client/.openapi-generator/FILES
+++ b/airflow_client/.openapi-generator/FILES
@@ -9,12 +9,8 @@ client/api/dag_run_api.py
client/api/event_log_api.py
client/api/import_error_api.py
client/api/monitoring_api.py
-client/api/permission_api.py
-client/api/plugin_api.py
client/api/pool_api.py
-client/api/role_api.py
client/api/task_instance_api.py
-client/api/user_api.py
client/api/variable_api.py
client/api/x_com_api.py
client/api_client.py
@@ -22,10 +18,6 @@ client/apis/__init__.py
client/configuration.py
client/exceptions.py
client/model/__init__.py
-client/model/action.py
-client/model/action_collection.py
-client/model/action_collection_all_of.py
-client/model/action_resource.py
client/model/class_reference.py
client/model/clear_task_instance.py
client/model/collection_info.py
@@ -36,45 +28,32 @@ client/model/config_section.py
client/model/connection.py
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/cron_expression.py
client/model/dag.py
client/model/dag_collection.py
-client/model/dag_collection_all_of.py
client/model/dag_detail.py
client/model/dag_detail_all_of.py
client/model/dag_run.py
client/model/dag_run_collection.py
-client/model/dag_run_collection_all_of.py
client/model/dag_state.py
client/model/error.py
client/model/event_log.py
client/model/event_log_collection.py
-client/model/event_log_collection_all_of.py
client/model/extra_link.py
client/model/extra_link_collection.py
client/model/health_info.py
client/model/health_status.py
client/model/import_error.py
client/model/import_error_collection.py
-client/model/import_error_collection_all_of.py
client/model/inline_response200.py
client/model/inline_response2001.py
client/model/list_dag_runs_form.py
client/model/list_task_instance_form.py
client/model/metadatabase_status.py
-client/model/plugin_collection.py
-client/model/plugin_collection_all_of.py
-client/model/plugin_collection_item.py
client/model/pool.py
client/model/pool_collection.py
-client/model/pool_collection_all_of.py
client/model/relative_delta.py
-client/model/resource.py
-client/model/role.py
-client/model/role_collection.py
-client/model/role_collection_all_of.py
client/model/schedule_interval.py
client/model/scheduler_status.py
client/model/sla_miss.py
@@ -84,39 +63,26 @@ client/model/task_collection.py
client/model/task_extra_links.py
client/model/task_instance.py
client/model/task_instance_collection.py
-client/model/task_instance_collection_all_of.py
client/model/task_instance_reference.py
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_task_instances_state.py
-client/model/user.py
-client/model/user_all_of.py
-client/model/user_collection.py
-client/model/user_collection_all_of.py
-client/model/user_collection_item.py
-client/model/user_collection_item_roles.py
client/model/variable.py
client/model/variable_all_of.py
client/model/variable_collection.py
-client/model/variable_collection_all_of.py
client/model/variable_collection_item.py
client/model/version_info.py
client/model/weight_rule.py
client/model/x_com.py
client/model/x_com_all_of.py
client/model/x_com_collection.py
-client/model/x_com_collection_all_of.py
client/model/x_com_collection_item.py
client/model_utils.py
client/models/__init__.py
client/models/__init__.py
client/rest.py
-docs/Action.md
-docs/ActionCollection.md
-docs/ActionCollectionAllOf.md
-docs/ActionResource.md
docs/ClassReference.md
docs/ClearTaskInstance.md
docs/CollectionInfo.md
@@ -129,25 +95,21 @@ docs/Connection.md
docs/ConnectionAllOf.md
docs/ConnectionApi.md
docs/ConnectionCollection.md
-docs/ConnectionCollectionAllOf.md
docs/ConnectionCollectionItem.md
docs/CronExpression.md
docs/DAG.md
docs/DAGApi.md
docs/DAGCollection.md
-docs/DAGCollectionAllOf.md
docs/DAGDetail.md
docs/DAGDetailAllOf.md
docs/DAGRun.md
docs/DAGRunApi.md
docs/DAGRunCollection.md
-docs/DAGRunCollectionAllOf.md
docs/DagState.md
docs/Error.md
docs/EventLog.md
docs/EventLogApi.md
docs/EventLogCollection.md
-docs/EventLogCollectionAllOf.md
docs/ExtraLink.md
docs/ExtraLinkCollection.md
docs/HealthInfo.md
@@ -155,28 +117,16 @@ docs/HealthStatus.md
docs/ImportError.md
docs/ImportErrorApi.md
docs/ImportErrorCollection.md
-docs/ImportErrorCollectionAllOf.md
docs/InlineResponse200.md
docs/InlineResponse2001.md
docs/ListDagRunsForm.md
docs/ListTaskInstanceForm.md
docs/MetadatabaseStatus.md
docs/MonitoringApi.md
-docs/PermissionApi.md
-docs/PluginApi.md
-docs/PluginCollection.md
-docs/PluginCollectionAllOf.md
-docs/PluginCollectionItem.md
docs/Pool.md
docs/PoolApi.md
docs/PoolCollection.md
-docs/PoolCollectionAllOf.md
docs/RelativeDelta.md
-docs/Resource.md
-docs/Role.md
-docs/RoleApi.md
-docs/RoleCollection.md
-docs/RoleCollectionAllOf.md
docs/SLAMiss.md
docs/ScheduleInterval.md
docs/SchedulerStatus.md
@@ -187,25 +137,16 @@ docs/TaskExtraLinks.md
docs/TaskInstance.md
docs/TaskInstanceApi.md
docs/TaskInstanceCollection.md
-docs/TaskInstanceCollectionAllOf.md
docs/TaskInstanceReference.md
docs/TaskInstanceReferenceCollection.md
docs/TaskState.md
docs/TimeDelta.md
docs/TriggerRule.md
docs/UpdateTaskInstancesState.md
-docs/User.md
-docs/UserAllOf.md
-docs/UserApi.md
-docs/UserCollection.md
-docs/UserCollectionAllOf.md
-docs/UserCollectionItem.md
-docs/UserCollectionItemRoles.md
docs/Variable.md
docs/VariableAllOf.md
docs/VariableApi.md
docs/VariableCollection.md
-docs/VariableCollectionAllOf.md
docs/VariableCollectionItem.md
docs/VersionInfo.md
docs/WeightRule.md
@@ -213,13 +154,8 @@ docs/XCom.md
docs/XComAllOf.md
docs/XComApi.md
docs/XComCollection.md
-docs/XComCollectionAllOf.md
docs/XComCollectionItem.md
test/__init__.py
-test/test_action.py
-test/test_action_collection.py
-test/test_action_collection_all_of.py
-test/test_action_resource.py
test/test_class_reference.py
test/test_clear_task_instance.py
test/test_collection_info.py
@@ -232,25 +168,21 @@ test/test_connection.py
test/test_connection_all_of.py
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_cron_expression.py
test/test_dag.py
test/test_dag_api.py
test/test_dag_collection.py
-test/test_dag_collection_all_of.py
test/test_dag_detail.py
test/test_dag_detail_all_of.py
test/test_dag_run.py
test/test_dag_run_api.py
test/test_dag_run_collection.py
-test/test_dag_run_collection_all_of.py
test/test_dag_state.py
test/test_error.py
test/test_event_log.py
test/test_event_log_api.py
test/test_event_log_collection.py
-test/test_event_log_collection_all_of.py
test/test_extra_link.py
test/test_extra_link_collection.py
test/test_health_info.py
@@ -258,28 +190,16 @@ test/test_health_status.py
test/test_import_error.py
test/test_import_error_api.py
test/test_import_error_collection.py
-test/test_import_error_collection_all_of.py
test/test_inline_response200.py
test/test_inline_response2001.py
test/test_list_dag_runs_form.py
test/test_list_task_instance_form.py
test/test_metadatabase_status.py
test/test_monitoring_api.py
-test/test_permission_api.py
-test/test_plugin_api.py
-test/test_plugin_collection.py
-test/test_plugin_collection_all_of.py
-test/test_plugin_collection_item.py
test/test_pool.py
test/test_pool_api.py
test/test_pool_collection.py
-test/test_pool_collection_all_of.py
test/test_relative_delta.py
-test/test_resource.py
-test/test_role.py
-test/test_role_api.py
-test/test_role_collection.py
-test/test_role_collection_all_of.py
test/test_schedule_interval.py
test/test_scheduler_status.py
test/test_sla_miss.py
@@ -290,25 +210,16 @@ test/test_task_extra_links.py
test/test_task_instance.py
test/test_task_instance_api.py
test/test_task_instance_collection.py
-test/test_task_instance_collection_all_of.py
test/test_task_instance_reference.py
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_task_instances_state.py
-test/test_user.py
-test/test_user_all_of.py
-test/test_user_api.py
-test/test_user_collection.py
-test/test_user_collection_all_of.py
-test/test_user_collection_item.py
-test/test_user_collection_item_roles.py
test/test_variable.py
test/test_variable_all_of.py
test/test_variable_api.py
test/test_variable_collection.py
-test/test_variable_collection_all_of.py
test/test_variable_collection_item.py
test/test_version_info.py
test/test_weight_rule.py
@@ -316,5 +227,4 @@ test/test_x_com.py
test/test_x_com_all_of.py
test/test_x_com_api.py
test/test_x_com_collection.py
-test/test_x_com_collection_all_of.py
test/test_x_com_collection_item.py
diff --git a/airflow_client/README.md b/airflow_client/README.md
index baa2c33..7a3d60a 100644
--- a/airflow_client/README.md
+++ b/airflow_client/README.md
@@ -130,7 +130,6 @@ Example:
| Airflow version | Description |
|-|-|
| v2.0 | Initial release |
-| v2.0.2 | Added /plugins endpoint |
# Trying the API
@@ -161,15 +160,6 @@ it is possible to import the API specifications directly:
Note that with *Postman*, you can also generate code snippets by selecting a request and clicking on
the **Code** button.
-## Enabling CORS
-
-[Cross-origin resource sharing (CORS)](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS)
-is a browser security feature that restricts HTTP requests that are
-initiated from scripts running in the browser.
-
-For details on enabling/configuring CORS, see
-[Enabling CORS](https://airflow.apache.org/docs/apache-airflow/stable/security/api.html).
-
# Authentication
To be able to meet the requirements of many organizations, Airflow supports many authentication methods,
@@ -238,7 +228,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: 1.0.0
+- Package version: 2.0.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
For more information, please visit [https://airflow.apache.org](https://airflow.apache.org)
@@ -350,22 +340,16 @@ Class | Method | HTTP request | Description
*ImportErrorApi* | [**get_import_errors**](docs/ImportErrorApi.md#get_import_errors) | **GET** /importErrors | List import errors
*MonitoringApi* | [**get_health**](docs/MonitoringApi.md#get_health) | **GET** /health | Get instance status
*MonitoringApi* | [**get_version**](docs/MonitoringApi.md#get_version) | **GET** /version | Get version information
-*PermissionApi* | [**get_permissions**](docs/PermissionApi.md#get_permissions) | **GET** /permissions | List permissions
-*PluginApi* | [**get_plugins**](docs/PluginApi.md#get_plugins) | **GET** /plugins | Get a list of loaded plugins
*PoolApi* | [**delete_pool**](docs/PoolApi.md#delete_pool) | **DELETE** /pools/{pool_name} | Delete a pool
*PoolApi* | [**get_pool**](docs/PoolApi.md#get_pool) | **GET** /pools/{pool_name} | Get a pool
*PoolApi* | [**get_pools**](docs/PoolApi.md#get_pools) | **GET** /pools | List pools
*PoolApi* | [**patch_pool**](docs/PoolApi.md#patch_pool) | **PATCH** /pools/{pool_name} | Update a pool
*PoolApi* | [**post_pool**](docs/PoolApi.md#post_pool) | **POST** /pools | Create a pool
-*RoleApi* | [**get_role**](docs/RoleApi.md#get_role) | **GET** /roles/{role_name} | Get a role
-*RoleApi* | [**get_roles**](docs/RoleApi.md#get_roles) | **GET** /roles | List roles
*TaskInstanceApi* | [**get_extra_links**](docs/TaskInstanceApi.md#get_extra_links) | **GET** /dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/links | List extra links
*TaskInstanceApi* | [**get_log**](docs/TaskInstanceApi.md#get_log) | **GET** /dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/logs/{task_try_number} | Get logs
*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* | [**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
*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
@@ -377,10 +361,6 @@ Class | Method | HTTP request | Description
## Documentation For Models
- - [Action](docs/Action.md)
- - [ActionCollection](docs/ActionCollection.md)
- - [ActionCollectionAllOf](docs/ActionCollectionAllOf.md)
- - [ActionResource](docs/ActionResource.md)
- [ClassReference](docs/ClassReference.md)
- [ClearTaskInstance](docs/ClearTaskInstance.md)
- [CollectionInfo](docs/CollectionInfo.md)
@@ -391,45 +371,32 @@ Class | Method | HTTP request | Description
- [Connection](docs/Connection.md)
- [ConnectionAllOf](docs/ConnectionAllOf.md)
- [ConnectionCollection](docs/ConnectionCollection.md)
- - [ConnectionCollectionAllOf](docs/ConnectionCollectionAllOf.md)
- [ConnectionCollectionItem](docs/ConnectionCollectionItem.md)
- [CronExpression](docs/CronExpression.md)
- [DAG](docs/DAG.md)
- [DAGCollection](docs/DAGCollection.md)
- - [DAGCollectionAllOf](docs/DAGCollectionAllOf.md)
- [DAGDetail](docs/DAGDetail.md)
- [DAGDetailAllOf](docs/DAGDetailAllOf.md)
- [DAGRun](docs/DAGRun.md)
- [DAGRunCollection](docs/DAGRunCollection.md)
- - [DAGRunCollectionAllOf](docs/DAGRunCollectionAllOf.md)
- [DagState](docs/DagState.md)
- [Error](docs/Error.md)
- [EventLog](docs/EventLog.md)
- [EventLogCollection](docs/EventLogCollection.md)
- - [EventLogCollectionAllOf](docs/EventLogCollectionAllOf.md)
- [ExtraLink](docs/ExtraLink.md)
- [ExtraLinkCollection](docs/ExtraLinkCollection.md)
- [HealthInfo](docs/HealthInfo.md)
- [HealthStatus](docs/HealthStatus.md)
- [ImportError](docs/ImportError.md)
- [ImportErrorCollection](docs/ImportErrorCollection.md)
- - [ImportErrorCollectionAllOf](docs/ImportErrorCollectionAllOf.md)
- [InlineResponse200](docs/InlineResponse200.md)
- [InlineResponse2001](docs/InlineResponse2001.md)
- [ListDagRunsForm](docs/ListDagRunsForm.md)
- [ListTaskInstanceForm](docs/ListTaskInstanceForm.md)
- [MetadatabaseStatus](docs/MetadatabaseStatus.md)
- - [PluginCollection](docs/PluginCollection.md)
- - [PluginCollectionAllOf](docs/PluginCollectionAllOf.md)
- - [PluginCollectionItem](docs/PluginCollectionItem.md)
- [Pool](docs/Pool.md)
- [PoolCollection](docs/PoolCollection.md)
- - [PoolCollectionAllOf](docs/PoolCollectionAllOf.md)
- [RelativeDelta](docs/RelativeDelta.md)
- - [Resource](docs/Resource.md)
- - [Role](docs/Role.md)
- - [RoleCollection](docs/RoleCollection.md)
- - [RoleCollectionAllOf](docs/RoleCollectionAllOf.md)
- [SLAMiss](docs/SLAMiss.md)
- [ScheduleInterval](docs/ScheduleInterval.md)
- [SchedulerStatus](docs/SchedulerStatus.md)
@@ -439,30 +406,21 @@ Class | Method | HTTP request | Description
- [TaskExtraLinks](docs/TaskExtraLinks.md)
- [TaskInstance](docs/TaskInstance.md)
- [TaskInstanceCollection](docs/TaskInstanceCollection.md)
- - [TaskInstanceCollectionAllOf](docs/TaskInstanceCollectionAllOf.md)
- [TaskInstanceReference](docs/TaskInstanceReference.md)
- [TaskInstanceReferenceCollection](docs/TaskInstanceReferenceCollection.md)
- [TaskState](docs/TaskState.md)
- [TimeDelta](docs/TimeDelta.md)
- [TriggerRule](docs/TriggerRule.md)
- [UpdateTaskInstancesState](docs/UpdateTaskInstancesState.md)
- - [User](docs/User.md)
- - [UserAllOf](docs/UserAllOf.md)
- - [UserCollection](docs/UserCollection.md)
- - [UserCollectionAllOf](docs/UserCollectionAllOf.md)
- - [UserCollectionItem](docs/UserCollectionItem.md)
- - [UserCollectionItemRoles](docs/UserCollectionItemRoles.md)
- [Variable](docs/Variable.md)
- [VariableAllOf](docs/VariableAllOf.md)
- [VariableCollection](docs/VariableCollection.md)
- - [VariableCollectionAllOf](docs/VariableCollectionAllOf.md)
- [VariableCollectionItem](docs/VariableCollectionItem.md)
- [VersionInfo](docs/VersionInfo.md)
- [WeightRule](docs/WeightRule.md)
- [XCom](docs/XCom.md)
- [XComAllOf](docs/XComAllOf.md)
- [XComCollection](docs/XComCollection.md)
- - [XComCollectionAllOf](docs/XComCollectionAllOf.md)
- [XComCollectionItem](docs/XComCollectionItem.md)
diff --git a/airflow_client/client/__init__.py b/airflow_client/client/__init__.py
index bbedafa..e90c916 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__ = "1.0.0"
+__version__ = "2.0.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 ce699aa..794e5db 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
diff --git a/airflow_client/client/api/connection_api.py b/airflow_client/client/api/connection_api.py
index f2d3234..3180951 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
@@ -40,7 +40,6 @@ from airflow_client.client.model_utils import ( # noqa: F401
validate_and_convert_types
)
from airflow_client.client.model.connection import Connection
-from airflow_client.client.model.connection_collection import ConnectionCollection
from airflow_client.client.model.error import Error
@@ -331,7 +330,7 @@ class ConnectionApi(object):
async_req (bool): execute request asynchronously
Returns:
- ConnectionCollection
+ object
If the method is called asynchronously, returns the request
thread.
"""
@@ -358,7 +357,7 @@ class ConnectionApi(object):
self.get_connections = _Endpoint(
settings={
- 'response_type': (ConnectionCollection,),
+ 'response_type': (object,),
'auth': [
'Basic',
'Kerberos'
diff --git a/airflow_client/client/api/dag_api.py b/airflow_client/client/api/dag_api.py
index 08be221..b8fbe58 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
@@ -41,7 +41,6 @@ from airflow_client.client.model_utils import ( # noqa: F401
)
from airflow_client.client.model.clear_task_instance import ClearTaskInstance
from airflow_client.client.model.dag import DAG
-from airflow_client.client.model.dag_collection import DAGCollection
from airflow_client.client.model.dag_detail import DAGDetail
from airflow_client.client.model.error import Error
from airflow_client.client.model.inline_response2001 import InlineResponse2001
@@ -461,7 +460,7 @@ class DAGApi(object):
async_req (bool): execute request asynchronously
Returns:
- DAGCollection
+ object
If the method is called asynchronously, returns the request
thread.
"""
@@ -488,7 +487,7 @@ class DAGApi(object):
self.get_dags = _Endpoint(
settings={
- 'response_type': (DAGCollection,),
+ 'response_type': (object,),
'auth': [
'Basic',
'Kerberos'
diff --git a/airflow_client/client/api/dag_run_api.py b/airflow_client/client/api/dag_run_api.py
index c93a8f7..ddba267 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
@@ -40,7 +40,6 @@ from airflow_client.client.model_utils import ( # noqa: F401
validate_and_convert_types
)
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
@@ -362,7 +361,7 @@ class DAGRunApi(object):
async_req (bool): execute request asynchronously
Returns:
- DAGRunCollection
+ object
If the method is called asynchronously, returns the request
thread.
"""
@@ -391,7 +390,7 @@ class DAGRunApi(object):
self.get_dag_runs = _Endpoint(
settings={
- 'response_type': (DAGRunCollection,),
+ 'response_type': (object,),
'auth': [
'Basic',
'Kerberos'
@@ -527,7 +526,7 @@ class DAGRunApi(object):
async_req (bool): execute request asynchronously
Returns:
- DAGRunCollection
+ object
If the method is called asynchronously, returns the request
thread.
"""
@@ -556,7 +555,7 @@ class DAGRunApi(object):
self.get_dag_runs_batch = _Endpoint(
settings={
- 'response_type': (DAGRunCollection,),
+ 'response_type': (object,),
'auth': [
'Basic',
'Kerberos'
diff --git a/airflow_client/client/api/event_log_api.py b/airflow_client/client/api/event_log_api.py
index 7d35e14..8adbd96 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
@@ -41,7 +41,6 @@ from airflow_client.client.model_utils import ( # noqa: F401
)
from airflow_client.client.model.error import Error
from airflow_client.client.model.event_log import EventLog
-from airflow_client.client.model.event_log_collection import EventLogCollection
class EventLogApi(object):
@@ -213,7 +212,7 @@ class EventLogApi(object):
async_req (bool): execute request asynchronously
Returns:
- EventLogCollection
+ object
If the method is called asynchronously, returns the request
thread.
"""
@@ -240,7 +239,7 @@ class EventLogApi(object):
self.get_event_logs = _Endpoint(
settings={
- 'response_type': (EventLogCollection,),
+ 'response_type': (object,),
'auth': [
'Basic',
'Kerberos'
diff --git a/airflow_client/client/api/import_error_api.py b/airflow_client/client/api/import_error_api.py
index 19a6b34..effb2d8 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
@@ -41,7 +41,6 @@ from airflow_client.client.model_utils import ( # noqa: F401
)
from airflow_client.client.model.error import Error
from airflow_client.client.model.import_error import ImportError
-from airflow_client.client.model.import_error_collection import ImportErrorCollection
class ImportErrorApi(object):
@@ -212,7 +211,7 @@ class ImportErrorApi(object):
async_req (bool): execute request asynchronously
Returns:
- ImportErrorCollection
+ object
If the method is called asynchronously, returns the request
thread.
"""
@@ -239,7 +238,7 @@ class ImportErrorApi(object):
self.get_import_errors = _Endpoint(
settings={
- 'response_type': (ImportErrorCollection,),
+ 'response_type': (object,),
'auth': [
'Basic',
'Kerberos'
diff --git a/airflow_client/client/api/monitoring_api.py b/airflow_client/client/api/monitoring_api.py
index 42605b9..d843b4d 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
diff --git a/airflow_client/client/api/permission_api.py b/airflow_client/client/api/permission_api.py
deleted file mode 100644
index 1430eda..0000000
--- a/airflow_client/client/api/permission_api.py
+++ /dev/null
@@ -1,180 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-"""
- 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 [...]
-
- The version of the OpenAPI document: 1.0.0
- Contact: dev@airflow.apache.org
- Generated by: https://openapi-generator.tech
-"""
-
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from airflow_client.client.api_client import ApiClient, Endpoint as _Endpoint
-from airflow_client.client.model_utils import ( # noqa: F401
- check_allowed_values,
- check_validations,
- date,
- datetime,
- file_type,
- none_type,
- validate_and_convert_types
-)
-from airflow_client.client.model.action_collection import ActionCollection
-from airflow_client.client.model.error import Error
-
-
-class PermissionApi(object):
- """NOTE: This class is auto generated by OpenAPI Generator
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- def __init__(self, api_client=None):
- 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(
- settings={
- 'response_type': (ActionCollection,),
- 'auth': [
- 'Basic',
- 'Kerberos'
- ],
- 'endpoint_path': '/permissions',
- 'operation_id': 'get_permissions',
- 'http_method': 'GET',
- 'servers': None,
- },
- params_map={
- 'all': [
- 'limit',
- 'offset',
- ],
- 'required': [],
- 'nullable': [
- ],
- 'enum': [
- ],
- 'validation': [
- 'offset',
- ]
- },
- root_map={
- 'validations': {
- ('offset',): {
-
- 'inclusive_minimum': 0,
- },
- },
- 'allowed_values': {
- },
- 'openapi_types': {
- 'limit':
- (int,),
- 'offset':
- (int,),
- },
- 'attribute_map': {
- 'limit': 'limit',
- 'offset': 'offset',
- },
- 'location_map': {
- 'limit': 'query',
- 'offset': 'query',
- },
- 'collection_format_map': {
- }
- },
- headers_map={
- 'accept': [
- 'application/json'
- ],
- 'content_type': [],
- },
- api_client=api_client,
- callable=__get_permissions
- )
diff --git a/airflow_client/client/api/plugin_api.py b/airflow_client/client/api/plugin_api.py
deleted file mode 100644
index 9dbc6af..0000000
--- a/airflow_client/client/api/plugin_api.py
+++ /dev/null
@@ -1,180 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-"""
- 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 [...]
-
- The version of the OpenAPI document: 1.0.0
- Contact: dev@airflow.apache.org
- Generated by: https://openapi-generator.tech
-"""
-
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from airflow_client.client.api_client import ApiClient, Endpoint as _Endpoint
-from airflow_client.client.model_utils import ( # noqa: F401
- check_allowed_values,
- check_validations,
- date,
- datetime,
- file_type,
- none_type,
- validate_and_convert_types
-)
-from airflow_client.client.model.error import Error
-from airflow_client.client.model.plugin_collection import PluginCollection
-
-
-class PluginApi(object):
- """NOTE: This class is auto generated by OpenAPI Generator
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- def __init__(self, api_client=None):
- 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(
- settings={
- 'response_type': (PluginCollection,),
- 'auth': [
- 'Basic',
- 'Kerberos'
- ],
- 'endpoint_path': '/plugins',
- 'operation_id': 'get_plugins',
- 'http_method': 'GET',
- 'servers': None,
- },
- params_map={
- 'all': [
- 'limit',
- 'offset',
- ],
- 'required': [],
- 'nullable': [
- ],
- 'enum': [
- ],
- 'validation': [
- 'offset',
- ]
- },
- root_map={
- 'validations': {
- ('offset',): {
-
- 'inclusive_minimum': 0,
- },
- },
- 'allowed_values': {
- },
- 'openapi_types': {
- 'limit':
- (int,),
- 'offset':
- (int,),
- },
- 'attribute_map': {
- 'limit': 'limit',
- 'offset': 'offset',
- },
- 'location_map': {
- 'limit': 'query',
- 'offset': 'query',
- },
- 'collection_format_map': {
- }
- },
- headers_map={
- 'accept': [
- 'application/json'
- ],
- 'content_type': [],
- },
- api_client=api_client,
- callable=__get_plugins
- )
diff --git a/airflow_client/client/api/pool_api.py b/airflow_client/client/api/pool_api.py
index dec0db8..6375d94 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
@@ -41,7 +41,6 @@ from airflow_client.client.model_utils import ( # noqa: F401
)
from airflow_client.client.model.error import Error
from airflow_client.client.model.pool import Pool
-from airflow_client.client.model.pool_collection import PoolCollection
class PoolApi(object):
@@ -331,7 +330,7 @@ class PoolApi(object):
async_req (bool): execute request asynchronously
Returns:
- PoolCollection
+ object
If the method is called asynchronously, returns the request
thread.
"""
@@ -358,7 +357,7 @@ class PoolApi(object):
self.get_pools = _Endpoint(
settings={
- 'response_type': (PoolCollection,),
+ 'response_type': (object,),
'auth': [
'Basic',
'Kerberos'
diff --git a/airflow_client/client/api/role_api.py b/airflow_client/client/api/role_api.py
deleted file mode 100644
index 4057ab6..0000000
--- a/airflow_client/client/api/role_api.py
+++ /dev/null
@@ -1,300 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-"""
- 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 [...]
-
- The version of the OpenAPI document: 1.0.0
- Contact: dev@airflow.apache.org
- Generated by: https://openapi-generator.tech
-"""
-
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from airflow_client.client.api_client import ApiClient, Endpoint as _Endpoint
-from airflow_client.client.model_utils import ( # noqa: F401
- check_allowed_values,
- check_validations,
- date,
- datetime,
- file_type,
- none_type,
- 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.role_collection import RoleCollection
-
-
-class RoleApi(object):
- """NOTE: This class is auto generated by OpenAPI Generator
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- def __init__(self, api_client=None):
- if api_client is None:
- api_client = ApiClient()
- self.api_client = api_client
-
- 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(
- settings={
- 'response_type': (Role,),
- 'auth': [
- 'Basic',
- 'Kerberos'
- ],
- 'endpoint_path': '/roles/{role_name}',
- 'operation_id': 'get_role',
- 'http_method': 'GET',
- 'servers': None,
- },
- params_map={
- 'all': [
- 'role_name',
- ],
- 'required': [
- 'role_name',
- ],
- 'nullable': [
- ],
- 'enum': [
- ],
- 'validation': [
- ]
- },
- root_map={
- 'validations': {
- },
- 'allowed_values': {
- },
- 'openapi_types': {
- 'role_name':
- (str,),
- },
- 'attribute_map': {
- 'role_name': 'role_name',
- },
- 'location_map': {
- 'role_name': 'path',
- },
- 'collection_format_map': {
- }
- },
- headers_map={
- 'accept': [
- 'application/json'
- ],
- '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]
- _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(
- settings={
- 'response_type': (RoleCollection,),
- 'auth': [
- 'Basic',
- 'Kerberos'
- ],
- 'endpoint_path': '/roles',
- 'operation_id': 'get_roles',
- 'http_method': 'GET',
- 'servers': None,
- },
- params_map={
- 'all': [
- 'limit',
- 'offset',
- ],
- 'required': [],
- 'nullable': [
- ],
- 'enum': [
- ],
- 'validation': [
- 'offset',
- ]
- },
- root_map={
- 'validations': {
- ('offset',): {
-
- 'inclusive_minimum': 0,
- },
- },
- 'allowed_values': {
- },
- 'openapi_types': {
- 'limit':
- (int,),
- 'offset':
- (int,),
- },
- 'attribute_map': {
- 'limit': 'limit',
- 'offset': 'offset',
- },
- 'location_map': {
- 'limit': 'query',
- 'offset': 'query',
- },
- 'collection_format_map': {
- }
- },
- headers_map={
- 'accept': [
- 'application/json'
- ],
- 'content_type': [],
- },
- api_client=api_client,
- callable=__get_roles
- )
diff --git a/airflow_client/client/api/task_instance_api.py b/airflow_client/client/api/task_instance_api.py
index 93bac9c..c567a20 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
@@ -44,7 +44,6 @@ from airflow_client.client.model.extra_link_collection import ExtraLinkCollectio
from airflow_client.client.model.inline_response200 import InlineResponse200
from airflow_client.client.model.list_task_instance_form import ListTaskInstanceForm
from airflow_client.client.model.task_instance import TaskInstance
-from airflow_client.client.model.task_instance_collection import TaskInstanceCollection
class TaskInstanceApi(object):
@@ -555,7 +554,7 @@ class TaskInstanceApi(object):
async_req (bool): execute request asynchronously
Returns:
- TaskInstanceCollection
+ object
If the method is called asynchronously, returns the request
thread.
"""
@@ -586,7 +585,7 @@ class TaskInstanceApi(object):
self.get_task_instances = _Endpoint(
settings={
- 'response_type': (TaskInstanceCollection,),
+ 'response_type': (object,),
'auth': [
'Basic',
'Kerberos'
@@ -756,7 +755,7 @@ class TaskInstanceApi(object):
async_req (bool): execute request asynchronously
Returns:
- TaskInstanceCollection
+ object
If the method is called asynchronously, returns the request
thread.
"""
@@ -785,7 +784,7 @@ class TaskInstanceApi(object):
self.get_task_instances_batch = _Endpoint(
settings={
- 'response_type': (TaskInstanceCollection,),
+ 'response_type': (object,),
'auth': [
'Basic',
'Kerberos'
diff --git a/airflow_client/client/api/user_api.py b/airflow_client/client/api/user_api.py
deleted file mode 100644
index ab75276..0000000
--- a/airflow_client/client/api/user_api.py
+++ /dev/null
@@ -1,300 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-"""
- 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 [...]
-
- The version of the OpenAPI document: 1.0.0
- Contact: dev@airflow.apache.org
- Generated by: https://openapi-generator.tech
-"""
-
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from airflow_client.client.api_client import ApiClient, Endpoint as _Endpoint
-from airflow_client.client.model_utils import ( # noqa: F401
- check_allowed_values,
- check_validations,
- date,
- datetime,
- file_type,
- none_type,
- validate_and_convert_types
-)
-from airflow_client.client.model.error import Error
-from airflow_client.client.model.user_collection import UserCollection
-from airflow_client.client.model.user_collection_item import UserCollectionItem
-
-
-class UserApi(object):
- """NOTE: This class is auto generated by OpenAPI Generator
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- def __init__(self, api_client=None):
- 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(
- settings={
- 'response_type': (UserCollectionItem,),
- 'auth': [
- 'Basic',
- 'Kerberos'
- ],
- 'endpoint_path': '/users/{username}',
- 'operation_id': 'get_user',
- 'http_method': 'GET',
- '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,
- 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]
- _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(
- settings={
- 'response_type': (UserCollection,),
- 'auth': [
- 'Basic',
- 'Kerberos'
- ],
- 'endpoint_path': '/users',
- 'operation_id': 'get_users',
- 'http_method': 'GET',
- 'servers': None,
- },
- params_map={
- 'all': [
- 'limit',
- 'offset',
- ],
- 'required': [],
- 'nullable': [
- ],
- 'enum': [
- ],
- 'validation': [
- 'offset',
- ]
- },
- root_map={
- 'validations': {
- ('offset',): {
-
- 'inclusive_minimum': 0,
- },
- },
- 'allowed_values': {
- },
- 'openapi_types': {
- 'limit':
- (int,),
- 'offset':
- (int,),
- },
- 'attribute_map': {
- 'limit': 'limit',
- 'offset': 'offset',
- },
- 'location_map': {
- 'limit': 'query',
- 'offset': 'query',
- },
- 'collection_format_map': {
- }
- },
- headers_map={
- 'accept': [
- 'application/json'
- ],
- 'content_type': [],
- },
- api_client=api_client,
- callable=__get_users
- )
diff --git a/airflow_client/client/api/variable_api.py b/airflow_client/client/api/variable_api.py
index 7adc7a3..0031f42 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
@@ -41,7 +41,6 @@ from airflow_client.client.model_utils import ( # noqa: F401
)
from airflow_client.client.model.error import Error
from airflow_client.client.model.variable import Variable
-from airflow_client.client.model.variable_collection import VariableCollection
class VariableApi(object):
@@ -333,7 +332,7 @@ class VariableApi(object):
async_req (bool): execute request asynchronously
Returns:
- VariableCollection
+ object
If the method is called asynchronously, returns the request
thread.
"""
@@ -360,7 +359,7 @@ class VariableApi(object):
self.get_variables = _Endpoint(
settings={
- 'response_type': (VariableCollection,),
+ 'response_type': (object,),
'auth': [
'Basic',
'Kerberos'
diff --git a/airflow_client/client/api/x_com_api.py b/airflow_client/client/api/x_com_api.py
index df849db..e5e939f 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
@@ -41,7 +41,6 @@ from airflow_client.client.model_utils import ( # noqa: F401
)
from airflow_client.client.model.error import Error
from airflow_client.client.model.x_com import XCom
-from airflow_client.client.model.x_com_collection import XComCollection
class XComApi(object):
@@ -101,7 +100,7 @@ class XComApi(object):
async_req (bool): execute request asynchronously
Returns:
- XComCollection
+ object
If the method is called asynchronously, returns the request
thread.
"""
@@ -134,7 +133,7 @@ class XComApi(object):
self.get_xcom_entries = _Endpoint(
settings={
- 'response_type': (XComCollection,),
+ 'response_type': (object,),
'auth': [
'Basic',
'Kerberos'
diff --git a/airflow_client/client/api_client.py b/airflow_client/client/api_client.py
index 3b92f07..144099c 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/1.0.0/python'
+ self.user_agent = 'OpenAPI-Generator/2.0.0/python'
def __enter__(self):
return self
diff --git a/airflow_client/client/apis/__init__.py b/airflow_client/client/apis/__init__.py
index 69d1b9b..849e5c7 100644
--- a/airflow_client/client/apis/__init__.py
+++ b/airflow_client/client/apis/__init__.py
@@ -38,11 +38,7 @@ from airflow_client.client.api.dag_run_api import DAGRunApi
from airflow_client.client.api.event_log_api import EventLogApi
from airflow_client.client.api.import_error_api import ImportErrorApi
from airflow_client.client.api.monitoring_api import MonitoringApi
-from airflow_client.client.api.permission_api import PermissionApi
-from airflow_client.client.api.plugin_api import PluginApi
from airflow_client.client.api.pool_api import PoolApi
-from airflow_client.client.api.role_api import RoleApi
from airflow_client.client.api.task_instance_api import TaskInstanceApi
-from airflow_client.client.api.user_api import UserApi
from airflow_client.client.api.variable_api import VariableApi
from airflow_client.client.api.x_com_api import XComApi
diff --git a/airflow_client/client/configuration.py b/airflow_client/client/configuration.py
index ae881cf..fb26435 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
@@ -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: 1.0.0".\
+ "SDK Package Version: 2.0.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 dc14b86..496317e 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
deleted file mode 100644
index 8862c29..0000000
--- a/airflow_client/client/model/action.py
+++ /dev/null
@@ -1,184 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-"""
- 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 [...]
-
- The version of the OpenAPI document: 1.0.0
- Contact: dev@airflow.apache.org
- Generated by: https://openapi-generator.tech
-"""
-
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from airflow_client.client.model_utils import ( # noqa: F401
- ApiTypeError,
- ModelComposed,
- ModelNormal,
- ModelSimple,
- cached_property,
- change_keys_js_to_python,
- convert_js_args_to_python_args,
- date,
- datetime,
- file_type,
- none_type,
- validate_get_composed_info,
-)
-
-
-class Action(ModelNormal):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
-
- Attributes:
- allowed_values (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- with a capitalized key describing the allowed value and an allowed
- value. These dicts store the allowed enum values.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- discriminator_value_class_map (dict): A dict to go from the discriminator
- variable value to the discriminator class name.
- validations (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- that stores validations for max_length, min_length, max_items,
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
- inclusive_minimum, and regex.
- additional_properties_type (tuple): A tuple of classes accepted
- as additional properties values.
- """
-
- allowed_values = {
- }
-
- validations = {
- }
-
- additional_properties_type = None
-
- _nullable = False
-
- @cached_property
- def openapi_types():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
-
- Returns
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- """
- return {
- 'name': (str,), # noqa: E501
- }
-
- @cached_property
- def discriminator():
- return None
-
-
- attribute_map = {
- 'name': 'name', # noqa: E501
- }
-
- _composed_schemas = {}
-
- required_properties = set([
- '_data_store',
- '_check_type',
- '_spec_property_naming',
- '_path_to_item',
- '_configuration',
- '_visited_composed_classes',
- ])
-
- @convert_js_args_to_python_args
- def __init__(self, *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', ())
-
- 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)
diff --git a/airflow_client/client/model/action_collection.py b/airflow_client/client/model/action_collection.py
deleted file mode 100644
index c3fe36d..0000000
--- a/airflow_client/client/model/action_collection.py
+++ /dev/null
@@ -1,246 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-"""
- 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 [...]
-
- The version of the OpenAPI document: 1.0.0
- Contact: dev@airflow.apache.org
- Generated by: https://openapi-generator.tech
-"""
-
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from airflow_client.client.model_utils import ( # noqa: F401
- ApiTypeError,
- ModelComposed,
- ModelNormal,
- ModelSimple,
- cached_property,
- change_keys_js_to_python,
- convert_js_args_to_python_args,
- date,
- datetime,
- file_type,
- none_type,
- validate_get_composed_info,
-)
-
-def lazy_import():
- from airflow_client.client.model.action import Action
- from airflow_client.client.model.action_collection_all_of import ActionCollectionAllOf
- from airflow_client.client.model.collection_info import CollectionInfo
- globals()['Action'] = Action
- globals()['ActionCollectionAllOf'] = ActionCollectionAllOf
- globals()['CollectionInfo'] = CollectionInfo
-
-
-class ActionCollection(ModelComposed):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
-
- Attributes:
- allowed_values (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- with a capitalized key describing the allowed value and an allowed
- value. These dicts store the allowed enum values.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- discriminator_value_class_map (dict): A dict to go from the discriminator
- variable value to the discriminator class name.
- validations (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- that stores validations for max_length, min_length, max_items,
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
- inclusive_minimum, and regex.
- additional_properties_type (tuple): A tuple of classes accepted
- as additional properties values.
- """
-
- allowed_values = {
- }
-
- validations = {
- }
-
- @cached_property
- def additional_properties_type():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
- """
- lazy_import()
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
-
- _nullable = False
-
- @cached_property
- def openapi_types():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
-
- Returns
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- """
- lazy_import()
- return {
- 'actions': ([Action],), # noqa: E501
- 'total_entries': (int,), # noqa: E501
- }
-
- @cached_property
- def discriminator():
- return None
-
-
- attribute_map = {
- 'actions': 'actions', # noqa: E501
- 'total_entries': 'total_entries', # noqa: E501
- }
-
- required_properties = set([
- '_data_store',
- '_check_type',
- '_spec_property_naming',
- '_path_to_item',
- '_configuration',
- '_visited_composed_classes',
- '_composed_instances',
- '_var_name_to_model_instances',
- '_additional_properties_model_instances',
- ])
-
- @convert_js_args_to_python_args
- def __init__(self, *args, **kwargs): # noqa: E501
- """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', ())
-
- 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,
- }
- required_args = {
- }
- model_args = {}
- model_args.update(required_args)
- model_args.update(kwargs)
- composed_info = validate_get_composed_info(
- constant_args, model_args, 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]
-
- 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 \
- self._configuration is not None and \
- self._configuration.discard_unknown_keys and \
- not self._additional_properties_model_instances:
- # discard variable.
- continue
- setattr(self, var_name, var_value)
-
- @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
- # code would be run when this module is imported, and these composed
- # classes don't exist yet because their module has not finished
- # loading
- lazy_import()
- return {
- 'anyOf': [
- ],
- 'allOf': [
- ActionCollectionAllOf,
- CollectionInfo,
- ],
- 'oneOf': [
- ],
- }
diff --git a/airflow_client/client/model/action_collection_all_of.py b/airflow_client/client/model/action_collection_all_of.py
deleted file mode 100644
index 35aa88e..0000000
--- a/airflow_client/client/model/action_collection_all_of.py
+++ /dev/null
@@ -1,189 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-"""
- 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 [...]
-
- The version of the OpenAPI document: 1.0.0
- Contact: dev@airflow.apache.org
- Generated by: https://openapi-generator.tech
-"""
-
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from airflow_client.client.model_utils import ( # noqa: F401
- ApiTypeError,
- ModelComposed,
- ModelNormal,
- ModelSimple,
- cached_property,
- change_keys_js_to_python,
- convert_js_args_to_python_args,
- date,
- datetime,
- file_type,
- none_type,
- validate_get_composed_info,
-)
-
-def lazy_import():
- from airflow_client.client.model.action import Action
- globals()['Action'] = Action
-
-
-class ActionCollectionAllOf(ModelNormal):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
-
- Attributes:
- allowed_values (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- with a capitalized key describing the allowed value and an allowed
- value. These dicts store the allowed enum values.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- discriminator_value_class_map (dict): A dict to go from the discriminator
- variable value to the discriminator class name.
- validations (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- that stores validations for max_length, min_length, max_items,
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
- inclusive_minimum, and regex.
- additional_properties_type (tuple): A tuple of classes accepted
- as additional properties values.
- """
-
- allowed_values = {
- }
-
- validations = {
- }
-
- additional_properties_type = None
-
- _nullable = False
-
- @cached_property
- def openapi_types():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
-
- Returns
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- """
- lazy_import()
- return {
- 'actions': ([Action],), # noqa: E501
- }
-
- @cached_property
- def discriminator():
- return None
-
-
- attribute_map = {
- 'actions': 'actions', # noqa: E501
- }
-
- _composed_schemas = {}
-
- required_properties = set([
- '_data_store',
- '_check_type',
- '_spec_property_naming',
- '_path_to_item',
- '_configuration',
- '_visited_composed_classes',
- ])
-
- @convert_js_args_to_python_args
- def __init__(self, *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)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- 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)
diff --git a/airflow_client/client/model/action_resource.py b/airflow_client/client/model/action_resource.py
deleted file mode 100644
index 773cd23..0000000
--- a/airflow_client/client/model/action_resource.py
+++ /dev/null
@@ -1,194 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-"""
- 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 [...]
-
- The version of the OpenAPI document: 1.0.0
- Contact: dev@airflow.apache.org
- Generated by: https://openapi-generator.tech
-"""
-
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from airflow_client.client.model_utils import ( # noqa: F401
- ApiTypeError,
- ModelComposed,
- ModelNormal,
- ModelSimple,
- cached_property,
- change_keys_js_to_python,
- convert_js_args_to_python_args,
- date,
- datetime,
- file_type,
- none_type,
- validate_get_composed_info,
-)
-
-def lazy_import():
- from airflow_client.client.model.action import Action
- from airflow_client.client.model.resource import Resource
- globals()['Action'] = Action
- globals()['Resource'] = Resource
-
-
-class ActionResource(ModelNormal):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
-
- Attributes:
- allowed_values (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- with a capitalized key describing the allowed value and an allowed
- value. These dicts store the allowed enum values.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- discriminator_value_class_map (dict): A dict to go from the discriminator
- variable value to the discriminator class name.
- validations (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- that stores validations for max_length, min_length, max_items,
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
- inclusive_minimum, and regex.
- additional_properties_type (tuple): A tuple of classes accepted
- as additional properties values.
- """
-
- allowed_values = {
- }
-
- validations = {
- }
-
- additional_properties_type = None
-
- _nullable = False
-
- @cached_property
- def openapi_types():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
-
- Returns
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- """
- lazy_import()
- return {
- 'action': (Action,), # noqa: E501
- 'resource': (Resource,), # noqa: E501
- }
-
- @cached_property
- def discriminator():
- return None
-
-
- attribute_map = {
- 'action': 'action', # noqa: E501
- 'resource': 'resource', # noqa: E501
- }
-
- _composed_schemas = {}
-
- required_properties = set([
- '_data_store',
- '_check_type',
- '_spec_property_naming',
- '_path_to_item',
- '_configuration',
- '_visited_composed_classes',
- ])
-
- @convert_js_args_to_python_args
- def __init__(self, *args, **kwargs): # noqa: E501
- """ActionResource - 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,)
- action (Action): [optional] # noqa: E501
- resource (Resource): [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- 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)
diff --git a/airflow_client/client/model/class_reference.py b/airflow_client/client/model/class_reference.py
index 70ea998..7b23f92 100644
--- a/airflow_client/client/model/class_reference.py
+++ b/airflow_client/client/model/class_reference.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/clear_task_instance.py b/airflow_client/client/model/clear_task_instance.py
index 4290fce..fe832c7 100644
--- a/airflow_client/client/model/clear_task_instance.py
+++ b/airflow_client/client/model/clear_task_instance.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/collection_info.py b/airflow_client/client/model/collection_info.py
index 402bbc2..940a7ff 100644
--- a/airflow_client/client/model/collection_info.py
+++ b/airflow_client/client/model/collection_info.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/color.py b/airflow_client/client/model/color.py
index 0852157..04c3d38 100644
--- a/airflow_client/client/model/color.py
+++ b/airflow_client/client/model/color.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/config.py b/airflow_client/client/model/config.py
index d71ce05..c958914 100644
--- a/airflow_client/client/model/config.py
+++ b/airflow_client/client/model/config.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/config_option.py b/airflow_client/client/model/config_option.py
index a10dba3..5e156ab 100644
--- a/airflow_client/client/model/config_option.py
+++ b/airflow_client/client/model/config_option.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/config_section.py b/airflow_client/client/model/config_section.py
index 6e2d631..f2ac689 100644
--- a/airflow_client/client/model/config_section.py
+++ b/airflow_client/client/model/config_section.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/connection.py b/airflow_client/client/model/connection.py
index 659be50..0583ac9 100644
--- a/airflow_client/client/model/connection.py
+++ b/airflow_client/client/model/connection.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/connection_all_of.py b/airflow_client/client/model/connection_all_of.py
index b89a69e..0298df8 100644
--- a/airflow_client/client/model/connection_all_of.py
+++ b/airflow_client/client/model/connection_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
diff --git a/airflow_client/client/model/connection_collection.py b/airflow_client/client/model/connection_collection.py
index d3a5aa5..297ca12 100644
--- a/airflow_client/client/model/connection_collection.py
+++ b/airflow_client/client/model/connection_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
@@ -45,15 +45,11 @@ from airflow_client.client.model_utils import ( # noqa: F401
)
def lazy_import():
- from airflow_client.client.model.collection_info import CollectionInfo
- from airflow_client.client.model.connection_collection_all_of import ConnectionCollectionAllOf
from airflow_client.client.model.connection_collection_item import ConnectionCollectionItem
- globals()['CollectionInfo'] = CollectionInfo
- globals()['ConnectionCollectionAllOf'] = ConnectionCollectionAllOf
globals()['ConnectionCollectionItem'] = ConnectionCollectionItem
-class ConnectionCollection(ModelComposed):
+class ConnectionCollection(ModelNormal):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
@@ -83,14 +79,7 @@ class ConnectionCollection(ModelComposed):
validations = {
}
- @cached_property
- def additional_properties_type():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
- """
- lazy_import()
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
+ additional_properties_type = None
_nullable = False
@@ -107,7 +96,6 @@ class ConnectionCollection(ModelComposed):
lazy_import()
return {
'connections': ([ConnectionCollectionItem],), # noqa: E501
- 'total_entries': (int,), # noqa: E501
}
@cached_property
@@ -117,9 +105,10 @@ class ConnectionCollection(ModelComposed):
attribute_map = {
'connections': 'connections', # noqa: E501
- 'total_entries': 'total_entries', # noqa: E501
}
+ _composed_schemas = {}
+
required_properties = set([
'_data_store',
'_check_type',
@@ -127,9 +116,6 @@ class ConnectionCollection(ModelComposed):
'_path_to_item',
'_configuration',
'_visited_composed_classes',
- '_composed_instances',
- '_var_name_to_model_instances',
- '_additional_properties_model_instances',
])
@convert_js_args_to_python_args
@@ -168,7 +154,6 @@ class ConnectionCollection(ModelComposed):
through its discriminator because we passed in
_visited_composed_classes = (Animal,)
connections ([ConnectionCollectionItem]): [optional] # noqa: E501
- total_entries (int): Count of objects in the current result set.. [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
@@ -194,53 +179,11 @@ class ConnectionCollection(ModelComposed):
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,
- }
- required_args = {
- }
- model_args = {}
- model_args.update(required_args)
- model_args.update(kwargs)
- composed_info = validate_get_composed_info(
- constant_args, model_args, 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]
-
- 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 not in self.attribute_map and \
self._configuration is not None and \
self._configuration.discard_unknown_keys and \
- not self._additional_properties_model_instances:
+ self.additional_properties_type is None:
# discard variable.
continue
setattr(self, var_name, var_value)
-
- @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
- # code would be run when this module is imported, and these composed
- # classes don't exist yet because their module has not finished
- # loading
- lazy_import()
- return {
- 'anyOf': [
- ],
- 'allOf': [
- CollectionInfo,
- ConnectionCollectionAllOf,
- ],
- 'oneOf': [
- ],
- }
diff --git a/airflow_client/client/model/connection_collection_all_of.py b/airflow_client/client/model/connection_collection_all_of.py
deleted file mode 100644
index 5302144..0000000
--- a/airflow_client/client/model/connection_collection_all_of.py
+++ /dev/null
@@ -1,189 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-"""
- 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 [...]
-
- The version of the OpenAPI document: 1.0.0
- Contact: dev@airflow.apache.org
- Generated by: https://openapi-generator.tech
-"""
-
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from airflow_client.client.model_utils import ( # noqa: F401
- ApiTypeError,
- ModelComposed,
- ModelNormal,
- ModelSimple,
- cached_property,
- change_keys_js_to_python,
- convert_js_args_to_python_args,
- date,
- datetime,
- file_type,
- none_type,
- validate_get_composed_info,
-)
-
-def lazy_import():
- from airflow_client.client.model.connection_collection_item import ConnectionCollectionItem
- globals()['ConnectionCollectionItem'] = ConnectionCollectionItem
-
-
-class ConnectionCollectionAllOf(ModelNormal):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
-
- Attributes:
- allowed_values (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- with a capitalized key describing the allowed value and an allowed
- value. These dicts store the allowed enum values.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- discriminator_value_class_map (dict): A dict to go from the discriminator
- variable value to the discriminator class name.
- validations (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- that stores validations for max_length, min_length, max_items,
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
- inclusive_minimum, and regex.
- additional_properties_type (tuple): A tuple of classes accepted
- as additional properties values.
- """
-
- allowed_values = {
- }
-
- validations = {
- }
-
- additional_properties_type = None
-
- _nullable = False
-
- @cached_property
- def openapi_types():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
-
- Returns
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- """
- lazy_import()
- return {
- 'connections': ([ConnectionCollectionItem],), # noqa: E501
- }
-
- @cached_property
- def discriminator():
- return None
-
-
- attribute_map = {
- 'connections': 'connections', # noqa: E501
- }
-
- _composed_schemas = {}
-
- required_properties = set([
- '_data_store',
- '_check_type',
- '_spec_property_naming',
- '_path_to_item',
- '_configuration',
- '_visited_composed_classes',
- ])
-
- @convert_js_args_to_python_args
- def __init__(self, *args, **kwargs): # noqa: E501
- """ConnectionCollectionAllOf - 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,)
- connections ([ConnectionCollectionItem]): [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- 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)
diff --git a/airflow_client/client/model/connection_collection_item.py b/airflow_client/client/model/connection_collection_item.py
index 090ae2a..dffd1ba 100644
--- a/airflow_client/client/model/connection_collection_item.py
+++ b/airflow_client/client/model/connection_collection_item.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/cron_expression.py b/airflow_client/client/model/cron_expression.py
index dc162a6..40b2f45 100644
--- a/airflow_client/client/model/cron_expression.py
+++ b/airflow_client/client/model/cron_expression.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/dag.py b/airflow_client/client/model/dag.py
index da8cd39..fec4ea7 100644
--- a/airflow_client/client/model/dag.py
+++ b/airflow_client/client/model/dag.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
@@ -174,7 +174,7 @@ class DAG(ModelNormal):
through its discriminator because we passed in
_visited_composed_classes = (Animal,)
dag_id (str): The ID of the DAG.. [optional] # noqa: E501
- root_dag_id (str, none_type): If the DAG is SubDAG then it is the top level DAG identifier. Otherwise, null.. [optional] # noqa: E501
+ root_dag_id (str, none_type): If the DAG is SubDAG then it is the top level DAG identifier. Otherwise, nulll.. [optional] # noqa: E501
is_paused (bool, none_type): Whether the DAG is paused.. [optional] # noqa: E501
is_subdag (bool): Whether the DAG is SubDAG.. [optional] # noqa: E501
fileloc (str): The absolute path to the file.. [optional] # noqa: E501
diff --git a/airflow_client/client/model/dag_collection.py b/airflow_client/client/model/dag_collection.py
index 63f457f..57322e3 100644
--- a/airflow_client/client/model/dag_collection.py
+++ b/airflow_client/client/model/dag_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
@@ -45,15 +45,11 @@ from airflow_client.client.model_utils import ( # noqa: F401
)
def lazy_import():
- from airflow_client.client.model.collection_info import CollectionInfo
from airflow_client.client.model.dag import DAG
- from airflow_client.client.model.dag_collection_all_of import DAGCollectionAllOf
- globals()['CollectionInfo'] = CollectionInfo
globals()['DAG'] = DAG
- globals()['DAGCollectionAllOf'] = DAGCollectionAllOf
-class DAGCollection(ModelComposed):
+class DAGCollection(ModelNormal):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
@@ -83,14 +79,7 @@ class DAGCollection(ModelComposed):
validations = {
}
- @cached_property
- def additional_properties_type():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
- """
- lazy_import()
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
+ additional_properties_type = None
_nullable = False
@@ -107,7 +96,6 @@ class DAGCollection(ModelComposed):
lazy_import()
return {
'dags': ([DAG],), # noqa: E501
- 'total_entries': (int,), # noqa: E501
}
@cached_property
@@ -117,9 +105,10 @@ class DAGCollection(ModelComposed):
attribute_map = {
'dags': 'dags', # noqa: E501
- 'total_entries': 'total_entries', # noqa: E501
}
+ _composed_schemas = {}
+
required_properties = set([
'_data_store',
'_check_type',
@@ -127,9 +116,6 @@ class DAGCollection(ModelComposed):
'_path_to_item',
'_configuration',
'_visited_composed_classes',
- '_composed_instances',
- '_var_name_to_model_instances',
- '_additional_properties_model_instances',
])
@convert_js_args_to_python_args
@@ -168,7 +154,6 @@ class DAGCollection(ModelComposed):
through its discriminator because we passed in
_visited_composed_classes = (Animal,)
dags ([DAG]): [optional] # noqa: E501
- total_entries (int): Count of objects in the current result set.. [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
@@ -194,53 +179,11 @@ class DAGCollection(ModelComposed):
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,
- }
- required_args = {
- }
- model_args = {}
- model_args.update(required_args)
- model_args.update(kwargs)
- composed_info = validate_get_composed_info(
- constant_args, model_args, 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]
-
- 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 not in self.attribute_map and \
self._configuration is not None and \
self._configuration.discard_unknown_keys and \
- not self._additional_properties_model_instances:
+ self.additional_properties_type is None:
# discard variable.
continue
setattr(self, var_name, var_value)
-
- @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
- # code would be run when this module is imported, and these composed
- # classes don't exist yet because their module has not finished
- # loading
- lazy_import()
- return {
- 'anyOf': [
- ],
- 'allOf': [
- CollectionInfo,
- DAGCollectionAllOf,
- ],
- 'oneOf': [
- ],
- }
diff --git a/airflow_client/client/model/dag_collection_all_of.py b/airflow_client/client/model/dag_collection_all_of.py
deleted file mode 100644
index 389eed1..0000000
--- a/airflow_client/client/model/dag_collection_all_of.py
+++ /dev/null
@@ -1,189 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-"""
- 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 [...]
-
- The version of the OpenAPI document: 1.0.0
- Contact: dev@airflow.apache.org
- Generated by: https://openapi-generator.tech
-"""
-
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from airflow_client.client.model_utils import ( # noqa: F401
- ApiTypeError,
- ModelComposed,
- ModelNormal,
- ModelSimple,
- cached_property,
- change_keys_js_to_python,
- convert_js_args_to_python_args,
- date,
- datetime,
- file_type,
- none_type,
- validate_get_composed_info,
-)
-
-def lazy_import():
- from airflow_client.client.model.dag import DAG
- globals()['DAG'] = DAG
-
-
-class DAGCollectionAllOf(ModelNormal):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
-
- Attributes:
- allowed_values (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- with a capitalized key describing the allowed value and an allowed
- value. These dicts store the allowed enum values.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- discriminator_value_class_map (dict): A dict to go from the discriminator
- variable value to the discriminator class name.
- validations (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- that stores validations for max_length, min_length, max_items,
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
- inclusive_minimum, and regex.
- additional_properties_type (tuple): A tuple of classes accepted
- as additional properties values.
- """
-
- allowed_values = {
- }
-
- validations = {
- }
-
- additional_properties_type = None
-
- _nullable = False
-
- @cached_property
- def openapi_types():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
-
- Returns
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- """
- lazy_import()
- return {
- 'dags': ([DAG],), # noqa: E501
- }
-
- @cached_property
- def discriminator():
- return None
-
-
- attribute_map = {
- 'dags': 'dags', # noqa: E501
- }
-
- _composed_schemas = {}
-
- required_properties = set([
- '_data_store',
- '_check_type',
- '_spec_property_naming',
- '_path_to_item',
- '_configuration',
- '_visited_composed_classes',
- ])
-
- @convert_js_args_to_python_args
- def __init__(self, *args, **kwargs): # noqa: E501
- """DAGCollectionAllOf - 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,)
- dags ([DAG]): [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- 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)
diff --git a/airflow_client/client/model/dag_detail.py b/airflow_client/client/model/dag_detail.py
index 9d1dd25..50bb398 100644
--- a/airflow_client/client/model/dag_detail.py
+++ b/airflow_client/client/model/dag_detail.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
@@ -206,7 +206,7 @@ class DAGDetail(ModelComposed):
through its discriminator because we passed in
_visited_composed_classes = (Animal,)
dag_id (str): The ID of the DAG.. [optional] # noqa: E501
- root_dag_id (str, none_type): If the DAG is SubDAG then it is the top level DAG identifier. Otherwise, null.. [optional] # noqa: E501
+ root_dag_id (str, none_type): If the DAG is SubDAG then it is the top level DAG identifier. Otherwise, nulll.. [optional] # noqa: E501
is_paused (bool, none_type): Whether the DAG is paused.. [optional] # noqa: E501
is_subdag (bool): Whether the DAG is SubDAG.. [optional] # noqa: E501
fileloc (str): The absolute path to the file.. [optional] # noqa: E501
diff --git a/airflow_client/client/model/dag_detail_all_of.py b/airflow_client/client/model/dag_detail_all_of.py
index 7a54bd7..9bc2075 100644
--- a/airflow_client/client/model/dag_detail_all_of.py
+++ b/airflow_client/client/model/dag_detail_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
diff --git a/airflow_client/client/model/dag_run.py b/airflow_client/client/model/dag_run.py
index 6c4c57a..53b4900 100644
--- a/airflow_client/client/model/dag_run.py
+++ b/airflow_client/client/model/dag_run.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/dag_run_collection.py b/airflow_client/client/model/dag_run_collection.py
index 6424bb8..fd2e5c7 100644
--- a/airflow_client/client/model/dag_run_collection.py
+++ b/airflow_client/client/model/dag_run_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
@@ -45,15 +45,11 @@ from airflow_client.client.model_utils import ( # noqa: F401
)
def lazy_import():
- from airflow_client.client.model.collection_info import CollectionInfo
from airflow_client.client.model.dag_run import DAGRun
- from airflow_client.client.model.dag_run_collection_all_of import DAGRunCollectionAllOf
- globals()['CollectionInfo'] = CollectionInfo
globals()['DAGRun'] = DAGRun
- globals()['DAGRunCollectionAllOf'] = DAGRunCollectionAllOf
-class DAGRunCollection(ModelComposed):
+class DAGRunCollection(ModelNormal):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
@@ -83,14 +79,7 @@ class DAGRunCollection(ModelComposed):
validations = {
}
- @cached_property
- def additional_properties_type():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
- """
- lazy_import()
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
+ additional_properties_type = None
_nullable = False
@@ -107,7 +96,6 @@ class DAGRunCollection(ModelComposed):
lazy_import()
return {
'dag_runs': ([DAGRun],), # noqa: E501
- 'total_entries': (int,), # noqa: E501
}
@cached_property
@@ -117,9 +105,10 @@ class DAGRunCollection(ModelComposed):
attribute_map = {
'dag_runs': 'dag_runs', # noqa: E501
- 'total_entries': 'total_entries', # noqa: E501
}
+ _composed_schemas = {}
+
required_properties = set([
'_data_store',
'_check_type',
@@ -127,9 +116,6 @@ class DAGRunCollection(ModelComposed):
'_path_to_item',
'_configuration',
'_visited_composed_classes',
- '_composed_instances',
- '_var_name_to_model_instances',
- '_additional_properties_model_instances',
])
@convert_js_args_to_python_args
@@ -168,7 +154,6 @@ class DAGRunCollection(ModelComposed):
through its discriminator because we passed in
_visited_composed_classes = (Animal,)
dag_runs ([DAGRun]): [optional] # noqa: E501
- total_entries (int): Count of objects in the current result set.. [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
@@ -194,53 +179,11 @@ class DAGRunCollection(ModelComposed):
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,
- }
- required_args = {
- }
- model_args = {}
- model_args.update(required_args)
- model_args.update(kwargs)
- composed_info = validate_get_composed_info(
- constant_args, model_args, 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]
-
- 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 not in self.attribute_map and \
self._configuration is not None and \
self._configuration.discard_unknown_keys and \
- not self._additional_properties_model_instances:
+ self.additional_properties_type is None:
# discard variable.
continue
setattr(self, var_name, var_value)
-
- @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
- # code would be run when this module is imported, and these composed
- # classes don't exist yet because their module has not finished
- # loading
- lazy_import()
- return {
- 'anyOf': [
- ],
- 'allOf': [
- CollectionInfo,
- DAGRunCollectionAllOf,
- ],
- 'oneOf': [
- ],
- }
diff --git a/airflow_client/client/model/dag_run_collection_all_of.py b/airflow_client/client/model/dag_run_collection_all_of.py
deleted file mode 100644
index 13a285c..0000000
--- a/airflow_client/client/model/dag_run_collection_all_of.py
+++ /dev/null
@@ -1,189 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-"""
- 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 [...]
-
- The version of the OpenAPI document: 1.0.0
- Contact: dev@airflow.apache.org
- Generated by: https://openapi-generator.tech
-"""
-
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from airflow_client.client.model_utils import ( # noqa: F401
- ApiTypeError,
- ModelComposed,
- ModelNormal,
- ModelSimple,
- cached_property,
- change_keys_js_to_python,
- convert_js_args_to_python_args,
- date,
- datetime,
- file_type,
- none_type,
- validate_get_composed_info,
-)
-
-def lazy_import():
- from airflow_client.client.model.dag_run import DAGRun
- globals()['DAGRun'] = DAGRun
-
-
-class DAGRunCollectionAllOf(ModelNormal):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
-
- Attributes:
- allowed_values (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- with a capitalized key describing the allowed value and an allowed
- value. These dicts store the allowed enum values.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- discriminator_value_class_map (dict): A dict to go from the discriminator
- variable value to the discriminator class name.
- validations (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- that stores validations for max_length, min_length, max_items,
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
- inclusive_minimum, and regex.
- additional_properties_type (tuple): A tuple of classes accepted
- as additional properties values.
- """
-
- allowed_values = {
- }
-
- validations = {
- }
-
- additional_properties_type = None
-
- _nullable = False
-
- @cached_property
- def openapi_types():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
-
- Returns
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- """
- lazy_import()
- return {
- 'dag_runs': ([DAGRun],), # noqa: E501
- }
-
- @cached_property
- def discriminator():
- return None
-
-
- attribute_map = {
- 'dag_runs': 'dag_runs', # noqa: E501
- }
-
- _composed_schemas = {}
-
- required_properties = set([
- '_data_store',
- '_check_type',
- '_spec_property_naming',
- '_path_to_item',
- '_configuration',
- '_visited_composed_classes',
- ])
-
- @convert_js_args_to_python_args
- def __init__(self, *args, **kwargs): # noqa: E501
- """DAGRunCollectionAllOf - 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,)
- dag_runs ([DAGRun]): [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- 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)
diff --git a/airflow_client/client/model/dag_state.py b/airflow_client/client/model/dag_state.py
index 8254c03..048500f 100644
--- a/airflow_client/client/model/dag_state.py
+++ b/airflow_client/client/model/dag_state.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/error.py b/airflow_client/client/model/error.py
index 9abdfce..df0a954 100644
--- a/airflow_client/client/model/error.py
+++ b/airflow_client/client/model/error.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/event_log.py b/airflow_client/client/model/event_log.py
index 55cd0a8..0724eb3 100644
--- a/airflow_client/client/model/event_log.py
+++ b/airflow_client/client/model/event_log.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/event_log_collection.py b/airflow_client/client/model/event_log_collection.py
index 578a0d0..c3d519a 100644
--- a/airflow_client/client/model/event_log_collection.py
+++ b/airflow_client/client/model/event_log_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
@@ -45,15 +45,11 @@ from airflow_client.client.model_utils import ( # noqa: F401
)
def lazy_import():
- from airflow_client.client.model.collection_info import CollectionInfo
from airflow_client.client.model.event_log import EventLog
- from airflow_client.client.model.event_log_collection_all_of import EventLogCollectionAllOf
- globals()['CollectionInfo'] = CollectionInfo
globals()['EventLog'] = EventLog
- globals()['EventLogCollectionAllOf'] = EventLogCollectionAllOf
-class EventLogCollection(ModelComposed):
+class EventLogCollection(ModelNormal):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
@@ -83,14 +79,7 @@ class EventLogCollection(ModelComposed):
validations = {
}
- @cached_property
- def additional_properties_type():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
- """
- lazy_import()
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
+ additional_properties_type = None
_nullable = False
@@ -107,7 +96,6 @@ class EventLogCollection(ModelComposed):
lazy_import()
return {
'event_logs': ([EventLog],), # noqa: E501
- 'total_entries': (int,), # noqa: E501
}
@cached_property
@@ -117,9 +105,10 @@ class EventLogCollection(ModelComposed):
attribute_map = {
'event_logs': 'event_logs', # noqa: E501
- 'total_entries': 'total_entries', # noqa: E501
}
+ _composed_schemas = {}
+
required_properties = set([
'_data_store',
'_check_type',
@@ -127,9 +116,6 @@ class EventLogCollection(ModelComposed):
'_path_to_item',
'_configuration',
'_visited_composed_classes',
- '_composed_instances',
- '_var_name_to_model_instances',
- '_additional_properties_model_instances',
])
@convert_js_args_to_python_args
@@ -168,7 +154,6 @@ class EventLogCollection(ModelComposed):
through its discriminator because we passed in
_visited_composed_classes = (Animal,)
event_logs ([EventLog]): [optional] # noqa: E501
- total_entries (int): Count of objects in the current result set.. [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
@@ -194,53 +179,11 @@ class EventLogCollection(ModelComposed):
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,
- }
- required_args = {
- }
- model_args = {}
- model_args.update(required_args)
- model_args.update(kwargs)
- composed_info = validate_get_composed_info(
- constant_args, model_args, 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]
-
- 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 not in self.attribute_map and \
self._configuration is not None and \
self._configuration.discard_unknown_keys and \
- not self._additional_properties_model_instances:
+ self.additional_properties_type is None:
# discard variable.
continue
setattr(self, var_name, var_value)
-
- @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
- # code would be run when this module is imported, and these composed
- # classes don't exist yet because their module has not finished
- # loading
- lazy_import()
- return {
- 'anyOf': [
- ],
- 'allOf': [
- CollectionInfo,
- EventLogCollectionAllOf,
- ],
- 'oneOf': [
- ],
- }
diff --git a/airflow_client/client/model/event_log_collection_all_of.py b/airflow_client/client/model/event_log_collection_all_of.py
deleted file mode 100644
index 3f26d73..0000000
--- a/airflow_client/client/model/event_log_collection_all_of.py
+++ /dev/null
@@ -1,189 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-"""
- 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 [...]
-
- The version of the OpenAPI document: 1.0.0
- Contact: dev@airflow.apache.org
- Generated by: https://openapi-generator.tech
-"""
-
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from airflow_client.client.model_utils import ( # noqa: F401
- ApiTypeError,
- ModelComposed,
- ModelNormal,
- ModelSimple,
- cached_property,
- change_keys_js_to_python,
- convert_js_args_to_python_args,
- date,
- datetime,
- file_type,
- none_type,
- validate_get_composed_info,
-)
-
-def lazy_import():
- from airflow_client.client.model.event_log import EventLog
- globals()['EventLog'] = EventLog
-
-
-class EventLogCollectionAllOf(ModelNormal):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
-
- Attributes:
- allowed_values (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- with a capitalized key describing the allowed value and an allowed
- value. These dicts store the allowed enum values.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- discriminator_value_class_map (dict): A dict to go from the discriminator
- variable value to the discriminator class name.
- validations (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- that stores validations for max_length, min_length, max_items,
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
- inclusive_minimum, and regex.
- additional_properties_type (tuple): A tuple of classes accepted
- as additional properties values.
- """
-
- allowed_values = {
- }
-
- validations = {
- }
-
- additional_properties_type = None
-
- _nullable = False
-
- @cached_property
- def openapi_types():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
-
- Returns
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- """
- lazy_import()
- return {
- 'event_logs': ([EventLog],), # noqa: E501
- }
-
- @cached_property
- def discriminator():
- return None
-
-
- attribute_map = {
- 'event_logs': 'event_logs', # noqa: E501
- }
-
- _composed_schemas = {}
-
- required_properties = set([
- '_data_store',
- '_check_type',
- '_spec_property_naming',
- '_path_to_item',
- '_configuration',
- '_visited_composed_classes',
- ])
-
- @convert_js_args_to_python_args
- def __init__(self, *args, **kwargs): # noqa: E501
- """EventLogCollectionAllOf - 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,)
- event_logs ([EventLog]): [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- 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)
diff --git a/airflow_client/client/model/extra_link.py b/airflow_client/client/model/extra_link.py
index 9f873fc..01fd011 100644
--- a/airflow_client/client/model/extra_link.py
+++ b/airflow_client/client/model/extra_link.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/extra_link_collection.py b/airflow_client/client/model/extra_link_collection.py
index fefec74..02c1cd7 100644
--- a/airflow_client/client/model/extra_link_collection.py
+++ b/airflow_client/client/model/extra_link_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
diff --git a/airflow_client/client/model/health_info.py b/airflow_client/client/model/health_info.py
index 092c602..aa2f5d7 100644
--- a/airflow_client/client/model/health_info.py
+++ b/airflow_client/client/model/health_info.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/health_status.py b/airflow_client/client/model/health_status.py
index 88e6461..3e49400 100644
--- a/airflow_client/client/model/health_status.py
+++ b/airflow_client/client/model/health_status.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/import_error.py b/airflow_client/client/model/import_error.py
index afa1207..bc6c99d 100644
--- a/airflow_client/client/model/import_error.py
+++ b/airflow_client/client/model/import_error.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/import_error_collection.py b/airflow_client/client/model/import_error_collection.py
index ccf5904..6570247 100644
--- a/airflow_client/client/model/import_error_collection.py
+++ b/airflow_client/client/model/import_error_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
@@ -45,15 +45,11 @@ from airflow_client.client.model_utils import ( # noqa: F401
)
def lazy_import():
- from airflow_client.client.model.collection_info import CollectionInfo
from airflow_client.client.model.import_error import ImportError
- from airflow_client.client.model.import_error_collection_all_of import ImportErrorCollectionAllOf
- globals()['CollectionInfo'] = CollectionInfo
globals()['ImportError'] = ImportError
- globals()['ImportErrorCollectionAllOf'] = ImportErrorCollectionAllOf
-class ImportErrorCollection(ModelComposed):
+class ImportErrorCollection(ModelNormal):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
@@ -83,14 +79,7 @@ class ImportErrorCollection(ModelComposed):
validations = {
}
- @cached_property
- def additional_properties_type():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
- """
- lazy_import()
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
+ additional_properties_type = None
_nullable = False
@@ -107,7 +96,6 @@ class ImportErrorCollection(ModelComposed):
lazy_import()
return {
'import_errors': ([ImportError],), # noqa: E501
- 'total_entries': (int,), # noqa: E501
}
@cached_property
@@ -117,9 +105,10 @@ class ImportErrorCollection(ModelComposed):
attribute_map = {
'import_errors': 'import_errors', # noqa: E501
- 'total_entries': 'total_entries', # noqa: E501
}
+ _composed_schemas = {}
+
required_properties = set([
'_data_store',
'_check_type',
@@ -127,9 +116,6 @@ class ImportErrorCollection(ModelComposed):
'_path_to_item',
'_configuration',
'_visited_composed_classes',
- '_composed_instances',
- '_var_name_to_model_instances',
- '_additional_properties_model_instances',
])
@convert_js_args_to_python_args
@@ -168,7 +154,6 @@ class ImportErrorCollection(ModelComposed):
through its discriminator because we passed in
_visited_composed_classes = (Animal,)
import_errors ([ImportError]): [optional] # noqa: E501
- total_entries (int): Count of objects in the current result set.. [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
@@ -194,53 +179,11 @@ class ImportErrorCollection(ModelComposed):
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,
- }
- required_args = {
- }
- model_args = {}
- model_args.update(required_args)
- model_args.update(kwargs)
- composed_info = validate_get_composed_info(
- constant_args, model_args, 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]
-
- 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 not in self.attribute_map and \
self._configuration is not None and \
self._configuration.discard_unknown_keys and \
- not self._additional_properties_model_instances:
+ self.additional_properties_type is None:
# discard variable.
continue
setattr(self, var_name, var_value)
-
- @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
- # code would be run when this module is imported, and these composed
- # classes don't exist yet because their module has not finished
- # loading
- lazy_import()
- return {
- 'anyOf': [
- ],
- 'allOf': [
- CollectionInfo,
- ImportErrorCollectionAllOf,
- ],
- 'oneOf': [
- ],
- }
diff --git a/airflow_client/client/model/import_error_collection_all_of.py b/airflow_client/client/model/import_error_collection_all_of.py
deleted file mode 100644
index 2575bb2..0000000
--- a/airflow_client/client/model/import_error_collection_all_of.py
+++ /dev/null
@@ -1,189 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-"""
- 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 [...]
-
- The version of the OpenAPI document: 1.0.0
- Contact: dev@airflow.apache.org
- Generated by: https://openapi-generator.tech
-"""
-
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from airflow_client.client.model_utils import ( # noqa: F401
- ApiTypeError,
- ModelComposed,
- ModelNormal,
- ModelSimple,
- cached_property,
- change_keys_js_to_python,
- convert_js_args_to_python_args,
- date,
- datetime,
- file_type,
- none_type,
- validate_get_composed_info,
-)
-
-def lazy_import():
- from airflow_client.client.model.import_error import ImportError
- globals()['ImportError'] = ImportError
-
-
-class ImportErrorCollectionAllOf(ModelNormal):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
-
- Attributes:
- allowed_values (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- with a capitalized key describing the allowed value and an allowed
- value. These dicts store the allowed enum values.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- discriminator_value_class_map (dict): A dict to go from the discriminator
- variable value to the discriminator class name.
- validations (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- that stores validations for max_length, min_length, max_items,
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
- inclusive_minimum, and regex.
- additional_properties_type (tuple): A tuple of classes accepted
- as additional properties values.
- """
-
- allowed_values = {
- }
-
- validations = {
- }
-
- additional_properties_type = None
-
- _nullable = False
-
- @cached_property
- def openapi_types():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
-
- Returns
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- """
- lazy_import()
- return {
- 'import_errors': ([ImportError],), # noqa: E501
- }
-
- @cached_property
- def discriminator():
- return None
-
-
- attribute_map = {
- 'import_errors': 'import_errors', # noqa: E501
- }
-
- _composed_schemas = {}
-
- required_properties = set([
- '_data_store',
- '_check_type',
- '_spec_property_naming',
- '_path_to_item',
- '_configuration',
- '_visited_composed_classes',
- ])
-
- @convert_js_args_to_python_args
- def __init__(self, *args, **kwargs): # noqa: E501
- """ImportErrorCollectionAllOf - 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,)
- import_errors ([ImportError]): [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- 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)
diff --git a/airflow_client/client/model/inline_response200.py b/airflow_client/client/model/inline_response200.py
index e7f2fcb..89f5dac 100644
--- a/airflow_client/client/model/inline_response200.py
+++ b/airflow_client/client/model/inline_response200.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/inline_response2001.py b/airflow_client/client/model/inline_response2001.py
index 91bc286..604e164 100644
--- a/airflow_client/client/model/inline_response2001.py
+++ b/airflow_client/client/model/inline_response2001.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/list_dag_runs_form.py b/airflow_client/client/model/list_dag_runs_form.py
index 732a9df..7bcd742 100644
--- a/airflow_client/client/model/list_dag_runs_form.py
+++ b/airflow_client/client/model/list_dag_runs_form.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/list_task_instance_form.py b/airflow_client/client/model/list_task_instance_form.py
index 06ec5da..aff7ef9 100644
--- a/airflow_client/client/model/list_task_instance_form.py
+++ b/airflow_client/client/model/list_task_instance_form.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/metadatabase_status.py b/airflow_client/client/model/metadatabase_status.py
index f81f200..b59926b 100644
--- a/airflow_client/client/model/metadatabase_status.py
+++ b/airflow_client/client/model/metadatabase_status.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/plugin_collection.py b/airflow_client/client/model/plugin_collection.py
deleted file mode 100644
index b0084af..0000000
--- a/airflow_client/client/model/plugin_collection.py
+++ /dev/null
@@ -1,246 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-"""
- 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 [...]
-
- The version of the OpenAPI document: 1.0.0
- Contact: dev@airflow.apache.org
- Generated by: https://openapi-generator.tech
-"""
-
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from airflow_client.client.model_utils import ( # noqa: F401
- ApiTypeError,
- ModelComposed,
- ModelNormal,
- ModelSimple,
- cached_property,
- change_keys_js_to_python,
- convert_js_args_to_python_args,
- date,
- datetime,
- file_type,
- none_type,
- validate_get_composed_info,
-)
-
-def lazy_import():
- from airflow_client.client.model.collection_info import CollectionInfo
- from airflow_client.client.model.plugin_collection_all_of import PluginCollectionAllOf
- from airflow_client.client.model.plugin_collection_item import PluginCollectionItem
- globals()['CollectionInfo'] = CollectionInfo
- globals()['PluginCollectionAllOf'] = PluginCollectionAllOf
- globals()['PluginCollectionItem'] = PluginCollectionItem
-
-
-class PluginCollection(ModelComposed):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
-
- Attributes:
- allowed_values (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- with a capitalized key describing the allowed value and an allowed
- value. These dicts store the allowed enum values.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- discriminator_value_class_map (dict): A dict to go from the discriminator
- variable value to the discriminator class name.
- validations (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- that stores validations for max_length, min_length, max_items,
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
- inclusive_minimum, and regex.
- additional_properties_type (tuple): A tuple of classes accepted
- as additional properties values.
- """
-
- allowed_values = {
- }
-
- validations = {
- }
-
- @cached_property
- def additional_properties_type():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
- """
- lazy_import()
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
-
- _nullable = False
-
- @cached_property
- def openapi_types():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
-
- Returns
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- """
- lazy_import()
- return {
- 'plugins': ([PluginCollectionItem],), # noqa: E501
- 'total_entries': (int,), # noqa: E501
- }
-
- @cached_property
- def discriminator():
- return None
-
-
- attribute_map = {
- 'plugins': 'plugins', # noqa: E501
- 'total_entries': 'total_entries', # noqa: E501
- }
-
- required_properties = set([
- '_data_store',
- '_check_type',
- '_spec_property_naming',
- '_path_to_item',
- '_configuration',
- '_visited_composed_classes',
- '_composed_instances',
- '_var_name_to_model_instances',
- '_additional_properties_model_instances',
- ])
-
- @convert_js_args_to_python_args
- def __init__(self, *args, **kwargs): # noqa: E501
- """PluginCollection - 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,)
- plugins ([PluginCollectionItem]): [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', ())
-
- 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,
- }
- required_args = {
- }
- model_args = {}
- model_args.update(required_args)
- model_args.update(kwargs)
- composed_info = validate_get_composed_info(
- constant_args, model_args, 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]
-
- 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 \
- self._configuration is not None and \
- self._configuration.discard_unknown_keys and \
- not self._additional_properties_model_instances:
- # discard variable.
- continue
- setattr(self, var_name, var_value)
-
- @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
- # code would be run when this module is imported, and these composed
- # classes don't exist yet because their module has not finished
- # loading
- lazy_import()
- return {
- 'anyOf': [
- ],
- 'allOf': [
- CollectionInfo,
- PluginCollectionAllOf,
- ],
- 'oneOf': [
- ],
- }
diff --git a/airflow_client/client/model/plugin_collection_all_of.py b/airflow_client/client/model/plugin_collection_all_of.py
deleted file mode 100644
index 4d87b63..0000000
--- a/airflow_client/client/model/plugin_collection_all_of.py
+++ /dev/null
@@ -1,189 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-"""
- 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 [...]
-
- The version of the OpenAPI document: 1.0.0
- Contact: dev@airflow.apache.org
- Generated by: https://openapi-generator.tech
-"""
-
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from airflow_client.client.model_utils import ( # noqa: F401
- ApiTypeError,
- ModelComposed,
- ModelNormal,
- ModelSimple,
- cached_property,
- change_keys_js_to_python,
- convert_js_args_to_python_args,
- date,
- datetime,
- file_type,
- none_type,
- validate_get_composed_info,
-)
-
-def lazy_import():
- from airflow_client.client.model.plugin_collection_item import PluginCollectionItem
- globals()['PluginCollectionItem'] = PluginCollectionItem
-
-
-class PluginCollectionAllOf(ModelNormal):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
-
- Attributes:
- allowed_values (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- with a capitalized key describing the allowed value and an allowed
- value. These dicts store the allowed enum values.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- discriminator_value_class_map (dict): A dict to go from the discriminator
- variable value to the discriminator class name.
- validations (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- that stores validations for max_length, min_length, max_items,
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
- inclusive_minimum, and regex.
- additional_properties_type (tuple): A tuple of classes accepted
- as additional properties values.
- """
-
- allowed_values = {
- }
-
- validations = {
- }
-
- additional_properties_type = None
-
- _nullable = False
-
- @cached_property
- def openapi_types():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
-
- Returns
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- """
- lazy_import()
- return {
- 'plugins': ([PluginCollectionItem],), # noqa: E501
- }
-
- @cached_property
- def discriminator():
- return None
-
-
- attribute_map = {
- 'plugins': 'plugins', # noqa: E501
- }
-
- _composed_schemas = {}
-
- required_properties = set([
- '_data_store',
- '_check_type',
- '_spec_property_naming',
- '_path_to_item',
- '_configuration',
- '_visited_composed_classes',
- ])
-
- @convert_js_args_to_python_args
- def __init__(self, *args, **kwargs): # noqa: E501
- """PluginCollectionAllOf - 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,)
- plugins ([PluginCollectionItem]): [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- 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)
diff --git a/airflow_client/client/model/plugin_collection_item.py b/airflow_client/client/model/plugin_collection_item.py
deleted file mode 100644
index 7b058fc..0000000
--- a/airflow_client/client/model/plugin_collection_item.py
+++ /dev/null
@@ -1,214 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-"""
- 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 [...]
-
- The version of the OpenAPI document: 1.0.0
- Contact: dev@airflow.apache.org
- Generated by: https://openapi-generator.tech
-"""
-
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from airflow_client.client.model_utils import ( # noqa: F401
- ApiTypeError,
- ModelComposed,
- ModelNormal,
- ModelSimple,
- cached_property,
- change_keys_js_to_python,
- convert_js_args_to_python_args,
- date,
- datetime,
- file_type,
- none_type,
- validate_get_composed_info,
-)
-
-
-class PluginCollectionItem(ModelNormal):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
-
- Attributes:
- allowed_values (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- with a capitalized key describing the allowed value and an allowed
- value. These dicts store the allowed enum values.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- discriminator_value_class_map (dict): A dict to go from the discriminator
- variable value to the discriminator class name.
- validations (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- that stores validations for max_length, min_length, max_items,
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
- inclusive_minimum, and regex.
- additional_properties_type (tuple): A tuple of classes accepted
- as additional properties values.
- """
-
- allowed_values = {
- }
-
- validations = {
- }
-
- additional_properties_type = None
-
- _nullable = False
-
- @cached_property
- def openapi_types():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
-
- Returns
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- """
- return {
- 'number': (str,), # noqa: E501
- 'name': (str,), # noqa: E501
- 'hooks': ([str, none_type],), # noqa: E501
- 'executors': ([str, none_type],), # noqa: E501
- 'macros': ([{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type],), # noqa: E501
- 'flask_blueprints': ([{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type],), # noqa: E501
- 'appbuilder_views': ([{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type],), # noqa: E501
- 'appbuilder_menu_items': ([{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type],), # noqa: E501
- 'global_operator_extra_links': ([{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type],), # noqa: E501
- 'operator_extra_links': ([{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type],), # noqa: E501
- 'source': (str, none_type,), # noqa: E501
- }
-
- @cached_property
- def discriminator():
- return None
-
-
- attribute_map = {
- 'number': 'number', # noqa: E501
- 'name': 'name', # noqa: E501
- 'hooks': 'hooks', # noqa: E501
- 'executors': 'executors', # noqa: E501
- 'macros': 'macros', # noqa: E501
- 'flask_blueprints': 'flask_blueprints', # noqa: E501
- 'appbuilder_views': 'appbuilder_views', # noqa: E501
- 'appbuilder_menu_items': 'appbuilder_menu_items', # noqa: E501
- 'global_operator_extra_links': 'global_operator_extra_links', # noqa: E501
- 'operator_extra_links': 'operator_extra_links', # noqa: E501
- 'source': 'source', # noqa: E501
- }
-
- _composed_schemas = {}
-
- required_properties = set([
- '_data_store',
- '_check_type',
- '_spec_property_naming',
- '_path_to_item',
- '_configuration',
- '_visited_composed_classes',
- ])
-
- @convert_js_args_to_python_args
- def __init__(self, *args, **kwargs): # noqa: E501
- """PluginCollectionItem - 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,)
- number (str): The plugin number. [optional] # noqa: E501
- name (str): The name of the plugin. [optional] # noqa: E501
- hooks ([str, none_type]): The plugin hooks. [optional] # noqa: E501
- executors ([str, none_type]): The plugin executors. [optional] # noqa: E501
- macros ([{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type]): The plugin macros. [optional] # noqa: E501
- flask_blueprints ([{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type]): The flask blueprints. [optional] # noqa: E501
- appbuilder_views ([{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type]): The appuilder views. [optional] # noqa: E501
- appbuilder_menu_items ([{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type]): The Flask Appbuilder menu items. [optional] # noqa: E501
- global_operator_extra_links ([{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type]): The global operator extra links. [optional] # noqa: E501
- operator_extra_links ([{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type]): Operator extra links. [optional] # noqa: E501
- source (str, none_type): The plugin source. [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- 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)
diff --git a/airflow_client/client/model/pool.py b/airflow_client/client/model/pool.py
index 56d85da..c61e33e 100644
--- a/airflow_client/client/model/pool.py
+++ b/airflow_client/client/model/pool.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/pool_collection.py b/airflow_client/client/model/pool_collection.py
index 2120150..e6b221a 100644
--- a/airflow_client/client/model/pool_collection.py
+++ b/airflow_client/client/model/pool_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
@@ -45,15 +45,11 @@ from airflow_client.client.model_utils import ( # noqa: F401
)
def lazy_import():
- from airflow_client.client.model.collection_info import CollectionInfo
from airflow_client.client.model.pool import Pool
- from airflow_client.client.model.pool_collection_all_of import PoolCollectionAllOf
- globals()['CollectionInfo'] = CollectionInfo
globals()['Pool'] = Pool
- globals()['PoolCollectionAllOf'] = PoolCollectionAllOf
-class PoolCollection(ModelComposed):
+class PoolCollection(ModelNormal):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
@@ -83,14 +79,7 @@ class PoolCollection(ModelComposed):
validations = {
}
- @cached_property
- def additional_properties_type():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
- """
- lazy_import()
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
+ additional_properties_type = None
_nullable = False
@@ -107,7 +96,6 @@ class PoolCollection(ModelComposed):
lazy_import()
return {
'pools': ([Pool],), # noqa: E501
- 'total_entries': (int,), # noqa: E501
}
@cached_property
@@ -117,9 +105,10 @@ class PoolCollection(ModelComposed):
attribute_map = {
'pools': 'pools', # noqa: E501
- 'total_entries': 'total_entries', # noqa: E501
}
+ _composed_schemas = {}
+
required_properties = set([
'_data_store',
'_check_type',
@@ -127,9 +116,6 @@ class PoolCollection(ModelComposed):
'_path_to_item',
'_configuration',
'_visited_composed_classes',
- '_composed_instances',
- '_var_name_to_model_instances',
- '_additional_properties_model_instances',
])
@convert_js_args_to_python_args
@@ -168,7 +154,6 @@ class PoolCollection(ModelComposed):
through its discriminator because we passed in
_visited_composed_classes = (Animal,)
pools ([Pool]): [optional] # noqa: E501
- total_entries (int): Count of objects in the current result set.. [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
@@ -194,53 +179,11 @@ class PoolCollection(ModelComposed):
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,
- }
- required_args = {
- }
- model_args = {}
- model_args.update(required_args)
- model_args.update(kwargs)
- composed_info = validate_get_composed_info(
- constant_args, model_args, 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]
-
- 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 not in self.attribute_map and \
self._configuration is not None and \
self._configuration.discard_unknown_keys and \
- not self._additional_properties_model_instances:
+ self.additional_properties_type is None:
# discard variable.
continue
setattr(self, var_name, var_value)
-
- @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
- # code would be run when this module is imported, and these composed
- # classes don't exist yet because their module has not finished
- # loading
- lazy_import()
- return {
- 'anyOf': [
- ],
- 'allOf': [
- CollectionInfo,
- PoolCollectionAllOf,
- ],
- 'oneOf': [
- ],
- }
diff --git a/airflow_client/client/model/pool_collection_all_of.py b/airflow_client/client/model/pool_collection_all_of.py
deleted file mode 100644
index e85aa71..0000000
--- a/airflow_client/client/model/pool_collection_all_of.py
+++ /dev/null
@@ -1,189 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-"""
- 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 [...]
-
- The version of the OpenAPI document: 1.0.0
- Contact: dev@airflow.apache.org
- Generated by: https://openapi-generator.tech
-"""
-
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from airflow_client.client.model_utils import ( # noqa: F401
- ApiTypeError,
- ModelComposed,
- ModelNormal,
- ModelSimple,
- cached_property,
- change_keys_js_to_python,
- convert_js_args_to_python_args,
- date,
- datetime,
- file_type,
- none_type,
- validate_get_composed_info,
-)
-
-def lazy_import():
- from airflow_client.client.model.pool import Pool
- globals()['Pool'] = Pool
-
-
-class PoolCollectionAllOf(ModelNormal):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
-
- Attributes:
- allowed_values (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- with a capitalized key describing the allowed value and an allowed
- value. These dicts store the allowed enum values.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- discriminator_value_class_map (dict): A dict to go from the discriminator
- variable value to the discriminator class name.
- validations (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- that stores validations for max_length, min_length, max_items,
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
- inclusive_minimum, and regex.
- additional_properties_type (tuple): A tuple of classes accepted
- as additional properties values.
- """
-
- allowed_values = {
- }
-
- validations = {
- }
-
- additional_properties_type = None
-
- _nullable = False
-
- @cached_property
- def openapi_types():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
-
- Returns
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- """
- lazy_import()
- return {
- 'pools': ([Pool],), # noqa: E501
- }
-
- @cached_property
- def discriminator():
- return None
-
-
- attribute_map = {
- 'pools': 'pools', # noqa: E501
- }
-
- _composed_schemas = {}
-
- required_properties = set([
- '_data_store',
- '_check_type',
- '_spec_property_naming',
- '_path_to_item',
- '_configuration',
- '_visited_composed_classes',
- ])
-
- @convert_js_args_to_python_args
- def __init__(self, *args, **kwargs): # noqa: E501
- """PoolCollectionAllOf - 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,)
- pools ([Pool]): [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- 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)
diff --git a/airflow_client/client/model/relative_delta.py b/airflow_client/client/model/relative_delta.py
index 76d3432..917b9c4 100644
--- a/airflow_client/client/model/relative_delta.py
+++ b/airflow_client/client/model/relative_delta.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/resource.py b/airflow_client/client/model/resource.py
deleted file mode 100644
index b1cf1ba..0000000
--- a/airflow_client/client/model/resource.py
+++ /dev/null
@@ -1,184 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-"""
- 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 [...]
-
- The version of the OpenAPI document: 1.0.0
- Contact: dev@airflow.apache.org
- Generated by: https://openapi-generator.tech
-"""
-
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from airflow_client.client.model_utils import ( # noqa: F401
- ApiTypeError,
- ModelComposed,
- ModelNormal,
- ModelSimple,
- cached_property,
- change_keys_js_to_python,
- convert_js_args_to_python_args,
- date,
- datetime,
- file_type,
- none_type,
- validate_get_composed_info,
-)
-
-
-class Resource(ModelNormal):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
-
- Attributes:
- allowed_values (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- with a capitalized key describing the allowed value and an allowed
- value. These dicts store the allowed enum values.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- discriminator_value_class_map (dict): A dict to go from the discriminator
- variable value to the discriminator class name.
- validations (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- that stores validations for max_length, min_length, max_items,
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
- inclusive_minimum, and regex.
- additional_properties_type (tuple): A tuple of classes accepted
- as additional properties values.
- """
-
- allowed_values = {
- }
-
- validations = {
- }
-
- additional_properties_type = None
-
- _nullable = False
-
- @cached_property
- def openapi_types():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
-
- Returns
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- """
- return {
- 'name': (str,), # noqa: E501
- }
-
- @cached_property
- def discriminator():
- return None
-
-
- attribute_map = {
- 'name': 'name', # noqa: E501
- }
-
- _composed_schemas = {}
-
- required_properties = set([
- '_data_store',
- '_check_type',
- '_spec_property_naming',
- '_path_to_item',
- '_configuration',
- '_visited_composed_classes',
- ])
-
- @convert_js_args_to_python_args
- def __init__(self, *args, **kwargs): # noqa: E501
- """Resource - 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 resource. [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- 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)
diff --git a/airflow_client/client/model/role.py b/airflow_client/client/model/role.py
deleted file mode 100644
index ab06663..0000000
--- a/airflow_client/client/model/role.py
+++ /dev/null
@@ -1,192 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-"""
- 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 [...]
-
- The version of the OpenAPI document: 1.0.0
- Contact: dev@airflow.apache.org
- Generated by: https://openapi-generator.tech
-"""
-
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from airflow_client.client.model_utils import ( # noqa: F401
- ApiTypeError,
- ModelComposed,
- ModelNormal,
- ModelSimple,
- cached_property,
- change_keys_js_to_python,
- convert_js_args_to_python_args,
- date,
- datetime,
- file_type,
- none_type,
- validate_get_composed_info,
-)
-
-def lazy_import():
- from airflow_client.client.model.action_resource import ActionResource
- globals()['ActionResource'] = ActionResource
-
-
-class Role(ModelNormal):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
-
- Attributes:
- allowed_values (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- with a capitalized key describing the allowed value and an allowed
- value. These dicts store the allowed enum values.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- discriminator_value_class_map (dict): A dict to go from the discriminator
- variable value to the discriminator class name.
- validations (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- that stores validations for max_length, min_length, max_items,
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
- inclusive_minimum, and regex.
- additional_properties_type (tuple): A tuple of classes accepted
- as additional properties values.
- """
-
- allowed_values = {
- }
-
- validations = {
- }
-
- additional_properties_type = None
-
- _nullable = False
-
- @cached_property
- def openapi_types():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
-
- Returns
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- """
- lazy_import()
- return {
- 'name': (str,), # noqa: E501
- 'actions': ([ActionResource],), # noqa: E501
- }
-
- @cached_property
- def discriminator():
- return None
-
-
- attribute_map = {
- 'name': 'name', # noqa: E501
- 'actions': 'actions', # noqa: E501
- }
-
- _composed_schemas = {}
-
- required_properties = set([
- '_data_store',
- '_check_type',
- '_spec_property_naming',
- '_path_to_item',
- '_configuration',
- '_visited_composed_classes',
- ])
-
- @convert_js_args_to_python_args
- def __init__(self, *args, **kwargs): # noqa: E501
- """Role - 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 role. [optional] # noqa: E501
- actions ([ActionResource]): [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- 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)
diff --git a/airflow_client/client/model/role_collection.py b/airflow_client/client/model/role_collection.py
deleted file mode 100644
index b6a2816..0000000
--- a/airflow_client/client/model/role_collection.py
+++ /dev/null
@@ -1,246 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-"""
- 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 [...]
-
- The version of the OpenAPI document: 1.0.0
- Contact: dev@airflow.apache.org
- Generated by: https://openapi-generator.tech
-"""
-
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from airflow_client.client.model_utils import ( # noqa: F401
- ApiTypeError,
- ModelComposed,
- ModelNormal,
- ModelSimple,
- cached_property,
- change_keys_js_to_python,
- convert_js_args_to_python_args,
- date,
- datetime,
- file_type,
- none_type,
- validate_get_composed_info,
-)
-
-def lazy_import():
- from airflow_client.client.model.collection_info import CollectionInfo
- from airflow_client.client.model.role import Role
- from airflow_client.client.model.role_collection_all_of import RoleCollectionAllOf
- globals()['CollectionInfo'] = CollectionInfo
- globals()['Role'] = Role
- globals()['RoleCollectionAllOf'] = RoleCollectionAllOf
-
-
-class RoleCollection(ModelComposed):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
-
- Attributes:
- allowed_values (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- with a capitalized key describing the allowed value and an allowed
- value. These dicts store the allowed enum values.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- discriminator_value_class_map (dict): A dict to go from the discriminator
- variable value to the discriminator class name.
- validations (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- that stores validations for max_length, min_length, max_items,
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
- inclusive_minimum, and regex.
- additional_properties_type (tuple): A tuple of classes accepted
- as additional properties values.
- """
-
- allowed_values = {
- }
-
- validations = {
- }
-
- @cached_property
- def additional_properties_type():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
- """
- lazy_import()
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
-
- _nullable = False
-
- @cached_property
- def openapi_types():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
-
- Returns
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- """
- lazy_import()
- return {
- 'roles': ([Role],), # noqa: E501
- 'total_entries': (int,), # noqa: E501
- }
-
- @cached_property
- def discriminator():
- return None
-
-
- attribute_map = {
- 'roles': 'roles', # noqa: E501
- 'total_entries': 'total_entries', # noqa: E501
- }
-
- required_properties = set([
- '_data_store',
- '_check_type',
- '_spec_property_naming',
- '_path_to_item',
- '_configuration',
- '_visited_composed_classes',
- '_composed_instances',
- '_var_name_to_model_instances',
- '_additional_properties_model_instances',
- ])
-
- @convert_js_args_to_python_args
- def __init__(self, *args, **kwargs): # noqa: E501
- """RoleCollection - 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,)
- roles ([Role]): [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', ())
-
- 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,
- }
- required_args = {
- }
- model_args = {}
- model_args.update(required_args)
- model_args.update(kwargs)
- composed_info = validate_get_composed_info(
- constant_args, model_args, 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]
-
- 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 \
- self._configuration is not None and \
- self._configuration.discard_unknown_keys and \
- not self._additional_properties_model_instances:
- # discard variable.
- continue
- setattr(self, var_name, var_value)
-
- @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
- # code would be run when this module is imported, and these composed
- # classes don't exist yet because their module has not finished
- # loading
- lazy_import()
- return {
- 'anyOf': [
- ],
- 'allOf': [
- CollectionInfo,
- RoleCollectionAllOf,
- ],
- 'oneOf': [
- ],
- }
diff --git a/airflow_client/client/model/role_collection_all_of.py b/airflow_client/client/model/role_collection_all_of.py
deleted file mode 100644
index e27976f..0000000
--- a/airflow_client/client/model/role_collection_all_of.py
+++ /dev/null
@@ -1,189 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-"""
- 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 [...]
-
- The version of the OpenAPI document: 1.0.0
- Contact: dev@airflow.apache.org
- Generated by: https://openapi-generator.tech
-"""
-
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from airflow_client.client.model_utils import ( # noqa: F401
- ApiTypeError,
- ModelComposed,
- ModelNormal,
- ModelSimple,
- cached_property,
- change_keys_js_to_python,
- convert_js_args_to_python_args,
- date,
- datetime,
- file_type,
- none_type,
- validate_get_composed_info,
-)
-
-def lazy_import():
- from airflow_client.client.model.role import Role
- globals()['Role'] = Role
-
-
-class RoleCollectionAllOf(ModelNormal):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
-
- Attributes:
- allowed_values (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- with a capitalized key describing the allowed value and an allowed
- value. These dicts store the allowed enum values.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- discriminator_value_class_map (dict): A dict to go from the discriminator
- variable value to the discriminator class name.
- validations (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- that stores validations for max_length, min_length, max_items,
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
- inclusive_minimum, and regex.
- additional_properties_type (tuple): A tuple of classes accepted
- as additional properties values.
- """
-
- allowed_values = {
- }
-
- validations = {
- }
-
- additional_properties_type = None
-
- _nullable = False
-
- @cached_property
- def openapi_types():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
-
- Returns
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- """
- lazy_import()
- return {
- 'roles': ([Role],), # noqa: E501
- }
-
- @cached_property
- def discriminator():
- return None
-
-
- attribute_map = {
- 'roles': 'roles', # noqa: E501
- }
-
- _composed_schemas = {}
-
- required_properties = set([
- '_data_store',
- '_check_type',
- '_spec_property_naming',
- '_path_to_item',
- '_configuration',
- '_visited_composed_classes',
- ])
-
- @convert_js_args_to_python_args
- def __init__(self, *args, **kwargs): # noqa: E501
- """RoleCollectionAllOf - 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,)
- roles ([Role]): [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- 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)
diff --git a/airflow_client/client/model/schedule_interval.py b/airflow_client/client/model/schedule_interval.py
index 63282a9..4fe951e 100644
--- a/airflow_client/client/model/schedule_interval.py
+++ b/airflow_client/client/model/schedule_interval.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/scheduler_status.py b/airflow_client/client/model/scheduler_status.py
index 42513d7..1c8007d 100644
--- a/airflow_client/client/model/scheduler_status.py
+++ b/airflow_client/client/model/scheduler_status.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/sla_miss.py b/airflow_client/client/model/sla_miss.py
index f3cfa9f..ce26ba9 100644
--- a/airflow_client/client/model/sla_miss.py
+++ b/airflow_client/client/model/sla_miss.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/tag.py b/airflow_client/client/model/tag.py
index 2ab8b76..2ff6f69 100644
--- a/airflow_client/client/model/tag.py
+++ b/airflow_client/client/model/tag.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/task.py b/airflow_client/client/model/task.py
index 918934a..1eb4673 100644
--- a/airflow_client/client/model/task.py
+++ b/airflow_client/client/model/task.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/task_collection.py b/airflow_client/client/model/task_collection.py
index c38de76..bfb58ad 100644
--- a/airflow_client/client/model/task_collection.py
+++ b/airflow_client/client/model/task_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
diff --git a/airflow_client/client/model/task_extra_links.py b/airflow_client/client/model/task_extra_links.py
index 85fe792..e050759 100644
--- a/airflow_client/client/model/task_extra_links.py
+++ b/airflow_client/client/model/task_extra_links.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/task_instance.py b/airflow_client/client/model/task_instance.py
index b28a5a4..6d8adfe 100644
--- a/airflow_client/client/model/task_instance.py
+++ b/airflow_client/client/model/task_instance.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/task_instance_collection.py b/airflow_client/client/model/task_instance_collection.py
index 92df4a2..73cd136 100644
--- a/airflow_client/client/model/task_instance_collection.py
+++ b/airflow_client/client/model/task_instance_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
@@ -45,15 +45,11 @@ from airflow_client.client.model_utils import ( # noqa: F401
)
def lazy_import():
- from airflow_client.client.model.collection_info import CollectionInfo
from airflow_client.client.model.task_instance import TaskInstance
- from airflow_client.client.model.task_instance_collection_all_of import TaskInstanceCollectionAllOf
- globals()['CollectionInfo'] = CollectionInfo
globals()['TaskInstance'] = TaskInstance
- globals()['TaskInstanceCollectionAllOf'] = TaskInstanceCollectionAllOf
-class TaskInstanceCollection(ModelComposed):
+class TaskInstanceCollection(ModelNormal):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
@@ -83,14 +79,7 @@ class TaskInstanceCollection(ModelComposed):
validations = {
}
- @cached_property
- def additional_properties_type():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
- """
- lazy_import()
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
+ additional_properties_type = None
_nullable = False
@@ -107,7 +96,6 @@ class TaskInstanceCollection(ModelComposed):
lazy_import()
return {
'task_instances': ([TaskInstance],), # noqa: E501
- 'total_entries': (int,), # noqa: E501
}
@cached_property
@@ -117,9 +105,10 @@ class TaskInstanceCollection(ModelComposed):
attribute_map = {
'task_instances': 'task_instances', # noqa: E501
- 'total_entries': 'total_entries', # noqa: E501
}
+ _composed_schemas = {}
+
required_properties = set([
'_data_store',
'_check_type',
@@ -127,9 +116,6 @@ class TaskInstanceCollection(ModelComposed):
'_path_to_item',
'_configuration',
'_visited_composed_classes',
- '_composed_instances',
- '_var_name_to_model_instances',
- '_additional_properties_model_instances',
])
@convert_js_args_to_python_args
@@ -168,7 +154,6 @@ class TaskInstanceCollection(ModelComposed):
through its discriminator because we passed in
_visited_composed_classes = (Animal,)
task_instances ([TaskInstance]): [optional] # noqa: E501
- total_entries (int): Count of objects in the current result set.. [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
@@ -194,53 +179,11 @@ class TaskInstanceCollection(ModelComposed):
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,
- }
- required_args = {
- }
- model_args = {}
- model_args.update(required_args)
- model_args.update(kwargs)
- composed_info = validate_get_composed_info(
- constant_args, model_args, 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]
-
- 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 not in self.attribute_map and \
self._configuration is not None and \
self._configuration.discard_unknown_keys and \
- not self._additional_properties_model_instances:
+ self.additional_properties_type is None:
# discard variable.
continue
setattr(self, var_name, var_value)
-
- @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
- # code would be run when this module is imported, and these composed
- # classes don't exist yet because their module has not finished
- # loading
- lazy_import()
- return {
- 'anyOf': [
- ],
- 'allOf': [
- CollectionInfo,
- TaskInstanceCollectionAllOf,
- ],
- 'oneOf': [
- ],
- }
diff --git a/airflow_client/client/model/task_instance_collection_all_of.py b/airflow_client/client/model/task_instance_collection_all_of.py
deleted file mode 100644
index b523642..0000000
--- a/airflow_client/client/model/task_instance_collection_all_of.py
+++ /dev/null
@@ -1,189 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-"""
- 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 [...]
-
- The version of the OpenAPI document: 1.0.0
- Contact: dev@airflow.apache.org
- Generated by: https://openapi-generator.tech
-"""
-
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from airflow_client.client.model_utils import ( # noqa: F401
- ApiTypeError,
- ModelComposed,
- ModelNormal,
- ModelSimple,
- cached_property,
- change_keys_js_to_python,
- convert_js_args_to_python_args,
- date,
- datetime,
- file_type,
- none_type,
- validate_get_composed_info,
-)
-
-def lazy_import():
- from airflow_client.client.model.task_instance import TaskInstance
- globals()['TaskInstance'] = TaskInstance
-
-
-class TaskInstanceCollectionAllOf(ModelNormal):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
-
- Attributes:
- allowed_values (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- with a capitalized key describing the allowed value and an allowed
- value. These dicts store the allowed enum values.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- discriminator_value_class_map (dict): A dict to go from the discriminator
- variable value to the discriminator class name.
- validations (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- that stores validations for max_length, min_length, max_items,
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
- inclusive_minimum, and regex.
- additional_properties_type (tuple): A tuple of classes accepted
- as additional properties values.
- """
-
- allowed_values = {
- }
-
- validations = {
- }
-
- additional_properties_type = None
-
- _nullable = False
-
- @cached_property
- def openapi_types():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
-
- Returns
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- """
- lazy_import()
- return {
- 'task_instances': ([TaskInstance],), # noqa: E501
- }
-
- @cached_property
- def discriminator():
- return None
-
-
- attribute_map = {
- 'task_instances': 'task_instances', # noqa: E501
- }
-
- _composed_schemas = {}
-
- required_properties = set([
- '_data_store',
- '_check_type',
- '_spec_property_naming',
- '_path_to_item',
- '_configuration',
- '_visited_composed_classes',
- ])
-
- @convert_js_args_to_python_args
- def __init__(self, *args, **kwargs): # noqa: E501
- """TaskInstanceCollectionAllOf - a model defined in OpenAPI
-
- Keyword Args:
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- task_instances ([TaskInstance]): [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- 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)
diff --git a/airflow_client/client/model/task_instance_reference.py b/airflow_client/client/model/task_instance_reference.py
index 67c9407..bae48c2 100644
--- a/airflow_client/client/model/task_instance_reference.py
+++ b/airflow_client/client/model/task_instance_reference.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/task_instance_reference_collection.py b/airflow_client/client/model/task_instance_reference_collection.py
index ad41fe2..4c0a7d3 100644
--- a/airflow_client/client/model/task_instance_reference_collection.py
+++ b/airflow_client/client/model/task_instance_reference_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
diff --git a/airflow_client/client/model/task_state.py b/airflow_client/client/model/task_state.py
index 03683c6..ba6e1ab 100644
--- a/airflow_client/client/model/task_state.py
+++ b/airflow_client/client/model/task_state.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
@@ -77,7 +77,6 @@ class TaskState(ModelSimple):
'QUEUED': "queued",
'NONE': "none",
'SCHEDULED': "scheduled",
- 'REMOVED': "removed",
},
}
@@ -127,10 +126,10 @@ class TaskState(ModelSimple):
Note that value can be passed either in args or in kwargs, but not in both.
Args:
- args[0] (str): Task state.., must be one of ["success", "running", "failed", "upstream_failed", "skipped", "up_for_retry", "up_for_reschedule", "queued", "none", "scheduled", "removed", ] # noqa: E501
+ args[0] (str): Task state.., must be one of ["success", "running", "failed", "upstream_failed", "skipped", "up_for_retry", "up_for_reschedule", "queued", "none", "scheduled", ] # noqa: E501
Keyword Args:
- value (str): Task state.., must be one of ["success", "running", "failed", "upstream_failed", "skipped", "up_for_retry", "up_for_reschedule", "queued", "none", "scheduled", "removed", ] # noqa: E501
+ value (str): Task state.., must be one of ["success", "running", "failed", "upstream_failed", "skipped", "up_for_retry", "up_for_reschedule", "queued", "none", "scheduled", ] # noqa: E501
_check_type (bool): if True, values for parameters in openapi_types
will be type checked and a TypeError will be
raised if the wrong type is input.
diff --git a/airflow_client/client/model/time_delta.py b/airflow_client/client/model/time_delta.py
index 17072f1..875f436 100644
--- a/airflow_client/client/model/time_delta.py
+++ b/airflow_client/client/model/time_delta.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/trigger_rule.py b/airflow_client/client/model/trigger_rule.py
index a2c569b..89985d9 100644
--- a/airflow_client/client/model/trigger_rule.py
+++ b/airflow_client/client/model/trigger_rule.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/update_task_instances_state.py b/airflow_client/client/model/update_task_instances_state.py
index a8c5847..2240ca8 100644
--- a/airflow_client/client/model/update_task_instances_state.py
+++ b/airflow_client/client/model/update_task_instances_state.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/user.py b/airflow_client/client/model/user.py
deleted file mode 100644
index 23f6711..0000000
--- a/airflow_client/client/model/user.py
+++ /dev/null
@@ -1,279 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-"""
- 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 [...]
-
- The version of the OpenAPI document: 1.0.0
- Contact: dev@airflow.apache.org
- Generated by: https://openapi-generator.tech
-"""
-
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from airflow_client.client.model_utils import ( # noqa: F401
- ApiTypeError,
- ModelComposed,
- ModelNormal,
- ModelSimple,
- cached_property,
- change_keys_js_to_python,
- convert_js_args_to_python_args,
- date,
- datetime,
- file_type,
- none_type,
- validate_get_composed_info,
-)
-
-def lazy_import():
- from airflow_client.client.model.user_all_of import UserAllOf
- from airflow_client.client.model.user_collection_item import UserCollectionItem
- from airflow_client.client.model.user_collection_item_roles import UserCollectionItemRoles
- globals()['UserAllOf'] = UserAllOf
- globals()['UserCollectionItem'] = UserCollectionItem
- globals()['UserCollectionItemRoles'] = UserCollectionItemRoles
-
-
-class User(ModelComposed):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
-
- Attributes:
- allowed_values (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- with a capitalized key describing the allowed value and an allowed
- value. These dicts store the allowed enum values.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- discriminator_value_class_map (dict): A dict to go from the discriminator
- variable value to the discriminator class name.
- validations (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- that stores validations for max_length, min_length, max_items,
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
- inclusive_minimum, and regex.
- additional_properties_type (tuple): A tuple of classes accepted
- as additional properties values.
- """
-
- allowed_values = {
- }
-
- validations = {
- }
-
- @cached_property
- def additional_properties_type():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
- """
- lazy_import()
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
-
- _nullable = False
-
- @cached_property
- def openapi_types():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
-
- Returns
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- """
- lazy_import()
- return {
- 'user_id': (int,), # noqa: E501
- 'first_name': (str,), # noqa: E501
- 'last_name': (str,), # noqa: E501
- 'username': (str,), # noqa: E501
- 'email': (str,), # noqa: E501
- 'active': (bool, none_type,), # noqa: E501
- 'last_login': (str, none_type,), # noqa: E501
- 'login_count': (int, none_type,), # noqa: E501
- 'failed_login_count': (int, none_type,), # noqa: E501
- 'roles': ([UserCollectionItemRoles],), # noqa: E501
- 'created_on': (str, none_type,), # noqa: E501
- 'changed_on': (str, none_type,), # noqa: E501
- 'password': (str,), # noqa: E501
- }
-
- @cached_property
- def discriminator():
- return None
-
-
- attribute_map = {
- 'user_id': 'user_id', # noqa: E501
- 'first_name': 'first_name', # noqa: E501
- 'last_name': 'last_name', # noqa: E501
- 'username': 'username', # noqa: E501
- 'email': 'email', # noqa: E501
- 'active': 'active', # noqa: E501
- 'last_login': 'last_login', # noqa: E501
- 'login_count': 'login_count', # noqa: E501
- 'failed_login_count': 'failed_login_count', # noqa: E501
- 'roles': 'roles', # noqa: E501
- 'created_on': 'created_on', # noqa: E501
- 'changed_on': 'changed_on', # noqa: E501
- 'password': 'password', # noqa: E501
- }
-
- required_properties = set([
- '_data_store',
- '_check_type',
- '_spec_property_naming',
- '_path_to_item',
- '_configuration',
- '_visited_composed_classes',
- '_composed_instances',
- '_var_name_to_model_instances',
- '_additional_properties_model_instances',
- ])
-
- @convert_js_args_to_python_args
- def __init__(self, *args, **kwargs): # noqa: E501
- """User - 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,)
- user_id (int): The user id. [optional] # noqa: E501
- first_name (str): The user firstname. [optional] # noqa: E501
- last_name (str): The user lastname. [optional] # noqa: E501
- username (str): The username. [optional] # noqa: E501
- email (str): The user's email. [optional] # noqa: E501
- active (bool, none_type): Whether the user is active. [optional] # noqa: E501
- last_login (str, none_type): The last user login. [optional] # noqa: E501
- login_count (int, none_type): The login count. [optional] # noqa: E501
- failed_login_count (int, none_type): The number of times the login failed. [optional] # noqa: E501
- roles ([UserCollectionItemRoles]): User roles. [optional] # noqa: E501
- created_on (str, none_type): The date user was created. [optional] # noqa: E501
- changed_on (str, none_type): The date user was changed. [optional] # noqa: E501
- password (str): [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- constant_args = {
- '_check_type': _check_type,
- '_path_to_item': _path_to_item,
- '_spec_property_naming': _spec_property_naming,
- '_configuration': _configuration,
- '_visited_composed_classes': self._visited_composed_classes,
- }
- required_args = {
- }
- model_args = {}
- model_args.update(required_args)
- model_args.update(kwargs)
- composed_info = validate_get_composed_info(
- constant_args, model_args, 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]
-
- 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 \
- self._configuration is not None and \
- self._configuration.discard_unknown_keys and \
- not self._additional_properties_model_instances:
- # discard variable.
- continue
- setattr(self, var_name, var_value)
-
- @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
- # code would be run when this module is imported, and these composed
- # classes don't exist yet because their module has not finished
- # loading
- lazy_import()
- return {
- 'anyOf': [
- ],
- 'allOf': [
- UserAllOf,
- UserCollectionItem,
- ],
- 'oneOf': [
- ],
- }
diff --git a/airflow_client/client/model/user_all_of.py b/airflow_client/client/model/user_all_of.py
deleted file mode 100644
index a970da9..0000000
--- a/airflow_client/client/model/user_all_of.py
+++ /dev/null
@@ -1,184 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-"""
- 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 [...]
-
- The version of the OpenAPI document: 1.0.0
- Contact: dev@airflow.apache.org
- Generated by: https://openapi-generator.tech
-"""
-
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from airflow_client.client.model_utils import ( # noqa: F401
- ApiTypeError,
- ModelComposed,
- ModelNormal,
- ModelSimple,
- cached_property,
- change_keys_js_to_python,
- convert_js_args_to_python_args,
- date,
- datetime,
- file_type,
- none_type,
- validate_get_composed_info,
-)
-
-
-class UserAllOf(ModelNormal):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
-
- Attributes:
- allowed_values (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- with a capitalized key describing the allowed value and an allowed
- value. These dicts store the allowed enum values.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- discriminator_value_class_map (dict): A dict to go from the discriminator
- variable value to the discriminator class name.
- validations (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- that stores validations for max_length, min_length, max_items,
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
- inclusive_minimum, and regex.
- additional_properties_type (tuple): A tuple of classes accepted
- as additional properties values.
- """
-
- allowed_values = {
- }
-
- validations = {
- }
-
- additional_properties_type = None
-
- _nullable = False
-
- @cached_property
- def openapi_types():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
-
- Returns
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- """
- return {
- 'password': (str,), # noqa: E501
- }
-
- @cached_property
- def discriminator():
- return None
-
-
- attribute_map = {
- 'password': 'password', # noqa: E501
- }
-
- _composed_schemas = {}
-
- required_properties = set([
- '_data_store',
- '_check_type',
- '_spec_property_naming',
- '_path_to_item',
- '_configuration',
- '_visited_composed_classes',
- ])
-
- @convert_js_args_to_python_args
- def __init__(self, *args, **kwargs): # noqa: E501
- """UserAllOf - 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,)
- password (str): [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- 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)
diff --git a/airflow_client/client/model/user_collection.py b/airflow_client/client/model/user_collection.py
deleted file mode 100644
index 8b845cd..0000000
--- a/airflow_client/client/model/user_collection.py
+++ /dev/null
@@ -1,246 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-"""
- 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 [...]
-
- The version of the OpenAPI document: 1.0.0
- Contact: dev@airflow.apache.org
- Generated by: https://openapi-generator.tech
-"""
-
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from airflow_client.client.model_utils import ( # noqa: F401
- ApiTypeError,
- ModelComposed,
- ModelNormal,
- ModelSimple,
- cached_property,
- change_keys_js_to_python,
- convert_js_args_to_python_args,
- date,
- datetime,
- file_type,
- none_type,
- validate_get_composed_info,
-)
-
-def lazy_import():
- from airflow_client.client.model.collection_info import CollectionInfo
- from airflow_client.client.model.user_collection_all_of import UserCollectionAllOf
- from airflow_client.client.model.user_collection_item import UserCollectionItem
- globals()['CollectionInfo'] = CollectionInfo
- globals()['UserCollectionAllOf'] = UserCollectionAllOf
- globals()['UserCollectionItem'] = UserCollectionItem
-
-
-class UserCollection(ModelComposed):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
-
- Attributes:
- allowed_values (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- with a capitalized key describing the allowed value and an allowed
- value. These dicts store the allowed enum values.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- discriminator_value_class_map (dict): A dict to go from the discriminator
- variable value to the discriminator class name.
- validations (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- that stores validations for max_length, min_length, max_items,
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
- inclusive_minimum, and regex.
- additional_properties_type (tuple): A tuple of classes accepted
- as additional properties values.
- """
-
- allowed_values = {
- }
-
- validations = {
- }
-
- @cached_property
- def additional_properties_type():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
- """
- lazy_import()
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
-
- _nullable = False
-
- @cached_property
- def openapi_types():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
-
- Returns
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- """
- lazy_import()
- return {
- 'users': ([UserCollectionItem],), # noqa: E501
- 'total_entries': (int,), # noqa: E501
- }
-
- @cached_property
- def discriminator():
- return None
-
-
- attribute_map = {
- 'users': 'users', # noqa: E501
- 'total_entries': 'total_entries', # noqa: E501
- }
-
- required_properties = set([
- '_data_store',
- '_check_type',
- '_spec_property_naming',
- '_path_to_item',
- '_configuration',
- '_visited_composed_classes',
- '_composed_instances',
- '_var_name_to_model_instances',
- '_additional_properties_model_instances',
- ])
-
- @convert_js_args_to_python_args
- def __init__(self, *args, **kwargs): # noqa: E501
- """UserCollection - 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,)
- users ([UserCollectionItem]): [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', ())
-
- 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,
- }
- required_args = {
- }
- model_args = {}
- model_args.update(required_args)
- model_args.update(kwargs)
- composed_info = validate_get_composed_info(
- constant_args, model_args, 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]
-
- 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 \
- self._configuration is not None and \
- self._configuration.discard_unknown_keys and \
- not self._additional_properties_model_instances:
- # discard variable.
- continue
- setattr(self, var_name, var_value)
-
- @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
- # code would be run when this module is imported, and these composed
- # classes don't exist yet because their module has not finished
- # loading
- lazy_import()
- return {
- 'anyOf': [
- ],
- 'allOf': [
- CollectionInfo,
- UserCollectionAllOf,
- ],
- 'oneOf': [
- ],
- }
diff --git a/airflow_client/client/model/user_collection_all_of.py b/airflow_client/client/model/user_collection_all_of.py
deleted file mode 100644
index 9b1079a..0000000
--- a/airflow_client/client/model/user_collection_all_of.py
+++ /dev/null
@@ -1,189 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-"""
- 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 [...]
-
- The version of the OpenAPI document: 1.0.0
- Contact: dev@airflow.apache.org
- Generated by: https://openapi-generator.tech
-"""
-
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from airflow_client.client.model_utils import ( # noqa: F401
- ApiTypeError,
- ModelComposed,
- ModelNormal,
- ModelSimple,
- cached_property,
- change_keys_js_to_python,
- convert_js_args_to_python_args,
- date,
- datetime,
- file_type,
- none_type,
- validate_get_composed_info,
-)
-
-def lazy_import():
- from airflow_client.client.model.user_collection_item import UserCollectionItem
- globals()['UserCollectionItem'] = UserCollectionItem
-
-
-class UserCollectionAllOf(ModelNormal):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
-
- Attributes:
- allowed_values (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- with a capitalized key describing the allowed value and an allowed
- value. These dicts store the allowed enum values.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- discriminator_value_class_map (dict): A dict to go from the discriminator
- variable value to the discriminator class name.
- validations (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- that stores validations for max_length, min_length, max_items,
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
- inclusive_minimum, and regex.
- additional_properties_type (tuple): A tuple of classes accepted
- as additional properties values.
- """
-
- allowed_values = {
- }
-
- validations = {
- }
-
- additional_properties_type = None
-
- _nullable = False
-
- @cached_property
- def openapi_types():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
-
- Returns
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- """
- lazy_import()
- return {
- 'users': ([UserCollectionItem],), # noqa: E501
- }
-
- @cached_property
- def discriminator():
- return None
-
-
- attribute_map = {
- 'users': 'users', # noqa: E501
- }
-
- _composed_schemas = {}
-
- required_properties = set([
- '_data_store',
- '_check_type',
- '_spec_property_naming',
- '_path_to_item',
- '_configuration',
- '_visited_composed_classes',
- ])
-
- @convert_js_args_to_python_args
- def __init__(self, *args, **kwargs): # noqa: E501
- """UserCollectionAllOf - 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,)
- users ([UserCollectionItem]): [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- 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)
diff --git a/airflow_client/client/model/user_collection_item.py b/airflow_client/client/model/user_collection_item.py
deleted file mode 100644
index 0d33017..0000000
--- a/airflow_client/client/model/user_collection_item.py
+++ /dev/null
@@ -1,222 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-"""
- 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 [...]
-
- The version of the OpenAPI document: 1.0.0
- Contact: dev@airflow.apache.org
- Generated by: https://openapi-generator.tech
-"""
-
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from airflow_client.client.model_utils import ( # noqa: F401
- ApiTypeError,
- ModelComposed,
- ModelNormal,
- ModelSimple,
- cached_property,
- change_keys_js_to_python,
- convert_js_args_to_python_args,
- date,
- datetime,
- file_type,
- none_type,
- validate_get_composed_info,
-)
-
-def lazy_import():
- from airflow_client.client.model.user_collection_item_roles import UserCollectionItemRoles
- globals()['UserCollectionItemRoles'] = UserCollectionItemRoles
-
-
-class UserCollectionItem(ModelNormal):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
-
- Attributes:
- allowed_values (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- with a capitalized key describing the allowed value and an allowed
- value. These dicts store the allowed enum values.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- discriminator_value_class_map (dict): A dict to go from the discriminator
- variable value to the discriminator class name.
- validations (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- that stores validations for max_length, min_length, max_items,
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
- inclusive_minimum, and regex.
- additional_properties_type (tuple): A tuple of classes accepted
- as additional properties values.
- """
-
- allowed_values = {
- }
-
- validations = {
- }
-
- additional_properties_type = None
-
- _nullable = False
-
- @cached_property
- def openapi_types():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
-
- Returns
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- """
- lazy_import()
- return {
- 'user_id': (int,), # noqa: E501
- 'first_name': (str,), # noqa: E501
- 'last_name': (str,), # noqa: E501
- 'username': (str,), # noqa: E501
- 'email': (str,), # noqa: E501
- 'active': (bool, none_type,), # noqa: E501
- 'last_login': (str, none_type,), # noqa: E501
- 'login_count': (int, none_type,), # noqa: E501
- 'failed_login_count': (int, none_type,), # noqa: E501
- 'roles': ([UserCollectionItemRoles],), # noqa: E501
- 'created_on': (str, none_type,), # noqa: E501
- 'changed_on': (str, none_type,), # noqa: E501
- }
-
- @cached_property
- def discriminator():
- return None
-
-
- attribute_map = {
- 'user_id': 'user_id', # noqa: E501
- 'first_name': 'first_name', # noqa: E501
- 'last_name': 'last_name', # noqa: E501
- 'username': 'username', # noqa: E501
- 'email': 'email', # noqa: E501
- 'active': 'active', # noqa: E501
- 'last_login': 'last_login', # noqa: E501
- 'login_count': 'login_count', # noqa: E501
- 'failed_login_count': 'failed_login_count', # noqa: E501
- 'roles': 'roles', # noqa: E501
- 'created_on': 'created_on', # noqa: E501
- 'changed_on': 'changed_on', # noqa: E501
- }
-
- _composed_schemas = {}
-
- required_properties = set([
- '_data_store',
- '_check_type',
- '_spec_property_naming',
- '_path_to_item',
- '_configuration',
- '_visited_composed_classes',
- ])
-
- @convert_js_args_to_python_args
- def __init__(self, *args, **kwargs): # noqa: E501
- """UserCollectionItem - 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,)
- user_id (int): The user id. [optional] # noqa: E501
- first_name (str): The user firstname. [optional] # noqa: E501
- last_name (str): The user lastname. [optional] # noqa: E501
- username (str): The username. [optional] # noqa: E501
- email (str): The user's email. [optional] # noqa: E501
- active (bool, none_type): Whether the user is active. [optional] # noqa: E501
- last_login (str, none_type): The last user login. [optional] # noqa: E501
- login_count (int, none_type): The login count. [optional] # noqa: E501
- failed_login_count (int, none_type): The number of times the login failed. [optional] # noqa: E501
- roles ([UserCollectionItemRoles]): User roles. [optional] # noqa: E501
- created_on (str, none_type): The date user was created. [optional] # noqa: E501
- changed_on (str, none_type): The date user was changed. [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- 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)
diff --git a/airflow_client/client/model/user_collection_item_roles.py b/airflow_client/client/model/user_collection_item_roles.py
deleted file mode 100644
index af677ec..0000000
--- a/airflow_client/client/model/user_collection_item_roles.py
+++ /dev/null
@@ -1,184 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-"""
- 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 [...]
-
- The version of the OpenAPI document: 1.0.0
- Contact: dev@airflow.apache.org
- Generated by: https://openapi-generator.tech
-"""
-
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from airflow_client.client.model_utils import ( # noqa: F401
- ApiTypeError,
- ModelComposed,
- ModelNormal,
- ModelSimple,
- cached_property,
- change_keys_js_to_python,
- convert_js_args_to_python_args,
- date,
- datetime,
- file_type,
- none_type,
- validate_get_composed_info,
-)
-
-
-class UserCollectionItemRoles(ModelNormal):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
-
- Attributes:
- allowed_values (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- with a capitalized key describing the allowed value and an allowed
- value. These dicts store the allowed enum values.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- discriminator_value_class_map (dict): A dict to go from the discriminator
- variable value to the discriminator class name.
- validations (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- that stores validations for max_length, min_length, max_items,
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
- inclusive_minimum, and regex.
- additional_properties_type (tuple): A tuple of classes accepted
- as additional properties values.
- """
-
- allowed_values = {
- }
-
- validations = {
- }
-
- additional_properties_type = None
-
- _nullable = True
-
- @cached_property
- def openapi_types():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
-
- Returns
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- """
- return {
- 'name': (str,), # noqa: E501
- }
-
- @cached_property
- def discriminator():
- return None
-
-
- attribute_map = {
- 'name': 'name', # noqa: E501
- }
-
- _composed_schemas = {}
-
- required_properties = set([
- '_data_store',
- '_check_type',
- '_spec_property_naming',
- '_path_to_item',
- '_configuration',
- '_visited_composed_classes',
- ])
-
- @convert_js_args_to_python_args
- def __init__(self, *args, **kwargs): # noqa: E501
- """UserCollectionItemRoles - 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): [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- 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)
diff --git a/airflow_client/client/model/variable.py b/airflow_client/client/model/variable.py
index 4ce8c22..6209842 100644
--- a/airflow_client/client/model/variable.py
+++ b/airflow_client/client/model/variable.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/variable_all_of.py b/airflow_client/client/model/variable_all_of.py
index 9f8547d..6045600 100644
--- a/airflow_client/client/model/variable_all_of.py
+++ b/airflow_client/client/model/variable_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
diff --git a/airflow_client/client/model/variable_collection.py b/airflow_client/client/model/variable_collection.py
index 2fb6543..88ff531 100644
--- a/airflow_client/client/model/variable_collection.py
+++ b/airflow_client/client/model/variable_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
@@ -45,15 +45,11 @@ from airflow_client.client.model_utils import ( # noqa: F401
)
def lazy_import():
- from airflow_client.client.model.collection_info import CollectionInfo
- from airflow_client.client.model.variable_collection_all_of import VariableCollectionAllOf
from airflow_client.client.model.variable_collection_item import VariableCollectionItem
- globals()['CollectionInfo'] = CollectionInfo
- globals()['VariableCollectionAllOf'] = VariableCollectionAllOf
globals()['VariableCollectionItem'] = VariableCollectionItem
-class VariableCollection(ModelComposed):
+class VariableCollection(ModelNormal):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
@@ -83,14 +79,7 @@ class VariableCollection(ModelComposed):
validations = {
}
- @cached_property
- def additional_properties_type():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
- """
- lazy_import()
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
+ additional_properties_type = None
_nullable = False
@@ -107,7 +96,6 @@ class VariableCollection(ModelComposed):
lazy_import()
return {
'variables': ([VariableCollectionItem],), # noqa: E501
- 'total_entries': (int,), # noqa: E501
}
@cached_property
@@ -117,9 +105,10 @@ class VariableCollection(ModelComposed):
attribute_map = {
'variables': 'variables', # noqa: E501
- 'total_entries': 'total_entries', # noqa: E501
}
+ _composed_schemas = {}
+
required_properties = set([
'_data_store',
'_check_type',
@@ -127,9 +116,6 @@ class VariableCollection(ModelComposed):
'_path_to_item',
'_configuration',
'_visited_composed_classes',
- '_composed_instances',
- '_var_name_to_model_instances',
- '_additional_properties_model_instances',
])
@convert_js_args_to_python_args
@@ -168,7 +154,6 @@ class VariableCollection(ModelComposed):
through its discriminator because we passed in
_visited_composed_classes = (Animal,)
variables ([VariableCollectionItem]): [optional] # noqa: E501
- total_entries (int): Count of objects in the current result set.. [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
@@ -194,53 +179,11 @@ class VariableCollection(ModelComposed):
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,
- }
- required_args = {
- }
- model_args = {}
- model_args.update(required_args)
- model_args.update(kwargs)
- composed_info = validate_get_composed_info(
- constant_args, model_args, 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]
-
- 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 not in self.attribute_map and \
self._configuration is not None and \
self._configuration.discard_unknown_keys and \
- not self._additional_properties_model_instances:
+ self.additional_properties_type is None:
# discard variable.
continue
setattr(self, var_name, var_value)
-
- @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
- # code would be run when this module is imported, and these composed
- # classes don't exist yet because their module has not finished
- # loading
- lazy_import()
- return {
- 'anyOf': [
- ],
- 'allOf': [
- CollectionInfo,
- VariableCollectionAllOf,
- ],
- 'oneOf': [
- ],
- }
diff --git a/airflow_client/client/model/variable_collection_all_of.py b/airflow_client/client/model/variable_collection_all_of.py
deleted file mode 100644
index 8b1199d..0000000
--- a/airflow_client/client/model/variable_collection_all_of.py
+++ /dev/null
@@ -1,189 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-"""
- 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 [...]
-
- The version of the OpenAPI document: 1.0.0
- Contact: dev@airflow.apache.org
- Generated by: https://openapi-generator.tech
-"""
-
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from airflow_client.client.model_utils import ( # noqa: F401
- ApiTypeError,
- ModelComposed,
- ModelNormal,
- ModelSimple,
- cached_property,
- change_keys_js_to_python,
- convert_js_args_to_python_args,
- date,
- datetime,
- file_type,
- none_type,
- validate_get_composed_info,
-)
-
-def lazy_import():
- from airflow_client.client.model.variable_collection_item import VariableCollectionItem
- globals()['VariableCollectionItem'] = VariableCollectionItem
-
-
-class VariableCollectionAllOf(ModelNormal):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
-
- Attributes:
- allowed_values (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- with a capitalized key describing the allowed value and an allowed
- value. These dicts store the allowed enum values.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- discriminator_value_class_map (dict): A dict to go from the discriminator
- variable value to the discriminator class name.
- validations (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- that stores validations for max_length, min_length, max_items,
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
- inclusive_minimum, and regex.
- additional_properties_type (tuple): A tuple of classes accepted
- as additional properties values.
- """
-
- allowed_values = {
- }
-
- validations = {
- }
-
- additional_properties_type = None
-
- _nullable = False
-
- @cached_property
- def openapi_types():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
-
- Returns
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- """
- lazy_import()
- return {
- 'variables': ([VariableCollectionItem],), # noqa: E501
- }
-
- @cached_property
- def discriminator():
- return None
-
-
- attribute_map = {
- 'variables': 'variables', # noqa: E501
- }
-
- _composed_schemas = {}
-
- required_properties = set([
- '_data_store',
- '_check_type',
- '_spec_property_naming',
- '_path_to_item',
- '_configuration',
- '_visited_composed_classes',
- ])
-
- @convert_js_args_to_python_args
- def __init__(self, *args, **kwargs): # noqa: E501
- """VariableCollectionAllOf - 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,)
- variables ([VariableCollectionItem]): [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- 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)
diff --git a/airflow_client/client/model/variable_collection_item.py b/airflow_client/client/model/variable_collection_item.py
index 3a62a8f..4230c74 100644
--- a/airflow_client/client/model/variable_collection_item.py
+++ b/airflow_client/client/model/variable_collection_item.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/version_info.py b/airflow_client/client/model/version_info.py
index 1dcc18d..0854e4c 100644
--- a/airflow_client/client/model/version_info.py
+++ b/airflow_client/client/model/version_info.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/weight_rule.py b/airflow_client/client/model/weight_rule.py
index 30a6e63..3f7847e 100644
--- a/airflow_client/client/model/weight_rule.py
+++ b/airflow_client/client/model/weight_rule.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/x_com.py b/airflow_client/client/model/x_com.py
index 4615e2a..0ec6575 100644
--- a/airflow_client/client/model/x_com.py
+++ b/airflow_client/client/model/x_com.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/x_com_all_of.py b/airflow_client/client/model/x_com_all_of.py
index 37c3018..a45c706 100644
--- a/airflow_client/client/model/x_com_all_of.py
+++ b/airflow_client/client/model/x_com_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
diff --git a/airflow_client/client/model/x_com_collection.py b/airflow_client/client/model/x_com_collection.py
index a1afd19..793ebc7 100644
--- a/airflow_client/client/model/x_com_collection.py
+++ b/airflow_client/client/model/x_com_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
@@ -45,15 +45,11 @@ from airflow_client.client.model_utils import ( # noqa: F401
)
def lazy_import():
- from airflow_client.client.model.collection_info import CollectionInfo
- from airflow_client.client.model.x_com_collection_all_of import XComCollectionAllOf
from airflow_client.client.model.x_com_collection_item import XComCollectionItem
- globals()['CollectionInfo'] = CollectionInfo
- globals()['XComCollectionAllOf'] = XComCollectionAllOf
globals()['XComCollectionItem'] = XComCollectionItem
-class XComCollection(ModelComposed):
+class XComCollection(ModelNormal):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
@@ -83,14 +79,7 @@ class XComCollection(ModelComposed):
validations = {
}
- @cached_property
- def additional_properties_type():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
- """
- lazy_import()
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
+ additional_properties_type = None
_nullable = False
@@ -107,7 +96,6 @@ class XComCollection(ModelComposed):
lazy_import()
return {
'xcom_entries': ([XComCollectionItem],), # noqa: E501
- 'total_entries': (int,), # noqa: E501
}
@cached_property
@@ -117,9 +105,10 @@ class XComCollection(ModelComposed):
attribute_map = {
'xcom_entries': 'xcom_entries', # noqa: E501
- 'total_entries': 'total_entries', # noqa: E501
}
+ _composed_schemas = {}
+
required_properties = set([
'_data_store',
'_check_type',
@@ -127,9 +116,6 @@ class XComCollection(ModelComposed):
'_path_to_item',
'_configuration',
'_visited_composed_classes',
- '_composed_instances',
- '_var_name_to_model_instances',
- '_additional_properties_model_instances',
])
@convert_js_args_to_python_args
@@ -168,7 +154,6 @@ class XComCollection(ModelComposed):
through its discriminator because we passed in
_visited_composed_classes = (Animal,)
xcom_entries ([XComCollectionItem]): [optional] # noqa: E501
- total_entries (int): Count of objects in the current result set.. [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
@@ -194,53 +179,11 @@ class XComCollection(ModelComposed):
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,
- }
- required_args = {
- }
- model_args = {}
- model_args.update(required_args)
- model_args.update(kwargs)
- composed_info = validate_get_composed_info(
- constant_args, model_args, 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]
-
- 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 not in self.attribute_map and \
self._configuration is not None and \
self._configuration.discard_unknown_keys and \
- not self._additional_properties_model_instances:
+ self.additional_properties_type is None:
# discard variable.
continue
setattr(self, var_name, var_value)
-
- @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
- # code would be run when this module is imported, and these composed
- # classes don't exist yet because their module has not finished
- # loading
- lazy_import()
- return {
- 'anyOf': [
- ],
- 'allOf': [
- CollectionInfo,
- XComCollectionAllOf,
- ],
- 'oneOf': [
- ],
- }
diff --git a/airflow_client/client/model/x_com_collection_all_of.py b/airflow_client/client/model/x_com_collection_all_of.py
deleted file mode 100644
index 4a37d67..0000000
--- a/airflow_client/client/model/x_com_collection_all_of.py
+++ /dev/null
@@ -1,189 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-"""
- 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 [...]
-
- The version of the OpenAPI document: 1.0.0
- Contact: dev@airflow.apache.org
- Generated by: https://openapi-generator.tech
-"""
-
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from airflow_client.client.model_utils import ( # noqa: F401
- ApiTypeError,
- ModelComposed,
- ModelNormal,
- ModelSimple,
- cached_property,
- change_keys_js_to_python,
- convert_js_args_to_python_args,
- date,
- datetime,
- file_type,
- none_type,
- validate_get_composed_info,
-)
-
-def lazy_import():
- from airflow_client.client.model.x_com_collection_item import XComCollectionItem
- globals()['XComCollectionItem'] = XComCollectionItem
-
-
-class XComCollectionAllOf(ModelNormal):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
-
- Attributes:
- allowed_values (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- with a capitalized key describing the allowed value and an allowed
- value. These dicts store the allowed enum values.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- discriminator_value_class_map (dict): A dict to go from the discriminator
- variable value to the discriminator class name.
- validations (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- that stores validations for max_length, min_length, max_items,
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
- inclusive_minimum, and regex.
- additional_properties_type (tuple): A tuple of classes accepted
- as additional properties values.
- """
-
- allowed_values = {
- }
-
- validations = {
- }
-
- additional_properties_type = None
-
- _nullable = False
-
- @cached_property
- def openapi_types():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
-
- Returns
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- """
- lazy_import()
- return {
- 'xcom_entries': ([XComCollectionItem],), # noqa: E501
- }
-
- @cached_property
- def discriminator():
- return None
-
-
- attribute_map = {
- 'xcom_entries': 'xcom_entries', # noqa: E501
- }
-
- _composed_schemas = {}
-
- required_properties = set([
- '_data_store',
- '_check_type',
- '_spec_property_naming',
- '_path_to_item',
- '_configuration',
- '_visited_composed_classes',
- ])
-
- @convert_js_args_to_python_args
- def __init__(self, *args, **kwargs): # noqa: E501
- """XComCollectionAllOf - 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,)
- xcom_entries ([XComCollectionItem]): [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- 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)
diff --git a/airflow_client/client/model/x_com_collection_item.py b/airflow_client/client/model/x_com_collection_item.py
index 340fc06..09907c1 100644
--- a/airflow_client/client/model/x_com_collection_item.py
+++ b/airflow_client/client/model/x_com_collection_item.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_utils.py b/airflow_client/client/model_utils.py
index b20f6b8..174bb20 100644
--- a/airflow_client/client/model_utils.py
+++ b/airflow_client/client/model_utils.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/models/__init__.py b/airflow_client/client/models/__init__.py
index a623a25..addf963 100644
--- a/airflow_client/client/models/__init__.py
+++ b/airflow_client/client/models/__init__.py
@@ -26,10 +26,6 @@
# import sys
# sys.setrecursionlimit(n)
-from airflow_client.client.model.action import Action
-from airflow_client.client.model.action_collection import ActionCollection
-from airflow_client.client.model.action_collection_all_of import ActionCollectionAllOf
-from airflow_client.client.model.action_resource import ActionResource
from airflow_client.client.model.class_reference import ClassReference
from airflow_client.client.model.clear_task_instance import ClearTaskInstance
from airflow_client.client.model.collection_info import CollectionInfo
@@ -40,45 +36,32 @@ from airflow_client.client.model.config_section import ConfigSection
from airflow_client.client.model.connection import Connection
from airflow_client.client.model.connection_all_of import ConnectionAllOf
from airflow_client.client.model.connection_collection import ConnectionCollection
-from airflow_client.client.model.connection_collection_all_of import ConnectionCollectionAllOf
from airflow_client.client.model.connection_collection_item import ConnectionCollectionItem
from airflow_client.client.model.cron_expression import CronExpression
from airflow_client.client.model.dag import DAG
from airflow_client.client.model.dag_collection import DAGCollection
-from airflow_client.client.model.dag_collection_all_of import DAGCollectionAllOf
from airflow_client.client.model.dag_detail import DAGDetail
from airflow_client.client.model.dag_detail_all_of import DAGDetailAllOf
from airflow_client.client.model.dag_run import DAGRun
from airflow_client.client.model.dag_run_collection import DAGRunCollection
-from airflow_client.client.model.dag_run_collection_all_of import DAGRunCollectionAllOf
from airflow_client.client.model.dag_state import DagState
from airflow_client.client.model.error import Error
from airflow_client.client.model.event_log import EventLog
from airflow_client.client.model.event_log_collection import EventLogCollection
-from airflow_client.client.model.event_log_collection_all_of import EventLogCollectionAllOf
from airflow_client.client.model.extra_link import ExtraLink
from airflow_client.client.model.extra_link_collection import ExtraLinkCollection
from airflow_client.client.model.health_info import HealthInfo
from airflow_client.client.model.health_status import HealthStatus
from airflow_client.client.model.import_error import ImportError
from airflow_client.client.model.import_error_collection import ImportErrorCollection
-from airflow_client.client.model.import_error_collection_all_of import ImportErrorCollectionAllOf
from airflow_client.client.model.inline_response200 import InlineResponse200
from airflow_client.client.model.inline_response2001 import InlineResponse2001
from airflow_client.client.model.list_dag_runs_form import ListDagRunsForm
from airflow_client.client.model.list_task_instance_form import ListTaskInstanceForm
from airflow_client.client.model.metadatabase_status import MetadatabaseStatus
-from airflow_client.client.model.plugin_collection import PluginCollection
-from airflow_client.client.model.plugin_collection_all_of import PluginCollectionAllOf
-from airflow_client.client.model.plugin_collection_item import PluginCollectionItem
from airflow_client.client.model.pool import Pool
from airflow_client.client.model.pool_collection import PoolCollection
-from airflow_client.client.model.pool_collection_all_of import PoolCollectionAllOf
from airflow_client.client.model.relative_delta import RelativeDelta
-from airflow_client.client.model.resource import Resource
-from airflow_client.client.model.role import Role
-from airflow_client.client.model.role_collection import RoleCollection
-from airflow_client.client.model.role_collection_all_of import RoleCollectionAllOf
from airflow_client.client.model.sla_miss import SLAMiss
from airflow_client.client.model.schedule_interval import ScheduleInterval
from airflow_client.client.model.scheduler_status import SchedulerStatus
@@ -88,28 +71,19 @@ from airflow_client.client.model.task_collection import TaskCollection
from airflow_client.client.model.task_extra_links import TaskExtraLinks
from airflow_client.client.model.task_instance import TaskInstance
from airflow_client.client.model.task_instance_collection import TaskInstanceCollection
-from airflow_client.client.model.task_instance_collection_all_of import TaskInstanceCollectionAllOf
from airflow_client.client.model.task_instance_reference import TaskInstanceReference
from airflow_client.client.model.task_instance_reference_collection import TaskInstanceReferenceCollection
from airflow_client.client.model.task_state import TaskState
from airflow_client.client.model.time_delta import TimeDelta
from airflow_client.client.model.trigger_rule import TriggerRule
from airflow_client.client.model.update_task_instances_state import UpdateTaskInstancesState
-from airflow_client.client.model.user import User
-from airflow_client.client.model.user_all_of import UserAllOf
-from airflow_client.client.model.user_collection import UserCollection
-from airflow_client.client.model.user_collection_all_of import UserCollectionAllOf
-from airflow_client.client.model.user_collection_item import UserCollectionItem
-from airflow_client.client.model.user_collection_item_roles import UserCollectionItemRoles
from airflow_client.client.model.variable import Variable
from airflow_client.client.model.variable_all_of import VariableAllOf
from airflow_client.client.model.variable_collection import VariableCollection
-from airflow_client.client.model.variable_collection_all_of import VariableCollectionAllOf
from airflow_client.client.model.variable_collection_item import VariableCollectionItem
from airflow_client.client.model.version_info import VersionInfo
from airflow_client.client.model.weight_rule import WeightRule
from airflow_client.client.model.x_com import XCom
from airflow_client.client.model.x_com_all_of import XComAllOf
from airflow_client.client.model.x_com_collection import XComCollection
-from airflow_client.client.model.x_com_collection_all_of import XComCollectionAllOf
from airflow_client.client.model.x_com_collection_item import XComCollectionItem
diff --git a/airflow_client/client/rest.py b/airflow_client/client/rest.py
index 768d9dc..7866675 100644
--- a/airflow_client/client/rest.py
+++ b/airflow_client/client/rest.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/docs/Action.md b/airflow_client/docs/Action.md
deleted file mode 100644
index b4a03c9..0000000
--- a/airflow_client/docs/Action.md
+++ /dev/null
@@ -1,31 +0,0 @@
-<!--
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
- -->
-
-# Action
-
-Action Item
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**name** | **str** | The name of the permission \"action\" | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/airflow_client/docs/ActionCollection.md b/airflow_client/docs/ActionCollection.md
deleted file mode 100644
index 4a24bf1..0000000
--- a/airflow_client/docs/ActionCollection.md
+++ /dev/null
@@ -1,33 +0,0 @@
-<!--
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
- -->
-
-# ActionCollection
-
-Action Collection
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**actions** | [**[Action]**](Action.md) | | [optional]
-**total_entries** | **int** | Count of objects in the current result set. | [optional]
-**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/airflow_client/docs/ActionCollectionAllOf.md b/airflow_client/docs/ActionCollectionAllOf.md
deleted file mode 100644
index 43dac94..0000000
--- a/airflow_client/docs/ActionCollectionAllOf.md
+++ /dev/null
@@ -1,30 +0,0 @@
-<!--
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
- -->
-
-# ActionCollectionAllOf
-
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**actions** | [**[Action]**](Action.md) | | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/airflow_client/docs/ActionResource.md b/airflow_client/docs/ActionResource.md
deleted file mode 100644
index 32d6503..0000000
--- a/airflow_client/docs/ActionResource.md
+++ /dev/null
@@ -1,32 +0,0 @@
-<!--
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
- -->
-
-# ActionResource
-
-The Action-Resource item
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**action** | **Action** | | [optional]
-**resource** | **Resource** | | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/airflow_client/docs/ConnectionApi.md b/airflow_client/docs/ConnectionApi.md
index 5a205a7..c56dd73 100644
--- a/airflow_client/docs/ConnectionApi.md
+++ b/airflow_client/docs/ConnectionApi.md
@@ -186,7 +186,7 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **get_connections**
-> ConnectionCollection get_connections()
+> object get_connections()
List connections
@@ -197,7 +197,6 @@ List connections
import time
import airflow_client.client
from airflow_client.client.api import connection_api
-from airflow_client.client.model.connection_collection import ConnectionCollection
from airflow_client.client.model.error import Error
from pprint import pprint
# Defining the host is optional and defaults to http://localhost/api/v1
@@ -244,7 +243,7 @@ Name | Type | Description | Notes
### Return type
-[**ConnectionCollection**](ConnectionCollection.md)
+**object**
### Authorization
diff --git a/airflow_client/docs/ConnectionCollection.md b/airflow_client/docs/ConnectionCollection.md
index 6353210..a1f9046 100644
--- a/airflow_client/docs/ConnectionCollection.md
+++ b/airflow_client/docs/ConnectionCollection.md
@@ -19,14 +19,12 @@
# ConnectionCollection
-Collection of connections.
+Connections
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**connections** | [**[ConnectionCollectionItem]**](ConnectionCollectionItem.md) | | [optional]
-**total_entries** | **int** | Count of objects in the current result set. | [optional]
-**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/airflow_client/docs/ConnectionCollectionAllOf.md b/airflow_client/docs/ConnectionCollectionAllOf.md
deleted file mode 100644
index 135b9f3..0000000
--- a/airflow_client/docs/ConnectionCollectionAllOf.md
+++ /dev/null
@@ -1,30 +0,0 @@
-<!--
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
- -->
-
-# ConnectionCollectionAllOf
-
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**connections** | [**[ConnectionCollectionItem]**](ConnectionCollectionItem.md) | | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/airflow_client/docs/DAG.md b/airflow_client/docs/DAG.md
index 72d0300..118e0a8 100644
--- a/airflow_client/docs/DAG.md
+++ b/airflow_client/docs/DAG.md
@@ -25,7 +25,7 @@ DAG
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**dag_id** | **str** | The ID of the DAG. | [optional] [readonly]
-**root_dag_id** | **str, none_type** | If the DAG is SubDAG then it is the top level DAG identifier. Otherwise, null. | [optional] [readonly]
+**root_dag_id** | **str, none_type** | If the DAG is SubDAG then it is the top level DAG identifier. Otherwise, nulll. | [optional] [readonly]
**is_paused** | **bool, none_type** | Whether the DAG is paused. | [optional]
**is_subdag** | **bool** | Whether the DAG is SubDAG. | [optional] [readonly]
**fileloc** | **str** | The absolute path to the file. | [optional] [readonly]
diff --git a/airflow_client/docs/DAGApi.md b/airflow_client/docs/DAGApi.md
index 1692f29..48e4f24 100644
--- a/airflow_client/docs/DAGApi.md
+++ b/airflow_client/docs/DAGApi.md
@@ -276,7 +276,7 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **get_dags**
-> DAGCollection get_dags()
+> object get_dags()
List DAGs
@@ -287,7 +287,6 @@ List DAGs
import time
import airflow_client.client
from airflow_client.client.api import dag_api
... 4770 lines suppressed ...