windmill-api 1.440.1__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/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/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/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 +1 -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_language.py +1 -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 +1 -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_language.py +1 -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 +1 -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/extended_jobs_jobs_item_type_0_language.py +1 -0
- windmill_api/models/extended_jobs_jobs_item_type_1_language.py +1 -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_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_language.py +1 -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_language.py +1 -0
- windmill_api/models/get_job_response_200_type_1_language.py +1 -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_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 +1 -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 +1 -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 +1 -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 +1 -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_language.py +1 -0
- windmill_api/models/get_suspended_job_flow_response_200_job_type_1_language.py +1 -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_websocket_trigger_response_200.py +89 -76
- windmill_api/models/http_trigger.py +36 -36
- windmill_api/models/job_type_0_language.py +1 -0
- windmill_api/models/job_type_1_language.py +1 -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_language.py +1 -0
- windmill_api/models/list_extended_jobs_response_200_jobs_item_type_0_language.py +1 -0
- windmill_api/models/list_extended_jobs_response_200_jobs_item_type_1_language.py +1 -0
- windmill_api/models/list_http_triggers_response_200_item.py +36 -36
- windmill_api/models/list_jobs_response_200_item_type_0_language.py +1 -0
- windmill_api/models/list_jobs_response_200_item_type_1_language.py +1 -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_language.py +1 -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 +1 -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_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 +1 -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 +1 -0
- windmill_api/models/new_script_with_draft_kind.py +1 -0
- windmill_api/models/new_script_with_draft_language.py +1 -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 +1 -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_language.py +1 -0
- windmill_api/models/raw_script_for_dependencies_language.py +1 -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 +1 -0
- windmill_api/models/run_script_preview_json_body_language.py +1 -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 +1 -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_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/workspace.py +8 -0
- {windmill_api-1.440.1.dist-info → windmill_api-1.450.1.dist-info}/METADATA +1 -1
- {windmill_api-1.440.1.dist-info → windmill_api-1.450.1.dist-info}/RECORD +231 -100
- {windmill_api-1.440.1.dist-info → windmill_api-1.450.1.dist-info}/LICENSE +0 -0
- {windmill_api-1.440.1.dist-info → windmill_api-1.450.1.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,123 @@
|
|
|
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.edit_postgres_trigger_publication import EditPostgresTriggerPublication
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
T = TypeVar("T", bound="EditPostgresTrigger")
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
@_attrs_define
|
|
16
|
+
class EditPostgresTrigger:
|
|
17
|
+
"""
|
|
18
|
+
Attributes:
|
|
19
|
+
replication_slot_name (str):
|
|
20
|
+
publication_name (str):
|
|
21
|
+
path (str):
|
|
22
|
+
script_path (str):
|
|
23
|
+
is_flow (bool):
|
|
24
|
+
enabled (bool):
|
|
25
|
+
postgres_resource_path (str):
|
|
26
|
+
publication (Union[Unset, EditPostgresTriggerPublication]):
|
|
27
|
+
"""
|
|
28
|
+
|
|
29
|
+
replication_slot_name: str
|
|
30
|
+
publication_name: str
|
|
31
|
+
path: str
|
|
32
|
+
script_path: str
|
|
33
|
+
is_flow: bool
|
|
34
|
+
enabled: bool
|
|
35
|
+
postgres_resource_path: str
|
|
36
|
+
publication: Union[Unset, "EditPostgresTriggerPublication"] = UNSET
|
|
37
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
38
|
+
|
|
39
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
40
|
+
replication_slot_name = self.replication_slot_name
|
|
41
|
+
publication_name = self.publication_name
|
|
42
|
+
path = self.path
|
|
43
|
+
script_path = self.script_path
|
|
44
|
+
is_flow = self.is_flow
|
|
45
|
+
enabled = self.enabled
|
|
46
|
+
postgres_resource_path = self.postgres_resource_path
|
|
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
|
+
"replication_slot_name": replication_slot_name,
|
|
56
|
+
"publication_name": publication_name,
|
|
57
|
+
"path": path,
|
|
58
|
+
"script_path": script_path,
|
|
59
|
+
"is_flow": is_flow,
|
|
60
|
+
"enabled": enabled,
|
|
61
|
+
"postgres_resource_path": postgres_resource_path,
|
|
62
|
+
}
|
|
63
|
+
)
|
|
64
|
+
if publication is not UNSET:
|
|
65
|
+
field_dict["publication"] = publication
|
|
66
|
+
|
|
67
|
+
return field_dict
|
|
68
|
+
|
|
69
|
+
@classmethod
|
|
70
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
71
|
+
from ..models.edit_postgres_trigger_publication import EditPostgresTriggerPublication
|
|
72
|
+
|
|
73
|
+
d = src_dict.copy()
|
|
74
|
+
replication_slot_name = d.pop("replication_slot_name")
|
|
75
|
+
|
|
76
|
+
publication_name = d.pop("publication_name")
|
|
77
|
+
|
|
78
|
+
path = d.pop("path")
|
|
79
|
+
|
|
80
|
+
script_path = d.pop("script_path")
|
|
81
|
+
|
|
82
|
+
is_flow = d.pop("is_flow")
|
|
83
|
+
|
|
84
|
+
enabled = d.pop("enabled")
|
|
85
|
+
|
|
86
|
+
postgres_resource_path = d.pop("postgres_resource_path")
|
|
87
|
+
|
|
88
|
+
_publication = d.pop("publication", UNSET)
|
|
89
|
+
publication: Union[Unset, EditPostgresTriggerPublication]
|
|
90
|
+
if isinstance(_publication, Unset):
|
|
91
|
+
publication = UNSET
|
|
92
|
+
else:
|
|
93
|
+
publication = EditPostgresTriggerPublication.from_dict(_publication)
|
|
94
|
+
|
|
95
|
+
edit_postgres_trigger = cls(
|
|
96
|
+
replication_slot_name=replication_slot_name,
|
|
97
|
+
publication_name=publication_name,
|
|
98
|
+
path=path,
|
|
99
|
+
script_path=script_path,
|
|
100
|
+
is_flow=is_flow,
|
|
101
|
+
enabled=enabled,
|
|
102
|
+
postgres_resource_path=postgres_resource_path,
|
|
103
|
+
publication=publication,
|
|
104
|
+
)
|
|
105
|
+
|
|
106
|
+
edit_postgres_trigger.additional_properties = d
|
|
107
|
+
return edit_postgres_trigger
|
|
108
|
+
|
|
109
|
+
@property
|
|
110
|
+
def additional_keys(self) -> List[str]:
|
|
111
|
+
return list(self.additional_properties.keys())
|
|
112
|
+
|
|
113
|
+
def __getitem__(self, key: str) -> Any:
|
|
114
|
+
return self.additional_properties[key]
|
|
115
|
+
|
|
116
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
117
|
+
self.additional_properties[key] = value
|
|
118
|
+
|
|
119
|
+
def __delitem__(self, key: str) -> None:
|
|
120
|
+
del self.additional_properties[key]
|
|
121
|
+
|
|
122
|
+
def __contains__(self, key: str) -> bool:
|
|
123
|
+
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.edit_postgres_trigger_publication_table_to_track_item import (
|
|
10
|
+
EditPostgresTriggerPublicationTableToTrackItem,
|
|
11
|
+
)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
T = TypeVar("T", bound="EditPostgresTriggerPublication")
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
@_attrs_define
|
|
18
|
+
class EditPostgresTriggerPublication:
|
|
19
|
+
"""
|
|
20
|
+
Attributes:
|
|
21
|
+
transaction_to_track (List[str]):
|
|
22
|
+
table_to_track (Union[Unset, List['EditPostgresTriggerPublicationTableToTrackItem']]):
|
|
23
|
+
"""
|
|
24
|
+
|
|
25
|
+
transaction_to_track: List[str]
|
|
26
|
+
table_to_track: Union[Unset, List["EditPostgresTriggerPublicationTableToTrackItem"]] = 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.edit_postgres_trigger_publication_table_to_track_item import (
|
|
55
|
+
EditPostgresTriggerPublicationTableToTrackItem,
|
|
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 = EditPostgresTriggerPublicationTableToTrackItem.from_dict(table_to_track_item_data)
|
|
65
|
+
|
|
66
|
+
table_to_track.append(table_to_track_item)
|
|
67
|
+
|
|
68
|
+
edit_postgres_trigger_publication = cls(
|
|
69
|
+
transaction_to_track=transaction_to_track,
|
|
70
|
+
table_to_track=table_to_track,
|
|
71
|
+
)
|
|
72
|
+
|
|
73
|
+
edit_postgres_trigger_publication.additional_properties = d
|
|
74
|
+
return edit_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.edit_postgres_trigger_publication_table_to_track_item_table_to_track_item import (
|
|
8
|
+
EditPostgresTriggerPublicationTableToTrackItemTableToTrackItem,
|
|
9
|
+
)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
T = TypeVar("T", bound="EditPostgresTriggerPublicationTableToTrackItem")
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
@_attrs_define
|
|
16
|
+
class EditPostgresTriggerPublicationTableToTrackItem:
|
|
17
|
+
"""
|
|
18
|
+
Attributes:
|
|
19
|
+
schema_name (str):
|
|
20
|
+
table_to_track (List['EditPostgresTriggerPublicationTableToTrackItemTableToTrackItem']):
|
|
21
|
+
"""
|
|
22
|
+
|
|
23
|
+
schema_name: str
|
|
24
|
+
table_to_track: List["EditPostgresTriggerPublicationTableToTrackItemTableToTrackItem"]
|
|
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.edit_postgres_trigger_publication_table_to_track_item_table_to_track_item import (
|
|
49
|
+
EditPostgresTriggerPublicationTableToTrackItemTableToTrackItem,
|
|
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 = EditPostgresTriggerPublicationTableToTrackItemTableToTrackItem.from_dict(
|
|
59
|
+
table_to_track_item_data
|
|
60
|
+
)
|
|
61
|
+
|
|
62
|
+
table_to_track.append(table_to_track_item)
|
|
63
|
+
|
|
64
|
+
edit_postgres_trigger_publication_table_to_track_item = cls(
|
|
65
|
+
schema_name=schema_name,
|
|
66
|
+
table_to_track=table_to_track,
|
|
67
|
+
)
|
|
68
|
+
|
|
69
|
+
edit_postgres_trigger_publication_table_to_track_item.additional_properties = d
|
|
70
|
+
return edit_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/edit_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="EditPostgresTriggerPublicationTableToTrackItemTableToTrackItem")
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
@_attrs_define
|
|
12
|
+
class EditPostgresTriggerPublicationTableToTrackItemTableToTrackItem:
|
|
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
|
+
edit_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
|
+
edit_postgres_trigger_publication_table_to_track_item_table_to_track_item.additional_properties = d
|
|
63
|
+
return edit_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
|
|
@@ -3,6 +3,8 @@ from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
|
|
|
3
3
|
from attrs import define as _attrs_define
|
|
4
4
|
from attrs import field as _attrs_field
|
|
5
5
|
|
|
6
|
+
from ..types import UNSET, Unset
|
|
7
|
+
|
|
6
8
|
if TYPE_CHECKING:
|
|
7
9
|
from ..models.edit_websocket_trigger_filters_item import EditWebsocketTriggerFiltersItem
|
|
8
10
|
from ..models.edit_websocket_trigger_initial_messages_item_type_0 import (
|
|
@@ -26,9 +28,9 @@ class EditWebsocketTrigger:
|
|
|
26
28
|
script_path (str):
|
|
27
29
|
is_flow (bool):
|
|
28
30
|
filters (List['EditWebsocketTriggerFiltersItem']):
|
|
29
|
-
initial_messages (List[Union['EditWebsocketTriggerInitialMessagesItemType0',
|
|
30
|
-
'EditWebsocketTriggerInitialMessagesItemType1']]):
|
|
31
|
-
url_runnable_args (EditWebsocketTriggerUrlRunnableArgs):
|
|
31
|
+
initial_messages (Union[Unset, List[Union['EditWebsocketTriggerInitialMessagesItemType0',
|
|
32
|
+
'EditWebsocketTriggerInitialMessagesItemType1']]]):
|
|
33
|
+
url_runnable_args (Union[Unset, EditWebsocketTriggerUrlRunnableArgs]):
|
|
32
34
|
"""
|
|
33
35
|
|
|
34
36
|
url: str
|
|
@@ -36,10 +38,11 @@ class EditWebsocketTrigger:
|
|
|
36
38
|
script_path: str
|
|
37
39
|
is_flow: bool
|
|
38
40
|
filters: List["EditWebsocketTriggerFiltersItem"]
|
|
39
|
-
initial_messages:
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
initial_messages: Union[
|
|
42
|
+
Unset,
|
|
43
|
+
List[Union["EditWebsocketTriggerInitialMessagesItemType0", "EditWebsocketTriggerInitialMessagesItemType1"]],
|
|
44
|
+
] = UNSET
|
|
45
|
+
url_runnable_args: Union[Unset, "EditWebsocketTriggerUrlRunnableArgs"] = UNSET
|
|
43
46
|
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
44
47
|
|
|
45
48
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -57,19 +60,23 @@ class EditWebsocketTrigger:
|
|
|
57
60
|
|
|
58
61
|
filters.append(filters_item)
|
|
59
62
|
|
|
60
|
-
initial_messages
|
|
61
|
-
|
|
62
|
-
|
|
63
|
+
initial_messages: Union[Unset, List[Dict[str, Any]]] = UNSET
|
|
64
|
+
if not isinstance(self.initial_messages, Unset):
|
|
65
|
+
initial_messages = []
|
|
66
|
+
for initial_messages_item_data in self.initial_messages:
|
|
67
|
+
initial_messages_item: Dict[str, Any]
|
|
63
68
|
|
|
64
|
-
|
|
65
|
-
|
|
69
|
+
if isinstance(initial_messages_item_data, EditWebsocketTriggerInitialMessagesItemType0):
|
|
70
|
+
initial_messages_item = initial_messages_item_data.to_dict()
|
|
66
71
|
|
|
67
|
-
|
|
68
|
-
|
|
72
|
+
else:
|
|
73
|
+
initial_messages_item = initial_messages_item_data.to_dict()
|
|
69
74
|
|
|
70
|
-
|
|
75
|
+
initial_messages.append(initial_messages_item)
|
|
71
76
|
|
|
72
|
-
url_runnable_args =
|
|
77
|
+
url_runnable_args: Union[Unset, Dict[str, Any]] = UNSET
|
|
78
|
+
if not isinstance(self.url_runnable_args, Unset):
|
|
79
|
+
url_runnable_args = self.url_runnable_args.to_dict()
|
|
73
80
|
|
|
74
81
|
field_dict: Dict[str, Any] = {}
|
|
75
82
|
field_dict.update(self.additional_properties)
|
|
@@ -80,10 +87,12 @@ class EditWebsocketTrigger:
|
|
|
80
87
|
"script_path": script_path,
|
|
81
88
|
"is_flow": is_flow,
|
|
82
89
|
"filters": filters,
|
|
83
|
-
"initial_messages": initial_messages,
|
|
84
|
-
"url_runnable_args": url_runnable_args,
|
|
85
90
|
}
|
|
86
91
|
)
|
|
92
|
+
if initial_messages is not UNSET:
|
|
93
|
+
field_dict["initial_messages"] = initial_messages
|
|
94
|
+
if url_runnable_args is not UNSET:
|
|
95
|
+
field_dict["url_runnable_args"] = url_runnable_args
|
|
87
96
|
|
|
88
97
|
return field_dict
|
|
89
98
|
|
|
@@ -115,8 +124,8 @@ class EditWebsocketTrigger:
|
|
|
115
124
|
filters.append(filters_item)
|
|
116
125
|
|
|
117
126
|
initial_messages = []
|
|
118
|
-
_initial_messages = d.pop("initial_messages")
|
|
119
|
-
for initial_messages_item_data in _initial_messages:
|
|
127
|
+
_initial_messages = d.pop("initial_messages", UNSET)
|
|
128
|
+
for initial_messages_item_data in _initial_messages or []:
|
|
120
129
|
|
|
121
130
|
def _parse_initial_messages_item(
|
|
122
131
|
data: object,
|
|
@@ -139,7 +148,12 @@ class EditWebsocketTrigger:
|
|
|
139
148
|
|
|
140
149
|
initial_messages.append(initial_messages_item)
|
|
141
150
|
|
|
142
|
-
|
|
151
|
+
_url_runnable_args = d.pop("url_runnable_args", UNSET)
|
|
152
|
+
url_runnable_args: Union[Unset, EditWebsocketTriggerUrlRunnableArgs]
|
|
153
|
+
if isinstance(_url_runnable_args, Unset):
|
|
154
|
+
url_runnable_args = UNSET
|
|
155
|
+
else:
|
|
156
|
+
url_runnable_args = EditWebsocketTriggerUrlRunnableArgs.from_dict(_url_runnable_args)
|
|
143
157
|
|
|
144
158
|
edit_websocket_trigger = cls(
|
|
145
159
|
url=url,
|
|
@@ -32,6 +32,7 @@ class FlowMetadata:
|
|
|
32
32
|
dedicated_worker (Union[Unset, bool]):
|
|
33
33
|
timeout (Union[Unset, float]):
|
|
34
34
|
visible_to_runner_only (Union[Unset, bool]):
|
|
35
|
+
on_behalf_of_email (Union[Unset, str]):
|
|
35
36
|
"""
|
|
36
37
|
|
|
37
38
|
path: str
|
|
@@ -48,6 +49,7 @@ class FlowMetadata:
|
|
|
48
49
|
dedicated_worker: Union[Unset, bool] = UNSET
|
|
49
50
|
timeout: Union[Unset, float] = UNSET
|
|
50
51
|
visible_to_runner_only: Union[Unset, bool] = UNSET
|
|
52
|
+
on_behalf_of_email: Union[Unset, str] = UNSET
|
|
51
53
|
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
52
54
|
|
|
53
55
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -67,6 +69,7 @@ class FlowMetadata:
|
|
|
67
69
|
dedicated_worker = self.dedicated_worker
|
|
68
70
|
timeout = self.timeout
|
|
69
71
|
visible_to_runner_only = self.visible_to_runner_only
|
|
72
|
+
on_behalf_of_email = self.on_behalf_of_email
|
|
70
73
|
|
|
71
74
|
field_dict: Dict[str, Any] = {}
|
|
72
75
|
field_dict.update(self.additional_properties)
|
|
@@ -97,6 +100,8 @@ class FlowMetadata:
|
|
|
97
100
|
field_dict["timeout"] = timeout
|
|
98
101
|
if visible_to_runner_only is not UNSET:
|
|
99
102
|
field_dict["visible_to_runner_only"] = visible_to_runner_only
|
|
103
|
+
if on_behalf_of_email is not UNSET:
|
|
104
|
+
field_dict["on_behalf_of_email"] = on_behalf_of_email
|
|
100
105
|
|
|
101
106
|
return field_dict
|
|
102
107
|
|
|
@@ -133,6 +138,8 @@ class FlowMetadata:
|
|
|
133
138
|
|
|
134
139
|
visible_to_runner_only = d.pop("visible_to_runner_only", UNSET)
|
|
135
140
|
|
|
141
|
+
on_behalf_of_email = d.pop("on_behalf_of_email", UNSET)
|
|
142
|
+
|
|
136
143
|
flow_metadata = cls(
|
|
137
144
|
path=path,
|
|
138
145
|
edited_by=edited_by,
|
|
@@ -148,6 +155,7 @@ class FlowMetadata:
|
|
|
148
155
|
dedicated_worker=dedicated_worker,
|
|
149
156
|
timeout=timeout,
|
|
150
157
|
visible_to_runner_only=visible_to_runner_only,
|
|
158
|
+
on_behalf_of_email=on_behalf_of_email,
|
|
151
159
|
)
|
|
152
160
|
|
|
153
161
|
flow_metadata.additional_properties = d
|
|
@@ -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)
|