windmill-api 1.425.0__py3-none-any.whl → 1.426.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 (30) hide show
  1. windmill_api/api/kafka_trigger/__init__.py +0 -0
  2. windmill_api/api/kafka_trigger/create_kafka_trigger.py +105 -0
  3. windmill_api/api/kafka_trigger/delete_kafka_trigger.py +101 -0
  4. windmill_api/api/kafka_trigger/exists_kafka_trigger.py +160 -0
  5. windmill_api/api/kafka_trigger/get_kafka_trigger.py +166 -0
  6. windmill_api/api/kafka_trigger/list_kafka_triggers.py +237 -0
  7. windmill_api/api/kafka_trigger/set_kafka_trigger_enabled.py +113 -0
  8. windmill_api/api/kafka_trigger/update_kafka_trigger.py +113 -0
  9. windmill_api/models/add_granular_acls_kind.py +1 -0
  10. windmill_api/models/create_kafka_trigger_json_body.py +104 -0
  11. windmill_api/models/edit_kafka_trigger.py +94 -0
  12. windmill_api/models/get_granular_acls_kind.py +1 -0
  13. windmill_api/models/get_kafka_trigger_response_200.py +180 -0
  14. windmill_api/models/get_kafka_trigger_response_200_extra_perms.py +44 -0
  15. windmill_api/models/get_triggers_count_of_flow_response_200.py +8 -0
  16. windmill_api/models/get_triggers_count_of_script_response_200.py +8 -0
  17. windmill_api/models/get_used_triggers_response_200.py +7 -0
  18. windmill_api/models/kafka_trigger.py +180 -0
  19. windmill_api/models/kafka_trigger_extra_perms.py +44 -0
  20. windmill_api/models/list_kafka_triggers_response_200_item.py +182 -0
  21. windmill_api/models/list_kafka_triggers_response_200_item_extra_perms.py +44 -0
  22. windmill_api/models/new_kafka_trigger.py +104 -0
  23. windmill_api/models/remove_granular_acls_kind.py +1 -0
  24. windmill_api/models/set_kafka_trigger_enabled_json_body.py +58 -0
  25. windmill_api/models/triggers_count.py +8 -0
  26. windmill_api/models/update_kafka_trigger_json_body.py +94 -0
  27. {windmill_api-1.425.0.dist-info → windmill_api-1.426.0.dist-info}/METADATA +1 -1
  28. {windmill_api-1.425.0.dist-info → windmill_api-1.426.0.dist-info}/RECORD +30 -11
  29. {windmill_api-1.425.0.dist-info → windmill_api-1.426.0.dist-info}/LICENSE +0 -0
  30. {windmill_api-1.425.0.dist-info → windmill_api-1.426.0.dist-info}/WHEEL +0 -0
@@ -0,0 +1,237 @@
1
+ from http import HTTPStatus
2
+ from typing import Any, Dict, List, Optional, Union
3
+
4
+ import httpx
5
+
6
+ from ... import errors
7
+ from ...client import AuthenticatedClient, Client
8
+ from ...models.list_kafka_triggers_response_200_item import ListKafkaTriggersResponse200Item
9
+ from ...types import UNSET, Response, Unset
10
+
11
+
12
+ def _get_kwargs(
13
+ workspace: str,
14
+ *,
15
+ page: Union[Unset, None, int] = UNSET,
16
+ per_page: Union[Unset, None, int] = UNSET,
17
+ path: Union[Unset, None, str] = UNSET,
18
+ is_flow: Union[Unset, None, bool] = UNSET,
19
+ path_start: Union[Unset, None, str] = UNSET,
20
+ ) -> Dict[str, Any]:
21
+ pass
22
+
23
+ params: Dict[str, Any] = {}
24
+ params["page"] = page
25
+
26
+ params["per_page"] = per_page
27
+
28
+ params["path"] = path
29
+
30
+ params["is_flow"] = is_flow
31
+
32
+ params["path_start"] = path_start
33
+
34
+ params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
35
+
36
+ return {
37
+ "method": "get",
38
+ "url": "/w/{workspace}/kafka_triggers/list".format(
39
+ workspace=workspace,
40
+ ),
41
+ "params": params,
42
+ }
43
+
44
+
45
+ def _parse_response(
46
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
47
+ ) -> Optional[List["ListKafkaTriggersResponse200Item"]]:
48
+ if response.status_code == HTTPStatus.OK:
49
+ response_200 = []
50
+ _response_200 = response.json()
51
+ for response_200_item_data in _response_200:
52
+ response_200_item = ListKafkaTriggersResponse200Item.from_dict(response_200_item_data)
53
+
54
+ response_200.append(response_200_item)
55
+
56
+ return response_200
57
+ if client.raise_on_unexpected_status:
58
+ raise errors.UnexpectedStatus(response.status_code, response.content)
59
+ else:
60
+ return None
61
+
62
+
63
+ def _build_response(
64
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
65
+ ) -> Response[List["ListKafkaTriggersResponse200Item"]]:
66
+ return Response(
67
+ status_code=HTTPStatus(response.status_code),
68
+ content=response.content,
69
+ headers=response.headers,
70
+ parsed=_parse_response(client=client, response=response),
71
+ )
72
+
73
+
74
+ def sync_detailed(
75
+ workspace: str,
76
+ *,
77
+ client: Union[AuthenticatedClient, Client],
78
+ page: Union[Unset, None, int] = UNSET,
79
+ per_page: Union[Unset, None, int] = UNSET,
80
+ path: Union[Unset, None, str] = UNSET,
81
+ is_flow: Union[Unset, None, bool] = UNSET,
82
+ path_start: Union[Unset, None, str] = UNSET,
83
+ ) -> Response[List["ListKafkaTriggersResponse200Item"]]:
84
+ """list kafka triggers
85
+
86
+ Args:
87
+ workspace (str):
88
+ page (Union[Unset, None, int]):
89
+ per_page (Union[Unset, None, int]):
90
+ path (Union[Unset, None, str]):
91
+ is_flow (Union[Unset, None, bool]):
92
+ path_start (Union[Unset, None, str]):
93
+
94
+ Raises:
95
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
96
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
97
+
98
+ Returns:
99
+ Response[List['ListKafkaTriggersResponse200Item']]
100
+ """
101
+
102
+ kwargs = _get_kwargs(
103
+ workspace=workspace,
104
+ page=page,
105
+ per_page=per_page,
106
+ path=path,
107
+ is_flow=is_flow,
108
+ path_start=path_start,
109
+ )
110
+
111
+ response = client.get_httpx_client().request(
112
+ **kwargs,
113
+ )
114
+
115
+ return _build_response(client=client, response=response)
116
+
117
+
118
+ def sync(
119
+ workspace: str,
120
+ *,
121
+ client: Union[AuthenticatedClient, Client],
122
+ page: Union[Unset, None, int] = UNSET,
123
+ per_page: Union[Unset, None, int] = UNSET,
124
+ path: Union[Unset, None, str] = UNSET,
125
+ is_flow: Union[Unset, None, bool] = UNSET,
126
+ path_start: Union[Unset, None, str] = UNSET,
127
+ ) -> Optional[List["ListKafkaTriggersResponse200Item"]]:
128
+ """list kafka triggers
129
+
130
+ Args:
131
+ workspace (str):
132
+ page (Union[Unset, None, int]):
133
+ per_page (Union[Unset, None, int]):
134
+ path (Union[Unset, None, str]):
135
+ is_flow (Union[Unset, None, bool]):
136
+ path_start (Union[Unset, None, str]):
137
+
138
+ Raises:
139
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
140
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
141
+
142
+ Returns:
143
+ List['ListKafkaTriggersResponse200Item']
144
+ """
145
+
146
+ return sync_detailed(
147
+ workspace=workspace,
148
+ client=client,
149
+ page=page,
150
+ per_page=per_page,
151
+ path=path,
152
+ is_flow=is_flow,
153
+ path_start=path_start,
154
+ ).parsed
155
+
156
+
157
+ async def asyncio_detailed(
158
+ workspace: str,
159
+ *,
160
+ client: Union[AuthenticatedClient, Client],
161
+ page: Union[Unset, None, int] = UNSET,
162
+ per_page: Union[Unset, None, int] = UNSET,
163
+ path: Union[Unset, None, str] = UNSET,
164
+ is_flow: Union[Unset, None, bool] = UNSET,
165
+ path_start: Union[Unset, None, str] = UNSET,
166
+ ) -> Response[List["ListKafkaTriggersResponse200Item"]]:
167
+ """list kafka triggers
168
+
169
+ Args:
170
+ workspace (str):
171
+ page (Union[Unset, None, int]):
172
+ per_page (Union[Unset, None, int]):
173
+ path (Union[Unset, None, str]):
174
+ is_flow (Union[Unset, None, bool]):
175
+ path_start (Union[Unset, None, str]):
176
+
177
+ Raises:
178
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
179
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
180
+
181
+ Returns:
182
+ Response[List['ListKafkaTriggersResponse200Item']]
183
+ """
184
+
185
+ kwargs = _get_kwargs(
186
+ workspace=workspace,
187
+ page=page,
188
+ per_page=per_page,
189
+ path=path,
190
+ is_flow=is_flow,
191
+ path_start=path_start,
192
+ )
193
+
194
+ response = await client.get_async_httpx_client().request(**kwargs)
195
+
196
+ return _build_response(client=client, response=response)
197
+
198
+
199
+ async def asyncio(
200
+ workspace: str,
201
+ *,
202
+ client: Union[AuthenticatedClient, Client],
203
+ page: Union[Unset, None, int] = UNSET,
204
+ per_page: Union[Unset, None, int] = UNSET,
205
+ path: Union[Unset, None, str] = UNSET,
206
+ is_flow: Union[Unset, None, bool] = UNSET,
207
+ path_start: Union[Unset, None, str] = UNSET,
208
+ ) -> Optional[List["ListKafkaTriggersResponse200Item"]]:
209
+ """list kafka triggers
210
+
211
+ Args:
212
+ workspace (str):
213
+ page (Union[Unset, None, int]):
214
+ per_page (Union[Unset, None, int]):
215
+ path (Union[Unset, None, str]):
216
+ is_flow (Union[Unset, None, bool]):
217
+ path_start (Union[Unset, None, str]):
218
+
219
+ Raises:
220
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
221
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
222
+
223
+ Returns:
224
+ List['ListKafkaTriggersResponse200Item']
225
+ """
226
+
227
+ return (
228
+ await asyncio_detailed(
229
+ workspace=workspace,
230
+ client=client,
231
+ page=page,
232
+ per_page=per_page,
233
+ path=path,
234
+ is_flow=is_flow,
235
+ path_start=path_start,
236
+ )
237
+ ).parsed
@@ -0,0 +1,113 @@
1
+ from http import HTTPStatus
2
+ from typing import Any, Dict, Optional, Union
3
+
4
+ import httpx
5
+
6
+ from ... import errors
7
+ from ...client import AuthenticatedClient, Client
8
+ from ...models.set_kafka_trigger_enabled_json_body import SetKafkaTriggerEnabledJsonBody
9
+ from ...types import Response
10
+
11
+
12
+ def _get_kwargs(
13
+ workspace: str,
14
+ path: str,
15
+ *,
16
+ json_body: SetKafkaTriggerEnabledJsonBody,
17
+ ) -> Dict[str, Any]:
18
+ pass
19
+
20
+ json_json_body = json_body.to_dict()
21
+
22
+ return {
23
+ "method": "post",
24
+ "url": "/w/{workspace}/kafka_triggers/setenabled/{path}".format(
25
+ workspace=workspace,
26
+ path=path,
27
+ ),
28
+ "json": json_json_body,
29
+ }
30
+
31
+
32
+ def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]:
33
+ if client.raise_on_unexpected_status:
34
+ raise errors.UnexpectedStatus(response.status_code, response.content)
35
+ else:
36
+ return None
37
+
38
+
39
+ def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]:
40
+ return Response(
41
+ status_code=HTTPStatus(response.status_code),
42
+ content=response.content,
43
+ headers=response.headers,
44
+ parsed=_parse_response(client=client, response=response),
45
+ )
46
+
47
+
48
+ def sync_detailed(
49
+ workspace: str,
50
+ path: str,
51
+ *,
52
+ client: Union[AuthenticatedClient, Client],
53
+ json_body: SetKafkaTriggerEnabledJsonBody,
54
+ ) -> Response[Any]:
55
+ """set enabled kafka trigger
56
+
57
+ Args:
58
+ workspace (str):
59
+ path (str):
60
+ json_body (SetKafkaTriggerEnabledJsonBody):
61
+
62
+ Raises:
63
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
64
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
65
+
66
+ Returns:
67
+ Response[Any]
68
+ """
69
+
70
+ kwargs = _get_kwargs(
71
+ workspace=workspace,
72
+ path=path,
73
+ json_body=json_body,
74
+ )
75
+
76
+ response = client.get_httpx_client().request(
77
+ **kwargs,
78
+ )
79
+
80
+ return _build_response(client=client, response=response)
81
+
82
+
83
+ async def asyncio_detailed(
84
+ workspace: str,
85
+ path: str,
86
+ *,
87
+ client: Union[AuthenticatedClient, Client],
88
+ json_body: SetKafkaTriggerEnabledJsonBody,
89
+ ) -> Response[Any]:
90
+ """set enabled kafka trigger
91
+
92
+ Args:
93
+ workspace (str):
94
+ path (str):
95
+ json_body (SetKafkaTriggerEnabledJsonBody):
96
+
97
+ Raises:
98
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
99
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
100
+
101
+ Returns:
102
+ Response[Any]
103
+ """
104
+
105
+ kwargs = _get_kwargs(
106
+ workspace=workspace,
107
+ path=path,
108
+ json_body=json_body,
109
+ )
110
+
111
+ response = await client.get_async_httpx_client().request(**kwargs)
112
+
113
+ return _build_response(client=client, response=response)
@@ -0,0 +1,113 @@
1
+ from http import HTTPStatus
2
+ from typing import Any, Dict, Optional, Union
3
+
4
+ import httpx
5
+
6
+ from ... import errors
7
+ from ...client import AuthenticatedClient, Client
8
+ from ...models.update_kafka_trigger_json_body import UpdateKafkaTriggerJsonBody
9
+ from ...types import Response
10
+
11
+
12
+ def _get_kwargs(
13
+ workspace: str,
14
+ path: str,
15
+ *,
16
+ json_body: UpdateKafkaTriggerJsonBody,
17
+ ) -> Dict[str, Any]:
18
+ pass
19
+
20
+ json_json_body = json_body.to_dict()
21
+
22
+ return {
23
+ "method": "post",
24
+ "url": "/w/{workspace}/kafka_triggers/update/{path}".format(
25
+ workspace=workspace,
26
+ path=path,
27
+ ),
28
+ "json": json_json_body,
29
+ }
30
+
31
+
32
+ def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]:
33
+ if client.raise_on_unexpected_status:
34
+ raise errors.UnexpectedStatus(response.status_code, response.content)
35
+ else:
36
+ return None
37
+
38
+
39
+ def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]:
40
+ return Response(
41
+ status_code=HTTPStatus(response.status_code),
42
+ content=response.content,
43
+ headers=response.headers,
44
+ parsed=_parse_response(client=client, response=response),
45
+ )
46
+
47
+
48
+ def sync_detailed(
49
+ workspace: str,
50
+ path: str,
51
+ *,
52
+ client: Union[AuthenticatedClient, Client],
53
+ json_body: UpdateKafkaTriggerJsonBody,
54
+ ) -> Response[Any]:
55
+ """update kafka trigger
56
+
57
+ Args:
58
+ workspace (str):
59
+ path (str):
60
+ json_body (UpdateKafkaTriggerJsonBody):
61
+
62
+ Raises:
63
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
64
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
65
+
66
+ Returns:
67
+ Response[Any]
68
+ """
69
+
70
+ kwargs = _get_kwargs(
71
+ workspace=workspace,
72
+ path=path,
73
+ json_body=json_body,
74
+ )
75
+
76
+ response = client.get_httpx_client().request(
77
+ **kwargs,
78
+ )
79
+
80
+ return _build_response(client=client, response=response)
81
+
82
+
83
+ async def asyncio_detailed(
84
+ workspace: str,
85
+ path: str,
86
+ *,
87
+ client: Union[AuthenticatedClient, Client],
88
+ json_body: UpdateKafkaTriggerJsonBody,
89
+ ) -> Response[Any]:
90
+ """update kafka trigger
91
+
92
+ Args:
93
+ workspace (str):
94
+ path (str):
95
+ json_body (UpdateKafkaTriggerJsonBody):
96
+
97
+ Raises:
98
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
99
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
100
+
101
+ Returns:
102
+ Response[Any]
103
+ """
104
+
105
+ kwargs = _get_kwargs(
106
+ workspace=workspace,
107
+ path=path,
108
+ json_body=json_body,
109
+ )
110
+
111
+ response = await client.get_async_httpx_client().request(**kwargs)
112
+
113
+ return _build_response(client=client, response=response)
@@ -7,6 +7,7 @@ class AddGranularAclsKind(str, Enum):
7
7
  FOLDER = "folder"
8
8
  GROUP = "group_"
9
9
  HTTP_TRIGGER = "http_trigger"
10
+ KAFKA_TRIGGER = "kafka_trigger"
10
11
  RAW_APP = "raw_app"
11
12
  RESOURCE = "resource"
12
13
  SCHEDULE = "schedule"
@@ -0,0 +1,104 @@
1
+ from typing import Any, Dict, List, Type, TypeVar, Union, cast
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="CreateKafkaTriggerJsonBody")
9
+
10
+
11
+ @_attrs_define
12
+ class CreateKafkaTriggerJsonBody:
13
+ """
14
+ Attributes:
15
+ path (str):
16
+ script_path (str):
17
+ is_flow (bool):
18
+ kafka_resource_path (str):
19
+ group_id (str):
20
+ topics (List[str]):
21
+ enabled (Union[Unset, bool]):
22
+ """
23
+
24
+ path: str
25
+ script_path: str
26
+ is_flow: bool
27
+ kafka_resource_path: str
28
+ group_id: str
29
+ topics: List[str]
30
+ enabled: Union[Unset, bool] = UNSET
31
+ additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
32
+
33
+ def to_dict(self) -> Dict[str, Any]:
34
+ path = self.path
35
+ script_path = self.script_path
36
+ is_flow = self.is_flow
37
+ kafka_resource_path = self.kafka_resource_path
38
+ group_id = self.group_id
39
+ topics = self.topics
40
+
41
+ enabled = self.enabled
42
+
43
+ field_dict: Dict[str, Any] = {}
44
+ field_dict.update(self.additional_properties)
45
+ field_dict.update(
46
+ {
47
+ "path": path,
48
+ "script_path": script_path,
49
+ "is_flow": is_flow,
50
+ "kafka_resource_path": kafka_resource_path,
51
+ "group_id": group_id,
52
+ "topics": topics,
53
+ }
54
+ )
55
+ if enabled is not UNSET:
56
+ field_dict["enabled"] = enabled
57
+
58
+ return field_dict
59
+
60
+ @classmethod
61
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
62
+ d = src_dict.copy()
63
+ path = d.pop("path")
64
+
65
+ script_path = d.pop("script_path")
66
+
67
+ is_flow = d.pop("is_flow")
68
+
69
+ kafka_resource_path = d.pop("kafka_resource_path")
70
+
71
+ group_id = d.pop("group_id")
72
+
73
+ topics = cast(List[str], d.pop("topics"))
74
+
75
+ enabled = d.pop("enabled", UNSET)
76
+
77
+ create_kafka_trigger_json_body = cls(
78
+ path=path,
79
+ script_path=script_path,
80
+ is_flow=is_flow,
81
+ kafka_resource_path=kafka_resource_path,
82
+ group_id=group_id,
83
+ topics=topics,
84
+ enabled=enabled,
85
+ )
86
+
87
+ create_kafka_trigger_json_body.additional_properties = d
88
+ return create_kafka_trigger_json_body
89
+
90
+ @property
91
+ def additional_keys(self) -> List[str]:
92
+ return list(self.additional_properties.keys())
93
+
94
+ def __getitem__(self, key: str) -> Any:
95
+ return self.additional_properties[key]
96
+
97
+ def __setitem__(self, key: str, value: Any) -> None:
98
+ self.additional_properties[key] = value
99
+
100
+ def __delitem__(self, key: str) -> None:
101
+ del self.additional_properties[key]
102
+
103
+ def __contains__(self, key: str) -> bool:
104
+ return key in self.additional_properties
@@ -0,0 +1,94 @@
1
+ from typing import Any, Dict, List, Type, TypeVar, cast
2
+
3
+ from attrs import define as _attrs_define
4
+ from attrs import field as _attrs_field
5
+
6
+ T = TypeVar("T", bound="EditKafkaTrigger")
7
+
8
+
9
+ @_attrs_define
10
+ class EditKafkaTrigger:
11
+ """
12
+ Attributes:
13
+ kafka_resource_path (str):
14
+ group_id (str):
15
+ topics (List[str]):
16
+ path (str):
17
+ script_path (str):
18
+ is_flow (bool):
19
+ """
20
+
21
+ kafka_resource_path: str
22
+ group_id: str
23
+ topics: List[str]
24
+ path: str
25
+ script_path: str
26
+ is_flow: bool
27
+ additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
28
+
29
+ def to_dict(self) -> Dict[str, Any]:
30
+ kafka_resource_path = self.kafka_resource_path
31
+ group_id = self.group_id
32
+ topics = self.topics
33
+
34
+ path = self.path
35
+ script_path = self.script_path
36
+ is_flow = self.is_flow
37
+
38
+ field_dict: Dict[str, Any] = {}
39
+ field_dict.update(self.additional_properties)
40
+ field_dict.update(
41
+ {
42
+ "kafka_resource_path": kafka_resource_path,
43
+ "group_id": group_id,
44
+ "topics": topics,
45
+ "path": path,
46
+ "script_path": script_path,
47
+ "is_flow": is_flow,
48
+ }
49
+ )
50
+
51
+ return field_dict
52
+
53
+ @classmethod
54
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
55
+ d = src_dict.copy()
56
+ kafka_resource_path = d.pop("kafka_resource_path")
57
+
58
+ group_id = d.pop("group_id")
59
+
60
+ topics = cast(List[str], d.pop("topics"))
61
+
62
+ path = d.pop("path")
63
+
64
+ script_path = d.pop("script_path")
65
+
66
+ is_flow = d.pop("is_flow")
67
+
68
+ edit_kafka_trigger = cls(
69
+ kafka_resource_path=kafka_resource_path,
70
+ group_id=group_id,
71
+ topics=topics,
72
+ path=path,
73
+ script_path=script_path,
74
+ is_flow=is_flow,
75
+ )
76
+
77
+ edit_kafka_trigger.additional_properties = d
78
+ return edit_kafka_trigger
79
+
80
+ @property
81
+ def additional_keys(self) -> List[str]:
82
+ return list(self.additional_properties.keys())
83
+
84
+ def __getitem__(self, key: str) -> Any:
85
+ return self.additional_properties[key]
86
+
87
+ def __setitem__(self, key: str, value: Any) -> None:
88
+ self.additional_properties[key] = value
89
+
90
+ def __delitem__(self, key: str) -> None:
91
+ del self.additional_properties[key]
92
+
93
+ def __contains__(self, key: str) -> bool:
94
+ return key in self.additional_properties
@@ -7,6 +7,7 @@ class GetGranularAclsKind(str, Enum):
7
7
  FOLDER = "folder"
8
8
  GROUP = "group_"
9
9
  HTTP_TRIGGER = "http_trigger"
10
+ KAFKA_TRIGGER = "kafka_trigger"
10
11
  RAW_APP = "raw_app"
11
12
  RESOURCE = "resource"
12
13
  SCHEDULE = "schedule"