windmill-api 1.540.2__py3-none-any.whl → 1.541.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/email_trigger/__init__.py +0 -0
- windmill_api/api/email_trigger/create_email_trigger.py +105 -0
- windmill_api/api/email_trigger/delete_email_trigger.py +101 -0
- windmill_api/api/email_trigger/exists_email_local_part.py +164 -0
- windmill_api/api/email_trigger/exists_email_trigger.py +160 -0
- windmill_api/api/email_trigger/get_email_trigger.py +166 -0
- windmill_api/api/email_trigger/list_email_triggers.py +237 -0
- windmill_api/api/email_trigger/update_email_trigger.py +113 -0
- windmill_api/models/add_granular_acls_kind.py +1 -0
- windmill_api/models/capture_config_trigger_kind.py +1 -0
- windmill_api/models/capture_trigger_kind.py +1 -0
- windmill_api/models/create_email_trigger_json_body.py +139 -0
- windmill_api/models/create_email_trigger_json_body_error_handler_args.py +44 -0
- windmill_api/models/create_email_trigger_json_body_retry.py +107 -0
- windmill_api/models/create_email_trigger_json_body_retry_constant.py +66 -0
- windmill_api/models/create_email_trigger_json_body_retry_exponential.py +82 -0
- windmill_api/models/create_email_trigger_json_body_retry_retry_if.py +58 -0
- windmill_api/models/edit_email_trigger.py +137 -0
- windmill_api/models/edit_email_trigger_error_handler_args.py +44 -0
- windmill_api/models/edit_email_trigger_retry.py +107 -0
- windmill_api/models/edit_email_trigger_retry_constant.py +66 -0
- windmill_api/models/edit_email_trigger_retry_exponential.py +82 -0
- windmill_api/models/edit_email_trigger_retry_retry_if.py +58 -0
- windmill_api/models/email_trigger.py +177 -0
- windmill_api/models/email_trigger_error_handler_args.py +44 -0
- windmill_api/models/email_trigger_extra_perms.py +44 -0
- windmill_api/models/email_trigger_retry.py +107 -0
- windmill_api/models/email_trigger_retry_constant.py +66 -0
- windmill_api/models/email_trigger_retry_exponential.py +82 -0
- windmill_api/models/email_trigger_retry_retry_if.py +58 -0
- windmill_api/models/exists_email_local_part_json_body.py +76 -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_email_trigger_response_200.py +180 -0
- windmill_api/models/get_email_trigger_response_200_error_handler_args.py +44 -0
- windmill_api/models/get_email_trigger_response_200_extra_perms.py +44 -0
- windmill_api/models/get_email_trigger_response_200_retry.py +107 -0
- windmill_api/models/get_email_trigger_response_200_retry_constant.py +66 -0
- windmill_api/models/get_email_trigger_response_200_retry_exponential.py +82 -0
- windmill_api/models/get_email_trigger_response_200_retry_retry_if.py +58 -0
- windmill_api/models/get_granular_acls_kind.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_email_triggers_response_200_item.py +184 -0
- windmill_api/models/list_email_triggers_response_200_item_error_handler_args.py +44 -0
- windmill_api/models/list_email_triggers_response_200_item_extra_perms.py +44 -0
- windmill_api/models/list_email_triggers_response_200_item_retry.py +119 -0
- windmill_api/models/list_email_triggers_response_200_item_retry_constant.py +66 -0
- windmill_api/models/list_email_triggers_response_200_item_retry_exponential.py +82 -0
- windmill_api/models/list_email_triggers_response_200_item_retry_retry_if.py +58 -0
- windmill_api/models/new_email_trigger.py +136 -0
- windmill_api/models/new_email_trigger_error_handler_args.py +44 -0
- windmill_api/models/new_email_trigger_retry.py +107 -0
- windmill_api/models/new_email_trigger_retry_constant.py +66 -0
- windmill_api/models/new_email_trigger_retry_exponential.py +82 -0
- windmill_api/models/new_email_trigger_retry_retry_if.py +58 -0
- windmill_api/models/ping_capture_config_trigger_kind.py +1 -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/triggers_count.py +8 -0
- windmill_api/models/update_email_trigger_json_body.py +140 -0
- windmill_api/models/update_email_trigger_json_body_error_handler_args.py +44 -0
- windmill_api/models/update_email_trigger_json_body_retry.py +107 -0
- windmill_api/models/update_email_trigger_json_body_retry_constant.py +66 -0
- windmill_api/models/update_email_trigger_json_body_retry_exponential.py +82 -0
- windmill_api/models/update_email_trigger_json_body_retry_retry_if.py +58 -0
- {windmill_api-1.540.2.dist-info → windmill_api-1.541.1.dist-info}/METADATA +1 -1
- {windmill_api-1.540.2.dist-info → windmill_api-1.541.1.dist-info}/RECORD +73 -19
- {windmill_api-1.540.2.dist-info → windmill_api-1.541.1.dist-info}/LICENSE +0 -0
- {windmill_api-1.540.2.dist-info → windmill_api-1.541.1.dist-info}/WHEEL +0 -0
|
@@ -21,6 +21,7 @@ class TriggersCount:
|
|
|
21
21
|
http_routes_count (Union[Unset, float]):
|
|
22
22
|
webhook_count (Union[Unset, float]):
|
|
23
23
|
email_count (Union[Unset, float]):
|
|
24
|
+
default_email_count (Union[Unset, float]):
|
|
24
25
|
websocket_count (Union[Unset, float]):
|
|
25
26
|
postgres_count (Union[Unset, float]):
|
|
26
27
|
kafka_count (Union[Unset, float]):
|
|
@@ -35,6 +36,7 @@ class TriggersCount:
|
|
|
35
36
|
http_routes_count: Union[Unset, float] = UNSET
|
|
36
37
|
webhook_count: Union[Unset, float] = UNSET
|
|
37
38
|
email_count: Union[Unset, float] = UNSET
|
|
39
|
+
default_email_count: Union[Unset, float] = UNSET
|
|
38
40
|
websocket_count: Union[Unset, float] = UNSET
|
|
39
41
|
postgres_count: Union[Unset, float] = UNSET
|
|
40
42
|
kafka_count: Union[Unset, float] = UNSET
|
|
@@ -53,6 +55,7 @@ class TriggersCount:
|
|
|
53
55
|
http_routes_count = self.http_routes_count
|
|
54
56
|
webhook_count = self.webhook_count
|
|
55
57
|
email_count = self.email_count
|
|
58
|
+
default_email_count = self.default_email_count
|
|
56
59
|
websocket_count = self.websocket_count
|
|
57
60
|
postgres_count = self.postgres_count
|
|
58
61
|
kafka_count = self.kafka_count
|
|
@@ -74,6 +77,8 @@ class TriggersCount:
|
|
|
74
77
|
field_dict["webhook_count"] = webhook_count
|
|
75
78
|
if email_count is not UNSET:
|
|
76
79
|
field_dict["email_count"] = email_count
|
|
80
|
+
if default_email_count is not UNSET:
|
|
81
|
+
field_dict["default_email_count"] = default_email_count
|
|
77
82
|
if websocket_count is not UNSET:
|
|
78
83
|
field_dict["websocket_count"] = websocket_count
|
|
79
84
|
if postgres_count is not UNSET:
|
|
@@ -111,6 +116,8 @@ class TriggersCount:
|
|
|
111
116
|
|
|
112
117
|
email_count = d.pop("email_count", UNSET)
|
|
113
118
|
|
|
119
|
+
default_email_count = d.pop("default_email_count", UNSET)
|
|
120
|
+
|
|
114
121
|
websocket_count = d.pop("websocket_count", UNSET)
|
|
115
122
|
|
|
116
123
|
postgres_count = d.pop("postgres_count", UNSET)
|
|
@@ -131,6 +138,7 @@ class TriggersCount:
|
|
|
131
138
|
http_routes_count=http_routes_count,
|
|
132
139
|
webhook_count=webhook_count,
|
|
133
140
|
email_count=email_count,
|
|
141
|
+
default_email_count=default_email_count,
|
|
134
142
|
websocket_count=websocket_count,
|
|
135
143
|
postgres_count=postgres_count,
|
|
136
144
|
kafka_count=kafka_count,
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
from typing import TYPE_CHECKING, 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
|
+
if TYPE_CHECKING:
|
|
9
|
+
from ..models.update_email_trigger_json_body_error_handler_args import UpdateEmailTriggerJsonBodyErrorHandlerArgs
|
|
10
|
+
from ..models.update_email_trigger_json_body_retry import UpdateEmailTriggerJsonBodyRetry
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
T = TypeVar("T", bound="UpdateEmailTriggerJsonBody")
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
@_attrs_define
|
|
17
|
+
class UpdateEmailTriggerJsonBody:
|
|
18
|
+
"""
|
|
19
|
+
Attributes:
|
|
20
|
+
path (str):
|
|
21
|
+
script_path (str):
|
|
22
|
+
is_flow (bool):
|
|
23
|
+
local_part (Union[Unset, str]):
|
|
24
|
+
workspaced_local_part (Union[Unset, bool]):
|
|
25
|
+
error_handler_path (Union[Unset, str]):
|
|
26
|
+
error_handler_args (Union[Unset, UpdateEmailTriggerJsonBodyErrorHandlerArgs]): The arguments to pass to the
|
|
27
|
+
script or flow
|
|
28
|
+
retry (Union[Unset, UpdateEmailTriggerJsonBodyRetry]):
|
|
29
|
+
"""
|
|
30
|
+
|
|
31
|
+
path: str
|
|
32
|
+
script_path: str
|
|
33
|
+
is_flow: bool
|
|
34
|
+
local_part: Union[Unset, str] = UNSET
|
|
35
|
+
workspaced_local_part: Union[Unset, bool] = UNSET
|
|
36
|
+
error_handler_path: Union[Unset, str] = UNSET
|
|
37
|
+
error_handler_args: Union[Unset, "UpdateEmailTriggerJsonBodyErrorHandlerArgs"] = UNSET
|
|
38
|
+
retry: Union[Unset, "UpdateEmailTriggerJsonBodyRetry"] = UNSET
|
|
39
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
40
|
+
|
|
41
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
42
|
+
path = self.path
|
|
43
|
+
script_path = self.script_path
|
|
44
|
+
is_flow = self.is_flow
|
|
45
|
+
local_part = self.local_part
|
|
46
|
+
workspaced_local_part = self.workspaced_local_part
|
|
47
|
+
error_handler_path = self.error_handler_path
|
|
48
|
+
error_handler_args: Union[Unset, Dict[str, Any]] = UNSET
|
|
49
|
+
if not isinstance(self.error_handler_args, Unset):
|
|
50
|
+
error_handler_args = self.error_handler_args.to_dict()
|
|
51
|
+
|
|
52
|
+
retry: Union[Unset, Dict[str, Any]] = UNSET
|
|
53
|
+
if not isinstance(self.retry, Unset):
|
|
54
|
+
retry = self.retry.to_dict()
|
|
55
|
+
|
|
56
|
+
field_dict: Dict[str, Any] = {}
|
|
57
|
+
field_dict.update(self.additional_properties)
|
|
58
|
+
field_dict.update(
|
|
59
|
+
{
|
|
60
|
+
"path": path,
|
|
61
|
+
"script_path": script_path,
|
|
62
|
+
"is_flow": is_flow,
|
|
63
|
+
}
|
|
64
|
+
)
|
|
65
|
+
if local_part is not UNSET:
|
|
66
|
+
field_dict["local_part"] = local_part
|
|
67
|
+
if workspaced_local_part is not UNSET:
|
|
68
|
+
field_dict["workspaced_local_part"] = workspaced_local_part
|
|
69
|
+
if error_handler_path is not UNSET:
|
|
70
|
+
field_dict["error_handler_path"] = error_handler_path
|
|
71
|
+
if error_handler_args is not UNSET:
|
|
72
|
+
field_dict["error_handler_args"] = error_handler_args
|
|
73
|
+
if retry is not UNSET:
|
|
74
|
+
field_dict["retry"] = retry
|
|
75
|
+
|
|
76
|
+
return field_dict
|
|
77
|
+
|
|
78
|
+
@classmethod
|
|
79
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
80
|
+
from ..models.update_email_trigger_json_body_error_handler_args import (
|
|
81
|
+
UpdateEmailTriggerJsonBodyErrorHandlerArgs,
|
|
82
|
+
)
|
|
83
|
+
from ..models.update_email_trigger_json_body_retry import UpdateEmailTriggerJsonBodyRetry
|
|
84
|
+
|
|
85
|
+
d = src_dict.copy()
|
|
86
|
+
path = d.pop("path")
|
|
87
|
+
|
|
88
|
+
script_path = d.pop("script_path")
|
|
89
|
+
|
|
90
|
+
is_flow = d.pop("is_flow")
|
|
91
|
+
|
|
92
|
+
local_part = d.pop("local_part", UNSET)
|
|
93
|
+
|
|
94
|
+
workspaced_local_part = d.pop("workspaced_local_part", UNSET)
|
|
95
|
+
|
|
96
|
+
error_handler_path = d.pop("error_handler_path", UNSET)
|
|
97
|
+
|
|
98
|
+
_error_handler_args = d.pop("error_handler_args", UNSET)
|
|
99
|
+
error_handler_args: Union[Unset, UpdateEmailTriggerJsonBodyErrorHandlerArgs]
|
|
100
|
+
if isinstance(_error_handler_args, Unset):
|
|
101
|
+
error_handler_args = UNSET
|
|
102
|
+
else:
|
|
103
|
+
error_handler_args = UpdateEmailTriggerJsonBodyErrorHandlerArgs.from_dict(_error_handler_args)
|
|
104
|
+
|
|
105
|
+
_retry = d.pop("retry", UNSET)
|
|
106
|
+
retry: Union[Unset, UpdateEmailTriggerJsonBodyRetry]
|
|
107
|
+
if isinstance(_retry, Unset):
|
|
108
|
+
retry = UNSET
|
|
109
|
+
else:
|
|
110
|
+
retry = UpdateEmailTriggerJsonBodyRetry.from_dict(_retry)
|
|
111
|
+
|
|
112
|
+
update_email_trigger_json_body = cls(
|
|
113
|
+
path=path,
|
|
114
|
+
script_path=script_path,
|
|
115
|
+
is_flow=is_flow,
|
|
116
|
+
local_part=local_part,
|
|
117
|
+
workspaced_local_part=workspaced_local_part,
|
|
118
|
+
error_handler_path=error_handler_path,
|
|
119
|
+
error_handler_args=error_handler_args,
|
|
120
|
+
retry=retry,
|
|
121
|
+
)
|
|
122
|
+
|
|
123
|
+
update_email_trigger_json_body.additional_properties = d
|
|
124
|
+
return update_email_trigger_json_body
|
|
125
|
+
|
|
126
|
+
@property
|
|
127
|
+
def additional_keys(self) -> List[str]:
|
|
128
|
+
return list(self.additional_properties.keys())
|
|
129
|
+
|
|
130
|
+
def __getitem__(self, key: str) -> Any:
|
|
131
|
+
return self.additional_properties[key]
|
|
132
|
+
|
|
133
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
134
|
+
self.additional_properties[key] = value
|
|
135
|
+
|
|
136
|
+
def __delitem__(self, key: str) -> None:
|
|
137
|
+
del self.additional_properties[key]
|
|
138
|
+
|
|
139
|
+
def __contains__(self, key: str) -> bool:
|
|
140
|
+
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="UpdateEmailTriggerJsonBodyErrorHandlerArgs")
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@_attrs_define
|
|
10
|
+
class UpdateEmailTriggerJsonBodyErrorHandlerArgs:
|
|
11
|
+
"""The arguments to pass to the script or flow"""
|
|
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
|
+
update_email_trigger_json_body_error_handler_args = cls()
|
|
26
|
+
|
|
27
|
+
update_email_trigger_json_body_error_handler_args.additional_properties = d
|
|
28
|
+
return update_email_trigger_json_body_error_handler_args
|
|
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
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
from typing import TYPE_CHECKING, 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
|
+
if TYPE_CHECKING:
|
|
9
|
+
from ..models.update_email_trigger_json_body_retry_constant import UpdateEmailTriggerJsonBodyRetryConstant
|
|
10
|
+
from ..models.update_email_trigger_json_body_retry_exponential import UpdateEmailTriggerJsonBodyRetryExponential
|
|
11
|
+
from ..models.update_email_trigger_json_body_retry_retry_if import UpdateEmailTriggerJsonBodyRetryRetryIf
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
T = TypeVar("T", bound="UpdateEmailTriggerJsonBodyRetry")
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
@_attrs_define
|
|
18
|
+
class UpdateEmailTriggerJsonBodyRetry:
|
|
19
|
+
"""
|
|
20
|
+
Attributes:
|
|
21
|
+
constant (Union[Unset, UpdateEmailTriggerJsonBodyRetryConstant]):
|
|
22
|
+
exponential (Union[Unset, UpdateEmailTriggerJsonBodyRetryExponential]):
|
|
23
|
+
retry_if (Union[Unset, UpdateEmailTriggerJsonBodyRetryRetryIf]):
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
constant: Union[Unset, "UpdateEmailTriggerJsonBodyRetryConstant"] = UNSET
|
|
27
|
+
exponential: Union[Unset, "UpdateEmailTriggerJsonBodyRetryExponential"] = UNSET
|
|
28
|
+
retry_if: Union[Unset, "UpdateEmailTriggerJsonBodyRetryRetryIf"] = UNSET
|
|
29
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
30
|
+
|
|
31
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
32
|
+
constant: Union[Unset, Dict[str, Any]] = UNSET
|
|
33
|
+
if not isinstance(self.constant, Unset):
|
|
34
|
+
constant = self.constant.to_dict()
|
|
35
|
+
|
|
36
|
+
exponential: Union[Unset, Dict[str, Any]] = UNSET
|
|
37
|
+
if not isinstance(self.exponential, Unset):
|
|
38
|
+
exponential = self.exponential.to_dict()
|
|
39
|
+
|
|
40
|
+
retry_if: Union[Unset, Dict[str, Any]] = UNSET
|
|
41
|
+
if not isinstance(self.retry_if, Unset):
|
|
42
|
+
retry_if = self.retry_if.to_dict()
|
|
43
|
+
|
|
44
|
+
field_dict: Dict[str, Any] = {}
|
|
45
|
+
field_dict.update(self.additional_properties)
|
|
46
|
+
field_dict.update({})
|
|
47
|
+
if constant is not UNSET:
|
|
48
|
+
field_dict["constant"] = constant
|
|
49
|
+
if exponential is not UNSET:
|
|
50
|
+
field_dict["exponential"] = exponential
|
|
51
|
+
if retry_if is not UNSET:
|
|
52
|
+
field_dict["retry_if"] = retry_if
|
|
53
|
+
|
|
54
|
+
return field_dict
|
|
55
|
+
|
|
56
|
+
@classmethod
|
|
57
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
58
|
+
from ..models.update_email_trigger_json_body_retry_constant import UpdateEmailTriggerJsonBodyRetryConstant
|
|
59
|
+
from ..models.update_email_trigger_json_body_retry_exponential import UpdateEmailTriggerJsonBodyRetryExponential
|
|
60
|
+
from ..models.update_email_trigger_json_body_retry_retry_if import UpdateEmailTriggerJsonBodyRetryRetryIf
|
|
61
|
+
|
|
62
|
+
d = src_dict.copy()
|
|
63
|
+
_constant = d.pop("constant", UNSET)
|
|
64
|
+
constant: Union[Unset, UpdateEmailTriggerJsonBodyRetryConstant]
|
|
65
|
+
if isinstance(_constant, Unset):
|
|
66
|
+
constant = UNSET
|
|
67
|
+
else:
|
|
68
|
+
constant = UpdateEmailTriggerJsonBodyRetryConstant.from_dict(_constant)
|
|
69
|
+
|
|
70
|
+
_exponential = d.pop("exponential", UNSET)
|
|
71
|
+
exponential: Union[Unset, UpdateEmailTriggerJsonBodyRetryExponential]
|
|
72
|
+
if isinstance(_exponential, Unset):
|
|
73
|
+
exponential = UNSET
|
|
74
|
+
else:
|
|
75
|
+
exponential = UpdateEmailTriggerJsonBodyRetryExponential.from_dict(_exponential)
|
|
76
|
+
|
|
77
|
+
_retry_if = d.pop("retry_if", UNSET)
|
|
78
|
+
retry_if: Union[Unset, UpdateEmailTriggerJsonBodyRetryRetryIf]
|
|
79
|
+
if isinstance(_retry_if, Unset):
|
|
80
|
+
retry_if = UNSET
|
|
81
|
+
else:
|
|
82
|
+
retry_if = UpdateEmailTriggerJsonBodyRetryRetryIf.from_dict(_retry_if)
|
|
83
|
+
|
|
84
|
+
update_email_trigger_json_body_retry = cls(
|
|
85
|
+
constant=constant,
|
|
86
|
+
exponential=exponential,
|
|
87
|
+
retry_if=retry_if,
|
|
88
|
+
)
|
|
89
|
+
|
|
90
|
+
update_email_trigger_json_body_retry.additional_properties = d
|
|
91
|
+
return update_email_trigger_json_body_retry
|
|
92
|
+
|
|
93
|
+
@property
|
|
94
|
+
def additional_keys(self) -> List[str]:
|
|
95
|
+
return list(self.additional_properties.keys())
|
|
96
|
+
|
|
97
|
+
def __getitem__(self, key: str) -> Any:
|
|
98
|
+
return self.additional_properties[key]
|
|
99
|
+
|
|
100
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
101
|
+
self.additional_properties[key] = value
|
|
102
|
+
|
|
103
|
+
def __delitem__(self, key: str) -> None:
|
|
104
|
+
del self.additional_properties[key]
|
|
105
|
+
|
|
106
|
+
def __contains__(self, key: str) -> bool:
|
|
107
|
+
return key in self.additional_properties
|
|
@@ -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="UpdateEmailTriggerJsonBodyRetryConstant")
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
@_attrs_define
|
|
12
|
+
class UpdateEmailTriggerJsonBodyRetryConstant:
|
|
13
|
+
"""
|
|
14
|
+
Attributes:
|
|
15
|
+
attempts (Union[Unset, int]):
|
|
16
|
+
seconds (Union[Unset, int]):
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
attempts: Union[Unset, int] = UNSET
|
|
20
|
+
seconds: Union[Unset, int] = UNSET
|
|
21
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
22
|
+
|
|
23
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
24
|
+
attempts = self.attempts
|
|
25
|
+
seconds = self.seconds
|
|
26
|
+
|
|
27
|
+
field_dict: Dict[str, Any] = {}
|
|
28
|
+
field_dict.update(self.additional_properties)
|
|
29
|
+
field_dict.update({})
|
|
30
|
+
if attempts is not UNSET:
|
|
31
|
+
field_dict["attempts"] = attempts
|
|
32
|
+
if seconds is not UNSET:
|
|
33
|
+
field_dict["seconds"] = seconds
|
|
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
|
+
attempts = d.pop("attempts", UNSET)
|
|
41
|
+
|
|
42
|
+
seconds = d.pop("seconds", UNSET)
|
|
43
|
+
|
|
44
|
+
update_email_trigger_json_body_retry_constant = cls(
|
|
45
|
+
attempts=attempts,
|
|
46
|
+
seconds=seconds,
|
|
47
|
+
)
|
|
48
|
+
|
|
49
|
+
update_email_trigger_json_body_retry_constant.additional_properties = d
|
|
50
|
+
return update_email_trigger_json_body_retry_constant
|
|
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,82 @@
|
|
|
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="UpdateEmailTriggerJsonBodyRetryExponential")
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
@_attrs_define
|
|
12
|
+
class UpdateEmailTriggerJsonBodyRetryExponential:
|
|
13
|
+
"""
|
|
14
|
+
Attributes:
|
|
15
|
+
attempts (Union[Unset, int]):
|
|
16
|
+
multiplier (Union[Unset, int]):
|
|
17
|
+
seconds (Union[Unset, int]):
|
|
18
|
+
random_factor (Union[Unset, int]):
|
|
19
|
+
"""
|
|
20
|
+
|
|
21
|
+
attempts: Union[Unset, int] = UNSET
|
|
22
|
+
multiplier: Union[Unset, int] = UNSET
|
|
23
|
+
seconds: Union[Unset, int] = UNSET
|
|
24
|
+
random_factor: Union[Unset, int] = UNSET
|
|
25
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
26
|
+
|
|
27
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
28
|
+
attempts = self.attempts
|
|
29
|
+
multiplier = self.multiplier
|
|
30
|
+
seconds = self.seconds
|
|
31
|
+
random_factor = self.random_factor
|
|
32
|
+
|
|
33
|
+
field_dict: Dict[str, Any] = {}
|
|
34
|
+
field_dict.update(self.additional_properties)
|
|
35
|
+
field_dict.update({})
|
|
36
|
+
if attempts is not UNSET:
|
|
37
|
+
field_dict["attempts"] = attempts
|
|
38
|
+
if multiplier is not UNSET:
|
|
39
|
+
field_dict["multiplier"] = multiplier
|
|
40
|
+
if seconds is not UNSET:
|
|
41
|
+
field_dict["seconds"] = seconds
|
|
42
|
+
if random_factor is not UNSET:
|
|
43
|
+
field_dict["random_factor"] = random_factor
|
|
44
|
+
|
|
45
|
+
return field_dict
|
|
46
|
+
|
|
47
|
+
@classmethod
|
|
48
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
49
|
+
d = src_dict.copy()
|
|
50
|
+
attempts = d.pop("attempts", UNSET)
|
|
51
|
+
|
|
52
|
+
multiplier = d.pop("multiplier", UNSET)
|
|
53
|
+
|
|
54
|
+
seconds = d.pop("seconds", UNSET)
|
|
55
|
+
|
|
56
|
+
random_factor = d.pop("random_factor", UNSET)
|
|
57
|
+
|
|
58
|
+
update_email_trigger_json_body_retry_exponential = cls(
|
|
59
|
+
attempts=attempts,
|
|
60
|
+
multiplier=multiplier,
|
|
61
|
+
seconds=seconds,
|
|
62
|
+
random_factor=random_factor,
|
|
63
|
+
)
|
|
64
|
+
|
|
65
|
+
update_email_trigger_json_body_retry_exponential.additional_properties = d
|
|
66
|
+
return update_email_trigger_json_body_retry_exponential
|
|
67
|
+
|
|
68
|
+
@property
|
|
69
|
+
def additional_keys(self) -> List[str]:
|
|
70
|
+
return list(self.additional_properties.keys())
|
|
71
|
+
|
|
72
|
+
def __getitem__(self, key: str) -> Any:
|
|
73
|
+
return self.additional_properties[key]
|
|
74
|
+
|
|
75
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
76
|
+
self.additional_properties[key] = value
|
|
77
|
+
|
|
78
|
+
def __delitem__(self, key: str) -> None:
|
|
79
|
+
del self.additional_properties[key]
|
|
80
|
+
|
|
81
|
+
def __contains__(self, key: str) -> bool:
|
|
82
|
+
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="UpdateEmailTriggerJsonBodyRetryRetryIf")
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@_attrs_define
|
|
10
|
+
class UpdateEmailTriggerJsonBodyRetryRetryIf:
|
|
11
|
+
"""
|
|
12
|
+
Attributes:
|
|
13
|
+
expr (str):
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
expr: str
|
|
17
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
18
|
+
|
|
19
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
20
|
+
expr = self.expr
|
|
21
|
+
|
|
22
|
+
field_dict: Dict[str, Any] = {}
|
|
23
|
+
field_dict.update(self.additional_properties)
|
|
24
|
+
field_dict.update(
|
|
25
|
+
{
|
|
26
|
+
"expr": expr,
|
|
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
|
+
expr = d.pop("expr")
|
|
36
|
+
|
|
37
|
+
update_email_trigger_json_body_retry_retry_if = cls(
|
|
38
|
+
expr=expr,
|
|
39
|
+
)
|
|
40
|
+
|
|
41
|
+
update_email_trigger_json_body_retry_retry_if.additional_properties = d
|
|
42
|
+
return update_email_trigger_json_body_retry_retry_if
|
|
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
|