windmill-api 1.568.0__py3-none-any.whl → 1.569.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/delete_workspace_slack_oauth_config.py +93 -0
- windmill_api/api/workspace/get_workspace_slack_oauth_config.py +152 -0
- windmill_api/api/workspace/set_workspace_slack_oauth_config.py +105 -0
- windmill_api/models/get_settings_response_200.py +16 -0
- windmill_api/models/get_workspace_slack_oauth_config_response_200.py +66 -0
- windmill_api/models/set_workspace_slack_oauth_config_json_body.py +65 -0
- {windmill_api-1.568.0.dist-info → windmill_api-1.569.0.dist-info}/METADATA +1 -1
- {windmill_api-1.568.0.dist-info → windmill_api-1.569.0.dist-info}/RECORD +10 -5
- {windmill_api-1.568.0.dist-info → windmill_api-1.569.0.dist-info}/LICENSE +0 -0
- {windmill_api-1.568.0.dist-info → windmill_api-1.569.0.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,93 @@
|
|
|
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(
|
|
12
|
+
workspace: str,
|
|
13
|
+
) -> Dict[str, Any]:
|
|
14
|
+
pass
|
|
15
|
+
|
|
16
|
+
return {
|
|
17
|
+
"method": "delete",
|
|
18
|
+
"url": "/w/{workspace}/workspaces/slack_oauth_config".format(
|
|
19
|
+
workspace=workspace,
|
|
20
|
+
),
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]:
|
|
25
|
+
if client.raise_on_unexpected_status:
|
|
26
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
27
|
+
else:
|
|
28
|
+
return None
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]:
|
|
32
|
+
return Response(
|
|
33
|
+
status_code=HTTPStatus(response.status_code),
|
|
34
|
+
content=response.content,
|
|
35
|
+
headers=response.headers,
|
|
36
|
+
parsed=_parse_response(client=client, response=response),
|
|
37
|
+
)
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
def sync_detailed(
|
|
41
|
+
workspace: str,
|
|
42
|
+
*,
|
|
43
|
+
client: Union[AuthenticatedClient, Client],
|
|
44
|
+
) -> Response[Any]:
|
|
45
|
+
"""delete workspace slack oauth config
|
|
46
|
+
|
|
47
|
+
Args:
|
|
48
|
+
workspace (str):
|
|
49
|
+
|
|
50
|
+
Raises:
|
|
51
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
52
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
53
|
+
|
|
54
|
+
Returns:
|
|
55
|
+
Response[Any]
|
|
56
|
+
"""
|
|
57
|
+
|
|
58
|
+
kwargs = _get_kwargs(
|
|
59
|
+
workspace=workspace,
|
|
60
|
+
)
|
|
61
|
+
|
|
62
|
+
response = client.get_httpx_client().request(
|
|
63
|
+
**kwargs,
|
|
64
|
+
)
|
|
65
|
+
|
|
66
|
+
return _build_response(client=client, response=response)
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
async def asyncio_detailed(
|
|
70
|
+
workspace: str,
|
|
71
|
+
*,
|
|
72
|
+
client: Union[AuthenticatedClient, Client],
|
|
73
|
+
) -> Response[Any]:
|
|
74
|
+
"""delete workspace slack oauth config
|
|
75
|
+
|
|
76
|
+
Args:
|
|
77
|
+
workspace (str):
|
|
78
|
+
|
|
79
|
+
Raises:
|
|
80
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
81
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
82
|
+
|
|
83
|
+
Returns:
|
|
84
|
+
Response[Any]
|
|
85
|
+
"""
|
|
86
|
+
|
|
87
|
+
kwargs = _get_kwargs(
|
|
88
|
+
workspace=workspace,
|
|
89
|
+
)
|
|
90
|
+
|
|
91
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
92
|
+
|
|
93
|
+
return _build_response(client=client, response=response)
|
|
@@ -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_workspace_slack_oauth_config_response_200 import GetWorkspaceSlackOauthConfigResponse200
|
|
9
|
+
from ...types import Response
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
def _get_kwargs(
|
|
13
|
+
workspace: str,
|
|
14
|
+
) -> Dict[str, Any]:
|
|
15
|
+
pass
|
|
16
|
+
|
|
17
|
+
return {
|
|
18
|
+
"method": "get",
|
|
19
|
+
"url": "/w/{workspace}/workspaces/slack_oauth_config".format(
|
|
20
|
+
workspace=workspace,
|
|
21
|
+
),
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
def _parse_response(
|
|
26
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
27
|
+
) -> Optional[GetWorkspaceSlackOauthConfigResponse200]:
|
|
28
|
+
if response.status_code == HTTPStatus.OK:
|
|
29
|
+
response_200 = GetWorkspaceSlackOauthConfigResponse200.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[GetWorkspaceSlackOauthConfigResponse200]:
|
|
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
|
+
workspace: str,
|
|
51
|
+
*,
|
|
52
|
+
client: Union[AuthenticatedClient, Client],
|
|
53
|
+
) -> Response[GetWorkspaceSlackOauthConfigResponse200]:
|
|
54
|
+
"""get workspace slack oauth config
|
|
55
|
+
|
|
56
|
+
Args:
|
|
57
|
+
workspace (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[GetWorkspaceSlackOauthConfigResponse200]
|
|
65
|
+
"""
|
|
66
|
+
|
|
67
|
+
kwargs = _get_kwargs(
|
|
68
|
+
workspace=workspace,
|
|
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
|
+
workspace: str,
|
|
80
|
+
*,
|
|
81
|
+
client: Union[AuthenticatedClient, Client],
|
|
82
|
+
) -> Optional[GetWorkspaceSlackOauthConfigResponse200]:
|
|
83
|
+
"""get workspace slack oauth config
|
|
84
|
+
|
|
85
|
+
Args:
|
|
86
|
+
workspace (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
|
+
GetWorkspaceSlackOauthConfigResponse200
|
|
94
|
+
"""
|
|
95
|
+
|
|
96
|
+
return sync_detailed(
|
|
97
|
+
workspace=workspace,
|
|
98
|
+
client=client,
|
|
99
|
+
).parsed
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
async def asyncio_detailed(
|
|
103
|
+
workspace: str,
|
|
104
|
+
*,
|
|
105
|
+
client: Union[AuthenticatedClient, Client],
|
|
106
|
+
) -> Response[GetWorkspaceSlackOauthConfigResponse200]:
|
|
107
|
+
"""get workspace slack oauth config
|
|
108
|
+
|
|
109
|
+
Args:
|
|
110
|
+
workspace (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[GetWorkspaceSlackOauthConfigResponse200]
|
|
118
|
+
"""
|
|
119
|
+
|
|
120
|
+
kwargs = _get_kwargs(
|
|
121
|
+
workspace=workspace,
|
|
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
|
+
workspace: str,
|
|
131
|
+
*,
|
|
132
|
+
client: Union[AuthenticatedClient, Client],
|
|
133
|
+
) -> Optional[GetWorkspaceSlackOauthConfigResponse200]:
|
|
134
|
+
"""get workspace slack oauth config
|
|
135
|
+
|
|
136
|
+
Args:
|
|
137
|
+
workspace (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
|
+
GetWorkspaceSlackOauthConfigResponse200
|
|
145
|
+
"""
|
|
146
|
+
|
|
147
|
+
return (
|
|
148
|
+
await asyncio_detailed(
|
|
149
|
+
workspace=workspace,
|
|
150
|
+
client=client,
|
|
151
|
+
)
|
|
152
|
+
).parsed
|
|
@@ -0,0 +1,105 @@
|
|
|
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.set_workspace_slack_oauth_config_json_body import SetWorkspaceSlackOauthConfigJsonBody
|
|
9
|
+
from ...types import Response
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
def _get_kwargs(
|
|
13
|
+
workspace: str,
|
|
14
|
+
*,
|
|
15
|
+
json_body: SetWorkspaceSlackOauthConfigJsonBody,
|
|
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/slack_oauth_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 client.raise_on_unexpected_status:
|
|
32
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
33
|
+
else:
|
|
34
|
+
return None
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]:
|
|
38
|
+
return Response(
|
|
39
|
+
status_code=HTTPStatus(response.status_code),
|
|
40
|
+
content=response.content,
|
|
41
|
+
headers=response.headers,
|
|
42
|
+
parsed=_parse_response(client=client, response=response),
|
|
43
|
+
)
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
def sync_detailed(
|
|
47
|
+
workspace: str,
|
|
48
|
+
*,
|
|
49
|
+
client: Union[AuthenticatedClient, Client],
|
|
50
|
+
json_body: SetWorkspaceSlackOauthConfigJsonBody,
|
|
51
|
+
) -> Response[Any]:
|
|
52
|
+
"""set workspace slack oauth config
|
|
53
|
+
|
|
54
|
+
Args:
|
|
55
|
+
workspace (str):
|
|
56
|
+
json_body (SetWorkspaceSlackOauthConfigJsonBody):
|
|
57
|
+
|
|
58
|
+
Raises:
|
|
59
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
60
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
61
|
+
|
|
62
|
+
Returns:
|
|
63
|
+
Response[Any]
|
|
64
|
+
"""
|
|
65
|
+
|
|
66
|
+
kwargs = _get_kwargs(
|
|
67
|
+
workspace=workspace,
|
|
68
|
+
json_body=json_body,
|
|
69
|
+
)
|
|
70
|
+
|
|
71
|
+
response = client.get_httpx_client().request(
|
|
72
|
+
**kwargs,
|
|
73
|
+
)
|
|
74
|
+
|
|
75
|
+
return _build_response(client=client, response=response)
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
async def asyncio_detailed(
|
|
79
|
+
workspace: str,
|
|
80
|
+
*,
|
|
81
|
+
client: Union[AuthenticatedClient, Client],
|
|
82
|
+
json_body: SetWorkspaceSlackOauthConfigJsonBody,
|
|
83
|
+
) -> Response[Any]:
|
|
84
|
+
"""set workspace slack oauth config
|
|
85
|
+
|
|
86
|
+
Args:
|
|
87
|
+
workspace (str):
|
|
88
|
+
json_body (SetWorkspaceSlackOauthConfigJsonBody):
|
|
89
|
+
|
|
90
|
+
Raises:
|
|
91
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
92
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
93
|
+
|
|
94
|
+
Returns:
|
|
95
|
+
Response[Any]
|
|
96
|
+
"""
|
|
97
|
+
|
|
98
|
+
kwargs = _get_kwargs(
|
|
99
|
+
workspace=workspace,
|
|
100
|
+
json_body=json_body,
|
|
101
|
+
)
|
|
102
|
+
|
|
103
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
104
|
+
|
|
105
|
+
return _build_response(client=client, response=response)
|
|
@@ -31,6 +31,8 @@ class GetSettingsResponse200:
|
|
|
31
31
|
slack_name (Union[Unset, str]):
|
|
32
32
|
slack_team_id (Union[Unset, str]):
|
|
33
33
|
slack_command_script (Union[Unset, str]):
|
|
34
|
+
slack_oauth_client_id (Union[Unset, str]):
|
|
35
|
+
slack_oauth_client_secret (Union[Unset, str]):
|
|
34
36
|
teams_team_id (Union[Unset, str]):
|
|
35
37
|
teams_command_script (Union[Unset, str]):
|
|
36
38
|
teams_team_name (Union[Unset, str]):
|
|
@@ -63,6 +65,8 @@ class GetSettingsResponse200:
|
|
|
63
65
|
slack_name: Union[Unset, str] = UNSET
|
|
64
66
|
slack_team_id: Union[Unset, str] = UNSET
|
|
65
67
|
slack_command_script: Union[Unset, str] = UNSET
|
|
68
|
+
slack_oauth_client_id: Union[Unset, str] = UNSET
|
|
69
|
+
slack_oauth_client_secret: Union[Unset, str] = UNSET
|
|
66
70
|
teams_team_id: Union[Unset, str] = UNSET
|
|
67
71
|
teams_command_script: Union[Unset, str] = UNSET
|
|
68
72
|
teams_team_name: Union[Unset, str] = UNSET
|
|
@@ -95,6 +99,8 @@ class GetSettingsResponse200:
|
|
|
95
99
|
slack_name = self.slack_name
|
|
96
100
|
slack_team_id = self.slack_team_id
|
|
97
101
|
slack_command_script = self.slack_command_script
|
|
102
|
+
slack_oauth_client_id = self.slack_oauth_client_id
|
|
103
|
+
slack_oauth_client_secret = self.slack_oauth_client_secret
|
|
98
104
|
teams_team_id = self.teams_team_id
|
|
99
105
|
teams_command_script = self.teams_command_script
|
|
100
106
|
teams_team_name = self.teams_team_name
|
|
@@ -164,6 +170,10 @@ class GetSettingsResponse200:
|
|
|
164
170
|
field_dict["slack_team_id"] = slack_team_id
|
|
165
171
|
if slack_command_script is not UNSET:
|
|
166
172
|
field_dict["slack_command_script"] = slack_command_script
|
|
173
|
+
if slack_oauth_client_id is not UNSET:
|
|
174
|
+
field_dict["slack_oauth_client_id"] = slack_oauth_client_id
|
|
175
|
+
if slack_oauth_client_secret is not UNSET:
|
|
176
|
+
field_dict["slack_oauth_client_secret"] = slack_oauth_client_secret
|
|
167
177
|
if teams_team_id is not UNSET:
|
|
168
178
|
field_dict["teams_team_id"] = teams_team_id
|
|
169
179
|
if teams_command_script is not UNSET:
|
|
@@ -242,6 +252,10 @@ class GetSettingsResponse200:
|
|
|
242
252
|
|
|
243
253
|
slack_command_script = d.pop("slack_command_script", UNSET)
|
|
244
254
|
|
|
255
|
+
slack_oauth_client_id = d.pop("slack_oauth_client_id", UNSET)
|
|
256
|
+
|
|
257
|
+
slack_oauth_client_secret = d.pop("slack_oauth_client_secret", UNSET)
|
|
258
|
+
|
|
245
259
|
teams_team_id = d.pop("teams_team_id", UNSET)
|
|
246
260
|
|
|
247
261
|
teams_command_script = d.pop("teams_command_script", UNSET)
|
|
@@ -345,6 +359,8 @@ class GetSettingsResponse200:
|
|
|
345
359
|
slack_name=slack_name,
|
|
346
360
|
slack_team_id=slack_team_id,
|
|
347
361
|
slack_command_script=slack_command_script,
|
|
362
|
+
slack_oauth_client_id=slack_oauth_client_id,
|
|
363
|
+
slack_oauth_client_secret=slack_oauth_client_secret,
|
|
348
364
|
teams_team_id=teams_team_id,
|
|
349
365
|
teams_command_script=teams_command_script,
|
|
350
366
|
teams_team_name=teams_team_name,
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
from typing import 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
|
+
T = TypeVar("T", bound="GetWorkspaceSlackOauthConfigResponse200")
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
@_attrs_define
|
|
12
|
+
class GetWorkspaceSlackOauthConfigResponse200:
|
|
13
|
+
"""
|
|
14
|
+
Attributes:
|
|
15
|
+
slack_oauth_client_id (Union[Unset, None, str]):
|
|
16
|
+
slack_oauth_client_secret (Union[Unset, None, str]): Masked with *** if set
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
slack_oauth_client_id: Union[Unset, None, str] = UNSET
|
|
20
|
+
slack_oauth_client_secret: Union[Unset, None, str] = UNSET
|
|
21
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
22
|
+
|
|
23
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
24
|
+
slack_oauth_client_id = self.slack_oauth_client_id
|
|
25
|
+
slack_oauth_client_secret = self.slack_oauth_client_secret
|
|
26
|
+
|
|
27
|
+
field_dict: Dict[str, Any] = {}
|
|
28
|
+
field_dict.update(self.additional_properties)
|
|
29
|
+
field_dict.update({})
|
|
30
|
+
if slack_oauth_client_id is not UNSET:
|
|
31
|
+
field_dict["slack_oauth_client_id"] = slack_oauth_client_id
|
|
32
|
+
if slack_oauth_client_secret is not UNSET:
|
|
33
|
+
field_dict["slack_oauth_client_secret"] = slack_oauth_client_secret
|
|
34
|
+
|
|
35
|
+
return field_dict
|
|
36
|
+
|
|
37
|
+
@classmethod
|
|
38
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
39
|
+
d = src_dict.copy()
|
|
40
|
+
slack_oauth_client_id = d.pop("slack_oauth_client_id", UNSET)
|
|
41
|
+
|
|
42
|
+
slack_oauth_client_secret = d.pop("slack_oauth_client_secret", UNSET)
|
|
43
|
+
|
|
44
|
+
get_workspace_slack_oauth_config_response_200 = cls(
|
|
45
|
+
slack_oauth_client_id=slack_oauth_client_id,
|
|
46
|
+
slack_oauth_client_secret=slack_oauth_client_secret,
|
|
47
|
+
)
|
|
48
|
+
|
|
49
|
+
get_workspace_slack_oauth_config_response_200.additional_properties = d
|
|
50
|
+
return get_workspace_slack_oauth_config_response_200
|
|
51
|
+
|
|
52
|
+
@property
|
|
53
|
+
def additional_keys(self) -> List[str]:
|
|
54
|
+
return list(self.additional_properties.keys())
|
|
55
|
+
|
|
56
|
+
def __getitem__(self, key: str) -> Any:
|
|
57
|
+
return self.additional_properties[key]
|
|
58
|
+
|
|
59
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
60
|
+
self.additional_properties[key] = value
|
|
61
|
+
|
|
62
|
+
def __delitem__(self, key: str) -> None:
|
|
63
|
+
del self.additional_properties[key]
|
|
64
|
+
|
|
65
|
+
def __contains__(self, key: str) -> bool:
|
|
66
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
from typing import Any, Dict, List, Type, TypeVar
|
|
2
|
+
|
|
3
|
+
from attrs import define as _attrs_define
|
|
4
|
+
from attrs import field as _attrs_field
|
|
5
|
+
|
|
6
|
+
T = TypeVar("T", bound="SetWorkspaceSlackOauthConfigJsonBody")
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@_attrs_define
|
|
10
|
+
class SetWorkspaceSlackOauthConfigJsonBody:
|
|
11
|
+
"""
|
|
12
|
+
Attributes:
|
|
13
|
+
slack_oauth_client_id (str):
|
|
14
|
+
slack_oauth_client_secret (str):
|
|
15
|
+
"""
|
|
16
|
+
|
|
17
|
+
slack_oauth_client_id: str
|
|
18
|
+
slack_oauth_client_secret: str
|
|
19
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
20
|
+
|
|
21
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
22
|
+
slack_oauth_client_id = self.slack_oauth_client_id
|
|
23
|
+
slack_oauth_client_secret = self.slack_oauth_client_secret
|
|
24
|
+
|
|
25
|
+
field_dict: Dict[str, Any] = {}
|
|
26
|
+
field_dict.update(self.additional_properties)
|
|
27
|
+
field_dict.update(
|
|
28
|
+
{
|
|
29
|
+
"slack_oauth_client_id": slack_oauth_client_id,
|
|
30
|
+
"slack_oauth_client_secret": slack_oauth_client_secret,
|
|
31
|
+
}
|
|
32
|
+
)
|
|
33
|
+
|
|
34
|
+
return field_dict
|
|
35
|
+
|
|
36
|
+
@classmethod
|
|
37
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
38
|
+
d = src_dict.copy()
|
|
39
|
+
slack_oauth_client_id = d.pop("slack_oauth_client_id")
|
|
40
|
+
|
|
41
|
+
slack_oauth_client_secret = d.pop("slack_oauth_client_secret")
|
|
42
|
+
|
|
43
|
+
set_workspace_slack_oauth_config_json_body = cls(
|
|
44
|
+
slack_oauth_client_id=slack_oauth_client_id,
|
|
45
|
+
slack_oauth_client_secret=slack_oauth_client_secret,
|
|
46
|
+
)
|
|
47
|
+
|
|
48
|
+
set_workspace_slack_oauth_config_json_body.additional_properties = d
|
|
49
|
+
return set_workspace_slack_oauth_config_json_body
|
|
50
|
+
|
|
51
|
+
@property
|
|
52
|
+
def additional_keys(self) -> List[str]:
|
|
53
|
+
return list(self.additional_properties.keys())
|
|
54
|
+
|
|
55
|
+
def __getitem__(self, key: str) -> Any:
|
|
56
|
+
return self.additional_properties[key]
|
|
57
|
+
|
|
58
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
59
|
+
self.additional_properties[key] = value
|
|
60
|
+
|
|
61
|
+
def __delitem__(self, key: str) -> None:
|
|
62
|
+
del self.additional_properties[key]
|
|
63
|
+
|
|
64
|
+
def __contains__(self, key: str) -> bool:
|
|
65
|
+
return key in self.additional_properties
|
|
@@ -537,6 +537,7 @@ windmill_api/api/workspace/create_workspace_fork.py,sha256=V9hLOO6NwZZq5gQiQ4yHF
|
|
|
537
537
|
windmill_api/api/workspace/delete_git_sync_repository.py,sha256=vTT0_IH4qHzLmqVcEsIrwSMKj_SAyPP1NtqVVdcCWD0,2902
|
|
538
538
|
windmill_api/api/workspace/delete_invite.py,sha256=PfwTA5svQKFrbl_aiDc4NkL4POvd9uDxHQFApD7OYRg,2704
|
|
539
539
|
windmill_api/api/workspace/delete_workspace.py,sha256=RPcF68hin2-ebX1Nf0XjCWIu6dJADFlkOMUKfpS45c0,2921
|
|
540
|
+
windmill_api/api/workspace/delete_workspace_slack_oauth_config.py,sha256=5nbJLPg6bxUdYa9LsKfJapCPhaz7o2JIPp4nrNrwUOc,2344
|
|
540
541
|
windmill_api/api/workspace/edit_auto_invite.py,sha256=u-EY_aZyqp9vkXKWffDoNxCVheMLR9hDx0RCVYO0Muk,2718
|
|
541
542
|
windmill_api/api/workspace/edit_copilot_config.py,sha256=U1gPohEbsQwruoBnol6s5EQP1mcKrVSkQZSMuoBX-Oo,2748
|
|
542
543
|
windmill_api/api/workspace/edit_default_scripts.py,sha256=Zi7xXuSAf7fiYJu6nerr5pX4Ah84VTAjhl8ZJvdxjek,2781
|
|
@@ -568,6 +569,7 @@ windmill_api/api/workspace/get_used_triggers.py,sha256=YnShrlix42jOJUEgKyZULaFUH
|
|
|
568
569
|
windmill_api/api/workspace/get_workspace_default_app.py,sha256=kl5g22l3PaEfULkf9Bvjd77x4_mSxa2TTUE4fhrDvyQ,3994
|
|
569
570
|
windmill_api/api/workspace/get_workspace_encryption_key.py,sha256=UesuBMeiPvCjfBzBYIEEL7JlOUbqukFEM2AvTz1hk4Y,4108
|
|
570
571
|
windmill_api/api/workspace/get_workspace_name.py,sha256=MrUklRfguSp556N1UCUT4aAzgqmXYM5FYynXXGS7Hts,2307
|
|
572
|
+
windmill_api/api/workspace/get_workspace_slack_oauth_config.py,sha256=08rRm5-YxbGl6cwzFuMOMjMQj0j5z_D3Z2GbWFsPS4A,4092
|
|
571
573
|
windmill_api/api/workspace/get_workspace_usage.py,sha256=B6C47ukf-P2DiugnEw4AtY4QAJjP3S4PQqe84uBiEx4,2276
|
|
572
574
|
windmill_api/api/workspace/invite_user.py,sha256=lFo3sd6ctRoNJnbY8wh1JLqJK79JiqxgpdtP1RoSy5U,2700
|
|
573
575
|
windmill_api/api/workspace/is_domain_allowed.py,sha256=IFtBikqIJmddzRNCqijG2xST5gJf1ebnFJXYOCVnNmY,3152
|
|
@@ -585,6 +587,7 @@ windmill_api/api/workspace/run_teams_message_test_job.py,sha256=lpmj5y3g0-xOQWJ4
|
|
|
585
587
|
windmill_api/api/workspace/set_environment_variable.py,sha256=EGDoktKua4YqffjpLAvudoOxRIhDPkcTlJ7JwxFeiPM,2798
|
|
586
588
|
windmill_api/api/workspace/set_threshold_alert.py,sha256=faSqhLhlISONjrJWW0Yh983TVa8n51kjkAl0g97y15w,2754
|
|
587
589
|
windmill_api/api/workspace/set_workspace_encryption_key.py,sha256=YVnjNSKUH8rUUHYcPTpSIEji9FAT6eEfWpU7SWCHgEE,2850
|
|
590
|
+
windmill_api/api/workspace/set_workspace_slack_oauth_config.py,sha256=bh3dIaQoJ-Ie_SkeQZIahSrH6kyrhod_ytTTaCxkiSg,2852
|
|
588
591
|
windmill_api/api/workspace/unarchive_workspace.py,sha256=mS7jRZ5n64qYRrE5eoatDtchtHiu7ga1HzAtc96DhFQ,2299
|
|
589
592
|
windmill_api/api/workspace/update_operator_settings.py,sha256=OSoXZy8m3IGZLQeBzcBB17I6dSOeQ4spS1k7HLiygu4,3094
|
|
590
593
|
windmill_api/client.py,sha256=r4usc_1YIQRI4Sr33G9Z3H25-bKCZ5w2I9qZ_eCUP3M,12131
|
|
@@ -3084,7 +3087,7 @@ windmill_api/models/get_script_by_path_with_draft_response_200_schema.py,sha256=
|
|
|
3084
3087
|
windmill_api/models/get_script_deployment_status_response_200.py,sha256=xmVrdonWouCGM_3MdoVNSuaAWN8Qt7erpLpfhfauU5c,1985
|
|
3085
3088
|
windmill_api/models/get_script_history_by_path_response_200_item.py,sha256=vc0iaH2j8BKXxXtjtEg7-lollyA5OxPLYoJsjSUiqc8,2009
|
|
3086
3089
|
windmill_api/models/get_script_latest_version_response_200.py,sha256=tQENYMrpuFKHrllSdlpHe-P_EnWq74-07mDWIfDEres,1983
|
|
3087
|
-
windmill_api/models/get_settings_response_200.py,sha256=
|
|
3090
|
+
windmill_api/models/get_settings_response_200.py,sha256=gxObPRzylS203t6nEJNigHnyxk5cZqzaU9M_W4hWTHU,18613
|
|
3088
3091
|
windmill_api/models/get_settings_response_200_ai_config.py,sha256=kUNz44HvrbE96DCdzs29ps7eWCl4KR0VHPEzb5NPDJ8,7072
|
|
3089
3092
|
windmill_api/models/get_settings_response_200_ai_config_code_completion_model.py,sha256=gIlLC7OwaC5oRgDHFDVa8n0V9ZTiLd7-EjlThJ2UQPY,2149
|
|
3090
3093
|
windmill_api/models/get_settings_response_200_ai_config_code_completion_model_provider.py,sha256=VnxuHQRCiavp1ClBK73i8CBWKy-tISmd9L6kOa7rErw,426
|
|
@@ -3409,6 +3412,7 @@ windmill_api/models/get_websocket_trigger_response_200_retry_retry_if.py,sha256=
|
|
|
3409
3412
|
windmill_api/models/get_websocket_trigger_response_200_url_runnable_args.py,sha256=TGU8QjyhBsLgCWiDQxfdqgcD0tUrJALQ2KSPGzMge2Q,1440
|
|
3410
3413
|
windmill_api/models/get_workspace_default_app_response_200.py,sha256=FKINlHD6u4qyUDJgJjDuDIyIsWAuvRdPKYQA9s_Y00g,1758
|
|
3411
3414
|
windmill_api/models/get_workspace_encryption_key_response_200.py,sha256=Fvs0c2FiaRvYp_qRzJ4xj-gQ-2mF58Ae5dOol6Onuow,1544
|
|
3415
|
+
windmill_api/models/get_workspace_slack_oauth_config_response_200.py,sha256=1_-EBshQO7InDtBNwATDeYPQfu--zKnzcJxZ-9S5rVw,2347
|
|
3412
3416
|
windmill_api/models/git_repo_viewer_file_upload_response_200.py,sha256=W5MbTsIkg_gUIEFv7vqEADdek_WCJ7wHxj3VKq9uAIc,1587
|
|
3413
3417
|
windmill_api/models/git_repository_settings.py,sha256=UMuFUfq9jZIv7tMNkHl7mrkNHJ1fIByMfIIXI_mow38,5142
|
|
3414
3418
|
windmill_api/models/git_repository_settings_exclude_types_override_item.py,sha256=UgHD6OCUPd7AZ4J9DEH14ZZZg010hizcPzlHb8g0d6A,466
|
|
@@ -5441,6 +5445,7 @@ windmill_api/models/set_sqs_trigger_enabled_json_body.py,sha256=vLomxG05W0o7Aqze
|
|
|
5441
5445
|
windmill_api/models/set_threshold_alert_json_body.py,sha256=i7qaWObe13Pdq8SouPwfR-7n1C0QF-aYZA6u8zn0OPA,1785
|
|
5442
5446
|
windmill_api/models/set_websocket_trigger_enabled_json_body.py,sha256=7vo3qLPYnFxmZWMlZdJhxyVtG6Qf9Edi6hTGXuKCxgo,1576
|
|
5443
5447
|
windmill_api/models/set_workspace_encryption_key_json_body.py,sha256=ouffHakm84NN5H-6AH5TCC6-bewjjnyyQHI1SzSCWwg,1945
|
|
5448
|
+
windmill_api/models/set_workspace_slack_oauth_config_json_body.py,sha256=ESKdFe1R9T4dKBjx_4lNsVlDu2sJoA9VJcRG8uwvt1o,2079
|
|
5444
5449
|
windmill_api/models/setup_ducklake_catalog_db_response_200.py,sha256=elD_Ghy2Q1hiLpzfsFn71-psduKQq2RClksZInoMsBo,2511
|
|
5445
5450
|
windmill_api/models/setup_ducklake_catalog_db_response_200_logs.py,sha256=YWv4rEA7v7buHWEuqD90ZjtEQ4SO66CSs9gGJSIA7Fo,7309
|
|
5446
5451
|
windmill_api/models/setup_ducklake_catalog_db_response_200_logs_created_database.py,sha256=BOecprPc4NTKFK7Z5v1nCUMoJjAzzxLlHGvb1jqWZAU,207
|
|
@@ -5727,7 +5732,7 @@ windmill_api/models/workspace_invite.py,sha256=wp-J-VJLkXsfQzw1PdNPGQhETsFCFXh1e
|
|
|
5727
5732
|
windmill_api/models/workspace_mute_critical_alerts_ui_json_body.py,sha256=y8ZwkWEZgavVc-FgLuZZ4z8YPCLxjPcMfdGdKjGM6VQ,1883
|
|
5728
5733
|
windmill_api/py.typed,sha256=8ZJUsxZiuOy1oJeVhsTWQhTG_6pTVHVXk5hJL79ebTk,25
|
|
5729
5734
|
windmill_api/types.py,sha256=GoYub3t4hQP2Yn5tsvShsBfIY3vHUmblU0MXszDx_V0,968
|
|
5730
|
-
windmill_api-1.
|
|
5731
|
-
windmill_api-1.
|
|
5732
|
-
windmill_api-1.
|
|
5733
|
-
windmill_api-1.
|
|
5735
|
+
windmill_api-1.569.0.dist-info/LICENSE,sha256=qJVFNTaOevCeSY6NoXeUG1SPOwQ1K-PxVQ2iEWJzX-A,11348
|
|
5736
|
+
windmill_api-1.569.0.dist-info/METADATA,sha256=-_kfyjTLZYBnSsKgc3FG_frPPfkDXdWQ05GQC9xlvN4,5023
|
|
5737
|
+
windmill_api-1.569.0.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
|
|
5738
|
+
windmill_api-1.569.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|