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

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