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,120 @@
|
|
|
1
|
+
from typing import Any, Dict, List, Type, TypeVar, Union, cast
|
|
2
|
+
|
|
3
|
+
from attrs import define as _attrs_define
|
|
4
|
+
from attrs import field as _attrs_field
|
|
5
|
+
|
|
6
|
+
from ..types import UNSET, Unset
|
|
7
|
+
|
|
8
|
+
T = TypeVar("T", bound="NewNatsTrigger")
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
@_attrs_define
|
|
12
|
+
class NewNatsTrigger:
|
|
13
|
+
"""
|
|
14
|
+
Attributes:
|
|
15
|
+
path (str):
|
|
16
|
+
script_path (str):
|
|
17
|
+
is_flow (bool):
|
|
18
|
+
nats_resource_path (str):
|
|
19
|
+
use_jetstream (bool):
|
|
20
|
+
subjects (List[str]):
|
|
21
|
+
stream_name (Union[Unset, str]):
|
|
22
|
+
consumer_name (Union[Unset, str]):
|
|
23
|
+
enabled (Union[Unset, bool]):
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
path: str
|
|
27
|
+
script_path: str
|
|
28
|
+
is_flow: bool
|
|
29
|
+
nats_resource_path: str
|
|
30
|
+
use_jetstream: bool
|
|
31
|
+
subjects: List[str]
|
|
32
|
+
stream_name: Union[Unset, str] = UNSET
|
|
33
|
+
consumer_name: Union[Unset, str] = UNSET
|
|
34
|
+
enabled: Union[Unset, bool] = UNSET
|
|
35
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
36
|
+
|
|
37
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
38
|
+
path = self.path
|
|
39
|
+
script_path = self.script_path
|
|
40
|
+
is_flow = self.is_flow
|
|
41
|
+
nats_resource_path = self.nats_resource_path
|
|
42
|
+
use_jetstream = self.use_jetstream
|
|
43
|
+
subjects = self.subjects
|
|
44
|
+
|
|
45
|
+
stream_name = self.stream_name
|
|
46
|
+
consumer_name = self.consumer_name
|
|
47
|
+
enabled = self.enabled
|
|
48
|
+
|
|
49
|
+
field_dict: Dict[str, Any] = {}
|
|
50
|
+
field_dict.update(self.additional_properties)
|
|
51
|
+
field_dict.update(
|
|
52
|
+
{
|
|
53
|
+
"path": path,
|
|
54
|
+
"script_path": script_path,
|
|
55
|
+
"is_flow": is_flow,
|
|
56
|
+
"nats_resource_path": nats_resource_path,
|
|
57
|
+
"use_jetstream": use_jetstream,
|
|
58
|
+
"subjects": subjects,
|
|
59
|
+
}
|
|
60
|
+
)
|
|
61
|
+
if stream_name is not UNSET:
|
|
62
|
+
field_dict["stream_name"] = stream_name
|
|
63
|
+
if consumer_name is not UNSET:
|
|
64
|
+
field_dict["consumer_name"] = consumer_name
|
|
65
|
+
if enabled is not UNSET:
|
|
66
|
+
field_dict["enabled"] = enabled
|
|
67
|
+
|
|
68
|
+
return field_dict
|
|
69
|
+
|
|
70
|
+
@classmethod
|
|
71
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
72
|
+
d = src_dict.copy()
|
|
73
|
+
path = d.pop("path")
|
|
74
|
+
|
|
75
|
+
script_path = d.pop("script_path")
|
|
76
|
+
|
|
77
|
+
is_flow = d.pop("is_flow")
|
|
78
|
+
|
|
79
|
+
nats_resource_path = d.pop("nats_resource_path")
|
|
80
|
+
|
|
81
|
+
use_jetstream = d.pop("use_jetstream")
|
|
82
|
+
|
|
83
|
+
subjects = cast(List[str], d.pop("subjects"))
|
|
84
|
+
|
|
85
|
+
stream_name = d.pop("stream_name", UNSET)
|
|
86
|
+
|
|
87
|
+
consumer_name = d.pop("consumer_name", UNSET)
|
|
88
|
+
|
|
89
|
+
enabled = d.pop("enabled", UNSET)
|
|
90
|
+
|
|
91
|
+
new_nats_trigger = cls(
|
|
92
|
+
path=path,
|
|
93
|
+
script_path=script_path,
|
|
94
|
+
is_flow=is_flow,
|
|
95
|
+
nats_resource_path=nats_resource_path,
|
|
96
|
+
use_jetstream=use_jetstream,
|
|
97
|
+
subjects=subjects,
|
|
98
|
+
stream_name=stream_name,
|
|
99
|
+
consumer_name=consumer_name,
|
|
100
|
+
enabled=enabled,
|
|
101
|
+
)
|
|
102
|
+
|
|
103
|
+
new_nats_trigger.additional_properties = d
|
|
104
|
+
return new_nats_trigger
|
|
105
|
+
|
|
106
|
+
@property
|
|
107
|
+
def additional_keys(self) -> List[str]:
|
|
108
|
+
return list(self.additional_properties.keys())
|
|
109
|
+
|
|
110
|
+
def __getitem__(self, key: str) -> Any:
|
|
111
|
+
return self.additional_properties[key]
|
|
112
|
+
|
|
113
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
114
|
+
self.additional_properties[key] = value
|
|
115
|
+
|
|
116
|
+
def __delitem__(self, key: str) -> None:
|
|
117
|
+
del self.additional_properties[key]
|
|
118
|
+
|
|
119
|
+
def __contains__(self, key: str) -> bool:
|
|
120
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,125 @@
|
|
|
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 ..types import UNSET, Unset
|
|
7
|
+
|
|
8
|
+
if TYPE_CHECKING:
|
|
9
|
+
from ..models.new_postgres_trigger_publication import NewPostgresTriggerPublication
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
T = TypeVar("T", bound="NewPostgresTrigger")
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
@_attrs_define
|
|
16
|
+
class NewPostgresTrigger:
|
|
17
|
+
"""
|
|
18
|
+
Attributes:
|
|
19
|
+
path (str):
|
|
20
|
+
script_path (str):
|
|
21
|
+
is_flow (bool):
|
|
22
|
+
enabled (bool):
|
|
23
|
+
postgres_resource_path (str):
|
|
24
|
+
replication_slot_name (Union[Unset, str]):
|
|
25
|
+
publication_name (Union[Unset, str]):
|
|
26
|
+
publication (Union[Unset, NewPostgresTriggerPublication]):
|
|
27
|
+
"""
|
|
28
|
+
|
|
29
|
+
path: str
|
|
30
|
+
script_path: str
|
|
31
|
+
is_flow: bool
|
|
32
|
+
enabled: bool
|
|
33
|
+
postgres_resource_path: str
|
|
34
|
+
replication_slot_name: Union[Unset, str] = UNSET
|
|
35
|
+
publication_name: Union[Unset, str] = UNSET
|
|
36
|
+
publication: Union[Unset, "NewPostgresTriggerPublication"] = UNSET
|
|
37
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
38
|
+
|
|
39
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
40
|
+
path = self.path
|
|
41
|
+
script_path = self.script_path
|
|
42
|
+
is_flow = self.is_flow
|
|
43
|
+
enabled = self.enabled
|
|
44
|
+
postgres_resource_path = self.postgres_resource_path
|
|
45
|
+
replication_slot_name = self.replication_slot_name
|
|
46
|
+
publication_name = self.publication_name
|
|
47
|
+
publication: Union[Unset, Dict[str, Any]] = UNSET
|
|
48
|
+
if not isinstance(self.publication, Unset):
|
|
49
|
+
publication = self.publication.to_dict()
|
|
50
|
+
|
|
51
|
+
field_dict: Dict[str, Any] = {}
|
|
52
|
+
field_dict.update(self.additional_properties)
|
|
53
|
+
field_dict.update(
|
|
54
|
+
{
|
|
55
|
+
"path": path,
|
|
56
|
+
"script_path": script_path,
|
|
57
|
+
"is_flow": is_flow,
|
|
58
|
+
"enabled": enabled,
|
|
59
|
+
"postgres_resource_path": postgres_resource_path,
|
|
60
|
+
}
|
|
61
|
+
)
|
|
62
|
+
if replication_slot_name is not UNSET:
|
|
63
|
+
field_dict["replication_slot_name"] = replication_slot_name
|
|
64
|
+
if publication_name is not UNSET:
|
|
65
|
+
field_dict["publication_name"] = publication_name
|
|
66
|
+
if publication is not UNSET:
|
|
67
|
+
field_dict["publication"] = publication
|
|
68
|
+
|
|
69
|
+
return field_dict
|
|
70
|
+
|
|
71
|
+
@classmethod
|
|
72
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
73
|
+
from ..models.new_postgres_trigger_publication import NewPostgresTriggerPublication
|
|
74
|
+
|
|
75
|
+
d = src_dict.copy()
|
|
76
|
+
path = d.pop("path")
|
|
77
|
+
|
|
78
|
+
script_path = d.pop("script_path")
|
|
79
|
+
|
|
80
|
+
is_flow = d.pop("is_flow")
|
|
81
|
+
|
|
82
|
+
enabled = d.pop("enabled")
|
|
83
|
+
|
|
84
|
+
postgres_resource_path = d.pop("postgres_resource_path")
|
|
85
|
+
|
|
86
|
+
replication_slot_name = d.pop("replication_slot_name", UNSET)
|
|
87
|
+
|
|
88
|
+
publication_name = d.pop("publication_name", UNSET)
|
|
89
|
+
|
|
90
|
+
_publication = d.pop("publication", UNSET)
|
|
91
|
+
publication: Union[Unset, NewPostgresTriggerPublication]
|
|
92
|
+
if isinstance(_publication, Unset):
|
|
93
|
+
publication = UNSET
|
|
94
|
+
else:
|
|
95
|
+
publication = NewPostgresTriggerPublication.from_dict(_publication)
|
|
96
|
+
|
|
97
|
+
new_postgres_trigger = cls(
|
|
98
|
+
path=path,
|
|
99
|
+
script_path=script_path,
|
|
100
|
+
is_flow=is_flow,
|
|
101
|
+
enabled=enabled,
|
|
102
|
+
postgres_resource_path=postgres_resource_path,
|
|
103
|
+
replication_slot_name=replication_slot_name,
|
|
104
|
+
publication_name=publication_name,
|
|
105
|
+
publication=publication,
|
|
106
|
+
)
|
|
107
|
+
|
|
108
|
+
new_postgres_trigger.additional_properties = d
|
|
109
|
+
return new_postgres_trigger
|
|
110
|
+
|
|
111
|
+
@property
|
|
112
|
+
def additional_keys(self) -> List[str]:
|
|
113
|
+
return list(self.additional_properties.keys())
|
|
114
|
+
|
|
115
|
+
def __getitem__(self, key: str) -> Any:
|
|
116
|
+
return self.additional_properties[key]
|
|
117
|
+
|
|
118
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
119
|
+
self.additional_properties[key] = value
|
|
120
|
+
|
|
121
|
+
def __delitem__(self, key: str) -> None:
|
|
122
|
+
del self.additional_properties[key]
|
|
123
|
+
|
|
124
|
+
def __contains__(self, key: str) -> bool:
|
|
125
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union, cast
|
|
2
|
+
|
|
3
|
+
from attrs import define as _attrs_define
|
|
4
|
+
from attrs import field as _attrs_field
|
|
5
|
+
|
|
6
|
+
from ..types import UNSET, Unset
|
|
7
|
+
|
|
8
|
+
if TYPE_CHECKING:
|
|
9
|
+
from ..models.new_postgres_trigger_publication_table_to_track_item import (
|
|
10
|
+
NewPostgresTriggerPublicationTableToTrackItem,
|
|
11
|
+
)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
T = TypeVar("T", bound="NewPostgresTriggerPublication")
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
@_attrs_define
|
|
18
|
+
class NewPostgresTriggerPublication:
|
|
19
|
+
"""
|
|
20
|
+
Attributes:
|
|
21
|
+
transaction_to_track (List[str]):
|
|
22
|
+
table_to_track (Union[Unset, List['NewPostgresTriggerPublicationTableToTrackItem']]):
|
|
23
|
+
"""
|
|
24
|
+
|
|
25
|
+
transaction_to_track: List[str]
|
|
26
|
+
table_to_track: Union[Unset, List["NewPostgresTriggerPublicationTableToTrackItem"]] = UNSET
|
|
27
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
28
|
+
|
|
29
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
30
|
+
transaction_to_track = self.transaction_to_track
|
|
31
|
+
|
|
32
|
+
table_to_track: Union[Unset, List[Dict[str, Any]]] = UNSET
|
|
33
|
+
if not isinstance(self.table_to_track, Unset):
|
|
34
|
+
table_to_track = []
|
|
35
|
+
for table_to_track_item_data in self.table_to_track:
|
|
36
|
+
table_to_track_item = table_to_track_item_data.to_dict()
|
|
37
|
+
|
|
38
|
+
table_to_track.append(table_to_track_item)
|
|
39
|
+
|
|
40
|
+
field_dict: Dict[str, Any] = {}
|
|
41
|
+
field_dict.update(self.additional_properties)
|
|
42
|
+
field_dict.update(
|
|
43
|
+
{
|
|
44
|
+
"transaction_to_track": transaction_to_track,
|
|
45
|
+
}
|
|
46
|
+
)
|
|
47
|
+
if table_to_track is not UNSET:
|
|
48
|
+
field_dict["table_to_track"] = table_to_track
|
|
49
|
+
|
|
50
|
+
return field_dict
|
|
51
|
+
|
|
52
|
+
@classmethod
|
|
53
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
54
|
+
from ..models.new_postgres_trigger_publication_table_to_track_item import (
|
|
55
|
+
NewPostgresTriggerPublicationTableToTrackItem,
|
|
56
|
+
)
|
|
57
|
+
|
|
58
|
+
d = src_dict.copy()
|
|
59
|
+
transaction_to_track = cast(List[str], d.pop("transaction_to_track"))
|
|
60
|
+
|
|
61
|
+
table_to_track = []
|
|
62
|
+
_table_to_track = d.pop("table_to_track", UNSET)
|
|
63
|
+
for table_to_track_item_data in _table_to_track or []:
|
|
64
|
+
table_to_track_item = NewPostgresTriggerPublicationTableToTrackItem.from_dict(table_to_track_item_data)
|
|
65
|
+
|
|
66
|
+
table_to_track.append(table_to_track_item)
|
|
67
|
+
|
|
68
|
+
new_postgres_trigger_publication = cls(
|
|
69
|
+
transaction_to_track=transaction_to_track,
|
|
70
|
+
table_to_track=table_to_track,
|
|
71
|
+
)
|
|
72
|
+
|
|
73
|
+
new_postgres_trigger_publication.additional_properties = d
|
|
74
|
+
return new_postgres_trigger_publication
|
|
75
|
+
|
|
76
|
+
@property
|
|
77
|
+
def additional_keys(self) -> List[str]:
|
|
78
|
+
return list(self.additional_properties.keys())
|
|
79
|
+
|
|
80
|
+
def __getitem__(self, key: str) -> Any:
|
|
81
|
+
return self.additional_properties[key]
|
|
82
|
+
|
|
83
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
84
|
+
self.additional_properties[key] = value
|
|
85
|
+
|
|
86
|
+
def __delitem__(self, key: str) -> None:
|
|
87
|
+
del self.additional_properties[key]
|
|
88
|
+
|
|
89
|
+
def __contains__(self, key: str) -> bool:
|
|
90
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,86 @@
|
|
|
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.new_postgres_trigger_publication_table_to_track_item_table_to_track_item import (
|
|
8
|
+
NewPostgresTriggerPublicationTableToTrackItemTableToTrackItem,
|
|
9
|
+
)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
T = TypeVar("T", bound="NewPostgresTriggerPublicationTableToTrackItem")
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
@_attrs_define
|
|
16
|
+
class NewPostgresTriggerPublicationTableToTrackItem:
|
|
17
|
+
"""
|
|
18
|
+
Attributes:
|
|
19
|
+
schema_name (str):
|
|
20
|
+
table_to_track (List['NewPostgresTriggerPublicationTableToTrackItemTableToTrackItem']):
|
|
21
|
+
"""
|
|
22
|
+
|
|
23
|
+
schema_name: str
|
|
24
|
+
table_to_track: List["NewPostgresTriggerPublicationTableToTrackItemTableToTrackItem"]
|
|
25
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
26
|
+
|
|
27
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
28
|
+
schema_name = self.schema_name
|
|
29
|
+
table_to_track = []
|
|
30
|
+
for table_to_track_item_data in self.table_to_track:
|
|
31
|
+
table_to_track_item = table_to_track_item_data.to_dict()
|
|
32
|
+
|
|
33
|
+
table_to_track.append(table_to_track_item)
|
|
34
|
+
|
|
35
|
+
field_dict: Dict[str, Any] = {}
|
|
36
|
+
field_dict.update(self.additional_properties)
|
|
37
|
+
field_dict.update(
|
|
38
|
+
{
|
|
39
|
+
"schema_name": schema_name,
|
|
40
|
+
"table_to_track": table_to_track,
|
|
41
|
+
}
|
|
42
|
+
)
|
|
43
|
+
|
|
44
|
+
return field_dict
|
|
45
|
+
|
|
46
|
+
@classmethod
|
|
47
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
48
|
+
from ..models.new_postgres_trigger_publication_table_to_track_item_table_to_track_item import (
|
|
49
|
+
NewPostgresTriggerPublicationTableToTrackItemTableToTrackItem,
|
|
50
|
+
)
|
|
51
|
+
|
|
52
|
+
d = src_dict.copy()
|
|
53
|
+
schema_name = d.pop("schema_name")
|
|
54
|
+
|
|
55
|
+
table_to_track = []
|
|
56
|
+
_table_to_track = d.pop("table_to_track")
|
|
57
|
+
for table_to_track_item_data in _table_to_track:
|
|
58
|
+
table_to_track_item = NewPostgresTriggerPublicationTableToTrackItemTableToTrackItem.from_dict(
|
|
59
|
+
table_to_track_item_data
|
|
60
|
+
)
|
|
61
|
+
|
|
62
|
+
table_to_track.append(table_to_track_item)
|
|
63
|
+
|
|
64
|
+
new_postgres_trigger_publication_table_to_track_item = cls(
|
|
65
|
+
schema_name=schema_name,
|
|
66
|
+
table_to_track=table_to_track,
|
|
67
|
+
)
|
|
68
|
+
|
|
69
|
+
new_postgres_trigger_publication_table_to_track_item.additional_properties = d
|
|
70
|
+
return new_postgres_trigger_publication_table_to_track_item
|
|
71
|
+
|
|
72
|
+
@property
|
|
73
|
+
def additional_keys(self) -> List[str]:
|
|
74
|
+
return list(self.additional_properties.keys())
|
|
75
|
+
|
|
76
|
+
def __getitem__(self, key: str) -> Any:
|
|
77
|
+
return self.additional_properties[key]
|
|
78
|
+
|
|
79
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
80
|
+
self.additional_properties[key] = value
|
|
81
|
+
|
|
82
|
+
def __delitem__(self, key: str) -> None:
|
|
83
|
+
del self.additional_properties[key]
|
|
84
|
+
|
|
85
|
+
def __contains__(self, key: str) -> bool:
|
|
86
|
+
return key in self.additional_properties
|
windmill_api/models/new_postgres_trigger_publication_table_to_track_item_table_to_track_item.py
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
from typing import Any, Dict, List, Type, TypeVar, Union, cast
|
|
2
|
+
|
|
3
|
+
from attrs import define as _attrs_define
|
|
4
|
+
from attrs import field as _attrs_field
|
|
5
|
+
|
|
6
|
+
from ..types import UNSET, Unset
|
|
7
|
+
|
|
8
|
+
T = TypeVar("T", bound="NewPostgresTriggerPublicationTableToTrackItemTableToTrackItem")
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
@_attrs_define
|
|
12
|
+
class NewPostgresTriggerPublicationTableToTrackItemTableToTrackItem:
|
|
13
|
+
"""
|
|
14
|
+
Attributes:
|
|
15
|
+
table_name (str):
|
|
16
|
+
columns_name (Union[Unset, List[str]]):
|
|
17
|
+
where_clause (Union[Unset, str]):
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
table_name: str
|
|
21
|
+
columns_name: Union[Unset, List[str]] = UNSET
|
|
22
|
+
where_clause: Union[Unset, str] = UNSET
|
|
23
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
24
|
+
|
|
25
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
26
|
+
table_name = self.table_name
|
|
27
|
+
columns_name: Union[Unset, List[str]] = UNSET
|
|
28
|
+
if not isinstance(self.columns_name, Unset):
|
|
29
|
+
columns_name = self.columns_name
|
|
30
|
+
|
|
31
|
+
where_clause = self.where_clause
|
|
32
|
+
|
|
33
|
+
field_dict: Dict[str, Any] = {}
|
|
34
|
+
field_dict.update(self.additional_properties)
|
|
35
|
+
field_dict.update(
|
|
36
|
+
{
|
|
37
|
+
"table_name": table_name,
|
|
38
|
+
}
|
|
39
|
+
)
|
|
40
|
+
if columns_name is not UNSET:
|
|
41
|
+
field_dict["columns_name"] = columns_name
|
|
42
|
+
if where_clause is not UNSET:
|
|
43
|
+
field_dict["where_clause"] = where_clause
|
|
44
|
+
|
|
45
|
+
return field_dict
|
|
46
|
+
|
|
47
|
+
@classmethod
|
|
48
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
49
|
+
d = src_dict.copy()
|
|
50
|
+
table_name = d.pop("table_name")
|
|
51
|
+
|
|
52
|
+
columns_name = cast(List[str], d.pop("columns_name", UNSET))
|
|
53
|
+
|
|
54
|
+
where_clause = d.pop("where_clause", UNSET)
|
|
55
|
+
|
|
56
|
+
new_postgres_trigger_publication_table_to_track_item_table_to_track_item = cls(
|
|
57
|
+
table_name=table_name,
|
|
58
|
+
columns_name=columns_name,
|
|
59
|
+
where_clause=where_clause,
|
|
60
|
+
)
|
|
61
|
+
|
|
62
|
+
new_postgres_trigger_publication_table_to_track_item_table_to_track_item.additional_properties = d
|
|
63
|
+
return new_postgres_trigger_publication_table_to_track_item_table_to_track_item
|
|
64
|
+
|
|
65
|
+
@property
|
|
66
|
+
def additional_keys(self) -> List[str]:
|
|
67
|
+
return list(self.additional_properties.keys())
|
|
68
|
+
|
|
69
|
+
def __getitem__(self, key: str) -> Any:
|
|
70
|
+
return self.additional_properties[key]
|
|
71
|
+
|
|
72
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
73
|
+
self.additional_properties[key] = value
|
|
74
|
+
|
|
75
|
+
def __delitem__(self, key: str) -> None:
|
|
76
|
+
del self.additional_properties[key]
|
|
77
|
+
|
|
78
|
+
def __contains__(self, key: str) -> bool:
|
|
79
|
+
return key in self.additional_properties
|
|
@@ -46,6 +46,7 @@ class NewScript:
|
|
|
46
46
|
no_main_func (Union[Unset, bool]):
|
|
47
47
|
codebase (Union[Unset, str]):
|
|
48
48
|
has_preprocessor (Union[Unset, bool]):
|
|
49
|
+
on_behalf_of_email (Union[Unset, str]):
|
|
49
50
|
"""
|
|
50
51
|
|
|
51
52
|
path: str
|
|
@@ -76,6 +77,7 @@ class NewScript:
|
|
|
76
77
|
no_main_func: Union[Unset, bool] = UNSET
|
|
77
78
|
codebase: Union[Unset, str] = UNSET
|
|
78
79
|
has_preprocessor: Union[Unset, bool] = UNSET
|
|
80
|
+
on_behalf_of_email: Union[Unset, str] = UNSET
|
|
79
81
|
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
80
82
|
|
|
81
83
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -117,6 +119,7 @@ class NewScript:
|
|
|
117
119
|
no_main_func = self.no_main_func
|
|
118
120
|
codebase = self.codebase
|
|
119
121
|
has_preprocessor = self.has_preprocessor
|
|
122
|
+
on_behalf_of_email = self.on_behalf_of_email
|
|
120
123
|
|
|
121
124
|
field_dict: Dict[str, Any] = {}
|
|
122
125
|
field_dict.update(self.additional_properties)
|
|
@@ -175,6 +178,8 @@ class NewScript:
|
|
|
175
178
|
field_dict["codebase"] = codebase
|
|
176
179
|
if has_preprocessor is not UNSET:
|
|
177
180
|
field_dict["has_preprocessor"] = has_preprocessor
|
|
181
|
+
if on_behalf_of_email is not UNSET:
|
|
182
|
+
field_dict["on_behalf_of_email"] = on_behalf_of_email
|
|
178
183
|
|
|
179
184
|
return field_dict
|
|
180
185
|
|
|
@@ -249,6 +254,8 @@ class NewScript:
|
|
|
249
254
|
|
|
250
255
|
has_preprocessor = d.pop("has_preprocessor", UNSET)
|
|
251
256
|
|
|
257
|
+
on_behalf_of_email = d.pop("on_behalf_of_email", UNSET)
|
|
258
|
+
|
|
252
259
|
new_script = cls(
|
|
253
260
|
path=path,
|
|
254
261
|
summary=summary,
|
|
@@ -278,6 +285,7 @@ class NewScript:
|
|
|
278
285
|
no_main_func=no_main_func,
|
|
279
286
|
codebase=codebase,
|
|
280
287
|
has_preprocessor=has_preprocessor,
|
|
288
|
+
on_behalf_of_email=on_behalf_of_email,
|
|
281
289
|
)
|
|
282
290
|
|
|
283
291
|
new_script.additional_properties = d
|
|
@@ -6,12 +6,14 @@ class NewScriptLanguage(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"
|
|
@@ -48,6 +48,7 @@ class NewScriptWithDraft:
|
|
|
48
48
|
no_main_func (Union[Unset, bool]):
|
|
49
49
|
codebase (Union[Unset, str]):
|
|
50
50
|
has_preprocessor (Union[Unset, bool]):
|
|
51
|
+
on_behalf_of_email (Union[Unset, str]):
|
|
51
52
|
draft (Union[Unset, NewScriptWithDraftDraft]):
|
|
52
53
|
"""
|
|
53
54
|
|
|
@@ -80,6 +81,7 @@ class NewScriptWithDraft:
|
|
|
80
81
|
no_main_func: Union[Unset, bool] = UNSET
|
|
81
82
|
codebase: Union[Unset, str] = UNSET
|
|
82
83
|
has_preprocessor: Union[Unset, bool] = UNSET
|
|
84
|
+
on_behalf_of_email: Union[Unset, str] = UNSET
|
|
83
85
|
draft: Union[Unset, "NewScriptWithDraftDraft"] = UNSET
|
|
84
86
|
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
85
87
|
|
|
@@ -123,6 +125,7 @@ class NewScriptWithDraft:
|
|
|
123
125
|
no_main_func = self.no_main_func
|
|
124
126
|
codebase = self.codebase
|
|
125
127
|
has_preprocessor = self.has_preprocessor
|
|
128
|
+
on_behalf_of_email = self.on_behalf_of_email
|
|
126
129
|
draft: Union[Unset, Dict[str, Any]] = UNSET
|
|
127
130
|
if not isinstance(self.draft, Unset):
|
|
128
131
|
draft = self.draft.to_dict()
|
|
@@ -185,6 +188,8 @@ class NewScriptWithDraft:
|
|
|
185
188
|
field_dict["codebase"] = codebase
|
|
186
189
|
if has_preprocessor is not UNSET:
|
|
187
190
|
field_dict["has_preprocessor"] = has_preprocessor
|
|
191
|
+
if on_behalf_of_email is not UNSET:
|
|
192
|
+
field_dict["on_behalf_of_email"] = on_behalf_of_email
|
|
188
193
|
if draft is not UNSET:
|
|
189
194
|
field_dict["draft"] = draft
|
|
190
195
|
|
|
@@ -264,6 +269,8 @@ class NewScriptWithDraft:
|
|
|
264
269
|
|
|
265
270
|
has_preprocessor = d.pop("has_preprocessor", UNSET)
|
|
266
271
|
|
|
272
|
+
on_behalf_of_email = d.pop("on_behalf_of_email", UNSET)
|
|
273
|
+
|
|
267
274
|
_draft = d.pop("draft", UNSET)
|
|
268
275
|
draft: Union[Unset, NewScriptWithDraftDraft]
|
|
269
276
|
if isinstance(_draft, Unset):
|
|
@@ -301,6 +308,7 @@ class NewScriptWithDraft:
|
|
|
301
308
|
no_main_func=no_main_func,
|
|
302
309
|
codebase=codebase,
|
|
303
310
|
has_preprocessor=has_preprocessor,
|
|
311
|
+
on_behalf_of_email=on_behalf_of_email,
|
|
304
312
|
draft=draft,
|
|
305
313
|
)
|
|
306
314
|
|
|
@@ -46,6 +46,7 @@ class NewScriptWithDraftDraft:
|
|
|
46
46
|
no_main_func (Union[Unset, bool]):
|
|
47
47
|
codebase (Union[Unset, str]):
|
|
48
48
|
has_preprocessor (Union[Unset, bool]):
|
|
49
|
+
on_behalf_of_email (Union[Unset, str]):
|
|
49
50
|
"""
|
|
50
51
|
|
|
51
52
|
path: str
|
|
@@ -76,6 +77,7 @@ class NewScriptWithDraftDraft:
|
|
|
76
77
|
no_main_func: Union[Unset, bool] = UNSET
|
|
77
78
|
codebase: Union[Unset, str] = UNSET
|
|
78
79
|
has_preprocessor: Union[Unset, bool] = UNSET
|
|
80
|
+
on_behalf_of_email: Union[Unset, str] = UNSET
|
|
79
81
|
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
80
82
|
|
|
81
83
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -117,6 +119,7 @@ class NewScriptWithDraftDraft:
|
|
|
117
119
|
no_main_func = self.no_main_func
|
|
118
120
|
codebase = self.codebase
|
|
119
121
|
has_preprocessor = self.has_preprocessor
|
|
122
|
+
on_behalf_of_email = self.on_behalf_of_email
|
|
120
123
|
|
|
121
124
|
field_dict: Dict[str, Any] = {}
|
|
122
125
|
field_dict.update(self.additional_properties)
|
|
@@ -175,6 +178,8 @@ class NewScriptWithDraftDraft:
|
|
|
175
178
|
field_dict["codebase"] = codebase
|
|
176
179
|
if has_preprocessor is not UNSET:
|
|
177
180
|
field_dict["has_preprocessor"] = has_preprocessor
|
|
181
|
+
if on_behalf_of_email is not UNSET:
|
|
182
|
+
field_dict["on_behalf_of_email"] = on_behalf_of_email
|
|
178
183
|
|
|
179
184
|
return field_dict
|
|
180
185
|
|
|
@@ -249,6 +254,8 @@ class NewScriptWithDraftDraft:
|
|
|
249
254
|
|
|
250
255
|
has_preprocessor = d.pop("has_preprocessor", UNSET)
|
|
251
256
|
|
|
257
|
+
on_behalf_of_email = d.pop("on_behalf_of_email", UNSET)
|
|
258
|
+
|
|
252
259
|
new_script_with_draft_draft = cls(
|
|
253
260
|
path=path,
|
|
254
261
|
summary=summary,
|
|
@@ -278,6 +285,7 @@ class NewScriptWithDraftDraft:
|
|
|
278
285
|
no_main_func=no_main_func,
|
|
279
286
|
codebase=codebase,
|
|
280
287
|
has_preprocessor=has_preprocessor,
|
|
288
|
+
on_behalf_of_email=on_behalf_of_email,
|
|
281
289
|
)
|
|
282
290
|
|
|
283
291
|
new_script_with_draft_draft.additional_properties = d
|
|
@@ -6,12 +6,14 @@ class NewScriptWithDraftDraftLanguage(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"
|