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

@@ -17,6 +17,8 @@ def _get_kwargs(
17
17
  s3_resource_path: Union[Unset, None, str] = UNSET,
18
18
  resource_type: Union[Unset, None, str] = UNSET,
19
19
  storage: Union[Unset, None, str] = UNSET,
20
+ content_type: Union[Unset, None, str] = UNSET,
21
+ content_disposition: Union[Unset, None, str] = UNSET,
20
22
  ) -> Dict[str, Any]:
21
23
  pass
22
24
 
@@ -31,6 +33,10 @@ def _get_kwargs(
31
33
 
32
34
  params["storage"] = storage
33
35
 
36
+ params["content_type"] = content_type
37
+
38
+ params["content_disposition"] = content_disposition
39
+
34
40
  params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
35
41
 
36
42
  return {
@@ -75,6 +81,8 @@ def sync_detailed(
75
81
  s3_resource_path: Union[Unset, None, str] = UNSET,
76
82
  resource_type: Union[Unset, None, str] = UNSET,
77
83
  storage: Union[Unset, None, str] = UNSET,
84
+ content_type: Union[Unset, None, str] = UNSET,
85
+ content_disposition: Union[Unset, None, str] = UNSET,
78
86
  ) -> Response[FileUploadResponse200]:
79
87
  """Upload file to S3 bucket
80
88
 
@@ -85,6 +93,8 @@ def sync_detailed(
85
93
  s3_resource_path (Union[Unset, None, str]):
86
94
  resource_type (Union[Unset, None, str]):
87
95
  storage (Union[Unset, None, str]):
96
+ content_type (Union[Unset, None, str]):
97
+ content_disposition (Union[Unset, None, str]):
88
98
 
89
99
  Raises:
90
100
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -101,6 +111,8 @@ def sync_detailed(
101
111
  s3_resource_path=s3_resource_path,
102
112
  resource_type=resource_type,
103
113
  storage=storage,
114
+ content_type=content_type,
115
+ content_disposition=content_disposition,
104
116
  )
105
117
 
106
118
  response = client.get_httpx_client().request(
@@ -119,6 +131,8 @@ def sync(
119
131
  s3_resource_path: Union[Unset, None, str] = UNSET,
120
132
  resource_type: Union[Unset, None, str] = UNSET,
121
133
  storage: Union[Unset, None, str] = UNSET,
134
+ content_type: Union[Unset, None, str] = UNSET,
135
+ content_disposition: Union[Unset, None, str] = UNSET,
122
136
  ) -> Optional[FileUploadResponse200]:
123
137
  """Upload file to S3 bucket
124
138
 
@@ -129,6 +143,8 @@ def sync(
129
143
  s3_resource_path (Union[Unset, None, str]):
130
144
  resource_type (Union[Unset, None, str]):
131
145
  storage (Union[Unset, None, str]):
146
+ content_type (Union[Unset, None, str]):
147
+ content_disposition (Union[Unset, None, str]):
132
148
 
133
149
  Raises:
134
150
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -146,6 +162,8 @@ def sync(
146
162
  s3_resource_path=s3_resource_path,
147
163
  resource_type=resource_type,
148
164
  storage=storage,
165
+ content_type=content_type,
166
+ content_disposition=content_disposition,
149
167
  ).parsed
150
168
 
151
169
 
@@ -158,6 +176,8 @@ async def asyncio_detailed(
158
176
  s3_resource_path: Union[Unset, None, str] = UNSET,
159
177
  resource_type: Union[Unset, None, str] = UNSET,
160
178
  storage: Union[Unset, None, str] = UNSET,
179
+ content_type: Union[Unset, None, str] = UNSET,
180
+ content_disposition: Union[Unset, None, str] = UNSET,
161
181
  ) -> Response[FileUploadResponse200]:
162
182
  """Upload file to S3 bucket
163
183
 
@@ -168,6 +188,8 @@ async def asyncio_detailed(
168
188
  s3_resource_path (Union[Unset, None, str]):
169
189
  resource_type (Union[Unset, None, str]):
170
190
  storage (Union[Unset, None, str]):
191
+ content_type (Union[Unset, None, str]):
192
+ content_disposition (Union[Unset, None, str]):
171
193
 
172
194
  Raises:
173
195
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -184,6 +206,8 @@ async def asyncio_detailed(
184
206
  s3_resource_path=s3_resource_path,
185
207
  resource_type=resource_type,
186
208
  storage=storage,
209
+ content_type=content_type,
210
+ content_disposition=content_disposition,
187
211
  )
188
212
 
189
213
  response = await client.get_async_httpx_client().request(**kwargs)
@@ -200,6 +224,8 @@ async def asyncio(
200
224
  s3_resource_path: Union[Unset, None, str] = UNSET,
201
225
  resource_type: Union[Unset, None, str] = UNSET,
202
226
  storage: Union[Unset, None, str] = UNSET,
227
+ content_type: Union[Unset, None, str] = UNSET,
228
+ content_disposition: Union[Unset, None, str] = UNSET,
203
229
  ) -> Optional[FileUploadResponse200]:
204
230
  """Upload file to S3 bucket
205
231
 
@@ -210,6 +236,8 @@ async def asyncio(
210
236
  s3_resource_path (Union[Unset, None, str]):
211
237
  resource_type (Union[Unset, None, str]):
212
238
  storage (Union[Unset, None, str]):
239
+ content_type (Union[Unset, None, str]):
240
+ content_disposition (Union[Unset, None, str]):
213
241
 
214
242
  Raises:
215
243
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -228,5 +256,7 @@ async def asyncio(
228
256
  s3_resource_path=s3_resource_path,
229
257
  resource_type=resource_type,
230
258
  storage=storage,
259
+ content_type=content_type,
260
+ content_disposition=content_disposition,
231
261
  )
232
262
  ).parsed
@@ -1,9 +1,14 @@
1
- from typing import Any, Dict, List, Type, TypeVar
1
+ from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
2
2
 
3
3
  from attrs import define as _attrs_define
4
4
  from attrs import field as _attrs_field
5
5
 
6
6
  from ..models.create_http_trigger_json_body_http_method import CreateHttpTriggerJsonBodyHttpMethod
7
+ from ..types import UNSET, Unset
8
+
9
+ if TYPE_CHECKING:
10
+ from ..models.create_http_trigger_json_body_static_asset_config import CreateHttpTriggerJsonBodyStaticAssetConfig
11
+
7
12
 
8
13
  T = TypeVar("T", bound="CreateHttpTriggerJsonBody")
9
14
 
@@ -19,6 +24,7 @@ class CreateHttpTriggerJsonBody:
19
24
  http_method (CreateHttpTriggerJsonBodyHttpMethod):
20
25
  is_async (bool):
21
26
  requires_auth (bool):
27
+ static_asset_config (Union[Unset, CreateHttpTriggerJsonBodyStaticAssetConfig]):
22
28
  """
23
29
 
24
30
  path: str
@@ -28,6 +34,7 @@ class CreateHttpTriggerJsonBody:
28
34
  http_method: CreateHttpTriggerJsonBodyHttpMethod
29
35
  is_async: bool
30
36
  requires_auth: bool
37
+ static_asset_config: Union[Unset, "CreateHttpTriggerJsonBodyStaticAssetConfig"] = UNSET
31
38
  additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
32
39
 
33
40
  def to_dict(self) -> Dict[str, Any]:
@@ -39,6 +46,9 @@ class CreateHttpTriggerJsonBody:
39
46
 
40
47
  is_async = self.is_async
41
48
  requires_auth = self.requires_auth
49
+ static_asset_config: Union[Unset, Dict[str, Any]] = UNSET
50
+ if not isinstance(self.static_asset_config, Unset):
51
+ static_asset_config = self.static_asset_config.to_dict()
42
52
 
43
53
  field_dict: Dict[str, Any] = {}
44
54
  field_dict.update(self.additional_properties)
@@ -53,11 +63,17 @@ class CreateHttpTriggerJsonBody:
53
63
  "requires_auth": requires_auth,
54
64
  }
55
65
  )
66
+ if static_asset_config is not UNSET:
67
+ field_dict["static_asset_config"] = static_asset_config
56
68
 
57
69
  return field_dict
58
70
 
59
71
  @classmethod
60
72
  def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
73
+ from ..models.create_http_trigger_json_body_static_asset_config import (
74
+ CreateHttpTriggerJsonBodyStaticAssetConfig,
75
+ )
76
+
61
77
  d = src_dict.copy()
62
78
  path = d.pop("path")
63
79
 
@@ -73,6 +89,13 @@ class CreateHttpTriggerJsonBody:
73
89
 
74
90
  requires_auth = d.pop("requires_auth")
75
91
 
92
+ _static_asset_config = d.pop("static_asset_config", UNSET)
93
+ static_asset_config: Union[Unset, CreateHttpTriggerJsonBodyStaticAssetConfig]
94
+ if isinstance(_static_asset_config, Unset):
95
+ static_asset_config = UNSET
96
+ else:
97
+ static_asset_config = CreateHttpTriggerJsonBodyStaticAssetConfig.from_dict(_static_asset_config)
98
+
76
99
  create_http_trigger_json_body = cls(
77
100
  path=path,
78
101
  script_path=script_path,
@@ -81,6 +104,7 @@ class CreateHttpTriggerJsonBody:
81
104
  http_method=http_method,
82
105
  is_async=is_async,
83
106
  requires_auth=requires_auth,
107
+ static_asset_config=static_asset_config,
84
108
  )
85
109
 
86
110
  create_http_trigger_json_body.additional_properties = d
@@ -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="CreateHttpTriggerJsonBodyStaticAssetConfig")
9
+
10
+
11
+ @_attrs_define
12
+ class CreateHttpTriggerJsonBodyStaticAssetConfig:
13
+ """
14
+ Attributes:
15
+ s3 (str):
16
+ storage (Union[Unset, str]):
17
+ filename (Union[Unset, str]):
18
+ """
19
+
20
+ s3: str
21
+ storage: Union[Unset, str] = UNSET
22
+ filename: 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
+ s3 = self.s3
27
+ storage = self.storage
28
+ filename = self.filename
29
+
30
+ field_dict: Dict[str, Any] = {}
31
+ field_dict.update(self.additional_properties)
32
+ field_dict.update(
33
+ {
34
+ "s3": s3,
35
+ }
36
+ )
37
+ if storage is not UNSET:
38
+ field_dict["storage"] = storage
39
+ if filename is not UNSET:
40
+ field_dict["filename"] = filename
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
+ s3 = d.pop("s3")
48
+
49
+ storage = d.pop("storage", UNSET)
50
+
51
+ filename = d.pop("filename", UNSET)
52
+
53
+ create_http_trigger_json_body_static_asset_config = cls(
54
+ s3=s3,
55
+ storage=storage,
56
+ filename=filename,
57
+ )
58
+
59
+ create_http_trigger_json_body_static_asset_config.additional_properties = d
60
+ return create_http_trigger_json_body_static_asset_config
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
@@ -1,4 +1,4 @@
1
- from typing import Any, Dict, List, Type, TypeVar, Union
1
+ from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
2
2
 
3
3
  from attrs import define as _attrs_define
4
4
  from attrs import field as _attrs_field
@@ -6,6 +6,10 @@ from attrs import field as _attrs_field
6
6
  from ..models.edit_http_trigger_http_method import EditHttpTriggerHttpMethod
7
7
  from ..types import UNSET, Unset
8
8
 
9
+ if TYPE_CHECKING:
10
+ from ..models.edit_http_trigger_static_asset_config import EditHttpTriggerStaticAssetConfig
11
+
12
+
9
13
  T = TypeVar("T", bound="EditHttpTrigger")
10
14
 
11
15
 
@@ -20,6 +24,7 @@ class EditHttpTrigger:
20
24
  is_async (bool):
21
25
  requires_auth (bool):
22
26
  route_path (Union[Unset, str]):
27
+ static_asset_config (Union[Unset, EditHttpTriggerStaticAssetConfig]):
23
28
  """
24
29
 
25
30
  path: str
@@ -29,6 +34,7 @@ class EditHttpTrigger:
29
34
  is_async: bool
30
35
  requires_auth: bool
31
36
  route_path: Union[Unset, str] = UNSET
37
+ static_asset_config: Union[Unset, "EditHttpTriggerStaticAssetConfig"] = UNSET
32
38
  additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
33
39
 
34
40
  def to_dict(self) -> Dict[str, Any]:
@@ -40,6 +46,9 @@ class EditHttpTrigger:
40
46
  is_async = self.is_async
41
47
  requires_auth = self.requires_auth
42
48
  route_path = self.route_path
49
+ static_asset_config: Union[Unset, Dict[str, Any]] = UNSET
50
+ if not isinstance(self.static_asset_config, Unset):
51
+ static_asset_config = self.static_asset_config.to_dict()
43
52
 
44
53
  field_dict: Dict[str, Any] = {}
45
54
  field_dict.update(self.additional_properties)
@@ -55,11 +64,15 @@ class EditHttpTrigger:
55
64
  )
56
65
  if route_path is not UNSET:
57
66
  field_dict["route_path"] = route_path
67
+ if static_asset_config is not UNSET:
68
+ field_dict["static_asset_config"] = static_asset_config
58
69
 
59
70
  return field_dict
60
71
 
61
72
  @classmethod
62
73
  def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
74
+ from ..models.edit_http_trigger_static_asset_config import EditHttpTriggerStaticAssetConfig
75
+
63
76
  d = src_dict.copy()
64
77
  path = d.pop("path")
65
78
 
@@ -75,6 +88,13 @@ class EditHttpTrigger:
75
88
 
76
89
  route_path = d.pop("route_path", UNSET)
77
90
 
91
+ _static_asset_config = d.pop("static_asset_config", UNSET)
92
+ static_asset_config: Union[Unset, EditHttpTriggerStaticAssetConfig]
93
+ if isinstance(_static_asset_config, Unset):
94
+ static_asset_config = UNSET
95
+ else:
96
+ static_asset_config = EditHttpTriggerStaticAssetConfig.from_dict(_static_asset_config)
97
+
78
98
  edit_http_trigger = cls(
79
99
  path=path,
80
100
  script_path=script_path,
@@ -83,6 +103,7 @@ class EditHttpTrigger:
83
103
  is_async=is_async,
84
104
  requires_auth=requires_auth,
85
105
  route_path=route_path,
106
+ static_asset_config=static_asset_config,
86
107
  )
87
108
 
88
109
  edit_http_trigger.additional_properties = d
@@ -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="EditHttpTriggerStaticAssetConfig")
9
+
10
+
11
+ @_attrs_define
12
+ class EditHttpTriggerStaticAssetConfig:
13
+ """
14
+ Attributes:
15
+ s3 (str):
16
+ storage (Union[Unset, str]):
17
+ filename (Union[Unset, str]):
18
+ """
19
+
20
+ s3: str
21
+ storage: Union[Unset, str] = UNSET
22
+ filename: 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
+ s3 = self.s3
27
+ storage = self.storage
28
+ filename = self.filename
29
+
30
+ field_dict: Dict[str, Any] = {}
31
+ field_dict.update(self.additional_properties)
32
+ field_dict.update(
33
+ {
34
+ "s3": s3,
35
+ }
36
+ )
37
+ if storage is not UNSET:
38
+ field_dict["storage"] = storage
39
+ if filename is not UNSET:
40
+ field_dict["filename"] = filename
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
+ s3 = d.pop("s3")
48
+
49
+ storage = d.pop("storage", UNSET)
50
+
51
+ filename = d.pop("filename", UNSET)
52
+
53
+ edit_http_trigger_static_asset_config = cls(
54
+ s3=s3,
55
+ storage=storage,
56
+ filename=filename,
57
+ )
58
+
59
+ edit_http_trigger_static_asset_config.additional_properties = d
60
+ return edit_http_trigger_static_asset_config
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
@@ -1,14 +1,16 @@
1
1
  import datetime
2
- from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar
2
+ from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
3
3
 
4
4
  from attrs import define as _attrs_define
5
5
  from attrs import field as _attrs_field
6
6
  from dateutil.parser import isoparse
7
7
 
8
8
  from ..models.get_http_trigger_response_200_http_method import GetHttpTriggerResponse200HttpMethod
9
+ from ..types import UNSET, Unset
9
10
 
10
11
  if TYPE_CHECKING:
11
12
  from ..models.get_http_trigger_response_200_extra_perms import GetHttpTriggerResponse200ExtraPerms
13
+ from ..models.get_http_trigger_response_200_static_asset_config import GetHttpTriggerResponse200StaticAssetConfig
12
14
 
13
15
 
14
16
  T = TypeVar("T", bound="GetHttpTriggerResponse200")
@@ -30,6 +32,7 @@ class GetHttpTriggerResponse200:
30
32
  http_method (GetHttpTriggerResponse200HttpMethod):
31
33
  is_async (bool):
32
34
  requires_auth (bool):
35
+ static_asset_config (Union[Unset, GetHttpTriggerResponse200StaticAssetConfig]):
33
36
  """
34
37
 
35
38
  path: str
@@ -44,6 +47,7 @@ class GetHttpTriggerResponse200:
44
47
  http_method: GetHttpTriggerResponse200HttpMethod
45
48
  is_async: bool
46
49
  requires_auth: bool
50
+ static_asset_config: Union[Unset, "GetHttpTriggerResponse200StaticAssetConfig"] = UNSET
47
51
  additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
48
52
 
49
53
  def to_dict(self) -> Dict[str, Any]:
@@ -62,6 +66,9 @@ class GetHttpTriggerResponse200:
62
66
 
63
67
  is_async = self.is_async
64
68
  requires_auth = self.requires_auth
69
+ static_asset_config: Union[Unset, Dict[str, Any]] = UNSET
70
+ if not isinstance(self.static_asset_config, Unset):
71
+ static_asset_config = self.static_asset_config.to_dict()
65
72
 
66
73
  field_dict: Dict[str, Any] = {}
67
74
  field_dict.update(self.additional_properties)
@@ -81,12 +88,17 @@ class GetHttpTriggerResponse200:
81
88
  "requires_auth": requires_auth,
82
89
  }
83
90
  )
91
+ if static_asset_config is not UNSET:
92
+ field_dict["static_asset_config"] = static_asset_config
84
93
 
85
94
  return field_dict
86
95
 
87
96
  @classmethod
88
97
  def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
89
98
  from ..models.get_http_trigger_response_200_extra_perms import GetHttpTriggerResponse200ExtraPerms
99
+ from ..models.get_http_trigger_response_200_static_asset_config import (
100
+ GetHttpTriggerResponse200StaticAssetConfig,
101
+ )
90
102
 
91
103
  d = src_dict.copy()
92
104
  path = d.pop("path")
@@ -113,6 +125,13 @@ class GetHttpTriggerResponse200:
113
125
 
114
126
  requires_auth = d.pop("requires_auth")
115
127
 
128
+ _static_asset_config = d.pop("static_asset_config", UNSET)
129
+ static_asset_config: Union[Unset, GetHttpTriggerResponse200StaticAssetConfig]
130
+ if isinstance(_static_asset_config, Unset):
131
+ static_asset_config = UNSET
132
+ else:
133
+ static_asset_config = GetHttpTriggerResponse200StaticAssetConfig.from_dict(_static_asset_config)
134
+
116
135
  get_http_trigger_response_200 = cls(
117
136
  path=path,
118
137
  edited_by=edited_by,
@@ -126,6 +145,7 @@ class GetHttpTriggerResponse200:
126
145
  http_method=http_method,
127
146
  is_async=is_async,
128
147
  requires_auth=requires_auth,
148
+ static_asset_config=static_asset_config,
129
149
  )
130
150
 
131
151
  get_http_trigger_response_200.additional_properties = d
@@ -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="GetHttpTriggerResponse200StaticAssetConfig")
9
+
10
+
11
+ @_attrs_define
12
+ class GetHttpTriggerResponse200StaticAssetConfig:
13
+ """
14
+ Attributes:
15
+ s3 (str):
16
+ storage (Union[Unset, str]):
17
+ filename (Union[Unset, str]):
18
+ """
19
+
20
+ s3: str
21
+ storage: Union[Unset, str] = UNSET
22
+ filename: 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
+ s3 = self.s3
27
+ storage = self.storage
28
+ filename = self.filename
29
+
30
+ field_dict: Dict[str, Any] = {}
31
+ field_dict.update(self.additional_properties)
32
+ field_dict.update(
33
+ {
34
+ "s3": s3,
35
+ }
36
+ )
37
+ if storage is not UNSET:
38
+ field_dict["storage"] = storage
39
+ if filename is not UNSET:
40
+ field_dict["filename"] = filename
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
+ s3 = d.pop("s3")
48
+
49
+ storage = d.pop("storage", UNSET)
50
+
51
+ filename = d.pop("filename", UNSET)
52
+
53
+ get_http_trigger_response_200_static_asset_config = cls(
54
+ s3=s3,
55
+ storage=storage,
56
+ filename=filename,
57
+ )
58
+
59
+ get_http_trigger_response_200_static_asset_config.additional_properties = d
60
+ return get_http_trigger_response_200_static_asset_config
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
@@ -1,14 +1,16 @@
1
1
  import datetime
2
- from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar
2
+ from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
3
3
 
4
4
  from attrs import define as _attrs_define
5
5
  from attrs import field as _attrs_field
6
6
  from dateutil.parser import isoparse
7
7
 
8
8
  from ..models.http_trigger_http_method import HttpTriggerHttpMethod
9
+ from ..types import UNSET, Unset
9
10
 
10
11
  if TYPE_CHECKING:
11
12
  from ..models.http_trigger_extra_perms import HttpTriggerExtraPerms
13
+ from ..models.http_trigger_static_asset_config import HttpTriggerStaticAssetConfig
12
14
 
13
15
 
14
16
  T = TypeVar("T", bound="HttpTrigger")
@@ -30,6 +32,7 @@ class HttpTrigger:
30
32
  http_method (HttpTriggerHttpMethod):
31
33
  is_async (bool):
32
34
  requires_auth (bool):
35
+ static_asset_config (Union[Unset, HttpTriggerStaticAssetConfig]):
33
36
  """
34
37
 
35
38
  path: str
@@ -44,6 +47,7 @@ class HttpTrigger:
44
47
  http_method: HttpTriggerHttpMethod
45
48
  is_async: bool
46
49
  requires_auth: bool
50
+ static_asset_config: Union[Unset, "HttpTriggerStaticAssetConfig"] = UNSET
47
51
  additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
48
52
 
49
53
  def to_dict(self) -> Dict[str, Any]:
@@ -62,6 +66,9 @@ class HttpTrigger:
62
66
 
63
67
  is_async = self.is_async
64
68
  requires_auth = self.requires_auth
69
+ static_asset_config: Union[Unset, Dict[str, Any]] = UNSET
70
+ if not isinstance(self.static_asset_config, Unset):
71
+ static_asset_config = self.static_asset_config.to_dict()
65
72
 
66
73
  field_dict: Dict[str, Any] = {}
67
74
  field_dict.update(self.additional_properties)
@@ -81,12 +88,15 @@ class HttpTrigger:
81
88
  "requires_auth": requires_auth,
82
89
  }
83
90
  )
91
+ if static_asset_config is not UNSET:
92
+ field_dict["static_asset_config"] = static_asset_config
84
93
 
85
94
  return field_dict
86
95
 
87
96
  @classmethod
88
97
  def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
89
98
  from ..models.http_trigger_extra_perms import HttpTriggerExtraPerms
99
+ from ..models.http_trigger_static_asset_config import HttpTriggerStaticAssetConfig
90
100
 
91
101
  d = src_dict.copy()
92
102
  path = d.pop("path")
@@ -113,6 +123,13 @@ class HttpTrigger:
113
123
 
114
124
  requires_auth = d.pop("requires_auth")
115
125
 
126
+ _static_asset_config = d.pop("static_asset_config", UNSET)
127
+ static_asset_config: Union[Unset, HttpTriggerStaticAssetConfig]
128
+ if isinstance(_static_asset_config, Unset):
129
+ static_asset_config = UNSET
130
+ else:
131
+ static_asset_config = HttpTriggerStaticAssetConfig.from_dict(_static_asset_config)
132
+
116
133
  http_trigger = cls(
117
134
  path=path,
118
135
  edited_by=edited_by,
@@ -126,6 +143,7 @@ class HttpTrigger:
126
143
  http_method=http_method,
127
144
  is_async=is_async,
128
145
  requires_auth=requires_auth,
146
+ static_asset_config=static_asset_config,
129
147
  )
130
148
 
131
149
  http_trigger.additional_properties = d
@@ -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="HttpTriggerStaticAssetConfig")
9
+
10
+
11
+ @_attrs_define
12
+ class HttpTriggerStaticAssetConfig:
13
+ """
14
+ Attributes:
15
+ s3 (str):
16
+ storage (Union[Unset, str]):
17
+ filename (Union[Unset, str]):
18
+ """
19
+
20
+ s3: str
21
+ storage: Union[Unset, str] = UNSET
22
+ filename: 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
+ s3 = self.s3
27
+ storage = self.storage
28
+ filename = self.filename
29
+
30
+ field_dict: Dict[str, Any] = {}
31
+ field_dict.update(self.additional_properties)
32
+ field_dict.update(
33
+ {
34
+ "s3": s3,
35
+ }
36
+ )
37
+ if storage is not UNSET:
38
+ field_dict["storage"] = storage
39
+ if filename is not UNSET:
40
+ field_dict["filename"] = filename
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
+ s3 = d.pop("s3")
48
+
49
+ storage = d.pop("storage", UNSET)
50
+
51
+ filename = d.pop("filename", UNSET)
52
+
53
+ http_trigger_static_asset_config = cls(
54
+ s3=s3,
55
+ storage=storage,
56
+ filename=filename,
57
+ )
58
+
59
+ http_trigger_static_asset_config.additional_properties = d
60
+ return http_trigger_static_asset_config
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
@@ -1,14 +1,18 @@
1
1
  import datetime
2
- from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar
2
+ from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
3
3
 
4
4
  from attrs import define as _attrs_define
5
5
  from attrs import field as _attrs_field
6
6
  from dateutil.parser import isoparse
7
7
 
8
8
  from ..models.list_http_triggers_response_200_item_http_method import ListHttpTriggersResponse200ItemHttpMethod
9
+ from ..types import UNSET, Unset
9
10
 
10
11
  if TYPE_CHECKING:
11
12
  from ..models.list_http_triggers_response_200_item_extra_perms import ListHttpTriggersResponse200ItemExtraPerms
13
+ from ..models.list_http_triggers_response_200_item_static_asset_config import (
14
+ ListHttpTriggersResponse200ItemStaticAssetConfig,
15
+ )
12
16
 
13
17
 
14
18
  T = TypeVar("T", bound="ListHttpTriggersResponse200Item")
@@ -30,6 +34,7 @@ class ListHttpTriggersResponse200Item:
30
34
  http_method (ListHttpTriggersResponse200ItemHttpMethod):
31
35
  is_async (bool):
32
36
  requires_auth (bool):
37
+ static_asset_config (Union[Unset, ListHttpTriggersResponse200ItemStaticAssetConfig]):
33
38
  """
34
39
 
35
40
  path: str
@@ -44,6 +49,7 @@ class ListHttpTriggersResponse200Item:
44
49
  http_method: ListHttpTriggersResponse200ItemHttpMethod
45
50
  is_async: bool
46
51
  requires_auth: bool
52
+ static_asset_config: Union[Unset, "ListHttpTriggersResponse200ItemStaticAssetConfig"] = UNSET
47
53
  additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
48
54
 
49
55
  def to_dict(self) -> Dict[str, Any]:
@@ -62,6 +68,9 @@ class ListHttpTriggersResponse200Item:
62
68
 
63
69
  is_async = self.is_async
64
70
  requires_auth = self.requires_auth
71
+ static_asset_config: Union[Unset, Dict[str, Any]] = UNSET
72
+ if not isinstance(self.static_asset_config, Unset):
73
+ static_asset_config = self.static_asset_config.to_dict()
65
74
 
66
75
  field_dict: Dict[str, Any] = {}
67
76
  field_dict.update(self.additional_properties)
@@ -81,12 +90,17 @@ class ListHttpTriggersResponse200Item:
81
90
  "requires_auth": requires_auth,
82
91
  }
83
92
  )
93
+ if static_asset_config is not UNSET:
94
+ field_dict["static_asset_config"] = static_asset_config
84
95
 
85
96
  return field_dict
86
97
 
87
98
  @classmethod
88
99
  def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
89
100
  from ..models.list_http_triggers_response_200_item_extra_perms import ListHttpTriggersResponse200ItemExtraPerms
101
+ from ..models.list_http_triggers_response_200_item_static_asset_config import (
102
+ ListHttpTriggersResponse200ItemStaticAssetConfig,
103
+ )
90
104
 
91
105
  d = src_dict.copy()
92
106
  path = d.pop("path")
@@ -113,6 +127,13 @@ class ListHttpTriggersResponse200Item:
113
127
 
114
128
  requires_auth = d.pop("requires_auth")
115
129
 
130
+ _static_asset_config = d.pop("static_asset_config", UNSET)
131
+ static_asset_config: Union[Unset, ListHttpTriggersResponse200ItemStaticAssetConfig]
132
+ if isinstance(_static_asset_config, Unset):
133
+ static_asset_config = UNSET
134
+ else:
135
+ static_asset_config = ListHttpTriggersResponse200ItemStaticAssetConfig.from_dict(_static_asset_config)
136
+
116
137
  list_http_triggers_response_200_item = cls(
117
138
  path=path,
118
139
  edited_by=edited_by,
@@ -126,6 +147,7 @@ class ListHttpTriggersResponse200Item:
126
147
  http_method=http_method,
127
148
  is_async=is_async,
128
149
  requires_auth=requires_auth,
150
+ static_asset_config=static_asset_config,
129
151
  )
130
152
 
131
153
  list_http_triggers_response_200_item.additional_properties = d
@@ -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="ListHttpTriggersResponse200ItemStaticAssetConfig")
9
+
10
+
11
+ @_attrs_define
12
+ class ListHttpTriggersResponse200ItemStaticAssetConfig:
13
+ """
14
+ Attributes:
15
+ s3 (str):
16
+ storage (Union[Unset, str]):
17
+ filename (Union[Unset, str]):
18
+ """
19
+
20
+ s3: str
21
+ storage: Union[Unset, str] = UNSET
22
+ filename: 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
+ s3 = self.s3
27
+ storage = self.storage
28
+ filename = self.filename
29
+
30
+ field_dict: Dict[str, Any] = {}
31
+ field_dict.update(self.additional_properties)
32
+ field_dict.update(
33
+ {
34
+ "s3": s3,
35
+ }
36
+ )
37
+ if storage is not UNSET:
38
+ field_dict["storage"] = storage
39
+ if filename is not UNSET:
40
+ field_dict["filename"] = filename
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
+ s3 = d.pop("s3")
48
+
49
+ storage = d.pop("storage", UNSET)
50
+
51
+ filename = d.pop("filename", UNSET)
52
+
53
+ list_http_triggers_response_200_item_static_asset_config = cls(
54
+ s3=s3,
55
+ storage=storage,
56
+ filename=filename,
57
+ )
58
+
59
+ list_http_triggers_response_200_item_static_asset_config.additional_properties = d
60
+ return list_http_triggers_response_200_item_static_asset_config
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
@@ -1,9 +1,14 @@
1
- from typing import Any, Dict, List, Type, TypeVar
1
+ from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
2
2
 
3
3
  from attrs import define as _attrs_define
4
4
  from attrs import field as _attrs_field
5
5
 
6
6
  from ..models.new_http_trigger_http_method import NewHttpTriggerHttpMethod
7
+ from ..types import UNSET, Unset
8
+
9
+ if TYPE_CHECKING:
10
+ from ..models.new_http_trigger_static_asset_config import NewHttpTriggerStaticAssetConfig
11
+
7
12
 
8
13
  T = TypeVar("T", bound="NewHttpTrigger")
9
14
 
@@ -19,6 +24,7 @@ class NewHttpTrigger:
19
24
  http_method (NewHttpTriggerHttpMethod):
20
25
  is_async (bool):
21
26
  requires_auth (bool):
27
+ static_asset_config (Union[Unset, NewHttpTriggerStaticAssetConfig]):
22
28
  """
23
29
 
24
30
  path: str
@@ -28,6 +34,7 @@ class NewHttpTrigger:
28
34
  http_method: NewHttpTriggerHttpMethod
29
35
  is_async: bool
30
36
  requires_auth: bool
37
+ static_asset_config: Union[Unset, "NewHttpTriggerStaticAssetConfig"] = UNSET
31
38
  additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
32
39
 
33
40
  def to_dict(self) -> Dict[str, Any]:
@@ -39,6 +46,9 @@ class NewHttpTrigger:
39
46
 
40
47
  is_async = self.is_async
41
48
  requires_auth = self.requires_auth
49
+ static_asset_config: Union[Unset, Dict[str, Any]] = UNSET
50
+ if not isinstance(self.static_asset_config, Unset):
51
+ static_asset_config = self.static_asset_config.to_dict()
42
52
 
43
53
  field_dict: Dict[str, Any] = {}
44
54
  field_dict.update(self.additional_properties)
@@ -53,11 +63,15 @@ class NewHttpTrigger:
53
63
  "requires_auth": requires_auth,
54
64
  }
55
65
  )
66
+ if static_asset_config is not UNSET:
67
+ field_dict["static_asset_config"] = static_asset_config
56
68
 
57
69
  return field_dict
58
70
 
59
71
  @classmethod
60
72
  def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
73
+ from ..models.new_http_trigger_static_asset_config import NewHttpTriggerStaticAssetConfig
74
+
61
75
  d = src_dict.copy()
62
76
  path = d.pop("path")
63
77
 
@@ -73,6 +87,13 @@ class NewHttpTrigger:
73
87
 
74
88
  requires_auth = d.pop("requires_auth")
75
89
 
90
+ _static_asset_config = d.pop("static_asset_config", UNSET)
91
+ static_asset_config: Union[Unset, NewHttpTriggerStaticAssetConfig]
92
+ if isinstance(_static_asset_config, Unset):
93
+ static_asset_config = UNSET
94
+ else:
95
+ static_asset_config = NewHttpTriggerStaticAssetConfig.from_dict(_static_asset_config)
96
+
76
97
  new_http_trigger = cls(
77
98
  path=path,
78
99
  script_path=script_path,
@@ -81,6 +102,7 @@ class NewHttpTrigger:
81
102
  http_method=http_method,
82
103
  is_async=is_async,
83
104
  requires_auth=requires_auth,
105
+ static_asset_config=static_asset_config,
84
106
  )
85
107
 
86
108
  new_http_trigger.additional_properties = d
@@ -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="NewHttpTriggerStaticAssetConfig")
9
+
10
+
11
+ @_attrs_define
12
+ class NewHttpTriggerStaticAssetConfig:
13
+ """
14
+ Attributes:
15
+ s3 (str):
16
+ storage (Union[Unset, str]):
17
+ filename (Union[Unset, str]):
18
+ """
19
+
20
+ s3: str
21
+ storage: Union[Unset, str] = UNSET
22
+ filename: 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
+ s3 = self.s3
27
+ storage = self.storage
28
+ filename = self.filename
29
+
30
+ field_dict: Dict[str, Any] = {}
31
+ field_dict.update(self.additional_properties)
32
+ field_dict.update(
33
+ {
34
+ "s3": s3,
35
+ }
36
+ )
37
+ if storage is not UNSET:
38
+ field_dict["storage"] = storage
39
+ if filename is not UNSET:
40
+ field_dict["filename"] = filename
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
+ s3 = d.pop("s3")
48
+
49
+ storage = d.pop("storage", UNSET)
50
+
51
+ filename = d.pop("filename", UNSET)
52
+
53
+ new_http_trigger_static_asset_config = cls(
54
+ s3=s3,
55
+ storage=storage,
56
+ filename=filename,
57
+ )
58
+
59
+ new_http_trigger_static_asset_config.additional_properties = d
60
+ return new_http_trigger_static_asset_config
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
@@ -1,4 +1,4 @@
1
- from typing import Any, Dict, List, Type, TypeVar, Union
1
+ from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
2
2
 
3
3
  from attrs import define as _attrs_define
4
4
  from attrs import field as _attrs_field
@@ -6,6 +6,10 @@ from attrs import field as _attrs_field
6
6
  from ..models.update_http_trigger_json_body_http_method import UpdateHttpTriggerJsonBodyHttpMethod
7
7
  from ..types import UNSET, Unset
8
8
 
9
+ if TYPE_CHECKING:
10
+ from ..models.update_http_trigger_json_body_static_asset_config import UpdateHttpTriggerJsonBodyStaticAssetConfig
11
+
12
+
9
13
  T = TypeVar("T", bound="UpdateHttpTriggerJsonBody")
10
14
 
11
15
 
@@ -20,6 +24,7 @@ class UpdateHttpTriggerJsonBody:
20
24
  is_async (bool):
21
25
  requires_auth (bool):
22
26
  route_path (Union[Unset, str]):
27
+ static_asset_config (Union[Unset, UpdateHttpTriggerJsonBodyStaticAssetConfig]):
23
28
  """
24
29
 
25
30
  path: str
@@ -29,6 +34,7 @@ class UpdateHttpTriggerJsonBody:
29
34
  is_async: bool
30
35
  requires_auth: bool
31
36
  route_path: Union[Unset, str] = UNSET
37
+ static_asset_config: Union[Unset, "UpdateHttpTriggerJsonBodyStaticAssetConfig"] = UNSET
32
38
  additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
33
39
 
34
40
  def to_dict(self) -> Dict[str, Any]:
@@ -40,6 +46,9 @@ class UpdateHttpTriggerJsonBody:
40
46
  is_async = self.is_async
41
47
  requires_auth = self.requires_auth
42
48
  route_path = self.route_path
49
+ static_asset_config: Union[Unset, Dict[str, Any]] = UNSET
50
+ if not isinstance(self.static_asset_config, Unset):
51
+ static_asset_config = self.static_asset_config.to_dict()
43
52
 
44
53
  field_dict: Dict[str, Any] = {}
45
54
  field_dict.update(self.additional_properties)
@@ -55,11 +64,17 @@ class UpdateHttpTriggerJsonBody:
55
64
  )
56
65
  if route_path is not UNSET:
57
66
  field_dict["route_path"] = route_path
67
+ if static_asset_config is not UNSET:
68
+ field_dict["static_asset_config"] = static_asset_config
58
69
 
59
70
  return field_dict
60
71
 
61
72
  @classmethod
62
73
  def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
74
+ from ..models.update_http_trigger_json_body_static_asset_config import (
75
+ UpdateHttpTriggerJsonBodyStaticAssetConfig,
76
+ )
77
+
63
78
  d = src_dict.copy()
64
79
  path = d.pop("path")
65
80
 
@@ -75,6 +90,13 @@ class UpdateHttpTriggerJsonBody:
75
90
 
76
91
  route_path = d.pop("route_path", UNSET)
77
92
 
93
+ _static_asset_config = d.pop("static_asset_config", UNSET)
94
+ static_asset_config: Union[Unset, UpdateHttpTriggerJsonBodyStaticAssetConfig]
95
+ if isinstance(_static_asset_config, Unset):
96
+ static_asset_config = UNSET
97
+ else:
98
+ static_asset_config = UpdateHttpTriggerJsonBodyStaticAssetConfig.from_dict(_static_asset_config)
99
+
78
100
  update_http_trigger_json_body = cls(
79
101
  path=path,
80
102
  script_path=script_path,
@@ -83,6 +105,7 @@ class UpdateHttpTriggerJsonBody:
83
105
  is_async=is_async,
84
106
  requires_auth=requires_auth,
85
107
  route_path=route_path,
108
+ static_asset_config=static_asset_config,
86
109
  )
87
110
 
88
111
  update_http_trigger_json_body.additional_properties = d
@@ -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="UpdateHttpTriggerJsonBodyStaticAssetConfig")
9
+
10
+
11
+ @_attrs_define
12
+ class UpdateHttpTriggerJsonBodyStaticAssetConfig:
13
+ """
14
+ Attributes:
15
+ s3 (str):
16
+ storage (Union[Unset, str]):
17
+ filename (Union[Unset, str]):
18
+ """
19
+
20
+ s3: str
21
+ storage: Union[Unset, str] = UNSET
22
+ filename: 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
+ s3 = self.s3
27
+ storage = self.storage
28
+ filename = self.filename
29
+
30
+ field_dict: Dict[str, Any] = {}
31
+ field_dict.update(self.additional_properties)
32
+ field_dict.update(
33
+ {
34
+ "s3": s3,
35
+ }
36
+ )
37
+ if storage is not UNSET:
38
+ field_dict["storage"] = storage
39
+ if filename is not UNSET:
40
+ field_dict["filename"] = filename
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
+ s3 = d.pop("s3")
48
+
49
+ storage = d.pop("storage", UNSET)
50
+
51
+ filename = d.pop("filename", UNSET)
52
+
53
+ update_http_trigger_json_body_static_asset_config = cls(
54
+ s3=s3,
55
+ storage=storage,
56
+ filename=filename,
57
+ )
58
+
59
+ update_http_trigger_json_body_static_asset_config.additional_properties = d
60
+ return update_http_trigger_json_body_static_asset_config
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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: windmill-api
3
- Version: 1.420.1
3
+ Version: 1.421.0
4
4
  Summary: A client library for accessing Windmill API
5
5
  License: Apache-2.0
6
6
  Author: Ruben Fiszel
@@ -103,7 +103,7 @@ windmill_api/api/helpers/duckdb_connection_settings.py,sha256=502H6k9P5LU36zs2CE
103
103
  windmill_api/api/helpers/duckdb_connection_settings_v2.py,sha256=178v1AbCL5x2xW9WdayG0luSNDLntjifxOqah_AImfk,5103
104
104
  windmill_api/api/helpers/file_download.py,sha256=uENnyKI26uNL16CVqa9H27eNqu2qzDK084Ii7gIV7uw,6002
105
105
  windmill_api/api/helpers/file_download_parquet_as_csv.py,sha256=nzlg6kGagPlIiobKKsvZtM3fkB4JBWfcD3NOWXPoBBI,3473
106
- windmill_api/api/helpers/file_upload.py,sha256=7PXCvxfhaa4rXTHb4IYxjZEf21gnjIi5t9iFTH9E3x0,7116
106
+ windmill_api/api/helpers/file_upload.py,sha256=ycKgK3Oy46MtyGCtULIeaBRNUqh908ICWOt8FdBtLck,8517
107
107
  windmill_api/api/helpers/list_stored_files.py,sha256=OEkZFqi_GS6VfhMxet0fncyeHOxMGt0goImHHgU9918,6105
108
108
  windmill_api/api/helpers/load_csv_preview.py,sha256=oqt5nXtxRwS9ncQFFjrFVvcMOdlpzOw1z2ft3O1og14,5332
109
109
  windmill_api/api/helpers/load_file_metadata.py,sha256=ILWX7sXLi43pFUHGque5ysWATB4BOQtDq6psGYj4cCQ,4947
@@ -616,8 +616,9 @@ windmill_api/models/create_draft_json_body_typ.py,sha256=tlDcZEr6DnujkY7-5GwNN05
616
616
  windmill_api/models/create_flow_json_body.py,sha256=iT2MBhwnk-mkQfAjoXubkJC6goNLXTmHGiyAlFhdB14,1990
617
617
  windmill_api/models/create_folder_json_body.py,sha256=ZtOmZr-WNjBj4inI449MqiraLHIIAkahu-eD808puDA,2445
618
618
  windmill_api/models/create_group_json_body.py,sha256=KXgcsdIu7W99Ut5xbgH2911BEgrd-BxYAfN5r5TOyuw,1760
619
- windmill_api/models/create_http_trigger_json_body.py,sha256=U_QnPcvcWxZJyD1HmxJbifcAo5LErHlRjwS9nkKIwwU,2922
619
+ windmill_api/models/create_http_trigger_json_body.py,sha256=93nHGQaGWnCWtsVo6PXNjmMtg_BWL243bNbnTBBjWKs,4173
620
620
  windmill_api/models/create_http_trigger_json_body_http_method.py,sha256=ZhVY_jUbOVXcckh4w56I0N9fGd0dYYYNViIhOM3495I,232
621
+ windmill_api/models/create_http_trigger_json_body_static_asset_config.py,sha256=SqNzKOi6BLVpyb7Gb72V452jrnWh3KRijIwr5Eiwox4,2134
621
622
  windmill_api/models/create_input.py,sha256=xs-GIXxzoMlg4-fsHYmxOJe-9PK3YyaIKxsKZKzn32I,1780
622
623
  windmill_api/models/create_input_args.py,sha256=W4GFeXhf_QKetct0a3RbaGfzAIq6MGso76p3l4D9mIs,1233
623
624
  windmill_api/models/create_input_json_body.py,sha256=MBQlyMI3UAcTgya7cg6_Vzz-mwt4zNhZLjPtIE9umbU,1886
@@ -759,8 +760,9 @@ windmill_api/models/edit_default_scripts_json_body.py,sha256=ZStD18RpNC3spa5hcVc
759
760
  windmill_api/models/edit_deploy_to_json_body.py,sha256=sLAkpLZdvhIu671Sz-AycSlpKfo1rSh4UM2JiZ_q9mA,1613
760
761
  windmill_api/models/edit_error_handler_json_body.py,sha256=01ZCafsbWj458_zacBteZJBuiAt3bio2G5FEYvF--jA,3552
761
762
  windmill_api/models/edit_error_handler_json_body_error_handler_extra_args.py,sha256=B7ouUC3nLUEshF7duEgrT3Yank6PfolQqqzmZ2G50Qk,1401
762
- windmill_api/models/edit_http_trigger.py,sha256=gzryvJqZrVboStNbXVDx43ZB7qk5_mULgNGzFceCplw,2941
763
+ windmill_api/models/edit_http_trigger.py,sha256=Ci4RnvW9uDDEBFkMv22MCL_hh-tsMiSZSLrP3Hx7ZLA,4043
763
764
  windmill_api/models/edit_http_trigger_http_method.py,sha256=0ap4m_mxJpb5Fmr1DwT09OVC0nqwGcNvYgh0aoTRbq0,222
765
+ windmill_api/models/edit_http_trigger_static_asset_config.py,sha256=ug13LgqJdVbpl2T-8nURo5vYpuIK9pL2AxlyVQD315U,2078
764
766
  windmill_api/models/edit_large_file_storage_config_json_body.py,sha256=3ybD-0psq-gb-mH4b22Jw6U6Ne3Y4qwqzfilEo-Bgss,2689
765
767
  windmill_api/models/edit_large_file_storage_config_json_body_large_file_storage.py,sha256=mcKSR5dGoBtl8bbGHTA1P-rLwavfTtp3FP9uaVCX9gY,4878
766
768
  windmill_api/models/edit_large_file_storage_config_json_body_large_file_storage_secondary_storage.py,sha256=WdWEt3fkNnVpm-G5FTCA7ojP8cKXuzjtUlDvL0vA6TM,2788
@@ -1568,9 +1570,10 @@ windmill_api/models/get_granular_acls_kind.py,sha256=Czj-YXEJ_WwQWuuxEFBjV_WdLID
1568
1570
  windmill_api/models/get_granular_acls_response_200.py,sha256=GBNLqaaap42IbGX8jniniFTUrtOFgiCLb5n5-2NKRIY,1297
1569
1571
  windmill_api/models/get_group_response_200.py,sha256=FKhClOF65VqXmEIW49y4W8zyMai0Sq_QjMuUG7wIoYY,3087
1570
1572
  windmill_api/models/get_group_response_200_extra_perms.py,sha256=q1U2BWdOWRzK3eHiZlTOS8o9ag5cFvBQFqVBHpDitBc,1315
1571
- windmill_api/models/get_http_trigger_response_200.py,sha256=RX_f19A-9aA7P5EIWCLJdNCq0vmhBQQojz1Wm7f4CH8,4366
1573
+ windmill_api/models/get_http_trigger_response_200.py,sha256=3TIGUEZdTHKvDiL1bDu3NNadCHxAmE_SN26Ob7xClb0,5581
1572
1574
  windmill_api/models/get_http_trigger_response_200_extra_perms.py,sha256=5UVrOgBBmWOUDmXGFKJqcUJ2Zb6Cv2cOKNBTDoMHfe4,1348
1573
1575
  windmill_api/models/get_http_trigger_response_200_http_method.py,sha256=SiFfXYbLQeIe2eshsdUkkiQbdmBRvE2msJwsKRc-prY,232
1576
+ windmill_api/models/get_http_trigger_response_200_static_asset_config.py,sha256=cBlkkRl7Io3S_Kmx46s3IX8S9_lgj3CD66D-KrZBwgA,2134
1574
1577
  windmill_api/models/get_hub_app_by_id_response_200.py,sha256=OZllqUoSiiddf6Id17IM3YZFt_PGzxlXpuho3FU9_AA,1802
1575
1578
  windmill_api/models/get_hub_app_by_id_response_200_app.py,sha256=2xSRzdV7fMr3LujlVrcbtaCp43jPK2-X14kJQivvb-0,1697
1576
1579
  windmill_api/models/get_hub_flow_by_id_response_200.py,sha256=F9cxSpN6leUMfSTwNIO3dlJ1WmdVEymM44L_tWwPoi4,2178
@@ -2101,9 +2104,10 @@ windmill_api/models/global_whoami_response_200.py,sha256=-nzU1oNV2_IwCsVG9qXGlnw
2101
2104
  windmill_api/models/global_whoami_response_200_login_type.py,sha256=grlKtkJE27qxpXSUFBUoLo1-wQf45s82n_hoU7V7PaE,185
2102
2105
  windmill_api/models/group.py,sha256=yEfHcI9FEtk1tV6RS9B3r_vAPK0rqNCCLgIJoLAUZ8M,2890
2103
2106
  windmill_api/models/group_extra_perms.py,sha256=hn0wzgNVtx0HO3XwPsVOie8BJpV6-FypTN5u_851dvg,1236
2104
- windmill_api/models/http_trigger.py,sha256=QEr-gRF2UVAf31HioLaJR0VbRx2VDXG7srAMzWSp27A,4110
2107
+ windmill_api/models/http_trigger.py,sha256=dhWAfAg-dJQRdSTeyVNx_HuzSJGDWwDToQXrb3jX9YU,5182
2105
2108
  windmill_api/models/http_trigger_extra_perms.py,sha256=zoXtrNWbIaURFZKJ2TJlzI3oScR9gJMuhvZdWxRqoGE,1269
2106
2109
  windmill_api/models/http_trigger_http_method.py,sha256=XqInjulsyRD4_aj3Qnao8L8iyoyQkmcciKvHDOW5xjU,218
2110
+ windmill_api/models/http_trigger_static_asset_config.py,sha256=PhPZgj9R-KfC-vajljIemoSKeDe0SMRh76m5K2-oaEA,2055
2107
2111
  windmill_api/models/identity.py,sha256=GWOTbVe-D4S0vWFKG0t2XL33rb3jm8U3e9IjPPaYLUE,1752
2108
2112
  windmill_api/models/identity_type.py,sha256=bysTfdV4jxgFlIt5RoNL_QiYhIrb5KXsKtGZ25MAEaw,143
2109
2113
  windmill_api/models/input_.py,sha256=UF9OiuuN96J_FDdlawvD0WQ6Ml2zIDOKGhvUgTk_Stk,2510
@@ -2536,9 +2540,10 @@ windmill_api/models/list_global_settings_response_200_item.py,sha256=U8fLOxv7Tr1
2536
2540
  windmill_api/models/list_global_settings_response_200_item_value.py,sha256=BwZxPwY1kY_fl9sB6cg8dWtMPGLgKYUpx3ya1qDLcHc,1360
2537
2541
  windmill_api/models/list_groups_response_200_item.py,sha256=xtTEjbZ6Y6EDyMOfSJ0C-xnsZFFHpeDxt85OC-Dl5sw,3170
2538
2542
  windmill_api/models/list_groups_response_200_item_extra_perms.py,sha256=XQmY08M-IhwS1TigMZI7hEcnBJu2Gu13lsTg87xIeXk,1348
2539
- windmill_api/models/list_http_triggers_response_200_item.py,sha256=_AsU7C563x0iCT74153avCiEzMwHc71BpGmg-JlM7GI,4474
2543
+ windmill_api/models/list_http_triggers_response_200_item.py,sha256=AjjizOyEcFSpiB33cS3kFFwGi6a3dRFFZZWtGGoqru4,5756
2540
2544
  windmill_api/models/list_http_triggers_response_200_item_extra_perms.py,sha256=ZHjuezxB-TZOyqS74P_s--E9uC0jiHR-SFnTg2InGiQ,1381
2541
2545
  windmill_api/models/list_http_triggers_response_200_item_http_method.py,sha256=SQJQdl7yA0_V-lObcmCHc-_crescQPx9XNq4dY4x3is,238
2546
+ windmill_api/models/list_http_triggers_response_200_item_static_asset_config.py,sha256=RbKIj8Hrrj3hYRImM950hIKiGb6_27eF98-B-7VKRcw,2167
2542
2547
  windmill_api/models/list_hub_apps_response_200.py,sha256=9TVwZZxUMGpKklt5KFawrV61BXZAK7m8gGhzunBN_zQ,2280
2543
2548
  windmill_api/models/list_hub_apps_response_200_apps_item.py,sha256=XSqHImSq5gtL_uj9aqgvikgQzgWu76dpLPOBzuWi7Q0,2367
2544
2549
  windmill_api/models/list_hub_flows_response_200.py,sha256=Xb1JC2h0Kmsysnry3dP_Z1MYQyDM2fqYQ53Z_CiFXfQ,2324
@@ -2900,8 +2905,9 @@ windmill_api/models/main_arg_signature_args_item_typ_type_4_list_type_1.py,sha25
2900
2905
  windmill_api/models/main_arg_signature_type.py,sha256=Mxw_-nuYLMSWe-536oyZjZJB6Nqz-KDFjSd6IP-vOvg,169
2901
2906
  windmill_api/models/metric_data_point.py,sha256=4EEVfcpe9dJW5Y5ox6LteDn_WmN8xcF09sGCqbflCYU,1750
2902
2907
  windmill_api/models/metric_metadata.py,sha256=KAiWk10xd0Qy0f17O-f-UShercYm3DhXq2CEp8126KY,1676
2903
- windmill_api/models/new_http_trigger.py,sha256=1vl5bu-nRGO4hxwQ1PTBshrTzUNvtv1SL5-YqPIQdME,2804
2908
+ windmill_api/models/new_http_trigger.py,sha256=PmYQcP89S7lJoCFLo21Au4m81hq7XspkeziuMmJX8P4,3938
2904
2909
  windmill_api/models/new_http_trigger_http_method.py,sha256=QlXmwmePd0Cd-Y571W4w5fj9o1Wxu6C3V5yBOrwHx7g,221
2910
+ windmill_api/models/new_http_trigger_static_asset_config.py,sha256=5gdylsbIDInlQhTvrZ4nYnVGV6eHSmP6pb0So1S7Gi8,2073
2905
2911
  windmill_api/models/new_schedule.py,sha256=Qg9GbEXaTgb3LfbBs4veJu3rr0_4ugIh_F_TZTD_Smk,10682
2906
2912
  windmill_api/models/new_schedule_args.py,sha256=-sH4kC_pDJHa1Ph1QY_FGP2QynNEHFwTwm0VuQpmyP0,1233
2907
2913
  windmill_api/models/new_schedule_on_failure_extra_args.py,sha256=-5bhVRLv3sqYuMlNhQxwM8mdbz3f-wgU2_ztnmI9qlQ,1312
@@ -3360,8 +3366,9 @@ windmill_api/models/update_flow_history_json_body.py,sha256=fdEVj323tnHZ8AUUoYBy
3360
3366
  windmill_api/models/update_flow_json_body.py,sha256=Uev6wAFT1_1HOWIBHjCkW3R3XZMm_DJpnLDPr4wMdb8,1699
3361
3367
  windmill_api/models/update_folder_json_body.py,sha256=wHsBhdewo-Zp62VETr6LhrRktfg5N9pC2iUQ9kdAPx0,2268
3362
3368
  windmill_api/models/update_group_json_body.py,sha256=6HoxgdpSBftto-CgPVzh8beTX6oWROAaBf-tZQn5evI,1583
3363
- windmill_api/models/update_http_trigger_json_body.py,sha256=o2xSoWyXjBmc9Qk9lRRMn7DuTlTH0ZlvzmdUm_70dbo,3049
3369
+ windmill_api/models/update_http_trigger_json_body.py,sha256=MBptRyJWgFuXedWDf-nKamffZa-LEB_EcYdVE8HzVe8,4260
3364
3370
  windmill_api/models/update_http_trigger_json_body_http_method.py,sha256=3VNz40Qjv2E3_r5cgVYUpNy2Y--0GWFOnVHeWP7LeZI,232
3371
+ windmill_api/models/update_http_trigger_json_body_static_asset_config.py,sha256=pn_iTJUz1o09IdUMCuK-KCr-GnkwaZbrYVMnlCIq2NA,2134
3365
3372
  windmill_api/models/update_input.py,sha256=E9h0b_RG4vrtV3Xj_zAwS5jHLq3DMyuJ8Y4G4xFP3RE,1733
3366
3373
  windmill_api/models/update_input_json_body.py,sha256=il4nNCFrdp65hhHxyH9vBy7-HC8rhA8XAHqeSoCO6zc,1779
3367
3374
  windmill_api/models/update_instance_group_json_body.py,sha256=dvFD7OE_4aNlV6lEPHHrllqUdzRgT7r1khGGUiLj9I8,1576
@@ -3447,7 +3454,7 @@ windmill_api/models/workspace_git_sync_settings_repositories_item_exclude_types_
3447
3454
  windmill_api/models/workspace_invite.py,sha256=HnAJWGv5LwxWkz1T3fhgHKIccO7RFC1lixwUUXG6CXs,2037
3448
3455
  windmill_api/py.typed,sha256=8ZJUsxZiuOy1oJeVhsTWQhTG_6pTVHVXk5hJL79ebTk,25
3449
3456
  windmill_api/types.py,sha256=GoYub3t4hQP2Yn5tsvShsBfIY3vHUmblU0MXszDx_V0,968
3450
- windmill_api-1.420.1.dist-info/LICENSE,sha256=qJVFNTaOevCeSY6NoXeUG1SPOwQ1K-PxVQ2iEWJzX-A,11348
3451
- windmill_api-1.420.1.dist-info/METADATA,sha256=V9Pm9uMAPPbw2ti5Qs7Drfc2NXitXrEKww-HAL3OjjI,5023
3452
- windmill_api-1.420.1.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
3453
- windmill_api-1.420.1.dist-info/RECORD,,
3457
+ windmill_api-1.421.0.dist-info/LICENSE,sha256=qJVFNTaOevCeSY6NoXeUG1SPOwQ1K-PxVQ2iEWJzX-A,11348
3458
+ windmill_api-1.421.0.dist-info/METADATA,sha256=A3teOmP3P2JGh23NkN4BlfcQgdLO36uQ7Z4Hj_vgQYE,5023
3459
+ windmill_api-1.421.0.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
3460
+ windmill_api-1.421.0.dist-info/RECORD,,