windmill-api 1.551.4__py3-none-any.whl → 1.552.1__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.

@@ -6,19 +6,30 @@ import httpx
6
6
  from ... import errors
7
7
  from ...client import AuthenticatedClient, Client
8
8
  from ...models.list_autoscaling_events_response_200_item import ListAutoscalingEventsResponse200Item
9
- from ...types import Response
9
+ from ...types import UNSET, Response, Unset
10
10
 
11
11
 
12
12
  def _get_kwargs(
13
13
  worker_group: str,
14
+ *,
15
+ page: Union[Unset, None, int] = UNSET,
16
+ per_page: Union[Unset, None, int] = UNSET,
14
17
  ) -> Dict[str, Any]:
15
18
  pass
16
19
 
20
+ params: Dict[str, Any] = {}
21
+ params["page"] = page
22
+
23
+ params["per_page"] = per_page
24
+
25
+ params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
26
+
17
27
  return {
18
28
  "method": "get",
19
29
  "url": "/configs/list_autoscaling_events/{worker_group}".format(
20
30
  worker_group=worker_group,
21
31
  ),
32
+ "params": params,
22
33
  }
23
34
 
24
35
 
@@ -55,11 +66,15 @@ def sync_detailed(
55
66
  worker_group: str,
56
67
  *,
57
68
  client: Union[AuthenticatedClient, Client],
69
+ page: Union[Unset, None, int] = UNSET,
70
+ per_page: Union[Unset, None, int] = UNSET,
58
71
  ) -> Response[List["ListAutoscalingEventsResponse200Item"]]:
59
72
  """List autoscaling events
60
73
 
61
74
  Args:
62
75
  worker_group (str):
76
+ page (Union[Unset, None, int]):
77
+ per_page (Union[Unset, None, int]):
63
78
 
64
79
  Raises:
65
80
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -71,6 +86,8 @@ def sync_detailed(
71
86
 
72
87
  kwargs = _get_kwargs(
73
88
  worker_group=worker_group,
89
+ page=page,
90
+ per_page=per_page,
74
91
  )
75
92
 
76
93
  response = client.get_httpx_client().request(
@@ -84,11 +101,15 @@ def sync(
84
101
  worker_group: str,
85
102
  *,
86
103
  client: Union[AuthenticatedClient, Client],
104
+ page: Union[Unset, None, int] = UNSET,
105
+ per_page: Union[Unset, None, int] = UNSET,
87
106
  ) -> Optional[List["ListAutoscalingEventsResponse200Item"]]:
88
107
  """List autoscaling events
89
108
 
90
109
  Args:
91
110
  worker_group (str):
111
+ page (Union[Unset, None, int]):
112
+ per_page (Union[Unset, None, int]):
92
113
 
93
114
  Raises:
94
115
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -101,6 +122,8 @@ def sync(
101
122
  return sync_detailed(
102
123
  worker_group=worker_group,
103
124
  client=client,
125
+ page=page,
126
+ per_page=per_page,
104
127
  ).parsed
105
128
 
106
129
 
@@ -108,11 +131,15 @@ async def asyncio_detailed(
108
131
  worker_group: str,
109
132
  *,
110
133
  client: Union[AuthenticatedClient, Client],
134
+ page: Union[Unset, None, int] = UNSET,
135
+ per_page: Union[Unset, None, int] = UNSET,
111
136
  ) -> Response[List["ListAutoscalingEventsResponse200Item"]]:
112
137
  """List autoscaling events
113
138
 
114
139
  Args:
115
140
  worker_group (str):
141
+ page (Union[Unset, None, int]):
142
+ per_page (Union[Unset, None, int]):
116
143
 
117
144
  Raises:
118
145
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -124,6 +151,8 @@ async def asyncio_detailed(
124
151
 
125
152
  kwargs = _get_kwargs(
126
153
  worker_group=worker_group,
154
+ page=page,
155
+ per_page=per_page,
127
156
  )
128
157
 
129
158
  response = await client.get_async_httpx_client().request(**kwargs)
@@ -135,11 +164,15 @@ async def asyncio(
135
164
  worker_group: str,
136
165
  *,
137
166
  client: Union[AuthenticatedClient, Client],
167
+ page: Union[Unset, None, int] = UNSET,
168
+ per_page: Union[Unset, None, int] = UNSET,
138
169
  ) -> Optional[List["ListAutoscalingEventsResponse200Item"]]:
139
170
  """List autoscaling events
140
171
 
141
172
  Args:
142
173
  worker_group (str):
174
+ page (Union[Unset, None, int]):
175
+ per_page (Union[Unset, None, int]):
143
176
 
144
177
  Raises:
145
178
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -153,5 +186,7 @@ async def asyncio(
153
186
  await asyncio_detailed(
154
187
  worker_group=worker_group,
155
188
  client=client,
189
+ page=page,
190
+ per_page=per_page,
156
191
  )
157
192
  ).parsed
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: windmill-api
3
- Version: 1.551.4
3
+ Version: 1.552.1
4
4
  Summary: A client library for accessing Windmill API
5
5
  License: Apache-2.0
6
6
  Author: Ruben Fiszel
@@ -55,7 +55,7 @@ windmill_api/api/concurrency_groups/list_extended_jobs.py,sha256=yMsZZohK_sWkK6o
55
55
  windmill_api/api/config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
56
56
  windmill_api/api/config/delete_config.py,sha256=tIXSiXwRK6MUaolHhicQydeyht60L6LNlZDwd96OLF8,2223
57
57
  windmill_api/api/config/get_config.py,sha256=ww07uiAEk2uV3IXQ5vSSbaSwM2OljVyMv2uUVhv54sE,3909
58
- windmill_api/api/config/list_autoscaling_events.py,sha256=MWN5UWGmRJuzgXZTrOYbwOSHLJAEZIslSBeE2RN-kaw,4349
58
+ windmill_api/api/config/list_autoscaling_events.py,sha256=aBHbjqXt7SAQtPG6KIphzYA7jyAic-dfsv3sYQAZqMk,5552
59
59
  windmill_api/api/config/list_available_python_versions.py,sha256=H7AhlipTFe9PM6-HcCtxw_UqYqR-8db8Q8XuuiWM5ZI,3311
60
60
  windmill_api/api/config/list_configs.py,sha256=7Tuv-IRzSDOe03SEw33Gogv6p2JqBf0SvSGXlfM2TqQ,3657
61
61
  windmill_api/api/config/list_worker_groups.py,sha256=En8Im6pXzBhrJfjGpBj05XCUzZOxzxBQyPVaJ3ZmYHI,3761
@@ -5486,7 +5486,7 @@ windmill_api/models/workspace_invite.py,sha256=wp-J-VJLkXsfQzw1PdNPGQhETsFCFXh1e
5486
5486
  windmill_api/models/workspace_mute_critical_alerts_ui_json_body.py,sha256=y8ZwkWEZgavVc-FgLuZZ4z8YPCLxjPcMfdGdKjGM6VQ,1883
5487
5487
  windmill_api/py.typed,sha256=8ZJUsxZiuOy1oJeVhsTWQhTG_6pTVHVXk5hJL79ebTk,25
5488
5488
  windmill_api/types.py,sha256=GoYub3t4hQP2Yn5tsvShsBfIY3vHUmblU0MXszDx_V0,968
5489
- windmill_api-1.551.4.dist-info/LICENSE,sha256=qJVFNTaOevCeSY6NoXeUG1SPOwQ1K-PxVQ2iEWJzX-A,11348
5490
- windmill_api-1.551.4.dist-info/METADATA,sha256=XDQ1dbgA_ZE2TuaWTDrdXD-8AJBB0pplkZnXPACjQag,5023
5491
- windmill_api-1.551.4.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
5492
- windmill_api-1.551.4.dist-info/RECORD,,
5489
+ windmill_api-1.552.1.dist-info/LICENSE,sha256=qJVFNTaOevCeSY6NoXeUG1SPOwQ1K-PxVQ2iEWJzX-A,11348
5490
+ windmill_api-1.552.1.dist-info/METADATA,sha256=Ch_xJIcAF7PmWs0Dx1O-F2fpHD63ggZmBM5kZ8gv6zY,5023
5491
+ windmill_api-1.552.1.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
5492
+ windmill_api-1.552.1.dist-info/RECORD,,