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
|
@@ -12,6 +12,7 @@ if TYPE_CHECKING:
|
|
|
12
12
|
from ..models.get_settings_response_200_error_handler_extra_args import GetSettingsResponse200ErrorHandlerExtraArgs
|
|
13
13
|
from ..models.get_settings_response_200_git_sync import GetSettingsResponse200GitSync
|
|
14
14
|
from ..models.get_settings_response_200_large_file_storage import GetSettingsResponse200LargeFileStorage
|
|
15
|
+
from ..models.get_settings_response_200_operator_settings import GetSettingsResponse200OperatorSettings
|
|
15
16
|
|
|
16
17
|
|
|
17
18
|
T = TypeVar("T", bound="GetSettingsResponse200")
|
|
@@ -44,6 +45,8 @@ class GetSettingsResponse200:
|
|
|
44
45
|
default_app (Union[Unset, str]):
|
|
45
46
|
default_scripts (Union[Unset, GetSettingsResponse200DefaultScripts]):
|
|
46
47
|
mute_critical_alerts (Union[Unset, bool]):
|
|
48
|
+
color (Union[Unset, str]):
|
|
49
|
+
operator_settings (Union[Unset, None, GetSettingsResponse200OperatorSettings]):
|
|
47
50
|
"""
|
|
48
51
|
|
|
49
52
|
automatic_billing: bool
|
|
@@ -69,6 +72,8 @@ class GetSettingsResponse200:
|
|
|
69
72
|
default_app: Union[Unset, str] = UNSET
|
|
70
73
|
default_scripts: Union[Unset, "GetSettingsResponse200DefaultScripts"] = UNSET
|
|
71
74
|
mute_critical_alerts: Union[Unset, bool] = UNSET
|
|
75
|
+
color: Union[Unset, str] = UNSET
|
|
76
|
+
operator_settings: Union[Unset, None, "GetSettingsResponse200OperatorSettings"] = UNSET
|
|
72
77
|
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
73
78
|
|
|
74
79
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -113,6 +118,10 @@ class GetSettingsResponse200:
|
|
|
113
118
|
default_scripts = self.default_scripts.to_dict()
|
|
114
119
|
|
|
115
120
|
mute_critical_alerts = self.mute_critical_alerts
|
|
121
|
+
color = self.color
|
|
122
|
+
operator_settings: Union[Unset, None, Dict[str, Any]] = UNSET
|
|
123
|
+
if not isinstance(self.operator_settings, Unset):
|
|
124
|
+
operator_settings = self.operator_settings.to_dict() if self.operator_settings else None
|
|
116
125
|
|
|
117
126
|
field_dict: Dict[str, Any] = {}
|
|
118
127
|
field_dict.update(self.additional_properties)
|
|
@@ -163,6 +172,10 @@ class GetSettingsResponse200:
|
|
|
163
172
|
field_dict["default_scripts"] = default_scripts
|
|
164
173
|
if mute_critical_alerts is not UNSET:
|
|
165
174
|
field_dict["mute_critical_alerts"] = mute_critical_alerts
|
|
175
|
+
if color is not UNSET:
|
|
176
|
+
field_dict["color"] = color
|
|
177
|
+
if operator_settings is not UNSET:
|
|
178
|
+
field_dict["operator_settings"] = operator_settings
|
|
166
179
|
|
|
167
180
|
return field_dict
|
|
168
181
|
|
|
@@ -176,6 +189,7 @@ class GetSettingsResponse200:
|
|
|
176
189
|
)
|
|
177
190
|
from ..models.get_settings_response_200_git_sync import GetSettingsResponse200GitSync
|
|
178
191
|
from ..models.get_settings_response_200_large_file_storage import GetSettingsResponse200LargeFileStorage
|
|
192
|
+
from ..models.get_settings_response_200_operator_settings import GetSettingsResponse200OperatorSettings
|
|
179
193
|
|
|
180
194
|
d = src_dict.copy()
|
|
181
195
|
automatic_billing = d.pop("automatic_billing")
|
|
@@ -254,6 +268,17 @@ class GetSettingsResponse200:
|
|
|
254
268
|
|
|
255
269
|
mute_critical_alerts = d.pop("mute_critical_alerts", UNSET)
|
|
256
270
|
|
|
271
|
+
color = d.pop("color", UNSET)
|
|
272
|
+
|
|
273
|
+
_operator_settings = d.pop("operator_settings", UNSET)
|
|
274
|
+
operator_settings: Union[Unset, None, GetSettingsResponse200OperatorSettings]
|
|
275
|
+
if _operator_settings is None:
|
|
276
|
+
operator_settings = None
|
|
277
|
+
elif isinstance(_operator_settings, Unset):
|
|
278
|
+
operator_settings = UNSET
|
|
279
|
+
else:
|
|
280
|
+
operator_settings = GetSettingsResponse200OperatorSettings.from_dict(_operator_settings)
|
|
281
|
+
|
|
257
282
|
get_settings_response_200 = cls(
|
|
258
283
|
automatic_billing=automatic_billing,
|
|
259
284
|
code_completion_enabled=code_completion_enabled,
|
|
@@ -278,6 +303,8 @@ class GetSettingsResponse200:
|
|
|
278
303
|
default_app=default_app,
|
|
279
304
|
default_scripts=default_scripts,
|
|
280
305
|
mute_critical_alerts=mute_critical_alerts,
|
|
306
|
+
color=color,
|
|
307
|
+
operator_settings=operator_settings,
|
|
281
308
|
)
|
|
282
309
|
|
|
283
310
|
get_settings_response_200.additional_properties = d
|
|
@@ -0,0 +1,114 @@
|
|
|
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="GetSettingsResponse200OperatorSettings")
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@_attrs_define
|
|
10
|
+
class GetSettingsResponse200OperatorSettings:
|
|
11
|
+
"""
|
|
12
|
+
Attributes:
|
|
13
|
+
runs (bool): Whether operators can view runs
|
|
14
|
+
schedules (bool): Whether operators can view schedules
|
|
15
|
+
resources (bool): Whether operators can view resources
|
|
16
|
+
variables (bool): Whether operators can view variables
|
|
17
|
+
audit_logs (bool): Whether operators can view audit logs
|
|
18
|
+
triggers (bool): Whether operators can view triggers
|
|
19
|
+
groups (bool): Whether operators can view groups page
|
|
20
|
+
folders (bool): Whether operators can view folders page
|
|
21
|
+
workers (bool): Whether operators can view workers page
|
|
22
|
+
"""
|
|
23
|
+
|
|
24
|
+
runs: bool
|
|
25
|
+
schedules: bool
|
|
26
|
+
resources: bool
|
|
27
|
+
variables: bool
|
|
28
|
+
audit_logs: bool
|
|
29
|
+
triggers: bool
|
|
30
|
+
groups: bool
|
|
31
|
+
folders: bool
|
|
32
|
+
workers: bool
|
|
33
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
34
|
+
|
|
35
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
36
|
+
runs = self.runs
|
|
37
|
+
schedules = self.schedules
|
|
38
|
+
resources = self.resources
|
|
39
|
+
variables = self.variables
|
|
40
|
+
audit_logs = self.audit_logs
|
|
41
|
+
triggers = self.triggers
|
|
42
|
+
groups = self.groups
|
|
43
|
+
folders = self.folders
|
|
44
|
+
workers = self.workers
|
|
45
|
+
|
|
46
|
+
field_dict: Dict[str, Any] = {}
|
|
47
|
+
field_dict.update(self.additional_properties)
|
|
48
|
+
field_dict.update(
|
|
49
|
+
{
|
|
50
|
+
"runs": runs,
|
|
51
|
+
"schedules": schedules,
|
|
52
|
+
"resources": resources,
|
|
53
|
+
"variables": variables,
|
|
54
|
+
"audit_logs": audit_logs,
|
|
55
|
+
"triggers": triggers,
|
|
56
|
+
"groups": groups,
|
|
57
|
+
"folders": folders,
|
|
58
|
+
"workers": workers,
|
|
59
|
+
}
|
|
60
|
+
)
|
|
61
|
+
|
|
62
|
+
return field_dict
|
|
63
|
+
|
|
64
|
+
@classmethod
|
|
65
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
66
|
+
d = src_dict.copy()
|
|
67
|
+
runs = d.pop("runs")
|
|
68
|
+
|
|
69
|
+
schedules = d.pop("schedules")
|
|
70
|
+
|
|
71
|
+
resources = d.pop("resources")
|
|
72
|
+
|
|
73
|
+
variables = d.pop("variables")
|
|
74
|
+
|
|
75
|
+
audit_logs = d.pop("audit_logs")
|
|
76
|
+
|
|
77
|
+
triggers = d.pop("triggers")
|
|
78
|
+
|
|
79
|
+
groups = d.pop("groups")
|
|
80
|
+
|
|
81
|
+
folders = d.pop("folders")
|
|
82
|
+
|
|
83
|
+
workers = d.pop("workers")
|
|
84
|
+
|
|
85
|
+
get_settings_response_200_operator_settings = cls(
|
|
86
|
+
runs=runs,
|
|
87
|
+
schedules=schedules,
|
|
88
|
+
resources=resources,
|
|
89
|
+
variables=variables,
|
|
90
|
+
audit_logs=audit_logs,
|
|
91
|
+
triggers=triggers,
|
|
92
|
+
groups=groups,
|
|
93
|
+
folders=folders,
|
|
94
|
+
workers=workers,
|
|
95
|
+
)
|
|
96
|
+
|
|
97
|
+
get_settings_response_200_operator_settings.additional_properties = d
|
|
98
|
+
return get_settings_response_200_operator_settings
|
|
99
|
+
|
|
100
|
+
@property
|
|
101
|
+
def additional_keys(self) -> List[str]:
|
|
102
|
+
return list(self.additional_properties.keys())
|
|
103
|
+
|
|
104
|
+
def __getitem__(self, key: str) -> Any:
|
|
105
|
+
return self.additional_properties[key]
|
|
106
|
+
|
|
107
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
108
|
+
self.additional_properties[key] = value
|
|
109
|
+
|
|
110
|
+
def __delitem__(self, key: str) -> None:
|
|
111
|
+
del self.additional_properties[key]
|
|
112
|
+
|
|
113
|
+
def __contains__(self, key: str) -> bool:
|
|
114
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,75 @@
|
|
|
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 ..types import UNSET, Unset
|
|
9
|
+
|
|
10
|
+
T = TypeVar("T", bound="GetThresholdAlertResponse200")
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
@_attrs_define
|
|
14
|
+
class GetThresholdAlertResponse200:
|
|
15
|
+
"""
|
|
16
|
+
Attributes:
|
|
17
|
+
threshold_alert_amount (Union[Unset, float]):
|
|
18
|
+
last_alert_sent (Union[Unset, datetime.datetime]):
|
|
19
|
+
"""
|
|
20
|
+
|
|
21
|
+
threshold_alert_amount: Union[Unset, float] = UNSET
|
|
22
|
+
last_alert_sent: Union[Unset, datetime.datetime] = UNSET
|
|
23
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
24
|
+
|
|
25
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
26
|
+
threshold_alert_amount = self.threshold_alert_amount
|
|
27
|
+
last_alert_sent: Union[Unset, str] = UNSET
|
|
28
|
+
if not isinstance(self.last_alert_sent, Unset):
|
|
29
|
+
last_alert_sent = self.last_alert_sent.isoformat()
|
|
30
|
+
|
|
31
|
+
field_dict: Dict[str, Any] = {}
|
|
32
|
+
field_dict.update(self.additional_properties)
|
|
33
|
+
field_dict.update({})
|
|
34
|
+
if threshold_alert_amount is not UNSET:
|
|
35
|
+
field_dict["threshold_alert_amount"] = threshold_alert_amount
|
|
36
|
+
if last_alert_sent is not UNSET:
|
|
37
|
+
field_dict["last_alert_sent"] = last_alert_sent
|
|
38
|
+
|
|
39
|
+
return field_dict
|
|
40
|
+
|
|
41
|
+
@classmethod
|
|
42
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
43
|
+
d = src_dict.copy()
|
|
44
|
+
threshold_alert_amount = d.pop("threshold_alert_amount", UNSET)
|
|
45
|
+
|
|
46
|
+
_last_alert_sent = d.pop("last_alert_sent", UNSET)
|
|
47
|
+
last_alert_sent: Union[Unset, datetime.datetime]
|
|
48
|
+
if isinstance(_last_alert_sent, Unset):
|
|
49
|
+
last_alert_sent = UNSET
|
|
50
|
+
else:
|
|
51
|
+
last_alert_sent = isoparse(_last_alert_sent)
|
|
52
|
+
|
|
53
|
+
get_threshold_alert_response_200 = cls(
|
|
54
|
+
threshold_alert_amount=threshold_alert_amount,
|
|
55
|
+
last_alert_sent=last_alert_sent,
|
|
56
|
+
)
|
|
57
|
+
|
|
58
|
+
get_threshold_alert_response_200.additional_properties = d
|
|
59
|
+
return get_threshold_alert_response_200
|
|
60
|
+
|
|
61
|
+
@property
|
|
62
|
+
def additional_keys(self) -> List[str]:
|
|
63
|
+
return list(self.additional_properties.keys())
|
|
64
|
+
|
|
65
|
+
def __getitem__(self, key: str) -> Any:
|
|
66
|
+
return self.additional_properties[key]
|
|
67
|
+
|
|
68
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
69
|
+
self.additional_properties[key] = value
|
|
70
|
+
|
|
71
|
+
def __delitem__(self, key: str) -> None:
|
|
72
|
+
del self.additional_properties[key]
|
|
73
|
+
|
|
74
|
+
def __contains__(self, key: str) -> bool:
|
|
75
|
+
return key in self.additional_properties
|
|
@@ -24,7 +24,9 @@ class GetTriggersCountOfFlowResponse200:
|
|
|
24
24
|
webhook_count (Union[Unset, float]):
|
|
25
25
|
email_count (Union[Unset, float]):
|
|
26
26
|
websocket_count (Union[Unset, float]):
|
|
27
|
+
postgres_count (Union[Unset, float]):
|
|
27
28
|
kafka_count (Union[Unset, float]):
|
|
29
|
+
nats_count (Union[Unset, float]):
|
|
28
30
|
"""
|
|
29
31
|
|
|
30
32
|
primary_schedule: Union[Unset, "GetTriggersCountOfFlowResponse200PrimarySchedule"] = UNSET
|
|
@@ -33,7 +35,9 @@ class GetTriggersCountOfFlowResponse200:
|
|
|
33
35
|
webhook_count: Union[Unset, float] = UNSET
|
|
34
36
|
email_count: Union[Unset, float] = UNSET
|
|
35
37
|
websocket_count: Union[Unset, float] = UNSET
|
|
38
|
+
postgres_count: Union[Unset, float] = UNSET
|
|
36
39
|
kafka_count: Union[Unset, float] = UNSET
|
|
40
|
+
nats_count: Union[Unset, float] = UNSET
|
|
37
41
|
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
38
42
|
|
|
39
43
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -46,7 +50,9 @@ class GetTriggersCountOfFlowResponse200:
|
|
|
46
50
|
webhook_count = self.webhook_count
|
|
47
51
|
email_count = self.email_count
|
|
48
52
|
websocket_count = self.websocket_count
|
|
53
|
+
postgres_count = self.postgres_count
|
|
49
54
|
kafka_count = self.kafka_count
|
|
55
|
+
nats_count = self.nats_count
|
|
50
56
|
|
|
51
57
|
field_dict: Dict[str, Any] = {}
|
|
52
58
|
field_dict.update(self.additional_properties)
|
|
@@ -63,8 +69,12 @@ class GetTriggersCountOfFlowResponse200:
|
|
|
63
69
|
field_dict["email_count"] = email_count
|
|
64
70
|
if websocket_count is not UNSET:
|
|
65
71
|
field_dict["websocket_count"] = websocket_count
|
|
72
|
+
if postgres_count is not UNSET:
|
|
73
|
+
field_dict["postgres_count"] = postgres_count
|
|
66
74
|
if kafka_count is not UNSET:
|
|
67
75
|
field_dict["kafka_count"] = kafka_count
|
|
76
|
+
if nats_count is not UNSET:
|
|
77
|
+
field_dict["nats_count"] = nats_count
|
|
68
78
|
|
|
69
79
|
return field_dict
|
|
70
80
|
|
|
@@ -92,8 +102,12 @@ class GetTriggersCountOfFlowResponse200:
|
|
|
92
102
|
|
|
93
103
|
websocket_count = d.pop("websocket_count", UNSET)
|
|
94
104
|
|
|
105
|
+
postgres_count = d.pop("postgres_count", UNSET)
|
|
106
|
+
|
|
95
107
|
kafka_count = d.pop("kafka_count", UNSET)
|
|
96
108
|
|
|
109
|
+
nats_count = d.pop("nats_count", UNSET)
|
|
110
|
+
|
|
97
111
|
get_triggers_count_of_flow_response_200 = cls(
|
|
98
112
|
primary_schedule=primary_schedule,
|
|
99
113
|
schedule_count=schedule_count,
|
|
@@ -101,7 +115,9 @@ class GetTriggersCountOfFlowResponse200:
|
|
|
101
115
|
webhook_count=webhook_count,
|
|
102
116
|
email_count=email_count,
|
|
103
117
|
websocket_count=websocket_count,
|
|
118
|
+
postgres_count=postgres_count,
|
|
104
119
|
kafka_count=kafka_count,
|
|
120
|
+
nats_count=nats_count,
|
|
105
121
|
)
|
|
106
122
|
|
|
107
123
|
get_triggers_count_of_flow_response_200.additional_properties = d
|
|
@@ -24,7 +24,9 @@ class GetTriggersCountOfScriptResponse200:
|
|
|
24
24
|
webhook_count (Union[Unset, float]):
|
|
25
25
|
email_count (Union[Unset, float]):
|
|
26
26
|
websocket_count (Union[Unset, float]):
|
|
27
|
+
postgres_count (Union[Unset, float]):
|
|
27
28
|
kafka_count (Union[Unset, float]):
|
|
29
|
+
nats_count (Union[Unset, float]):
|
|
28
30
|
"""
|
|
29
31
|
|
|
30
32
|
primary_schedule: Union[Unset, "GetTriggersCountOfScriptResponse200PrimarySchedule"] = UNSET
|
|
@@ -33,7 +35,9 @@ class GetTriggersCountOfScriptResponse200:
|
|
|
33
35
|
webhook_count: Union[Unset, float] = UNSET
|
|
34
36
|
email_count: Union[Unset, float] = UNSET
|
|
35
37
|
websocket_count: Union[Unset, float] = UNSET
|
|
38
|
+
postgres_count: Union[Unset, float] = UNSET
|
|
36
39
|
kafka_count: Union[Unset, float] = UNSET
|
|
40
|
+
nats_count: Union[Unset, float] = UNSET
|
|
37
41
|
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
38
42
|
|
|
39
43
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -46,7 +50,9 @@ class GetTriggersCountOfScriptResponse200:
|
|
|
46
50
|
webhook_count = self.webhook_count
|
|
47
51
|
email_count = self.email_count
|
|
48
52
|
websocket_count = self.websocket_count
|
|
53
|
+
postgres_count = self.postgres_count
|
|
49
54
|
kafka_count = self.kafka_count
|
|
55
|
+
nats_count = self.nats_count
|
|
50
56
|
|
|
51
57
|
field_dict: Dict[str, Any] = {}
|
|
52
58
|
field_dict.update(self.additional_properties)
|
|
@@ -63,8 +69,12 @@ class GetTriggersCountOfScriptResponse200:
|
|
|
63
69
|
field_dict["email_count"] = email_count
|
|
64
70
|
if websocket_count is not UNSET:
|
|
65
71
|
field_dict["websocket_count"] = websocket_count
|
|
72
|
+
if postgres_count is not UNSET:
|
|
73
|
+
field_dict["postgres_count"] = postgres_count
|
|
66
74
|
if kafka_count is not UNSET:
|
|
67
75
|
field_dict["kafka_count"] = kafka_count
|
|
76
|
+
if nats_count is not UNSET:
|
|
77
|
+
field_dict["nats_count"] = nats_count
|
|
68
78
|
|
|
69
79
|
return field_dict
|
|
70
80
|
|
|
@@ -92,8 +102,12 @@ class GetTriggersCountOfScriptResponse200:
|
|
|
92
102
|
|
|
93
103
|
websocket_count = d.pop("websocket_count", UNSET)
|
|
94
104
|
|
|
105
|
+
postgres_count = d.pop("postgres_count", UNSET)
|
|
106
|
+
|
|
95
107
|
kafka_count = d.pop("kafka_count", UNSET)
|
|
96
108
|
|
|
109
|
+
nats_count = d.pop("nats_count", UNSET)
|
|
110
|
+
|
|
97
111
|
get_triggers_count_of_script_response_200 = cls(
|
|
98
112
|
primary_schedule=primary_schedule,
|
|
99
113
|
schedule_count=schedule_count,
|
|
@@ -101,7 +115,9 @@ class GetTriggersCountOfScriptResponse200:
|
|
|
101
115
|
webhook_count=webhook_count,
|
|
102
116
|
email_count=email_count,
|
|
103
117
|
websocket_count=websocket_count,
|
|
118
|
+
postgres_count=postgres_count,
|
|
104
119
|
kafka_count=kafka_count,
|
|
120
|
+
nats_count=nats_count,
|
|
105
121
|
)
|
|
106
122
|
|
|
107
123
|
get_triggers_count_of_script_response_200.additional_properties = d
|
|
@@ -13,17 +13,23 @@ class GetUsedTriggersResponse200:
|
|
|
13
13
|
http_routes_used (bool):
|
|
14
14
|
websocket_used (bool):
|
|
15
15
|
kafka_used (bool):
|
|
16
|
+
nats_used (bool):
|
|
17
|
+
postgres_used (bool):
|
|
16
18
|
"""
|
|
17
19
|
|
|
18
20
|
http_routes_used: bool
|
|
19
21
|
websocket_used: bool
|
|
20
22
|
kafka_used: bool
|
|
23
|
+
nats_used: bool
|
|
24
|
+
postgres_used: bool
|
|
21
25
|
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
22
26
|
|
|
23
27
|
def to_dict(self) -> Dict[str, Any]:
|
|
24
28
|
http_routes_used = self.http_routes_used
|
|
25
29
|
websocket_used = self.websocket_used
|
|
26
30
|
kafka_used = self.kafka_used
|
|
31
|
+
nats_used = self.nats_used
|
|
32
|
+
postgres_used = self.postgres_used
|
|
27
33
|
|
|
28
34
|
field_dict: Dict[str, Any] = {}
|
|
29
35
|
field_dict.update(self.additional_properties)
|
|
@@ -32,6 +38,8 @@ class GetUsedTriggersResponse200:
|
|
|
32
38
|
"http_routes_used": http_routes_used,
|
|
33
39
|
"websocket_used": websocket_used,
|
|
34
40
|
"kafka_used": kafka_used,
|
|
41
|
+
"nats_used": nats_used,
|
|
42
|
+
"postgres_used": postgres_used,
|
|
35
43
|
}
|
|
36
44
|
)
|
|
37
45
|
|
|
@@ -46,10 +54,16 @@ class GetUsedTriggersResponse200:
|
|
|
46
54
|
|
|
47
55
|
kafka_used = d.pop("kafka_used")
|
|
48
56
|
|
|
57
|
+
nats_used = d.pop("nats_used")
|
|
58
|
+
|
|
59
|
+
postgres_used = d.pop("postgres_used")
|
|
60
|
+
|
|
49
61
|
get_used_triggers_response_200 = cls(
|
|
50
62
|
http_routes_used=http_routes_used,
|
|
51
63
|
websocket_used=websocket_used,
|
|
52
64
|
kafka_used=kafka_used,
|
|
65
|
+
nats_used=nats_used,
|
|
66
|
+
postgres_used=postgres_used,
|
|
53
67
|
)
|
|
54
68
|
|
|
55
69
|
get_used_triggers_response_200.additional_properties = d
|