windmill-api 1.373.1__py3-none-any.whl → 1.375.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/workspace/edit_workspace_deploy_ui_settings.py +107 -0
- windmill_api/models/edit_workspace_deploy_ui_settings_json_body.py +75 -0
- windmill_api/models/edit_workspace_deploy_ui_settings_json_body_deploy_ui_settings.py +85 -0
- windmill_api/models/edit_workspace_deploy_ui_settings_json_body_deploy_ui_settings_include_type_item.py +13 -0
- windmill_api/models/get_settings_response_200.py +18 -0
- windmill_api/models/get_settings_response_200_deploy_ui.py +81 -0
- windmill_api/models/get_settings_response_200_deploy_ui_include_type_item.py +13 -0
- windmill_api/models/workspace_deploy_ui_settings.py +81 -0
- windmill_api/models/workspace_deploy_ui_settings_include_type_item.py +13 -0
- {windmill_api-1.373.1.dist-info → windmill_api-1.375.0.dist-info}/METADATA +1 -1
- {windmill_api-1.373.1.dist-info → windmill_api-1.375.0.dist-info}/RECORD +13 -5
- {windmill_api-1.373.1.dist-info → windmill_api-1.375.0.dist-info}/LICENSE +0 -0
- {windmill_api-1.373.1.dist-info → windmill_api-1.375.0.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,107 @@
|
|
|
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.edit_workspace_deploy_ui_settings_json_body import EditWorkspaceDeployUISettingsJsonBody
|
|
9
|
+
from ...types import Response
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
def _get_kwargs(
|
|
13
|
+
workspace: str,
|
|
14
|
+
*,
|
|
15
|
+
json_body: EditWorkspaceDeployUISettingsJsonBody,
|
|
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}/workspaces/edit_deploy_ui_config".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 response.status_code == HTTPStatus.OK:
|
|
32
|
+
return None
|
|
33
|
+
if client.raise_on_unexpected_status:
|
|
34
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
35
|
+
else:
|
|
36
|
+
return None
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]:
|
|
40
|
+
return Response(
|
|
41
|
+
status_code=HTTPStatus(response.status_code),
|
|
42
|
+
content=response.content,
|
|
43
|
+
headers=response.headers,
|
|
44
|
+
parsed=_parse_response(client=client, response=response),
|
|
45
|
+
)
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
def sync_detailed(
|
|
49
|
+
workspace: str,
|
|
50
|
+
*,
|
|
51
|
+
client: Union[AuthenticatedClient, Client],
|
|
52
|
+
json_body: EditWorkspaceDeployUISettingsJsonBody,
|
|
53
|
+
) -> Response[Any]:
|
|
54
|
+
"""edit workspace deploy ui settings
|
|
55
|
+
|
|
56
|
+
Args:
|
|
57
|
+
workspace (str):
|
|
58
|
+
json_body (EditWorkspaceDeployUISettingsJsonBody):
|
|
59
|
+
|
|
60
|
+
Raises:
|
|
61
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
62
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
63
|
+
|
|
64
|
+
Returns:
|
|
65
|
+
Response[Any]
|
|
66
|
+
"""
|
|
67
|
+
|
|
68
|
+
kwargs = _get_kwargs(
|
|
69
|
+
workspace=workspace,
|
|
70
|
+
json_body=json_body,
|
|
71
|
+
)
|
|
72
|
+
|
|
73
|
+
response = client.get_httpx_client().request(
|
|
74
|
+
**kwargs,
|
|
75
|
+
)
|
|
76
|
+
|
|
77
|
+
return _build_response(client=client, response=response)
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
async def asyncio_detailed(
|
|
81
|
+
workspace: str,
|
|
82
|
+
*,
|
|
83
|
+
client: Union[AuthenticatedClient, Client],
|
|
84
|
+
json_body: EditWorkspaceDeployUISettingsJsonBody,
|
|
85
|
+
) -> Response[Any]:
|
|
86
|
+
"""edit workspace deploy ui settings
|
|
87
|
+
|
|
88
|
+
Args:
|
|
89
|
+
workspace (str):
|
|
90
|
+
json_body (EditWorkspaceDeployUISettingsJsonBody):
|
|
91
|
+
|
|
92
|
+
Raises:
|
|
93
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
94
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
95
|
+
|
|
96
|
+
Returns:
|
|
97
|
+
Response[Any]
|
|
98
|
+
"""
|
|
99
|
+
|
|
100
|
+
kwargs = _get_kwargs(
|
|
101
|
+
workspace=workspace,
|
|
102
|
+
json_body=json_body,
|
|
103
|
+
)
|
|
104
|
+
|
|
105
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
106
|
+
|
|
107
|
+
return _build_response(client=client, response=response)
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
|
|
2
|
+
|
|
3
|
+
from attrs import define as _attrs_define
|
|
4
|
+
from attrs import field as _attrs_field
|
|
5
|
+
|
|
6
|
+
from ..types import UNSET, Unset
|
|
7
|
+
|
|
8
|
+
if TYPE_CHECKING:
|
|
9
|
+
from ..models.edit_workspace_deploy_ui_settings_json_body_deploy_ui_settings import (
|
|
10
|
+
EditWorkspaceDeployUISettingsJsonBodyDeployUiSettings,
|
|
11
|
+
)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
T = TypeVar("T", bound="EditWorkspaceDeployUISettingsJsonBody")
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
@_attrs_define
|
|
18
|
+
class EditWorkspaceDeployUISettingsJsonBody:
|
|
19
|
+
"""
|
|
20
|
+
Attributes:
|
|
21
|
+
deploy_ui_settings (Union[Unset, EditWorkspaceDeployUISettingsJsonBodyDeployUiSettings]):
|
|
22
|
+
"""
|
|
23
|
+
|
|
24
|
+
deploy_ui_settings: Union[Unset, "EditWorkspaceDeployUISettingsJsonBodyDeployUiSettings"] = UNSET
|
|
25
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
26
|
+
|
|
27
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
28
|
+
deploy_ui_settings: Union[Unset, Dict[str, Any]] = UNSET
|
|
29
|
+
if not isinstance(self.deploy_ui_settings, Unset):
|
|
30
|
+
deploy_ui_settings = self.deploy_ui_settings.to_dict()
|
|
31
|
+
|
|
32
|
+
field_dict: Dict[str, Any] = {}
|
|
33
|
+
field_dict.update(self.additional_properties)
|
|
34
|
+
field_dict.update({})
|
|
35
|
+
if deploy_ui_settings is not UNSET:
|
|
36
|
+
field_dict["deploy_ui_settings"] = deploy_ui_settings
|
|
37
|
+
|
|
38
|
+
return field_dict
|
|
39
|
+
|
|
40
|
+
@classmethod
|
|
41
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
42
|
+
from ..models.edit_workspace_deploy_ui_settings_json_body_deploy_ui_settings import (
|
|
43
|
+
EditWorkspaceDeployUISettingsJsonBodyDeployUiSettings,
|
|
44
|
+
)
|
|
45
|
+
|
|
46
|
+
d = src_dict.copy()
|
|
47
|
+
_deploy_ui_settings = d.pop("deploy_ui_settings", UNSET)
|
|
48
|
+
deploy_ui_settings: Union[Unset, EditWorkspaceDeployUISettingsJsonBodyDeployUiSettings]
|
|
49
|
+
if isinstance(_deploy_ui_settings, Unset):
|
|
50
|
+
deploy_ui_settings = UNSET
|
|
51
|
+
else:
|
|
52
|
+
deploy_ui_settings = EditWorkspaceDeployUISettingsJsonBodyDeployUiSettings.from_dict(_deploy_ui_settings)
|
|
53
|
+
|
|
54
|
+
edit_workspace_deploy_ui_settings_json_body = cls(
|
|
55
|
+
deploy_ui_settings=deploy_ui_settings,
|
|
56
|
+
)
|
|
57
|
+
|
|
58
|
+
edit_workspace_deploy_ui_settings_json_body.additional_properties = d
|
|
59
|
+
return edit_workspace_deploy_ui_settings_json_body
|
|
60
|
+
|
|
61
|
+
@property
|
|
62
|
+
def additional_keys(self) -> List[str]:
|
|
63
|
+
return list(self.additional_properties.keys())
|
|
64
|
+
|
|
65
|
+
def __getitem__(self, key: str) -> Any:
|
|
66
|
+
return self.additional_properties[key]
|
|
67
|
+
|
|
68
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
69
|
+
self.additional_properties[key] = value
|
|
70
|
+
|
|
71
|
+
def __delitem__(self, key: str) -> None:
|
|
72
|
+
del self.additional_properties[key]
|
|
73
|
+
|
|
74
|
+
def __contains__(self, key: str) -> bool:
|
|
75
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
from typing import Any, Dict, List, Type, TypeVar, Union, cast
|
|
2
|
+
|
|
3
|
+
from attrs import define as _attrs_define
|
|
4
|
+
from attrs import field as _attrs_field
|
|
5
|
+
|
|
6
|
+
from ..models.edit_workspace_deploy_ui_settings_json_body_deploy_ui_settings_include_type_item import (
|
|
7
|
+
EditWorkspaceDeployUISettingsJsonBodyDeployUiSettingsIncludeTypeItem,
|
|
8
|
+
)
|
|
9
|
+
from ..types import UNSET, Unset
|
|
10
|
+
|
|
11
|
+
T = TypeVar("T", bound="EditWorkspaceDeployUISettingsJsonBodyDeployUiSettings")
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
@_attrs_define
|
|
15
|
+
class EditWorkspaceDeployUISettingsJsonBodyDeployUiSettings:
|
|
16
|
+
"""
|
|
17
|
+
Attributes:
|
|
18
|
+
include_path (Union[Unset, List[str]]):
|
|
19
|
+
include_type (Union[Unset, List[EditWorkspaceDeployUISettingsJsonBodyDeployUiSettingsIncludeTypeItem]]):
|
|
20
|
+
"""
|
|
21
|
+
|
|
22
|
+
include_path: Union[Unset, List[str]] = UNSET
|
|
23
|
+
include_type: Union[Unset, List[EditWorkspaceDeployUISettingsJsonBodyDeployUiSettingsIncludeTypeItem]] = UNSET
|
|
24
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
25
|
+
|
|
26
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
27
|
+
include_path: Union[Unset, List[str]] = UNSET
|
|
28
|
+
if not isinstance(self.include_path, Unset):
|
|
29
|
+
include_path = self.include_path
|
|
30
|
+
|
|
31
|
+
include_type: Union[Unset, List[str]] = UNSET
|
|
32
|
+
if not isinstance(self.include_type, Unset):
|
|
33
|
+
include_type = []
|
|
34
|
+
for include_type_item_data in self.include_type:
|
|
35
|
+
include_type_item = include_type_item_data.value
|
|
36
|
+
|
|
37
|
+
include_type.append(include_type_item)
|
|
38
|
+
|
|
39
|
+
field_dict: Dict[str, Any] = {}
|
|
40
|
+
field_dict.update(self.additional_properties)
|
|
41
|
+
field_dict.update({})
|
|
42
|
+
if include_path is not UNSET:
|
|
43
|
+
field_dict["include_path"] = include_path
|
|
44
|
+
if include_type is not UNSET:
|
|
45
|
+
field_dict["include_type"] = include_type
|
|
46
|
+
|
|
47
|
+
return field_dict
|
|
48
|
+
|
|
49
|
+
@classmethod
|
|
50
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
51
|
+
d = src_dict.copy()
|
|
52
|
+
include_path = cast(List[str], d.pop("include_path", UNSET))
|
|
53
|
+
|
|
54
|
+
include_type = []
|
|
55
|
+
_include_type = d.pop("include_type", UNSET)
|
|
56
|
+
for include_type_item_data in _include_type or []:
|
|
57
|
+
include_type_item = EditWorkspaceDeployUISettingsJsonBodyDeployUiSettingsIncludeTypeItem(
|
|
58
|
+
include_type_item_data
|
|
59
|
+
)
|
|
60
|
+
|
|
61
|
+
include_type.append(include_type_item)
|
|
62
|
+
|
|
63
|
+
edit_workspace_deploy_ui_settings_json_body_deploy_ui_settings = cls(
|
|
64
|
+
include_path=include_path,
|
|
65
|
+
include_type=include_type,
|
|
66
|
+
)
|
|
67
|
+
|
|
68
|
+
edit_workspace_deploy_ui_settings_json_body_deploy_ui_settings.additional_properties = d
|
|
69
|
+
return edit_workspace_deploy_ui_settings_json_body_deploy_ui_settings
|
|
70
|
+
|
|
71
|
+
@property
|
|
72
|
+
def additional_keys(self) -> List[str]:
|
|
73
|
+
return list(self.additional_properties.keys())
|
|
74
|
+
|
|
75
|
+
def __getitem__(self, key: str) -> Any:
|
|
76
|
+
return self.additional_properties[key]
|
|
77
|
+
|
|
78
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
79
|
+
self.additional_properties[key] = value
|
|
80
|
+
|
|
81
|
+
def __delitem__(self, key: str) -> None:
|
|
82
|
+
del self.additional_properties[key]
|
|
83
|
+
|
|
84
|
+
def __contains__(self, key: str) -> bool:
|
|
85
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
from enum import Enum
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class EditWorkspaceDeployUISettingsJsonBodyDeployUiSettingsIncludeTypeItem(str, Enum):
|
|
5
|
+
APP = "app"
|
|
6
|
+
FLOW = "flow"
|
|
7
|
+
RESOURCE = "resource"
|
|
8
|
+
SCRIPT = "script"
|
|
9
|
+
SECRET = "secret"
|
|
10
|
+
VARIABLE = "variable"
|
|
11
|
+
|
|
12
|
+
def __str__(self) -> str:
|
|
13
|
+
return str(self.value)
|
|
@@ -7,6 +7,7 @@ from ..types import UNSET, Unset
|
|
|
7
7
|
|
|
8
8
|
if TYPE_CHECKING:
|
|
9
9
|
from ..models.get_settings_response_200_default_scripts import GetSettingsResponse200DefaultScripts
|
|
10
|
+
from ..models.get_settings_response_200_deploy_ui import GetSettingsResponse200DeployUi
|
|
10
11
|
from ..models.get_settings_response_200_error_handler_extra_args import GetSettingsResponse200ErrorHandlerExtraArgs
|
|
11
12
|
from ..models.get_settings_response_200_git_sync import GetSettingsResponse200GitSync
|
|
12
13
|
from ..models.get_settings_response_200_large_file_storage import GetSettingsResponse200LargeFileStorage
|
|
@@ -38,6 +39,7 @@ class GetSettingsResponse200:
|
|
|
38
39
|
error_handler_extra_args (Union[Unset, GetSettingsResponse200ErrorHandlerExtraArgs]):
|
|
39
40
|
large_file_storage (Union[Unset, GetSettingsResponse200LargeFileStorage]):
|
|
40
41
|
git_sync (Union[Unset, GetSettingsResponse200GitSync]):
|
|
42
|
+
deploy_ui (Union[Unset, GetSettingsResponse200DeployUi]):
|
|
41
43
|
default_app (Union[Unset, str]):
|
|
42
44
|
default_scripts (Union[Unset, GetSettingsResponse200DefaultScripts]):
|
|
43
45
|
"""
|
|
@@ -61,6 +63,7 @@ class GetSettingsResponse200:
|
|
|
61
63
|
error_handler_extra_args: Union[Unset, "GetSettingsResponse200ErrorHandlerExtraArgs"] = UNSET
|
|
62
64
|
large_file_storage: Union[Unset, "GetSettingsResponse200LargeFileStorage"] = UNSET
|
|
63
65
|
git_sync: Union[Unset, "GetSettingsResponse200GitSync"] = UNSET
|
|
66
|
+
deploy_ui: Union[Unset, "GetSettingsResponse200DeployUi"] = UNSET
|
|
64
67
|
default_app: Union[Unset, str] = UNSET
|
|
65
68
|
default_scripts: Union[Unset, "GetSettingsResponse200DefaultScripts"] = UNSET
|
|
66
69
|
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
@@ -94,6 +97,10 @@ class GetSettingsResponse200:
|
|
|
94
97
|
if not isinstance(self.git_sync, Unset):
|
|
95
98
|
git_sync = self.git_sync.to_dict()
|
|
96
99
|
|
|
100
|
+
deploy_ui: Union[Unset, Dict[str, Any]] = UNSET
|
|
101
|
+
if not isinstance(self.deploy_ui, Unset):
|
|
102
|
+
deploy_ui = self.deploy_ui.to_dict()
|
|
103
|
+
|
|
97
104
|
default_app = self.default_app
|
|
98
105
|
default_scripts: Union[Unset, Dict[str, Any]] = UNSET
|
|
99
106
|
if not isinstance(self.default_scripts, Unset):
|
|
@@ -140,6 +147,8 @@ class GetSettingsResponse200:
|
|
|
140
147
|
field_dict["large_file_storage"] = large_file_storage
|
|
141
148
|
if git_sync is not UNSET:
|
|
142
149
|
field_dict["git_sync"] = git_sync
|
|
150
|
+
if deploy_ui is not UNSET:
|
|
151
|
+
field_dict["deploy_ui"] = deploy_ui
|
|
143
152
|
if default_app is not UNSET:
|
|
144
153
|
field_dict["default_app"] = default_app
|
|
145
154
|
if default_scripts is not UNSET:
|
|
@@ -150,6 +159,7 @@ class GetSettingsResponse200:
|
|
|
150
159
|
@classmethod
|
|
151
160
|
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
152
161
|
from ..models.get_settings_response_200_default_scripts import GetSettingsResponse200DefaultScripts
|
|
162
|
+
from ..models.get_settings_response_200_deploy_ui import GetSettingsResponse200DeployUi
|
|
153
163
|
from ..models.get_settings_response_200_error_handler_extra_args import (
|
|
154
164
|
GetSettingsResponse200ErrorHandlerExtraArgs,
|
|
155
165
|
)
|
|
@@ -210,6 +220,13 @@ class GetSettingsResponse200:
|
|
|
210
220
|
else:
|
|
211
221
|
git_sync = GetSettingsResponse200GitSync.from_dict(_git_sync)
|
|
212
222
|
|
|
223
|
+
_deploy_ui = d.pop("deploy_ui", UNSET)
|
|
224
|
+
deploy_ui: Union[Unset, GetSettingsResponse200DeployUi]
|
|
225
|
+
if isinstance(_deploy_ui, Unset):
|
|
226
|
+
deploy_ui = UNSET
|
|
227
|
+
else:
|
|
228
|
+
deploy_ui = GetSettingsResponse200DeployUi.from_dict(_deploy_ui)
|
|
229
|
+
|
|
213
230
|
default_app = d.pop("default_app", UNSET)
|
|
214
231
|
|
|
215
232
|
_default_scripts = d.pop("default_scripts", UNSET)
|
|
@@ -239,6 +256,7 @@ class GetSettingsResponse200:
|
|
|
239
256
|
error_handler_extra_args=error_handler_extra_args,
|
|
240
257
|
large_file_storage=large_file_storage,
|
|
241
258
|
git_sync=git_sync,
|
|
259
|
+
deploy_ui=deploy_ui,
|
|
242
260
|
default_app=default_app,
|
|
243
261
|
default_scripts=default_scripts,
|
|
244
262
|
)
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
from typing import Any, Dict, List, Type, TypeVar, Union, cast
|
|
2
|
+
|
|
3
|
+
from attrs import define as _attrs_define
|
|
4
|
+
from attrs import field as _attrs_field
|
|
5
|
+
|
|
6
|
+
from ..models.get_settings_response_200_deploy_ui_include_type_item import GetSettingsResponse200DeployUiIncludeTypeItem
|
|
7
|
+
from ..types import UNSET, Unset
|
|
8
|
+
|
|
9
|
+
T = TypeVar("T", bound="GetSettingsResponse200DeployUi")
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
@_attrs_define
|
|
13
|
+
class GetSettingsResponse200DeployUi:
|
|
14
|
+
"""
|
|
15
|
+
Attributes:
|
|
16
|
+
include_path (Union[Unset, List[str]]):
|
|
17
|
+
include_type (Union[Unset, List[GetSettingsResponse200DeployUiIncludeTypeItem]]):
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
include_path: Union[Unset, List[str]] = UNSET
|
|
21
|
+
include_type: Union[Unset, List[GetSettingsResponse200DeployUiIncludeTypeItem]] = UNSET
|
|
22
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
23
|
+
|
|
24
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
25
|
+
include_path: Union[Unset, List[str]] = UNSET
|
|
26
|
+
if not isinstance(self.include_path, Unset):
|
|
27
|
+
include_path = self.include_path
|
|
28
|
+
|
|
29
|
+
include_type: Union[Unset, List[str]] = UNSET
|
|
30
|
+
if not isinstance(self.include_type, Unset):
|
|
31
|
+
include_type = []
|
|
32
|
+
for include_type_item_data in self.include_type:
|
|
33
|
+
include_type_item = include_type_item_data.value
|
|
34
|
+
|
|
35
|
+
include_type.append(include_type_item)
|
|
36
|
+
|
|
37
|
+
field_dict: Dict[str, Any] = {}
|
|
38
|
+
field_dict.update(self.additional_properties)
|
|
39
|
+
field_dict.update({})
|
|
40
|
+
if include_path is not UNSET:
|
|
41
|
+
field_dict["include_path"] = include_path
|
|
42
|
+
if include_type is not UNSET:
|
|
43
|
+
field_dict["include_type"] = include_type
|
|
44
|
+
|
|
45
|
+
return field_dict
|
|
46
|
+
|
|
47
|
+
@classmethod
|
|
48
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
49
|
+
d = src_dict.copy()
|
|
50
|
+
include_path = cast(List[str], d.pop("include_path", UNSET))
|
|
51
|
+
|
|
52
|
+
include_type = []
|
|
53
|
+
_include_type = d.pop("include_type", UNSET)
|
|
54
|
+
for include_type_item_data in _include_type or []:
|
|
55
|
+
include_type_item = GetSettingsResponse200DeployUiIncludeTypeItem(include_type_item_data)
|
|
56
|
+
|
|
57
|
+
include_type.append(include_type_item)
|
|
58
|
+
|
|
59
|
+
get_settings_response_200_deploy_ui = cls(
|
|
60
|
+
include_path=include_path,
|
|
61
|
+
include_type=include_type,
|
|
62
|
+
)
|
|
63
|
+
|
|
64
|
+
get_settings_response_200_deploy_ui.additional_properties = d
|
|
65
|
+
return get_settings_response_200_deploy_ui
|
|
66
|
+
|
|
67
|
+
@property
|
|
68
|
+
def additional_keys(self) -> List[str]:
|
|
69
|
+
return list(self.additional_properties.keys())
|
|
70
|
+
|
|
71
|
+
def __getitem__(self, key: str) -> Any:
|
|
72
|
+
return self.additional_properties[key]
|
|
73
|
+
|
|
74
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
75
|
+
self.additional_properties[key] = value
|
|
76
|
+
|
|
77
|
+
def __delitem__(self, key: str) -> None:
|
|
78
|
+
del self.additional_properties[key]
|
|
79
|
+
|
|
80
|
+
def __contains__(self, key: str) -> bool:
|
|
81
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
from enum import Enum
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class GetSettingsResponse200DeployUiIncludeTypeItem(str, Enum):
|
|
5
|
+
APP = "app"
|
|
6
|
+
FLOW = "flow"
|
|
7
|
+
RESOURCE = "resource"
|
|
8
|
+
SCRIPT = "script"
|
|
9
|
+
SECRET = "secret"
|
|
10
|
+
VARIABLE = "variable"
|
|
11
|
+
|
|
12
|
+
def __str__(self) -> str:
|
|
13
|
+
return str(self.value)
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
from typing import Any, Dict, List, Type, TypeVar, Union, cast
|
|
2
|
+
|
|
3
|
+
from attrs import define as _attrs_define
|
|
4
|
+
from attrs import field as _attrs_field
|
|
5
|
+
|
|
6
|
+
from ..models.workspace_deploy_ui_settings_include_type_item import WorkspaceDeployUISettingsIncludeTypeItem
|
|
7
|
+
from ..types import UNSET, Unset
|
|
8
|
+
|
|
9
|
+
T = TypeVar("T", bound="WorkspaceDeployUISettings")
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
@_attrs_define
|
|
13
|
+
class WorkspaceDeployUISettings:
|
|
14
|
+
"""
|
|
15
|
+
Attributes:
|
|
16
|
+
include_path (Union[Unset, List[str]]):
|
|
17
|
+
include_type (Union[Unset, List[WorkspaceDeployUISettingsIncludeTypeItem]]):
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
include_path: Union[Unset, List[str]] = UNSET
|
|
21
|
+
include_type: Union[Unset, List[WorkspaceDeployUISettingsIncludeTypeItem]] = UNSET
|
|
22
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
23
|
+
|
|
24
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
25
|
+
include_path: Union[Unset, List[str]] = UNSET
|
|
26
|
+
if not isinstance(self.include_path, Unset):
|
|
27
|
+
include_path = self.include_path
|
|
28
|
+
|
|
29
|
+
include_type: Union[Unset, List[str]] = UNSET
|
|
30
|
+
if not isinstance(self.include_type, Unset):
|
|
31
|
+
include_type = []
|
|
32
|
+
for include_type_item_data in self.include_type:
|
|
33
|
+
include_type_item = include_type_item_data.value
|
|
34
|
+
|
|
35
|
+
include_type.append(include_type_item)
|
|
36
|
+
|
|
37
|
+
field_dict: Dict[str, Any] = {}
|
|
38
|
+
field_dict.update(self.additional_properties)
|
|
39
|
+
field_dict.update({})
|
|
40
|
+
if include_path is not UNSET:
|
|
41
|
+
field_dict["include_path"] = include_path
|
|
42
|
+
if include_type is not UNSET:
|
|
43
|
+
field_dict["include_type"] = include_type
|
|
44
|
+
|
|
45
|
+
return field_dict
|
|
46
|
+
|
|
47
|
+
@classmethod
|
|
48
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
49
|
+
d = src_dict.copy()
|
|
50
|
+
include_path = cast(List[str], d.pop("include_path", UNSET))
|
|
51
|
+
|
|
52
|
+
include_type = []
|
|
53
|
+
_include_type = d.pop("include_type", UNSET)
|
|
54
|
+
for include_type_item_data in _include_type or []:
|
|
55
|
+
include_type_item = WorkspaceDeployUISettingsIncludeTypeItem(include_type_item_data)
|
|
56
|
+
|
|
57
|
+
include_type.append(include_type_item)
|
|
58
|
+
|
|
59
|
+
workspace_deploy_ui_settings = cls(
|
|
60
|
+
include_path=include_path,
|
|
61
|
+
include_type=include_type,
|
|
62
|
+
)
|
|
63
|
+
|
|
64
|
+
workspace_deploy_ui_settings.additional_properties = d
|
|
65
|
+
return workspace_deploy_ui_settings
|
|
66
|
+
|
|
67
|
+
@property
|
|
68
|
+
def additional_keys(self) -> List[str]:
|
|
69
|
+
return list(self.additional_properties.keys())
|
|
70
|
+
|
|
71
|
+
def __getitem__(self, key: str) -> Any:
|
|
72
|
+
return self.additional_properties[key]
|
|
73
|
+
|
|
74
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
75
|
+
self.additional_properties[key] = value
|
|
76
|
+
|
|
77
|
+
def __delitem__(self, key: str) -> None:
|
|
78
|
+
del self.additional_properties[key]
|
|
79
|
+
|
|
80
|
+
def __contains__(self, key: str) -> bool:
|
|
81
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
from enum import Enum
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class WorkspaceDeployUISettingsIncludeTypeItem(str, Enum):
|
|
5
|
+
APP = "app"
|
|
6
|
+
FLOW = "flow"
|
|
7
|
+
RESOURCE = "resource"
|
|
8
|
+
SCRIPT = "script"
|
|
9
|
+
SECRET = "secret"
|
|
10
|
+
VARIABLE = "variable"
|
|
11
|
+
|
|
12
|
+
def __str__(self) -> str:
|
|
13
|
+
return str(self.value)
|
|
@@ -334,6 +334,7 @@ windmill_api/api/workspace/edit_large_file_storage_config.py,sha256=UA-R7P2K9b06
|
|
|
334
334
|
windmill_api/api/workspace/edit_slack_command.py,sha256=cNttCBUoCbpx4UgFhETJxGgR84iLu5OUuyzp2aJM0_o,2738
|
|
335
335
|
windmill_api/api/workspace/edit_webhook.py,sha256=8OTlHKe314SLiQxKe7JBT7jG5wqChSAqNS8IaTAK4Cc,2684
|
|
336
336
|
windmill_api/api/workspace/edit_workspace_default_app.py,sha256=hAHxfyijNWfsqs5AcrMW3TEEtsgp_X_VToNd0Zsb6a8,2810
|
|
337
|
+
windmill_api/api/workspace/edit_workspace_deploy_ui_settings.py,sha256=stvYqK6SLQ4S0lavjXrQeUenEI011VWtqdaduFqCaLQ,2930
|
|
337
338
|
windmill_api/api/workspace/edit_workspace_git_sync_config.py,sha256=En0OM5iyGqGuFS_iJJTgieG1Xa7SKk_Tz23qZeF9cCQ,2906
|
|
338
339
|
windmill_api/api/workspace/exists_username.py,sha256=W9uQfIiIeoU9Rl2H8jLEmcK_RVtvPHkvYSxqsJp_BVY,2481
|
|
339
340
|
windmill_api/api/workspace/exists_workspace.py,sha256=_01vG7HhYTaUKjbWK_UN0FeZ84osvzjco_ki74VLMTE,2481
|
|
@@ -660,6 +661,9 @@ windmill_api/models/edit_slack_command_json_body.py,sha256=EY_Rh0I3xIlwjYqoJcM-K
|
|
|
660
661
|
windmill_api/models/edit_variable.py,sha256=__0sMsabcqq0wbxCR87WecRHp2NSzxFJUmofT6Up7_w,2323
|
|
661
662
|
windmill_api/models/edit_webhook_json_body.py,sha256=dabl1MMH7ckA2108RA_bGcg-J_51NomeBJshulM5X-o,1583
|
|
662
663
|
windmill_api/models/edit_workspace_default_app_json_body.py,sha256=hs3168lbSVyFtxrgTvTFhPTT2W0dOwA7kOosgDUFhXI,1748
|
|
664
|
+
windmill_api/models/edit_workspace_deploy_ui_settings_json_body.py,sha256=2RMLswPTR7JJRJi7cTzy96k-Tp_tmxQJdlgGxgOqMn4,2728
|
|
665
|
+
windmill_api/models/edit_workspace_deploy_ui_settings_json_body_deploy_ui_settings.py,sha256=yLSmZ1940K1JBfoTQr16Sc1go-y3pGDg236hZmnvGeY,3177
|
|
666
|
+
windmill_api/models/edit_workspace_deploy_ui_settings_json_body_deploy_ui_settings_include_type_item.py,sha256=SHj6IeithbksO2_vg-uRnYI9dVJEF3FZrboTiSAipfI,303
|
|
663
667
|
windmill_api/models/edit_workspace_git_sync_config_json_body.py,sha256=F2NtYaGpgWMw8mH6fZFMikW7Y1A2V2jSQN1RaKb_y3U,2663
|
|
664
668
|
windmill_api/models/edit_workspace_git_sync_config_json_body_git_sync_settings.py,sha256=M0ENFgVSjBexPpR9id8nOg6o3OgNe_XBccXiZjEDFGw,4570
|
|
665
669
|
windmill_api/models/edit_workspace_git_sync_config_json_body_git_sync_settings_include_type_item.py,sha256=tJ0j_jgMM8g0jM9CzZAXn85XhkZOGmtI2A1wgbYSmus,419
|
|
@@ -1443,8 +1447,10 @@ windmill_api/models/get_script_by_path_with_draft_response_200_language.py,sha25
|
|
|
1443
1447
|
windmill_api/models/get_script_by_path_with_draft_response_200_schema.py,sha256=WyuCSJZxSQg2K_O8XSxV-F7B1Sij6uY3TCgYHUsH7TA,1381
|
|
1444
1448
|
windmill_api/models/get_script_deployment_status_response_200.py,sha256=xmVrdonWouCGM_3MdoVNSuaAWN8Qt7erpLpfhfauU5c,1985
|
|
1445
1449
|
windmill_api/models/get_script_history_by_path_response_200_item.py,sha256=vc0iaH2j8BKXxXtjtEg7-lollyA5OxPLYoJsjSUiqc8,2009
|
|
1446
|
-
windmill_api/models/get_settings_response_200.py,sha256=
|
|
1450
|
+
windmill_api/models/get_settings_response_200.py,sha256=1NMmmv5pGlnNdBWmp9zPU2i-9wEtDAmcUBR84fbqkMA,11976
|
|
1447
1451
|
windmill_api/models/get_settings_response_200_default_scripts.py,sha256=Jj7LAapGLNObPcReGeCxbFSgHJ-0V8FJc8hPKVyrhME,2580
|
|
1452
|
+
windmill_api/models/get_settings_response_200_deploy_ui.py,sha256=ObNS_KBx9zQipqeKubJiNlzjBsVmNvpC0TZflBUkO2w,2892
|
|
1453
|
+
windmill_api/models/get_settings_response_200_deploy_ui_include_type_item.py,sha256=iHsKsTEN-KL9dB_F9uzx7UUsYoIPZy5aEQ_ZviWQSBo,280
|
|
1448
1454
|
windmill_api/models/get_settings_response_200_error_handler_extra_args.py,sha256=uUuDIJzSay50l4_UmGDqp2egUY5a7ke2lOSPQXr0MOc,1388
|
|
1449
1455
|
windmill_api/models/get_settings_response_200_git_sync.py,sha256=aayGhTGn97kda0uAJriCcPsgGr2rQiSaArM2GMkHqxw,4167
|
|
1450
1456
|
windmill_api/models/get_settings_response_200_git_sync_include_type_item.py,sha256=El_rVBeypSS5OkUaRwgXm2_WT1A74vuV1qRKgoh7Jck,399
|
|
@@ -2537,6 +2543,8 @@ windmill_api/models/workflow_task.py,sha256=e0TffWZhdc75HwutlAskDnh8vPGqUouTRCBx
|
|
|
2537
2543
|
windmill_api/models/workflow_task_args.py,sha256=qD7ND40ouWFGyxhaClyYH7nuxoiLYWH8rKRYhRUbw34,1238
|
|
2538
2544
|
windmill_api/models/workspace.py,sha256=yEkqUzztAeNjs2Aght0YTz51GrhTNuNYp2GtdWwVDqA,1964
|
|
2539
2545
|
windmill_api/models/workspace_default_scripts.py,sha256=TAOqlGzBp4x1g8fOcTThWpqpjxTDcJZ1yE0s-_yOsnc,2506
|
|
2546
|
+
windmill_api/models/workspace_deploy_ui_settings.py,sha256=TGzzRl609jiVEVW4VwqeB98R8s-IyyEelRXGh7M3io4,2834
|
|
2547
|
+
windmill_api/models/workspace_deploy_ui_settings_include_type_item.py,sha256=FG69aH7ZgQPLdSoHVJt6OMLkDehGp77XchvDiuOU1ec,275
|
|
2540
2548
|
windmill_api/models/workspace_git_sync_settings.py,sha256=0OOwDEra0pYwFhCs3X2a38R3m8UY5Asxx9m-dTq13Io,4028
|
|
2541
2549
|
windmill_api/models/workspace_git_sync_settings_include_type_item.py,sha256=tAAP2BqURMwG8XQiTQVkS1TaCIcGT2gzHzJ4J6NPPo0,394
|
|
2542
2550
|
windmill_api/models/workspace_git_sync_settings_repositories_item.py,sha256=ZJFc1PVy25Ifv69k7zHMRD55fhVzfpmZDBy7w8lXa0A,4196
|
|
@@ -2544,7 +2552,7 @@ windmill_api/models/workspace_git_sync_settings_repositories_item_exclude_types_
|
|
|
2544
2552
|
windmill_api/models/workspace_invite.py,sha256=HnAJWGv5LwxWkz1T3fhgHKIccO7RFC1lixwUUXG6CXs,2037
|
|
2545
2553
|
windmill_api/py.typed,sha256=8ZJUsxZiuOy1oJeVhsTWQhTG_6pTVHVXk5hJL79ebTk,25
|
|
2546
2554
|
windmill_api/types.py,sha256=GoYub3t4hQP2Yn5tsvShsBfIY3vHUmblU0MXszDx_V0,968
|
|
2547
|
-
windmill_api-1.
|
|
2548
|
-
windmill_api-1.
|
|
2549
|
-
windmill_api-1.
|
|
2550
|
-
windmill_api-1.
|
|
2555
|
+
windmill_api-1.375.0.dist-info/LICENSE,sha256=qJVFNTaOevCeSY6NoXeUG1SPOwQ1K-PxVQ2iEWJzX-A,11348
|
|
2556
|
+
windmill_api-1.375.0.dist-info/METADATA,sha256=VuRHWONZS00wNjLxopO6MEdQi5E8swVOw9m5mEuQSZ8,5023
|
|
2557
|
+
windmill_api-1.375.0.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
|
|
2558
|
+
windmill_api-1.375.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|