windmill-api 1.474.0__py3-none-any.whl → 1.475.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.

Files changed (109) hide show
  1. windmill_api/api/folder/exists_folder.py +160 -0
  2. windmill_api/api/helpers/file_download.py +4 -4
  3. windmill_api/api/mqtt_trigger/__init__.py +0 -0
  4. windmill_api/api/mqtt_trigger/create_mqtt_trigger.py +105 -0
  5. windmill_api/api/mqtt_trigger/delete_mqtt_trigger.py +101 -0
  6. windmill_api/api/mqtt_trigger/exists_mqtt_trigger.py +160 -0
  7. windmill_api/api/mqtt_trigger/get_mqtt_trigger.py +166 -0
  8. windmill_api/api/mqtt_trigger/list_mqtt_triggers.py +237 -0
  9. windmill_api/api/mqtt_trigger/set_mqtt_trigger_enabled.py +113 -0
  10. windmill_api/api/mqtt_trigger/test_mqtt_connection.py +105 -0
  11. windmill_api/api/mqtt_trigger/update_mqtt_trigger.py +113 -0
  12. windmill_api/models/add_granular_acls_kind.py +1 -0
  13. windmill_api/models/app_with_last_version_policy.py +22 -0
  14. windmill_api/models/app_with_last_version_policy_allowed_s3_keys_item.py +66 -0
  15. windmill_api/models/app_with_last_version_w_draft_policy.py +26 -0
  16. windmill_api/models/app_with_last_version_w_draft_policy_allowed_s3_keys_item.py +66 -0
  17. windmill_api/models/capture_config_trigger_kind.py +1 -0
  18. windmill_api/models/capture_trigger_kind.py +1 -0
  19. windmill_api/models/create_app_json_body_policy.py +22 -0
  20. windmill_api/models/create_app_json_body_policy_allowed_s3_keys_item.py +66 -0
  21. windmill_api/models/create_mqtt_trigger_json_body.py +177 -0
  22. windmill_api/models/create_mqtt_trigger_json_body_client_version.py +9 -0
  23. windmill_api/models/create_mqtt_trigger_json_body_subscribe_topics_item.py +70 -0
  24. windmill_api/models/create_mqtt_trigger_json_body_subscribe_topics_item_qos.py +10 -0
  25. windmill_api/models/create_mqtt_trigger_json_body_v3_config.py +58 -0
  26. windmill_api/models/create_mqtt_trigger_json_body_v5_config.py +74 -0
  27. windmill_api/models/edit_mqtt_trigger.py +171 -0
  28. windmill_api/models/edit_mqtt_trigger_client_version.py +9 -0
  29. windmill_api/models/edit_mqtt_trigger_subscribe_topics_item.py +68 -0
  30. windmill_api/models/edit_mqtt_trigger_subscribe_topics_item_qos.py +10 -0
  31. windmill_api/models/edit_mqtt_trigger_v3_config.py +58 -0
  32. windmill_api/models/edit_mqtt_trigger_v5_config.py +74 -0
  33. windmill_api/models/edit_workspace_deploy_ui_settings_json_body_deploy_ui_settings_include_type_item.py +1 -0
  34. windmill_api/models/get_app_by_path_response_200_policy.py +26 -0
  35. windmill_api/models/get_app_by_path_response_200_policy_allowed_s3_keys_item.py +66 -0
  36. windmill_api/models/get_app_by_path_with_draft_response_200_policy.py +28 -0
  37. windmill_api/models/get_app_by_path_with_draft_response_200_policy_allowed_s3_keys_item.py +66 -0
  38. windmill_api/models/get_app_by_version_response_200_policy.py +28 -0
  39. windmill_api/models/get_app_by_version_response_200_policy_allowed_s3_keys_item.py +66 -0
  40. windmill_api/models/get_app_lite_by_path_response_200_policy.py +28 -0
  41. windmill_api/models/get_app_lite_by_path_response_200_policy_allowed_s3_keys_item.py +66 -0
  42. windmill_api/models/get_capture_configs_response_200_item_trigger_kind.py +1 -0
  43. windmill_api/models/get_capture_response_200_trigger_kind.py +1 -0
  44. windmill_api/models/get_granular_acls_kind.py +1 -0
  45. windmill_api/models/get_mqtt_trigger_response_200.py +249 -0
  46. windmill_api/models/get_mqtt_trigger_response_200_client_version.py +9 -0
  47. windmill_api/models/get_mqtt_trigger_response_200_extra_perms.py +44 -0
  48. windmill_api/models/get_mqtt_trigger_response_200_subscribe_topics_item.py +70 -0
  49. windmill_api/models/get_mqtt_trigger_response_200_subscribe_topics_item_qos.py +10 -0
  50. windmill_api/models/get_mqtt_trigger_response_200v3_config.py +58 -0
  51. windmill_api/models/get_mqtt_trigger_response_200v5_config.py +74 -0
  52. windmill_api/models/get_public_app_by_custom_path_response_200_policy.py +28 -0
  53. windmill_api/models/get_public_app_by_custom_path_response_200_policy_allowed_s3_keys_item.py +66 -0
  54. windmill_api/models/get_public_app_by_secret_response_200_policy.py +28 -0
  55. windmill_api/models/get_public_app_by_secret_response_200_policy_allowed_s3_keys_item.py +66 -0
  56. windmill_api/models/get_settings_response_200_deploy_ui_include_type_item.py +1 -0
  57. windmill_api/models/get_triggers_count_of_flow_response_200.py +8 -0
  58. windmill_api/models/get_triggers_count_of_script_response_200.py +8 -0
  59. windmill_api/models/get_used_triggers_response_200.py +7 -0
  60. windmill_api/models/list_captures_response_200_item_trigger_kind.py +1 -0
  61. windmill_api/models/list_captures_trigger_kind.py +1 -0
  62. windmill_api/models/list_mqtt_triggers_response_200_item.py +251 -0
  63. windmill_api/models/list_mqtt_triggers_response_200_item_client_version.py +9 -0
  64. windmill_api/models/list_mqtt_triggers_response_200_item_extra_perms.py +44 -0
  65. windmill_api/models/list_mqtt_triggers_response_200_item_subscribe_topics_item.py +70 -0
  66. windmill_api/models/list_mqtt_triggers_response_200_item_subscribe_topics_item_qos.py +10 -0
  67. windmill_api/models/list_mqtt_triggers_response_200_item_v3_config.py +58 -0
  68. windmill_api/models/list_mqtt_triggers_response_200_item_v5_config.py +74 -0
  69. windmill_api/models/mqtt_client_version.py +9 -0
  70. windmill_api/models/mqtt_qo_s.py +10 -0
  71. windmill_api/models/mqtt_subscribe_topic.py +68 -0
  72. windmill_api/models/mqtt_subscribe_topic_qos.py +10 -0
  73. windmill_api/models/mqtt_trigger.py +245 -0
  74. windmill_api/models/mqtt_trigger_client_version.py +9 -0
  75. windmill_api/models/mqtt_trigger_extra_perms.py +44 -0
  76. windmill_api/models/mqtt_trigger_subscribe_topics_item.py +68 -0
  77. windmill_api/models/mqtt_trigger_subscribe_topics_item_qos.py +10 -0
  78. windmill_api/models/mqtt_trigger_v3_config.py +58 -0
  79. windmill_api/models/mqtt_trigger_v5_config.py +74 -0
  80. windmill_api/models/mqtt_v3_config.py +58 -0
  81. windmill_api/models/mqtt_v5_config.py +74 -0
  82. windmill_api/models/new_mqtt_trigger.py +173 -0
  83. windmill_api/models/new_mqtt_trigger_client_version.py +9 -0
  84. windmill_api/models/new_mqtt_trigger_subscribe_topics_item.py +68 -0
  85. windmill_api/models/new_mqtt_trigger_subscribe_topics_item_qos.py +10 -0
  86. windmill_api/models/new_mqtt_trigger_v3_config.py +58 -0
  87. windmill_api/models/new_mqtt_trigger_v5_config.py +74 -0
  88. windmill_api/models/ping_capture_config_trigger_kind.py +1 -0
  89. windmill_api/models/policy.py +22 -0
  90. windmill_api/models/policy_allowed_s3_keys_item.py +66 -0
  91. windmill_api/models/remove_granular_acls_kind.py +1 -0
  92. windmill_api/models/set_capture_config_json_body_trigger_kind.py +1 -0
  93. windmill_api/models/set_mqtt_trigger_enabled_json_body.py +58 -0
  94. windmill_api/models/test_mqtt_connection_json_body.py +64 -0
  95. windmill_api/models/test_mqtt_connection_json_body_connection.py +44 -0
  96. windmill_api/models/triggers_count.py +8 -0
  97. windmill_api/models/update_app_json_body_policy.py +22 -0
  98. windmill_api/models/update_app_json_body_policy_allowed_s3_keys_item.py +66 -0
  99. windmill_api/models/update_mqtt_trigger_json_body.py +175 -0
  100. windmill_api/models/update_mqtt_trigger_json_body_client_version.py +9 -0
  101. windmill_api/models/update_mqtt_trigger_json_body_subscribe_topics_item.py +70 -0
  102. windmill_api/models/update_mqtt_trigger_json_body_subscribe_topics_item_qos.py +10 -0
  103. windmill_api/models/update_mqtt_trigger_json_body_v3_config.py +58 -0
  104. windmill_api/models/update_mqtt_trigger_json_body_v5_config.py +74 -0
  105. windmill_api/models/workspace_deploy_ui_settings_include_type_item.py +1 -0
  106. {windmill_api-1.474.0.dist-info → windmill_api-1.475.1.dist-info}/METADATA +1 -1
  107. {windmill_api-1.474.0.dist-info → windmill_api-1.475.1.dist-info}/RECORD +109 -34
  108. {windmill_api-1.474.0.dist-info → windmill_api-1.475.1.dist-info}/LICENSE +0 -0
  109. {windmill_api-1.474.0.dist-info → windmill_api-1.475.1.dist-info}/WHEEL +0 -0
@@ -9,6 +9,9 @@ from ..models.get_public_app_by_custom_path_response_200_policy_execution_mode i
9
9
  from ..types import UNSET, Unset
10
10
 
11
11
  if TYPE_CHECKING:
12
+ from ..models.get_public_app_by_custom_path_response_200_policy_allowed_s3_keys_item import (
13
+ GetPublicAppByCustomPathResponse200PolicyAllowedS3KeysItem,
14
+ )
12
15
  from ..models.get_public_app_by_custom_path_response_200_policy_s3_inputs_item import (
13
16
  GetPublicAppByCustomPathResponse200PolicyS3InputsItem,
14
17
  )
@@ -30,6 +33,7 @@ class GetPublicAppByCustomPathResponse200Policy:
30
33
  triggerables (Union[Unset, GetPublicAppByCustomPathResponse200PolicyTriggerables]):
31
34
  triggerables_v2 (Union[Unset, GetPublicAppByCustomPathResponse200PolicyTriggerablesV2]):
32
35
  s3_inputs (Union[Unset, List['GetPublicAppByCustomPathResponse200PolicyS3InputsItem']]):
36
+ allowed_s3_keys (Union[Unset, List['GetPublicAppByCustomPathResponse200PolicyAllowedS3KeysItem']]):
33
37
  execution_mode (Union[Unset, GetPublicAppByCustomPathResponse200PolicyExecutionMode]):
34
38
  on_behalf_of (Union[Unset, str]):
35
39
  on_behalf_of_email (Union[Unset, str]):
@@ -38,6 +42,7 @@ class GetPublicAppByCustomPathResponse200Policy:
38
42
  triggerables: Union[Unset, "GetPublicAppByCustomPathResponse200PolicyTriggerables"] = UNSET
39
43
  triggerables_v2: Union[Unset, "GetPublicAppByCustomPathResponse200PolicyTriggerablesV2"] = UNSET
40
44
  s3_inputs: Union[Unset, List["GetPublicAppByCustomPathResponse200PolicyS3InputsItem"]] = UNSET
45
+ allowed_s3_keys: Union[Unset, List["GetPublicAppByCustomPathResponse200PolicyAllowedS3KeysItem"]] = UNSET
41
46
  execution_mode: Union[Unset, GetPublicAppByCustomPathResponse200PolicyExecutionMode] = UNSET
42
47
  on_behalf_of: Union[Unset, str] = UNSET
43
48
  on_behalf_of_email: Union[Unset, str] = UNSET
@@ -60,6 +65,14 @@ class GetPublicAppByCustomPathResponse200Policy:
60
65
 
61
66
  s3_inputs.append(s3_inputs_item)
62
67
 
68
+ allowed_s3_keys: Union[Unset, List[Dict[str, Any]]] = UNSET
69
+ if not isinstance(self.allowed_s3_keys, Unset):
70
+ allowed_s3_keys = []
71
+ for allowed_s3_keys_item_data in self.allowed_s3_keys:
72
+ allowed_s3_keys_item = allowed_s3_keys_item_data.to_dict()
73
+
74
+ allowed_s3_keys.append(allowed_s3_keys_item)
75
+
63
76
  execution_mode: Union[Unset, str] = UNSET
64
77
  if not isinstance(self.execution_mode, Unset):
65
78
  execution_mode = self.execution_mode.value
@@ -76,6 +89,8 @@ class GetPublicAppByCustomPathResponse200Policy:
76
89
  field_dict["triggerables_v2"] = triggerables_v2
77
90
  if s3_inputs is not UNSET:
78
91
  field_dict["s3_inputs"] = s3_inputs
92
+ if allowed_s3_keys is not UNSET:
93
+ field_dict["allowed_s3_keys"] = allowed_s3_keys
79
94
  if execution_mode is not UNSET:
80
95
  field_dict["execution_mode"] = execution_mode
81
96
  if on_behalf_of is not UNSET:
@@ -87,6 +102,9 @@ class GetPublicAppByCustomPathResponse200Policy:
87
102
 
88
103
  @classmethod
89
104
  def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
105
+ from ..models.get_public_app_by_custom_path_response_200_policy_allowed_s3_keys_item import (
106
+ GetPublicAppByCustomPathResponse200PolicyAllowedS3KeysItem,
107
+ )
90
108
  from ..models.get_public_app_by_custom_path_response_200_policy_s3_inputs_item import (
91
109
  GetPublicAppByCustomPathResponse200PolicyS3InputsItem,
92
110
  )
@@ -119,6 +137,15 @@ class GetPublicAppByCustomPathResponse200Policy:
119
137
 
120
138
  s3_inputs.append(s3_inputs_item)
121
139
 
140
+ allowed_s3_keys = []
141
+ _allowed_s3_keys = d.pop("allowed_s3_keys", UNSET)
142
+ for allowed_s3_keys_item_data in _allowed_s3_keys or []:
143
+ allowed_s3_keys_item = GetPublicAppByCustomPathResponse200PolicyAllowedS3KeysItem.from_dict(
144
+ allowed_s3_keys_item_data
145
+ )
146
+
147
+ allowed_s3_keys.append(allowed_s3_keys_item)
148
+
122
149
  _execution_mode = d.pop("execution_mode", UNSET)
123
150
  execution_mode: Union[Unset, GetPublicAppByCustomPathResponse200PolicyExecutionMode]
124
151
  if isinstance(_execution_mode, Unset):
@@ -134,6 +161,7 @@ class GetPublicAppByCustomPathResponse200Policy:
134
161
  triggerables=triggerables,
135
162
  triggerables_v2=triggerables_v2,
136
163
  s3_inputs=s3_inputs,
164
+ allowed_s3_keys=allowed_s3_keys,
137
165
  execution_mode=execution_mode,
138
166
  on_behalf_of=on_behalf_of,
139
167
  on_behalf_of_email=on_behalf_of_email,
@@ -0,0 +1,66 @@
1
+ from typing import Any, Dict, List, Type, TypeVar, Union
2
+
3
+ from attrs import define as _attrs_define
4
+ from attrs import field as _attrs_field
5
+
6
+ from ..types import UNSET, Unset
7
+
8
+ T = TypeVar("T", bound="GetPublicAppByCustomPathResponse200PolicyAllowedS3KeysItem")
9
+
10
+
11
+ @_attrs_define
12
+ class GetPublicAppByCustomPathResponse200PolicyAllowedS3KeysItem:
13
+ """
14
+ Attributes:
15
+ s3_path (Union[Unset, str]):
16
+ resource (Union[Unset, str]):
17
+ """
18
+
19
+ s3_path: Union[Unset, str] = UNSET
20
+ resource: Union[Unset, str] = UNSET
21
+ additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
22
+
23
+ def to_dict(self) -> Dict[str, Any]:
24
+ s3_path = self.s3_path
25
+ resource = self.resource
26
+
27
+ field_dict: Dict[str, Any] = {}
28
+ field_dict.update(self.additional_properties)
29
+ field_dict.update({})
30
+ if s3_path is not UNSET:
31
+ field_dict["s3_path"] = s3_path
32
+ if resource is not UNSET:
33
+ field_dict["resource"] = resource
34
+
35
+ return field_dict
36
+
37
+ @classmethod
38
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
39
+ d = src_dict.copy()
40
+ s3_path = d.pop("s3_path", UNSET)
41
+
42
+ resource = d.pop("resource", UNSET)
43
+
44
+ get_public_app_by_custom_path_response_200_policy_allowed_s3_keys_item = cls(
45
+ s3_path=s3_path,
46
+ resource=resource,
47
+ )
48
+
49
+ get_public_app_by_custom_path_response_200_policy_allowed_s3_keys_item.additional_properties = d
50
+ return get_public_app_by_custom_path_response_200_policy_allowed_s3_keys_item
51
+
52
+ @property
53
+ def additional_keys(self) -> List[str]:
54
+ return list(self.additional_properties.keys())
55
+
56
+ def __getitem__(self, key: str) -> Any:
57
+ return self.additional_properties[key]
58
+
59
+ def __setitem__(self, key: str, value: Any) -> None:
60
+ self.additional_properties[key] = value
61
+
62
+ def __delitem__(self, key: str) -> None:
63
+ del self.additional_properties[key]
64
+
65
+ def __contains__(self, key: str) -> bool:
66
+ return key in self.additional_properties
@@ -9,6 +9,9 @@ from ..models.get_public_app_by_secret_response_200_policy_execution_mode import
9
9
  from ..types import UNSET, Unset
10
10
 
11
11
  if TYPE_CHECKING:
12
+ from ..models.get_public_app_by_secret_response_200_policy_allowed_s3_keys_item import (
13
+ GetPublicAppBySecretResponse200PolicyAllowedS3KeysItem,
14
+ )
12
15
  from ..models.get_public_app_by_secret_response_200_policy_s3_inputs_item import (
13
16
  GetPublicAppBySecretResponse200PolicyS3InputsItem,
14
17
  )
@@ -30,6 +33,7 @@ class GetPublicAppBySecretResponse200Policy:
30
33
  triggerables (Union[Unset, GetPublicAppBySecretResponse200PolicyTriggerables]):
31
34
  triggerables_v2 (Union[Unset, GetPublicAppBySecretResponse200PolicyTriggerablesV2]):
32
35
  s3_inputs (Union[Unset, List['GetPublicAppBySecretResponse200PolicyS3InputsItem']]):
36
+ allowed_s3_keys (Union[Unset, List['GetPublicAppBySecretResponse200PolicyAllowedS3KeysItem']]):
33
37
  execution_mode (Union[Unset, GetPublicAppBySecretResponse200PolicyExecutionMode]):
34
38
  on_behalf_of (Union[Unset, str]):
35
39
  on_behalf_of_email (Union[Unset, str]):
@@ -38,6 +42,7 @@ class GetPublicAppBySecretResponse200Policy:
38
42
  triggerables: Union[Unset, "GetPublicAppBySecretResponse200PolicyTriggerables"] = UNSET
39
43
  triggerables_v2: Union[Unset, "GetPublicAppBySecretResponse200PolicyTriggerablesV2"] = UNSET
40
44
  s3_inputs: Union[Unset, List["GetPublicAppBySecretResponse200PolicyS3InputsItem"]] = UNSET
45
+ allowed_s3_keys: Union[Unset, List["GetPublicAppBySecretResponse200PolicyAllowedS3KeysItem"]] = UNSET
41
46
  execution_mode: Union[Unset, GetPublicAppBySecretResponse200PolicyExecutionMode] = UNSET
42
47
  on_behalf_of: Union[Unset, str] = UNSET
43
48
  on_behalf_of_email: Union[Unset, str] = UNSET
@@ -60,6 +65,14 @@ class GetPublicAppBySecretResponse200Policy:
60
65
 
61
66
  s3_inputs.append(s3_inputs_item)
62
67
 
68
+ allowed_s3_keys: Union[Unset, List[Dict[str, Any]]] = UNSET
69
+ if not isinstance(self.allowed_s3_keys, Unset):
70
+ allowed_s3_keys = []
71
+ for allowed_s3_keys_item_data in self.allowed_s3_keys:
72
+ allowed_s3_keys_item = allowed_s3_keys_item_data.to_dict()
73
+
74
+ allowed_s3_keys.append(allowed_s3_keys_item)
75
+
63
76
  execution_mode: Union[Unset, str] = UNSET
64
77
  if not isinstance(self.execution_mode, Unset):
65
78
  execution_mode = self.execution_mode.value
@@ -76,6 +89,8 @@ class GetPublicAppBySecretResponse200Policy:
76
89
  field_dict["triggerables_v2"] = triggerables_v2
77
90
  if s3_inputs is not UNSET:
78
91
  field_dict["s3_inputs"] = s3_inputs
92
+ if allowed_s3_keys is not UNSET:
93
+ field_dict["allowed_s3_keys"] = allowed_s3_keys
79
94
  if execution_mode is not UNSET:
80
95
  field_dict["execution_mode"] = execution_mode
81
96
  if on_behalf_of is not UNSET:
@@ -87,6 +102,9 @@ class GetPublicAppBySecretResponse200Policy:
87
102
 
88
103
  @classmethod
89
104
  def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
105
+ from ..models.get_public_app_by_secret_response_200_policy_allowed_s3_keys_item import (
106
+ GetPublicAppBySecretResponse200PolicyAllowedS3KeysItem,
107
+ )
90
108
  from ..models.get_public_app_by_secret_response_200_policy_s3_inputs_item import (
91
109
  GetPublicAppBySecretResponse200PolicyS3InputsItem,
92
110
  )
@@ -119,6 +137,15 @@ class GetPublicAppBySecretResponse200Policy:
119
137
 
120
138
  s3_inputs.append(s3_inputs_item)
121
139
 
140
+ allowed_s3_keys = []
141
+ _allowed_s3_keys = d.pop("allowed_s3_keys", UNSET)
142
+ for allowed_s3_keys_item_data in _allowed_s3_keys or []:
143
+ allowed_s3_keys_item = GetPublicAppBySecretResponse200PolicyAllowedS3KeysItem.from_dict(
144
+ allowed_s3_keys_item_data
145
+ )
146
+
147
+ allowed_s3_keys.append(allowed_s3_keys_item)
148
+
122
149
  _execution_mode = d.pop("execution_mode", UNSET)
123
150
  execution_mode: Union[Unset, GetPublicAppBySecretResponse200PolicyExecutionMode]
124
151
  if isinstance(_execution_mode, Unset):
@@ -134,6 +161,7 @@ class GetPublicAppBySecretResponse200Policy:
134
161
  triggerables=triggerables,
135
162
  triggerables_v2=triggerables_v2,
136
163
  s3_inputs=s3_inputs,
164
+ allowed_s3_keys=allowed_s3_keys,
137
165
  execution_mode=execution_mode,
138
166
  on_behalf_of=on_behalf_of,
139
167
  on_behalf_of_email=on_behalf_of_email,
@@ -0,0 +1,66 @@
1
+ from typing import Any, Dict, List, Type, TypeVar, Union
2
+
3
+ from attrs import define as _attrs_define
4
+ from attrs import field as _attrs_field
5
+
6
+ from ..types import UNSET, Unset
7
+
8
+ T = TypeVar("T", bound="GetPublicAppBySecretResponse200PolicyAllowedS3KeysItem")
9
+
10
+
11
+ @_attrs_define
12
+ class GetPublicAppBySecretResponse200PolicyAllowedS3KeysItem:
13
+ """
14
+ Attributes:
15
+ s3_path (Union[Unset, str]):
16
+ resource (Union[Unset, str]):
17
+ """
18
+
19
+ s3_path: Union[Unset, str] = UNSET
20
+ resource: Union[Unset, str] = UNSET
21
+ additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
22
+
23
+ def to_dict(self) -> Dict[str, Any]:
24
+ s3_path = self.s3_path
25
+ resource = self.resource
26
+
27
+ field_dict: Dict[str, Any] = {}
28
+ field_dict.update(self.additional_properties)
29
+ field_dict.update({})
30
+ if s3_path is not UNSET:
31
+ field_dict["s3_path"] = s3_path
32
+ if resource is not UNSET:
33
+ field_dict["resource"] = resource
34
+
35
+ return field_dict
36
+
37
+ @classmethod
38
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
39
+ d = src_dict.copy()
40
+ s3_path = d.pop("s3_path", UNSET)
41
+
42
+ resource = d.pop("resource", UNSET)
43
+
44
+ get_public_app_by_secret_response_200_policy_allowed_s3_keys_item = cls(
45
+ s3_path=s3_path,
46
+ resource=resource,
47
+ )
48
+
49
+ get_public_app_by_secret_response_200_policy_allowed_s3_keys_item.additional_properties = d
50
+ return get_public_app_by_secret_response_200_policy_allowed_s3_keys_item
51
+
52
+ @property
53
+ def additional_keys(self) -> List[str]:
54
+ return list(self.additional_properties.keys())
55
+
56
+ def __getitem__(self, key: str) -> Any:
57
+ return self.additional_properties[key]
58
+
59
+ def __setitem__(self, key: str, value: Any) -> None:
60
+ self.additional_properties[key] = value
61
+
62
+ def __delitem__(self, key: str) -> None:
63
+ del self.additional_properties[key]
64
+
65
+ def __contains__(self, key: str) -> bool:
66
+ return key in self.additional_properties
@@ -7,6 +7,7 @@ class GetSettingsResponse200DeployUiIncludeTypeItem(str, Enum):
7
7
  RESOURCE = "resource"
8
8
  SCRIPT = "script"
9
9
  SECRET = "secret"
10
+ TRIGGER = "trigger"
10
11
  VARIABLE = "variable"
11
12
 
12
13
  def __str__(self) -> str:
@@ -27,6 +27,7 @@ class GetTriggersCountOfFlowResponse200:
27
27
  postgres_count (Union[Unset, float]):
28
28
  kafka_count (Union[Unset, float]):
29
29
  nats_count (Union[Unset, float]):
30
+ mqtt_count (Union[Unset, float]):
30
31
  sqs_count (Union[Unset, float]):
31
32
  """
32
33
 
@@ -39,6 +40,7 @@ class GetTriggersCountOfFlowResponse200:
39
40
  postgres_count: Union[Unset, float] = UNSET
40
41
  kafka_count: Union[Unset, float] = UNSET
41
42
  nats_count: Union[Unset, float] = UNSET
43
+ mqtt_count: Union[Unset, float] = UNSET
42
44
  sqs_count: Union[Unset, float] = UNSET
43
45
  additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
44
46
 
@@ -55,6 +57,7 @@ class GetTriggersCountOfFlowResponse200:
55
57
  postgres_count = self.postgres_count
56
58
  kafka_count = self.kafka_count
57
59
  nats_count = self.nats_count
60
+ mqtt_count = self.mqtt_count
58
61
  sqs_count = self.sqs_count
59
62
 
60
63
  field_dict: Dict[str, Any] = {}
@@ -78,6 +81,8 @@ class GetTriggersCountOfFlowResponse200:
78
81
  field_dict["kafka_count"] = kafka_count
79
82
  if nats_count is not UNSET:
80
83
  field_dict["nats_count"] = nats_count
84
+ if mqtt_count is not UNSET:
85
+ field_dict["mqtt_count"] = mqtt_count
81
86
  if sqs_count is not UNSET:
82
87
  field_dict["sqs_count"] = sqs_count
83
88
 
@@ -113,6 +118,8 @@ class GetTriggersCountOfFlowResponse200:
113
118
 
114
119
  nats_count = d.pop("nats_count", UNSET)
115
120
 
121
+ mqtt_count = d.pop("mqtt_count", UNSET)
122
+
116
123
  sqs_count = d.pop("sqs_count", UNSET)
117
124
 
118
125
  get_triggers_count_of_flow_response_200 = cls(
@@ -125,6 +132,7 @@ class GetTriggersCountOfFlowResponse200:
125
132
  postgres_count=postgres_count,
126
133
  kafka_count=kafka_count,
127
134
  nats_count=nats_count,
135
+ mqtt_count=mqtt_count,
128
136
  sqs_count=sqs_count,
129
137
  )
130
138
 
@@ -27,6 +27,7 @@ class GetTriggersCountOfScriptResponse200:
27
27
  postgres_count (Union[Unset, float]):
28
28
  kafka_count (Union[Unset, float]):
29
29
  nats_count (Union[Unset, float]):
30
+ mqtt_count (Union[Unset, float]):
30
31
  sqs_count (Union[Unset, float]):
31
32
  """
32
33
 
@@ -39,6 +40,7 @@ class GetTriggersCountOfScriptResponse200:
39
40
  postgres_count: Union[Unset, float] = UNSET
40
41
  kafka_count: Union[Unset, float] = UNSET
41
42
  nats_count: Union[Unset, float] = UNSET
43
+ mqtt_count: Union[Unset, float] = UNSET
42
44
  sqs_count: Union[Unset, float] = UNSET
43
45
  additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
44
46
 
@@ -55,6 +57,7 @@ class GetTriggersCountOfScriptResponse200:
55
57
  postgres_count = self.postgres_count
56
58
  kafka_count = self.kafka_count
57
59
  nats_count = self.nats_count
60
+ mqtt_count = self.mqtt_count
58
61
  sqs_count = self.sqs_count
59
62
 
60
63
  field_dict: Dict[str, Any] = {}
@@ -78,6 +81,8 @@ class GetTriggersCountOfScriptResponse200:
78
81
  field_dict["kafka_count"] = kafka_count
79
82
  if nats_count is not UNSET:
80
83
  field_dict["nats_count"] = nats_count
84
+ if mqtt_count is not UNSET:
85
+ field_dict["mqtt_count"] = mqtt_count
81
86
  if sqs_count is not UNSET:
82
87
  field_dict["sqs_count"] = sqs_count
83
88
 
@@ -113,6 +118,8 @@ class GetTriggersCountOfScriptResponse200:
113
118
 
114
119
  nats_count = d.pop("nats_count", UNSET)
115
120
 
121
+ mqtt_count = d.pop("mqtt_count", UNSET)
122
+
116
123
  sqs_count = d.pop("sqs_count", UNSET)
117
124
 
118
125
  get_triggers_count_of_script_response_200 = cls(
@@ -125,6 +132,7 @@ class GetTriggersCountOfScriptResponse200:
125
132
  postgres_count=postgres_count,
126
133
  kafka_count=kafka_count,
127
134
  nats_count=nats_count,
135
+ mqtt_count=mqtt_count,
128
136
  sqs_count=sqs_count,
129
137
  )
130
138
 
@@ -15,6 +15,7 @@ class GetUsedTriggersResponse200:
15
15
  kafka_used (bool):
16
16
  nats_used (bool):
17
17
  postgres_used (bool):
18
+ mqtt_used (bool):
18
19
  sqs_used (bool):
19
20
  """
20
21
 
@@ -23,6 +24,7 @@ class GetUsedTriggersResponse200:
23
24
  kafka_used: bool
24
25
  nats_used: bool
25
26
  postgres_used: bool
27
+ mqtt_used: bool
26
28
  sqs_used: bool
27
29
  additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
28
30
 
@@ -32,6 +34,7 @@ class GetUsedTriggersResponse200:
32
34
  kafka_used = self.kafka_used
33
35
  nats_used = self.nats_used
34
36
  postgres_used = self.postgres_used
37
+ mqtt_used = self.mqtt_used
35
38
  sqs_used = self.sqs_used
36
39
 
37
40
  field_dict: Dict[str, Any] = {}
@@ -43,6 +46,7 @@ class GetUsedTriggersResponse200:
43
46
  "kafka_used": kafka_used,
44
47
  "nats_used": nats_used,
45
48
  "postgres_used": postgres_used,
49
+ "mqtt_used": mqtt_used,
46
50
  "sqs_used": sqs_used,
47
51
  }
48
52
  )
@@ -62,6 +66,8 @@ class GetUsedTriggersResponse200:
62
66
 
63
67
  postgres_used = d.pop("postgres_used")
64
68
 
69
+ mqtt_used = d.pop("mqtt_used")
70
+
65
71
  sqs_used = d.pop("sqs_used")
66
72
 
67
73
  get_used_triggers_response_200 = cls(
@@ -70,6 +76,7 @@ class GetUsedTriggersResponse200:
70
76
  kafka_used=kafka_used,
71
77
  nats_used=nats_used,
72
78
  postgres_used=postgres_used,
79
+ mqtt_used=mqtt_used,
73
80
  sqs_used=sqs_used,
74
81
  )
75
82
 
@@ -5,6 +5,7 @@ class ListCapturesResponse200ItemTriggerKind(str, Enum):
5
5
  EMAIL = "email"
6
6
  HTTP = "http"
7
7
  KAFKA = "kafka"
8
+ MQTT = "mqtt"
8
9
  NATS = "nats"
9
10
  POSTGRES = "postgres"
10
11
  SQS = "sqs"
@@ -5,6 +5,7 @@ class ListCapturesTriggerKind(str, Enum):
5
5
  EMAIL = "email"
6
6
  HTTP = "http"
7
7
  KAFKA = "kafka"
8
+ MQTT = "mqtt"
8
9
  NATS = "nats"
9
10
  POSTGRES = "postgres"
10
11
  SQS = "sqs"