You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
5
+
"""
6
+
7
+
from __future__ importannotations
8
+
9
+
fromjsonimportloads
10
+
fromsysimportversion_info
11
+
fromtypingimportAny, Dict, Optional
12
+
13
+
frompydanticimportBaseModel, ConfigDict
14
+
15
+
ifversion_info>= (3, 11):
16
+
fromtypingimportSelf
17
+
else:
18
+
fromtyping_extensionsimportSelf
19
+
20
+
21
+
_ALIASES= {
22
+
"enabled": "enabled",
23
+
}
24
+
25
+
26
+
def_alias_generator(name: str) ->str:
27
+
return_ALIASES.get(name, name)
28
+
29
+
30
+
classEmailNotifications(BaseModel):
31
+
"""
32
+
EmailNotifications
33
+
"""
34
+
35
+
enabled: Optional[bool] =None
36
+
""" Whether to send email notifications, note that this doesn't prevent the task from being blocked. """
Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
5
+
"""
6
+
7
+
from __future__ importannotations
8
+
9
+
fromjsonimportloads
10
+
fromsysimportversion_info
11
+
fromtypingimportAny, Dict, Optional
12
+
13
+
frompydanticimportBaseModel, ConfigDict
14
+
15
+
ifversion_info>= (3, 11):
16
+
fromtypingimportSelf
17
+
else:
18
+
fromtyping_extensionsimportSelf
19
+
20
+
21
+
_ALIASES= {
22
+
"critical_threshold": "criticalThreshold",
23
+
}
24
+
25
+
26
+
def_alias_generator(name: str) ->str:
27
+
return_ALIASES.get(name, name)
28
+
29
+
30
+
classPolicies(BaseModel):
31
+
"""
32
+
Set of rules for a task.
33
+
"""
34
+
35
+
critical_threshold: Optional[int] =None
36
+
""" The number of critical failures in a row before blocking the task and sending a notification. """
0 commit comments