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
|
@@ -38,6 +38,7 @@ class GetFlowByPathResponse200:
|
|
|
38
38
|
dedicated_worker (Union[Unset, bool]):
|
|
39
39
|
timeout (Union[Unset, float]):
|
|
40
40
|
visible_to_runner_only (Union[Unset, bool]):
|
|
41
|
+
on_behalf_of_email (Union[Unset, str]):
|
|
41
42
|
"""
|
|
42
43
|
|
|
43
44
|
summary: str
|
|
@@ -58,6 +59,7 @@ class GetFlowByPathResponse200:
|
|
|
58
59
|
dedicated_worker: Union[Unset, bool] = UNSET
|
|
59
60
|
timeout: Union[Unset, float] = UNSET
|
|
60
61
|
visible_to_runner_only: Union[Unset, bool] = UNSET
|
|
62
|
+
on_behalf_of_email: Union[Unset, str] = UNSET
|
|
61
63
|
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
62
64
|
|
|
63
65
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -85,6 +87,7 @@ class GetFlowByPathResponse200:
|
|
|
85
87
|
dedicated_worker = self.dedicated_worker
|
|
86
88
|
timeout = self.timeout
|
|
87
89
|
visible_to_runner_only = self.visible_to_runner_only
|
|
90
|
+
on_behalf_of_email = self.on_behalf_of_email
|
|
88
91
|
|
|
89
92
|
field_dict: Dict[str, Any] = {}
|
|
90
93
|
field_dict.update(self.additional_properties)
|
|
@@ -121,6 +124,8 @@ class GetFlowByPathResponse200:
|
|
|
121
124
|
field_dict["timeout"] = timeout
|
|
122
125
|
if visible_to_runner_only is not UNSET:
|
|
123
126
|
field_dict["visible_to_runner_only"] = visible_to_runner_only
|
|
127
|
+
if on_behalf_of_email is not UNSET:
|
|
128
|
+
field_dict["on_behalf_of_email"] = on_behalf_of_email
|
|
124
129
|
|
|
125
130
|
return field_dict
|
|
126
131
|
|
|
@@ -172,6 +177,8 @@ class GetFlowByPathResponse200:
|
|
|
172
177
|
|
|
173
178
|
visible_to_runner_only = d.pop("visible_to_runner_only", UNSET)
|
|
174
179
|
|
|
180
|
+
on_behalf_of_email = d.pop("on_behalf_of_email", UNSET)
|
|
181
|
+
|
|
175
182
|
get_flow_by_path_response_200 = cls(
|
|
176
183
|
summary=summary,
|
|
177
184
|
value=value,
|
|
@@ -191,6 +198,7 @@ class GetFlowByPathResponse200:
|
|
|
191
198
|
dedicated_worker=dedicated_worker,
|
|
192
199
|
timeout=timeout,
|
|
193
200
|
visible_to_runner_only=visible_to_runner_only,
|
|
201
|
+
on_behalf_of_email=on_behalf_of_email,
|
|
194
202
|
)
|
|
195
203
|
|
|
196
204
|
get_flow_by_path_response_200.additional_properties = d
|
|
@@ -44,6 +44,7 @@ class GetFlowByPathWithDraftResponse200Draft:
|
|
|
44
44
|
dedicated_worker (Union[Unset, bool]):
|
|
45
45
|
timeout (Union[Unset, float]):
|
|
46
46
|
visible_to_runner_only (Union[Unset, bool]):
|
|
47
|
+
on_behalf_of_email (Union[Unset, str]):
|
|
47
48
|
"""
|
|
48
49
|
|
|
49
50
|
summary: str
|
|
@@ -64,6 +65,7 @@ class GetFlowByPathWithDraftResponse200Draft:
|
|
|
64
65
|
dedicated_worker: Union[Unset, bool] = UNSET
|
|
65
66
|
timeout: Union[Unset, float] = UNSET
|
|
66
67
|
visible_to_runner_only: Union[Unset, bool] = UNSET
|
|
68
|
+
on_behalf_of_email: Union[Unset, str] = UNSET
|
|
67
69
|
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
68
70
|
|
|
69
71
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -91,6 +93,7 @@ class GetFlowByPathWithDraftResponse200Draft:
|
|
|
91
93
|
dedicated_worker = self.dedicated_worker
|
|
92
94
|
timeout = self.timeout
|
|
93
95
|
visible_to_runner_only = self.visible_to_runner_only
|
|
96
|
+
on_behalf_of_email = self.on_behalf_of_email
|
|
94
97
|
|
|
95
98
|
field_dict: Dict[str, Any] = {}
|
|
96
99
|
field_dict.update(self.additional_properties)
|
|
@@ -127,6 +130,8 @@ class GetFlowByPathWithDraftResponse200Draft:
|
|
|
127
130
|
field_dict["timeout"] = timeout
|
|
128
131
|
if visible_to_runner_only is not UNSET:
|
|
129
132
|
field_dict["visible_to_runner_only"] = visible_to_runner_only
|
|
133
|
+
if on_behalf_of_email is not UNSET:
|
|
134
|
+
field_dict["on_behalf_of_email"] = on_behalf_of_email
|
|
130
135
|
|
|
131
136
|
return field_dict
|
|
132
137
|
|
|
@@ -184,6 +189,8 @@ class GetFlowByPathWithDraftResponse200Draft:
|
|
|
184
189
|
|
|
185
190
|
visible_to_runner_only = d.pop("visible_to_runner_only", UNSET)
|
|
186
191
|
|
|
192
|
+
on_behalf_of_email = d.pop("on_behalf_of_email", UNSET)
|
|
193
|
+
|
|
187
194
|
get_flow_by_path_with_draft_response_200_draft = cls(
|
|
188
195
|
summary=summary,
|
|
189
196
|
value=value,
|
|
@@ -203,6 +210,7 @@ class GetFlowByPathWithDraftResponse200Draft:
|
|
|
203
210
|
dedicated_worker=dedicated_worker,
|
|
204
211
|
timeout=timeout,
|
|
205
212
|
visible_to_runner_only=visible_to_runner_only,
|
|
213
|
+
on_behalf_of_email=on_behalf_of_email,
|
|
206
214
|
)
|
|
207
215
|
|
|
208
216
|
get_flow_by_path_with_draft_response_200_draft.additional_properties = d
|
|
@@ -38,6 +38,7 @@ class GetFlowVersionResponse200:
|
|
|
38
38
|
dedicated_worker (Union[Unset, bool]):
|
|
39
39
|
timeout (Union[Unset, float]):
|
|
40
40
|
visible_to_runner_only (Union[Unset, bool]):
|
|
41
|
+
on_behalf_of_email (Union[Unset, str]):
|
|
41
42
|
"""
|
|
42
43
|
|
|
43
44
|
summary: str
|
|
@@ -58,6 +59,7 @@ class GetFlowVersionResponse200:
|
|
|
58
59
|
dedicated_worker: Union[Unset, bool] = UNSET
|
|
59
60
|
timeout: Union[Unset, float] = UNSET
|
|
60
61
|
visible_to_runner_only: Union[Unset, bool] = UNSET
|
|
62
|
+
on_behalf_of_email: Union[Unset, str] = UNSET
|
|
61
63
|
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
62
64
|
|
|
63
65
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -85,6 +87,7 @@ class GetFlowVersionResponse200:
|
|
|
85
87
|
dedicated_worker = self.dedicated_worker
|
|
86
88
|
timeout = self.timeout
|
|
87
89
|
visible_to_runner_only = self.visible_to_runner_only
|
|
90
|
+
on_behalf_of_email = self.on_behalf_of_email
|
|
88
91
|
|
|
89
92
|
field_dict: Dict[str, Any] = {}
|
|
90
93
|
field_dict.update(self.additional_properties)
|
|
@@ -121,6 +124,8 @@ class GetFlowVersionResponse200:
|
|
|
121
124
|
field_dict["timeout"] = timeout
|
|
122
125
|
if visible_to_runner_only is not UNSET:
|
|
123
126
|
field_dict["visible_to_runner_only"] = visible_to_runner_only
|
|
127
|
+
if on_behalf_of_email is not UNSET:
|
|
128
|
+
field_dict["on_behalf_of_email"] = on_behalf_of_email
|
|
124
129
|
|
|
125
130
|
return field_dict
|
|
126
131
|
|
|
@@ -172,6 +177,8 @@ class GetFlowVersionResponse200:
|
|
|
172
177
|
|
|
173
178
|
visible_to_runner_only = d.pop("visible_to_runner_only", UNSET)
|
|
174
179
|
|
|
180
|
+
on_behalf_of_email = d.pop("on_behalf_of_email", UNSET)
|
|
181
|
+
|
|
175
182
|
get_flow_version_response_200 = cls(
|
|
176
183
|
summary=summary,
|
|
177
184
|
value=value,
|
|
@@ -191,6 +198,7 @@ class GetFlowVersionResponse200:
|
|
|
191
198
|
dedicated_worker=dedicated_worker,
|
|
192
199
|
timeout=timeout,
|
|
193
200
|
visible_to_runner_only=visible_to_runner_only,
|
|
201
|
+
on_behalf_of_email=on_behalf_of_email,
|
|
194
202
|
)
|
|
195
203
|
|
|
196
204
|
get_flow_version_response_200.additional_properties = d
|
|
@@ -8,6 +8,8 @@ class GetGranularAclsKind(str, Enum):
|
|
|
8
8
|
GROUP = "group_"
|
|
9
9
|
HTTP_TRIGGER = "http_trigger"
|
|
10
10
|
KAFKA_TRIGGER = "kafka_trigger"
|
|
11
|
+
NATS_TRIGGER = "nats_trigger"
|
|
12
|
+
POSTGRES_TRIGGER = "postgres_trigger"
|
|
11
13
|
RAW_APP = "raw_app"
|
|
12
14
|
RESOURCE = "resource"
|
|
13
15
|
SCHEDULE = "schedule"
|
|
@@ -21,51 +21,51 @@ class GetHttpTriggerResponse200:
|
|
|
21
21
|
"""
|
|
22
22
|
Attributes:
|
|
23
23
|
path (str):
|
|
24
|
-
edited_by (str):
|
|
25
|
-
edited_at (datetime.datetime):
|
|
26
24
|
script_path (str):
|
|
27
25
|
route_path (str):
|
|
28
26
|
is_flow (bool):
|
|
29
|
-
extra_perms (GetHttpTriggerResponse200ExtraPerms):
|
|
30
|
-
email (str):
|
|
31
|
-
workspace_id (str):
|
|
32
27
|
http_method (GetHttpTriggerResponse200HttpMethod):
|
|
33
28
|
is_async (bool):
|
|
34
29
|
requires_auth (bool):
|
|
30
|
+
email (str):
|
|
31
|
+
extra_perms (GetHttpTriggerResponse200ExtraPerms):
|
|
32
|
+
workspace_id (str):
|
|
33
|
+
edited_by (str):
|
|
34
|
+
edited_at (datetime.datetime):
|
|
35
35
|
static_asset_config (Union[Unset, GetHttpTriggerResponse200StaticAssetConfig]):
|
|
36
36
|
"""
|
|
37
37
|
|
|
38
38
|
path: str
|
|
39
|
-
edited_by: str
|
|
40
|
-
edited_at: datetime.datetime
|
|
41
39
|
script_path: str
|
|
42
40
|
route_path: str
|
|
43
41
|
is_flow: bool
|
|
44
|
-
extra_perms: "GetHttpTriggerResponse200ExtraPerms"
|
|
45
|
-
email: str
|
|
46
|
-
workspace_id: str
|
|
47
42
|
http_method: GetHttpTriggerResponse200HttpMethod
|
|
48
43
|
is_async: bool
|
|
49
44
|
requires_auth: bool
|
|
45
|
+
email: str
|
|
46
|
+
extra_perms: "GetHttpTriggerResponse200ExtraPerms"
|
|
47
|
+
workspace_id: str
|
|
48
|
+
edited_by: str
|
|
49
|
+
edited_at: datetime.datetime
|
|
50
50
|
static_asset_config: Union[Unset, "GetHttpTriggerResponse200StaticAssetConfig"] = UNSET
|
|
51
51
|
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
52
52
|
|
|
53
53
|
def to_dict(self) -> Dict[str, Any]:
|
|
54
54
|
path = self.path
|
|
55
|
-
edited_by = self.edited_by
|
|
56
|
-
edited_at = self.edited_at.isoformat()
|
|
57
|
-
|
|
58
55
|
script_path = self.script_path
|
|
59
56
|
route_path = self.route_path
|
|
60
57
|
is_flow = self.is_flow
|
|
61
|
-
extra_perms = self.extra_perms.to_dict()
|
|
62
|
-
|
|
63
|
-
email = self.email
|
|
64
|
-
workspace_id = self.workspace_id
|
|
65
58
|
http_method = self.http_method.value
|
|
66
59
|
|
|
67
60
|
is_async = self.is_async
|
|
68
61
|
requires_auth = self.requires_auth
|
|
62
|
+
email = self.email
|
|
63
|
+
extra_perms = self.extra_perms.to_dict()
|
|
64
|
+
|
|
65
|
+
workspace_id = self.workspace_id
|
|
66
|
+
edited_by = self.edited_by
|
|
67
|
+
edited_at = self.edited_at.isoformat()
|
|
68
|
+
|
|
69
69
|
static_asset_config: Union[Unset, Dict[str, Any]] = UNSET
|
|
70
70
|
if not isinstance(self.static_asset_config, Unset):
|
|
71
71
|
static_asset_config = self.static_asset_config.to_dict()
|
|
@@ -75,17 +75,17 @@ class GetHttpTriggerResponse200:
|
|
|
75
75
|
field_dict.update(
|
|
76
76
|
{
|
|
77
77
|
"path": path,
|
|
78
|
-
"edited_by": edited_by,
|
|
79
|
-
"edited_at": edited_at,
|
|
80
78
|
"script_path": script_path,
|
|
81
79
|
"route_path": route_path,
|
|
82
80
|
"is_flow": is_flow,
|
|
83
|
-
"extra_perms": extra_perms,
|
|
84
|
-
"email": email,
|
|
85
|
-
"workspace_id": workspace_id,
|
|
86
81
|
"http_method": http_method,
|
|
87
82
|
"is_async": is_async,
|
|
88
83
|
"requires_auth": requires_auth,
|
|
84
|
+
"email": email,
|
|
85
|
+
"extra_perms": extra_perms,
|
|
86
|
+
"workspace_id": workspace_id,
|
|
87
|
+
"edited_by": edited_by,
|
|
88
|
+
"edited_at": edited_at,
|
|
89
89
|
}
|
|
90
90
|
)
|
|
91
91
|
if static_asset_config is not UNSET:
|
|
@@ -103,27 +103,27 @@ class GetHttpTriggerResponse200:
|
|
|
103
103
|
d = src_dict.copy()
|
|
104
104
|
path = d.pop("path")
|
|
105
105
|
|
|
106
|
-
edited_by = d.pop("edited_by")
|
|
107
|
-
|
|
108
|
-
edited_at = isoparse(d.pop("edited_at"))
|
|
109
|
-
|
|
110
106
|
script_path = d.pop("script_path")
|
|
111
107
|
|
|
112
108
|
route_path = d.pop("route_path")
|
|
113
109
|
|
|
114
110
|
is_flow = d.pop("is_flow")
|
|
115
111
|
|
|
116
|
-
|
|
112
|
+
http_method = GetHttpTriggerResponse200HttpMethod(d.pop("http_method"))
|
|
113
|
+
|
|
114
|
+
is_async = d.pop("is_async")
|
|
115
|
+
|
|
116
|
+
requires_auth = d.pop("requires_auth")
|
|
117
117
|
|
|
118
118
|
email = d.pop("email")
|
|
119
119
|
|
|
120
|
-
|
|
120
|
+
extra_perms = GetHttpTriggerResponse200ExtraPerms.from_dict(d.pop("extra_perms"))
|
|
121
121
|
|
|
122
|
-
|
|
122
|
+
workspace_id = d.pop("workspace_id")
|
|
123
123
|
|
|
124
|
-
|
|
124
|
+
edited_by = d.pop("edited_by")
|
|
125
125
|
|
|
126
|
-
|
|
126
|
+
edited_at = isoparse(d.pop("edited_at"))
|
|
127
127
|
|
|
128
128
|
_static_asset_config = d.pop("static_asset_config", UNSET)
|
|
129
129
|
static_asset_config: Union[Unset, GetHttpTriggerResponse200StaticAssetConfig]
|
|
@@ -134,17 +134,17 @@ class GetHttpTriggerResponse200:
|
|
|
134
134
|
|
|
135
135
|
get_http_trigger_response_200 = cls(
|
|
136
136
|
path=path,
|
|
137
|
-
edited_by=edited_by,
|
|
138
|
-
edited_at=edited_at,
|
|
139
137
|
script_path=script_path,
|
|
140
138
|
route_path=route_path,
|
|
141
139
|
is_flow=is_flow,
|
|
142
|
-
extra_perms=extra_perms,
|
|
143
|
-
email=email,
|
|
144
|
-
workspace_id=workspace_id,
|
|
145
140
|
http_method=http_method,
|
|
146
141
|
is_async=is_async,
|
|
147
142
|
requires_auth=requires_auth,
|
|
143
|
+
email=email,
|
|
144
|
+
extra_perms=extra_perms,
|
|
145
|
+
workspace_id=workspace_id,
|
|
146
|
+
edited_by=edited_by,
|
|
147
|
+
edited_at=edited_at,
|
|
148
148
|
static_asset_config=static_asset_config,
|
|
149
149
|
)
|
|
150
150
|
|
|
@@ -3,10 +3,12 @@ from enum import Enum
|
|
|
3
3
|
|
|
4
4
|
class GetJobResponse200Type0JobKind(str, Enum):
|
|
5
5
|
APPDEPENDENCIES = "appdependencies"
|
|
6
|
+
APPSCRIPT = "appscript"
|
|
6
7
|
DEPENDENCIES = "dependencies"
|
|
7
8
|
DEPLOYMENTCALLBACK = "deploymentcallback"
|
|
8
9
|
FLOW = "flow"
|
|
9
10
|
FLOWDEPENDENCIES = "flowdependencies"
|
|
11
|
+
FLOWNODE = "flownode"
|
|
10
12
|
FLOWPREVIEW = "flowpreview"
|
|
11
13
|
FLOWSCRIPT = "flowscript"
|
|
12
14
|
IDENTITY = "identity"
|
|
@@ -6,12 +6,14 @@ class GetJobResponse200Type0Language(str, Enum):
|
|
|
6
6
|
BASH = "bash"
|
|
7
7
|
BIGQUERY = "bigquery"
|
|
8
8
|
BUN = "bun"
|
|
9
|
+
CSHARP = "csharp"
|
|
9
10
|
DENO = "deno"
|
|
10
11
|
GO = "go"
|
|
11
12
|
GRAPHQL = "graphql"
|
|
12
13
|
MSSQL = "mssql"
|
|
13
14
|
MYSQL = "mysql"
|
|
14
15
|
NATIVETS = "nativets"
|
|
16
|
+
ORACLEDB = "oracledb"
|
|
15
17
|
PHP = "php"
|
|
16
18
|
POSTGRESQL = "postgresql"
|
|
17
19
|
POWERSHELL = "powershell"
|
|
@@ -3,10 +3,12 @@ from enum import Enum
|
|
|
3
3
|
|
|
4
4
|
class GetJobResponse200Type1JobKind(str, Enum):
|
|
5
5
|
APPDEPENDENCIES = "appdependencies"
|
|
6
|
+
APPSCRIPT = "appscript"
|
|
6
7
|
DEPENDENCIES = "dependencies"
|
|
7
8
|
DEPLOYMENTCALLBACK = "deploymentcallback"
|
|
8
9
|
FLOW = "flow"
|
|
9
10
|
FLOWDEPENDENCIES = "flowdependencies"
|
|
11
|
+
FLOWNODE = "flownode"
|
|
10
12
|
FLOWPREVIEW = "flowpreview"
|
|
11
13
|
FLOWSCRIPT = "flowscript"
|
|
12
14
|
IDENTITY = "identity"
|
|
@@ -6,12 +6,14 @@ class GetJobResponse200Type1Language(str, Enum):
|
|
|
6
6
|
BASH = "bash"
|
|
7
7
|
BIGQUERY = "bigquery"
|
|
8
8
|
BUN = "bun"
|
|
9
|
+
CSHARP = "csharp"
|
|
9
10
|
DENO = "deno"
|
|
10
11
|
GO = "go"
|
|
11
12
|
GRAPHQL = "graphql"
|
|
12
13
|
MSSQL = "mssql"
|
|
13
14
|
MYSQL = "mysql"
|
|
14
15
|
NATIVETS = "nativets"
|
|
16
|
+
ORACLEDB = "oracledb"
|
|
15
17
|
PHP = "php"
|
|
16
18
|
POSTGRESQL = "postgresql"
|
|
17
19
|
POWERSHELL = "powershell"
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
import datetime
|
|
2
|
+
from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union, cast
|
|
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_nats_trigger_response_200_extra_perms import GetNatsTriggerResponse200ExtraPerms
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
T = TypeVar("T", bound="GetNatsTriggerResponse200")
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
@_attrs_define
|
|
18
|
+
class GetNatsTriggerResponse200:
|
|
19
|
+
"""
|
|
20
|
+
Attributes:
|
|
21
|
+
path (str):
|
|
22
|
+
edited_by (str):
|
|
23
|
+
edited_at (datetime.datetime):
|
|
24
|
+
script_path (str):
|
|
25
|
+
nats_resource_path (str):
|
|
26
|
+
use_jetstream (bool):
|
|
27
|
+
subjects (List[str]):
|
|
28
|
+
is_flow (bool):
|
|
29
|
+
extra_perms (GetNatsTriggerResponse200ExtraPerms):
|
|
30
|
+
email (str):
|
|
31
|
+
workspace_id (str):
|
|
32
|
+
enabled (bool):
|
|
33
|
+
stream_name (Union[Unset, str]):
|
|
34
|
+
consumer_name (Union[Unset, str]):
|
|
35
|
+
server_id (Union[Unset, str]):
|
|
36
|
+
last_server_ping (Union[Unset, datetime.datetime]):
|
|
37
|
+
error (Union[Unset, str]):
|
|
38
|
+
"""
|
|
39
|
+
|
|
40
|
+
path: str
|
|
41
|
+
edited_by: str
|
|
42
|
+
edited_at: datetime.datetime
|
|
43
|
+
script_path: str
|
|
44
|
+
nats_resource_path: str
|
|
45
|
+
use_jetstream: bool
|
|
46
|
+
subjects: List[str]
|
|
47
|
+
is_flow: bool
|
|
48
|
+
extra_perms: "GetNatsTriggerResponse200ExtraPerms"
|
|
49
|
+
email: str
|
|
50
|
+
workspace_id: str
|
|
51
|
+
enabled: bool
|
|
52
|
+
stream_name: Union[Unset, str] = UNSET
|
|
53
|
+
consumer_name: Union[Unset, str] = UNSET
|
|
54
|
+
server_id: Union[Unset, str] = UNSET
|
|
55
|
+
last_server_ping: Union[Unset, datetime.datetime] = UNSET
|
|
56
|
+
error: Union[Unset, str] = UNSET
|
|
57
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
58
|
+
|
|
59
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
60
|
+
path = self.path
|
|
61
|
+
edited_by = self.edited_by
|
|
62
|
+
edited_at = self.edited_at.isoformat()
|
|
63
|
+
|
|
64
|
+
script_path = self.script_path
|
|
65
|
+
nats_resource_path = self.nats_resource_path
|
|
66
|
+
use_jetstream = self.use_jetstream
|
|
67
|
+
subjects = self.subjects
|
|
68
|
+
|
|
69
|
+
is_flow = self.is_flow
|
|
70
|
+
extra_perms = self.extra_perms.to_dict()
|
|
71
|
+
|
|
72
|
+
email = self.email
|
|
73
|
+
workspace_id = self.workspace_id
|
|
74
|
+
enabled = self.enabled
|
|
75
|
+
stream_name = self.stream_name
|
|
76
|
+
consumer_name = self.consumer_name
|
|
77
|
+
server_id = self.server_id
|
|
78
|
+
last_server_ping: Union[Unset, str] = UNSET
|
|
79
|
+
if not isinstance(self.last_server_ping, Unset):
|
|
80
|
+
last_server_ping = self.last_server_ping.isoformat()
|
|
81
|
+
|
|
82
|
+
error = self.error
|
|
83
|
+
|
|
84
|
+
field_dict: Dict[str, Any] = {}
|
|
85
|
+
field_dict.update(self.additional_properties)
|
|
86
|
+
field_dict.update(
|
|
87
|
+
{
|
|
88
|
+
"path": path,
|
|
89
|
+
"edited_by": edited_by,
|
|
90
|
+
"edited_at": edited_at,
|
|
91
|
+
"script_path": script_path,
|
|
92
|
+
"nats_resource_path": nats_resource_path,
|
|
93
|
+
"use_jetstream": use_jetstream,
|
|
94
|
+
"subjects": subjects,
|
|
95
|
+
"is_flow": is_flow,
|
|
96
|
+
"extra_perms": extra_perms,
|
|
97
|
+
"email": email,
|
|
98
|
+
"workspace_id": workspace_id,
|
|
99
|
+
"enabled": enabled,
|
|
100
|
+
}
|
|
101
|
+
)
|
|
102
|
+
if stream_name is not UNSET:
|
|
103
|
+
field_dict["stream_name"] = stream_name
|
|
104
|
+
if consumer_name is not UNSET:
|
|
105
|
+
field_dict["consumer_name"] = consumer_name
|
|
106
|
+
if server_id is not UNSET:
|
|
107
|
+
field_dict["server_id"] = server_id
|
|
108
|
+
if last_server_ping is not UNSET:
|
|
109
|
+
field_dict["last_server_ping"] = last_server_ping
|
|
110
|
+
if error is not UNSET:
|
|
111
|
+
field_dict["error"] = error
|
|
112
|
+
|
|
113
|
+
return field_dict
|
|
114
|
+
|
|
115
|
+
@classmethod
|
|
116
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
117
|
+
from ..models.get_nats_trigger_response_200_extra_perms import GetNatsTriggerResponse200ExtraPerms
|
|
118
|
+
|
|
119
|
+
d = src_dict.copy()
|
|
120
|
+
path = d.pop("path")
|
|
121
|
+
|
|
122
|
+
edited_by = d.pop("edited_by")
|
|
123
|
+
|
|
124
|
+
edited_at = isoparse(d.pop("edited_at"))
|
|
125
|
+
|
|
126
|
+
script_path = d.pop("script_path")
|
|
127
|
+
|
|
128
|
+
nats_resource_path = d.pop("nats_resource_path")
|
|
129
|
+
|
|
130
|
+
use_jetstream = d.pop("use_jetstream")
|
|
131
|
+
|
|
132
|
+
subjects = cast(List[str], d.pop("subjects"))
|
|
133
|
+
|
|
134
|
+
is_flow = d.pop("is_flow")
|
|
135
|
+
|
|
136
|
+
extra_perms = GetNatsTriggerResponse200ExtraPerms.from_dict(d.pop("extra_perms"))
|
|
137
|
+
|
|
138
|
+
email = d.pop("email")
|
|
139
|
+
|
|
140
|
+
workspace_id = d.pop("workspace_id")
|
|
141
|
+
|
|
142
|
+
enabled = d.pop("enabled")
|
|
143
|
+
|
|
144
|
+
stream_name = d.pop("stream_name", UNSET)
|
|
145
|
+
|
|
146
|
+
consumer_name = d.pop("consumer_name", UNSET)
|
|
147
|
+
|
|
148
|
+
server_id = d.pop("server_id", UNSET)
|
|
149
|
+
|
|
150
|
+
_last_server_ping = d.pop("last_server_ping", UNSET)
|
|
151
|
+
last_server_ping: Union[Unset, datetime.datetime]
|
|
152
|
+
if isinstance(_last_server_ping, Unset):
|
|
153
|
+
last_server_ping = UNSET
|
|
154
|
+
else:
|
|
155
|
+
last_server_ping = isoparse(_last_server_ping)
|
|
156
|
+
|
|
157
|
+
error = d.pop("error", UNSET)
|
|
158
|
+
|
|
159
|
+
get_nats_trigger_response_200 = cls(
|
|
160
|
+
path=path,
|
|
161
|
+
edited_by=edited_by,
|
|
162
|
+
edited_at=edited_at,
|
|
163
|
+
script_path=script_path,
|
|
164
|
+
nats_resource_path=nats_resource_path,
|
|
165
|
+
use_jetstream=use_jetstream,
|
|
166
|
+
subjects=subjects,
|
|
167
|
+
is_flow=is_flow,
|
|
168
|
+
extra_perms=extra_perms,
|
|
169
|
+
email=email,
|
|
170
|
+
workspace_id=workspace_id,
|
|
171
|
+
enabled=enabled,
|
|
172
|
+
stream_name=stream_name,
|
|
173
|
+
consumer_name=consumer_name,
|
|
174
|
+
server_id=server_id,
|
|
175
|
+
last_server_ping=last_server_ping,
|
|
176
|
+
error=error,
|
|
177
|
+
)
|
|
178
|
+
|
|
179
|
+
get_nats_trigger_response_200.additional_properties = d
|
|
180
|
+
return get_nats_trigger_response_200
|
|
181
|
+
|
|
182
|
+
@property
|
|
183
|
+
def additional_keys(self) -> List[str]:
|
|
184
|
+
return list(self.additional_properties.keys())
|
|
185
|
+
|
|
186
|
+
def __getitem__(self, key: str) -> Any:
|
|
187
|
+
return self.additional_properties[key]
|
|
188
|
+
|
|
189
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
190
|
+
self.additional_properties[key] = value
|
|
191
|
+
|
|
192
|
+
def __delitem__(self, key: str) -> None:
|
|
193
|
+
del self.additional_properties[key]
|
|
194
|
+
|
|
195
|
+
def __contains__(self, key: str) -> bool:
|
|
196
|
+
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="GetNatsTriggerResponse200ExtraPerms")
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@_attrs_define
|
|
10
|
+
class GetNatsTriggerResponse200ExtraPerms:
|
|
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_nats_trigger_response_200_extra_perms = cls()
|
|
26
|
+
|
|
27
|
+
get_nats_trigger_response_200_extra_perms.additional_properties = d
|
|
28
|
+
return get_nats_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
|