windmill-api 1.498.0__py3-none-any.whl → 1.500.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/agent_workers/blacklist_agent_token.py +98 -0
- windmill_api/api/agent_workers/list_blacklisted_agent_tokens.py +162 -0
- windmill_api/api/agent_workers/remove_blacklist_agent_token.py +98 -0
- windmill_api/models/blacklist_agent_token_json_body.py +77 -0
- windmill_api/models/list_blacklisted_agent_tokens_response_200_item.py +83 -0
- windmill_api/models/remove_blacklist_agent_token_json_body.py +58 -0
- {windmill_api-1.498.0.dist-info → windmill_api-1.500.0.dist-info}/METADATA +1 -1
- {windmill_api-1.498.0.dist-info → windmill_api-1.500.0.dist-info}/RECORD +10 -4
- {windmill_api-1.498.0.dist-info → windmill_api-1.500.0.dist-info}/LICENSE +0 -0
- {windmill_api-1.498.0.dist-info → windmill_api-1.500.0.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,98 @@
|
|
|
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.blacklist_agent_token_json_body import BlacklistAgentTokenJsonBody
|
|
9
|
+
from ...types import Response
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
def _get_kwargs(
|
|
13
|
+
*,
|
|
14
|
+
json_body: BlacklistAgentTokenJsonBody,
|
|
15
|
+
) -> Dict[str, Any]:
|
|
16
|
+
pass
|
|
17
|
+
|
|
18
|
+
json_json_body = json_body.to_dict()
|
|
19
|
+
|
|
20
|
+
return {
|
|
21
|
+
"method": "post",
|
|
22
|
+
"url": "/agent_workers/blacklist_token",
|
|
23
|
+
"json": json_json_body,
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]:
|
|
28
|
+
if response.status_code == HTTPStatus.OK:
|
|
29
|
+
return None
|
|
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[Any]:
|
|
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
|
+
*,
|
|
47
|
+
client: Union[AuthenticatedClient, Client],
|
|
48
|
+
json_body: BlacklistAgentTokenJsonBody,
|
|
49
|
+
) -> Response[Any]:
|
|
50
|
+
"""blacklist agent token (requires super admin)
|
|
51
|
+
|
|
52
|
+
Args:
|
|
53
|
+
json_body (BlacklistAgentTokenJsonBody):
|
|
54
|
+
|
|
55
|
+
Raises:
|
|
56
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
57
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
58
|
+
|
|
59
|
+
Returns:
|
|
60
|
+
Response[Any]
|
|
61
|
+
"""
|
|
62
|
+
|
|
63
|
+
kwargs = _get_kwargs(
|
|
64
|
+
json_body=json_body,
|
|
65
|
+
)
|
|
66
|
+
|
|
67
|
+
response = client.get_httpx_client().request(
|
|
68
|
+
**kwargs,
|
|
69
|
+
)
|
|
70
|
+
|
|
71
|
+
return _build_response(client=client, response=response)
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
async def asyncio_detailed(
|
|
75
|
+
*,
|
|
76
|
+
client: Union[AuthenticatedClient, Client],
|
|
77
|
+
json_body: BlacklistAgentTokenJsonBody,
|
|
78
|
+
) -> Response[Any]:
|
|
79
|
+
"""blacklist agent token (requires super admin)
|
|
80
|
+
|
|
81
|
+
Args:
|
|
82
|
+
json_body (BlacklistAgentTokenJsonBody):
|
|
83
|
+
|
|
84
|
+
Raises:
|
|
85
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
86
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
87
|
+
|
|
88
|
+
Returns:
|
|
89
|
+
Response[Any]
|
|
90
|
+
"""
|
|
91
|
+
|
|
92
|
+
kwargs = _get_kwargs(
|
|
93
|
+
json_body=json_body,
|
|
94
|
+
)
|
|
95
|
+
|
|
96
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
97
|
+
|
|
98
|
+
return _build_response(client=client, response=response)
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
from http import HTTPStatus
|
|
2
|
+
from typing import Any, Dict, List, Optional, Union
|
|
3
|
+
|
|
4
|
+
import httpx
|
|
5
|
+
|
|
6
|
+
from ... import errors
|
|
7
|
+
from ...client import AuthenticatedClient, Client
|
|
8
|
+
from ...models.list_blacklisted_agent_tokens_response_200_item import ListBlacklistedAgentTokensResponse200Item
|
|
9
|
+
from ...types import UNSET, Response, Unset
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
def _get_kwargs(
|
|
13
|
+
*,
|
|
14
|
+
include_expired: Union[Unset, None, bool] = False,
|
|
15
|
+
) -> Dict[str, Any]:
|
|
16
|
+
pass
|
|
17
|
+
|
|
18
|
+
params: Dict[str, Any] = {}
|
|
19
|
+
params["include_expired"] = include_expired
|
|
20
|
+
|
|
21
|
+
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
22
|
+
|
|
23
|
+
return {
|
|
24
|
+
"method": "get",
|
|
25
|
+
"url": "/agent_workers/list_blacklisted_tokens",
|
|
26
|
+
"params": params,
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
def _parse_response(
|
|
31
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
32
|
+
) -> Optional[List["ListBlacklistedAgentTokensResponse200Item"]]:
|
|
33
|
+
if response.status_code == HTTPStatus.OK:
|
|
34
|
+
response_200 = []
|
|
35
|
+
_response_200 = response.json()
|
|
36
|
+
for response_200_item_data in _response_200:
|
|
37
|
+
response_200_item = ListBlacklistedAgentTokensResponse200Item.from_dict(response_200_item_data)
|
|
38
|
+
|
|
39
|
+
response_200.append(response_200_item)
|
|
40
|
+
|
|
41
|
+
return response_200
|
|
42
|
+
if client.raise_on_unexpected_status:
|
|
43
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
44
|
+
else:
|
|
45
|
+
return None
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
def _build_response(
|
|
49
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
50
|
+
) -> Response[List["ListBlacklistedAgentTokensResponse200Item"]]:
|
|
51
|
+
return Response(
|
|
52
|
+
status_code=HTTPStatus(response.status_code),
|
|
53
|
+
content=response.content,
|
|
54
|
+
headers=response.headers,
|
|
55
|
+
parsed=_parse_response(client=client, response=response),
|
|
56
|
+
)
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
def sync_detailed(
|
|
60
|
+
*,
|
|
61
|
+
client: Union[AuthenticatedClient, Client],
|
|
62
|
+
include_expired: Union[Unset, None, bool] = False,
|
|
63
|
+
) -> Response[List["ListBlacklistedAgentTokensResponse200Item"]]:
|
|
64
|
+
"""list blacklisted agent tokens (requires super admin)
|
|
65
|
+
|
|
66
|
+
Args:
|
|
67
|
+
include_expired (Union[Unset, None, bool]):
|
|
68
|
+
|
|
69
|
+
Raises:
|
|
70
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
71
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
72
|
+
|
|
73
|
+
Returns:
|
|
74
|
+
Response[List['ListBlacklistedAgentTokensResponse200Item']]
|
|
75
|
+
"""
|
|
76
|
+
|
|
77
|
+
kwargs = _get_kwargs(
|
|
78
|
+
include_expired=include_expired,
|
|
79
|
+
)
|
|
80
|
+
|
|
81
|
+
response = client.get_httpx_client().request(
|
|
82
|
+
**kwargs,
|
|
83
|
+
)
|
|
84
|
+
|
|
85
|
+
return _build_response(client=client, response=response)
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
def sync(
|
|
89
|
+
*,
|
|
90
|
+
client: Union[AuthenticatedClient, Client],
|
|
91
|
+
include_expired: Union[Unset, None, bool] = False,
|
|
92
|
+
) -> Optional[List["ListBlacklistedAgentTokensResponse200Item"]]:
|
|
93
|
+
"""list blacklisted agent tokens (requires super admin)
|
|
94
|
+
|
|
95
|
+
Args:
|
|
96
|
+
include_expired (Union[Unset, None, bool]):
|
|
97
|
+
|
|
98
|
+
Raises:
|
|
99
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
100
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
101
|
+
|
|
102
|
+
Returns:
|
|
103
|
+
List['ListBlacklistedAgentTokensResponse200Item']
|
|
104
|
+
"""
|
|
105
|
+
|
|
106
|
+
return sync_detailed(
|
|
107
|
+
client=client,
|
|
108
|
+
include_expired=include_expired,
|
|
109
|
+
).parsed
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
async def asyncio_detailed(
|
|
113
|
+
*,
|
|
114
|
+
client: Union[AuthenticatedClient, Client],
|
|
115
|
+
include_expired: Union[Unset, None, bool] = False,
|
|
116
|
+
) -> Response[List["ListBlacklistedAgentTokensResponse200Item"]]:
|
|
117
|
+
"""list blacklisted agent tokens (requires super admin)
|
|
118
|
+
|
|
119
|
+
Args:
|
|
120
|
+
include_expired (Union[Unset, None, bool]):
|
|
121
|
+
|
|
122
|
+
Raises:
|
|
123
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
124
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
125
|
+
|
|
126
|
+
Returns:
|
|
127
|
+
Response[List['ListBlacklistedAgentTokensResponse200Item']]
|
|
128
|
+
"""
|
|
129
|
+
|
|
130
|
+
kwargs = _get_kwargs(
|
|
131
|
+
include_expired=include_expired,
|
|
132
|
+
)
|
|
133
|
+
|
|
134
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
135
|
+
|
|
136
|
+
return _build_response(client=client, response=response)
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
async def asyncio(
|
|
140
|
+
*,
|
|
141
|
+
client: Union[AuthenticatedClient, Client],
|
|
142
|
+
include_expired: Union[Unset, None, bool] = False,
|
|
143
|
+
) -> Optional[List["ListBlacklistedAgentTokensResponse200Item"]]:
|
|
144
|
+
"""list blacklisted agent tokens (requires super admin)
|
|
145
|
+
|
|
146
|
+
Args:
|
|
147
|
+
include_expired (Union[Unset, None, bool]):
|
|
148
|
+
|
|
149
|
+
Raises:
|
|
150
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
151
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
152
|
+
|
|
153
|
+
Returns:
|
|
154
|
+
List['ListBlacklistedAgentTokensResponse200Item']
|
|
155
|
+
"""
|
|
156
|
+
|
|
157
|
+
return (
|
|
158
|
+
await asyncio_detailed(
|
|
159
|
+
client=client,
|
|
160
|
+
include_expired=include_expired,
|
|
161
|
+
)
|
|
162
|
+
).parsed
|
|
@@ -0,0 +1,98 @@
|
|
|
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.remove_blacklist_agent_token_json_body import RemoveBlacklistAgentTokenJsonBody
|
|
9
|
+
from ...types import Response
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
def _get_kwargs(
|
|
13
|
+
*,
|
|
14
|
+
json_body: RemoveBlacklistAgentTokenJsonBody,
|
|
15
|
+
) -> Dict[str, Any]:
|
|
16
|
+
pass
|
|
17
|
+
|
|
18
|
+
json_json_body = json_body.to_dict()
|
|
19
|
+
|
|
20
|
+
return {
|
|
21
|
+
"method": "post",
|
|
22
|
+
"url": "/agent_workers/remove_blacklist_token",
|
|
23
|
+
"json": json_json_body,
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]:
|
|
28
|
+
if response.status_code == HTTPStatus.OK:
|
|
29
|
+
return None
|
|
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[Any]:
|
|
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
|
+
*,
|
|
47
|
+
client: Union[AuthenticatedClient, Client],
|
|
48
|
+
json_body: RemoveBlacklistAgentTokenJsonBody,
|
|
49
|
+
) -> Response[Any]:
|
|
50
|
+
"""remove agent token from blacklist (requires super admin)
|
|
51
|
+
|
|
52
|
+
Args:
|
|
53
|
+
json_body (RemoveBlacklistAgentTokenJsonBody):
|
|
54
|
+
|
|
55
|
+
Raises:
|
|
56
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
57
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
58
|
+
|
|
59
|
+
Returns:
|
|
60
|
+
Response[Any]
|
|
61
|
+
"""
|
|
62
|
+
|
|
63
|
+
kwargs = _get_kwargs(
|
|
64
|
+
json_body=json_body,
|
|
65
|
+
)
|
|
66
|
+
|
|
67
|
+
response = client.get_httpx_client().request(
|
|
68
|
+
**kwargs,
|
|
69
|
+
)
|
|
70
|
+
|
|
71
|
+
return _build_response(client=client, response=response)
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
async def asyncio_detailed(
|
|
75
|
+
*,
|
|
76
|
+
client: Union[AuthenticatedClient, Client],
|
|
77
|
+
json_body: RemoveBlacklistAgentTokenJsonBody,
|
|
78
|
+
) -> Response[Any]:
|
|
79
|
+
"""remove agent token from blacklist (requires super admin)
|
|
80
|
+
|
|
81
|
+
Args:
|
|
82
|
+
json_body (RemoveBlacklistAgentTokenJsonBody):
|
|
83
|
+
|
|
84
|
+
Raises:
|
|
85
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
86
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
87
|
+
|
|
88
|
+
Returns:
|
|
89
|
+
Response[Any]
|
|
90
|
+
"""
|
|
91
|
+
|
|
92
|
+
kwargs = _get_kwargs(
|
|
93
|
+
json_body=json_body,
|
|
94
|
+
)
|
|
95
|
+
|
|
96
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
97
|
+
|
|
98
|
+
return _build_response(client=client, response=response)
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import datetime
|
|
2
|
+
from typing import Any, Dict, List, Type, TypeVar, Union
|
|
3
|
+
|
|
4
|
+
from attrs import define as _attrs_define
|
|
5
|
+
from attrs import field as _attrs_field
|
|
6
|
+
from dateutil.parser import isoparse
|
|
7
|
+
|
|
8
|
+
from ..types import UNSET, Unset
|
|
9
|
+
|
|
10
|
+
T = TypeVar("T", bound="BlacklistAgentTokenJsonBody")
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
@_attrs_define
|
|
14
|
+
class BlacklistAgentTokenJsonBody:
|
|
15
|
+
"""
|
|
16
|
+
Attributes:
|
|
17
|
+
token (str): The agent token to blacklist
|
|
18
|
+
expires_at (Union[Unset, datetime.datetime]): Optional expiration date for the blacklist entry
|
|
19
|
+
"""
|
|
20
|
+
|
|
21
|
+
token: str
|
|
22
|
+
expires_at: Union[Unset, datetime.datetime] = UNSET
|
|
23
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
24
|
+
|
|
25
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
26
|
+
token = self.token
|
|
27
|
+
expires_at: Union[Unset, str] = UNSET
|
|
28
|
+
if not isinstance(self.expires_at, Unset):
|
|
29
|
+
expires_at = self.expires_at.isoformat()
|
|
30
|
+
|
|
31
|
+
field_dict: Dict[str, Any] = {}
|
|
32
|
+
field_dict.update(self.additional_properties)
|
|
33
|
+
field_dict.update(
|
|
34
|
+
{
|
|
35
|
+
"token": token,
|
|
36
|
+
}
|
|
37
|
+
)
|
|
38
|
+
if expires_at is not UNSET:
|
|
39
|
+
field_dict["expires_at"] = expires_at
|
|
40
|
+
|
|
41
|
+
return field_dict
|
|
42
|
+
|
|
43
|
+
@classmethod
|
|
44
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
45
|
+
d = src_dict.copy()
|
|
46
|
+
token = d.pop("token")
|
|
47
|
+
|
|
48
|
+
_expires_at = d.pop("expires_at", UNSET)
|
|
49
|
+
expires_at: Union[Unset, datetime.datetime]
|
|
50
|
+
if isinstance(_expires_at, Unset):
|
|
51
|
+
expires_at = UNSET
|
|
52
|
+
else:
|
|
53
|
+
expires_at = isoparse(_expires_at)
|
|
54
|
+
|
|
55
|
+
blacklist_agent_token_json_body = cls(
|
|
56
|
+
token=token,
|
|
57
|
+
expires_at=expires_at,
|
|
58
|
+
)
|
|
59
|
+
|
|
60
|
+
blacklist_agent_token_json_body.additional_properties = d
|
|
61
|
+
return blacklist_agent_token_json_body
|
|
62
|
+
|
|
63
|
+
@property
|
|
64
|
+
def additional_keys(self) -> List[str]:
|
|
65
|
+
return list(self.additional_properties.keys())
|
|
66
|
+
|
|
67
|
+
def __getitem__(self, key: str) -> Any:
|
|
68
|
+
return self.additional_properties[key]
|
|
69
|
+
|
|
70
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
71
|
+
self.additional_properties[key] = value
|
|
72
|
+
|
|
73
|
+
def __delitem__(self, key: str) -> None:
|
|
74
|
+
del self.additional_properties[key]
|
|
75
|
+
|
|
76
|
+
def __contains__(self, key: str) -> bool:
|
|
77
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import datetime
|
|
2
|
+
from typing import Any, Dict, List, Type, TypeVar
|
|
3
|
+
|
|
4
|
+
from attrs import define as _attrs_define
|
|
5
|
+
from attrs import field as _attrs_field
|
|
6
|
+
from dateutil.parser import isoparse
|
|
7
|
+
|
|
8
|
+
T = TypeVar("T", bound="ListBlacklistedAgentTokensResponse200Item")
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
@_attrs_define
|
|
12
|
+
class ListBlacklistedAgentTokensResponse200Item:
|
|
13
|
+
"""
|
|
14
|
+
Attributes:
|
|
15
|
+
token (str): The blacklisted token (without prefix)
|
|
16
|
+
expires_at (datetime.datetime): When the blacklist entry expires
|
|
17
|
+
blacklisted_at (datetime.datetime): When the token was blacklisted
|
|
18
|
+
blacklisted_by (str): Email of the user who blacklisted the token
|
|
19
|
+
"""
|
|
20
|
+
|
|
21
|
+
token: str
|
|
22
|
+
expires_at: datetime.datetime
|
|
23
|
+
blacklisted_at: datetime.datetime
|
|
24
|
+
blacklisted_by: str
|
|
25
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
26
|
+
|
|
27
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
28
|
+
token = self.token
|
|
29
|
+
expires_at = self.expires_at.isoformat()
|
|
30
|
+
|
|
31
|
+
blacklisted_at = self.blacklisted_at.isoformat()
|
|
32
|
+
|
|
33
|
+
blacklisted_by = self.blacklisted_by
|
|
34
|
+
|
|
35
|
+
field_dict: Dict[str, Any] = {}
|
|
36
|
+
field_dict.update(self.additional_properties)
|
|
37
|
+
field_dict.update(
|
|
38
|
+
{
|
|
39
|
+
"token": token,
|
|
40
|
+
"expires_at": expires_at,
|
|
41
|
+
"blacklisted_at": blacklisted_at,
|
|
42
|
+
"blacklisted_by": blacklisted_by,
|
|
43
|
+
}
|
|
44
|
+
)
|
|
45
|
+
|
|
46
|
+
return field_dict
|
|
47
|
+
|
|
48
|
+
@classmethod
|
|
49
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
50
|
+
d = src_dict.copy()
|
|
51
|
+
token = d.pop("token")
|
|
52
|
+
|
|
53
|
+
expires_at = isoparse(d.pop("expires_at"))
|
|
54
|
+
|
|
55
|
+
blacklisted_at = isoparse(d.pop("blacklisted_at"))
|
|
56
|
+
|
|
57
|
+
blacklisted_by = d.pop("blacklisted_by")
|
|
58
|
+
|
|
59
|
+
list_blacklisted_agent_tokens_response_200_item = cls(
|
|
60
|
+
token=token,
|
|
61
|
+
expires_at=expires_at,
|
|
62
|
+
blacklisted_at=blacklisted_at,
|
|
63
|
+
blacklisted_by=blacklisted_by,
|
|
64
|
+
)
|
|
65
|
+
|
|
66
|
+
list_blacklisted_agent_tokens_response_200_item.additional_properties = d
|
|
67
|
+
return list_blacklisted_agent_tokens_response_200_item
|
|
68
|
+
|
|
69
|
+
@property
|
|
70
|
+
def additional_keys(self) -> List[str]:
|
|
71
|
+
return list(self.additional_properties.keys())
|
|
72
|
+
|
|
73
|
+
def __getitem__(self, key: str) -> Any:
|
|
74
|
+
return self.additional_properties[key]
|
|
75
|
+
|
|
76
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
77
|
+
self.additional_properties[key] = value
|
|
78
|
+
|
|
79
|
+
def __delitem__(self, key: str) -> None:
|
|
80
|
+
del self.additional_properties[key]
|
|
81
|
+
|
|
82
|
+
def __contains__(self, key: str) -> bool:
|
|
83
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,58 @@
|
|
|
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="RemoveBlacklistAgentTokenJsonBody")
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@_attrs_define
|
|
10
|
+
class RemoveBlacklistAgentTokenJsonBody:
|
|
11
|
+
"""
|
|
12
|
+
Attributes:
|
|
13
|
+
token (str): The agent token to remove from blacklist
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
token: str
|
|
17
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
18
|
+
|
|
19
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
20
|
+
token = self.token
|
|
21
|
+
|
|
22
|
+
field_dict: Dict[str, Any] = {}
|
|
23
|
+
field_dict.update(self.additional_properties)
|
|
24
|
+
field_dict.update(
|
|
25
|
+
{
|
|
26
|
+
"token": token,
|
|
27
|
+
}
|
|
28
|
+
)
|
|
29
|
+
|
|
30
|
+
return field_dict
|
|
31
|
+
|
|
32
|
+
@classmethod
|
|
33
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
34
|
+
d = src_dict.copy()
|
|
35
|
+
token = d.pop("token")
|
|
36
|
+
|
|
37
|
+
remove_blacklist_agent_token_json_body = cls(
|
|
38
|
+
token=token,
|
|
39
|
+
)
|
|
40
|
+
|
|
41
|
+
remove_blacklist_agent_token_json_body.additional_properties = d
|
|
42
|
+
return remove_blacklist_agent_token_json_body
|
|
43
|
+
|
|
44
|
+
@property
|
|
45
|
+
def additional_keys(self) -> List[str]:
|
|
46
|
+
return list(self.additional_properties.keys())
|
|
47
|
+
|
|
48
|
+
def __getitem__(self, key: str) -> Any:
|
|
49
|
+
return self.additional_properties[key]
|
|
50
|
+
|
|
51
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
52
|
+
self.additional_properties[key] = value
|
|
53
|
+
|
|
54
|
+
def __delitem__(self, key: str) -> None:
|
|
55
|
+
del self.additional_properties[key]
|
|
56
|
+
|
|
57
|
+
def __contains__(self, key: str) -> bool:
|
|
58
|
+
return key in self.additional_properties
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
windmill_api/__init__.py,sha256=1_CwZsNkwbmPKbrWsi-4_Ny5L_s_ajNQTWELN739vKQ,156
|
|
2
2
|
windmill_api/api/__init__.py,sha256=87ApBzKyGb5zsgTMOkQXDqsLZCmaSFoJMwbGzCDQZMw,47
|
|
3
3
|
windmill_api/api/agent_workers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
+
windmill_api/api/agent_workers/blacklist_agent_token.py,sha256=x2UM1wyFCRV15QHBt-l50IMsp8kyvt16MUs9mNethQ0,2644
|
|
4
5
|
windmill_api/api/agent_workers/create_agent_token.py,sha256=oLCJsxoHOO1XDSHPA2VnzqlD71nWwEvziYIMXhlsrbc,3806
|
|
6
|
+
windmill_api/api/agent_workers/list_blacklisted_agent_tokens.py,sha256=AEwN5nBXkOBz1M0aJFMShpb5C4fqTatAn1dJtik2Jrc,4957
|
|
7
|
+
windmill_api/api/agent_workers/remove_blacklist_agent_token.py,sha256=EOnqYQVIrfYjTYkxi5rKguMBF4LINYUEM9FudIBnj0E,2718
|
|
5
8
|
windmill_api/api/app/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
9
|
windmill_api/api/app/create_app.py,sha256=oy93qpykDNZq5UkaaQDv1GRBxgqglXx103oYEMJwhnk,2654
|
|
7
10
|
windmill_api/api/app/create_app_raw.py,sha256=c2_kGYu692AzBJyFjmVNG6pfypUK_U0YQMYIVQO5ws0,2799
|
|
@@ -602,6 +605,7 @@ windmill_api/models/batch_re_run_jobs_json_body_script_options_by_path_additiona
|
|
|
602
605
|
windmill_api/models/batch_re_run_jobs_json_body_script_options_by_path_additional_property_input_transforms_additional_property_type_0_type.py,sha256=qGmDaQyU1huBV4zbifKARpUKiN-GDgCS0FDDtVFS9Vk,236
|
|
603
606
|
windmill_api/models/batch_re_run_jobs_json_body_script_options_by_path_additional_property_input_transforms_additional_property_type_1.py,sha256=55osQZr0opkh_6Q99aFTZbvkhP9HL73cjF4UurS87oE,2647
|
|
604
607
|
windmill_api/models/batch_re_run_jobs_json_body_script_options_by_path_additional_property_input_transforms_additional_property_type_1_type.py,sha256=HfzpJmPT6ccTlhmvF7YkCNz-tkho6HuZknD9LPD1ero,236
|
|
608
|
+
windmill_api/models/blacklist_agent_token_json_body.py,sha256=-k7uQ_qsPrgN5aKrgTrCgcybrq0Nkr8COCyr8U7lzVU,2306
|
|
605
609
|
windmill_api/models/branch_all.py,sha256=rJO_UgIwKgLwndTozpK_l2czSMI8ynmSzHIj3stwlqk,2560
|
|
606
610
|
windmill_api/models/branch_all_branches_item.py,sha256=KSHjzM6PsVfKVpXdlunkAS8MJAqH2NbMUCZ_P-uD7ec,2750
|
|
607
611
|
windmill_api/models/branch_all_branches_item_modules_item.py,sha256=POtXKPyRb1Uj7xEKUSnpTbEM1At5DYZ08ZyIojB89lQ,12249
|
|
@@ -2655,6 +2659,7 @@ windmill_api/models/list_audit_logs_response_200_item_parameters.py,sha256=q4xUQ
|
|
|
2655
2659
|
windmill_api/models/list_autoscaling_events_response_200_item.py,sha256=cpgO8peKyXAJ7TVYMTKk7pJyw3RaUQBAIhMcP95edsw,3479
|
|
2656
2660
|
windmill_api/models/list_available_teams_channels_response_200_item.py,sha256=-rwWVXatn4x9nWbHEovLc_M-IPLOzOuhIuHhixJrbE0,2624
|
|
2657
2661
|
windmill_api/models/list_available_teams_ids_response_200_item.py,sha256=m_dVBX0c9zUoQsOFwKR1SGGSMxZItGF3RyYxsX-P0kM,1955
|
|
2662
|
+
windmill_api/models/list_blacklisted_agent_tokens_response_200_item.py,sha256=m3SS0PL-FOjqphEa3lzh2i0OMCA55g_t8PfnN4eMWew,2580
|
|
2658
2663
|
windmill_api/models/list_captures_response_200_item.py,sha256=KRviYFOxsyWQ9CV2k_EgnFMKcVfIPNX-fnk_f3mLfj8,2700
|
|
2659
2664
|
windmill_api/models/list_captures_response_200_item_trigger_kind.py,sha256=DjPx9pSxFNK_jZdu3FX4czqPW41PNHSI_zfolpBPl_0,347
|
|
2660
2665
|
windmill_api/models/list_captures_runnable_kind.py,sha256=aX97pn4XHRbUoGVoEcMmhoLiGGjnEZU0eryz4Tl4AWQ,169
|
|
@@ -3659,6 +3664,7 @@ windmill_api/models/raw_script_type.py,sha256=bcbf9wJCp94uNiWiLAYkuGwuO3U3sCbIfG
|
|
|
3659
3664
|
windmill_api/models/refresh_token_json_body.py,sha256=L88HkDH-Nnmyu2o6xWGK8uvXsyEPmB3pyX60Yhq8xyI,1468
|
|
3660
3665
|
windmill_api/models/relations.py,sha256=s42cBfGU9_hQDKBaH3jDTZ3X7ah8Tcpcq_j-xJrCDWw,2385
|
|
3661
3666
|
windmill_api/models/relations_table_to_track_item.py,sha256=Eqvx5fPxtR-tycE1fdgOjqqSOFlxNi2NlVETKTLY3FQ,2366
|
|
3667
|
+
windmill_api/models/remove_blacklist_agent_token_json_body.py,sha256=mBBYzP8DvaKA1rQbtiHbOgpSe6myCE7CThRXuHLkWZ8,1590
|
|
3662
3668
|
windmill_api/models/remove_granular_acls_json_body.py,sha256=-zLiSn0FU5PR2IOofT6kMEfGaj51f992zPRFLH9W6Zs,1511
|
|
3663
3669
|
windmill_api/models/remove_granular_acls_kind.py,sha256=zs7g-o6aq3bmzkdmsyjLKHZObFGLouECMKhHOEFl3M4,616
|
|
3664
3670
|
windmill_api/models/remove_owner_to_folder_json_body.py,sha256=-LHQAV_NLngZxrtAPF-j8QogQYMAWYdbOWt-lSQjf8o,1796
|
|
@@ -4016,7 +4022,7 @@ windmill_api/models/workspace_invite.py,sha256=HnAJWGv5LwxWkz1T3fhgHKIccO7RFC1li
|
|
|
4016
4022
|
windmill_api/models/workspace_mute_critical_alerts_ui_json_body.py,sha256=y8ZwkWEZgavVc-FgLuZZ4z8YPCLxjPcMfdGdKjGM6VQ,1883
|
|
4017
4023
|
windmill_api/py.typed,sha256=8ZJUsxZiuOy1oJeVhsTWQhTG_6pTVHVXk5hJL79ebTk,25
|
|
4018
4024
|
windmill_api/types.py,sha256=GoYub3t4hQP2Yn5tsvShsBfIY3vHUmblU0MXszDx_V0,968
|
|
4019
|
-
windmill_api-1.
|
|
4020
|
-
windmill_api-1.
|
|
4021
|
-
windmill_api-1.
|
|
4022
|
-
windmill_api-1.
|
|
4025
|
+
windmill_api-1.500.0.dist-info/LICENSE,sha256=qJVFNTaOevCeSY6NoXeUG1SPOwQ1K-PxVQ2iEWJzX-A,11348
|
|
4026
|
+
windmill_api-1.500.0.dist-info/METADATA,sha256=CbjoSv3vMUjTfRTGPT0f9Yk3ck6mIzu1_MfvLr8VvG0,5023
|
|
4027
|
+
windmill_api-1.500.0.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
|
|
4028
|
+
windmill_api-1.500.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|