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

@@ -0,0 +1,79 @@
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 ...types import Response
9
+
10
+
11
+ def _get_kwargs() -> Dict[str, Any]:
12
+ pass
13
+
14
+ return {
15
+ "method": "get",
16
+ "url": "/configs/native_kubernetes_autoscaling_healthcheck",
17
+ }
18
+
19
+
20
+ def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]:
21
+ if response.status_code == HTTPStatus.OK:
22
+ return None
23
+ if client.raise_on_unexpected_status:
24
+ raise errors.UnexpectedStatus(response.status_code, response.content)
25
+ else:
26
+ return None
27
+
28
+
29
+ def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]:
30
+ return Response(
31
+ status_code=HTTPStatus(response.status_code),
32
+ content=response.content,
33
+ headers=response.headers,
34
+ parsed=_parse_response(client=client, response=response),
35
+ )
36
+
37
+
38
+ def sync_detailed(
39
+ *,
40
+ client: Union[AuthenticatedClient, Client],
41
+ ) -> Response[Any]:
42
+ """Check Kubernetes autoscaling health for a worker group
43
+
44
+ Raises:
45
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
46
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
47
+
48
+ Returns:
49
+ Response[Any]
50
+ """
51
+
52
+ kwargs = _get_kwargs()
53
+
54
+ response = client.get_httpx_client().request(
55
+ **kwargs,
56
+ )
57
+
58
+ return _build_response(client=client, response=response)
59
+
60
+
61
+ async def asyncio_detailed(
62
+ *,
63
+ client: Union[AuthenticatedClient, Client],
64
+ ) -> Response[Any]:
65
+ """Check Kubernetes autoscaling health for a worker group
66
+
67
+ Raises:
68
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
69
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
70
+
71
+ Returns:
72
+ Response[Any]
73
+ """
74
+
75
+ kwargs = _get_kwargs()
76
+
77
+ response = await client.get_async_httpx_client().request(**kwargs)
78
+
79
+ return _build_response(client=client, response=response)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: windmill-api
3
- Version: 1.527.0
3
+ Version: 1.528.0
4
4
  Summary: A client library for accessing Windmill API
5
5
  License: Apache-2.0
6
6
  Author: Ruben Fiszel
@@ -59,6 +59,7 @@ windmill_api/api/config/list_autoscaling_events.py,sha256=MWN5UWGmRJuzgXZTrOYbwO
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
62
+ windmill_api/api/config/native_kubernetes_autoscaling_healthcheck.py,sha256=E11EzOmPWCsVROHbvV6lGPNfOIGbOgmCOliUCTC7PzQ,2199
62
63
  windmill_api/api/config/update_config.py,sha256=2zvsOny7pXp51JphnmdpS85CACC35vDzF3JAfk52tfY,2460
63
64
  windmill_api/api/draft/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
64
65
  windmill_api/api/draft/create_draft.py,sha256=fMjW73DJm9UZyEUWa0X0h9ZHoEsYfigFWc5ft3xRdS4,2674
@@ -4422,7 +4423,7 @@ windmill_api/models/workspace_invite.py,sha256=HnAJWGv5LwxWkz1T3fhgHKIccO7RFC1li
4422
4423
  windmill_api/models/workspace_mute_critical_alerts_ui_json_body.py,sha256=y8ZwkWEZgavVc-FgLuZZ4z8YPCLxjPcMfdGdKjGM6VQ,1883
4423
4424
  windmill_api/py.typed,sha256=8ZJUsxZiuOy1oJeVhsTWQhTG_6pTVHVXk5hJL79ebTk,25
4424
4425
  windmill_api/types.py,sha256=GoYub3t4hQP2Yn5tsvShsBfIY3vHUmblU0MXszDx_V0,968
4425
- windmill_api-1.527.0.dist-info/LICENSE,sha256=qJVFNTaOevCeSY6NoXeUG1SPOwQ1K-PxVQ2iEWJzX-A,11348
4426
- windmill_api-1.527.0.dist-info/METADATA,sha256=5XYLmgInP9W3VBdp-MYFihDRC3ErcQuCinvRWze3C8o,5023
4427
- windmill_api-1.527.0.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
4428
- windmill_api-1.527.0.dist-info/RECORD,,
4426
+ windmill_api-1.528.0.dist-info/LICENSE,sha256=qJVFNTaOevCeSY6NoXeUG1SPOwQ1K-PxVQ2iEWJzX-A,11348
4427
+ windmill_api-1.528.0.dist-info/METADATA,sha256=zp4-K9zURouWmt_0PbDvTjRuemZ2yFaA_dvt9wpqM0s,5023
4428
+ windmill_api-1.528.0.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
4429
+ windmill_api-1.528.0.dist-info/RECORD,,