windmill-api 1.434.2__py3-none-any.whl → 1.435.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.
- windmill_api/api/app/custom_path_exists.py +160 -0
- windmill_api/api/app/get_public_app_by_custom_path.py +152 -0
- windmill_api/api/setting/get_critical_alerts.py +13 -18
- windmill_api/api/setting/workspace_get_critical_alerts.py +13 -18
- windmill_api/models/app_with_last_version_w_draft.py +8 -0
- windmill_api/models/create_app_json_body.py +8 -0
- windmill_api/models/get_app_by_path_with_draft_response_200.py +8 -0
- windmill_api/models/get_critical_alerts_response_200.py +92 -0
- windmill_api/models/{get_critical_alerts_response_200_item.py → get_critical_alerts_response_200_alerts_item.py} +5 -5
- windmill_api/models/get_public_app_by_custom_path_response_200.py +153 -0
- windmill_api/models/get_public_app_by_custom_path_response_200_execution_mode.py +10 -0
- windmill_api/models/get_public_app_by_custom_path_response_200_extra_perms.py +44 -0
- windmill_api/models/get_public_app_by_custom_path_response_200_policy.py +159 -0
- windmill_api/models/get_public_app_by_custom_path_response_200_policy_execution_mode.py +10 -0
- windmill_api/models/get_public_app_by_custom_path_response_200_policy_s3_inputs_item.py +44 -0
- windmill_api/models/get_public_app_by_custom_path_response_200_policy_triggerables.py +70 -0
- windmill_api/models/get_public_app_by_custom_path_response_200_policy_triggerables_additional_property.py +44 -0
- windmill_api/models/get_public_app_by_custom_path_response_200_policy_triggerables_v2.py +70 -0
- windmill_api/models/get_public_app_by_custom_path_response_200_policy_triggerables_v2_additional_property.py +44 -0
- windmill_api/models/get_public_app_by_custom_path_response_200_value.py +44 -0
- windmill_api/models/update_app_json_body.py +8 -0
- windmill_api/models/workspace_get_critical_alerts_response_200.py +96 -0
- windmill_api/models/{workspace_get_critical_alerts_response_200_item.py → workspace_get_critical_alerts_response_200_alerts_item.py} +5 -5
- {windmill_api-1.434.2.dist-info → windmill_api-1.435.1.dist-info}/METADATA +1 -1
- {windmill_api-1.434.2.dist-info → windmill_api-1.435.1.dist-info}/RECORD +27 -12
- {windmill_api-1.434.2.dist-info → windmill_api-1.435.1.dist-info}/LICENSE +0 -0
- {windmill_api-1.434.2.dist-info → windmill_api-1.435.1.dist-info}/WHEEL +0 -0
|
@@ -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
|
+
custom_path: str,
|
|
14
|
+
) -> Dict[str, Any]:
|
|
15
|
+
pass
|
|
16
|
+
|
|
17
|
+
return {
|
|
18
|
+
"method": "get",
|
|
19
|
+
"url": "/w/{workspace}/apps/custom_path_exists/{custom_path}".format(
|
|
20
|
+
workspace=workspace,
|
|
21
|
+
custom_path=custom_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
|
+
custom_path: str,
|
|
48
|
+
*,
|
|
49
|
+
client: Union[AuthenticatedClient, Client],
|
|
50
|
+
) -> Response[bool]:
|
|
51
|
+
"""check if custom path exists
|
|
52
|
+
|
|
53
|
+
Args:
|
|
54
|
+
workspace (str):
|
|
55
|
+
custom_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
|
+
custom_path=custom_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
|
+
custom_path: str,
|
|
80
|
+
*,
|
|
81
|
+
client: Union[AuthenticatedClient, Client],
|
|
82
|
+
) -> Optional[bool]:
|
|
83
|
+
"""check if custom path exists
|
|
84
|
+
|
|
85
|
+
Args:
|
|
86
|
+
workspace (str):
|
|
87
|
+
custom_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
|
+
custom_path=custom_path,
|
|
100
|
+
client=client,
|
|
101
|
+
).parsed
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
async def asyncio_detailed(
|
|
105
|
+
workspace: str,
|
|
106
|
+
custom_path: str,
|
|
107
|
+
*,
|
|
108
|
+
client: Union[AuthenticatedClient, Client],
|
|
109
|
+
) -> Response[bool]:
|
|
110
|
+
"""check if custom path exists
|
|
111
|
+
|
|
112
|
+
Args:
|
|
113
|
+
workspace (str):
|
|
114
|
+
custom_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
|
+
custom_path=custom_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
|
+
custom_path: str,
|
|
137
|
+
*,
|
|
138
|
+
client: Union[AuthenticatedClient, Client],
|
|
139
|
+
) -> Optional[bool]:
|
|
140
|
+
"""check if custom path exists
|
|
141
|
+
|
|
142
|
+
Args:
|
|
143
|
+
workspace (str):
|
|
144
|
+
custom_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
|
+
custom_path=custom_path,
|
|
158
|
+
client=client,
|
|
159
|
+
)
|
|
160
|
+
).parsed
|
|
@@ -0,0 +1,152 @@
|
|
|
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_public_app_by_custom_path_response_200 import GetPublicAppByCustomPathResponse200
|
|
9
|
+
from ...types import Response
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
def _get_kwargs(
|
|
13
|
+
custom_path: str,
|
|
14
|
+
) -> Dict[str, Any]:
|
|
15
|
+
pass
|
|
16
|
+
|
|
17
|
+
return {
|
|
18
|
+
"method": "get",
|
|
19
|
+
"url": "/apps_u/public_app_by_custom_path/{custom_path}".format(
|
|
20
|
+
custom_path=custom_path,
|
|
21
|
+
),
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
def _parse_response(
|
|
26
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
27
|
+
) -> Optional[GetPublicAppByCustomPathResponse200]:
|
|
28
|
+
if response.status_code == HTTPStatus.OK:
|
|
29
|
+
response_200 = GetPublicAppByCustomPathResponse200.from_dict(response.json())
|
|
30
|
+
|
|
31
|
+
return response_200
|
|
32
|
+
if client.raise_on_unexpected_status:
|
|
33
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
34
|
+
else:
|
|
35
|
+
return None
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
def _build_response(
|
|
39
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
40
|
+
) -> Response[GetPublicAppByCustomPathResponse200]:
|
|
41
|
+
return Response(
|
|
42
|
+
status_code=HTTPStatus(response.status_code),
|
|
43
|
+
content=response.content,
|
|
44
|
+
headers=response.headers,
|
|
45
|
+
parsed=_parse_response(client=client, response=response),
|
|
46
|
+
)
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
def sync_detailed(
|
|
50
|
+
custom_path: str,
|
|
51
|
+
*,
|
|
52
|
+
client: Union[AuthenticatedClient, Client],
|
|
53
|
+
) -> Response[GetPublicAppByCustomPathResponse200]:
|
|
54
|
+
"""get public app by custom path
|
|
55
|
+
|
|
56
|
+
Args:
|
|
57
|
+
custom_path (str):
|
|
58
|
+
|
|
59
|
+
Raises:
|
|
60
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
61
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
62
|
+
|
|
63
|
+
Returns:
|
|
64
|
+
Response[GetPublicAppByCustomPathResponse200]
|
|
65
|
+
"""
|
|
66
|
+
|
|
67
|
+
kwargs = _get_kwargs(
|
|
68
|
+
custom_path=custom_path,
|
|
69
|
+
)
|
|
70
|
+
|
|
71
|
+
response = client.get_httpx_client().request(
|
|
72
|
+
**kwargs,
|
|
73
|
+
)
|
|
74
|
+
|
|
75
|
+
return _build_response(client=client, response=response)
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
def sync(
|
|
79
|
+
custom_path: str,
|
|
80
|
+
*,
|
|
81
|
+
client: Union[AuthenticatedClient, Client],
|
|
82
|
+
) -> Optional[GetPublicAppByCustomPathResponse200]:
|
|
83
|
+
"""get public app by custom path
|
|
84
|
+
|
|
85
|
+
Args:
|
|
86
|
+
custom_path (str):
|
|
87
|
+
|
|
88
|
+
Raises:
|
|
89
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
90
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
91
|
+
|
|
92
|
+
Returns:
|
|
93
|
+
GetPublicAppByCustomPathResponse200
|
|
94
|
+
"""
|
|
95
|
+
|
|
96
|
+
return sync_detailed(
|
|
97
|
+
custom_path=custom_path,
|
|
98
|
+
client=client,
|
|
99
|
+
).parsed
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
async def asyncio_detailed(
|
|
103
|
+
custom_path: str,
|
|
104
|
+
*,
|
|
105
|
+
client: Union[AuthenticatedClient, Client],
|
|
106
|
+
) -> Response[GetPublicAppByCustomPathResponse200]:
|
|
107
|
+
"""get public app by custom path
|
|
108
|
+
|
|
109
|
+
Args:
|
|
110
|
+
custom_path (str):
|
|
111
|
+
|
|
112
|
+
Raises:
|
|
113
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
114
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
115
|
+
|
|
116
|
+
Returns:
|
|
117
|
+
Response[GetPublicAppByCustomPathResponse200]
|
|
118
|
+
"""
|
|
119
|
+
|
|
120
|
+
kwargs = _get_kwargs(
|
|
121
|
+
custom_path=custom_path,
|
|
122
|
+
)
|
|
123
|
+
|
|
124
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
125
|
+
|
|
126
|
+
return _build_response(client=client, response=response)
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
async def asyncio(
|
|
130
|
+
custom_path: str,
|
|
131
|
+
*,
|
|
132
|
+
client: Union[AuthenticatedClient, Client],
|
|
133
|
+
) -> Optional[GetPublicAppByCustomPathResponse200]:
|
|
134
|
+
"""get public app by custom path
|
|
135
|
+
|
|
136
|
+
Args:
|
|
137
|
+
custom_path (str):
|
|
138
|
+
|
|
139
|
+
Raises:
|
|
140
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
141
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
142
|
+
|
|
143
|
+
Returns:
|
|
144
|
+
GetPublicAppByCustomPathResponse200
|
|
145
|
+
"""
|
|
146
|
+
|
|
147
|
+
return (
|
|
148
|
+
await asyncio_detailed(
|
|
149
|
+
custom_path=custom_path,
|
|
150
|
+
client=client,
|
|
151
|
+
)
|
|
152
|
+
).parsed
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
from http import HTTPStatus
|
|
2
|
-
from typing import Any, Dict,
|
|
2
|
+
from typing import Any, Dict, Optional, Union
|
|
3
3
|
|
|
4
4
|
import httpx
|
|
5
5
|
|
|
6
6
|
from ... import errors
|
|
7
7
|
from ...client import AuthenticatedClient, Client
|
|
8
|
-
from ...models.
|
|
8
|
+
from ...models.get_critical_alerts_response_200 import GetCriticalAlertsResponse200
|
|
9
9
|
from ...types import UNSET, Response, Unset
|
|
10
10
|
|
|
11
11
|
|
|
@@ -35,14 +35,9 @@ def _get_kwargs(
|
|
|
35
35
|
|
|
36
36
|
def _parse_response(
|
|
37
37
|
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
38
|
-
) -> Optional[
|
|
38
|
+
) -> Optional[GetCriticalAlertsResponse200]:
|
|
39
39
|
if response.status_code == HTTPStatus.OK:
|
|
40
|
-
response_200 =
|
|
41
|
-
_response_200 = response.json()
|
|
42
|
-
for response_200_item_data in _response_200:
|
|
43
|
-
response_200_item = GetCriticalAlertsResponse200Item.from_dict(response_200_item_data)
|
|
44
|
-
|
|
45
|
-
response_200.append(response_200_item)
|
|
40
|
+
response_200 = GetCriticalAlertsResponse200.from_dict(response.json())
|
|
46
41
|
|
|
47
42
|
return response_200
|
|
48
43
|
if client.raise_on_unexpected_status:
|
|
@@ -53,7 +48,7 @@ def _parse_response(
|
|
|
53
48
|
|
|
54
49
|
def _build_response(
|
|
55
50
|
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
56
|
-
) -> Response[
|
|
51
|
+
) -> Response[GetCriticalAlertsResponse200]:
|
|
57
52
|
return Response(
|
|
58
53
|
status_code=HTTPStatus(response.status_code),
|
|
59
54
|
content=response.content,
|
|
@@ -68,7 +63,7 @@ def sync_detailed(
|
|
|
68
63
|
page: Union[Unset, None, int] = 1,
|
|
69
64
|
page_size: Union[Unset, None, int] = 10,
|
|
70
65
|
acknowledged: Union[Unset, None, bool] = UNSET,
|
|
71
|
-
) -> Response[
|
|
66
|
+
) -> Response[GetCriticalAlertsResponse200]:
|
|
72
67
|
"""Get all critical alerts
|
|
73
68
|
|
|
74
69
|
Args:
|
|
@@ -84,7 +79,7 @@ def sync_detailed(
|
|
|
84
79
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
85
80
|
|
|
86
81
|
Returns:
|
|
87
|
-
Response[
|
|
82
|
+
Response[GetCriticalAlertsResponse200]
|
|
88
83
|
"""
|
|
89
84
|
|
|
90
85
|
kwargs = _get_kwargs(
|
|
@@ -106,7 +101,7 @@ def sync(
|
|
|
106
101
|
page: Union[Unset, None, int] = 1,
|
|
107
102
|
page_size: Union[Unset, None, int] = 10,
|
|
108
103
|
acknowledged: Union[Unset, None, bool] = UNSET,
|
|
109
|
-
) -> Optional[
|
|
104
|
+
) -> Optional[GetCriticalAlertsResponse200]:
|
|
110
105
|
"""Get all critical alerts
|
|
111
106
|
|
|
112
107
|
Args:
|
|
@@ -122,7 +117,7 @@ def sync(
|
|
|
122
117
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
123
118
|
|
|
124
119
|
Returns:
|
|
125
|
-
|
|
120
|
+
GetCriticalAlertsResponse200
|
|
126
121
|
"""
|
|
127
122
|
|
|
128
123
|
return sync_detailed(
|
|
@@ -139,7 +134,7 @@ async def asyncio_detailed(
|
|
|
139
134
|
page: Union[Unset, None, int] = 1,
|
|
140
135
|
page_size: Union[Unset, None, int] = 10,
|
|
141
136
|
acknowledged: Union[Unset, None, bool] = UNSET,
|
|
142
|
-
) -> Response[
|
|
137
|
+
) -> Response[GetCriticalAlertsResponse200]:
|
|
143
138
|
"""Get all critical alerts
|
|
144
139
|
|
|
145
140
|
Args:
|
|
@@ -155,7 +150,7 @@ async def asyncio_detailed(
|
|
|
155
150
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
156
151
|
|
|
157
152
|
Returns:
|
|
158
|
-
Response[
|
|
153
|
+
Response[GetCriticalAlertsResponse200]
|
|
159
154
|
"""
|
|
160
155
|
|
|
161
156
|
kwargs = _get_kwargs(
|
|
@@ -175,7 +170,7 @@ async def asyncio(
|
|
|
175
170
|
page: Union[Unset, None, int] = 1,
|
|
176
171
|
page_size: Union[Unset, None, int] = 10,
|
|
177
172
|
acknowledged: Union[Unset, None, bool] = UNSET,
|
|
178
|
-
) -> Optional[
|
|
173
|
+
) -> Optional[GetCriticalAlertsResponse200]:
|
|
179
174
|
"""Get all critical alerts
|
|
180
175
|
|
|
181
176
|
Args:
|
|
@@ -191,7 +186,7 @@ async def asyncio(
|
|
|
191
186
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
192
187
|
|
|
193
188
|
Returns:
|
|
194
|
-
|
|
189
|
+
GetCriticalAlertsResponse200
|
|
195
190
|
"""
|
|
196
191
|
|
|
197
192
|
return (
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
from http import HTTPStatus
|
|
2
|
-
from typing import Any, Dict,
|
|
2
|
+
from typing import Any, Dict, Optional, Union
|
|
3
3
|
|
|
4
4
|
import httpx
|
|
5
5
|
|
|
6
6
|
from ... import errors
|
|
7
7
|
from ...client import AuthenticatedClient, Client
|
|
8
|
-
from ...models.
|
|
8
|
+
from ...models.workspace_get_critical_alerts_response_200 import WorkspaceGetCriticalAlertsResponse200
|
|
9
9
|
from ...types import UNSET, Response, Unset
|
|
10
10
|
|
|
11
11
|
|
|
@@ -38,14 +38,9 @@ def _get_kwargs(
|
|
|
38
38
|
|
|
39
39
|
def _parse_response(
|
|
40
40
|
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
41
|
-
) -> Optional[
|
|
41
|
+
) -> Optional[WorkspaceGetCriticalAlertsResponse200]:
|
|
42
42
|
if response.status_code == HTTPStatus.OK:
|
|
43
|
-
response_200 =
|
|
44
|
-
_response_200 = response.json()
|
|
45
|
-
for response_200_item_data in _response_200:
|
|
46
|
-
response_200_item = WorkspaceGetCriticalAlertsResponse200Item.from_dict(response_200_item_data)
|
|
47
|
-
|
|
48
|
-
response_200.append(response_200_item)
|
|
43
|
+
response_200 = WorkspaceGetCriticalAlertsResponse200.from_dict(response.json())
|
|
49
44
|
|
|
50
45
|
return response_200
|
|
51
46
|
if client.raise_on_unexpected_status:
|
|
@@ -56,7 +51,7 @@ def _parse_response(
|
|
|
56
51
|
|
|
57
52
|
def _build_response(
|
|
58
53
|
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
59
|
-
) -> Response[
|
|
54
|
+
) -> Response[WorkspaceGetCriticalAlertsResponse200]:
|
|
60
55
|
return Response(
|
|
61
56
|
status_code=HTTPStatus(response.status_code),
|
|
62
57
|
content=response.content,
|
|
@@ -72,7 +67,7 @@ def sync_detailed(
|
|
|
72
67
|
page: Union[Unset, None, int] = 1,
|
|
73
68
|
page_size: Union[Unset, None, int] = 10,
|
|
74
69
|
acknowledged: Union[Unset, None, bool] = UNSET,
|
|
75
|
-
) -> Response[
|
|
70
|
+
) -> Response[WorkspaceGetCriticalAlertsResponse200]:
|
|
76
71
|
"""Get all critical alerts for this workspace
|
|
77
72
|
|
|
78
73
|
Args:
|
|
@@ -89,7 +84,7 @@ def sync_detailed(
|
|
|
89
84
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
90
85
|
|
|
91
86
|
Returns:
|
|
92
|
-
Response[
|
|
87
|
+
Response[WorkspaceGetCriticalAlertsResponse200]
|
|
93
88
|
"""
|
|
94
89
|
|
|
95
90
|
kwargs = _get_kwargs(
|
|
@@ -113,7 +108,7 @@ def sync(
|
|
|
113
108
|
page: Union[Unset, None, int] = 1,
|
|
114
109
|
page_size: Union[Unset, None, int] = 10,
|
|
115
110
|
acknowledged: Union[Unset, None, bool] = UNSET,
|
|
116
|
-
) -> Optional[
|
|
111
|
+
) -> Optional[WorkspaceGetCriticalAlertsResponse200]:
|
|
117
112
|
"""Get all critical alerts for this workspace
|
|
118
113
|
|
|
119
114
|
Args:
|
|
@@ -130,7 +125,7 @@ def sync(
|
|
|
130
125
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
131
126
|
|
|
132
127
|
Returns:
|
|
133
|
-
|
|
128
|
+
WorkspaceGetCriticalAlertsResponse200
|
|
134
129
|
"""
|
|
135
130
|
|
|
136
131
|
return sync_detailed(
|
|
@@ -149,7 +144,7 @@ async def asyncio_detailed(
|
|
|
149
144
|
page: Union[Unset, None, int] = 1,
|
|
150
145
|
page_size: Union[Unset, None, int] = 10,
|
|
151
146
|
acknowledged: Union[Unset, None, bool] = UNSET,
|
|
152
|
-
) -> Response[
|
|
147
|
+
) -> Response[WorkspaceGetCriticalAlertsResponse200]:
|
|
153
148
|
"""Get all critical alerts for this workspace
|
|
154
149
|
|
|
155
150
|
Args:
|
|
@@ -166,7 +161,7 @@ async def asyncio_detailed(
|
|
|
166
161
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
167
162
|
|
|
168
163
|
Returns:
|
|
169
|
-
Response[
|
|
164
|
+
Response[WorkspaceGetCriticalAlertsResponse200]
|
|
170
165
|
"""
|
|
171
166
|
|
|
172
167
|
kwargs = _get_kwargs(
|
|
@@ -188,7 +183,7 @@ async def asyncio(
|
|
|
188
183
|
page: Union[Unset, None, int] = 1,
|
|
189
184
|
page_size: Union[Unset, None, int] = 10,
|
|
190
185
|
acknowledged: Union[Unset, None, bool] = UNSET,
|
|
191
|
-
) -> Optional[
|
|
186
|
+
) -> Optional[WorkspaceGetCriticalAlertsResponse200]:
|
|
192
187
|
"""Get all critical alerts for this workspace
|
|
193
188
|
|
|
194
189
|
Args:
|
|
@@ -205,7 +200,7 @@ async def asyncio(
|
|
|
205
200
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
206
201
|
|
|
207
202
|
Returns:
|
|
208
|
-
|
|
203
|
+
WorkspaceGetCriticalAlertsResponse200
|
|
209
204
|
"""
|
|
210
205
|
|
|
211
206
|
return (
|
|
@@ -34,6 +34,7 @@ class AppWithLastVersionWDraft:
|
|
|
34
34
|
extra_perms (AppWithLastVersionWDraftExtraPerms):
|
|
35
35
|
draft_only (Union[Unset, bool]):
|
|
36
36
|
draft (Union[Unset, Any]):
|
|
37
|
+
custom_path (Union[Unset, str]):
|
|
37
38
|
"""
|
|
38
39
|
|
|
39
40
|
id: int
|
|
@@ -49,6 +50,7 @@ class AppWithLastVersionWDraft:
|
|
|
49
50
|
extra_perms: "AppWithLastVersionWDraftExtraPerms"
|
|
50
51
|
draft_only: Union[Unset, bool] = UNSET
|
|
51
52
|
draft: Union[Unset, Any] = UNSET
|
|
53
|
+
custom_path: Union[Unset, str] = UNSET
|
|
52
54
|
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
53
55
|
|
|
54
56
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -71,6 +73,7 @@ class AppWithLastVersionWDraft:
|
|
|
71
73
|
|
|
72
74
|
draft_only = self.draft_only
|
|
73
75
|
draft = self.draft
|
|
76
|
+
custom_path = self.custom_path
|
|
74
77
|
|
|
75
78
|
field_dict: Dict[str, Any] = {}
|
|
76
79
|
field_dict.update(self.additional_properties)
|
|
@@ -93,6 +96,8 @@ class AppWithLastVersionWDraft:
|
|
|
93
96
|
field_dict["draft_only"] = draft_only
|
|
94
97
|
if draft is not UNSET:
|
|
95
98
|
field_dict["draft"] = draft
|
|
99
|
+
if custom_path is not UNSET:
|
|
100
|
+
field_dict["custom_path"] = custom_path
|
|
96
101
|
|
|
97
102
|
return field_dict
|
|
98
103
|
|
|
@@ -129,6 +134,8 @@ class AppWithLastVersionWDraft:
|
|
|
129
134
|
|
|
130
135
|
draft = d.pop("draft", UNSET)
|
|
131
136
|
|
|
137
|
+
custom_path = d.pop("custom_path", UNSET)
|
|
138
|
+
|
|
132
139
|
app_with_last_version_w_draft = cls(
|
|
133
140
|
id=id,
|
|
134
141
|
workspace_id=workspace_id,
|
|
@@ -143,6 +150,7 @@ class AppWithLastVersionWDraft:
|
|
|
143
150
|
extra_perms=extra_perms,
|
|
144
151
|
draft_only=draft_only,
|
|
145
152
|
draft=draft,
|
|
153
|
+
custom_path=custom_path,
|
|
146
154
|
)
|
|
147
155
|
|
|
148
156
|
app_with_last_version_w_draft.additional_properties = d
|
|
@@ -22,6 +22,7 @@ class CreateAppJsonBody:
|
|
|
22
22
|
policy (CreateAppJsonBodyPolicy):
|
|
23
23
|
draft_only (Union[Unset, bool]):
|
|
24
24
|
deployment_message (Union[Unset, str]):
|
|
25
|
+
custom_path (Union[Unset, str]):
|
|
25
26
|
"""
|
|
26
27
|
|
|
27
28
|
path: str
|
|
@@ -30,6 +31,7 @@ class CreateAppJsonBody:
|
|
|
30
31
|
policy: "CreateAppJsonBodyPolicy"
|
|
31
32
|
draft_only: Union[Unset, bool] = UNSET
|
|
32
33
|
deployment_message: Union[Unset, str] = UNSET
|
|
34
|
+
custom_path: Union[Unset, str] = UNSET
|
|
33
35
|
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
34
36
|
|
|
35
37
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -40,6 +42,7 @@ class CreateAppJsonBody:
|
|
|
40
42
|
|
|
41
43
|
draft_only = self.draft_only
|
|
42
44
|
deployment_message = self.deployment_message
|
|
45
|
+
custom_path = self.custom_path
|
|
43
46
|
|
|
44
47
|
field_dict: Dict[str, Any] = {}
|
|
45
48
|
field_dict.update(self.additional_properties)
|
|
@@ -55,6 +58,8 @@ class CreateAppJsonBody:
|
|
|
55
58
|
field_dict["draft_only"] = draft_only
|
|
56
59
|
if deployment_message is not UNSET:
|
|
57
60
|
field_dict["deployment_message"] = deployment_message
|
|
61
|
+
if custom_path is not UNSET:
|
|
62
|
+
field_dict["custom_path"] = custom_path
|
|
58
63
|
|
|
59
64
|
return field_dict
|
|
60
65
|
|
|
@@ -75,6 +80,8 @@ class CreateAppJsonBody:
|
|
|
75
80
|
|
|
76
81
|
deployment_message = d.pop("deployment_message", UNSET)
|
|
77
82
|
|
|
83
|
+
custom_path = d.pop("custom_path", UNSET)
|
|
84
|
+
|
|
78
85
|
create_app_json_body = cls(
|
|
79
86
|
path=path,
|
|
80
87
|
value=value,
|
|
@@ -82,6 +89,7 @@ class CreateAppJsonBody:
|
|
|
82
89
|
policy=policy,
|
|
83
90
|
draft_only=draft_only,
|
|
84
91
|
deployment_message=deployment_message,
|
|
92
|
+
custom_path=custom_path,
|
|
85
93
|
)
|
|
86
94
|
|
|
87
95
|
create_app_json_body.additional_properties = d
|
|
@@ -36,6 +36,7 @@ class GetAppByPathWithDraftResponse200:
|
|
|
36
36
|
extra_perms (GetAppByPathWithDraftResponse200ExtraPerms):
|
|
37
37
|
draft_only (Union[Unset, bool]):
|
|
38
38
|
draft (Union[Unset, Any]):
|
|
39
|
+
custom_path (Union[Unset, str]):
|
|
39
40
|
"""
|
|
40
41
|
|
|
41
42
|
id: int
|
|
@@ -51,6 +52,7 @@ class GetAppByPathWithDraftResponse200:
|
|
|
51
52
|
extra_perms: "GetAppByPathWithDraftResponse200ExtraPerms"
|
|
52
53
|
draft_only: Union[Unset, bool] = UNSET
|
|
53
54
|
draft: Union[Unset, Any] = UNSET
|
|
55
|
+
custom_path: Union[Unset, str] = UNSET
|
|
54
56
|
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
55
57
|
|
|
56
58
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -73,6 +75,7 @@ class GetAppByPathWithDraftResponse200:
|
|
|
73
75
|
|
|
74
76
|
draft_only = self.draft_only
|
|
75
77
|
draft = self.draft
|
|
78
|
+
custom_path = self.custom_path
|
|
76
79
|
|
|
77
80
|
field_dict: Dict[str, Any] = {}
|
|
78
81
|
field_dict.update(self.additional_properties)
|
|
@@ -95,6 +98,8 @@ class GetAppByPathWithDraftResponse200:
|
|
|
95
98
|
field_dict["draft_only"] = draft_only
|
|
96
99
|
if draft is not UNSET:
|
|
97
100
|
field_dict["draft"] = draft
|
|
101
|
+
if custom_path is not UNSET:
|
|
102
|
+
field_dict["custom_path"] = custom_path
|
|
98
103
|
|
|
99
104
|
return field_dict
|
|
100
105
|
|
|
@@ -133,6 +138,8 @@ class GetAppByPathWithDraftResponse200:
|
|
|
133
138
|
|
|
134
139
|
draft = d.pop("draft", UNSET)
|
|
135
140
|
|
|
141
|
+
custom_path = d.pop("custom_path", UNSET)
|
|
142
|
+
|
|
136
143
|
get_app_by_path_with_draft_response_200 = cls(
|
|
137
144
|
id=id,
|
|
138
145
|
workspace_id=workspace_id,
|
|
@@ -147,6 +154,7 @@ class GetAppByPathWithDraftResponse200:
|
|
|
147
154
|
extra_perms=extra_perms,
|
|
148
155
|
draft_only=draft_only,
|
|
149
156
|
draft=draft,
|
|
157
|
+
custom_path=custom_path,
|
|
150
158
|
)
|
|
151
159
|
|
|
152
160
|
get_app_by_path_with_draft_response_200.additional_properties = d
|