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
|
@@ -0,0 +1,76 @@
|
|
|
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="ExistsEmailLocalPartJsonBody")
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
@_attrs_define
|
|
12
|
+
class ExistsEmailLocalPartJsonBody:
|
|
13
|
+
"""
|
|
14
|
+
Attributes:
|
|
15
|
+
local_part (str):
|
|
16
|
+
workspaced_local_part (Union[Unset, bool]):
|
|
17
|
+
trigger_path (Union[Unset, str]):
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
local_part: str
|
|
21
|
+
workspaced_local_part: Union[Unset, bool] = UNSET
|
|
22
|
+
trigger_path: Union[Unset, str] = UNSET
|
|
23
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
24
|
+
|
|
25
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
26
|
+
local_part = self.local_part
|
|
27
|
+
workspaced_local_part = self.workspaced_local_part
|
|
28
|
+
trigger_path = self.trigger_path
|
|
29
|
+
|
|
30
|
+
field_dict: Dict[str, Any] = {}
|
|
31
|
+
field_dict.update(self.additional_properties)
|
|
32
|
+
field_dict.update(
|
|
33
|
+
{
|
|
34
|
+
"local_part": local_part,
|
|
35
|
+
}
|
|
36
|
+
)
|
|
37
|
+
if workspaced_local_part is not UNSET:
|
|
38
|
+
field_dict["workspaced_local_part"] = workspaced_local_part
|
|
39
|
+
if trigger_path is not UNSET:
|
|
40
|
+
field_dict["trigger_path"] = trigger_path
|
|
41
|
+
|
|
42
|
+
return field_dict
|
|
43
|
+
|
|
44
|
+
@classmethod
|
|
45
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
46
|
+
d = src_dict.copy()
|
|
47
|
+
local_part = d.pop("local_part")
|
|
48
|
+
|
|
49
|
+
workspaced_local_part = d.pop("workspaced_local_part", UNSET)
|
|
50
|
+
|
|
51
|
+
trigger_path = d.pop("trigger_path", UNSET)
|
|
52
|
+
|
|
53
|
+
exists_email_local_part_json_body = cls(
|
|
54
|
+
local_part=local_part,
|
|
55
|
+
workspaced_local_part=workspaced_local_part,
|
|
56
|
+
trigger_path=trigger_path,
|
|
57
|
+
)
|
|
58
|
+
|
|
59
|
+
exists_email_local_part_json_body.additional_properties = d
|
|
60
|
+
return exists_email_local_part_json_body
|
|
61
|
+
|
|
62
|
+
@property
|
|
63
|
+
def additional_keys(self) -> List[str]:
|
|
64
|
+
return list(self.additional_properties.keys())
|
|
65
|
+
|
|
66
|
+
def __getitem__(self, key: str) -> Any:
|
|
67
|
+
return self.additional_properties[key]
|
|
68
|
+
|
|
69
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
70
|
+
self.additional_properties[key] = value
|
|
71
|
+
|
|
72
|
+
def __delitem__(self, key: str) -> None:
|
|
73
|
+
del self.additional_properties[key]
|
|
74
|
+
|
|
75
|
+
def __contains__(self, key: str) -> bool:
|
|
76
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import datetime
|
|
2
|
+
from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
|
|
3
|
+
|
|
4
|
+
from attrs import define as _attrs_define
|
|
5
|
+
from attrs import field as _attrs_field
|
|
6
|
+
from dateutil.parser import isoparse
|
|
7
|
+
|
|
8
|
+
from ..types import UNSET, Unset
|
|
9
|
+
|
|
10
|
+
if TYPE_CHECKING:
|
|
11
|
+
from ..models.get_email_trigger_response_200_error_handler_args import GetEmailTriggerResponse200ErrorHandlerArgs
|
|
12
|
+
from ..models.get_email_trigger_response_200_extra_perms import GetEmailTriggerResponse200ExtraPerms
|
|
13
|
+
from ..models.get_email_trigger_response_200_retry import GetEmailTriggerResponse200Retry
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
T = TypeVar("T", bound="GetEmailTriggerResponse200")
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
@_attrs_define
|
|
20
|
+
class GetEmailTriggerResponse200:
|
|
21
|
+
"""
|
|
22
|
+
Attributes:
|
|
23
|
+
local_part (str):
|
|
24
|
+
path (str):
|
|
25
|
+
script_path (str):
|
|
26
|
+
email (str):
|
|
27
|
+
extra_perms (GetEmailTriggerResponse200ExtraPerms):
|
|
28
|
+
workspace_id (str):
|
|
29
|
+
edited_by (str):
|
|
30
|
+
edited_at (datetime.datetime):
|
|
31
|
+
is_flow (bool):
|
|
32
|
+
workspaced_local_part (Union[Unset, bool]):
|
|
33
|
+
error_handler_path (Union[Unset, str]):
|
|
34
|
+
error_handler_args (Union[Unset, GetEmailTriggerResponse200ErrorHandlerArgs]): The arguments to pass to the
|
|
35
|
+
script or flow
|
|
36
|
+
retry (Union[Unset, GetEmailTriggerResponse200Retry]):
|
|
37
|
+
"""
|
|
38
|
+
|
|
39
|
+
local_part: str
|
|
40
|
+
path: str
|
|
41
|
+
script_path: str
|
|
42
|
+
email: str
|
|
43
|
+
extra_perms: "GetEmailTriggerResponse200ExtraPerms"
|
|
44
|
+
workspace_id: str
|
|
45
|
+
edited_by: str
|
|
46
|
+
edited_at: datetime.datetime
|
|
47
|
+
is_flow: bool
|
|
48
|
+
workspaced_local_part: Union[Unset, bool] = UNSET
|
|
49
|
+
error_handler_path: Union[Unset, str] = UNSET
|
|
50
|
+
error_handler_args: Union[Unset, "GetEmailTriggerResponse200ErrorHandlerArgs"] = UNSET
|
|
51
|
+
retry: Union[Unset, "GetEmailTriggerResponse200Retry"] = UNSET
|
|
52
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
53
|
+
|
|
54
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
55
|
+
local_part = self.local_part
|
|
56
|
+
path = self.path
|
|
57
|
+
script_path = self.script_path
|
|
58
|
+
email = self.email
|
|
59
|
+
extra_perms = self.extra_perms.to_dict()
|
|
60
|
+
|
|
61
|
+
workspace_id = self.workspace_id
|
|
62
|
+
edited_by = self.edited_by
|
|
63
|
+
edited_at = self.edited_at.isoformat()
|
|
64
|
+
|
|
65
|
+
is_flow = self.is_flow
|
|
66
|
+
workspaced_local_part = self.workspaced_local_part
|
|
67
|
+
error_handler_path = self.error_handler_path
|
|
68
|
+
error_handler_args: Union[Unset, Dict[str, Any]] = UNSET
|
|
69
|
+
if not isinstance(self.error_handler_args, Unset):
|
|
70
|
+
error_handler_args = self.error_handler_args.to_dict()
|
|
71
|
+
|
|
72
|
+
retry: Union[Unset, Dict[str, Any]] = UNSET
|
|
73
|
+
if not isinstance(self.retry, Unset):
|
|
74
|
+
retry = self.retry.to_dict()
|
|
75
|
+
|
|
76
|
+
field_dict: Dict[str, Any] = {}
|
|
77
|
+
field_dict.update(self.additional_properties)
|
|
78
|
+
field_dict.update(
|
|
79
|
+
{
|
|
80
|
+
"local_part": local_part,
|
|
81
|
+
"path": path,
|
|
82
|
+
"script_path": script_path,
|
|
83
|
+
"email": email,
|
|
84
|
+
"extra_perms": extra_perms,
|
|
85
|
+
"workspace_id": workspace_id,
|
|
86
|
+
"edited_by": edited_by,
|
|
87
|
+
"edited_at": edited_at,
|
|
88
|
+
"is_flow": is_flow,
|
|
89
|
+
}
|
|
90
|
+
)
|
|
91
|
+
if workspaced_local_part is not UNSET:
|
|
92
|
+
field_dict["workspaced_local_part"] = workspaced_local_part
|
|
93
|
+
if error_handler_path is not UNSET:
|
|
94
|
+
field_dict["error_handler_path"] = error_handler_path
|
|
95
|
+
if error_handler_args is not UNSET:
|
|
96
|
+
field_dict["error_handler_args"] = error_handler_args
|
|
97
|
+
if retry is not UNSET:
|
|
98
|
+
field_dict["retry"] = retry
|
|
99
|
+
|
|
100
|
+
return field_dict
|
|
101
|
+
|
|
102
|
+
@classmethod
|
|
103
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
104
|
+
from ..models.get_email_trigger_response_200_error_handler_args import (
|
|
105
|
+
GetEmailTriggerResponse200ErrorHandlerArgs,
|
|
106
|
+
)
|
|
107
|
+
from ..models.get_email_trigger_response_200_extra_perms import GetEmailTriggerResponse200ExtraPerms
|
|
108
|
+
from ..models.get_email_trigger_response_200_retry import GetEmailTriggerResponse200Retry
|
|
109
|
+
|
|
110
|
+
d = src_dict.copy()
|
|
111
|
+
local_part = d.pop("local_part")
|
|
112
|
+
|
|
113
|
+
path = d.pop("path")
|
|
114
|
+
|
|
115
|
+
script_path = d.pop("script_path")
|
|
116
|
+
|
|
117
|
+
email = d.pop("email")
|
|
118
|
+
|
|
119
|
+
extra_perms = GetEmailTriggerResponse200ExtraPerms.from_dict(d.pop("extra_perms"))
|
|
120
|
+
|
|
121
|
+
workspace_id = d.pop("workspace_id")
|
|
122
|
+
|
|
123
|
+
edited_by = d.pop("edited_by")
|
|
124
|
+
|
|
125
|
+
edited_at = isoparse(d.pop("edited_at"))
|
|
126
|
+
|
|
127
|
+
is_flow = d.pop("is_flow")
|
|
128
|
+
|
|
129
|
+
workspaced_local_part = d.pop("workspaced_local_part", UNSET)
|
|
130
|
+
|
|
131
|
+
error_handler_path = d.pop("error_handler_path", UNSET)
|
|
132
|
+
|
|
133
|
+
_error_handler_args = d.pop("error_handler_args", UNSET)
|
|
134
|
+
error_handler_args: Union[Unset, GetEmailTriggerResponse200ErrorHandlerArgs]
|
|
135
|
+
if isinstance(_error_handler_args, Unset):
|
|
136
|
+
error_handler_args = UNSET
|
|
137
|
+
else:
|
|
138
|
+
error_handler_args = GetEmailTriggerResponse200ErrorHandlerArgs.from_dict(_error_handler_args)
|
|
139
|
+
|
|
140
|
+
_retry = d.pop("retry", UNSET)
|
|
141
|
+
retry: Union[Unset, GetEmailTriggerResponse200Retry]
|
|
142
|
+
if isinstance(_retry, Unset):
|
|
143
|
+
retry = UNSET
|
|
144
|
+
else:
|
|
145
|
+
retry = GetEmailTriggerResponse200Retry.from_dict(_retry)
|
|
146
|
+
|
|
147
|
+
get_email_trigger_response_200 = cls(
|
|
148
|
+
local_part=local_part,
|
|
149
|
+
path=path,
|
|
150
|
+
script_path=script_path,
|
|
151
|
+
email=email,
|
|
152
|
+
extra_perms=extra_perms,
|
|
153
|
+
workspace_id=workspace_id,
|
|
154
|
+
edited_by=edited_by,
|
|
155
|
+
edited_at=edited_at,
|
|
156
|
+
is_flow=is_flow,
|
|
157
|
+
workspaced_local_part=workspaced_local_part,
|
|
158
|
+
error_handler_path=error_handler_path,
|
|
159
|
+
error_handler_args=error_handler_args,
|
|
160
|
+
retry=retry,
|
|
161
|
+
)
|
|
162
|
+
|
|
163
|
+
get_email_trigger_response_200.additional_properties = d
|
|
164
|
+
return get_email_trigger_response_200
|
|
165
|
+
|
|
166
|
+
@property
|
|
167
|
+
def additional_keys(self) -> List[str]:
|
|
168
|
+
return list(self.additional_properties.keys())
|
|
169
|
+
|
|
170
|
+
def __getitem__(self, key: str) -> Any:
|
|
171
|
+
return self.additional_properties[key]
|
|
172
|
+
|
|
173
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
174
|
+
self.additional_properties[key] = value
|
|
175
|
+
|
|
176
|
+
def __delitem__(self, key: str) -> None:
|
|
177
|
+
del self.additional_properties[key]
|
|
178
|
+
|
|
179
|
+
def __contains__(self, key: str) -> bool:
|
|
180
|
+
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="GetEmailTriggerResponse200ErrorHandlerArgs")
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@_attrs_define
|
|
10
|
+
class GetEmailTriggerResponse200ErrorHandlerArgs:
|
|
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
|
+
get_email_trigger_response_200_error_handler_args = cls()
|
|
26
|
+
|
|
27
|
+
get_email_trigger_response_200_error_handler_args.additional_properties = d
|
|
28
|
+
return get_email_trigger_response_200_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,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="GetEmailTriggerResponse200ExtraPerms")
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@_attrs_define
|
|
10
|
+
class GetEmailTriggerResponse200ExtraPerms:
|
|
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_email_trigger_response_200_extra_perms = cls()
|
|
26
|
+
|
|
27
|
+
get_email_trigger_response_200_extra_perms.additional_properties = d
|
|
28
|
+
return get_email_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
|
|
@@ -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.get_email_trigger_response_200_retry_constant import GetEmailTriggerResponse200RetryConstant
|
|
10
|
+
from ..models.get_email_trigger_response_200_retry_exponential import GetEmailTriggerResponse200RetryExponential
|
|
11
|
+
from ..models.get_email_trigger_response_200_retry_retry_if import GetEmailTriggerResponse200RetryRetryIf
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
T = TypeVar("T", bound="GetEmailTriggerResponse200Retry")
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
@_attrs_define
|
|
18
|
+
class GetEmailTriggerResponse200Retry:
|
|
19
|
+
"""
|
|
20
|
+
Attributes:
|
|
21
|
+
constant (Union[Unset, GetEmailTriggerResponse200RetryConstant]):
|
|
22
|
+
exponential (Union[Unset, GetEmailTriggerResponse200RetryExponential]):
|
|
23
|
+
retry_if (Union[Unset, GetEmailTriggerResponse200RetryRetryIf]):
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
constant: Union[Unset, "GetEmailTriggerResponse200RetryConstant"] = UNSET
|
|
27
|
+
exponential: Union[Unset, "GetEmailTriggerResponse200RetryExponential"] = UNSET
|
|
28
|
+
retry_if: Union[Unset, "GetEmailTriggerResponse200RetryRetryIf"] = 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.get_email_trigger_response_200_retry_constant import GetEmailTriggerResponse200RetryConstant
|
|
59
|
+
from ..models.get_email_trigger_response_200_retry_exponential import GetEmailTriggerResponse200RetryExponential
|
|
60
|
+
from ..models.get_email_trigger_response_200_retry_retry_if import GetEmailTriggerResponse200RetryRetryIf
|
|
61
|
+
|
|
62
|
+
d = src_dict.copy()
|
|
63
|
+
_constant = d.pop("constant", UNSET)
|
|
64
|
+
constant: Union[Unset, GetEmailTriggerResponse200RetryConstant]
|
|
65
|
+
if isinstance(_constant, Unset):
|
|
66
|
+
constant = UNSET
|
|
67
|
+
else:
|
|
68
|
+
constant = GetEmailTriggerResponse200RetryConstant.from_dict(_constant)
|
|
69
|
+
|
|
70
|
+
_exponential = d.pop("exponential", UNSET)
|
|
71
|
+
exponential: Union[Unset, GetEmailTriggerResponse200RetryExponential]
|
|
72
|
+
if isinstance(_exponential, Unset):
|
|
73
|
+
exponential = UNSET
|
|
74
|
+
else:
|
|
75
|
+
exponential = GetEmailTriggerResponse200RetryExponential.from_dict(_exponential)
|
|
76
|
+
|
|
77
|
+
_retry_if = d.pop("retry_if", UNSET)
|
|
78
|
+
retry_if: Union[Unset, GetEmailTriggerResponse200RetryRetryIf]
|
|
79
|
+
if isinstance(_retry_if, Unset):
|
|
80
|
+
retry_if = UNSET
|
|
81
|
+
else:
|
|
82
|
+
retry_if = GetEmailTriggerResponse200RetryRetryIf.from_dict(_retry_if)
|
|
83
|
+
|
|
84
|
+
get_email_trigger_response_200_retry = cls(
|
|
85
|
+
constant=constant,
|
|
86
|
+
exponential=exponential,
|
|
87
|
+
retry_if=retry_if,
|
|
88
|
+
)
|
|
89
|
+
|
|
90
|
+
get_email_trigger_response_200_retry.additional_properties = d
|
|
91
|
+
return get_email_trigger_response_200_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="GetEmailTriggerResponse200RetryConstant")
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
@_attrs_define
|
|
12
|
+
class GetEmailTriggerResponse200RetryConstant:
|
|
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
|
+
get_email_trigger_response_200_retry_constant = cls(
|
|
45
|
+
attempts=attempts,
|
|
46
|
+
seconds=seconds,
|
|
47
|
+
)
|
|
48
|
+
|
|
49
|
+
get_email_trigger_response_200_retry_constant.additional_properties = d
|
|
50
|
+
return get_email_trigger_response_200_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="GetEmailTriggerResponse200RetryExponential")
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
@_attrs_define
|
|
12
|
+
class GetEmailTriggerResponse200RetryExponential:
|
|
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
|
+
get_email_trigger_response_200_retry_exponential = cls(
|
|
59
|
+
attempts=attempts,
|
|
60
|
+
multiplier=multiplier,
|
|
61
|
+
seconds=seconds,
|
|
62
|
+
random_factor=random_factor,
|
|
63
|
+
)
|
|
64
|
+
|
|
65
|
+
get_email_trigger_response_200_retry_exponential.additional_properties = d
|
|
66
|
+
return get_email_trigger_response_200_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="GetEmailTriggerResponse200RetryRetryIf")
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@_attrs_define
|
|
10
|
+
class GetEmailTriggerResponse200RetryRetryIf:
|
|
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
|
+
get_email_trigger_response_200_retry_retry_if = cls(
|
|
38
|
+
expr=expr,
|
|
39
|
+
)
|
|
40
|
+
|
|
41
|
+
get_email_trigger_response_200_retry_retry_if.additional_properties = d
|
|
42
|
+
return get_email_trigger_response_200_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
|