windmill-api 1.497.2__py3-none-any.whl → 1.499.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of windmill-api might be problematic. Click here for more details.

Files changed (51) hide show
  1. windmill_api/api/openapi/__init__.py +0 -0
  2. windmill_api/api/openapi/download_openapi_spec.py +166 -0
  3. windmill_api/api/openapi/generate_openapi_spec.py +105 -0
  4. windmill_api/models/create_http_trigger_json_body.py +16 -0
  5. windmill_api/models/create_http_triggers_json_body_item.py +16 -0
  6. windmill_api/models/download_openapi_spec_json_body.py +150 -0
  7. windmill_api/models/download_openapi_spec_json_body_http_route_filters_item.py +72 -0
  8. windmill_api/models/download_openapi_spec_json_body_info.py +122 -0
  9. windmill_api/models/download_openapi_spec_json_body_info_contact.py +74 -0
  10. windmill_api/models/download_openapi_spec_json_body_info_license.py +76 -0
  11. windmill_api/models/download_openapi_spec_json_body_openapi_spec_format.py +9 -0
  12. windmill_api/models/download_openapi_spec_json_body_webhook_filters_item.py +89 -0
  13. windmill_api/models/download_openapi_spec_json_body_webhook_filters_item_runnable_kind.py +9 -0
  14. windmill_api/models/download_openapi_spec_json_body_webhook_filters_item_user_or_folder_regex.py +10 -0
  15. windmill_api/models/edit_http_trigger.py +16 -0
  16. windmill_api/models/generate_openapi_spec.py +140 -0
  17. windmill_api/models/generate_openapi_spec_http_route_filters_item.py +72 -0
  18. windmill_api/models/generate_openapi_spec_info.py +122 -0
  19. windmill_api/models/generate_openapi_spec_info_contact.py +74 -0
  20. windmill_api/models/generate_openapi_spec_info_license.py +76 -0
  21. windmill_api/models/generate_openapi_spec_json_body.py +150 -0
  22. windmill_api/models/generate_openapi_spec_json_body_http_route_filters_item.py +72 -0
  23. windmill_api/models/generate_openapi_spec_json_body_info.py +122 -0
  24. windmill_api/models/generate_openapi_spec_json_body_info_contact.py +74 -0
  25. windmill_api/models/generate_openapi_spec_json_body_info_license.py +76 -0
  26. windmill_api/models/generate_openapi_spec_json_body_openapi_spec_format.py +9 -0
  27. windmill_api/models/generate_openapi_spec_json_body_webhook_filters_item.py +89 -0
  28. windmill_api/models/generate_openapi_spec_json_body_webhook_filters_item_runnable_kind.py +9 -0
  29. windmill_api/models/generate_openapi_spec_json_body_webhook_filters_item_user_or_folder_regex.py +10 -0
  30. windmill_api/models/generate_openapi_spec_openapi_spec_format.py +9 -0
  31. windmill_api/models/generate_openapi_spec_webhook_filters_item.py +87 -0
  32. windmill_api/models/generate_openapi_spec_webhook_filters_item_runnable_kind.py +9 -0
  33. windmill_api/models/generate_openapi_spec_webhook_filters_item_user_or_folder_regex.py +10 -0
  34. windmill_api/models/get_http_trigger_response_200.py +16 -0
  35. windmill_api/models/http_trigger.py +16 -0
  36. windmill_api/models/list_http_triggers_response_200_item.py +16 -0
  37. windmill_api/models/new_http_trigger.py +16 -0
  38. windmill_api/models/openapi_http_route_filters.py +72 -0
  39. windmill_api/models/openapi_spec_format.py +9 -0
  40. windmill_api/models/openapi_v3_info.py +122 -0
  41. windmill_api/models/openapi_v3_info_contact.py +74 -0
  42. windmill_api/models/openapi_v3_info_license.py +76 -0
  43. windmill_api/models/runnable_kind.py +9 -0
  44. windmill_api/models/update_http_trigger_json_body.py +16 -0
  45. windmill_api/models/webhook_filters.py +83 -0
  46. windmill_api/models/webhook_filters_runnable_kind.py +9 -0
  47. windmill_api/models/webhook_filters_user_or_folder_regex.py +10 -0
  48. {windmill_api-1.497.2.dist-info → windmill_api-1.499.0.dist-info}/METADATA +1 -1
  49. {windmill_api-1.497.2.dist-info → windmill_api-1.499.0.dist-info}/RECORD +51 -12
  50. {windmill_api-1.497.2.dist-info → windmill_api-1.499.0.dist-info}/LICENSE +0 -0
  51. {windmill_api-1.497.2.dist-info → windmill_api-1.499.0.dist-info}/WHEEL +0 -0
@@ -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="GenerateOpenapiSpecJsonBodyInfoLicense")
9
+
10
+
11
+ @_attrs_define
12
+ class GenerateOpenapiSpecJsonBodyInfoLicense:
13
+ """
14
+ Attributes:
15
+ name (str):
16
+ identifier (Union[Unset, str]):
17
+ url (Union[Unset, str]):
18
+ """
19
+
20
+ name: str
21
+ identifier: Union[Unset, str] = UNSET
22
+ url: 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
+ name = self.name
27
+ identifier = self.identifier
28
+ url = self.url
29
+
30
+ field_dict: Dict[str, Any] = {}
31
+ field_dict.update(self.additional_properties)
32
+ field_dict.update(
33
+ {
34
+ "name": name,
35
+ }
36
+ )
37
+ if identifier is not UNSET:
38
+ field_dict["identifier"] = identifier
39
+ if url is not UNSET:
40
+ field_dict["url"] = url
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
+ name = d.pop("name")
48
+
49
+ identifier = d.pop("identifier", UNSET)
50
+
51
+ url = d.pop("url", UNSET)
52
+
53
+ generate_openapi_spec_json_body_info_license = cls(
54
+ name=name,
55
+ identifier=identifier,
56
+ url=url,
57
+ )
58
+
59
+ generate_openapi_spec_json_body_info_license.additional_properties = d
60
+ return generate_openapi_spec_json_body_info_license
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
@@ -0,0 +1,9 @@
1
+ from enum import Enum
2
+
3
+
4
+ class GenerateOpenapiSpecJsonBodyOpenapiSpecFormat(str, Enum):
5
+ JSON = "json"
6
+ YAML = "yaml"
7
+
8
+ def __str__(self) -> str:
9
+ return str(self.value)
@@ -0,0 +1,89 @@
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
+ from ..models.generate_openapi_spec_json_body_webhook_filters_item_runnable_kind import (
7
+ GenerateOpenapiSpecJsonBodyWebhookFiltersItemRunnableKind,
8
+ )
9
+ from ..models.generate_openapi_spec_json_body_webhook_filters_item_user_or_folder_regex import (
10
+ GenerateOpenapiSpecJsonBodyWebhookFiltersItemUserOrFolderRegex,
11
+ )
12
+
13
+ T = TypeVar("T", bound="GenerateOpenapiSpecJsonBodyWebhookFiltersItem")
14
+
15
+
16
+ @_attrs_define
17
+ class GenerateOpenapiSpecJsonBodyWebhookFiltersItem:
18
+ """
19
+ Attributes:
20
+ user_or_folder_regex (GenerateOpenapiSpecJsonBodyWebhookFiltersItemUserOrFolderRegex):
21
+ user_or_folder_regex_value (str):
22
+ path (str):
23
+ runnable_kind (GenerateOpenapiSpecJsonBodyWebhookFiltersItemRunnableKind):
24
+ """
25
+
26
+ user_or_folder_regex: GenerateOpenapiSpecJsonBodyWebhookFiltersItemUserOrFolderRegex
27
+ user_or_folder_regex_value: str
28
+ path: str
29
+ runnable_kind: GenerateOpenapiSpecJsonBodyWebhookFiltersItemRunnableKind
30
+ additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
31
+
32
+ def to_dict(self) -> Dict[str, Any]:
33
+ user_or_folder_regex = self.user_or_folder_regex.value
34
+
35
+ user_or_folder_regex_value = self.user_or_folder_regex_value
36
+ path = self.path
37
+ runnable_kind = self.runnable_kind.value
38
+
39
+ field_dict: Dict[str, Any] = {}
40
+ field_dict.update(self.additional_properties)
41
+ field_dict.update(
42
+ {
43
+ "user_or_folder_regex": user_or_folder_regex,
44
+ "user_or_folder_regex_value": user_or_folder_regex_value,
45
+ "path": path,
46
+ "runnable_kind": runnable_kind,
47
+ }
48
+ )
49
+
50
+ return field_dict
51
+
52
+ @classmethod
53
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
54
+ d = src_dict.copy()
55
+ user_or_folder_regex = GenerateOpenapiSpecJsonBodyWebhookFiltersItemUserOrFolderRegex(
56
+ d.pop("user_or_folder_regex")
57
+ )
58
+
59
+ user_or_folder_regex_value = d.pop("user_or_folder_regex_value")
60
+
61
+ path = d.pop("path")
62
+
63
+ runnable_kind = GenerateOpenapiSpecJsonBodyWebhookFiltersItemRunnableKind(d.pop("runnable_kind"))
64
+
65
+ generate_openapi_spec_json_body_webhook_filters_item = cls(
66
+ user_or_folder_regex=user_or_folder_regex,
67
+ user_or_folder_regex_value=user_or_folder_regex_value,
68
+ path=path,
69
+ runnable_kind=runnable_kind,
70
+ )
71
+
72
+ generate_openapi_spec_json_body_webhook_filters_item.additional_properties = d
73
+ return generate_openapi_spec_json_body_webhook_filters_item
74
+
75
+ @property
76
+ def additional_keys(self) -> List[str]:
77
+ return list(self.additional_properties.keys())
78
+
79
+ def __getitem__(self, key: str) -> Any:
80
+ return self.additional_properties[key]
81
+
82
+ def __setitem__(self, key: str, value: Any) -> None:
83
+ self.additional_properties[key] = value
84
+
85
+ def __delitem__(self, key: str) -> None:
86
+ del self.additional_properties[key]
87
+
88
+ def __contains__(self, key: str) -> bool:
89
+ return key in self.additional_properties
@@ -0,0 +1,9 @@
1
+ from enum import Enum
2
+
3
+
4
+ class GenerateOpenapiSpecJsonBodyWebhookFiltersItemRunnableKind(str, Enum):
5
+ FLOW = "flow"
6
+ SCRIPT = "script"
7
+
8
+ def __str__(self) -> str:
9
+ return str(self.value)
@@ -0,0 +1,10 @@
1
+ from enum import Enum
2
+
3
+
4
+ class GenerateOpenapiSpecJsonBodyWebhookFiltersItemUserOrFolderRegex(str, Enum):
5
+ F = "f"
6
+ U = "u"
7
+ VALUE_0 = "*"
8
+
9
+ def __str__(self) -> str:
10
+ return str(self.value)
@@ -0,0 +1,9 @@
1
+ from enum import Enum
2
+
3
+
4
+ class GenerateOpenapiSpecOpenapiSpecFormat(str, Enum):
5
+ JSON = "json"
6
+ YAML = "yaml"
7
+
8
+ def __str__(self) -> str:
9
+ return str(self.value)
@@ -0,0 +1,87 @@
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
+ from ..models.generate_openapi_spec_webhook_filters_item_runnable_kind import (
7
+ GenerateOpenapiSpecWebhookFiltersItemRunnableKind,
8
+ )
9
+ from ..models.generate_openapi_spec_webhook_filters_item_user_or_folder_regex import (
10
+ GenerateOpenapiSpecWebhookFiltersItemUserOrFolderRegex,
11
+ )
12
+
13
+ T = TypeVar("T", bound="GenerateOpenapiSpecWebhookFiltersItem")
14
+
15
+
16
+ @_attrs_define
17
+ class GenerateOpenapiSpecWebhookFiltersItem:
18
+ """
19
+ Attributes:
20
+ user_or_folder_regex (GenerateOpenapiSpecWebhookFiltersItemUserOrFolderRegex):
21
+ user_or_folder_regex_value (str):
22
+ path (str):
23
+ runnable_kind (GenerateOpenapiSpecWebhookFiltersItemRunnableKind):
24
+ """
25
+
26
+ user_or_folder_regex: GenerateOpenapiSpecWebhookFiltersItemUserOrFolderRegex
27
+ user_or_folder_regex_value: str
28
+ path: str
29
+ runnable_kind: GenerateOpenapiSpecWebhookFiltersItemRunnableKind
30
+ additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
31
+
32
+ def to_dict(self) -> Dict[str, Any]:
33
+ user_or_folder_regex = self.user_or_folder_regex.value
34
+
35
+ user_or_folder_regex_value = self.user_or_folder_regex_value
36
+ path = self.path
37
+ runnable_kind = self.runnable_kind.value
38
+
39
+ field_dict: Dict[str, Any] = {}
40
+ field_dict.update(self.additional_properties)
41
+ field_dict.update(
42
+ {
43
+ "user_or_folder_regex": user_or_folder_regex,
44
+ "user_or_folder_regex_value": user_or_folder_regex_value,
45
+ "path": path,
46
+ "runnable_kind": runnable_kind,
47
+ }
48
+ )
49
+
50
+ return field_dict
51
+
52
+ @classmethod
53
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
54
+ d = src_dict.copy()
55
+ user_or_folder_regex = GenerateOpenapiSpecWebhookFiltersItemUserOrFolderRegex(d.pop("user_or_folder_regex"))
56
+
57
+ user_or_folder_regex_value = d.pop("user_or_folder_regex_value")
58
+
59
+ path = d.pop("path")
60
+
61
+ runnable_kind = GenerateOpenapiSpecWebhookFiltersItemRunnableKind(d.pop("runnable_kind"))
62
+
63
+ generate_openapi_spec_webhook_filters_item = cls(
64
+ user_or_folder_regex=user_or_folder_regex,
65
+ user_or_folder_regex_value=user_or_folder_regex_value,
66
+ path=path,
67
+ runnable_kind=runnable_kind,
68
+ )
69
+
70
+ generate_openapi_spec_webhook_filters_item.additional_properties = d
71
+ return generate_openapi_spec_webhook_filters_item
72
+
73
+ @property
74
+ def additional_keys(self) -> List[str]:
75
+ return list(self.additional_properties.keys())
76
+
77
+ def __getitem__(self, key: str) -> Any:
78
+ return self.additional_properties[key]
79
+
80
+ def __setitem__(self, key: str, value: Any) -> None:
81
+ self.additional_properties[key] = value
82
+
83
+ def __delitem__(self, key: str) -> None:
84
+ del self.additional_properties[key]
85
+
86
+ def __contains__(self, key: str) -> bool:
87
+ return key in self.additional_properties
@@ -0,0 +1,9 @@
1
+ from enum import Enum
2
+
3
+
4
+ class GenerateOpenapiSpecWebhookFiltersItemRunnableKind(str, Enum):
5
+ FLOW = "flow"
6
+ SCRIPT = "script"
7
+
8
+ def __str__(self) -> str:
9
+ return str(self.value)
@@ -0,0 +1,10 @@
1
+ from enum import Enum
2
+
3
+
4
+ class GenerateOpenapiSpecWebhookFiltersItemUserOrFolderRegex(str, Enum):
5
+ F = "f"
6
+ U = "u"
7
+ VALUE_0 = "*"
8
+
9
+ def __str__(self) -> str:
10
+ return str(self.value)
@@ -39,6 +39,8 @@ class GetHttpTriggerResponse200:
39
39
  is_flow (bool):
40
40
  static_asset_config (Union[Unset, GetHttpTriggerResponse200StaticAssetConfig]):
41
41
  authentication_resource_path (Union[Unset, str]):
42
+ summary (Union[Unset, str]):
43
+ description (Union[Unset, str]):
42
44
  """
43
45
 
44
46
  route_path: str
@@ -59,6 +61,8 @@ class GetHttpTriggerResponse200:
59
61
  is_flow: bool
60
62
  static_asset_config: Union[Unset, "GetHttpTriggerResponse200StaticAssetConfig"] = UNSET
61
63
  authentication_resource_path: Union[Unset, str] = UNSET
64
+ summary: Union[Unset, str] = UNSET
65
+ description: Union[Unset, str] = UNSET
62
66
  additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
63
67
 
64
68
  def to_dict(self) -> Dict[str, Any]:
@@ -87,6 +91,8 @@ class GetHttpTriggerResponse200:
87
91
  static_asset_config = self.static_asset_config.to_dict()
88
92
 
89
93
  authentication_resource_path = self.authentication_resource_path
94
+ summary = self.summary
95
+ description = self.description
90
96
 
91
97
  field_dict: Dict[str, Any] = {}
92
98
  field_dict.update(self.additional_properties)
@@ -114,6 +120,10 @@ class GetHttpTriggerResponse200:
114
120
  field_dict["static_asset_config"] = static_asset_config
115
121
  if authentication_resource_path is not UNSET:
116
122
  field_dict["authentication_resource_path"] = authentication_resource_path
123
+ if summary is not UNSET:
124
+ field_dict["summary"] = summary
125
+ if description is not UNSET:
126
+ field_dict["description"] = description
117
127
 
118
128
  return field_dict
119
129
 
@@ -166,6 +176,10 @@ class GetHttpTriggerResponse200:
166
176
 
167
177
  authentication_resource_path = d.pop("authentication_resource_path", UNSET)
168
178
 
179
+ summary = d.pop("summary", UNSET)
180
+
181
+ description = d.pop("description", UNSET)
182
+
169
183
  get_http_trigger_response_200 = cls(
170
184
  route_path=route_path,
171
185
  http_method=http_method,
@@ -185,6 +199,8 @@ class GetHttpTriggerResponse200:
185
199
  is_flow=is_flow,
186
200
  static_asset_config=static_asset_config,
187
201
  authentication_resource_path=authentication_resource_path,
202
+ summary=summary,
203
+ description=description,
188
204
  )
189
205
 
190
206
  get_http_trigger_response_200.additional_properties = d
@@ -39,6 +39,8 @@ class HttpTrigger:
39
39
  is_flow (bool):
40
40
  static_asset_config (Union[Unset, HttpTriggerStaticAssetConfig]):
41
41
  authentication_resource_path (Union[Unset, str]):
42
+ summary (Union[Unset, str]):
43
+ description (Union[Unset, str]):
42
44
  """
43
45
 
44
46
  route_path: str
@@ -59,6 +61,8 @@ class HttpTrigger:
59
61
  is_flow: bool
60
62
  static_asset_config: Union[Unset, "HttpTriggerStaticAssetConfig"] = UNSET
61
63
  authentication_resource_path: Union[Unset, str] = UNSET
64
+ summary: Union[Unset, str] = UNSET
65
+ description: Union[Unset, str] = UNSET
62
66
  additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
63
67
 
64
68
  def to_dict(self) -> Dict[str, Any]:
@@ -87,6 +91,8 @@ class HttpTrigger:
87
91
  static_asset_config = self.static_asset_config.to_dict()
88
92
 
89
93
  authentication_resource_path = self.authentication_resource_path
94
+ summary = self.summary
95
+ description = self.description
90
96
 
91
97
  field_dict: Dict[str, Any] = {}
92
98
  field_dict.update(self.additional_properties)
@@ -114,6 +120,10 @@ class HttpTrigger:
114
120
  field_dict["static_asset_config"] = static_asset_config
115
121
  if authentication_resource_path is not UNSET:
116
122
  field_dict["authentication_resource_path"] = authentication_resource_path
123
+ if summary is not UNSET:
124
+ field_dict["summary"] = summary
125
+ if description is not UNSET:
126
+ field_dict["description"] = description
117
127
 
118
128
  return field_dict
119
129
 
@@ -164,6 +174,10 @@ class HttpTrigger:
164
174
 
165
175
  authentication_resource_path = d.pop("authentication_resource_path", UNSET)
166
176
 
177
+ summary = d.pop("summary", UNSET)
178
+
179
+ description = d.pop("description", UNSET)
180
+
167
181
  http_trigger = cls(
168
182
  route_path=route_path,
169
183
  http_method=http_method,
@@ -183,6 +197,8 @@ class HttpTrigger:
183
197
  is_flow=is_flow,
184
198
  static_asset_config=static_asset_config,
185
199
  authentication_resource_path=authentication_resource_path,
200
+ summary=summary,
201
+ description=description,
186
202
  )
187
203
 
188
204
  http_trigger.additional_properties = d
@@ -43,6 +43,8 @@ class ListHttpTriggersResponse200Item:
43
43
  is_flow (bool):
44
44
  static_asset_config (Union[Unset, ListHttpTriggersResponse200ItemStaticAssetConfig]):
45
45
  authentication_resource_path (Union[Unset, str]):
46
+ summary (Union[Unset, str]):
47
+ description (Union[Unset, str]):
46
48
  """
47
49
 
48
50
  route_path: str
@@ -63,6 +65,8 @@ class ListHttpTriggersResponse200Item:
63
65
  is_flow: bool
64
66
  static_asset_config: Union[Unset, "ListHttpTriggersResponse200ItemStaticAssetConfig"] = UNSET
65
67
  authentication_resource_path: Union[Unset, str] = UNSET
68
+ summary: Union[Unset, str] = UNSET
69
+ description: Union[Unset, str] = UNSET
66
70
  additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
67
71
 
68
72
  def to_dict(self) -> Dict[str, Any]:
@@ -91,6 +95,8 @@ class ListHttpTriggersResponse200Item:
91
95
  static_asset_config = self.static_asset_config.to_dict()
92
96
 
93
97
  authentication_resource_path = self.authentication_resource_path
98
+ summary = self.summary
99
+ description = self.description
94
100
 
95
101
  field_dict: Dict[str, Any] = {}
96
102
  field_dict.update(self.additional_properties)
@@ -118,6 +124,10 @@ class ListHttpTriggersResponse200Item:
118
124
  field_dict["static_asset_config"] = static_asset_config
119
125
  if authentication_resource_path is not UNSET:
120
126
  field_dict["authentication_resource_path"] = authentication_resource_path
127
+ if summary is not UNSET:
128
+ field_dict["summary"] = summary
129
+ if description is not UNSET:
130
+ field_dict["description"] = description
121
131
 
122
132
  return field_dict
123
133
 
@@ -170,6 +180,10 @@ class ListHttpTriggersResponse200Item:
170
180
 
171
181
  authentication_resource_path = d.pop("authentication_resource_path", UNSET)
172
182
 
183
+ summary = d.pop("summary", UNSET)
184
+
185
+ description = d.pop("description", UNSET)
186
+
173
187
  list_http_triggers_response_200_item = cls(
174
188
  route_path=route_path,
175
189
  http_method=http_method,
@@ -189,6 +203,8 @@ class ListHttpTriggersResponse200Item:
189
203
  is_flow=is_flow,
190
204
  static_asset_config=static_asset_config,
191
205
  authentication_resource_path=authentication_resource_path,
206
+ summary=summary,
207
+ description=description,
192
208
  )
193
209
 
194
210
  list_http_triggers_response_200_item.additional_properties = d
@@ -27,6 +27,8 @@ class NewHttpTrigger:
27
27
  authentication_method (NewHttpTriggerAuthenticationMethod):
28
28
  is_static_website (bool):
29
29
  workspaced_route (Union[Unset, bool]):
30
+ summary (Union[Unset, str]):
31
+ description (Union[Unset, str]):
30
32
  static_asset_config (Union[Unset, NewHttpTriggerStaticAssetConfig]):
31
33
  authentication_resource_path (Union[Unset, str]):
32
34
  wrap_body (Union[Unset, bool]):
@@ -42,6 +44,8 @@ class NewHttpTrigger:
42
44
  authentication_method: NewHttpTriggerAuthenticationMethod
43
45
  is_static_website: bool
44
46
  workspaced_route: Union[Unset, bool] = UNSET
47
+ summary: Union[Unset, str] = UNSET
48
+ description: Union[Unset, str] = UNSET
45
49
  static_asset_config: Union[Unset, "NewHttpTriggerStaticAssetConfig"] = UNSET
46
50
  authentication_resource_path: Union[Unset, str] = UNSET
47
51
  wrap_body: Union[Unset, bool] = UNSET
@@ -60,6 +64,8 @@ class NewHttpTrigger:
60
64
 
61
65
  is_static_website = self.is_static_website
62
66
  workspaced_route = self.workspaced_route
67
+ summary = self.summary
68
+ description = self.description
63
69
  static_asset_config: Union[Unset, Dict[str, Any]] = UNSET
64
70
  if not isinstance(self.static_asset_config, Unset):
65
71
  static_asset_config = self.static_asset_config.to_dict()
@@ -84,6 +90,10 @@ class NewHttpTrigger:
84
90
  )
85
91
  if workspaced_route is not UNSET:
86
92
  field_dict["workspaced_route"] = workspaced_route
93
+ if summary is not UNSET:
94
+ field_dict["summary"] = summary
95
+ if description is not UNSET:
96
+ field_dict["description"] = description
87
97
  if static_asset_config is not UNSET:
88
98
  field_dict["static_asset_config"] = static_asset_config
89
99
  if authentication_resource_path is not UNSET:
@@ -118,6 +128,10 @@ class NewHttpTrigger:
118
128
 
119
129
  workspaced_route = d.pop("workspaced_route", UNSET)
120
130
 
131
+ summary = d.pop("summary", UNSET)
132
+
133
+ description = d.pop("description", UNSET)
134
+
121
135
  _static_asset_config = d.pop("static_asset_config", UNSET)
122
136
  static_asset_config: Union[Unset, NewHttpTriggerStaticAssetConfig]
123
137
  if isinstance(_static_asset_config, Unset):
@@ -141,6 +155,8 @@ class NewHttpTrigger:
141
155
  authentication_method=authentication_method,
142
156
  is_static_website=is_static_website,
143
157
  workspaced_route=workspaced_route,
158
+ summary=summary,
159
+ description=description,
144
160
  static_asset_config=static_asset_config,
145
161
  authentication_resource_path=authentication_resource_path,
146
162
  wrap_body=wrap_body,
@@ -0,0 +1,72 @@
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="OpenapiHttpRouteFilters")
7
+
8
+
9
+ @_attrs_define
10
+ class OpenapiHttpRouteFilters:
11
+ """
12
+ Attributes:
13
+ folder_regex (str):
14
+ path_regex (str):
15
+ route_path_regex (str):
16
+ """
17
+
18
+ folder_regex: str
19
+ path_regex: str
20
+ route_path_regex: str
21
+ additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
22
+
23
+ def to_dict(self) -> Dict[str, Any]:
24
+ folder_regex = self.folder_regex
25
+ path_regex = self.path_regex
26
+ route_path_regex = self.route_path_regex
27
+
28
+ field_dict: Dict[str, Any] = {}
29
+ field_dict.update(self.additional_properties)
30
+ field_dict.update(
31
+ {
32
+ "folder_regex": folder_regex,
33
+ "path_regex": path_regex,
34
+ "route_path_regex": route_path_regex,
35
+ }
36
+ )
37
+
38
+ return field_dict
39
+
40
+ @classmethod
41
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
42
+ d = src_dict.copy()
43
+ folder_regex = d.pop("folder_regex")
44
+
45
+ path_regex = d.pop("path_regex")
46
+
47
+ route_path_regex = d.pop("route_path_regex")
48
+
49
+ openapi_http_route_filters = cls(
50
+ folder_regex=folder_regex,
51
+ path_regex=path_regex,
52
+ route_path_regex=route_path_regex,
53
+ )
54
+
55
+ openapi_http_route_filters.additional_properties = d
56
+ return openapi_http_route_filters
57
+
58
+ @property
59
+ def additional_keys(self) -> List[str]:
60
+ return list(self.additional_properties.keys())
61
+
62
+ def __getitem__(self, key: str) -> Any:
63
+ return self.additional_properties[key]
64
+
65
+ def __setitem__(self, key: str, value: Any) -> None:
66
+ self.additional_properties[key] = value
67
+
68
+ def __delitem__(self, key: str) -> None:
69
+ del self.additional_properties[key]
70
+
71
+ def __contains__(self, key: str) -> bool:
72
+ return key in self.additional_properties
@@ -0,0 +1,9 @@
1
+ from enum import Enum
2
+
3
+
4
+ class OpenapiSpecFormat(str, Enum):
5
+ JSON = "json"
6
+ YAML = "yaml"
7
+
8
+ def __str__(self) -> str:
9
+ return str(self.value)