windmill-api 1.503.2__py3-none-any.whl → 1.504.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.
- windmill_api/api/setting/get_secondary_storage_names.py +147 -0
- {windmill_api-1.503.2.dist-info → windmill_api-1.504.0.dist-info}/METADATA +1 -1
- {windmill_api-1.503.2.dist-info → windmill_api-1.504.0.dist-info}/RECORD +5 -4
- {windmill_api-1.503.2.dist-info → windmill_api-1.504.0.dist-info}/LICENSE +0 -0
- {windmill_api-1.503.2.dist-info → windmill_api-1.504.0.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
from http import HTTPStatus
|
|
2
|
+
from typing import Any, Dict, List, 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
|
+
) -> Dict[str, Any]:
|
|
14
|
+
pass
|
|
15
|
+
|
|
16
|
+
return {
|
|
17
|
+
"method": "get",
|
|
18
|
+
"url": "/w/{workspace}/workspaces/get_secondary_storage_names".format(
|
|
19
|
+
workspace=workspace,
|
|
20
|
+
),
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[List[str]]:
|
|
25
|
+
if response.status_code == HTTPStatus.OK:
|
|
26
|
+
response_200 = cast(List[str], response.json())
|
|
27
|
+
|
|
28
|
+
return response_200
|
|
29
|
+
if client.raise_on_unexpected_status:
|
|
30
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
31
|
+
else:
|
|
32
|
+
return None
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[List[str]]:
|
|
36
|
+
return Response(
|
|
37
|
+
status_code=HTTPStatus(response.status_code),
|
|
38
|
+
content=response.content,
|
|
39
|
+
headers=response.headers,
|
|
40
|
+
parsed=_parse_response(client=client, response=response),
|
|
41
|
+
)
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
def sync_detailed(
|
|
45
|
+
workspace: str,
|
|
46
|
+
*,
|
|
47
|
+
client: Union[AuthenticatedClient, Client],
|
|
48
|
+
) -> Response[List[str]]:
|
|
49
|
+
"""get secondary storage names
|
|
50
|
+
|
|
51
|
+
Args:
|
|
52
|
+
workspace (str):
|
|
53
|
+
|
|
54
|
+
Raises:
|
|
55
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
56
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
57
|
+
|
|
58
|
+
Returns:
|
|
59
|
+
Response[List[str]]
|
|
60
|
+
"""
|
|
61
|
+
|
|
62
|
+
kwargs = _get_kwargs(
|
|
63
|
+
workspace=workspace,
|
|
64
|
+
)
|
|
65
|
+
|
|
66
|
+
response = client.get_httpx_client().request(
|
|
67
|
+
**kwargs,
|
|
68
|
+
)
|
|
69
|
+
|
|
70
|
+
return _build_response(client=client, response=response)
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
def sync(
|
|
74
|
+
workspace: str,
|
|
75
|
+
*,
|
|
76
|
+
client: Union[AuthenticatedClient, Client],
|
|
77
|
+
) -> Optional[List[str]]:
|
|
78
|
+
"""get secondary storage names
|
|
79
|
+
|
|
80
|
+
Args:
|
|
81
|
+
workspace (str):
|
|
82
|
+
|
|
83
|
+
Raises:
|
|
84
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
85
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
86
|
+
|
|
87
|
+
Returns:
|
|
88
|
+
List[str]
|
|
89
|
+
"""
|
|
90
|
+
|
|
91
|
+
return sync_detailed(
|
|
92
|
+
workspace=workspace,
|
|
93
|
+
client=client,
|
|
94
|
+
).parsed
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
async def asyncio_detailed(
|
|
98
|
+
workspace: str,
|
|
99
|
+
*,
|
|
100
|
+
client: Union[AuthenticatedClient, Client],
|
|
101
|
+
) -> Response[List[str]]:
|
|
102
|
+
"""get secondary storage names
|
|
103
|
+
|
|
104
|
+
Args:
|
|
105
|
+
workspace (str):
|
|
106
|
+
|
|
107
|
+
Raises:
|
|
108
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
109
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
110
|
+
|
|
111
|
+
Returns:
|
|
112
|
+
Response[List[str]]
|
|
113
|
+
"""
|
|
114
|
+
|
|
115
|
+
kwargs = _get_kwargs(
|
|
116
|
+
workspace=workspace,
|
|
117
|
+
)
|
|
118
|
+
|
|
119
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
120
|
+
|
|
121
|
+
return _build_response(client=client, response=response)
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
async def asyncio(
|
|
125
|
+
workspace: str,
|
|
126
|
+
*,
|
|
127
|
+
client: Union[AuthenticatedClient, Client],
|
|
128
|
+
) -> Optional[List[str]]:
|
|
129
|
+
"""get secondary storage names
|
|
130
|
+
|
|
131
|
+
Args:
|
|
132
|
+
workspace (str):
|
|
133
|
+
|
|
134
|
+
Raises:
|
|
135
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
136
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
137
|
+
|
|
138
|
+
Returns:
|
|
139
|
+
List[str]
|
|
140
|
+
"""
|
|
141
|
+
|
|
142
|
+
return (
|
|
143
|
+
await asyncio_detailed(
|
|
144
|
+
workspace=workspace,
|
|
145
|
+
client=client,
|
|
146
|
+
)
|
|
147
|
+
).parsed
|
|
@@ -378,6 +378,7 @@ windmill_api/api/setting/get_critical_alerts.py,sha256=kMvtUR6ZBD3PJH4LbNya3RbtF
|
|
|
378
378
|
windmill_api/api/setting/get_global.py,sha256=fROXxArQM5x7HHue_VWX9Y2i-Dm_byRs9Y1yIsYDogI,2287
|
|
379
379
|
windmill_api/api/setting/get_latest_key_renewal_attempt.py,sha256=MJtImlDMxdeizItTpsMIbBlWcJLc0pjwVTkeOIinAKE,3916
|
|
380
380
|
windmill_api/api/setting/get_local.py,sha256=zSx_gnsuRuDjUb0GA5tS5eiZk_8OVTM54j_d06Wxf2M,2092
|
|
381
|
+
windmill_api/api/setting/get_secondary_storage_names.py,sha256=WvrwqF0o1gcajfZNbYS9vSJ9p1IXdr5jUZw2eaijyKo,3639
|
|
381
382
|
windmill_api/api/setting/list_global_settings.py,sha256=1-gFCx7HLyU-I_5SGXvrKg8vkWqfwrYDi1YcehQUsrk,3789
|
|
382
383
|
windmill_api/api/setting/renew_license_key.py,sha256=Pe8aWUBKv1_gRagYPafeZtrfCV8s3qUMKyYnKCoUn7E,2584
|
|
383
384
|
windmill_api/api/setting/send_stats.py,sha256=mcTxeJlSkxLAiFI7Ox6agX7xiki0XVWxtymaMt03FoA,2016
|
|
@@ -4022,7 +4023,7 @@ windmill_api/models/workspace_invite.py,sha256=HnAJWGv5LwxWkz1T3fhgHKIccO7RFC1li
|
|
|
4022
4023
|
windmill_api/models/workspace_mute_critical_alerts_ui_json_body.py,sha256=y8ZwkWEZgavVc-FgLuZZ4z8YPCLxjPcMfdGdKjGM6VQ,1883
|
|
4023
4024
|
windmill_api/py.typed,sha256=8ZJUsxZiuOy1oJeVhsTWQhTG_6pTVHVXk5hJL79ebTk,25
|
|
4024
4025
|
windmill_api/types.py,sha256=GoYub3t4hQP2Yn5tsvShsBfIY3vHUmblU0MXszDx_V0,968
|
|
4025
|
-
windmill_api-1.
|
|
4026
|
-
windmill_api-1.
|
|
4027
|
-
windmill_api-1.
|
|
4028
|
-
windmill_api-1.
|
|
4026
|
+
windmill_api-1.504.0.dist-info/LICENSE,sha256=qJVFNTaOevCeSY6NoXeUG1SPOwQ1K-PxVQ2iEWJzX-A,11348
|
|
4027
|
+
windmill_api-1.504.0.dist-info/METADATA,sha256=gxR1WAwLIrWr3XorKy8dq3f4qOtrryxq4dGoKcgo70M,5023
|
|
4028
|
+
windmill_api-1.504.0.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
|
|
4029
|
+
windmill_api-1.504.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|