windmill-api 1.434.1__py3-none-any.whl → 1.435.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/app/custom_path_exists.py +160 -0
- windmill_api/api/app/get_public_app_by_custom_path.py +152 -0
- windmill_api/api/setting/get_critical_alerts.py +13 -18
- windmill_api/api/setting/workspace_get_critical_alerts.py +13 -18
- windmill_api/models/app_with_last_version_w_draft.py +8 -0
- windmill_api/models/create_app_json_body.py +8 -0
- windmill_api/models/get_app_by_path_with_draft_response_200.py +8 -0
- windmill_api/models/get_critical_alerts_response_200.py +92 -0
- windmill_api/models/{get_critical_alerts_response_200_item.py → get_critical_alerts_response_200_alerts_item.py} +5 -5
- windmill_api/models/get_public_app_by_custom_path_response_200.py +153 -0
- windmill_api/models/get_public_app_by_custom_path_response_200_execution_mode.py +10 -0
- windmill_api/models/get_public_app_by_custom_path_response_200_extra_perms.py +44 -0
- windmill_api/models/get_public_app_by_custom_path_response_200_policy.py +159 -0
- windmill_api/models/get_public_app_by_custom_path_response_200_policy_execution_mode.py +10 -0
- windmill_api/models/get_public_app_by_custom_path_response_200_policy_s3_inputs_item.py +44 -0
- windmill_api/models/get_public_app_by_custom_path_response_200_policy_triggerables.py +70 -0
- windmill_api/models/get_public_app_by_custom_path_response_200_policy_triggerables_additional_property.py +44 -0
- windmill_api/models/get_public_app_by_custom_path_response_200_policy_triggerables_v2.py +70 -0
- windmill_api/models/get_public_app_by_custom_path_response_200_policy_triggerables_v2_additional_property.py +44 -0
- windmill_api/models/get_public_app_by_custom_path_response_200_value.py +44 -0
- windmill_api/models/update_app_json_body.py +8 -0
- windmill_api/models/workspace_get_critical_alerts_response_200.py +96 -0
- windmill_api/models/{workspace_get_critical_alerts_response_200_item.py → workspace_get_critical_alerts_response_200_alerts_item.py} +5 -5
- {windmill_api-1.434.1.dist-info → windmill_api-1.435.0.dist-info}/METADATA +1 -1
- {windmill_api-1.434.1.dist-info → windmill_api-1.435.0.dist-info}/RECORD +27 -12
- {windmill_api-1.434.1.dist-info → windmill_api-1.435.0.dist-info}/LICENSE +0 -0
- {windmill_api-1.434.1.dist-info → windmill_api-1.435.0.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,92 @@
|
|
|
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_critical_alerts_response_200_alerts_item import GetCriticalAlertsResponse200AlertsItem
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
T = TypeVar("T", bound="GetCriticalAlertsResponse200")
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
@_attrs_define
|
|
16
|
+
class GetCriticalAlertsResponse200:
|
|
17
|
+
"""
|
|
18
|
+
Attributes:
|
|
19
|
+
alerts (Union[Unset, List['GetCriticalAlertsResponse200AlertsItem']]):
|
|
20
|
+
total_rows (Union[Unset, int]): Total number of rows matching the query. Example: 100.
|
|
21
|
+
total_pages (Union[Unset, int]): Total number of pages based on the page size. Example: 10.
|
|
22
|
+
"""
|
|
23
|
+
|
|
24
|
+
alerts: Union[Unset, List["GetCriticalAlertsResponse200AlertsItem"]] = UNSET
|
|
25
|
+
total_rows: Union[Unset, int] = UNSET
|
|
26
|
+
total_pages: Union[Unset, int] = UNSET
|
|
27
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
28
|
+
|
|
29
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
30
|
+
alerts: Union[Unset, List[Dict[str, Any]]] = UNSET
|
|
31
|
+
if not isinstance(self.alerts, Unset):
|
|
32
|
+
alerts = []
|
|
33
|
+
for alerts_item_data in self.alerts:
|
|
34
|
+
alerts_item = alerts_item_data.to_dict()
|
|
35
|
+
|
|
36
|
+
alerts.append(alerts_item)
|
|
37
|
+
|
|
38
|
+
total_rows = self.total_rows
|
|
39
|
+
total_pages = self.total_pages
|
|
40
|
+
|
|
41
|
+
field_dict: Dict[str, Any] = {}
|
|
42
|
+
field_dict.update(self.additional_properties)
|
|
43
|
+
field_dict.update({})
|
|
44
|
+
if alerts is not UNSET:
|
|
45
|
+
field_dict["alerts"] = alerts
|
|
46
|
+
if total_rows is not UNSET:
|
|
47
|
+
field_dict["total_rows"] = total_rows
|
|
48
|
+
if total_pages is not UNSET:
|
|
49
|
+
field_dict["total_pages"] = total_pages
|
|
50
|
+
|
|
51
|
+
return field_dict
|
|
52
|
+
|
|
53
|
+
@classmethod
|
|
54
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
55
|
+
from ..models.get_critical_alerts_response_200_alerts_item import GetCriticalAlertsResponse200AlertsItem
|
|
56
|
+
|
|
57
|
+
d = src_dict.copy()
|
|
58
|
+
alerts = []
|
|
59
|
+
_alerts = d.pop("alerts", UNSET)
|
|
60
|
+
for alerts_item_data in _alerts or []:
|
|
61
|
+
alerts_item = GetCriticalAlertsResponse200AlertsItem.from_dict(alerts_item_data)
|
|
62
|
+
|
|
63
|
+
alerts.append(alerts_item)
|
|
64
|
+
|
|
65
|
+
total_rows = d.pop("total_rows", UNSET)
|
|
66
|
+
|
|
67
|
+
total_pages = d.pop("total_pages", UNSET)
|
|
68
|
+
|
|
69
|
+
get_critical_alerts_response_200 = cls(
|
|
70
|
+
alerts=alerts,
|
|
71
|
+
total_rows=total_rows,
|
|
72
|
+
total_pages=total_pages,
|
|
73
|
+
)
|
|
74
|
+
|
|
75
|
+
get_critical_alerts_response_200.additional_properties = d
|
|
76
|
+
return get_critical_alerts_response_200
|
|
77
|
+
|
|
78
|
+
@property
|
|
79
|
+
def additional_keys(self) -> List[str]:
|
|
80
|
+
return list(self.additional_properties.keys())
|
|
81
|
+
|
|
82
|
+
def __getitem__(self, key: str) -> Any:
|
|
83
|
+
return self.additional_properties[key]
|
|
84
|
+
|
|
85
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
86
|
+
self.additional_properties[key] = value
|
|
87
|
+
|
|
88
|
+
def __delitem__(self, key: str) -> None:
|
|
89
|
+
del self.additional_properties[key]
|
|
90
|
+
|
|
91
|
+
def __contains__(self, key: str) -> bool:
|
|
92
|
+
return key in self.additional_properties
|
|
@@ -7,11 +7,11 @@ from dateutil.parser import isoparse
|
|
|
7
7
|
|
|
8
8
|
from ..types import UNSET, Unset
|
|
9
9
|
|
|
10
|
-
T = TypeVar("T", bound="
|
|
10
|
+
T = TypeVar("T", bound="GetCriticalAlertsResponse200AlertsItem")
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
@_attrs_define
|
|
14
|
-
class
|
|
14
|
+
class GetCriticalAlertsResponse200AlertsItem:
|
|
15
15
|
"""
|
|
16
16
|
Attributes:
|
|
17
17
|
id (Union[Unset, int]): Unique identifier for the alert
|
|
@@ -80,7 +80,7 @@ class GetCriticalAlertsResponse200Item:
|
|
|
80
80
|
|
|
81
81
|
workspace_id = d.pop("workspace_id", UNSET)
|
|
82
82
|
|
|
83
|
-
|
|
83
|
+
get_critical_alerts_response_200_alerts_item = cls(
|
|
84
84
|
id=id,
|
|
85
85
|
alert_type=alert_type,
|
|
86
86
|
message=message,
|
|
@@ -89,8 +89,8 @@ class GetCriticalAlertsResponse200Item:
|
|
|
89
89
|
workspace_id=workspace_id,
|
|
90
90
|
)
|
|
91
91
|
|
|
92
|
-
|
|
93
|
-
return
|
|
92
|
+
get_critical_alerts_response_200_alerts_item.additional_properties = d
|
|
93
|
+
return get_critical_alerts_response_200_alerts_item
|
|
94
94
|
|
|
95
95
|
@property
|
|
96
96
|
def additional_keys(self) -> List[str]:
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import datetime
|
|
2
|
+
from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, cast
|
|
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 ..models.get_public_app_by_custom_path_response_200_execution_mode import (
|
|
9
|
+
GetPublicAppByCustomPathResponse200ExecutionMode,
|
|
10
|
+
)
|
|
11
|
+
|
|
12
|
+
if TYPE_CHECKING:
|
|
13
|
+
from ..models.get_public_app_by_custom_path_response_200_extra_perms import (
|
|
14
|
+
GetPublicAppByCustomPathResponse200ExtraPerms,
|
|
15
|
+
)
|
|
16
|
+
from ..models.get_public_app_by_custom_path_response_200_policy import GetPublicAppByCustomPathResponse200Policy
|
|
17
|
+
from ..models.get_public_app_by_custom_path_response_200_value import GetPublicAppByCustomPathResponse200Value
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
T = TypeVar("T", bound="GetPublicAppByCustomPathResponse200")
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
@_attrs_define
|
|
24
|
+
class GetPublicAppByCustomPathResponse200:
|
|
25
|
+
"""
|
|
26
|
+
Attributes:
|
|
27
|
+
id (int):
|
|
28
|
+
workspace_id (str):
|
|
29
|
+
path (str):
|
|
30
|
+
summary (str):
|
|
31
|
+
versions (List[int]):
|
|
32
|
+
created_by (str):
|
|
33
|
+
created_at (datetime.datetime):
|
|
34
|
+
value (GetPublicAppByCustomPathResponse200Value):
|
|
35
|
+
policy (GetPublicAppByCustomPathResponse200Policy):
|
|
36
|
+
execution_mode (GetPublicAppByCustomPathResponse200ExecutionMode):
|
|
37
|
+
extra_perms (GetPublicAppByCustomPathResponse200ExtraPerms):
|
|
38
|
+
"""
|
|
39
|
+
|
|
40
|
+
id: int
|
|
41
|
+
workspace_id: str
|
|
42
|
+
path: str
|
|
43
|
+
summary: str
|
|
44
|
+
versions: List[int]
|
|
45
|
+
created_by: str
|
|
46
|
+
created_at: datetime.datetime
|
|
47
|
+
value: "GetPublicAppByCustomPathResponse200Value"
|
|
48
|
+
policy: "GetPublicAppByCustomPathResponse200Policy"
|
|
49
|
+
execution_mode: GetPublicAppByCustomPathResponse200ExecutionMode
|
|
50
|
+
extra_perms: "GetPublicAppByCustomPathResponse200ExtraPerms"
|
|
51
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
52
|
+
|
|
53
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
54
|
+
id = self.id
|
|
55
|
+
workspace_id = self.workspace_id
|
|
56
|
+
path = self.path
|
|
57
|
+
summary = self.summary
|
|
58
|
+
versions = self.versions
|
|
59
|
+
|
|
60
|
+
created_by = self.created_by
|
|
61
|
+
created_at = self.created_at.isoformat()
|
|
62
|
+
|
|
63
|
+
value = self.value.to_dict()
|
|
64
|
+
|
|
65
|
+
policy = self.policy.to_dict()
|
|
66
|
+
|
|
67
|
+
execution_mode = self.execution_mode.value
|
|
68
|
+
|
|
69
|
+
extra_perms = self.extra_perms.to_dict()
|
|
70
|
+
|
|
71
|
+
field_dict: Dict[str, Any] = {}
|
|
72
|
+
field_dict.update(self.additional_properties)
|
|
73
|
+
field_dict.update(
|
|
74
|
+
{
|
|
75
|
+
"id": id,
|
|
76
|
+
"workspace_id": workspace_id,
|
|
77
|
+
"path": path,
|
|
78
|
+
"summary": summary,
|
|
79
|
+
"versions": versions,
|
|
80
|
+
"created_by": created_by,
|
|
81
|
+
"created_at": created_at,
|
|
82
|
+
"value": value,
|
|
83
|
+
"policy": policy,
|
|
84
|
+
"execution_mode": execution_mode,
|
|
85
|
+
"extra_perms": extra_perms,
|
|
86
|
+
}
|
|
87
|
+
)
|
|
88
|
+
|
|
89
|
+
return field_dict
|
|
90
|
+
|
|
91
|
+
@classmethod
|
|
92
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
93
|
+
from ..models.get_public_app_by_custom_path_response_200_extra_perms import (
|
|
94
|
+
GetPublicAppByCustomPathResponse200ExtraPerms,
|
|
95
|
+
)
|
|
96
|
+
from ..models.get_public_app_by_custom_path_response_200_policy import GetPublicAppByCustomPathResponse200Policy
|
|
97
|
+
from ..models.get_public_app_by_custom_path_response_200_value import GetPublicAppByCustomPathResponse200Value
|
|
98
|
+
|
|
99
|
+
d = src_dict.copy()
|
|
100
|
+
id = d.pop("id")
|
|
101
|
+
|
|
102
|
+
workspace_id = d.pop("workspace_id")
|
|
103
|
+
|
|
104
|
+
path = d.pop("path")
|
|
105
|
+
|
|
106
|
+
summary = d.pop("summary")
|
|
107
|
+
|
|
108
|
+
versions = cast(List[int], d.pop("versions"))
|
|
109
|
+
|
|
110
|
+
created_by = d.pop("created_by")
|
|
111
|
+
|
|
112
|
+
created_at = isoparse(d.pop("created_at"))
|
|
113
|
+
|
|
114
|
+
value = GetPublicAppByCustomPathResponse200Value.from_dict(d.pop("value"))
|
|
115
|
+
|
|
116
|
+
policy = GetPublicAppByCustomPathResponse200Policy.from_dict(d.pop("policy"))
|
|
117
|
+
|
|
118
|
+
execution_mode = GetPublicAppByCustomPathResponse200ExecutionMode(d.pop("execution_mode"))
|
|
119
|
+
|
|
120
|
+
extra_perms = GetPublicAppByCustomPathResponse200ExtraPerms.from_dict(d.pop("extra_perms"))
|
|
121
|
+
|
|
122
|
+
get_public_app_by_custom_path_response_200 = cls(
|
|
123
|
+
id=id,
|
|
124
|
+
workspace_id=workspace_id,
|
|
125
|
+
path=path,
|
|
126
|
+
summary=summary,
|
|
127
|
+
versions=versions,
|
|
128
|
+
created_by=created_by,
|
|
129
|
+
created_at=created_at,
|
|
130
|
+
value=value,
|
|
131
|
+
policy=policy,
|
|
132
|
+
execution_mode=execution_mode,
|
|
133
|
+
extra_perms=extra_perms,
|
|
134
|
+
)
|
|
135
|
+
|
|
136
|
+
get_public_app_by_custom_path_response_200.additional_properties = d
|
|
137
|
+
return get_public_app_by_custom_path_response_200
|
|
138
|
+
|
|
139
|
+
@property
|
|
140
|
+
def additional_keys(self) -> List[str]:
|
|
141
|
+
return list(self.additional_properties.keys())
|
|
142
|
+
|
|
143
|
+
def __getitem__(self, key: str) -> Any:
|
|
144
|
+
return self.additional_properties[key]
|
|
145
|
+
|
|
146
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
147
|
+
self.additional_properties[key] = value
|
|
148
|
+
|
|
149
|
+
def __delitem__(self, key: str) -> None:
|
|
150
|
+
del self.additional_properties[key]
|
|
151
|
+
|
|
152
|
+
def __contains__(self, key: str) -> bool:
|
|
153
|
+
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="GetPublicAppByCustomPathResponse200ExtraPerms")
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@_attrs_define
|
|
10
|
+
class GetPublicAppByCustomPathResponse200ExtraPerms:
|
|
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_public_app_by_custom_path_response_200_extra_perms = cls()
|
|
26
|
+
|
|
27
|
+
get_public_app_by_custom_path_response_200_extra_perms.additional_properties = d
|
|
28
|
+
return get_public_app_by_custom_path_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,159 @@
|
|
|
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 ..models.get_public_app_by_custom_path_response_200_policy_execution_mode import (
|
|
7
|
+
GetPublicAppByCustomPathResponse200PolicyExecutionMode,
|
|
8
|
+
)
|
|
9
|
+
from ..types import UNSET, Unset
|
|
10
|
+
|
|
11
|
+
if TYPE_CHECKING:
|
|
12
|
+
from ..models.get_public_app_by_custom_path_response_200_policy_s3_inputs_item import (
|
|
13
|
+
GetPublicAppByCustomPathResponse200PolicyS3InputsItem,
|
|
14
|
+
)
|
|
15
|
+
from ..models.get_public_app_by_custom_path_response_200_policy_triggerables import (
|
|
16
|
+
GetPublicAppByCustomPathResponse200PolicyTriggerables,
|
|
17
|
+
)
|
|
18
|
+
from ..models.get_public_app_by_custom_path_response_200_policy_triggerables_v2 import (
|
|
19
|
+
GetPublicAppByCustomPathResponse200PolicyTriggerablesV2,
|
|
20
|
+
)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
T = TypeVar("T", bound="GetPublicAppByCustomPathResponse200Policy")
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
@_attrs_define
|
|
27
|
+
class GetPublicAppByCustomPathResponse200Policy:
|
|
28
|
+
"""
|
|
29
|
+
Attributes:
|
|
30
|
+
triggerables (Union[Unset, GetPublicAppByCustomPathResponse200PolicyTriggerables]):
|
|
31
|
+
triggerables_v2 (Union[Unset, GetPublicAppByCustomPathResponse200PolicyTriggerablesV2]):
|
|
32
|
+
s3_inputs (Union[Unset, List['GetPublicAppByCustomPathResponse200PolicyS3InputsItem']]):
|
|
33
|
+
execution_mode (Union[Unset, GetPublicAppByCustomPathResponse200PolicyExecutionMode]):
|
|
34
|
+
on_behalf_of (Union[Unset, str]):
|
|
35
|
+
on_behalf_of_email (Union[Unset, str]):
|
|
36
|
+
"""
|
|
37
|
+
|
|
38
|
+
triggerables: Union[Unset, "GetPublicAppByCustomPathResponse200PolicyTriggerables"] = UNSET
|
|
39
|
+
triggerables_v2: Union[Unset, "GetPublicAppByCustomPathResponse200PolicyTriggerablesV2"] = UNSET
|
|
40
|
+
s3_inputs: Union[Unset, List["GetPublicAppByCustomPathResponse200PolicyS3InputsItem"]] = UNSET
|
|
41
|
+
execution_mode: Union[Unset, GetPublicAppByCustomPathResponse200PolicyExecutionMode] = UNSET
|
|
42
|
+
on_behalf_of: Union[Unset, str] = UNSET
|
|
43
|
+
on_behalf_of_email: Union[Unset, str] = UNSET
|
|
44
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
45
|
+
|
|
46
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
47
|
+
triggerables: Union[Unset, Dict[str, Any]] = UNSET
|
|
48
|
+
if not isinstance(self.triggerables, Unset):
|
|
49
|
+
triggerables = self.triggerables.to_dict()
|
|
50
|
+
|
|
51
|
+
triggerables_v2: Union[Unset, Dict[str, Any]] = UNSET
|
|
52
|
+
if not isinstance(self.triggerables_v2, Unset):
|
|
53
|
+
triggerables_v2 = self.triggerables_v2.to_dict()
|
|
54
|
+
|
|
55
|
+
s3_inputs: Union[Unset, List[Dict[str, Any]]] = UNSET
|
|
56
|
+
if not isinstance(self.s3_inputs, Unset):
|
|
57
|
+
s3_inputs = []
|
|
58
|
+
for s3_inputs_item_data in self.s3_inputs:
|
|
59
|
+
s3_inputs_item = s3_inputs_item_data.to_dict()
|
|
60
|
+
|
|
61
|
+
s3_inputs.append(s3_inputs_item)
|
|
62
|
+
|
|
63
|
+
execution_mode: Union[Unset, str] = UNSET
|
|
64
|
+
if not isinstance(self.execution_mode, Unset):
|
|
65
|
+
execution_mode = self.execution_mode.value
|
|
66
|
+
|
|
67
|
+
on_behalf_of = self.on_behalf_of
|
|
68
|
+
on_behalf_of_email = self.on_behalf_of_email
|
|
69
|
+
|
|
70
|
+
field_dict: Dict[str, Any] = {}
|
|
71
|
+
field_dict.update(self.additional_properties)
|
|
72
|
+
field_dict.update({})
|
|
73
|
+
if triggerables is not UNSET:
|
|
74
|
+
field_dict["triggerables"] = triggerables
|
|
75
|
+
if triggerables_v2 is not UNSET:
|
|
76
|
+
field_dict["triggerables_v2"] = triggerables_v2
|
|
77
|
+
if s3_inputs is not UNSET:
|
|
78
|
+
field_dict["s3_inputs"] = s3_inputs
|
|
79
|
+
if execution_mode is not UNSET:
|
|
80
|
+
field_dict["execution_mode"] = execution_mode
|
|
81
|
+
if on_behalf_of is not UNSET:
|
|
82
|
+
field_dict["on_behalf_of"] = on_behalf_of
|
|
83
|
+
if on_behalf_of_email is not UNSET:
|
|
84
|
+
field_dict["on_behalf_of_email"] = on_behalf_of_email
|
|
85
|
+
|
|
86
|
+
return field_dict
|
|
87
|
+
|
|
88
|
+
@classmethod
|
|
89
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
90
|
+
from ..models.get_public_app_by_custom_path_response_200_policy_s3_inputs_item import (
|
|
91
|
+
GetPublicAppByCustomPathResponse200PolicyS3InputsItem,
|
|
92
|
+
)
|
|
93
|
+
from ..models.get_public_app_by_custom_path_response_200_policy_triggerables import (
|
|
94
|
+
GetPublicAppByCustomPathResponse200PolicyTriggerables,
|
|
95
|
+
)
|
|
96
|
+
from ..models.get_public_app_by_custom_path_response_200_policy_triggerables_v2 import (
|
|
97
|
+
GetPublicAppByCustomPathResponse200PolicyTriggerablesV2,
|
|
98
|
+
)
|
|
99
|
+
|
|
100
|
+
d = src_dict.copy()
|
|
101
|
+
_triggerables = d.pop("triggerables", UNSET)
|
|
102
|
+
triggerables: Union[Unset, GetPublicAppByCustomPathResponse200PolicyTriggerables]
|
|
103
|
+
if isinstance(_triggerables, Unset):
|
|
104
|
+
triggerables = UNSET
|
|
105
|
+
else:
|
|
106
|
+
triggerables = GetPublicAppByCustomPathResponse200PolicyTriggerables.from_dict(_triggerables)
|
|
107
|
+
|
|
108
|
+
_triggerables_v2 = d.pop("triggerables_v2", UNSET)
|
|
109
|
+
triggerables_v2: Union[Unset, GetPublicAppByCustomPathResponse200PolicyTriggerablesV2]
|
|
110
|
+
if isinstance(_triggerables_v2, Unset):
|
|
111
|
+
triggerables_v2 = UNSET
|
|
112
|
+
else:
|
|
113
|
+
triggerables_v2 = GetPublicAppByCustomPathResponse200PolicyTriggerablesV2.from_dict(_triggerables_v2)
|
|
114
|
+
|
|
115
|
+
s3_inputs = []
|
|
116
|
+
_s3_inputs = d.pop("s3_inputs", UNSET)
|
|
117
|
+
for s3_inputs_item_data in _s3_inputs or []:
|
|
118
|
+
s3_inputs_item = GetPublicAppByCustomPathResponse200PolicyS3InputsItem.from_dict(s3_inputs_item_data)
|
|
119
|
+
|
|
120
|
+
s3_inputs.append(s3_inputs_item)
|
|
121
|
+
|
|
122
|
+
_execution_mode = d.pop("execution_mode", UNSET)
|
|
123
|
+
execution_mode: Union[Unset, GetPublicAppByCustomPathResponse200PolicyExecutionMode]
|
|
124
|
+
if isinstance(_execution_mode, Unset):
|
|
125
|
+
execution_mode = UNSET
|
|
126
|
+
else:
|
|
127
|
+
execution_mode = GetPublicAppByCustomPathResponse200PolicyExecutionMode(_execution_mode)
|
|
128
|
+
|
|
129
|
+
on_behalf_of = d.pop("on_behalf_of", UNSET)
|
|
130
|
+
|
|
131
|
+
on_behalf_of_email = d.pop("on_behalf_of_email", UNSET)
|
|
132
|
+
|
|
133
|
+
get_public_app_by_custom_path_response_200_policy = cls(
|
|
134
|
+
triggerables=triggerables,
|
|
135
|
+
triggerables_v2=triggerables_v2,
|
|
136
|
+
s3_inputs=s3_inputs,
|
|
137
|
+
execution_mode=execution_mode,
|
|
138
|
+
on_behalf_of=on_behalf_of,
|
|
139
|
+
on_behalf_of_email=on_behalf_of_email,
|
|
140
|
+
)
|
|
141
|
+
|
|
142
|
+
get_public_app_by_custom_path_response_200_policy.additional_properties = d
|
|
143
|
+
return get_public_app_by_custom_path_response_200_policy
|
|
144
|
+
|
|
145
|
+
@property
|
|
146
|
+
def additional_keys(self) -> List[str]:
|
|
147
|
+
return list(self.additional_properties.keys())
|
|
148
|
+
|
|
149
|
+
def __getitem__(self, key: str) -> Any:
|
|
150
|
+
return self.additional_properties[key]
|
|
151
|
+
|
|
152
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
153
|
+
self.additional_properties[key] = value
|
|
154
|
+
|
|
155
|
+
def __delitem__(self, key: str) -> None:
|
|
156
|
+
del self.additional_properties[key]
|
|
157
|
+
|
|
158
|
+
def __contains__(self, key: str) -> bool:
|
|
159
|
+
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="GetPublicAppByCustomPathResponse200PolicyS3InputsItem")
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@_attrs_define
|
|
10
|
+
class GetPublicAppByCustomPathResponse200PolicyS3InputsItem:
|
|
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
|
+
get_public_app_by_custom_path_response_200_policy_s3_inputs_item = cls()
|
|
26
|
+
|
|
27
|
+
get_public_app_by_custom_path_response_200_policy_s3_inputs_item.additional_properties = d
|
|
28
|
+
return get_public_app_by_custom_path_response_200_policy_s3_inputs_item
|
|
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,70 @@
|
|
|
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.get_public_app_by_custom_path_response_200_policy_triggerables_additional_property import (
|
|
8
|
+
GetPublicAppByCustomPathResponse200PolicyTriggerablesAdditionalProperty,
|
|
9
|
+
)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
T = TypeVar("T", bound="GetPublicAppByCustomPathResponse200PolicyTriggerables")
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
@_attrs_define
|
|
16
|
+
class GetPublicAppByCustomPathResponse200PolicyTriggerables:
|
|
17
|
+
""" """
|
|
18
|
+
|
|
19
|
+
additional_properties: Dict[
|
|
20
|
+
str, "GetPublicAppByCustomPathResponse200PolicyTriggerablesAdditionalProperty"
|
|
21
|
+
] = _attrs_field(init=False, factory=dict)
|
|
22
|
+
|
|
23
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
24
|
+
pass
|
|
25
|
+
|
|
26
|
+
field_dict: Dict[str, Any] = {}
|
|
27
|
+
for prop_name, prop in self.additional_properties.items():
|
|
28
|
+
field_dict[prop_name] = prop.to_dict()
|
|
29
|
+
|
|
30
|
+
field_dict.update({})
|
|
31
|
+
|
|
32
|
+
return field_dict
|
|
33
|
+
|
|
34
|
+
@classmethod
|
|
35
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
36
|
+
from ..models.get_public_app_by_custom_path_response_200_policy_triggerables_additional_property import (
|
|
37
|
+
GetPublicAppByCustomPathResponse200PolicyTriggerablesAdditionalProperty,
|
|
38
|
+
)
|
|
39
|
+
|
|
40
|
+
d = src_dict.copy()
|
|
41
|
+
get_public_app_by_custom_path_response_200_policy_triggerables = cls()
|
|
42
|
+
|
|
43
|
+
additional_properties = {}
|
|
44
|
+
for prop_name, prop_dict in d.items():
|
|
45
|
+
additional_property = GetPublicAppByCustomPathResponse200PolicyTriggerablesAdditionalProperty.from_dict(
|
|
46
|
+
prop_dict
|
|
47
|
+
)
|
|
48
|
+
|
|
49
|
+
additional_properties[prop_name] = additional_property
|
|
50
|
+
|
|
51
|
+
get_public_app_by_custom_path_response_200_policy_triggerables.additional_properties = additional_properties
|
|
52
|
+
return get_public_app_by_custom_path_response_200_policy_triggerables
|
|
53
|
+
|
|
54
|
+
@property
|
|
55
|
+
def additional_keys(self) -> List[str]:
|
|
56
|
+
return list(self.additional_properties.keys())
|
|
57
|
+
|
|
58
|
+
def __getitem__(self, key: str) -> "GetPublicAppByCustomPathResponse200PolicyTriggerablesAdditionalProperty":
|
|
59
|
+
return self.additional_properties[key]
|
|
60
|
+
|
|
61
|
+
def __setitem__(
|
|
62
|
+
self, key: str, value: "GetPublicAppByCustomPathResponse200PolicyTriggerablesAdditionalProperty"
|
|
63
|
+
) -> None:
|
|
64
|
+
self.additional_properties[key] = value
|
|
65
|
+
|
|
66
|
+
def __delitem__(self, key: str) -> None:
|
|
67
|
+
del self.additional_properties[key]
|
|
68
|
+
|
|
69
|
+
def __contains__(self, key: str) -> bool:
|
|
70
|
+
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="GetPublicAppByCustomPathResponse200PolicyTriggerablesAdditionalProperty")
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@_attrs_define
|
|
10
|
+
class GetPublicAppByCustomPathResponse200PolicyTriggerablesAdditionalProperty:
|
|
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
|
+
get_public_app_by_custom_path_response_200_policy_triggerables_additional_property = cls()
|
|
26
|
+
|
|
27
|
+
get_public_app_by_custom_path_response_200_policy_triggerables_additional_property.additional_properties = d
|
|
28
|
+
return get_public_app_by_custom_path_response_200_policy_triggerables_additional_property
|
|
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
|