windmill-api 1.443.0__py3-none-any.whl → 1.445.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 (68) hide show
  1. windmill_api/api/capture/{update_capture.py → delete_capture.py} +13 -13
  2. windmill_api/api/capture/get_capture_configs.py +186 -0
  3. windmill_api/api/capture/list_captures.py +211 -0
  4. windmill_api/api/capture/ping_capture_config.py +121 -0
  5. windmill_api/api/capture/set_capture_config.py +107 -0
  6. windmill_api/api/nats_trigger/__init__.py +0 -0
  7. windmill_api/api/nats_trigger/create_nats_trigger.py +105 -0
  8. windmill_api/api/{capture/create_capture.py → nats_trigger/delete_nats_trigger.py} +4 -6
  9. windmill_api/api/nats_trigger/exists_nats_trigger.py +160 -0
  10. windmill_api/api/nats_trigger/get_nats_trigger.py +166 -0
  11. windmill_api/api/nats_trigger/list_nats_triggers.py +237 -0
  12. windmill_api/api/nats_trigger/set_nats_trigger_enabled.py +113 -0
  13. windmill_api/api/{capture/get_capture.py → nats_trigger/update_nats_trigger.py} +16 -8
  14. windmill_api/api/workspace/change_workspace_color.py +105 -0
  15. windmill_api/models/add_granular_acls_kind.py +1 -0
  16. windmill_api/models/capture.py +94 -0
  17. windmill_api/models/capture_config.py +95 -0
  18. windmill_api/models/capture_config_trigger_kind.py +13 -0
  19. windmill_api/models/capture_trigger_kind.py +13 -0
  20. windmill_api/models/change_workspace_color_json_body.py +58 -0
  21. windmill_api/models/create_nats_trigger_json_body.py +120 -0
  22. windmill_api/models/create_websocket_trigger_json_body.py +42 -29
  23. windmill_api/models/create_workspace.py +8 -0
  24. windmill_api/models/create_workspace_json_body.py +8 -0
  25. windmill_api/models/edit_nats_trigger.py +112 -0
  26. windmill_api/models/edit_websocket_trigger.py +35 -21
  27. windmill_api/models/get_capture_configs_response_200_item.py +95 -0
  28. windmill_api/models/get_capture_configs_response_200_item_trigger_kind.py +13 -0
  29. windmill_api/models/get_capture_configs_runnable_kind.py +9 -0
  30. windmill_api/models/get_granular_acls_kind.py +1 -0
  31. windmill_api/models/get_nats_trigger_response_200.py +196 -0
  32. windmill_api/models/get_nats_trigger_response_200_extra_perms.py +44 -0
  33. windmill_api/models/get_settings_response_200.py +8 -0
  34. windmill_api/models/get_triggers_count_of_flow_response_200.py +8 -0
  35. windmill_api/models/get_triggers_count_of_script_response_200.py +8 -0
  36. windmill_api/models/get_used_triggers_response_200.py +7 -0
  37. windmill_api/models/get_websocket_trigger_response_200.py +54 -41
  38. windmill_api/models/list_captures_response_200_item.py +94 -0
  39. windmill_api/models/list_captures_response_200_item_trigger_kind.py +13 -0
  40. windmill_api/models/list_captures_runnable_kind.py +9 -0
  41. windmill_api/models/list_captures_trigger_kind.py +13 -0
  42. windmill_api/models/list_nats_triggers_response_200_item.py +196 -0
  43. windmill_api/models/list_nats_triggers_response_200_item_extra_perms.py +44 -0
  44. windmill_api/models/list_user_workspaces_response_200_workspaces_item.py +7 -0
  45. windmill_api/models/list_websocket_triggers_response_200_item.py +54 -41
  46. windmill_api/models/list_workspaces_as_super_admin_response_200_item.py +8 -0
  47. windmill_api/models/list_workspaces_response_200_item.py +8 -0
  48. windmill_api/models/nats_trigger.py +196 -0
  49. windmill_api/models/nats_trigger_extra_perms.py +44 -0
  50. windmill_api/models/new_nats_trigger.py +120 -0
  51. windmill_api/models/new_websocket_trigger.py +36 -26
  52. windmill_api/models/ping_capture_config_runnable_kind.py +9 -0
  53. windmill_api/models/ping_capture_config_trigger_kind.py +13 -0
  54. windmill_api/models/remove_granular_acls_kind.py +1 -0
  55. windmill_api/models/set_capture_config_json_body.py +97 -0
  56. windmill_api/models/set_capture_config_json_body_trigger_config.py +44 -0
  57. windmill_api/models/set_capture_config_json_body_trigger_kind.py +13 -0
  58. windmill_api/models/set_nats_trigger_enabled_json_body.py +58 -0
  59. windmill_api/models/triggers_count.py +8 -0
  60. windmill_api/models/update_nats_trigger_json_body.py +112 -0
  61. windmill_api/models/update_websocket_trigger_json_body.py +40 -24
  62. windmill_api/models/user_workspace_list_workspaces_item.py +7 -0
  63. windmill_api/models/websocket_trigger.py +48 -38
  64. windmill_api/models/workspace.py +8 -0
  65. {windmill_api-1.443.0.dist-info → windmill_api-1.445.0.dist-info}/METADATA +1 -1
  66. {windmill_api-1.443.0.dist-info → windmill_api-1.445.0.dist-info}/RECORD +68 -29
  67. {windmill_api-1.443.0.dist-info → windmill_api-1.445.0.dist-info}/LICENSE +0 -0
  68. {windmill_api-1.443.0.dist-info → windmill_api-1.445.0.dist-info}/WHEEL +0 -0
@@ -0,0 +1,105 @@
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.create_nats_trigger_json_body import CreateNatsTriggerJsonBody
9
+ from ...types import Response
10
+
11
+
12
+ def _get_kwargs(
13
+ workspace: str,
14
+ *,
15
+ json_body: CreateNatsTriggerJsonBody,
16
+ ) -> Dict[str, Any]:
17
+ pass
18
+
19
+ json_json_body = json_body.to_dict()
20
+
21
+ return {
22
+ "method": "post",
23
+ "url": "/w/{workspace}/nats_triggers/create".format(
24
+ workspace=workspace,
25
+ ),
26
+ "json": json_json_body,
27
+ }
28
+
29
+
30
+ def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]:
31
+ if client.raise_on_unexpected_status:
32
+ raise errors.UnexpectedStatus(response.status_code, response.content)
33
+ else:
34
+ return None
35
+
36
+
37
+ def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]:
38
+ return Response(
39
+ status_code=HTTPStatus(response.status_code),
40
+ content=response.content,
41
+ headers=response.headers,
42
+ parsed=_parse_response(client=client, response=response),
43
+ )
44
+
45
+
46
+ def sync_detailed(
47
+ workspace: str,
48
+ *,
49
+ client: Union[AuthenticatedClient, Client],
50
+ json_body: CreateNatsTriggerJsonBody,
51
+ ) -> Response[Any]:
52
+ """create nats trigger
53
+
54
+ Args:
55
+ workspace (str):
56
+ json_body (CreateNatsTriggerJsonBody):
57
+
58
+ Raises:
59
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
60
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
61
+
62
+ Returns:
63
+ Response[Any]
64
+ """
65
+
66
+ kwargs = _get_kwargs(
67
+ workspace=workspace,
68
+ json_body=json_body,
69
+ )
70
+
71
+ response = client.get_httpx_client().request(
72
+ **kwargs,
73
+ )
74
+
75
+ return _build_response(client=client, response=response)
76
+
77
+
78
+ async def asyncio_detailed(
79
+ workspace: str,
80
+ *,
81
+ client: Union[AuthenticatedClient, Client],
82
+ json_body: CreateNatsTriggerJsonBody,
83
+ ) -> Response[Any]:
84
+ """create nats trigger
85
+
86
+ Args:
87
+ workspace (str):
88
+ json_body (CreateNatsTriggerJsonBody):
89
+
90
+ Raises:
91
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
92
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
93
+
94
+ Returns:
95
+ Response[Any]
96
+ """
97
+
98
+ kwargs = _get_kwargs(
99
+ workspace=workspace,
100
+ json_body=json_body,
101
+ )
102
+
103
+ response = await client.get_async_httpx_client().request(**kwargs)
104
+
105
+ return _build_response(client=client, response=response)
@@ -15,8 +15,8 @@ def _get_kwargs(
15
15
  pass
16
16
 
17
17
  return {
18
- "method": "put",
19
- "url": "/w/{workspace}/capture/{path}".format(
18
+ "method": "delete",
19
+ "url": "/w/{workspace}/nats_triggers/delete/{path}".format(
20
20
  workspace=workspace,
21
21
  path=path,
22
22
  ),
@@ -24,8 +24,6 @@ def _get_kwargs(
24
24
 
25
25
 
26
26
  def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]:
27
- if response.status_code == HTTPStatus.CREATED:
28
- return None
29
27
  if client.raise_on_unexpected_status:
30
28
  raise errors.UnexpectedStatus(response.status_code, response.content)
31
29
  else:
@@ -47,7 +45,7 @@ def sync_detailed(
47
45
  *,
48
46
  client: Union[AuthenticatedClient, Client],
49
47
  ) -> Response[Any]:
50
- """create flow preview capture
48
+ """delete nats trigger
51
49
 
52
50
  Args:
53
51
  workspace (str):
@@ -79,7 +77,7 @@ async def asyncio_detailed(
79
77
  *,
80
78
  client: Union[AuthenticatedClient, Client],
81
79
  ) -> Response[Any]:
82
- """create flow preview capture
80
+ """delete nats trigger
83
81
 
84
82
  Args:
85
83
  workspace (str):
@@ -0,0 +1,160 @@
1
+ from http import HTTPStatus
2
+ from typing import Any, Dict, Optional, Union, cast
3
+
4
+ import httpx
5
+
6
+ from ... import errors
7
+ from ...client import AuthenticatedClient, Client
8
+ from ...types import Response
9
+
10
+
11
+ def _get_kwargs(
12
+ workspace: str,
13
+ path: str,
14
+ ) -> Dict[str, Any]:
15
+ pass
16
+
17
+ return {
18
+ "method": "get",
19
+ "url": "/w/{workspace}/nats_triggers/exists/{path}".format(
20
+ workspace=workspace,
21
+ path=path,
22
+ ),
23
+ }
24
+
25
+
26
+ def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[bool]:
27
+ if response.status_code == HTTPStatus.OK:
28
+ response_200 = cast(bool, response.json())
29
+ return response_200
30
+ if client.raise_on_unexpected_status:
31
+ raise errors.UnexpectedStatus(response.status_code, response.content)
32
+ else:
33
+ return None
34
+
35
+
36
+ def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[bool]:
37
+ return Response(
38
+ status_code=HTTPStatus(response.status_code),
39
+ content=response.content,
40
+ headers=response.headers,
41
+ parsed=_parse_response(client=client, response=response),
42
+ )
43
+
44
+
45
+ def sync_detailed(
46
+ workspace: str,
47
+ path: str,
48
+ *,
49
+ client: Union[AuthenticatedClient, Client],
50
+ ) -> Response[bool]:
51
+ """does nats trigger exists
52
+
53
+ Args:
54
+ workspace (str):
55
+ path (str):
56
+
57
+ Raises:
58
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
59
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
60
+
61
+ Returns:
62
+ Response[bool]
63
+ """
64
+
65
+ kwargs = _get_kwargs(
66
+ workspace=workspace,
67
+ path=path,
68
+ )
69
+
70
+ response = client.get_httpx_client().request(
71
+ **kwargs,
72
+ )
73
+
74
+ return _build_response(client=client, response=response)
75
+
76
+
77
+ def sync(
78
+ workspace: str,
79
+ path: str,
80
+ *,
81
+ client: Union[AuthenticatedClient, Client],
82
+ ) -> Optional[bool]:
83
+ """does nats trigger exists
84
+
85
+ Args:
86
+ workspace (str):
87
+ path (str):
88
+
89
+ Raises:
90
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
91
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
92
+
93
+ Returns:
94
+ bool
95
+ """
96
+
97
+ return sync_detailed(
98
+ workspace=workspace,
99
+ path=path,
100
+ client=client,
101
+ ).parsed
102
+
103
+
104
+ async def asyncio_detailed(
105
+ workspace: str,
106
+ path: str,
107
+ *,
108
+ client: Union[AuthenticatedClient, Client],
109
+ ) -> Response[bool]:
110
+ """does nats trigger exists
111
+
112
+ Args:
113
+ workspace (str):
114
+ path (str):
115
+
116
+ Raises:
117
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
118
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
119
+
120
+ Returns:
121
+ Response[bool]
122
+ """
123
+
124
+ kwargs = _get_kwargs(
125
+ workspace=workspace,
126
+ path=path,
127
+ )
128
+
129
+ response = await client.get_async_httpx_client().request(**kwargs)
130
+
131
+ return _build_response(client=client, response=response)
132
+
133
+
134
+ async def asyncio(
135
+ workspace: str,
136
+ path: str,
137
+ *,
138
+ client: Union[AuthenticatedClient, Client],
139
+ ) -> Optional[bool]:
140
+ """does nats trigger exists
141
+
142
+ Args:
143
+ workspace (str):
144
+ path (str):
145
+
146
+ Raises:
147
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
148
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
149
+
150
+ Returns:
151
+ bool
152
+ """
153
+
154
+ return (
155
+ await asyncio_detailed(
156
+ workspace=workspace,
157
+ path=path,
158
+ client=client,
159
+ )
160
+ ).parsed
@@ -0,0 +1,166 @@
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.get_nats_trigger_response_200 import GetNatsTriggerResponse200
9
+ from ...types import Response
10
+
11
+
12
+ def _get_kwargs(
13
+ workspace: str,
14
+ path: str,
15
+ ) -> Dict[str, Any]:
16
+ pass
17
+
18
+ return {
19
+ "method": "get",
20
+ "url": "/w/{workspace}/nats_triggers/get/{path}".format(
21
+ workspace=workspace,
22
+ path=path,
23
+ ),
24
+ }
25
+
26
+
27
+ def _parse_response(
28
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
29
+ ) -> Optional[GetNatsTriggerResponse200]:
30
+ if response.status_code == HTTPStatus.OK:
31
+ response_200 = GetNatsTriggerResponse200.from_dict(response.json())
32
+
33
+ return response_200
34
+ if client.raise_on_unexpected_status:
35
+ raise errors.UnexpectedStatus(response.status_code, response.content)
36
+ else:
37
+ return None
38
+
39
+
40
+ def _build_response(
41
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
42
+ ) -> Response[GetNatsTriggerResponse200]:
43
+ return Response(
44
+ status_code=HTTPStatus(response.status_code),
45
+ content=response.content,
46
+ headers=response.headers,
47
+ parsed=_parse_response(client=client, response=response),
48
+ )
49
+
50
+
51
+ def sync_detailed(
52
+ workspace: str,
53
+ path: str,
54
+ *,
55
+ client: Union[AuthenticatedClient, Client],
56
+ ) -> Response[GetNatsTriggerResponse200]:
57
+ """get nats trigger
58
+
59
+ Args:
60
+ workspace (str):
61
+ path (str):
62
+
63
+ Raises:
64
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
65
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
66
+
67
+ Returns:
68
+ Response[GetNatsTriggerResponse200]
69
+ """
70
+
71
+ kwargs = _get_kwargs(
72
+ workspace=workspace,
73
+ path=path,
74
+ )
75
+
76
+ response = client.get_httpx_client().request(
77
+ **kwargs,
78
+ )
79
+
80
+ return _build_response(client=client, response=response)
81
+
82
+
83
+ def sync(
84
+ workspace: str,
85
+ path: str,
86
+ *,
87
+ client: Union[AuthenticatedClient, Client],
88
+ ) -> Optional[GetNatsTriggerResponse200]:
89
+ """get nats trigger
90
+
91
+ Args:
92
+ workspace (str):
93
+ path (str):
94
+
95
+ Raises:
96
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
97
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
98
+
99
+ Returns:
100
+ GetNatsTriggerResponse200
101
+ """
102
+
103
+ return sync_detailed(
104
+ workspace=workspace,
105
+ path=path,
106
+ client=client,
107
+ ).parsed
108
+
109
+
110
+ async def asyncio_detailed(
111
+ workspace: str,
112
+ path: str,
113
+ *,
114
+ client: Union[AuthenticatedClient, Client],
115
+ ) -> Response[GetNatsTriggerResponse200]:
116
+ """get nats trigger
117
+
118
+ Args:
119
+ workspace (str):
120
+ path (str):
121
+
122
+ Raises:
123
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
124
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
125
+
126
+ Returns:
127
+ Response[GetNatsTriggerResponse200]
128
+ """
129
+
130
+ kwargs = _get_kwargs(
131
+ workspace=workspace,
132
+ path=path,
133
+ )
134
+
135
+ response = await client.get_async_httpx_client().request(**kwargs)
136
+
137
+ return _build_response(client=client, response=response)
138
+
139
+
140
+ async def asyncio(
141
+ workspace: str,
142
+ path: str,
143
+ *,
144
+ client: Union[AuthenticatedClient, Client],
145
+ ) -> Optional[GetNatsTriggerResponse200]:
146
+ """get nats trigger
147
+
148
+ Args:
149
+ workspace (str):
150
+ path (str):
151
+
152
+ Raises:
153
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
154
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
155
+
156
+ Returns:
157
+ GetNatsTriggerResponse200
158
+ """
159
+
160
+ return (
161
+ await asyncio_detailed(
162
+ workspace=workspace,
163
+ path=path,
164
+ client=client,
165
+ )
166
+ ).parsed
@@ -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_nats_triggers_response_200_item import ListNatsTriggersResponse200Item
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}/nats_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["ListNatsTriggersResponse200Item"]]:
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 = ListNatsTriggersResponse200Item.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["ListNatsTriggersResponse200Item"]]:
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["ListNatsTriggersResponse200Item"]]:
84
+ """list nats 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['ListNatsTriggersResponse200Item']]
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["ListNatsTriggersResponse200Item"]]:
128
+ """list nats 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['ListNatsTriggersResponse200Item']
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["ListNatsTriggersResponse200Item"]]:
167
+ """list nats 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['ListNatsTriggersResponse200Item']]
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["ListNatsTriggersResponse200Item"]]:
209
+ """list nats 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['ListNatsTriggersResponse200Item']
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