windmill-api 1.435.0__py3-none-any.whl → 1.450.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of windmill-api might be problematic. Click here for more details.
- windmill_api/api/app/get_app_lite_by_path.py +166 -0
- windmill_api/api/capture/{get_capture.py → delete_capture.py} +12 -14
- windmill_api/api/capture/get_capture_configs.py +186 -0
- windmill_api/api/capture/list_captures.py +241 -0
- windmill_api/api/capture/ping_capture_config.py +121 -0
- windmill_api/api/capture/set_capture_config.py +107 -0
- windmill_api/api/input_/get_input_history.py +15 -0
- windmill_api/api/job/get_slack_approval_payload.py +171 -0
- windmill_api/api/nats_trigger/__init__.py +0 -0
- windmill_api/api/nats_trigger/create_nats_trigger.py +105 -0
- windmill_api/api/{capture/create_capture.py → nats_trigger/delete_nats_trigger.py} +4 -6
- windmill_api/api/nats_trigger/exists_nats_trigger.py +160 -0
- windmill_api/api/nats_trigger/get_nats_trigger.py +166 -0
- windmill_api/api/nats_trigger/list_nats_triggers.py +237 -0
- windmill_api/api/nats_trigger/set_nats_trigger_enabled.py +113 -0
- windmill_api/api/nats_trigger/update_nats_trigger.py +113 -0
- windmill_api/api/postgres_trigger/__init__.py +0 -0
- windmill_api/api/postgres_trigger/create_postgres_publication.py +121 -0
- windmill_api/api/postgres_trigger/create_postgres_replication_slot.py +113 -0
- windmill_api/api/postgres_trigger/create_postgres_trigger.py +105 -0
- windmill_api/api/postgres_trigger/create_template_script.py +105 -0
- windmill_api/api/postgres_trigger/delete_postgres_publication.py +109 -0
- windmill_api/api/postgres_trigger/delete_postgres_replication_slot.py +113 -0
- windmill_api/api/{capture/update_capture.py → postgres_trigger/delete_postgres_trigger.py} +4 -6
- windmill_api/api/postgres_trigger/exists_postgres_trigger.py +160 -0
- windmill_api/api/postgres_trigger/get_postgres_publication.py +180 -0
- windmill_api/api/postgres_trigger/get_postgres_trigger.py +166 -0
- windmill_api/api/postgres_trigger/get_template_script.py +101 -0
- windmill_api/api/postgres_trigger/is_valid_postgres_configuration.py +160 -0
- windmill_api/api/postgres_trigger/list_postgres_publication.py +161 -0
- windmill_api/api/postgres_trigger/list_postgres_replication_slot.py +171 -0
- windmill_api/api/postgres_trigger/list_postgres_triggers.py +237 -0
- windmill_api/api/postgres_trigger/set_postgres_trigger_enabled.py +113 -0
- windmill_api/api/postgres_trigger/update_postgres_publication.py +121 -0
- windmill_api/api/postgres_trigger/update_postgres_trigger.py +113 -0
- windmill_api/api/teams/__init__.py +0 -0
- windmill_api/api/teams/sync_teams.py +131 -0
- windmill_api/api/user/refresh_user_token.py +25 -4
- windmill_api/api/worker/get_custom_tags.py +50 -4
- windmill_api/api/workspace/change_workspace_color.py +105 -0
- windmill_api/api/workspace/get_threshold_alert.py +152 -0
- windmill_api/api/workspace/set_threshold_alert.py +105 -0
- windmill_api/api/workspace/update_operator_settings.py +109 -0
- windmill_api/models/add_granular_acls_kind.py +2 -0
- windmill_api/models/app_with_last_version.py +11 -1
- windmill_api/models/app_with_last_version_w_draft.py +8 -8
- windmill_api/models/archive_script_by_hash_response_200.py +8 -0
- windmill_api/models/archive_script_by_hash_response_200_kind.py +1 -0
- windmill_api/models/archive_script_by_hash_response_200_language.py +2 -0
- windmill_api/models/capture.py +94 -0
- windmill_api/models/capture_config.py +95 -0
- windmill_api/models/capture_config_trigger_kind.py +13 -0
- windmill_api/models/capture_trigger_kind.py +13 -0
- windmill_api/models/change_workspace_color_json_body.py +58 -0
- windmill_api/models/channel_info.py +80 -0
- windmill_api/models/completed_job_job_kind.py +2 -0
- windmill_api/models/completed_job_language.py +2 -0
- windmill_api/models/create_nats_trigger_json_body.py +120 -0
- windmill_api/models/create_postgres_publication_json_body.py +90 -0
- windmill_api/models/create_postgres_publication_json_body_table_to_track_item.py +86 -0
- windmill_api/models/create_postgres_publication_json_body_table_to_track_item_table_to_track_item.py +79 -0
- windmill_api/models/create_postgres_replication_slot_json_body.py +58 -0
- windmill_api/models/create_postgres_trigger_json_body.py +125 -0
- windmill_api/models/create_postgres_trigger_json_body_publication.py +92 -0
- windmill_api/models/create_postgres_trigger_json_body_publication_table_to_track_item.py +86 -0
- windmill_api/models/create_postgres_trigger_json_body_publication_table_to_track_item_table_to_track_item.py +79 -0
- windmill_api/models/create_script_json_body.py +8 -0
- windmill_api/models/create_script_json_body_kind.py +1 -0
- windmill_api/models/create_script_json_body_language.py +2 -0
- windmill_api/models/create_template_script_json_body.py +90 -0
- windmill_api/models/create_template_script_json_body_language.py +8 -0
- windmill_api/models/create_template_script_json_body_relations_item.py +86 -0
- windmill_api/models/create_template_script_json_body_relations_item_table_to_track_item.py +79 -0
- windmill_api/models/create_websocket_trigger_json_body.py +42 -29
- windmill_api/models/create_workspace.py +8 -0
- windmill_api/models/create_workspace_json_body.py +8 -0
- windmill_api/models/delete_completed_job_response_200_job_kind.py +2 -0
- windmill_api/models/delete_completed_job_response_200_language.py +2 -0
- windmill_api/models/delete_postgres_replication_slot_json_body.py +58 -0
- windmill_api/models/delete_script_by_hash_response_200.py +8 -0
- windmill_api/models/delete_script_by_hash_response_200_kind.py +1 -0
- windmill_api/models/delete_script_by_hash_response_200_language.py +2 -0
- windmill_api/models/edit_nats_trigger.py +112 -0
- windmill_api/models/edit_postgres_trigger.py +123 -0
- windmill_api/models/edit_postgres_trigger_publication.py +90 -0
- windmill_api/models/edit_postgres_trigger_publication_table_to_track_item.py +86 -0
- windmill_api/models/edit_postgres_trigger_publication_table_to_track_item_table_to_track_item.py +79 -0
- windmill_api/models/edit_websocket_trigger.py +35 -21
- windmill_api/models/execute_component_json_body.py +16 -0
- windmill_api/models/extended_jobs_jobs_item_type_0_job_kind.py +2 -0
- windmill_api/models/extended_jobs_jobs_item_type_0_language.py +2 -0
- windmill_api/models/extended_jobs_jobs_item_type_1_job_kind.py +2 -0
- windmill_api/models/extended_jobs_jobs_item_type_1_language.py +2 -0
- windmill_api/models/flow_metadata.py +8 -0
- windmill_api/models/flow_module_value_2_type_0_language.py +1 -0
- windmill_api/models/get_app_by_path_response_200.py +11 -1
- windmill_api/models/get_app_by_path_with_draft_response_200.py +8 -8
- windmill_api/models/get_app_by_version_response_200.py +11 -1
- windmill_api/models/get_app_lite_by_path_response_200.py +157 -0
- windmill_api/models/get_app_lite_by_path_response_200_execution_mode.py +10 -0
- windmill_api/models/get_app_lite_by_path_response_200_extra_perms.py +44 -0
- windmill_api/models/get_app_lite_by_path_response_200_policy.py +159 -0
- windmill_api/models/get_app_lite_by_path_response_200_policy_execution_mode.py +10 -0
- windmill_api/models/get_app_lite_by_path_response_200_policy_s3_inputs_item.py +44 -0
- windmill_api/models/get_app_lite_by_path_response_200_policy_triggerables.py +66 -0
- windmill_api/models/get_app_lite_by_path_response_200_policy_triggerables_additional_property.py +44 -0
- windmill_api/models/get_app_lite_by_path_response_200_policy_triggerables_v2.py +66 -0
- windmill_api/models/get_app_lite_by_path_response_200_policy_triggerables_v2_additional_property.py +44 -0
- windmill_api/models/get_app_lite_by_path_response_200_value.py +44 -0
- windmill_api/models/get_capture_configs_response_200_item.py +95 -0
- windmill_api/models/get_capture_configs_response_200_item_trigger_kind.py +13 -0
- windmill_api/models/get_capture_configs_runnable_kind.py +9 -0
- windmill_api/models/get_completed_job_response_200_job_kind.py +2 -0
- windmill_api/models/get_completed_job_response_200_language.py +2 -0
- windmill_api/models/get_flow_by_path_response_200.py +8 -0
- windmill_api/models/get_flow_by_path_with_draft_response_200_draft.py +8 -0
- windmill_api/models/get_flow_version_response_200.py +8 -0
- windmill_api/models/get_granular_acls_kind.py +2 -0
- windmill_api/models/get_http_trigger_response_200.py +36 -36
- windmill_api/models/get_job_response_200_type_0_job_kind.py +2 -0
- windmill_api/models/get_job_response_200_type_0_language.py +2 -0
- windmill_api/models/get_job_response_200_type_1_job_kind.py +2 -0
- windmill_api/models/get_job_response_200_type_1_language.py +2 -0
- windmill_api/models/get_nats_trigger_response_200.py +196 -0
- windmill_api/models/get_nats_trigger_response_200_extra_perms.py +44 -0
- windmill_api/models/get_postgres_publication_response_200.py +90 -0
- windmill_api/models/get_postgres_publication_response_200_table_to_track_item.py +86 -0
- windmill_api/models/get_postgres_publication_response_200_table_to_track_item_table_to_track_item.py +79 -0
- windmill_api/models/get_postgres_trigger_response_200.py +178 -0
- windmill_api/models/get_postgres_trigger_response_200_extra_perms.py +44 -0
- windmill_api/models/get_premium_info_response_200.py +7 -0
- windmill_api/models/get_public_app_by_custom_path_response_200.py +11 -1
- windmill_api/models/get_public_app_by_secret_response_200.py +11 -1
- windmill_api/models/get_script_by_hash_response_200.py +8 -0
- windmill_api/models/get_script_by_hash_response_200_kind.py +1 -0
- windmill_api/models/get_script_by_hash_response_200_language.py +2 -0
- windmill_api/models/get_script_by_path_response_200.py +8 -0
- windmill_api/models/get_script_by_path_response_200_kind.py +1 -0
- windmill_api/models/get_script_by_path_response_200_language.py +2 -0
- windmill_api/models/get_script_by_path_with_draft_response_200.py +8 -0
- windmill_api/models/get_script_by_path_with_draft_response_200_draft.py +8 -0
- windmill_api/models/get_script_by_path_with_draft_response_200_draft_kind.py +1 -0
- windmill_api/models/get_script_by_path_with_draft_response_200_draft_language.py +2 -0
- windmill_api/models/get_script_by_path_with_draft_response_200_kind.py +1 -0
- windmill_api/models/get_script_by_path_with_draft_response_200_language.py +2 -0
- windmill_api/models/get_settings_response_200.py +27 -0
- windmill_api/models/get_settings_response_200_operator_settings.py +114 -0
- windmill_api/models/get_suspended_job_flow_response_200_job_type_0_job_kind.py +2 -0
- windmill_api/models/get_suspended_job_flow_response_200_job_type_0_language.py +2 -0
- windmill_api/models/get_suspended_job_flow_response_200_job_type_1_job_kind.py +2 -0
- windmill_api/models/get_suspended_job_flow_response_200_job_type_1_language.py +2 -0
- windmill_api/models/get_threshold_alert_response_200.py +75 -0
- windmill_api/models/get_triggers_count_of_flow_response_200.py +16 -0
- windmill_api/models/get_triggers_count_of_script_response_200.py +16 -0
- windmill_api/models/get_used_triggers_response_200.py +14 -0
- windmill_api/models/get_user_response_200.py +8 -0
- windmill_api/models/get_websocket_trigger_response_200.py +89 -76
- windmill_api/models/http_trigger.py +36 -36
- windmill_api/models/job_type_0_job_kind.py +2 -0
- windmill_api/models/job_type_0_language.py +2 -0
- windmill_api/models/job_type_1_job_kind.py +2 -0
- windmill_api/models/job_type_1_language.py +2 -0
- windmill_api/models/language.py +8 -0
- windmill_api/models/list_captures_response_200_item.py +94 -0
- windmill_api/models/list_captures_response_200_item_trigger_kind.py +13 -0
- windmill_api/models/list_captures_runnable_kind.py +9 -0
- windmill_api/models/list_captures_trigger_kind.py +13 -0
- windmill_api/models/list_completed_jobs_response_200_item_job_kind.py +2 -0
- windmill_api/models/list_completed_jobs_response_200_item_language.py +2 -0
- windmill_api/models/list_extended_jobs_response_200_jobs_item_type_0_job_kind.py +2 -0
- windmill_api/models/list_extended_jobs_response_200_jobs_item_type_0_language.py +2 -0
- windmill_api/models/list_extended_jobs_response_200_jobs_item_type_1_job_kind.py +2 -0
- windmill_api/models/list_extended_jobs_response_200_jobs_item_type_1_language.py +2 -0
- windmill_api/models/list_http_triggers_response_200_item.py +36 -36
- windmill_api/models/list_jobs_response_200_item_type_0_job_kind.py +2 -0
- windmill_api/models/list_jobs_response_200_item_type_0_language.py +2 -0
- windmill_api/models/list_jobs_response_200_item_type_1_job_kind.py +2 -0
- windmill_api/models/list_jobs_response_200_item_type_1_language.py +2 -0
- windmill_api/models/list_nats_triggers_response_200_item.py +196 -0
- windmill_api/models/list_nats_triggers_response_200_item_extra_perms.py +44 -0
- windmill_api/models/list_postgres_replication_slot_response_200_item.py +66 -0
- windmill_api/models/list_postgres_triggers_response_200_item.py +182 -0
- windmill_api/models/list_postgres_triggers_response_200_item_extra_perms.py +44 -0
- windmill_api/models/list_queue_response_200_item_job_kind.py +2 -0
- windmill_api/models/list_queue_response_200_item_language.py +2 -0
- windmill_api/models/list_scripts_response_200_item.py +8 -0
- windmill_api/models/list_scripts_response_200_item_kind.py +1 -0
- windmill_api/models/list_scripts_response_200_item_language.py +2 -0
- windmill_api/models/list_user_workspaces_response_200_workspaces_item.py +39 -1
- windmill_api/models/list_user_workspaces_response_200_workspaces_item_operator_settings.py +114 -0
- windmill_api/models/list_users_response_200_item.py +8 -0
- windmill_api/models/list_websocket_triggers_response_200_item.py +89 -76
- windmill_api/models/list_workspaces_as_super_admin_response_200_item.py +8 -0
- windmill_api/models/list_workspaces_response_200_item.py +8 -0
- windmill_api/models/nats_trigger.py +196 -0
- windmill_api/models/nats_trigger_extra_perms.py +44 -0
- windmill_api/models/new_nats_trigger.py +120 -0
- windmill_api/models/new_postgres_trigger.py +125 -0
- windmill_api/models/new_postgres_trigger_publication.py +90 -0
- windmill_api/models/new_postgres_trigger_publication_table_to_track_item.py +86 -0
- windmill_api/models/new_postgres_trigger_publication_table_to_track_item_table_to_track_item.py +79 -0
- windmill_api/models/new_script.py +8 -0
- windmill_api/models/new_script_kind.py +1 -0
- windmill_api/models/new_script_language.py +2 -0
- windmill_api/models/new_script_with_draft.py +8 -0
- windmill_api/models/new_script_with_draft_draft.py +8 -0
- windmill_api/models/new_script_with_draft_draft_kind.py +1 -0
- windmill_api/models/new_script_with_draft_draft_language.py +2 -0
- windmill_api/models/new_script_with_draft_kind.py +1 -0
- windmill_api/models/new_script_with_draft_language.py +2 -0
- windmill_api/models/new_websocket_trigger.py +36 -26
- windmill_api/models/open_flow_w_path.py +8 -0
- windmill_api/models/operator_settings.py +114 -0
- windmill_api/models/ping_capture_config_runnable_kind.py +9 -0
- windmill_api/models/ping_capture_config_trigger_kind.py +13 -0
- windmill_api/models/postgres_trigger.py +178 -0
- windmill_api/models/postgres_trigger_extra_perms.py +44 -0
- windmill_api/models/preview_language.py +2 -0
- windmill_api/models/publication_data.py +86 -0
- windmill_api/models/publication_data_table_to_track_item.py +84 -0
- windmill_api/models/publication_data_table_to_track_item_table_to_track_item.py +79 -0
- windmill_api/models/queued_job_job_kind.py +2 -0
- windmill_api/models/queued_job_language.py +2 -0
- windmill_api/models/raw_script_for_dependencies_language.py +2 -0
- windmill_api/models/raw_script_language.py +1 -0
- windmill_api/models/relations.py +80 -0
- windmill_api/models/relations_table_to_track_item.py +79 -0
- windmill_api/models/remove_granular_acls_kind.py +2 -0
- windmill_api/models/run_raw_script_dependencies_json_body_raw_scripts_item_language.py +2 -0
- windmill_api/models/run_script_preview_json_body_language.py +2 -0
- windmill_api/models/script.py +8 -0
- windmill_api/models/script_kind.py +1 -0
- windmill_api/models/script_lang.py +25 -0
- windmill_api/models/script_language.py +2 -0
- windmill_api/models/set_capture_config_json_body.py +97 -0
- windmill_api/models/set_capture_config_json_body_trigger_config.py +44 -0
- windmill_api/models/set_capture_config_json_body_trigger_kind.py +13 -0
- windmill_api/models/set_nats_trigger_enabled_json_body.py +58 -0
- windmill_api/models/set_postgres_trigger_enabled_json_body.py +58 -0
- windmill_api/models/set_threshold_alert_json_body.py +58 -0
- windmill_api/models/slot.py +58 -0
- windmill_api/models/slot_list.py +66 -0
- windmill_api/models/sync_teams_response_200_item.py +87 -0
- windmill_api/models/sync_teams_response_200_item_channels_item.py +80 -0
- windmill_api/models/table_to_track_item.py +79 -0
- windmill_api/models/team_info.py +87 -0
- windmill_api/models/team_info_channels_item.py +80 -0
- windmill_api/models/template_script.py +90 -0
- windmill_api/models/template_script_language.py +8 -0
- windmill_api/models/template_script_relations_item.py +82 -0
- windmill_api/models/template_script_relations_item_table_to_track_item.py +79 -0
- windmill_api/models/trigger_extra_property.py +95 -0
- windmill_api/models/trigger_extra_property_extra_perms.py +44 -0
- windmill_api/models/triggers_count.py +16 -0
- windmill_api/models/update_nats_trigger_json_body.py +112 -0
- windmill_api/models/update_operator_settings_json_body.py +114 -0
- windmill_api/models/update_postgres_publication_json_body.py +90 -0
- windmill_api/models/update_postgres_publication_json_body_table_to_track_item.py +86 -0
- windmill_api/models/update_postgres_publication_json_body_table_to_track_item_table_to_track_item.py +79 -0
- windmill_api/models/update_postgres_trigger_json_body.py +123 -0
- windmill_api/models/update_postgres_trigger_json_body_publication.py +92 -0
- windmill_api/models/update_postgres_trigger_json_body_publication_table_to_track_item.py +86 -0
- windmill_api/models/update_postgres_trigger_json_body_publication_table_to_track_item_table_to_track_item.py +79 -0
- windmill_api/models/update_websocket_trigger_json_body.py +40 -24
- windmill_api/models/user.py +8 -0
- windmill_api/models/user_workspace_list_workspaces_item.py +37 -1
- windmill_api/models/user_workspace_list_workspaces_item_operator_settings.py +114 -0
- windmill_api/models/websocket_trigger.py +83 -73
- windmill_api/models/whoami_response_200.py +8 -0
- windmill_api/models/whois_response_200.py +8 -0
- windmill_api/models/workspace.py +8 -0
- {windmill_api-1.435.0.dist-info → windmill_api-1.450.1.dist-info}/METADATA +1 -1
- {windmill_api-1.435.0.dist-info → windmill_api-1.450.1.dist-info}/RECORD +275 -132
- {windmill_api-1.435.0.dist-info → windmill_api-1.450.1.dist-info}/LICENSE +0 -0
- {windmill_api-1.435.0.dist-info → windmill_api-1.450.1.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
from typing import Any, Dict, List, Type, TypeVar
|
|
2
|
+
|
|
3
|
+
from attrs import define as _attrs_define
|
|
4
|
+
from attrs import field as _attrs_field
|
|
5
|
+
|
|
6
|
+
T = TypeVar("T", bound="GetAppLiteByPathResponse200ExtraPerms")
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@_attrs_define
|
|
10
|
+
class GetAppLiteByPathResponse200ExtraPerms:
|
|
11
|
+
""" """
|
|
12
|
+
|
|
13
|
+
additional_properties: Dict[str, bool] = _attrs_field(init=False, factory=dict)
|
|
14
|
+
|
|
15
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
16
|
+
field_dict: Dict[str, Any] = {}
|
|
17
|
+
field_dict.update(self.additional_properties)
|
|
18
|
+
field_dict.update({})
|
|
19
|
+
|
|
20
|
+
return field_dict
|
|
21
|
+
|
|
22
|
+
@classmethod
|
|
23
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
24
|
+
d = src_dict.copy()
|
|
25
|
+
get_app_lite_by_path_response_200_extra_perms = cls()
|
|
26
|
+
|
|
27
|
+
get_app_lite_by_path_response_200_extra_perms.additional_properties = d
|
|
28
|
+
return get_app_lite_by_path_response_200_extra_perms
|
|
29
|
+
|
|
30
|
+
@property
|
|
31
|
+
def additional_keys(self) -> List[str]:
|
|
32
|
+
return list(self.additional_properties.keys())
|
|
33
|
+
|
|
34
|
+
def __getitem__(self, key: str) -> bool:
|
|
35
|
+
return self.additional_properties[key]
|
|
36
|
+
|
|
37
|
+
def __setitem__(self, key: str, value: bool) -> None:
|
|
38
|
+
self.additional_properties[key] = value
|
|
39
|
+
|
|
40
|
+
def __delitem__(self, key: str) -> None:
|
|
41
|
+
del self.additional_properties[key]
|
|
42
|
+
|
|
43
|
+
def __contains__(self, key: str) -> bool:
|
|
44
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
|
|
2
|
+
|
|
3
|
+
from attrs import define as _attrs_define
|
|
4
|
+
from attrs import field as _attrs_field
|
|
5
|
+
|
|
6
|
+
from ..models.get_app_lite_by_path_response_200_policy_execution_mode import (
|
|
7
|
+
GetAppLiteByPathResponse200PolicyExecutionMode,
|
|
8
|
+
)
|
|
9
|
+
from ..types import UNSET, Unset
|
|
10
|
+
|
|
11
|
+
if TYPE_CHECKING:
|
|
12
|
+
from ..models.get_app_lite_by_path_response_200_policy_s3_inputs_item import (
|
|
13
|
+
GetAppLiteByPathResponse200PolicyS3InputsItem,
|
|
14
|
+
)
|
|
15
|
+
from ..models.get_app_lite_by_path_response_200_policy_triggerables import (
|
|
16
|
+
GetAppLiteByPathResponse200PolicyTriggerables,
|
|
17
|
+
)
|
|
18
|
+
from ..models.get_app_lite_by_path_response_200_policy_triggerables_v2 import (
|
|
19
|
+
GetAppLiteByPathResponse200PolicyTriggerablesV2,
|
|
20
|
+
)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
T = TypeVar("T", bound="GetAppLiteByPathResponse200Policy")
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
@_attrs_define
|
|
27
|
+
class GetAppLiteByPathResponse200Policy:
|
|
28
|
+
"""
|
|
29
|
+
Attributes:
|
|
30
|
+
triggerables (Union[Unset, GetAppLiteByPathResponse200PolicyTriggerables]):
|
|
31
|
+
triggerables_v2 (Union[Unset, GetAppLiteByPathResponse200PolicyTriggerablesV2]):
|
|
32
|
+
s3_inputs (Union[Unset, List['GetAppLiteByPathResponse200PolicyS3InputsItem']]):
|
|
33
|
+
execution_mode (Union[Unset, GetAppLiteByPathResponse200PolicyExecutionMode]):
|
|
34
|
+
on_behalf_of (Union[Unset, str]):
|
|
35
|
+
on_behalf_of_email (Union[Unset, str]):
|
|
36
|
+
"""
|
|
37
|
+
|
|
38
|
+
triggerables: Union[Unset, "GetAppLiteByPathResponse200PolicyTriggerables"] = UNSET
|
|
39
|
+
triggerables_v2: Union[Unset, "GetAppLiteByPathResponse200PolicyTriggerablesV2"] = UNSET
|
|
40
|
+
s3_inputs: Union[Unset, List["GetAppLiteByPathResponse200PolicyS3InputsItem"]] = UNSET
|
|
41
|
+
execution_mode: Union[Unset, GetAppLiteByPathResponse200PolicyExecutionMode] = UNSET
|
|
42
|
+
on_behalf_of: Union[Unset, str] = UNSET
|
|
43
|
+
on_behalf_of_email: Union[Unset, str] = UNSET
|
|
44
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
45
|
+
|
|
46
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
47
|
+
triggerables: Union[Unset, Dict[str, Any]] = UNSET
|
|
48
|
+
if not isinstance(self.triggerables, Unset):
|
|
49
|
+
triggerables = self.triggerables.to_dict()
|
|
50
|
+
|
|
51
|
+
triggerables_v2: Union[Unset, Dict[str, Any]] = UNSET
|
|
52
|
+
if not isinstance(self.triggerables_v2, Unset):
|
|
53
|
+
triggerables_v2 = self.triggerables_v2.to_dict()
|
|
54
|
+
|
|
55
|
+
s3_inputs: Union[Unset, List[Dict[str, Any]]] = UNSET
|
|
56
|
+
if not isinstance(self.s3_inputs, Unset):
|
|
57
|
+
s3_inputs = []
|
|
58
|
+
for s3_inputs_item_data in self.s3_inputs:
|
|
59
|
+
s3_inputs_item = s3_inputs_item_data.to_dict()
|
|
60
|
+
|
|
61
|
+
s3_inputs.append(s3_inputs_item)
|
|
62
|
+
|
|
63
|
+
execution_mode: Union[Unset, str] = UNSET
|
|
64
|
+
if not isinstance(self.execution_mode, Unset):
|
|
65
|
+
execution_mode = self.execution_mode.value
|
|
66
|
+
|
|
67
|
+
on_behalf_of = self.on_behalf_of
|
|
68
|
+
on_behalf_of_email = self.on_behalf_of_email
|
|
69
|
+
|
|
70
|
+
field_dict: Dict[str, Any] = {}
|
|
71
|
+
field_dict.update(self.additional_properties)
|
|
72
|
+
field_dict.update({})
|
|
73
|
+
if triggerables is not UNSET:
|
|
74
|
+
field_dict["triggerables"] = triggerables
|
|
75
|
+
if triggerables_v2 is not UNSET:
|
|
76
|
+
field_dict["triggerables_v2"] = triggerables_v2
|
|
77
|
+
if s3_inputs is not UNSET:
|
|
78
|
+
field_dict["s3_inputs"] = s3_inputs
|
|
79
|
+
if execution_mode is not UNSET:
|
|
80
|
+
field_dict["execution_mode"] = execution_mode
|
|
81
|
+
if on_behalf_of is not UNSET:
|
|
82
|
+
field_dict["on_behalf_of"] = on_behalf_of
|
|
83
|
+
if on_behalf_of_email is not UNSET:
|
|
84
|
+
field_dict["on_behalf_of_email"] = on_behalf_of_email
|
|
85
|
+
|
|
86
|
+
return field_dict
|
|
87
|
+
|
|
88
|
+
@classmethod
|
|
89
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
90
|
+
from ..models.get_app_lite_by_path_response_200_policy_s3_inputs_item import (
|
|
91
|
+
GetAppLiteByPathResponse200PolicyS3InputsItem,
|
|
92
|
+
)
|
|
93
|
+
from ..models.get_app_lite_by_path_response_200_policy_triggerables import (
|
|
94
|
+
GetAppLiteByPathResponse200PolicyTriggerables,
|
|
95
|
+
)
|
|
96
|
+
from ..models.get_app_lite_by_path_response_200_policy_triggerables_v2 import (
|
|
97
|
+
GetAppLiteByPathResponse200PolicyTriggerablesV2,
|
|
98
|
+
)
|
|
99
|
+
|
|
100
|
+
d = src_dict.copy()
|
|
101
|
+
_triggerables = d.pop("triggerables", UNSET)
|
|
102
|
+
triggerables: Union[Unset, GetAppLiteByPathResponse200PolicyTriggerables]
|
|
103
|
+
if isinstance(_triggerables, Unset):
|
|
104
|
+
triggerables = UNSET
|
|
105
|
+
else:
|
|
106
|
+
triggerables = GetAppLiteByPathResponse200PolicyTriggerables.from_dict(_triggerables)
|
|
107
|
+
|
|
108
|
+
_triggerables_v2 = d.pop("triggerables_v2", UNSET)
|
|
109
|
+
triggerables_v2: Union[Unset, GetAppLiteByPathResponse200PolicyTriggerablesV2]
|
|
110
|
+
if isinstance(_triggerables_v2, Unset):
|
|
111
|
+
triggerables_v2 = UNSET
|
|
112
|
+
else:
|
|
113
|
+
triggerables_v2 = GetAppLiteByPathResponse200PolicyTriggerablesV2.from_dict(_triggerables_v2)
|
|
114
|
+
|
|
115
|
+
s3_inputs = []
|
|
116
|
+
_s3_inputs = d.pop("s3_inputs", UNSET)
|
|
117
|
+
for s3_inputs_item_data in _s3_inputs or []:
|
|
118
|
+
s3_inputs_item = GetAppLiteByPathResponse200PolicyS3InputsItem.from_dict(s3_inputs_item_data)
|
|
119
|
+
|
|
120
|
+
s3_inputs.append(s3_inputs_item)
|
|
121
|
+
|
|
122
|
+
_execution_mode = d.pop("execution_mode", UNSET)
|
|
123
|
+
execution_mode: Union[Unset, GetAppLiteByPathResponse200PolicyExecutionMode]
|
|
124
|
+
if isinstance(_execution_mode, Unset):
|
|
125
|
+
execution_mode = UNSET
|
|
126
|
+
else:
|
|
127
|
+
execution_mode = GetAppLiteByPathResponse200PolicyExecutionMode(_execution_mode)
|
|
128
|
+
|
|
129
|
+
on_behalf_of = d.pop("on_behalf_of", UNSET)
|
|
130
|
+
|
|
131
|
+
on_behalf_of_email = d.pop("on_behalf_of_email", UNSET)
|
|
132
|
+
|
|
133
|
+
get_app_lite_by_path_response_200_policy = cls(
|
|
134
|
+
triggerables=triggerables,
|
|
135
|
+
triggerables_v2=triggerables_v2,
|
|
136
|
+
s3_inputs=s3_inputs,
|
|
137
|
+
execution_mode=execution_mode,
|
|
138
|
+
on_behalf_of=on_behalf_of,
|
|
139
|
+
on_behalf_of_email=on_behalf_of_email,
|
|
140
|
+
)
|
|
141
|
+
|
|
142
|
+
get_app_lite_by_path_response_200_policy.additional_properties = d
|
|
143
|
+
return get_app_lite_by_path_response_200_policy
|
|
144
|
+
|
|
145
|
+
@property
|
|
146
|
+
def additional_keys(self) -> List[str]:
|
|
147
|
+
return list(self.additional_properties.keys())
|
|
148
|
+
|
|
149
|
+
def __getitem__(self, key: str) -> Any:
|
|
150
|
+
return self.additional_properties[key]
|
|
151
|
+
|
|
152
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
153
|
+
self.additional_properties[key] = value
|
|
154
|
+
|
|
155
|
+
def __delitem__(self, key: str) -> None:
|
|
156
|
+
del self.additional_properties[key]
|
|
157
|
+
|
|
158
|
+
def __contains__(self, key: str) -> bool:
|
|
159
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
from typing import Any, Dict, List, Type, TypeVar
|
|
2
|
+
|
|
3
|
+
from attrs import define as _attrs_define
|
|
4
|
+
from attrs import field as _attrs_field
|
|
5
|
+
|
|
6
|
+
T = TypeVar("T", bound="GetAppLiteByPathResponse200PolicyS3InputsItem")
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@_attrs_define
|
|
10
|
+
class GetAppLiteByPathResponse200PolicyS3InputsItem:
|
|
11
|
+
""" """
|
|
12
|
+
|
|
13
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
14
|
+
|
|
15
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
16
|
+
field_dict: Dict[str, Any] = {}
|
|
17
|
+
field_dict.update(self.additional_properties)
|
|
18
|
+
field_dict.update({})
|
|
19
|
+
|
|
20
|
+
return field_dict
|
|
21
|
+
|
|
22
|
+
@classmethod
|
|
23
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
24
|
+
d = src_dict.copy()
|
|
25
|
+
get_app_lite_by_path_response_200_policy_s3_inputs_item = cls()
|
|
26
|
+
|
|
27
|
+
get_app_lite_by_path_response_200_policy_s3_inputs_item.additional_properties = d
|
|
28
|
+
return get_app_lite_by_path_response_200_policy_s3_inputs_item
|
|
29
|
+
|
|
30
|
+
@property
|
|
31
|
+
def additional_keys(self) -> List[str]:
|
|
32
|
+
return list(self.additional_properties.keys())
|
|
33
|
+
|
|
34
|
+
def __getitem__(self, key: str) -> Any:
|
|
35
|
+
return self.additional_properties[key]
|
|
36
|
+
|
|
37
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
38
|
+
self.additional_properties[key] = value
|
|
39
|
+
|
|
40
|
+
def __delitem__(self, key: str) -> None:
|
|
41
|
+
del self.additional_properties[key]
|
|
42
|
+
|
|
43
|
+
def __contains__(self, key: str) -> bool:
|
|
44
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar
|
|
2
|
+
|
|
3
|
+
from attrs import define as _attrs_define
|
|
4
|
+
from attrs import field as _attrs_field
|
|
5
|
+
|
|
6
|
+
if TYPE_CHECKING:
|
|
7
|
+
from ..models.get_app_lite_by_path_response_200_policy_triggerables_additional_property import (
|
|
8
|
+
GetAppLiteByPathResponse200PolicyTriggerablesAdditionalProperty,
|
|
9
|
+
)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
T = TypeVar("T", bound="GetAppLiteByPathResponse200PolicyTriggerables")
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
@_attrs_define
|
|
16
|
+
class GetAppLiteByPathResponse200PolicyTriggerables:
|
|
17
|
+
""" """
|
|
18
|
+
|
|
19
|
+
additional_properties: Dict[str, "GetAppLiteByPathResponse200PolicyTriggerablesAdditionalProperty"] = _attrs_field(
|
|
20
|
+
init=False, factory=dict
|
|
21
|
+
)
|
|
22
|
+
|
|
23
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
24
|
+
pass
|
|
25
|
+
|
|
26
|
+
field_dict: Dict[str, Any] = {}
|
|
27
|
+
for prop_name, prop in self.additional_properties.items():
|
|
28
|
+
field_dict[prop_name] = prop.to_dict()
|
|
29
|
+
|
|
30
|
+
field_dict.update({})
|
|
31
|
+
|
|
32
|
+
return field_dict
|
|
33
|
+
|
|
34
|
+
@classmethod
|
|
35
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
36
|
+
from ..models.get_app_lite_by_path_response_200_policy_triggerables_additional_property import (
|
|
37
|
+
GetAppLiteByPathResponse200PolicyTriggerablesAdditionalProperty,
|
|
38
|
+
)
|
|
39
|
+
|
|
40
|
+
d = src_dict.copy()
|
|
41
|
+
get_app_lite_by_path_response_200_policy_triggerables = cls()
|
|
42
|
+
|
|
43
|
+
additional_properties = {}
|
|
44
|
+
for prop_name, prop_dict in d.items():
|
|
45
|
+
additional_property = GetAppLiteByPathResponse200PolicyTriggerablesAdditionalProperty.from_dict(prop_dict)
|
|
46
|
+
|
|
47
|
+
additional_properties[prop_name] = additional_property
|
|
48
|
+
|
|
49
|
+
get_app_lite_by_path_response_200_policy_triggerables.additional_properties = additional_properties
|
|
50
|
+
return get_app_lite_by_path_response_200_policy_triggerables
|
|
51
|
+
|
|
52
|
+
@property
|
|
53
|
+
def additional_keys(self) -> List[str]:
|
|
54
|
+
return list(self.additional_properties.keys())
|
|
55
|
+
|
|
56
|
+
def __getitem__(self, key: str) -> "GetAppLiteByPathResponse200PolicyTriggerablesAdditionalProperty":
|
|
57
|
+
return self.additional_properties[key]
|
|
58
|
+
|
|
59
|
+
def __setitem__(self, key: str, value: "GetAppLiteByPathResponse200PolicyTriggerablesAdditionalProperty") -> None:
|
|
60
|
+
self.additional_properties[key] = value
|
|
61
|
+
|
|
62
|
+
def __delitem__(self, key: str) -> None:
|
|
63
|
+
del self.additional_properties[key]
|
|
64
|
+
|
|
65
|
+
def __contains__(self, key: str) -> bool:
|
|
66
|
+
return key in self.additional_properties
|
windmill_api/models/get_app_lite_by_path_response_200_policy_triggerables_additional_property.py
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
from typing import Any, Dict, List, Type, TypeVar
|
|
2
|
+
|
|
3
|
+
from attrs import define as _attrs_define
|
|
4
|
+
from attrs import field as _attrs_field
|
|
5
|
+
|
|
6
|
+
T = TypeVar("T", bound="GetAppLiteByPathResponse200PolicyTriggerablesAdditionalProperty")
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@_attrs_define
|
|
10
|
+
class GetAppLiteByPathResponse200PolicyTriggerablesAdditionalProperty:
|
|
11
|
+
""" """
|
|
12
|
+
|
|
13
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
14
|
+
|
|
15
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
16
|
+
field_dict: Dict[str, Any] = {}
|
|
17
|
+
field_dict.update(self.additional_properties)
|
|
18
|
+
field_dict.update({})
|
|
19
|
+
|
|
20
|
+
return field_dict
|
|
21
|
+
|
|
22
|
+
@classmethod
|
|
23
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
24
|
+
d = src_dict.copy()
|
|
25
|
+
get_app_lite_by_path_response_200_policy_triggerables_additional_property = cls()
|
|
26
|
+
|
|
27
|
+
get_app_lite_by_path_response_200_policy_triggerables_additional_property.additional_properties = d
|
|
28
|
+
return get_app_lite_by_path_response_200_policy_triggerables_additional_property
|
|
29
|
+
|
|
30
|
+
@property
|
|
31
|
+
def additional_keys(self) -> List[str]:
|
|
32
|
+
return list(self.additional_properties.keys())
|
|
33
|
+
|
|
34
|
+
def __getitem__(self, key: str) -> Any:
|
|
35
|
+
return self.additional_properties[key]
|
|
36
|
+
|
|
37
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
38
|
+
self.additional_properties[key] = value
|
|
39
|
+
|
|
40
|
+
def __delitem__(self, key: str) -> None:
|
|
41
|
+
del self.additional_properties[key]
|
|
42
|
+
|
|
43
|
+
def __contains__(self, key: str) -> bool:
|
|
44
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar
|
|
2
|
+
|
|
3
|
+
from attrs import define as _attrs_define
|
|
4
|
+
from attrs import field as _attrs_field
|
|
5
|
+
|
|
6
|
+
if TYPE_CHECKING:
|
|
7
|
+
from ..models.get_app_lite_by_path_response_200_policy_triggerables_v2_additional_property import (
|
|
8
|
+
GetAppLiteByPathResponse200PolicyTriggerablesV2AdditionalProperty,
|
|
9
|
+
)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
T = TypeVar("T", bound="GetAppLiteByPathResponse200PolicyTriggerablesV2")
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
@_attrs_define
|
|
16
|
+
class GetAppLiteByPathResponse200PolicyTriggerablesV2:
|
|
17
|
+
""" """
|
|
18
|
+
|
|
19
|
+
additional_properties: Dict[
|
|
20
|
+
str, "GetAppLiteByPathResponse200PolicyTriggerablesV2AdditionalProperty"
|
|
21
|
+
] = _attrs_field(init=False, factory=dict)
|
|
22
|
+
|
|
23
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
24
|
+
pass
|
|
25
|
+
|
|
26
|
+
field_dict: Dict[str, Any] = {}
|
|
27
|
+
for prop_name, prop in self.additional_properties.items():
|
|
28
|
+
field_dict[prop_name] = prop.to_dict()
|
|
29
|
+
|
|
30
|
+
field_dict.update({})
|
|
31
|
+
|
|
32
|
+
return field_dict
|
|
33
|
+
|
|
34
|
+
@classmethod
|
|
35
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
36
|
+
from ..models.get_app_lite_by_path_response_200_policy_triggerables_v2_additional_property import (
|
|
37
|
+
GetAppLiteByPathResponse200PolicyTriggerablesV2AdditionalProperty,
|
|
38
|
+
)
|
|
39
|
+
|
|
40
|
+
d = src_dict.copy()
|
|
41
|
+
get_app_lite_by_path_response_200_policy_triggerables_v2 = cls()
|
|
42
|
+
|
|
43
|
+
additional_properties = {}
|
|
44
|
+
for prop_name, prop_dict in d.items():
|
|
45
|
+
additional_property = GetAppLiteByPathResponse200PolicyTriggerablesV2AdditionalProperty.from_dict(prop_dict)
|
|
46
|
+
|
|
47
|
+
additional_properties[prop_name] = additional_property
|
|
48
|
+
|
|
49
|
+
get_app_lite_by_path_response_200_policy_triggerables_v2.additional_properties = additional_properties
|
|
50
|
+
return get_app_lite_by_path_response_200_policy_triggerables_v2
|
|
51
|
+
|
|
52
|
+
@property
|
|
53
|
+
def additional_keys(self) -> List[str]:
|
|
54
|
+
return list(self.additional_properties.keys())
|
|
55
|
+
|
|
56
|
+
def __getitem__(self, key: str) -> "GetAppLiteByPathResponse200PolicyTriggerablesV2AdditionalProperty":
|
|
57
|
+
return self.additional_properties[key]
|
|
58
|
+
|
|
59
|
+
def __setitem__(self, key: str, value: "GetAppLiteByPathResponse200PolicyTriggerablesV2AdditionalProperty") -> None:
|
|
60
|
+
self.additional_properties[key] = value
|
|
61
|
+
|
|
62
|
+
def __delitem__(self, key: str) -> None:
|
|
63
|
+
del self.additional_properties[key]
|
|
64
|
+
|
|
65
|
+
def __contains__(self, key: str) -> bool:
|
|
66
|
+
return key in self.additional_properties
|
windmill_api/models/get_app_lite_by_path_response_200_policy_triggerables_v2_additional_property.py
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
from typing import Any, Dict, List, Type, TypeVar
|
|
2
|
+
|
|
3
|
+
from attrs import define as _attrs_define
|
|
4
|
+
from attrs import field as _attrs_field
|
|
5
|
+
|
|
6
|
+
T = TypeVar("T", bound="GetAppLiteByPathResponse200PolicyTriggerablesV2AdditionalProperty")
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@_attrs_define
|
|
10
|
+
class GetAppLiteByPathResponse200PolicyTriggerablesV2AdditionalProperty:
|
|
11
|
+
""" """
|
|
12
|
+
|
|
13
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
14
|
+
|
|
15
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
16
|
+
field_dict: Dict[str, Any] = {}
|
|
17
|
+
field_dict.update(self.additional_properties)
|
|
18
|
+
field_dict.update({})
|
|
19
|
+
|
|
20
|
+
return field_dict
|
|
21
|
+
|
|
22
|
+
@classmethod
|
|
23
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
24
|
+
d = src_dict.copy()
|
|
25
|
+
get_app_lite_by_path_response_200_policy_triggerables_v2_additional_property = cls()
|
|
26
|
+
|
|
27
|
+
get_app_lite_by_path_response_200_policy_triggerables_v2_additional_property.additional_properties = d
|
|
28
|
+
return get_app_lite_by_path_response_200_policy_triggerables_v2_additional_property
|
|
29
|
+
|
|
30
|
+
@property
|
|
31
|
+
def additional_keys(self) -> List[str]:
|
|
32
|
+
return list(self.additional_properties.keys())
|
|
33
|
+
|
|
34
|
+
def __getitem__(self, key: str) -> Any:
|
|
35
|
+
return self.additional_properties[key]
|
|
36
|
+
|
|
37
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
38
|
+
self.additional_properties[key] = value
|
|
39
|
+
|
|
40
|
+
def __delitem__(self, key: str) -> None:
|
|
41
|
+
del self.additional_properties[key]
|
|
42
|
+
|
|
43
|
+
def __contains__(self, key: str) -> bool:
|
|
44
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
from typing import Any, Dict, List, Type, TypeVar
|
|
2
|
+
|
|
3
|
+
from attrs import define as _attrs_define
|
|
4
|
+
from attrs import field as _attrs_field
|
|
5
|
+
|
|
6
|
+
T = TypeVar("T", bound="GetAppLiteByPathResponse200Value")
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@_attrs_define
|
|
10
|
+
class GetAppLiteByPathResponse200Value:
|
|
11
|
+
""" """
|
|
12
|
+
|
|
13
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
14
|
+
|
|
15
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
16
|
+
field_dict: Dict[str, Any] = {}
|
|
17
|
+
field_dict.update(self.additional_properties)
|
|
18
|
+
field_dict.update({})
|
|
19
|
+
|
|
20
|
+
return field_dict
|
|
21
|
+
|
|
22
|
+
@classmethod
|
|
23
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
24
|
+
d = src_dict.copy()
|
|
25
|
+
get_app_lite_by_path_response_200_value = cls()
|
|
26
|
+
|
|
27
|
+
get_app_lite_by_path_response_200_value.additional_properties = d
|
|
28
|
+
return get_app_lite_by_path_response_200_value
|
|
29
|
+
|
|
30
|
+
@property
|
|
31
|
+
def additional_keys(self) -> List[str]:
|
|
32
|
+
return list(self.additional_properties.keys())
|
|
33
|
+
|
|
34
|
+
def __getitem__(self, key: str) -> Any:
|
|
35
|
+
return self.additional_properties[key]
|
|
36
|
+
|
|
37
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
38
|
+
self.additional_properties[key] = value
|
|
39
|
+
|
|
40
|
+
def __delitem__(self, key: str) -> None:
|
|
41
|
+
del self.additional_properties[key]
|
|
42
|
+
|
|
43
|
+
def __contains__(self, key: str) -> bool:
|
|
44
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import datetime
|
|
2
|
+
from typing import Any, Dict, List, Type, TypeVar, Union
|
|
3
|
+
|
|
4
|
+
from attrs import define as _attrs_define
|
|
5
|
+
from attrs import field as _attrs_field
|
|
6
|
+
from dateutil.parser import isoparse
|
|
7
|
+
|
|
8
|
+
from ..models.get_capture_configs_response_200_item_trigger_kind import GetCaptureConfigsResponse200ItemTriggerKind
|
|
9
|
+
from ..types import UNSET, Unset
|
|
10
|
+
|
|
11
|
+
T = TypeVar("T", bound="GetCaptureConfigsResponse200Item")
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
@_attrs_define
|
|
15
|
+
class GetCaptureConfigsResponse200Item:
|
|
16
|
+
"""
|
|
17
|
+
Attributes:
|
|
18
|
+
trigger_kind (GetCaptureConfigsResponse200ItemTriggerKind):
|
|
19
|
+
trigger_config (Union[Unset, Any]):
|
|
20
|
+
error (Union[Unset, str]):
|
|
21
|
+
last_server_ping (Union[Unset, datetime.datetime]):
|
|
22
|
+
"""
|
|
23
|
+
|
|
24
|
+
trigger_kind: GetCaptureConfigsResponse200ItemTriggerKind
|
|
25
|
+
trigger_config: Union[Unset, Any] = UNSET
|
|
26
|
+
error: Union[Unset, str] = UNSET
|
|
27
|
+
last_server_ping: Union[Unset, datetime.datetime] = UNSET
|
|
28
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
29
|
+
|
|
30
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
31
|
+
trigger_kind = self.trigger_kind.value
|
|
32
|
+
|
|
33
|
+
trigger_config = self.trigger_config
|
|
34
|
+
error = self.error
|
|
35
|
+
last_server_ping: Union[Unset, str] = UNSET
|
|
36
|
+
if not isinstance(self.last_server_ping, Unset):
|
|
37
|
+
last_server_ping = self.last_server_ping.isoformat()
|
|
38
|
+
|
|
39
|
+
field_dict: Dict[str, Any] = {}
|
|
40
|
+
field_dict.update(self.additional_properties)
|
|
41
|
+
field_dict.update(
|
|
42
|
+
{
|
|
43
|
+
"trigger_kind": trigger_kind,
|
|
44
|
+
}
|
|
45
|
+
)
|
|
46
|
+
if trigger_config is not UNSET:
|
|
47
|
+
field_dict["trigger_config"] = trigger_config
|
|
48
|
+
if error is not UNSET:
|
|
49
|
+
field_dict["error"] = error
|
|
50
|
+
if last_server_ping is not UNSET:
|
|
51
|
+
field_dict["last_server_ping"] = last_server_ping
|
|
52
|
+
|
|
53
|
+
return field_dict
|
|
54
|
+
|
|
55
|
+
@classmethod
|
|
56
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
57
|
+
d = src_dict.copy()
|
|
58
|
+
trigger_kind = GetCaptureConfigsResponse200ItemTriggerKind(d.pop("trigger_kind"))
|
|
59
|
+
|
|
60
|
+
trigger_config = d.pop("trigger_config", UNSET)
|
|
61
|
+
|
|
62
|
+
error = d.pop("error", UNSET)
|
|
63
|
+
|
|
64
|
+
_last_server_ping = d.pop("last_server_ping", UNSET)
|
|
65
|
+
last_server_ping: Union[Unset, datetime.datetime]
|
|
66
|
+
if isinstance(_last_server_ping, Unset):
|
|
67
|
+
last_server_ping = UNSET
|
|
68
|
+
else:
|
|
69
|
+
last_server_ping = isoparse(_last_server_ping)
|
|
70
|
+
|
|
71
|
+
get_capture_configs_response_200_item = cls(
|
|
72
|
+
trigger_kind=trigger_kind,
|
|
73
|
+
trigger_config=trigger_config,
|
|
74
|
+
error=error,
|
|
75
|
+
last_server_ping=last_server_ping,
|
|
76
|
+
)
|
|
77
|
+
|
|
78
|
+
get_capture_configs_response_200_item.additional_properties = d
|
|
79
|
+
return get_capture_configs_response_200_item
|
|
80
|
+
|
|
81
|
+
@property
|
|
82
|
+
def additional_keys(self) -> List[str]:
|
|
83
|
+
return list(self.additional_properties.keys())
|
|
84
|
+
|
|
85
|
+
def __getitem__(self, key: str) -> Any:
|
|
86
|
+
return self.additional_properties[key]
|
|
87
|
+
|
|
88
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
89
|
+
self.additional_properties[key] = value
|
|
90
|
+
|
|
91
|
+
def __delitem__(self, key: str) -> None:
|
|
92
|
+
del self.additional_properties[key]
|
|
93
|
+
|
|
94
|
+
def __contains__(self, key: str) -> bool:
|
|
95
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
from enum import Enum
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class GetCaptureConfigsResponse200ItemTriggerKind(str, Enum):
|
|
5
|
+
EMAIL = "email"
|
|
6
|
+
HTTP = "http"
|
|
7
|
+
KAFKA = "kafka"
|
|
8
|
+
NATS = "nats"
|
|
9
|
+
WEBHOOK = "webhook"
|
|
10
|
+
WEBSOCKET = "websocket"
|
|
11
|
+
|
|
12
|
+
def __str__(self) -> str:
|
|
13
|
+
return str(self.value)
|
|
@@ -3,10 +3,12 @@ from enum import Enum
|
|
|
3
3
|
|
|
4
4
|
class GetCompletedJobResponse200JobKind(str, Enum):
|
|
5
5
|
APPDEPENDENCIES = "appdependencies"
|
|
6
|
+
APPSCRIPT = "appscript"
|
|
6
7
|
DEPENDENCIES = "dependencies"
|
|
7
8
|
DEPLOYMENTCALLBACK = "deploymentcallback"
|
|
8
9
|
FLOW = "flow"
|
|
9
10
|
FLOWDEPENDENCIES = "flowdependencies"
|
|
11
|
+
FLOWNODE = "flownode"
|
|
10
12
|
FLOWPREVIEW = "flowpreview"
|
|
11
13
|
FLOWSCRIPT = "flowscript"
|
|
12
14
|
IDENTITY = "identity"
|
|
@@ -6,12 +6,14 @@ class GetCompletedJobResponse200Language(str, Enum):
|
|
|
6
6
|
BASH = "bash"
|
|
7
7
|
BIGQUERY = "bigquery"
|
|
8
8
|
BUN = "bun"
|
|
9
|
+
CSHARP = "csharp"
|
|
9
10
|
DENO = "deno"
|
|
10
11
|
GO = "go"
|
|
11
12
|
GRAPHQL = "graphql"
|
|
12
13
|
MSSQL = "mssql"
|
|
13
14
|
MYSQL = "mysql"
|
|
14
15
|
NATIVETS = "nativets"
|
|
16
|
+
ORACLEDB = "oracledb"
|
|
15
17
|
PHP = "php"
|
|
16
18
|
POSTGRESQL = "postgresql"
|
|
17
19
|
POWERSHELL = "powershell"
|