windmill-api 1.474.0__py3-none-any.whl → 1.475.0__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/helpers/file_download.py +4 -4
- windmill_api/api/mqtt_trigger/__init__.py +0 -0
- windmill_api/api/mqtt_trigger/create_mqtt_trigger.py +105 -0
- windmill_api/api/mqtt_trigger/delete_mqtt_trigger.py +101 -0
- windmill_api/api/mqtt_trigger/exists_mqtt_trigger.py +160 -0
- windmill_api/api/mqtt_trigger/get_mqtt_trigger.py +166 -0
- windmill_api/api/mqtt_trigger/list_mqtt_triggers.py +237 -0
- windmill_api/api/mqtt_trigger/set_mqtt_trigger_enabled.py +113 -0
- windmill_api/api/mqtt_trigger/test_mqtt_connection.py +105 -0
- windmill_api/api/mqtt_trigger/update_mqtt_trigger.py +113 -0
- windmill_api/models/add_granular_acls_kind.py +1 -0
- windmill_api/models/app_with_last_version_policy.py +22 -0
- windmill_api/models/app_with_last_version_policy_allowed_s3_keys_item.py +66 -0
- windmill_api/models/app_with_last_version_w_draft_policy.py +26 -0
- windmill_api/models/app_with_last_version_w_draft_policy_allowed_s3_keys_item.py +66 -0
- windmill_api/models/capture_config_trigger_kind.py +1 -0
- windmill_api/models/capture_trigger_kind.py +1 -0
- windmill_api/models/create_app_json_body_policy.py +22 -0
- windmill_api/models/create_app_json_body_policy_allowed_s3_keys_item.py +66 -0
- windmill_api/models/create_mqtt_trigger_json_body.py +177 -0
- windmill_api/models/create_mqtt_trigger_json_body_client_version.py +9 -0
- windmill_api/models/create_mqtt_trigger_json_body_subscribe_topics_item.py +70 -0
- windmill_api/models/create_mqtt_trigger_json_body_subscribe_topics_item_qos.py +10 -0
- windmill_api/models/create_mqtt_trigger_json_body_v3_config.py +58 -0
- windmill_api/models/create_mqtt_trigger_json_body_v5_config.py +74 -0
- windmill_api/models/edit_mqtt_trigger.py +171 -0
- windmill_api/models/edit_mqtt_trigger_client_version.py +9 -0
- windmill_api/models/edit_mqtt_trigger_subscribe_topics_item.py +68 -0
- windmill_api/models/edit_mqtt_trigger_subscribe_topics_item_qos.py +10 -0
- windmill_api/models/edit_mqtt_trigger_v3_config.py +58 -0
- windmill_api/models/edit_mqtt_trigger_v5_config.py +74 -0
- windmill_api/models/edit_workspace_deploy_ui_settings_json_body_deploy_ui_settings_include_type_item.py +1 -0
- windmill_api/models/get_app_by_path_response_200_policy.py +26 -0
- windmill_api/models/get_app_by_path_response_200_policy_allowed_s3_keys_item.py +66 -0
- windmill_api/models/get_app_by_path_with_draft_response_200_policy.py +28 -0
- windmill_api/models/get_app_by_path_with_draft_response_200_policy_allowed_s3_keys_item.py +66 -0
- windmill_api/models/get_app_by_version_response_200_policy.py +28 -0
- windmill_api/models/get_app_by_version_response_200_policy_allowed_s3_keys_item.py +66 -0
- windmill_api/models/get_app_lite_by_path_response_200_policy.py +28 -0
- windmill_api/models/get_app_lite_by_path_response_200_policy_allowed_s3_keys_item.py +66 -0
- windmill_api/models/get_capture_configs_response_200_item_trigger_kind.py +1 -0
- windmill_api/models/get_capture_response_200_trigger_kind.py +1 -0
- windmill_api/models/get_granular_acls_kind.py +1 -0
- windmill_api/models/get_mqtt_trigger_response_200.py +249 -0
- windmill_api/models/get_mqtt_trigger_response_200_client_version.py +9 -0
- windmill_api/models/get_mqtt_trigger_response_200_extra_perms.py +44 -0
- windmill_api/models/get_mqtt_trigger_response_200_subscribe_topics_item.py +70 -0
- windmill_api/models/get_mqtt_trigger_response_200_subscribe_topics_item_qos.py +10 -0
- windmill_api/models/get_mqtt_trigger_response_200v3_config.py +58 -0
- windmill_api/models/get_mqtt_trigger_response_200v5_config.py +74 -0
- windmill_api/models/get_public_app_by_custom_path_response_200_policy.py +28 -0
- windmill_api/models/get_public_app_by_custom_path_response_200_policy_allowed_s3_keys_item.py +66 -0
- windmill_api/models/get_public_app_by_secret_response_200_policy.py +28 -0
- windmill_api/models/get_public_app_by_secret_response_200_policy_allowed_s3_keys_item.py +66 -0
- windmill_api/models/get_settings_response_200_deploy_ui_include_type_item.py +1 -0
- windmill_api/models/get_triggers_count_of_flow_response_200.py +8 -0
- windmill_api/models/get_triggers_count_of_script_response_200.py +8 -0
- windmill_api/models/get_used_triggers_response_200.py +7 -0
- windmill_api/models/list_captures_response_200_item_trigger_kind.py +1 -0
- windmill_api/models/list_captures_trigger_kind.py +1 -0
- windmill_api/models/list_mqtt_triggers_response_200_item.py +251 -0
- windmill_api/models/list_mqtt_triggers_response_200_item_client_version.py +9 -0
- windmill_api/models/list_mqtt_triggers_response_200_item_extra_perms.py +44 -0
- windmill_api/models/list_mqtt_triggers_response_200_item_subscribe_topics_item.py +70 -0
- windmill_api/models/list_mqtt_triggers_response_200_item_subscribe_topics_item_qos.py +10 -0
- windmill_api/models/list_mqtt_triggers_response_200_item_v3_config.py +58 -0
- windmill_api/models/list_mqtt_triggers_response_200_item_v5_config.py +74 -0
- windmill_api/models/mqtt_client_version.py +9 -0
- windmill_api/models/mqtt_qo_s.py +10 -0
- windmill_api/models/mqtt_subscribe_topic.py +68 -0
- windmill_api/models/mqtt_subscribe_topic_qos.py +10 -0
- windmill_api/models/mqtt_trigger.py +245 -0
- windmill_api/models/mqtt_trigger_client_version.py +9 -0
- windmill_api/models/mqtt_trigger_extra_perms.py +44 -0
- windmill_api/models/mqtt_trigger_subscribe_topics_item.py +68 -0
- windmill_api/models/mqtt_trigger_subscribe_topics_item_qos.py +10 -0
- windmill_api/models/mqtt_trigger_v3_config.py +58 -0
- windmill_api/models/mqtt_trigger_v5_config.py +74 -0
- windmill_api/models/mqtt_v3_config.py +58 -0
- windmill_api/models/mqtt_v5_config.py +74 -0
- windmill_api/models/new_mqtt_trigger.py +173 -0
- windmill_api/models/new_mqtt_trigger_client_version.py +9 -0
- windmill_api/models/new_mqtt_trigger_subscribe_topics_item.py +68 -0
- windmill_api/models/new_mqtt_trigger_subscribe_topics_item_qos.py +10 -0
- windmill_api/models/new_mqtt_trigger_v3_config.py +58 -0
- windmill_api/models/new_mqtt_trigger_v5_config.py +74 -0
- windmill_api/models/ping_capture_config_trigger_kind.py +1 -0
- windmill_api/models/policy.py +22 -0
- windmill_api/models/policy_allowed_s3_keys_item.py +66 -0
- windmill_api/models/remove_granular_acls_kind.py +1 -0
- windmill_api/models/set_capture_config_json_body_trigger_kind.py +1 -0
- windmill_api/models/set_mqtt_trigger_enabled_json_body.py +58 -0
- windmill_api/models/test_mqtt_connection_json_body.py +64 -0
- windmill_api/models/test_mqtt_connection_json_body_connection.py +44 -0
- windmill_api/models/triggers_count.py +8 -0
- windmill_api/models/update_app_json_body_policy.py +22 -0
- windmill_api/models/update_app_json_body_policy_allowed_s3_keys_item.py +66 -0
- windmill_api/models/update_mqtt_trigger_json_body.py +175 -0
- windmill_api/models/update_mqtt_trigger_json_body_client_version.py +9 -0
- windmill_api/models/update_mqtt_trigger_json_body_subscribe_topics_item.py +70 -0
- windmill_api/models/update_mqtt_trigger_json_body_subscribe_topics_item_qos.py +10 -0
- windmill_api/models/update_mqtt_trigger_json_body_v3_config.py +58 -0
- windmill_api/models/update_mqtt_trigger_json_body_v5_config.py +74 -0
- windmill_api/models/workspace_deploy_ui_settings_include_type_item.py +1 -0
- {windmill_api-1.474.0.dist-info → windmill_api-1.475.0.dist-info}/METADATA +1 -1
- {windmill_api-1.474.0.dist-info → windmill_api-1.475.0.dist-info}/RECORD +108 -34
- {windmill_api-1.474.0.dist-info → windmill_api-1.475.0.dist-info}/LICENSE +0 -0
- {windmill_api-1.474.0.dist-info → windmill_api-1.475.0.dist-info}/WHEEL +0 -0
windmill_api/models/policy.py
CHANGED
|
@@ -7,6 +7,7 @@ from ..models.policy_execution_mode import PolicyExecutionMode
|
|
|
7
7
|
from ..types import UNSET, Unset
|
|
8
8
|
|
|
9
9
|
if TYPE_CHECKING:
|
|
10
|
+
from ..models.policy_allowed_s3_keys_item import PolicyAllowedS3KeysItem
|
|
10
11
|
from ..models.policy_s3_inputs_item import PolicyS3InputsItem
|
|
11
12
|
from ..models.policy_triggerables import PolicyTriggerables
|
|
12
13
|
from ..models.policy_triggerables_v2 import PolicyTriggerablesV2
|
|
@@ -22,6 +23,7 @@ class Policy:
|
|
|
22
23
|
triggerables (Union[Unset, PolicyTriggerables]):
|
|
23
24
|
triggerables_v2 (Union[Unset, PolicyTriggerablesV2]):
|
|
24
25
|
s3_inputs (Union[Unset, List['PolicyS3InputsItem']]):
|
|
26
|
+
allowed_s3_keys (Union[Unset, List['PolicyAllowedS3KeysItem']]):
|
|
25
27
|
execution_mode (Union[Unset, PolicyExecutionMode]):
|
|
26
28
|
on_behalf_of (Union[Unset, str]):
|
|
27
29
|
on_behalf_of_email (Union[Unset, str]):
|
|
@@ -30,6 +32,7 @@ class Policy:
|
|
|
30
32
|
triggerables: Union[Unset, "PolicyTriggerables"] = UNSET
|
|
31
33
|
triggerables_v2: Union[Unset, "PolicyTriggerablesV2"] = UNSET
|
|
32
34
|
s3_inputs: Union[Unset, List["PolicyS3InputsItem"]] = UNSET
|
|
35
|
+
allowed_s3_keys: Union[Unset, List["PolicyAllowedS3KeysItem"]] = UNSET
|
|
33
36
|
execution_mode: Union[Unset, PolicyExecutionMode] = UNSET
|
|
34
37
|
on_behalf_of: Union[Unset, str] = UNSET
|
|
35
38
|
on_behalf_of_email: Union[Unset, str] = UNSET
|
|
@@ -52,6 +55,14 @@ class Policy:
|
|
|
52
55
|
|
|
53
56
|
s3_inputs.append(s3_inputs_item)
|
|
54
57
|
|
|
58
|
+
allowed_s3_keys: Union[Unset, List[Dict[str, Any]]] = UNSET
|
|
59
|
+
if not isinstance(self.allowed_s3_keys, Unset):
|
|
60
|
+
allowed_s3_keys = []
|
|
61
|
+
for allowed_s3_keys_item_data in self.allowed_s3_keys:
|
|
62
|
+
allowed_s3_keys_item = allowed_s3_keys_item_data.to_dict()
|
|
63
|
+
|
|
64
|
+
allowed_s3_keys.append(allowed_s3_keys_item)
|
|
65
|
+
|
|
55
66
|
execution_mode: Union[Unset, str] = UNSET
|
|
56
67
|
if not isinstance(self.execution_mode, Unset):
|
|
57
68
|
execution_mode = self.execution_mode.value
|
|
@@ -68,6 +79,8 @@ class Policy:
|
|
|
68
79
|
field_dict["triggerables_v2"] = triggerables_v2
|
|
69
80
|
if s3_inputs is not UNSET:
|
|
70
81
|
field_dict["s3_inputs"] = s3_inputs
|
|
82
|
+
if allowed_s3_keys is not UNSET:
|
|
83
|
+
field_dict["allowed_s3_keys"] = allowed_s3_keys
|
|
71
84
|
if execution_mode is not UNSET:
|
|
72
85
|
field_dict["execution_mode"] = execution_mode
|
|
73
86
|
if on_behalf_of is not UNSET:
|
|
@@ -79,6 +92,7 @@ class Policy:
|
|
|
79
92
|
|
|
80
93
|
@classmethod
|
|
81
94
|
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
95
|
+
from ..models.policy_allowed_s3_keys_item import PolicyAllowedS3KeysItem
|
|
82
96
|
from ..models.policy_s3_inputs_item import PolicyS3InputsItem
|
|
83
97
|
from ..models.policy_triggerables import PolicyTriggerables
|
|
84
98
|
from ..models.policy_triggerables_v2 import PolicyTriggerablesV2
|
|
@@ -105,6 +119,13 @@ class Policy:
|
|
|
105
119
|
|
|
106
120
|
s3_inputs.append(s3_inputs_item)
|
|
107
121
|
|
|
122
|
+
allowed_s3_keys = []
|
|
123
|
+
_allowed_s3_keys = d.pop("allowed_s3_keys", UNSET)
|
|
124
|
+
for allowed_s3_keys_item_data in _allowed_s3_keys or []:
|
|
125
|
+
allowed_s3_keys_item = PolicyAllowedS3KeysItem.from_dict(allowed_s3_keys_item_data)
|
|
126
|
+
|
|
127
|
+
allowed_s3_keys.append(allowed_s3_keys_item)
|
|
128
|
+
|
|
108
129
|
_execution_mode = d.pop("execution_mode", UNSET)
|
|
109
130
|
execution_mode: Union[Unset, PolicyExecutionMode]
|
|
110
131
|
if isinstance(_execution_mode, Unset):
|
|
@@ -120,6 +141,7 @@ class Policy:
|
|
|
120
141
|
triggerables=triggerables,
|
|
121
142
|
triggerables_v2=triggerables_v2,
|
|
122
143
|
s3_inputs=s3_inputs,
|
|
144
|
+
allowed_s3_keys=allowed_s3_keys,
|
|
123
145
|
execution_mode=execution_mode,
|
|
124
146
|
on_behalf_of=on_behalf_of,
|
|
125
147
|
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="PolicyAllowedS3KeysItem")
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
@_attrs_define
|
|
12
|
+
class PolicyAllowedS3KeysItem:
|
|
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
|
+
policy_allowed_s3_keys_item = cls(
|
|
45
|
+
s3_path=s3_path,
|
|
46
|
+
resource=resource,
|
|
47
|
+
)
|
|
48
|
+
|
|
49
|
+
policy_allowed_s3_keys_item.additional_properties = d
|
|
50
|
+
return 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
|
|
@@ -0,0 +1,58 @@
|
|
|
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="SetMqttTriggerEnabledJsonBody")
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@_attrs_define
|
|
10
|
+
class SetMqttTriggerEnabledJsonBody:
|
|
11
|
+
"""
|
|
12
|
+
Attributes:
|
|
13
|
+
enabled (bool):
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
enabled: bool
|
|
17
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
18
|
+
|
|
19
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
20
|
+
enabled = self.enabled
|
|
21
|
+
|
|
22
|
+
field_dict: Dict[str, Any] = {}
|
|
23
|
+
field_dict.update(self.additional_properties)
|
|
24
|
+
field_dict.update(
|
|
25
|
+
{
|
|
26
|
+
"enabled": enabled,
|
|
27
|
+
}
|
|
28
|
+
)
|
|
29
|
+
|
|
30
|
+
return field_dict
|
|
31
|
+
|
|
32
|
+
@classmethod
|
|
33
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
34
|
+
d = src_dict.copy()
|
|
35
|
+
enabled = d.pop("enabled")
|
|
36
|
+
|
|
37
|
+
set_mqtt_trigger_enabled_json_body = cls(
|
|
38
|
+
enabled=enabled,
|
|
39
|
+
)
|
|
40
|
+
|
|
41
|
+
set_mqtt_trigger_enabled_json_body.additional_properties = d
|
|
42
|
+
return set_mqtt_trigger_enabled_json_body
|
|
43
|
+
|
|
44
|
+
@property
|
|
45
|
+
def additional_keys(self) -> List[str]:
|
|
46
|
+
return list(self.additional_properties.keys())
|
|
47
|
+
|
|
48
|
+
def __getitem__(self, key: str) -> Any:
|
|
49
|
+
return self.additional_properties[key]
|
|
50
|
+
|
|
51
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
52
|
+
self.additional_properties[key] = value
|
|
53
|
+
|
|
54
|
+
def __delitem__(self, key: str) -> None:
|
|
55
|
+
del self.additional_properties[key]
|
|
56
|
+
|
|
57
|
+
def __contains__(self, key: str) -> bool:
|
|
58
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,64 @@
|
|
|
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.test_mqtt_connection_json_body_connection import TestMqttConnectionJsonBodyConnection
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
T = TypeVar("T", bound="TestMqttConnectionJsonBody")
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
@_attrs_define
|
|
14
|
+
class TestMqttConnectionJsonBody:
|
|
15
|
+
"""
|
|
16
|
+
Attributes:
|
|
17
|
+
connection (TestMqttConnectionJsonBodyConnection):
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
connection: "TestMqttConnectionJsonBodyConnection"
|
|
21
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
22
|
+
|
|
23
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
24
|
+
connection = self.connection.to_dict()
|
|
25
|
+
|
|
26
|
+
field_dict: Dict[str, Any] = {}
|
|
27
|
+
field_dict.update(self.additional_properties)
|
|
28
|
+
field_dict.update(
|
|
29
|
+
{
|
|
30
|
+
"connection": connection,
|
|
31
|
+
}
|
|
32
|
+
)
|
|
33
|
+
|
|
34
|
+
return field_dict
|
|
35
|
+
|
|
36
|
+
@classmethod
|
|
37
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
38
|
+
from ..models.test_mqtt_connection_json_body_connection import TestMqttConnectionJsonBodyConnection
|
|
39
|
+
|
|
40
|
+
d = src_dict.copy()
|
|
41
|
+
connection = TestMqttConnectionJsonBodyConnection.from_dict(d.pop("connection"))
|
|
42
|
+
|
|
43
|
+
test_mqtt_connection_json_body = cls(
|
|
44
|
+
connection=connection,
|
|
45
|
+
)
|
|
46
|
+
|
|
47
|
+
test_mqtt_connection_json_body.additional_properties = d
|
|
48
|
+
return test_mqtt_connection_json_body
|
|
49
|
+
|
|
50
|
+
@property
|
|
51
|
+
def additional_keys(self) -> List[str]:
|
|
52
|
+
return list(self.additional_properties.keys())
|
|
53
|
+
|
|
54
|
+
def __getitem__(self, key: str) -> Any:
|
|
55
|
+
return self.additional_properties[key]
|
|
56
|
+
|
|
57
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
58
|
+
self.additional_properties[key] = value
|
|
59
|
+
|
|
60
|
+
def __delitem__(self, key: str) -> None:
|
|
61
|
+
del self.additional_properties[key]
|
|
62
|
+
|
|
63
|
+
def __contains__(self, key: str) -> bool:
|
|
64
|
+
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="TestMqttConnectionJsonBodyConnection")
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@_attrs_define
|
|
10
|
+
class TestMqttConnectionJsonBodyConnection:
|
|
11
|
+
""" """
|
|
12
|
+
|
|
13
|
+
additional_properties: Dict[str, Any] = _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
|
+
test_mqtt_connection_json_body_connection = cls()
|
|
26
|
+
|
|
27
|
+
test_mqtt_connection_json_body_connection.additional_properties = d
|
|
28
|
+
return test_mqtt_connection_json_body_connection
|
|
29
|
+
|
|
30
|
+
@property
|
|
31
|
+
def additional_keys(self) -> List[str]:
|
|
32
|
+
return list(self.additional_properties.keys())
|
|
33
|
+
|
|
34
|
+
def __getitem__(self, key: str) -> Any:
|
|
35
|
+
return self.additional_properties[key]
|
|
36
|
+
|
|
37
|
+
def __setitem__(self, key: str, value: Any) -> 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
|
|
@@ -25,6 +25,7 @@ class TriggersCount:
|
|
|
25
25
|
postgres_count (Union[Unset, float]):
|
|
26
26
|
kafka_count (Union[Unset, float]):
|
|
27
27
|
nats_count (Union[Unset, float]):
|
|
28
|
+
mqtt_count (Union[Unset, float]):
|
|
28
29
|
sqs_count (Union[Unset, float]):
|
|
29
30
|
"""
|
|
30
31
|
|
|
@@ -37,6 +38,7 @@ class TriggersCount:
|
|
|
37
38
|
postgres_count: Union[Unset, float] = UNSET
|
|
38
39
|
kafka_count: Union[Unset, float] = UNSET
|
|
39
40
|
nats_count: Union[Unset, float] = UNSET
|
|
41
|
+
mqtt_count: Union[Unset, float] = UNSET
|
|
40
42
|
sqs_count: Union[Unset, float] = UNSET
|
|
41
43
|
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
42
44
|
|
|
@@ -53,6 +55,7 @@ class TriggersCount:
|
|
|
53
55
|
postgres_count = self.postgres_count
|
|
54
56
|
kafka_count = self.kafka_count
|
|
55
57
|
nats_count = self.nats_count
|
|
58
|
+
mqtt_count = self.mqtt_count
|
|
56
59
|
sqs_count = self.sqs_count
|
|
57
60
|
|
|
58
61
|
field_dict: Dict[str, Any] = {}
|
|
@@ -76,6 +79,8 @@ class TriggersCount:
|
|
|
76
79
|
field_dict["kafka_count"] = kafka_count
|
|
77
80
|
if nats_count is not UNSET:
|
|
78
81
|
field_dict["nats_count"] = nats_count
|
|
82
|
+
if mqtt_count is not UNSET:
|
|
83
|
+
field_dict["mqtt_count"] = mqtt_count
|
|
79
84
|
if sqs_count is not UNSET:
|
|
80
85
|
field_dict["sqs_count"] = sqs_count
|
|
81
86
|
|
|
@@ -109,6 +114,8 @@ class TriggersCount:
|
|
|
109
114
|
|
|
110
115
|
nats_count = d.pop("nats_count", UNSET)
|
|
111
116
|
|
|
117
|
+
mqtt_count = d.pop("mqtt_count", UNSET)
|
|
118
|
+
|
|
112
119
|
sqs_count = d.pop("sqs_count", UNSET)
|
|
113
120
|
|
|
114
121
|
triggers_count = cls(
|
|
@@ -121,6 +128,7 @@ class TriggersCount:
|
|
|
121
128
|
postgres_count=postgres_count,
|
|
122
129
|
kafka_count=kafka_count,
|
|
123
130
|
nats_count=nats_count,
|
|
131
|
+
mqtt_count=mqtt_count,
|
|
124
132
|
sqs_count=sqs_count,
|
|
125
133
|
)
|
|
126
134
|
|
|
@@ -7,6 +7,7 @@ from ..models.update_app_json_body_policy_execution_mode import UpdateAppJsonBod
|
|
|
7
7
|
from ..types import UNSET, Unset
|
|
8
8
|
|
|
9
9
|
if TYPE_CHECKING:
|
|
10
|
+
from ..models.update_app_json_body_policy_allowed_s3_keys_item import UpdateAppJsonBodyPolicyAllowedS3KeysItem
|
|
10
11
|
from ..models.update_app_json_body_policy_s3_inputs_item import UpdateAppJsonBodyPolicyS3InputsItem
|
|
11
12
|
from ..models.update_app_json_body_policy_triggerables import UpdateAppJsonBodyPolicyTriggerables
|
|
12
13
|
from ..models.update_app_json_body_policy_triggerables_v2 import UpdateAppJsonBodyPolicyTriggerablesV2
|
|
@@ -22,6 +23,7 @@ class UpdateAppJsonBodyPolicy:
|
|
|
22
23
|
triggerables (Union[Unset, UpdateAppJsonBodyPolicyTriggerables]):
|
|
23
24
|
triggerables_v2 (Union[Unset, UpdateAppJsonBodyPolicyTriggerablesV2]):
|
|
24
25
|
s3_inputs (Union[Unset, List['UpdateAppJsonBodyPolicyS3InputsItem']]):
|
|
26
|
+
allowed_s3_keys (Union[Unset, List['UpdateAppJsonBodyPolicyAllowedS3KeysItem']]):
|
|
25
27
|
execution_mode (Union[Unset, UpdateAppJsonBodyPolicyExecutionMode]):
|
|
26
28
|
on_behalf_of (Union[Unset, str]):
|
|
27
29
|
on_behalf_of_email (Union[Unset, str]):
|
|
@@ -30,6 +32,7 @@ class UpdateAppJsonBodyPolicy:
|
|
|
30
32
|
triggerables: Union[Unset, "UpdateAppJsonBodyPolicyTriggerables"] = UNSET
|
|
31
33
|
triggerables_v2: Union[Unset, "UpdateAppJsonBodyPolicyTriggerablesV2"] = UNSET
|
|
32
34
|
s3_inputs: Union[Unset, List["UpdateAppJsonBodyPolicyS3InputsItem"]] = UNSET
|
|
35
|
+
allowed_s3_keys: Union[Unset, List["UpdateAppJsonBodyPolicyAllowedS3KeysItem"]] = UNSET
|
|
33
36
|
execution_mode: Union[Unset, UpdateAppJsonBodyPolicyExecutionMode] = UNSET
|
|
34
37
|
on_behalf_of: Union[Unset, str] = UNSET
|
|
35
38
|
on_behalf_of_email: Union[Unset, str] = UNSET
|
|
@@ -52,6 +55,14 @@ class UpdateAppJsonBodyPolicy:
|
|
|
52
55
|
|
|
53
56
|
s3_inputs.append(s3_inputs_item)
|
|
54
57
|
|
|
58
|
+
allowed_s3_keys: Union[Unset, List[Dict[str, Any]]] = UNSET
|
|
59
|
+
if not isinstance(self.allowed_s3_keys, Unset):
|
|
60
|
+
allowed_s3_keys = []
|
|
61
|
+
for allowed_s3_keys_item_data in self.allowed_s3_keys:
|
|
62
|
+
allowed_s3_keys_item = allowed_s3_keys_item_data.to_dict()
|
|
63
|
+
|
|
64
|
+
allowed_s3_keys.append(allowed_s3_keys_item)
|
|
65
|
+
|
|
55
66
|
execution_mode: Union[Unset, str] = UNSET
|
|
56
67
|
if not isinstance(self.execution_mode, Unset):
|
|
57
68
|
execution_mode = self.execution_mode.value
|
|
@@ -68,6 +79,8 @@ class UpdateAppJsonBodyPolicy:
|
|
|
68
79
|
field_dict["triggerables_v2"] = triggerables_v2
|
|
69
80
|
if s3_inputs is not UNSET:
|
|
70
81
|
field_dict["s3_inputs"] = s3_inputs
|
|
82
|
+
if allowed_s3_keys is not UNSET:
|
|
83
|
+
field_dict["allowed_s3_keys"] = allowed_s3_keys
|
|
71
84
|
if execution_mode is not UNSET:
|
|
72
85
|
field_dict["execution_mode"] = execution_mode
|
|
73
86
|
if on_behalf_of is not UNSET:
|
|
@@ -79,6 +92,7 @@ class UpdateAppJsonBodyPolicy:
|
|
|
79
92
|
|
|
80
93
|
@classmethod
|
|
81
94
|
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
95
|
+
from ..models.update_app_json_body_policy_allowed_s3_keys_item import UpdateAppJsonBodyPolicyAllowedS3KeysItem
|
|
82
96
|
from ..models.update_app_json_body_policy_s3_inputs_item import UpdateAppJsonBodyPolicyS3InputsItem
|
|
83
97
|
from ..models.update_app_json_body_policy_triggerables import UpdateAppJsonBodyPolicyTriggerables
|
|
84
98
|
from ..models.update_app_json_body_policy_triggerables_v2 import UpdateAppJsonBodyPolicyTriggerablesV2
|
|
@@ -105,6 +119,13 @@ class UpdateAppJsonBodyPolicy:
|
|
|
105
119
|
|
|
106
120
|
s3_inputs.append(s3_inputs_item)
|
|
107
121
|
|
|
122
|
+
allowed_s3_keys = []
|
|
123
|
+
_allowed_s3_keys = d.pop("allowed_s3_keys", UNSET)
|
|
124
|
+
for allowed_s3_keys_item_data in _allowed_s3_keys or []:
|
|
125
|
+
allowed_s3_keys_item = UpdateAppJsonBodyPolicyAllowedS3KeysItem.from_dict(allowed_s3_keys_item_data)
|
|
126
|
+
|
|
127
|
+
allowed_s3_keys.append(allowed_s3_keys_item)
|
|
128
|
+
|
|
108
129
|
_execution_mode = d.pop("execution_mode", UNSET)
|
|
109
130
|
execution_mode: Union[Unset, UpdateAppJsonBodyPolicyExecutionMode]
|
|
110
131
|
if isinstance(_execution_mode, Unset):
|
|
@@ -120,6 +141,7 @@ class UpdateAppJsonBodyPolicy:
|
|
|
120
141
|
triggerables=triggerables,
|
|
121
142
|
triggerables_v2=triggerables_v2,
|
|
122
143
|
s3_inputs=s3_inputs,
|
|
144
|
+
allowed_s3_keys=allowed_s3_keys,
|
|
123
145
|
execution_mode=execution_mode,
|
|
124
146
|
on_behalf_of=on_behalf_of,
|
|
125
147
|
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="UpdateAppJsonBodyPolicyAllowedS3KeysItem")
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
@_attrs_define
|
|
12
|
+
class UpdateAppJsonBodyPolicyAllowedS3KeysItem:
|
|
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
|
+
update_app_json_body_policy_allowed_s3_keys_item = cls(
|
|
45
|
+
s3_path=s3_path,
|
|
46
|
+
resource=resource,
|
|
47
|
+
)
|
|
48
|
+
|
|
49
|
+
update_app_json_body_policy_allowed_s3_keys_item.additional_properties = d
|
|
50
|
+
return update_app_json_body_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
|