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,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.get_postgres_publication_response_200_table_to_track_item import (
|
|
10
|
+
GetPostgresPublicationResponse200TableToTrackItem,
|
|
11
|
+
)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
T = TypeVar("T", bound="GetPostgresPublicationResponse200")
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
@_attrs_define
|
|
18
|
+
class GetPostgresPublicationResponse200:
|
|
19
|
+
"""
|
|
20
|
+
Attributes:
|
|
21
|
+
transaction_to_track (List[str]):
|
|
22
|
+
table_to_track (Union[Unset, List['GetPostgresPublicationResponse200TableToTrackItem']]):
|
|
23
|
+
"""
|
|
24
|
+
|
|
25
|
+
transaction_to_track: List[str]
|
|
26
|
+
table_to_track: Union[Unset, List["GetPostgresPublicationResponse200TableToTrackItem"]] = 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.get_postgres_publication_response_200_table_to_track_item import (
|
|
55
|
+
GetPostgresPublicationResponse200TableToTrackItem,
|
|
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 = GetPostgresPublicationResponse200TableToTrackItem.from_dict(table_to_track_item_data)
|
|
65
|
+
|
|
66
|
+
table_to_track.append(table_to_track_item)
|
|
67
|
+
|
|
68
|
+
get_postgres_publication_response_200 = cls(
|
|
69
|
+
transaction_to_track=transaction_to_track,
|
|
70
|
+
table_to_track=table_to_track,
|
|
71
|
+
)
|
|
72
|
+
|
|
73
|
+
get_postgres_publication_response_200.additional_properties = d
|
|
74
|
+
return get_postgres_publication_response_200
|
|
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.get_postgres_publication_response_200_table_to_track_item_table_to_track_item import (
|
|
8
|
+
GetPostgresPublicationResponse200TableToTrackItemTableToTrackItem,
|
|
9
|
+
)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
T = TypeVar("T", bound="GetPostgresPublicationResponse200TableToTrackItem")
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
@_attrs_define
|
|
16
|
+
class GetPostgresPublicationResponse200TableToTrackItem:
|
|
17
|
+
"""
|
|
18
|
+
Attributes:
|
|
19
|
+
schema_name (str):
|
|
20
|
+
table_to_track (List['GetPostgresPublicationResponse200TableToTrackItemTableToTrackItem']):
|
|
21
|
+
"""
|
|
22
|
+
|
|
23
|
+
schema_name: str
|
|
24
|
+
table_to_track: List["GetPostgresPublicationResponse200TableToTrackItemTableToTrackItem"]
|
|
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.get_postgres_publication_response_200_table_to_track_item_table_to_track_item import (
|
|
49
|
+
GetPostgresPublicationResponse200TableToTrackItemTableToTrackItem,
|
|
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 = GetPostgresPublicationResponse200TableToTrackItemTableToTrackItem.from_dict(
|
|
59
|
+
table_to_track_item_data
|
|
60
|
+
)
|
|
61
|
+
|
|
62
|
+
table_to_track.append(table_to_track_item)
|
|
63
|
+
|
|
64
|
+
get_postgres_publication_response_200_table_to_track_item = cls(
|
|
65
|
+
schema_name=schema_name,
|
|
66
|
+
table_to_track=table_to_track,
|
|
67
|
+
)
|
|
68
|
+
|
|
69
|
+
get_postgres_publication_response_200_table_to_track_item.additional_properties = d
|
|
70
|
+
return get_postgres_publication_response_200_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/get_postgres_publication_response_200_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="GetPostgresPublicationResponse200TableToTrackItemTableToTrackItem")
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
@_attrs_define
|
|
12
|
+
class GetPostgresPublicationResponse200TableToTrackItemTableToTrackItem:
|
|
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
|
+
get_postgres_publication_response_200_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
|
+
get_postgres_publication_response_200_table_to_track_item_table_to_track_item.additional_properties = d
|
|
63
|
+
return get_postgres_publication_response_200_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
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import datetime
|
|
2
|
+
from typing import TYPE_CHECKING, 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
|
+
if TYPE_CHECKING:
|
|
11
|
+
from ..models.get_postgres_trigger_response_200_extra_perms import GetPostgresTriggerResponse200ExtraPerms
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
T = TypeVar("T", bound="GetPostgresTriggerResponse200")
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
@_attrs_define
|
|
18
|
+
class GetPostgresTriggerResponse200:
|
|
19
|
+
"""
|
|
20
|
+
Attributes:
|
|
21
|
+
path (str):
|
|
22
|
+
script_path (str):
|
|
23
|
+
is_flow (bool):
|
|
24
|
+
enabled (bool):
|
|
25
|
+
postgres_resource_path (str):
|
|
26
|
+
publication_name (str):
|
|
27
|
+
replication_slot_name (str):
|
|
28
|
+
email (str):
|
|
29
|
+
extra_perms (GetPostgresTriggerResponse200ExtraPerms):
|
|
30
|
+
workspace_id (str):
|
|
31
|
+
edited_by (str):
|
|
32
|
+
edited_at (datetime.datetime):
|
|
33
|
+
server_id (Union[Unset, str]):
|
|
34
|
+
error (Union[Unset, str]):
|
|
35
|
+
last_server_ping (Union[Unset, datetime.datetime]):
|
|
36
|
+
"""
|
|
37
|
+
|
|
38
|
+
path: str
|
|
39
|
+
script_path: str
|
|
40
|
+
is_flow: bool
|
|
41
|
+
enabled: bool
|
|
42
|
+
postgres_resource_path: str
|
|
43
|
+
publication_name: str
|
|
44
|
+
replication_slot_name: str
|
|
45
|
+
email: str
|
|
46
|
+
extra_perms: "GetPostgresTriggerResponse200ExtraPerms"
|
|
47
|
+
workspace_id: str
|
|
48
|
+
edited_by: str
|
|
49
|
+
edited_at: datetime.datetime
|
|
50
|
+
server_id: Union[Unset, str] = UNSET
|
|
51
|
+
error: Union[Unset, str] = UNSET
|
|
52
|
+
last_server_ping: Union[Unset, datetime.datetime] = UNSET
|
|
53
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
54
|
+
|
|
55
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
56
|
+
path = self.path
|
|
57
|
+
script_path = self.script_path
|
|
58
|
+
is_flow = self.is_flow
|
|
59
|
+
enabled = self.enabled
|
|
60
|
+
postgres_resource_path = self.postgres_resource_path
|
|
61
|
+
publication_name = self.publication_name
|
|
62
|
+
replication_slot_name = self.replication_slot_name
|
|
63
|
+
email = self.email
|
|
64
|
+
extra_perms = self.extra_perms.to_dict()
|
|
65
|
+
|
|
66
|
+
workspace_id = self.workspace_id
|
|
67
|
+
edited_by = self.edited_by
|
|
68
|
+
edited_at = self.edited_at.isoformat()
|
|
69
|
+
|
|
70
|
+
server_id = self.server_id
|
|
71
|
+
error = self.error
|
|
72
|
+
last_server_ping: Union[Unset, str] = UNSET
|
|
73
|
+
if not isinstance(self.last_server_ping, Unset):
|
|
74
|
+
last_server_ping = self.last_server_ping.isoformat()
|
|
75
|
+
|
|
76
|
+
field_dict: Dict[str, Any] = {}
|
|
77
|
+
field_dict.update(self.additional_properties)
|
|
78
|
+
field_dict.update(
|
|
79
|
+
{
|
|
80
|
+
"path": path,
|
|
81
|
+
"script_path": script_path,
|
|
82
|
+
"is_flow": is_flow,
|
|
83
|
+
"enabled": enabled,
|
|
84
|
+
"postgres_resource_path": postgres_resource_path,
|
|
85
|
+
"publication_name": publication_name,
|
|
86
|
+
"replication_slot_name": replication_slot_name,
|
|
87
|
+
"email": email,
|
|
88
|
+
"extra_perms": extra_perms,
|
|
89
|
+
"workspace_id": workspace_id,
|
|
90
|
+
"edited_by": edited_by,
|
|
91
|
+
"edited_at": edited_at,
|
|
92
|
+
}
|
|
93
|
+
)
|
|
94
|
+
if server_id is not UNSET:
|
|
95
|
+
field_dict["server_id"] = server_id
|
|
96
|
+
if error is not UNSET:
|
|
97
|
+
field_dict["error"] = error
|
|
98
|
+
if last_server_ping is not UNSET:
|
|
99
|
+
field_dict["last_server_ping"] = last_server_ping
|
|
100
|
+
|
|
101
|
+
return field_dict
|
|
102
|
+
|
|
103
|
+
@classmethod
|
|
104
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
105
|
+
from ..models.get_postgres_trigger_response_200_extra_perms import GetPostgresTriggerResponse200ExtraPerms
|
|
106
|
+
|
|
107
|
+
d = src_dict.copy()
|
|
108
|
+
path = d.pop("path")
|
|
109
|
+
|
|
110
|
+
script_path = d.pop("script_path")
|
|
111
|
+
|
|
112
|
+
is_flow = d.pop("is_flow")
|
|
113
|
+
|
|
114
|
+
enabled = d.pop("enabled")
|
|
115
|
+
|
|
116
|
+
postgres_resource_path = d.pop("postgres_resource_path")
|
|
117
|
+
|
|
118
|
+
publication_name = d.pop("publication_name")
|
|
119
|
+
|
|
120
|
+
replication_slot_name = d.pop("replication_slot_name")
|
|
121
|
+
|
|
122
|
+
email = d.pop("email")
|
|
123
|
+
|
|
124
|
+
extra_perms = GetPostgresTriggerResponse200ExtraPerms.from_dict(d.pop("extra_perms"))
|
|
125
|
+
|
|
126
|
+
workspace_id = d.pop("workspace_id")
|
|
127
|
+
|
|
128
|
+
edited_by = d.pop("edited_by")
|
|
129
|
+
|
|
130
|
+
edited_at = isoparse(d.pop("edited_at"))
|
|
131
|
+
|
|
132
|
+
server_id = d.pop("server_id", UNSET)
|
|
133
|
+
|
|
134
|
+
error = d.pop("error", UNSET)
|
|
135
|
+
|
|
136
|
+
_last_server_ping = d.pop("last_server_ping", UNSET)
|
|
137
|
+
last_server_ping: Union[Unset, datetime.datetime]
|
|
138
|
+
if isinstance(_last_server_ping, Unset):
|
|
139
|
+
last_server_ping = UNSET
|
|
140
|
+
else:
|
|
141
|
+
last_server_ping = isoparse(_last_server_ping)
|
|
142
|
+
|
|
143
|
+
get_postgres_trigger_response_200 = cls(
|
|
144
|
+
path=path,
|
|
145
|
+
script_path=script_path,
|
|
146
|
+
is_flow=is_flow,
|
|
147
|
+
enabled=enabled,
|
|
148
|
+
postgres_resource_path=postgres_resource_path,
|
|
149
|
+
publication_name=publication_name,
|
|
150
|
+
replication_slot_name=replication_slot_name,
|
|
151
|
+
email=email,
|
|
152
|
+
extra_perms=extra_perms,
|
|
153
|
+
workspace_id=workspace_id,
|
|
154
|
+
edited_by=edited_by,
|
|
155
|
+
edited_at=edited_at,
|
|
156
|
+
server_id=server_id,
|
|
157
|
+
error=error,
|
|
158
|
+
last_server_ping=last_server_ping,
|
|
159
|
+
)
|
|
160
|
+
|
|
161
|
+
get_postgres_trigger_response_200.additional_properties = d
|
|
162
|
+
return get_postgres_trigger_response_200
|
|
163
|
+
|
|
164
|
+
@property
|
|
165
|
+
def additional_keys(self) -> List[str]:
|
|
166
|
+
return list(self.additional_properties.keys())
|
|
167
|
+
|
|
168
|
+
def __getitem__(self, key: str) -> Any:
|
|
169
|
+
return self.additional_properties[key]
|
|
170
|
+
|
|
171
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
172
|
+
self.additional_properties[key] = value
|
|
173
|
+
|
|
174
|
+
def __delitem__(self, key: str) -> None:
|
|
175
|
+
del self.additional_properties[key]
|
|
176
|
+
|
|
177
|
+
def __contains__(self, key: str) -> bool:
|
|
178
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
from typing import Any, Dict, List, Type, TypeVar
|
|
2
|
+
|
|
3
|
+
from attrs import define as _attrs_define
|
|
4
|
+
from attrs import field as _attrs_field
|
|
5
|
+
|
|
6
|
+
T = TypeVar("T", bound="GetPostgresTriggerResponse200ExtraPerms")
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@_attrs_define
|
|
10
|
+
class GetPostgresTriggerResponse200ExtraPerms:
|
|
11
|
+
""" """
|
|
12
|
+
|
|
13
|
+
additional_properties: Dict[str, bool] = _attrs_field(init=False, factory=dict)
|
|
14
|
+
|
|
15
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
16
|
+
field_dict: Dict[str, Any] = {}
|
|
17
|
+
field_dict.update(self.additional_properties)
|
|
18
|
+
field_dict.update({})
|
|
19
|
+
|
|
20
|
+
return field_dict
|
|
21
|
+
|
|
22
|
+
@classmethod
|
|
23
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
24
|
+
d = src_dict.copy()
|
|
25
|
+
get_postgres_trigger_response_200_extra_perms = cls()
|
|
26
|
+
|
|
27
|
+
get_postgres_trigger_response_200_extra_perms.additional_properties = d
|
|
28
|
+
return get_postgres_trigger_response_200_extra_perms
|
|
29
|
+
|
|
30
|
+
@property
|
|
31
|
+
def additional_keys(self) -> List[str]:
|
|
32
|
+
return list(self.additional_properties.keys())
|
|
33
|
+
|
|
34
|
+
def __getitem__(self, key: str) -> bool:
|
|
35
|
+
return self.additional_properties[key]
|
|
36
|
+
|
|
37
|
+
def __setitem__(self, key: str, value: bool) -> None:
|
|
38
|
+
self.additional_properties[key] = value
|
|
39
|
+
|
|
40
|
+
def __delitem__(self, key: str) -> None:
|
|
41
|
+
del self.additional_properties[key]
|
|
42
|
+
|
|
43
|
+
def __contains__(self, key: str) -> bool:
|
|
44
|
+
return key in self.additional_properties
|
|
@@ -14,12 +14,14 @@ class GetPremiumInfoResponse200:
|
|
|
14
14
|
Attributes:
|
|
15
15
|
premium (bool):
|
|
16
16
|
automatic_billing (bool):
|
|
17
|
+
owner (str):
|
|
17
18
|
usage (Union[Unset, float]):
|
|
18
19
|
seats (Union[Unset, float]):
|
|
19
20
|
"""
|
|
20
21
|
|
|
21
22
|
premium: bool
|
|
22
23
|
automatic_billing: bool
|
|
24
|
+
owner: str
|
|
23
25
|
usage: Union[Unset, float] = UNSET
|
|
24
26
|
seats: Union[Unset, float] = UNSET
|
|
25
27
|
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
@@ -27,6 +29,7 @@ class GetPremiumInfoResponse200:
|
|
|
27
29
|
def to_dict(self) -> Dict[str, Any]:
|
|
28
30
|
premium = self.premium
|
|
29
31
|
automatic_billing = self.automatic_billing
|
|
32
|
+
owner = self.owner
|
|
30
33
|
usage = self.usage
|
|
31
34
|
seats = self.seats
|
|
32
35
|
|
|
@@ -36,6 +39,7 @@ class GetPremiumInfoResponse200:
|
|
|
36
39
|
{
|
|
37
40
|
"premium": premium,
|
|
38
41
|
"automatic_billing": automatic_billing,
|
|
42
|
+
"owner": owner,
|
|
39
43
|
}
|
|
40
44
|
)
|
|
41
45
|
if usage is not UNSET:
|
|
@@ -52,6 +56,8 @@ class GetPremiumInfoResponse200:
|
|
|
52
56
|
|
|
53
57
|
automatic_billing = d.pop("automatic_billing")
|
|
54
58
|
|
|
59
|
+
owner = d.pop("owner")
|
|
60
|
+
|
|
55
61
|
usage = d.pop("usage", UNSET)
|
|
56
62
|
|
|
57
63
|
seats = d.pop("seats", UNSET)
|
|
@@ -59,6 +65,7 @@ class GetPremiumInfoResponse200:
|
|
|
59
65
|
get_premium_info_response_200 = cls(
|
|
60
66
|
premium=premium,
|
|
61
67
|
automatic_billing=automatic_billing,
|
|
68
|
+
owner=owner,
|
|
62
69
|
usage=usage,
|
|
63
70
|
seats=seats,
|
|
64
71
|
)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import datetime
|
|
2
|
-
from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, cast
|
|
2
|
+
from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union, cast
|
|
3
3
|
|
|
4
4
|
from attrs import define as _attrs_define
|
|
5
5
|
from attrs import field as _attrs_field
|
|
@@ -8,6 +8,7 @@ from dateutil.parser import isoparse
|
|
|
8
8
|
from ..models.get_public_app_by_custom_path_response_200_execution_mode import (
|
|
9
9
|
GetPublicAppByCustomPathResponse200ExecutionMode,
|
|
10
10
|
)
|
|
11
|
+
from ..types import UNSET, Unset
|
|
11
12
|
|
|
12
13
|
if TYPE_CHECKING:
|
|
13
14
|
from ..models.get_public_app_by_custom_path_response_200_extra_perms import (
|
|
@@ -35,6 +36,7 @@ class GetPublicAppByCustomPathResponse200:
|
|
|
35
36
|
policy (GetPublicAppByCustomPathResponse200Policy):
|
|
36
37
|
execution_mode (GetPublicAppByCustomPathResponse200ExecutionMode):
|
|
37
38
|
extra_perms (GetPublicAppByCustomPathResponse200ExtraPerms):
|
|
39
|
+
custom_path (Union[Unset, str]):
|
|
38
40
|
"""
|
|
39
41
|
|
|
40
42
|
id: int
|
|
@@ -48,6 +50,7 @@ class GetPublicAppByCustomPathResponse200:
|
|
|
48
50
|
policy: "GetPublicAppByCustomPathResponse200Policy"
|
|
49
51
|
execution_mode: GetPublicAppByCustomPathResponse200ExecutionMode
|
|
50
52
|
extra_perms: "GetPublicAppByCustomPathResponse200ExtraPerms"
|
|
53
|
+
custom_path: Union[Unset, str] = UNSET
|
|
51
54
|
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
52
55
|
|
|
53
56
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -68,6 +71,8 @@ class GetPublicAppByCustomPathResponse200:
|
|
|
68
71
|
|
|
69
72
|
extra_perms = self.extra_perms.to_dict()
|
|
70
73
|
|
|
74
|
+
custom_path = self.custom_path
|
|
75
|
+
|
|
71
76
|
field_dict: Dict[str, Any] = {}
|
|
72
77
|
field_dict.update(self.additional_properties)
|
|
73
78
|
field_dict.update(
|
|
@@ -85,6 +90,8 @@ class GetPublicAppByCustomPathResponse200:
|
|
|
85
90
|
"extra_perms": extra_perms,
|
|
86
91
|
}
|
|
87
92
|
)
|
|
93
|
+
if custom_path is not UNSET:
|
|
94
|
+
field_dict["custom_path"] = custom_path
|
|
88
95
|
|
|
89
96
|
return field_dict
|
|
90
97
|
|
|
@@ -119,6 +126,8 @@ class GetPublicAppByCustomPathResponse200:
|
|
|
119
126
|
|
|
120
127
|
extra_perms = GetPublicAppByCustomPathResponse200ExtraPerms.from_dict(d.pop("extra_perms"))
|
|
121
128
|
|
|
129
|
+
custom_path = d.pop("custom_path", UNSET)
|
|
130
|
+
|
|
122
131
|
get_public_app_by_custom_path_response_200 = cls(
|
|
123
132
|
id=id,
|
|
124
133
|
workspace_id=workspace_id,
|
|
@@ -131,6 +140,7 @@ class GetPublicAppByCustomPathResponse200:
|
|
|
131
140
|
policy=policy,
|
|
132
141
|
execution_mode=execution_mode,
|
|
133
142
|
extra_perms=extra_perms,
|
|
143
|
+
custom_path=custom_path,
|
|
134
144
|
)
|
|
135
145
|
|
|
136
146
|
get_public_app_by_custom_path_response_200.additional_properties = d
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import datetime
|
|
2
|
-
from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, cast
|
|
2
|
+
from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union, cast
|
|
3
3
|
|
|
4
4
|
from attrs import define as _attrs_define
|
|
5
5
|
from attrs import field as _attrs_field
|
|
6
6
|
from dateutil.parser import isoparse
|
|
7
7
|
|
|
8
8
|
from ..models.get_public_app_by_secret_response_200_execution_mode import GetPublicAppBySecretResponse200ExecutionMode
|
|
9
|
+
from ..types import UNSET, Unset
|
|
9
10
|
|
|
10
11
|
if TYPE_CHECKING:
|
|
11
12
|
from ..models.get_public_app_by_secret_response_200_extra_perms import GetPublicAppBySecretResponse200ExtraPerms
|
|
@@ -31,6 +32,7 @@ class GetPublicAppBySecretResponse200:
|
|
|
31
32
|
policy (GetPublicAppBySecretResponse200Policy):
|
|
32
33
|
execution_mode (GetPublicAppBySecretResponse200ExecutionMode):
|
|
33
34
|
extra_perms (GetPublicAppBySecretResponse200ExtraPerms):
|
|
35
|
+
custom_path (Union[Unset, str]):
|
|
34
36
|
"""
|
|
35
37
|
|
|
36
38
|
id: int
|
|
@@ -44,6 +46,7 @@ class GetPublicAppBySecretResponse200:
|
|
|
44
46
|
policy: "GetPublicAppBySecretResponse200Policy"
|
|
45
47
|
execution_mode: GetPublicAppBySecretResponse200ExecutionMode
|
|
46
48
|
extra_perms: "GetPublicAppBySecretResponse200ExtraPerms"
|
|
49
|
+
custom_path: Union[Unset, str] = UNSET
|
|
47
50
|
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
48
51
|
|
|
49
52
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -64,6 +67,8 @@ class GetPublicAppBySecretResponse200:
|
|
|
64
67
|
|
|
65
68
|
extra_perms = self.extra_perms.to_dict()
|
|
66
69
|
|
|
70
|
+
custom_path = self.custom_path
|
|
71
|
+
|
|
67
72
|
field_dict: Dict[str, Any] = {}
|
|
68
73
|
field_dict.update(self.additional_properties)
|
|
69
74
|
field_dict.update(
|
|
@@ -81,6 +86,8 @@ class GetPublicAppBySecretResponse200:
|
|
|
81
86
|
"extra_perms": extra_perms,
|
|
82
87
|
}
|
|
83
88
|
)
|
|
89
|
+
if custom_path is not UNSET:
|
|
90
|
+
field_dict["custom_path"] = custom_path
|
|
84
91
|
|
|
85
92
|
return field_dict
|
|
86
93
|
|
|
@@ -113,6 +120,8 @@ class GetPublicAppBySecretResponse200:
|
|
|
113
120
|
|
|
114
121
|
extra_perms = GetPublicAppBySecretResponse200ExtraPerms.from_dict(d.pop("extra_perms"))
|
|
115
122
|
|
|
123
|
+
custom_path = d.pop("custom_path", UNSET)
|
|
124
|
+
|
|
116
125
|
get_public_app_by_secret_response_200 = cls(
|
|
117
126
|
id=id,
|
|
118
127
|
workspace_id=workspace_id,
|
|
@@ -125,6 +134,7 @@ class GetPublicAppBySecretResponse200:
|
|
|
125
134
|
policy=policy,
|
|
126
135
|
execution_mode=execution_mode,
|
|
127
136
|
extra_perms=extra_perms,
|
|
137
|
+
custom_path=custom_path,
|
|
128
138
|
)
|
|
129
139
|
|
|
130
140
|
get_public_app_by_secret_response_200.additional_properties = d
|