windmill-api 1.483.0__py3-none-any.whl → 1.483.2__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/create_app_raw.py +105 -0
- windmill_api/api/app/update_app_raw.py +113 -0
- windmill_api/models/create_app_raw_multipart_data.py +111 -0
- windmill_api/models/create_app_raw_multipart_data_app.py +112 -0
- windmill_api/models/create_app_raw_multipart_data_app_policy.py +187 -0
- windmill_api/models/create_app_raw_multipart_data_app_policy_allowed_s3_keys_item.py +66 -0
- windmill_api/models/create_app_raw_multipart_data_app_policy_execution_mode.py +10 -0
- windmill_api/models/create_app_raw_multipart_data_app_policy_s3_inputs_item.py +44 -0
- windmill_api/models/create_app_raw_multipart_data_app_policy_triggerables.py +66 -0
- windmill_api/models/create_app_raw_multipart_data_app_policy_triggerables_additional_property.py +44 -0
- windmill_api/models/create_app_raw_multipart_data_app_policy_triggerables_v2.py +70 -0
- windmill_api/models/create_app_raw_multipart_data_app_policy_triggerables_v2_additional_property.py +44 -0
- windmill_api/models/create_gcp_trigger_json_body.py +61 -15
- windmill_api/models/{gcp_create_update_subscription_delivery_config.py → create_gcp_trigger_json_body_delivery_config.py} +5 -12
- windmill_api/models/{gcp_create_update_subscription_delivery_type.py → create_gcp_trigger_json_body_delivery_type.py} +1 -1
- windmill_api/models/create_gcp_trigger_json_body_subscription_mode.py +6 -66
- windmill_api/models/gcp_trigger.py +10 -0
- windmill_api/models/gcp_trigger_data.py +161 -0
- windmill_api/models/{gcp_existing_subscription.py → gcp_trigger_data_delivery_config.py} +21 -18
- windmill_api/models/gcp_trigger_data_delivery_type.py +9 -0
- windmill_api/models/{gcp_subscription_mode_config_subscription_mode.py → gcp_trigger_data_subscription_mode.py} +1 -1
- windmill_api/models/gcp_trigger_delivery_config.py +0 -7
- windmill_api/models/{new_gcp_trigger_subscription_mode_subscription_mode.py → gcp_trigger_subscription_mode.py} +1 -1
- windmill_api/models/get_gcp_trigger_response_200.py +10 -0
- windmill_api/models/get_gcp_trigger_response_200_delivery_config.py +0 -7
- windmill_api/models/{create_gcp_trigger_json_body_subscription_mode_subscription_mode.py → get_gcp_trigger_response_200_subscription_mode.py} +1 -1
- windmill_api/models/list_apps_response_200_item.py +8 -0
- windmill_api/models/list_gcp_triggers_response_200_item.py +12 -0
- windmill_api/models/list_gcp_triggers_response_200_item_delivery_config.py +0 -7
- windmill_api/models/{edit_gcp_trigger_subscription_mode_subscription_mode.py → list_gcp_triggers_response_200_item_subscription_mode.py} +1 -1
- windmill_api/models/listable_app.py +8 -0
- windmill_api/models/push_config.py +0 -7
- windmill_api/models/update_app_raw_multipart_data.py +111 -0
- windmill_api/models/update_app_raw_multipart_data_app.py +112 -0
- windmill_api/models/update_app_raw_multipart_data_app_policy.py +187 -0
- windmill_api/models/update_app_raw_multipart_data_app_policy_allowed_s3_keys_item.py +66 -0
- windmill_api/models/update_app_raw_multipart_data_app_policy_execution_mode.py +10 -0
- windmill_api/models/update_app_raw_multipart_data_app_policy_s3_inputs_item.py +44 -0
- windmill_api/models/update_app_raw_multipart_data_app_policy_triggerables.py +66 -0
- windmill_api/models/update_app_raw_multipart_data_app_policy_triggerables_additional_property.py +44 -0
- windmill_api/models/update_app_raw_multipart_data_app_policy_triggerables_v2.py +70 -0
- windmill_api/models/update_app_raw_multipart_data_app_policy_triggerables_v2_additional_property.py +44 -0
- windmill_api/models/update_gcp_trigger_json_body.py +72 -26
- windmill_api/models/update_gcp_trigger_json_body_delivery_config.py +68 -0
- windmill_api/models/update_gcp_trigger_json_body_delivery_type.py +9 -0
- windmill_api/models/update_gcp_trigger_json_body_subscription_mode.py +6 -66
- {windmill_api-1.483.0.dist-info → windmill_api-1.483.2.dist-info}/METADATA +1 -1
- {windmill_api-1.483.0.dist-info → windmill_api-1.483.2.dist-info}/RECORD +50 -31
- windmill_api/models/edit_gcp_trigger.py +0 -114
- windmill_api/models/edit_gcp_trigger_subscription_mode.py +0 -66
- windmill_api/models/gcp_create_update_subscription.py +0 -91
- windmill_api/models/gcp_subscription_mode_config.py +0 -66
- windmill_api/models/new_gcp_trigger.py +0 -114
- windmill_api/models/new_gcp_trigger_subscription_mode.py +0 -66
- windmill_api/models/update_gcp_trigger_json_body_subscription_mode_subscription_mode.py +0 -9
- {windmill_api-1.483.0.dist-info → windmill_api-1.483.2.dist-info}/LICENSE +0 -0
- {windmill_api-1.483.0.dist-info → windmill_api-1.483.2.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import json
|
|
2
|
+
from typing import TYPE_CHECKING, Any, Dict, List, Tuple, Type, TypeVar, Union
|
|
3
|
+
|
|
4
|
+
from attrs import define as _attrs_define
|
|
5
|
+
from attrs import field as _attrs_field
|
|
6
|
+
|
|
7
|
+
from ..types import UNSET, Unset
|
|
8
|
+
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
from ..models.update_app_raw_multipart_data_app import UpdateAppRawMultipartDataApp
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
T = TypeVar("T", bound="UpdateAppRawMultipartData")
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
@_attrs_define
|
|
17
|
+
class UpdateAppRawMultipartData:
|
|
18
|
+
"""
|
|
19
|
+
Attributes:
|
|
20
|
+
app (Union[Unset, UpdateAppRawMultipartDataApp]):
|
|
21
|
+
js (Union[Unset, str]):
|
|
22
|
+
css (Union[Unset, str]):
|
|
23
|
+
"""
|
|
24
|
+
|
|
25
|
+
app: Union[Unset, "UpdateAppRawMultipartDataApp"] = UNSET
|
|
26
|
+
js: Union[Unset, str] = UNSET
|
|
27
|
+
css: Union[Unset, str] = UNSET
|
|
28
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
29
|
+
|
|
30
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
31
|
+
app: Union[Unset, Dict[str, Any]] = UNSET
|
|
32
|
+
if not isinstance(self.app, Unset):
|
|
33
|
+
app = self.app.to_dict()
|
|
34
|
+
|
|
35
|
+
js = self.js
|
|
36
|
+
css = self.css
|
|
37
|
+
|
|
38
|
+
field_dict: Dict[str, Any] = {}
|
|
39
|
+
field_dict.update(self.additional_properties)
|
|
40
|
+
field_dict.update({})
|
|
41
|
+
if app is not UNSET:
|
|
42
|
+
field_dict["app"] = app
|
|
43
|
+
if js is not UNSET:
|
|
44
|
+
field_dict["js"] = js
|
|
45
|
+
if css is not UNSET:
|
|
46
|
+
field_dict["css"] = css
|
|
47
|
+
|
|
48
|
+
return field_dict
|
|
49
|
+
|
|
50
|
+
def to_multipart(self) -> Dict[str, Any]:
|
|
51
|
+
app: Union[Unset, Tuple[None, bytes, str]] = UNSET
|
|
52
|
+
if not isinstance(self.app, Unset):
|
|
53
|
+
app = (None, json.dumps(self.app.to_dict()).encode(), "application/json")
|
|
54
|
+
|
|
55
|
+
js = self.js if isinstance(self.js, Unset) else (None, str(self.js).encode(), "text/plain")
|
|
56
|
+
css = self.css if isinstance(self.css, Unset) else (None, str(self.css).encode(), "text/plain")
|
|
57
|
+
|
|
58
|
+
field_dict: Dict[str, Any] = {}
|
|
59
|
+
field_dict.update(
|
|
60
|
+
{key: (None, str(value).encode(), "text/plain") for key, value in self.additional_properties.items()}
|
|
61
|
+
)
|
|
62
|
+
field_dict.update({})
|
|
63
|
+
if app is not UNSET:
|
|
64
|
+
field_dict["app"] = app
|
|
65
|
+
if js is not UNSET:
|
|
66
|
+
field_dict["js"] = js
|
|
67
|
+
if css is not UNSET:
|
|
68
|
+
field_dict["css"] = css
|
|
69
|
+
|
|
70
|
+
return field_dict
|
|
71
|
+
|
|
72
|
+
@classmethod
|
|
73
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
74
|
+
from ..models.update_app_raw_multipart_data_app import UpdateAppRawMultipartDataApp
|
|
75
|
+
|
|
76
|
+
d = src_dict.copy()
|
|
77
|
+
_app = d.pop("app", UNSET)
|
|
78
|
+
app: Union[Unset, UpdateAppRawMultipartDataApp]
|
|
79
|
+
if isinstance(_app, Unset):
|
|
80
|
+
app = UNSET
|
|
81
|
+
else:
|
|
82
|
+
app = UpdateAppRawMultipartDataApp.from_dict(_app)
|
|
83
|
+
|
|
84
|
+
js = d.pop("js", UNSET)
|
|
85
|
+
|
|
86
|
+
css = d.pop("css", UNSET)
|
|
87
|
+
|
|
88
|
+
update_app_raw_multipart_data = cls(
|
|
89
|
+
app=app,
|
|
90
|
+
js=js,
|
|
91
|
+
css=css,
|
|
92
|
+
)
|
|
93
|
+
|
|
94
|
+
update_app_raw_multipart_data.additional_properties = d
|
|
95
|
+
return update_app_raw_multipart_data
|
|
96
|
+
|
|
97
|
+
@property
|
|
98
|
+
def additional_keys(self) -> List[str]:
|
|
99
|
+
return list(self.additional_properties.keys())
|
|
100
|
+
|
|
101
|
+
def __getitem__(self, key: str) -> Any:
|
|
102
|
+
return self.additional_properties[key]
|
|
103
|
+
|
|
104
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
105
|
+
self.additional_properties[key] = value
|
|
106
|
+
|
|
107
|
+
def __delitem__(self, key: str) -> None:
|
|
108
|
+
del self.additional_properties[key]
|
|
109
|
+
|
|
110
|
+
def __contains__(self, key: str) -> bool:
|
|
111
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,112 @@
|
|
|
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_app_raw_multipart_data_app_policy import UpdateAppRawMultipartDataAppPolicy
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
T = TypeVar("T", bound="UpdateAppRawMultipartDataApp")
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
@_attrs_define
|
|
16
|
+
class UpdateAppRawMultipartDataApp:
|
|
17
|
+
"""
|
|
18
|
+
Attributes:
|
|
19
|
+
path (Union[Unset, str]):
|
|
20
|
+
summary (Union[Unset, str]):
|
|
21
|
+
value (Union[Unset, Any]):
|
|
22
|
+
policy (Union[Unset, UpdateAppRawMultipartDataAppPolicy]):
|
|
23
|
+
deployment_message (Union[Unset, str]):
|
|
24
|
+
custom_path (Union[Unset, str]):
|
|
25
|
+
"""
|
|
26
|
+
|
|
27
|
+
path: Union[Unset, str] = UNSET
|
|
28
|
+
summary: Union[Unset, str] = UNSET
|
|
29
|
+
value: Union[Unset, Any] = UNSET
|
|
30
|
+
policy: Union[Unset, "UpdateAppRawMultipartDataAppPolicy"] = UNSET
|
|
31
|
+
deployment_message: Union[Unset, str] = UNSET
|
|
32
|
+
custom_path: Union[Unset, str] = UNSET
|
|
33
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
34
|
+
|
|
35
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
36
|
+
path = self.path
|
|
37
|
+
summary = self.summary
|
|
38
|
+
value = self.value
|
|
39
|
+
policy: Union[Unset, Dict[str, Any]] = UNSET
|
|
40
|
+
if not isinstance(self.policy, Unset):
|
|
41
|
+
policy = self.policy.to_dict()
|
|
42
|
+
|
|
43
|
+
deployment_message = self.deployment_message
|
|
44
|
+
custom_path = self.custom_path
|
|
45
|
+
|
|
46
|
+
field_dict: Dict[str, Any] = {}
|
|
47
|
+
field_dict.update(self.additional_properties)
|
|
48
|
+
field_dict.update({})
|
|
49
|
+
if path is not UNSET:
|
|
50
|
+
field_dict["path"] = path
|
|
51
|
+
if summary is not UNSET:
|
|
52
|
+
field_dict["summary"] = summary
|
|
53
|
+
if value is not UNSET:
|
|
54
|
+
field_dict["value"] = value
|
|
55
|
+
if policy is not UNSET:
|
|
56
|
+
field_dict["policy"] = policy
|
|
57
|
+
if deployment_message is not UNSET:
|
|
58
|
+
field_dict["deployment_message"] = deployment_message
|
|
59
|
+
if custom_path is not UNSET:
|
|
60
|
+
field_dict["custom_path"] = custom_path
|
|
61
|
+
|
|
62
|
+
return field_dict
|
|
63
|
+
|
|
64
|
+
@classmethod
|
|
65
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
66
|
+
from ..models.update_app_raw_multipart_data_app_policy import UpdateAppRawMultipartDataAppPolicy
|
|
67
|
+
|
|
68
|
+
d = src_dict.copy()
|
|
69
|
+
path = d.pop("path", UNSET)
|
|
70
|
+
|
|
71
|
+
summary = d.pop("summary", UNSET)
|
|
72
|
+
|
|
73
|
+
value = d.pop("value", UNSET)
|
|
74
|
+
|
|
75
|
+
_policy = d.pop("policy", UNSET)
|
|
76
|
+
policy: Union[Unset, UpdateAppRawMultipartDataAppPolicy]
|
|
77
|
+
if isinstance(_policy, Unset):
|
|
78
|
+
policy = UNSET
|
|
79
|
+
else:
|
|
80
|
+
policy = UpdateAppRawMultipartDataAppPolicy.from_dict(_policy)
|
|
81
|
+
|
|
82
|
+
deployment_message = d.pop("deployment_message", UNSET)
|
|
83
|
+
|
|
84
|
+
custom_path = d.pop("custom_path", UNSET)
|
|
85
|
+
|
|
86
|
+
update_app_raw_multipart_data_app = cls(
|
|
87
|
+
path=path,
|
|
88
|
+
summary=summary,
|
|
89
|
+
value=value,
|
|
90
|
+
policy=policy,
|
|
91
|
+
deployment_message=deployment_message,
|
|
92
|
+
custom_path=custom_path,
|
|
93
|
+
)
|
|
94
|
+
|
|
95
|
+
update_app_raw_multipart_data_app.additional_properties = d
|
|
96
|
+
return update_app_raw_multipart_data_app
|
|
97
|
+
|
|
98
|
+
@property
|
|
99
|
+
def additional_keys(self) -> List[str]:
|
|
100
|
+
return list(self.additional_properties.keys())
|
|
101
|
+
|
|
102
|
+
def __getitem__(self, key: str) -> Any:
|
|
103
|
+
return self.additional_properties[key]
|
|
104
|
+
|
|
105
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
106
|
+
self.additional_properties[key] = value
|
|
107
|
+
|
|
108
|
+
def __delitem__(self, key: str) -> None:
|
|
109
|
+
del self.additional_properties[key]
|
|
110
|
+
|
|
111
|
+
def __contains__(self, key: str) -> bool:
|
|
112
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,187 @@
|
|
|
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.update_app_raw_multipart_data_app_policy_execution_mode import (
|
|
7
|
+
UpdateAppRawMultipartDataAppPolicyExecutionMode,
|
|
8
|
+
)
|
|
9
|
+
from ..types import UNSET, Unset
|
|
10
|
+
|
|
11
|
+
if TYPE_CHECKING:
|
|
12
|
+
from ..models.update_app_raw_multipart_data_app_policy_allowed_s3_keys_item import (
|
|
13
|
+
UpdateAppRawMultipartDataAppPolicyAllowedS3KeysItem,
|
|
14
|
+
)
|
|
15
|
+
from ..models.update_app_raw_multipart_data_app_policy_s3_inputs_item import (
|
|
16
|
+
UpdateAppRawMultipartDataAppPolicyS3InputsItem,
|
|
17
|
+
)
|
|
18
|
+
from ..models.update_app_raw_multipart_data_app_policy_triggerables import (
|
|
19
|
+
UpdateAppRawMultipartDataAppPolicyTriggerables,
|
|
20
|
+
)
|
|
21
|
+
from ..models.update_app_raw_multipart_data_app_policy_triggerables_v2 import (
|
|
22
|
+
UpdateAppRawMultipartDataAppPolicyTriggerablesV2,
|
|
23
|
+
)
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
T = TypeVar("T", bound="UpdateAppRawMultipartDataAppPolicy")
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
@_attrs_define
|
|
30
|
+
class UpdateAppRawMultipartDataAppPolicy:
|
|
31
|
+
"""
|
|
32
|
+
Attributes:
|
|
33
|
+
triggerables (Union[Unset, UpdateAppRawMultipartDataAppPolicyTriggerables]):
|
|
34
|
+
triggerables_v2 (Union[Unset, UpdateAppRawMultipartDataAppPolicyTriggerablesV2]):
|
|
35
|
+
s3_inputs (Union[Unset, List['UpdateAppRawMultipartDataAppPolicyS3InputsItem']]):
|
|
36
|
+
allowed_s3_keys (Union[Unset, List['UpdateAppRawMultipartDataAppPolicyAllowedS3KeysItem']]):
|
|
37
|
+
execution_mode (Union[Unset, UpdateAppRawMultipartDataAppPolicyExecutionMode]):
|
|
38
|
+
on_behalf_of (Union[Unset, str]):
|
|
39
|
+
on_behalf_of_email (Union[Unset, str]):
|
|
40
|
+
"""
|
|
41
|
+
|
|
42
|
+
triggerables: Union[Unset, "UpdateAppRawMultipartDataAppPolicyTriggerables"] = UNSET
|
|
43
|
+
triggerables_v2: Union[Unset, "UpdateAppRawMultipartDataAppPolicyTriggerablesV2"] = UNSET
|
|
44
|
+
s3_inputs: Union[Unset, List["UpdateAppRawMultipartDataAppPolicyS3InputsItem"]] = UNSET
|
|
45
|
+
allowed_s3_keys: Union[Unset, List["UpdateAppRawMultipartDataAppPolicyAllowedS3KeysItem"]] = UNSET
|
|
46
|
+
execution_mode: Union[Unset, UpdateAppRawMultipartDataAppPolicyExecutionMode] = UNSET
|
|
47
|
+
on_behalf_of: Union[Unset, str] = UNSET
|
|
48
|
+
on_behalf_of_email: Union[Unset, str] = UNSET
|
|
49
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
50
|
+
|
|
51
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
52
|
+
triggerables: Union[Unset, Dict[str, Any]] = UNSET
|
|
53
|
+
if not isinstance(self.triggerables, Unset):
|
|
54
|
+
triggerables = self.triggerables.to_dict()
|
|
55
|
+
|
|
56
|
+
triggerables_v2: Union[Unset, Dict[str, Any]] = UNSET
|
|
57
|
+
if not isinstance(self.triggerables_v2, Unset):
|
|
58
|
+
triggerables_v2 = self.triggerables_v2.to_dict()
|
|
59
|
+
|
|
60
|
+
s3_inputs: Union[Unset, List[Dict[str, Any]]] = UNSET
|
|
61
|
+
if not isinstance(self.s3_inputs, Unset):
|
|
62
|
+
s3_inputs = []
|
|
63
|
+
for s3_inputs_item_data in self.s3_inputs:
|
|
64
|
+
s3_inputs_item = s3_inputs_item_data.to_dict()
|
|
65
|
+
|
|
66
|
+
s3_inputs.append(s3_inputs_item)
|
|
67
|
+
|
|
68
|
+
allowed_s3_keys: Union[Unset, List[Dict[str, Any]]] = UNSET
|
|
69
|
+
if not isinstance(self.allowed_s3_keys, Unset):
|
|
70
|
+
allowed_s3_keys = []
|
|
71
|
+
for allowed_s3_keys_item_data in self.allowed_s3_keys:
|
|
72
|
+
allowed_s3_keys_item = allowed_s3_keys_item_data.to_dict()
|
|
73
|
+
|
|
74
|
+
allowed_s3_keys.append(allowed_s3_keys_item)
|
|
75
|
+
|
|
76
|
+
execution_mode: Union[Unset, str] = UNSET
|
|
77
|
+
if not isinstance(self.execution_mode, Unset):
|
|
78
|
+
execution_mode = self.execution_mode.value
|
|
79
|
+
|
|
80
|
+
on_behalf_of = self.on_behalf_of
|
|
81
|
+
on_behalf_of_email = self.on_behalf_of_email
|
|
82
|
+
|
|
83
|
+
field_dict: Dict[str, Any] = {}
|
|
84
|
+
field_dict.update(self.additional_properties)
|
|
85
|
+
field_dict.update({})
|
|
86
|
+
if triggerables is not UNSET:
|
|
87
|
+
field_dict["triggerables"] = triggerables
|
|
88
|
+
if triggerables_v2 is not UNSET:
|
|
89
|
+
field_dict["triggerables_v2"] = triggerables_v2
|
|
90
|
+
if s3_inputs is not UNSET:
|
|
91
|
+
field_dict["s3_inputs"] = s3_inputs
|
|
92
|
+
if allowed_s3_keys is not UNSET:
|
|
93
|
+
field_dict["allowed_s3_keys"] = allowed_s3_keys
|
|
94
|
+
if execution_mode is not UNSET:
|
|
95
|
+
field_dict["execution_mode"] = execution_mode
|
|
96
|
+
if on_behalf_of is not UNSET:
|
|
97
|
+
field_dict["on_behalf_of"] = on_behalf_of
|
|
98
|
+
if on_behalf_of_email is not UNSET:
|
|
99
|
+
field_dict["on_behalf_of_email"] = on_behalf_of_email
|
|
100
|
+
|
|
101
|
+
return field_dict
|
|
102
|
+
|
|
103
|
+
@classmethod
|
|
104
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
105
|
+
from ..models.update_app_raw_multipart_data_app_policy_allowed_s3_keys_item import (
|
|
106
|
+
UpdateAppRawMultipartDataAppPolicyAllowedS3KeysItem,
|
|
107
|
+
)
|
|
108
|
+
from ..models.update_app_raw_multipart_data_app_policy_s3_inputs_item import (
|
|
109
|
+
UpdateAppRawMultipartDataAppPolicyS3InputsItem,
|
|
110
|
+
)
|
|
111
|
+
from ..models.update_app_raw_multipart_data_app_policy_triggerables import (
|
|
112
|
+
UpdateAppRawMultipartDataAppPolicyTriggerables,
|
|
113
|
+
)
|
|
114
|
+
from ..models.update_app_raw_multipart_data_app_policy_triggerables_v2 import (
|
|
115
|
+
UpdateAppRawMultipartDataAppPolicyTriggerablesV2,
|
|
116
|
+
)
|
|
117
|
+
|
|
118
|
+
d = src_dict.copy()
|
|
119
|
+
_triggerables = d.pop("triggerables", UNSET)
|
|
120
|
+
triggerables: Union[Unset, UpdateAppRawMultipartDataAppPolicyTriggerables]
|
|
121
|
+
if isinstance(_triggerables, Unset):
|
|
122
|
+
triggerables = UNSET
|
|
123
|
+
else:
|
|
124
|
+
triggerables = UpdateAppRawMultipartDataAppPolicyTriggerables.from_dict(_triggerables)
|
|
125
|
+
|
|
126
|
+
_triggerables_v2 = d.pop("triggerables_v2", UNSET)
|
|
127
|
+
triggerables_v2: Union[Unset, UpdateAppRawMultipartDataAppPolicyTriggerablesV2]
|
|
128
|
+
if isinstance(_triggerables_v2, Unset):
|
|
129
|
+
triggerables_v2 = UNSET
|
|
130
|
+
else:
|
|
131
|
+
triggerables_v2 = UpdateAppRawMultipartDataAppPolicyTriggerablesV2.from_dict(_triggerables_v2)
|
|
132
|
+
|
|
133
|
+
s3_inputs = []
|
|
134
|
+
_s3_inputs = d.pop("s3_inputs", UNSET)
|
|
135
|
+
for s3_inputs_item_data in _s3_inputs or []:
|
|
136
|
+
s3_inputs_item = UpdateAppRawMultipartDataAppPolicyS3InputsItem.from_dict(s3_inputs_item_data)
|
|
137
|
+
|
|
138
|
+
s3_inputs.append(s3_inputs_item)
|
|
139
|
+
|
|
140
|
+
allowed_s3_keys = []
|
|
141
|
+
_allowed_s3_keys = d.pop("allowed_s3_keys", UNSET)
|
|
142
|
+
for allowed_s3_keys_item_data in _allowed_s3_keys or []:
|
|
143
|
+
allowed_s3_keys_item = UpdateAppRawMultipartDataAppPolicyAllowedS3KeysItem.from_dict(
|
|
144
|
+
allowed_s3_keys_item_data
|
|
145
|
+
)
|
|
146
|
+
|
|
147
|
+
allowed_s3_keys.append(allowed_s3_keys_item)
|
|
148
|
+
|
|
149
|
+
_execution_mode = d.pop("execution_mode", UNSET)
|
|
150
|
+
execution_mode: Union[Unset, UpdateAppRawMultipartDataAppPolicyExecutionMode]
|
|
151
|
+
if isinstance(_execution_mode, Unset):
|
|
152
|
+
execution_mode = UNSET
|
|
153
|
+
else:
|
|
154
|
+
execution_mode = UpdateAppRawMultipartDataAppPolicyExecutionMode(_execution_mode)
|
|
155
|
+
|
|
156
|
+
on_behalf_of = d.pop("on_behalf_of", UNSET)
|
|
157
|
+
|
|
158
|
+
on_behalf_of_email = d.pop("on_behalf_of_email", UNSET)
|
|
159
|
+
|
|
160
|
+
update_app_raw_multipart_data_app_policy = cls(
|
|
161
|
+
triggerables=triggerables,
|
|
162
|
+
triggerables_v2=triggerables_v2,
|
|
163
|
+
s3_inputs=s3_inputs,
|
|
164
|
+
allowed_s3_keys=allowed_s3_keys,
|
|
165
|
+
execution_mode=execution_mode,
|
|
166
|
+
on_behalf_of=on_behalf_of,
|
|
167
|
+
on_behalf_of_email=on_behalf_of_email,
|
|
168
|
+
)
|
|
169
|
+
|
|
170
|
+
update_app_raw_multipart_data_app_policy.additional_properties = d
|
|
171
|
+
return update_app_raw_multipart_data_app_policy
|
|
172
|
+
|
|
173
|
+
@property
|
|
174
|
+
def additional_keys(self) -> List[str]:
|
|
175
|
+
return list(self.additional_properties.keys())
|
|
176
|
+
|
|
177
|
+
def __getitem__(self, key: str) -> Any:
|
|
178
|
+
return self.additional_properties[key]
|
|
179
|
+
|
|
180
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
181
|
+
self.additional_properties[key] = value
|
|
182
|
+
|
|
183
|
+
def __delitem__(self, key: str) -> None:
|
|
184
|
+
del self.additional_properties[key]
|
|
185
|
+
|
|
186
|
+
def __contains__(self, key: str) -> bool:
|
|
187
|
+
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="UpdateAppRawMultipartDataAppPolicyAllowedS3KeysItem")
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
@_attrs_define
|
|
12
|
+
class UpdateAppRawMultipartDataAppPolicyAllowedS3KeysItem:
|
|
13
|
+
"""
|
|
14
|
+
Attributes:
|
|
15
|
+
s3_path (Union[Unset, str]):
|
|
16
|
+
resource (Union[Unset, str]):
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
s3_path: Union[Unset, str] = UNSET
|
|
20
|
+
resource: Union[Unset, str] = UNSET
|
|
21
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
22
|
+
|
|
23
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
24
|
+
s3_path = self.s3_path
|
|
25
|
+
resource = self.resource
|
|
26
|
+
|
|
27
|
+
field_dict: Dict[str, Any] = {}
|
|
28
|
+
field_dict.update(self.additional_properties)
|
|
29
|
+
field_dict.update({})
|
|
30
|
+
if s3_path is not UNSET:
|
|
31
|
+
field_dict["s3_path"] = s3_path
|
|
32
|
+
if resource is not UNSET:
|
|
33
|
+
field_dict["resource"] = resource
|
|
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
|
+
s3_path = d.pop("s3_path", UNSET)
|
|
41
|
+
|
|
42
|
+
resource = d.pop("resource", UNSET)
|
|
43
|
+
|
|
44
|
+
update_app_raw_multipart_data_app_policy_allowed_s3_keys_item = cls(
|
|
45
|
+
s3_path=s3_path,
|
|
46
|
+
resource=resource,
|
|
47
|
+
)
|
|
48
|
+
|
|
49
|
+
update_app_raw_multipart_data_app_policy_allowed_s3_keys_item.additional_properties = d
|
|
50
|
+
return update_app_raw_multipart_data_app_policy_allowed_s3_keys_item
|
|
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,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="UpdateAppRawMultipartDataAppPolicyS3InputsItem")
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@_attrs_define
|
|
10
|
+
class UpdateAppRawMultipartDataAppPolicyS3InputsItem:
|
|
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
|
+
update_app_raw_multipart_data_app_policy_s3_inputs_item = cls()
|
|
26
|
+
|
|
27
|
+
update_app_raw_multipart_data_app_policy_s3_inputs_item.additional_properties = d
|
|
28
|
+
return update_app_raw_multipart_data_app_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,66 @@
|
|
|
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.update_app_raw_multipart_data_app_policy_triggerables_additional_property import (
|
|
8
|
+
UpdateAppRawMultipartDataAppPolicyTriggerablesAdditionalProperty,
|
|
9
|
+
)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
T = TypeVar("T", bound="UpdateAppRawMultipartDataAppPolicyTriggerables")
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
@_attrs_define
|
|
16
|
+
class UpdateAppRawMultipartDataAppPolicyTriggerables:
|
|
17
|
+
""" """
|
|
18
|
+
|
|
19
|
+
additional_properties: Dict[str, "UpdateAppRawMultipartDataAppPolicyTriggerablesAdditionalProperty"] = _attrs_field(
|
|
20
|
+
init=False, factory=dict
|
|
21
|
+
)
|
|
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.update_app_raw_multipart_data_app_policy_triggerables_additional_property import (
|
|
37
|
+
UpdateAppRawMultipartDataAppPolicyTriggerablesAdditionalProperty,
|
|
38
|
+
)
|
|
39
|
+
|
|
40
|
+
d = src_dict.copy()
|
|
41
|
+
update_app_raw_multipart_data_app_policy_triggerables = cls()
|
|
42
|
+
|
|
43
|
+
additional_properties = {}
|
|
44
|
+
for prop_name, prop_dict in d.items():
|
|
45
|
+
additional_property = UpdateAppRawMultipartDataAppPolicyTriggerablesAdditionalProperty.from_dict(prop_dict)
|
|
46
|
+
|
|
47
|
+
additional_properties[prop_name] = additional_property
|
|
48
|
+
|
|
49
|
+
update_app_raw_multipart_data_app_policy_triggerables.additional_properties = additional_properties
|
|
50
|
+
return update_app_raw_multipart_data_app_policy_triggerables
|
|
51
|
+
|
|
52
|
+
@property
|
|
53
|
+
def additional_keys(self) -> List[str]:
|
|
54
|
+
return list(self.additional_properties.keys())
|
|
55
|
+
|
|
56
|
+
def __getitem__(self, key: str) -> "UpdateAppRawMultipartDataAppPolicyTriggerablesAdditionalProperty":
|
|
57
|
+
return self.additional_properties[key]
|
|
58
|
+
|
|
59
|
+
def __setitem__(self, key: str, value: "UpdateAppRawMultipartDataAppPolicyTriggerablesAdditionalProperty") -> 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
|
windmill_api/models/update_app_raw_multipart_data_app_policy_triggerables_additional_property.py
ADDED
|
@@ -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="UpdateAppRawMultipartDataAppPolicyTriggerablesAdditionalProperty")
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@_attrs_define
|
|
10
|
+
class UpdateAppRawMultipartDataAppPolicyTriggerablesAdditionalProperty:
|
|
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
|
+
update_app_raw_multipart_data_app_policy_triggerables_additional_property = cls()
|
|
26
|
+
|
|
27
|
+
update_app_raw_multipart_data_app_policy_triggerables_additional_property.additional_properties = d
|
|
28
|
+
return update_app_raw_multipart_data_app_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
|