windmill-api 1.450.1__py3-none-any.whl → 1.452.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/kafka_trigger/test_kafka_connection.py +105 -0
- windmill_api/api/nats_trigger/test_nats_connection.py +105 -0
- windmill_api/api/websocket_trigger/test_websocket_connection.py +105 -0
- windmill_api/models/test_kafka_connection_json_body.py +64 -0
- windmill_api/models/test_kafka_connection_json_body_connection.py +44 -0
- windmill_api/models/test_nats_connection_json_body.py +64 -0
- windmill_api/models/test_nats_connection_json_body_connection.py +44 -0
- windmill_api/models/test_websocket_connection_json_body.py +85 -0
- windmill_api/models/test_websocket_connection_json_body_url_runnable_args.py +44 -0
- {windmill_api-1.450.1.dist-info → windmill_api-1.452.0.dist-info}/METADATA +1 -1
- {windmill_api-1.450.1.dist-info → windmill_api-1.452.0.dist-info}/RECORD +13 -4
- {windmill_api-1.450.1.dist-info → windmill_api-1.452.0.dist-info}/LICENSE +0 -0
- {windmill_api-1.450.1.dist-info → windmill_api-1.452.0.dist-info}/WHEEL +0 -0
|
@@ -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.test_kafka_connection_json_body import TestKafkaConnectionJsonBody
|
|
9
|
+
from ...types import Response
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
def _get_kwargs(
|
|
13
|
+
workspace: str,
|
|
14
|
+
*,
|
|
15
|
+
json_body: TestKafkaConnectionJsonBody,
|
|
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}/kafka_triggers/test".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: TestKafkaConnectionJsonBody,
|
|
51
|
+
) -> Response[Any]:
|
|
52
|
+
"""test kafka connection
|
|
53
|
+
|
|
54
|
+
Args:
|
|
55
|
+
workspace (str):
|
|
56
|
+
json_body (TestKafkaConnectionJsonBody):
|
|
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: TestKafkaConnectionJsonBody,
|
|
83
|
+
) -> Response[Any]:
|
|
84
|
+
"""test kafka connection
|
|
85
|
+
|
|
86
|
+
Args:
|
|
87
|
+
workspace (str):
|
|
88
|
+
json_body (TestKafkaConnectionJsonBody):
|
|
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)
|
|
@@ -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.test_nats_connection_json_body import TestNatsConnectionJsonBody
|
|
9
|
+
from ...types import Response
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
def _get_kwargs(
|
|
13
|
+
workspace: str,
|
|
14
|
+
*,
|
|
15
|
+
json_body: TestNatsConnectionJsonBody,
|
|
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}/nats_triggers/test".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: TestNatsConnectionJsonBody,
|
|
51
|
+
) -> Response[Any]:
|
|
52
|
+
"""test NATS connection
|
|
53
|
+
|
|
54
|
+
Args:
|
|
55
|
+
workspace (str):
|
|
56
|
+
json_body (TestNatsConnectionJsonBody):
|
|
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: TestNatsConnectionJsonBody,
|
|
83
|
+
) -> Response[Any]:
|
|
84
|
+
"""test NATS connection
|
|
85
|
+
|
|
86
|
+
Args:
|
|
87
|
+
workspace (str):
|
|
88
|
+
json_body (TestNatsConnectionJsonBody):
|
|
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)
|
|
@@ -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.test_websocket_connection_json_body import TestWebsocketConnectionJsonBody
|
|
9
|
+
from ...types import Response
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
def _get_kwargs(
|
|
13
|
+
workspace: str,
|
|
14
|
+
*,
|
|
15
|
+
json_body: TestWebsocketConnectionJsonBody,
|
|
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}/websocket_triggers/test".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: TestWebsocketConnectionJsonBody,
|
|
51
|
+
) -> Response[Any]:
|
|
52
|
+
"""test websocket connection
|
|
53
|
+
|
|
54
|
+
Args:
|
|
55
|
+
workspace (str):
|
|
56
|
+
json_body (TestWebsocketConnectionJsonBody):
|
|
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: TestWebsocketConnectionJsonBody,
|
|
83
|
+
) -> Response[Any]:
|
|
84
|
+
"""test websocket connection
|
|
85
|
+
|
|
86
|
+
Args:
|
|
87
|
+
workspace (str):
|
|
88
|
+
json_body (TestWebsocketConnectionJsonBody):
|
|
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)
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar
|
|
2
|
+
|
|
3
|
+
from attrs import define as _attrs_define
|
|
4
|
+
from attrs import field as _attrs_field
|
|
5
|
+
|
|
6
|
+
if TYPE_CHECKING:
|
|
7
|
+
from ..models.test_kafka_connection_json_body_connection import TestKafkaConnectionJsonBodyConnection
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
T = TypeVar("T", bound="TestKafkaConnectionJsonBody")
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
@_attrs_define
|
|
14
|
+
class TestKafkaConnectionJsonBody:
|
|
15
|
+
"""
|
|
16
|
+
Attributes:
|
|
17
|
+
connection (TestKafkaConnectionJsonBodyConnection):
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
connection: "TestKafkaConnectionJsonBodyConnection"
|
|
21
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
22
|
+
|
|
23
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
24
|
+
connection = self.connection.to_dict()
|
|
25
|
+
|
|
26
|
+
field_dict: Dict[str, Any] = {}
|
|
27
|
+
field_dict.update(self.additional_properties)
|
|
28
|
+
field_dict.update(
|
|
29
|
+
{
|
|
30
|
+
"connection": connection,
|
|
31
|
+
}
|
|
32
|
+
)
|
|
33
|
+
|
|
34
|
+
return field_dict
|
|
35
|
+
|
|
36
|
+
@classmethod
|
|
37
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
38
|
+
from ..models.test_kafka_connection_json_body_connection import TestKafkaConnectionJsonBodyConnection
|
|
39
|
+
|
|
40
|
+
d = src_dict.copy()
|
|
41
|
+
connection = TestKafkaConnectionJsonBodyConnection.from_dict(d.pop("connection"))
|
|
42
|
+
|
|
43
|
+
test_kafka_connection_json_body = cls(
|
|
44
|
+
connection=connection,
|
|
45
|
+
)
|
|
46
|
+
|
|
47
|
+
test_kafka_connection_json_body.additional_properties = d
|
|
48
|
+
return test_kafka_connection_json_body
|
|
49
|
+
|
|
50
|
+
@property
|
|
51
|
+
def additional_keys(self) -> List[str]:
|
|
52
|
+
return list(self.additional_properties.keys())
|
|
53
|
+
|
|
54
|
+
def __getitem__(self, key: str) -> Any:
|
|
55
|
+
return self.additional_properties[key]
|
|
56
|
+
|
|
57
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
58
|
+
self.additional_properties[key] = value
|
|
59
|
+
|
|
60
|
+
def __delitem__(self, key: str) -> None:
|
|
61
|
+
del self.additional_properties[key]
|
|
62
|
+
|
|
63
|
+
def __contains__(self, key: str) -> bool:
|
|
64
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,44 @@
|
|
|
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="TestKafkaConnectionJsonBodyConnection")
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@_attrs_define
|
|
10
|
+
class TestKafkaConnectionJsonBodyConnection:
|
|
11
|
+
""" """
|
|
12
|
+
|
|
13
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
14
|
+
|
|
15
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
16
|
+
field_dict: Dict[str, Any] = {}
|
|
17
|
+
field_dict.update(self.additional_properties)
|
|
18
|
+
field_dict.update({})
|
|
19
|
+
|
|
20
|
+
return field_dict
|
|
21
|
+
|
|
22
|
+
@classmethod
|
|
23
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
24
|
+
d = src_dict.copy()
|
|
25
|
+
test_kafka_connection_json_body_connection = cls()
|
|
26
|
+
|
|
27
|
+
test_kafka_connection_json_body_connection.additional_properties = d
|
|
28
|
+
return test_kafka_connection_json_body_connection
|
|
29
|
+
|
|
30
|
+
@property
|
|
31
|
+
def additional_keys(self) -> List[str]:
|
|
32
|
+
return list(self.additional_properties.keys())
|
|
33
|
+
|
|
34
|
+
def __getitem__(self, key: str) -> Any:
|
|
35
|
+
return self.additional_properties[key]
|
|
36
|
+
|
|
37
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
38
|
+
self.additional_properties[key] = value
|
|
39
|
+
|
|
40
|
+
def __delitem__(self, key: str) -> None:
|
|
41
|
+
del self.additional_properties[key]
|
|
42
|
+
|
|
43
|
+
def __contains__(self, key: str) -> bool:
|
|
44
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar
|
|
2
|
+
|
|
3
|
+
from attrs import define as _attrs_define
|
|
4
|
+
from attrs import field as _attrs_field
|
|
5
|
+
|
|
6
|
+
if TYPE_CHECKING:
|
|
7
|
+
from ..models.test_nats_connection_json_body_connection import TestNatsConnectionJsonBodyConnection
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
T = TypeVar("T", bound="TestNatsConnectionJsonBody")
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
@_attrs_define
|
|
14
|
+
class TestNatsConnectionJsonBody:
|
|
15
|
+
"""
|
|
16
|
+
Attributes:
|
|
17
|
+
connection (TestNatsConnectionJsonBodyConnection):
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
connection: "TestNatsConnectionJsonBodyConnection"
|
|
21
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
22
|
+
|
|
23
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
24
|
+
connection = self.connection.to_dict()
|
|
25
|
+
|
|
26
|
+
field_dict: Dict[str, Any] = {}
|
|
27
|
+
field_dict.update(self.additional_properties)
|
|
28
|
+
field_dict.update(
|
|
29
|
+
{
|
|
30
|
+
"connection": connection,
|
|
31
|
+
}
|
|
32
|
+
)
|
|
33
|
+
|
|
34
|
+
return field_dict
|
|
35
|
+
|
|
36
|
+
@classmethod
|
|
37
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
38
|
+
from ..models.test_nats_connection_json_body_connection import TestNatsConnectionJsonBodyConnection
|
|
39
|
+
|
|
40
|
+
d = src_dict.copy()
|
|
41
|
+
connection = TestNatsConnectionJsonBodyConnection.from_dict(d.pop("connection"))
|
|
42
|
+
|
|
43
|
+
test_nats_connection_json_body = cls(
|
|
44
|
+
connection=connection,
|
|
45
|
+
)
|
|
46
|
+
|
|
47
|
+
test_nats_connection_json_body.additional_properties = d
|
|
48
|
+
return test_nats_connection_json_body
|
|
49
|
+
|
|
50
|
+
@property
|
|
51
|
+
def additional_keys(self) -> List[str]:
|
|
52
|
+
return list(self.additional_properties.keys())
|
|
53
|
+
|
|
54
|
+
def __getitem__(self, key: str) -> Any:
|
|
55
|
+
return self.additional_properties[key]
|
|
56
|
+
|
|
57
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
58
|
+
self.additional_properties[key] = value
|
|
59
|
+
|
|
60
|
+
def __delitem__(self, key: str) -> None:
|
|
61
|
+
del self.additional_properties[key]
|
|
62
|
+
|
|
63
|
+
def __contains__(self, key: str) -> bool:
|
|
64
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,44 @@
|
|
|
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="TestNatsConnectionJsonBodyConnection")
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@_attrs_define
|
|
10
|
+
class TestNatsConnectionJsonBodyConnection:
|
|
11
|
+
""" """
|
|
12
|
+
|
|
13
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
14
|
+
|
|
15
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
16
|
+
field_dict: Dict[str, Any] = {}
|
|
17
|
+
field_dict.update(self.additional_properties)
|
|
18
|
+
field_dict.update({})
|
|
19
|
+
|
|
20
|
+
return field_dict
|
|
21
|
+
|
|
22
|
+
@classmethod
|
|
23
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
24
|
+
d = src_dict.copy()
|
|
25
|
+
test_nats_connection_json_body_connection = cls()
|
|
26
|
+
|
|
27
|
+
test_nats_connection_json_body_connection.additional_properties = d
|
|
28
|
+
return test_nats_connection_json_body_connection
|
|
29
|
+
|
|
30
|
+
@property
|
|
31
|
+
def additional_keys(self) -> List[str]:
|
|
32
|
+
return list(self.additional_properties.keys())
|
|
33
|
+
|
|
34
|
+
def __getitem__(self, key: str) -> Any:
|
|
35
|
+
return self.additional_properties[key]
|
|
36
|
+
|
|
37
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
38
|
+
self.additional_properties[key] = value
|
|
39
|
+
|
|
40
|
+
def __delitem__(self, key: str) -> None:
|
|
41
|
+
del self.additional_properties[key]
|
|
42
|
+
|
|
43
|
+
def __contains__(self, key: str) -> bool:
|
|
44
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,85 @@
|
|
|
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.test_websocket_connection_json_body_url_runnable_args import (
|
|
10
|
+
TestWebsocketConnectionJsonBodyUrlRunnableArgs,
|
|
11
|
+
)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
T = TypeVar("T", bound="TestWebsocketConnectionJsonBody")
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
@_attrs_define
|
|
18
|
+
class TestWebsocketConnectionJsonBody:
|
|
19
|
+
"""
|
|
20
|
+
Attributes:
|
|
21
|
+
url (str):
|
|
22
|
+
url_runnable_args (Union[Unset, TestWebsocketConnectionJsonBodyUrlRunnableArgs]):
|
|
23
|
+
"""
|
|
24
|
+
|
|
25
|
+
url: str
|
|
26
|
+
url_runnable_args: Union[Unset, "TestWebsocketConnectionJsonBodyUrlRunnableArgs"] = UNSET
|
|
27
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
28
|
+
|
|
29
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
30
|
+
url = self.url
|
|
31
|
+
url_runnable_args: Union[Unset, Dict[str, Any]] = UNSET
|
|
32
|
+
if not isinstance(self.url_runnable_args, Unset):
|
|
33
|
+
url_runnable_args = self.url_runnable_args.to_dict()
|
|
34
|
+
|
|
35
|
+
field_dict: Dict[str, Any] = {}
|
|
36
|
+
field_dict.update(self.additional_properties)
|
|
37
|
+
field_dict.update(
|
|
38
|
+
{
|
|
39
|
+
"url": url,
|
|
40
|
+
}
|
|
41
|
+
)
|
|
42
|
+
if url_runnable_args is not UNSET:
|
|
43
|
+
field_dict["url_runnable_args"] = url_runnable_args
|
|
44
|
+
|
|
45
|
+
return field_dict
|
|
46
|
+
|
|
47
|
+
@classmethod
|
|
48
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
49
|
+
from ..models.test_websocket_connection_json_body_url_runnable_args import (
|
|
50
|
+
TestWebsocketConnectionJsonBodyUrlRunnableArgs,
|
|
51
|
+
)
|
|
52
|
+
|
|
53
|
+
d = src_dict.copy()
|
|
54
|
+
url = d.pop("url")
|
|
55
|
+
|
|
56
|
+
_url_runnable_args = d.pop("url_runnable_args", UNSET)
|
|
57
|
+
url_runnable_args: Union[Unset, TestWebsocketConnectionJsonBodyUrlRunnableArgs]
|
|
58
|
+
if isinstance(_url_runnable_args, Unset):
|
|
59
|
+
url_runnable_args = UNSET
|
|
60
|
+
else:
|
|
61
|
+
url_runnable_args = TestWebsocketConnectionJsonBodyUrlRunnableArgs.from_dict(_url_runnable_args)
|
|
62
|
+
|
|
63
|
+
test_websocket_connection_json_body = cls(
|
|
64
|
+
url=url,
|
|
65
|
+
url_runnable_args=url_runnable_args,
|
|
66
|
+
)
|
|
67
|
+
|
|
68
|
+
test_websocket_connection_json_body.additional_properties = d
|
|
69
|
+
return test_websocket_connection_json_body
|
|
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,44 @@
|
|
|
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="TestWebsocketConnectionJsonBodyUrlRunnableArgs")
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@_attrs_define
|
|
10
|
+
class TestWebsocketConnectionJsonBodyUrlRunnableArgs:
|
|
11
|
+
""" """
|
|
12
|
+
|
|
13
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
14
|
+
|
|
15
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
16
|
+
field_dict: Dict[str, Any] = {}
|
|
17
|
+
field_dict.update(self.additional_properties)
|
|
18
|
+
field_dict.update({})
|
|
19
|
+
|
|
20
|
+
return field_dict
|
|
21
|
+
|
|
22
|
+
@classmethod
|
|
23
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
24
|
+
d = src_dict.copy()
|
|
25
|
+
test_websocket_connection_json_body_url_runnable_args = cls()
|
|
26
|
+
|
|
27
|
+
test_websocket_connection_json_body_url_runnable_args.additional_properties = d
|
|
28
|
+
return test_websocket_connection_json_body_url_runnable_args
|
|
29
|
+
|
|
30
|
+
@property
|
|
31
|
+
def additional_keys(self) -> List[str]:
|
|
32
|
+
return list(self.additional_properties.keys())
|
|
33
|
+
|
|
34
|
+
def __getitem__(self, key: str) -> Any:
|
|
35
|
+
return self.additional_properties[key]
|
|
36
|
+
|
|
37
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
38
|
+
self.additional_properties[key] = value
|
|
39
|
+
|
|
40
|
+
def __delitem__(self, key: str) -> None:
|
|
41
|
+
del self.additional_properties[key]
|
|
42
|
+
|
|
43
|
+
def __contains__(self, key: str) -> bool:
|
|
44
|
+
return key in self.additional_properties
|
|
@@ -198,6 +198,7 @@ windmill_api/api/kafka_trigger/exists_kafka_trigger.py,sha256=cJ5JiBS083d9ohDB6C
|
|
|
198
198
|
windmill_api/api/kafka_trigger/get_kafka_trigger.py,sha256=h5JAUOyj1TVVNHc1N71ErMhSfMcpB8y37T58dKsyL24,4115
|
|
199
199
|
windmill_api/api/kafka_trigger/list_kafka_triggers.py,sha256=Cyew4mAum7GEJbMX5l7oYqVHNOMDh-aS5yt3f98t2Sw,7040
|
|
200
200
|
windmill_api/api/kafka_trigger/set_kafka_trigger_enabled.py,sha256=OvkW7s71WE6nPFkQijGcjVYQRgMfapk672VUMTwP5S0,2944
|
|
201
|
+
windmill_api/api/kafka_trigger/test_kafka_connection.py,sha256=tFqICVCVWR_g_goPSD_fmVDEXrfa6iB4QKMfB-3Zxwc,2755
|
|
201
202
|
windmill_api/api/kafka_trigger/update_kafka_trigger.py,sha256=17EZhdaDwhFo445k-jcSzw3lTjV6hR8s5EIwc9Ek5y0,2901
|
|
202
203
|
windmill_api/api/metrics/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
203
204
|
windmill_api/api/metrics/get_job_metrics.py,sha256=0tXzNiB-wcYVHTQp3fGylKmr4_jCBE2ZMCHq0ChmEgw,4672
|
|
@@ -210,6 +211,7 @@ windmill_api/api/nats_trigger/exists_nats_trigger.py,sha256=g9wgepMWphXdjr6s-K_B
|
|
|
210
211
|
windmill_api/api/nats_trigger/get_nats_trigger.py,sha256=WVCaCdXEXAJ1GcetAPw9nYMy6tA2crqoWvqBmlEbyaI,4097
|
|
211
212
|
windmill_api/api/nats_trigger/list_nats_triggers.py,sha256=9IuL-VP-rXm88esFapWrnhM2IPeG0Q62gWLKkBPmQbM,7022
|
|
212
213
|
windmill_api/api/nats_trigger/set_nats_trigger_enabled.py,sha256=A-hIO1yJxTnWSo5zzo99U-_VbtfCrUwlJFjvqJpmA8I,2934
|
|
214
|
+
windmill_api/api/nats_trigger/test_nats_connection.py,sha256=L_N5q72OrhKSpFyP7poPtd1C-UAq6KmMwGXLxA0ONM0,2745
|
|
213
215
|
windmill_api/api/nats_trigger/update_nats_trigger.py,sha256=3y710Dv5wgqntaug9CaqmGPdnVVYswGfdEXd31TplTA,2891
|
|
214
216
|
windmill_api/api/oauth/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
215
217
|
windmill_api/api/oauth/connect_callback.py,sha256=12cfwUWge6lMnTuVv9sxmk9oYpal4INyn-uN8EAURm4,4542
|
|
@@ -398,6 +400,7 @@ windmill_api/api/websocket_trigger/exists_websocket_trigger.py,sha256=M_Lz4UPOEd
|
|
|
398
400
|
windmill_api/api/websocket_trigger/get_websocket_trigger.py,sha256=phtDal_M0NCMlDAmOQVD4qEq0lL8xvMtgHsYk--U6g8,4187
|
|
399
401
|
windmill_api/api/websocket_trigger/list_websocket_triggers.py,sha256=emZuHbNYyBQJ_IhTkvCkerFwAKtSL6MhKuYHkd-L3y0,7112
|
|
400
402
|
windmill_api/api/websocket_trigger/set_websocket_trigger_enabled.py,sha256=1ECZUTr_o4Xsq0Spl5Vs_UeljOO-G10RgU4pUFmc5ZU,2984
|
|
403
|
+
windmill_api/api/websocket_trigger/test_websocket_connection.py,sha256=XACSRwr1yIrt4hcU_QJNajAsIoO3ExWhkcvLfeXD6Xg,2795
|
|
401
404
|
windmill_api/api/websocket_trigger/update_websocket_trigger.py,sha256=2X0Ht_HiKgK9L_5bZS589GRBi3U7RrB534bRHimhVuM,2941
|
|
402
405
|
windmill_api/api/worker/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
403
406
|
windmill_api/api/worker/exists_worker_with_tag.py,sha256=sh0LvJMp8V_dYG5b4Ok26j-_yl2MlAiHOQH1YkLhqfs,3563
|
|
@@ -3532,10 +3535,16 @@ windmill_api/models/template_script_language.py,sha256=jH31z3K0AIt7Lta-ZZgmE3Gbh
|
|
|
3532
3535
|
windmill_api/models/template_script_relations_item.py,sha256=C_eG6yEjCiQGXY3KqPvj9uamg2Rd0InWhJsAPY9EdSc,2641
|
|
3533
3536
|
windmill_api/models/template_script_relations_item_table_to_track_item.py,sha256=naw6r-z0XcThpWS8jagyPRJnHHas5fIzhgG20lBqBLA,2465
|
|
3534
3537
|
windmill_api/models/test_critical_channels_json_body_item.py,sha256=0ewf8YnQ97BnCOoy2M-TKQvkosUvvBwnPpXnT2zRcYw,1954
|
|
3538
|
+
windmill_api/models/test_kafka_connection_json_body.py,sha256=4zjUJ9NaMrhawG0WX0QUpJVMhv-iLooj5LV67cOUqic,1947
|
|
3539
|
+
windmill_api/models/test_kafka_connection_json_body_connection.py,sha256=LuNjcKxtS9qxPJn5cMvd43FXomOX1dod7LJNaMLcSnU,1352
|
|
3535
3540
|
windmill_api/models/test_license_key_json_body.py,sha256=ztZyCZ2-4graejAx27M6NaILgsz3tAVXUHeE8L2IKSs,1551
|
|
3541
|
+
windmill_api/models/test_nats_connection_json_body.py,sha256=OVLPyC-cr2Ta-Tv6nylS9BWOOhNPS-pmkS47fh_87CI,1935
|
|
3542
|
+
windmill_api/models/test_nats_connection_json_body_connection.py,sha256=CLP-2I6UTgliGqI5MEiiZ8O1t8mEPuC7syzTrbWL_jA,1347
|
|
3536
3543
|
windmill_api/models/test_object_storage_config_json_body.py,sha256=8hs2BhGwf4zG2AueTdCileLEVqh8IPKL0cCof7RH9WQ,1322
|
|
3537
3544
|
windmill_api/models/test_smtp_json_body.py,sha256=1EnU2xqXl2GQ3QmZ68cuyV08h1KxzKbw5aVYrCMZxgM,1830
|
|
3538
3545
|
windmill_api/models/test_smtp_json_body_smtp.py,sha256=8fDDqj9vT6-NGxbATM6SquS7tkzSItr5KdJ996BGL1g,2565
|
|
3546
|
+
windmill_api/models/test_websocket_connection_json_body.py,sha256=yrfIGShETJ5YfOVuF4EDCkPnoN9UBuDsywNTIzr5lvo,2781
|
|
3547
|
+
windmill_api/models/test_websocket_connection_json_body_url_runnable_args.py,sha256=PB7DeLlvFFi4lDeZlUtkn_9sYGT4YY-AtexVvXFXudk,1403
|
|
3539
3548
|
windmill_api/models/timeseries_metric.py,sha256=lEh6phLe8osZpD0gnfZ6esqbCZQ8DG1qhp2ygt63Wj4,2360
|
|
3540
3549
|
windmill_api/models/timeseries_metric_values_item.py,sha256=eyL1fDGwrnzV4XRrxtoeZTYHSnWUZrLJxLh_qysG9cE,1808
|
|
3541
3550
|
windmill_api/models/toggle_workspace_error_handler_for_flow_json_body.py,sha256=1vXElVe0Pg_HD3os014JuQk9m1Z-pXFcqZ34YmPN1zA,1690
|
|
@@ -3663,7 +3672,7 @@ windmill_api/models/workspace_invite.py,sha256=HnAJWGv5LwxWkz1T3fhgHKIccO7RFC1li
|
|
|
3663
3672
|
windmill_api/models/workspace_mute_critical_alerts_ui_json_body.py,sha256=y8ZwkWEZgavVc-FgLuZZ4z8YPCLxjPcMfdGdKjGM6VQ,1883
|
|
3664
3673
|
windmill_api/py.typed,sha256=8ZJUsxZiuOy1oJeVhsTWQhTG_6pTVHVXk5hJL79ebTk,25
|
|
3665
3674
|
windmill_api/types.py,sha256=GoYub3t4hQP2Yn5tsvShsBfIY3vHUmblU0MXszDx_V0,968
|
|
3666
|
-
windmill_api-1.
|
|
3667
|
-
windmill_api-1.
|
|
3668
|
-
windmill_api-1.
|
|
3669
|
-
windmill_api-1.
|
|
3675
|
+
windmill_api-1.452.0.dist-info/LICENSE,sha256=qJVFNTaOevCeSY6NoXeUG1SPOwQ1K-PxVQ2iEWJzX-A,11348
|
|
3676
|
+
windmill_api-1.452.0.dist-info/METADATA,sha256=5B-KUKmoufUfDQfq8hTLa8ayJAwDnR5urFJoGazqllo,5023
|
|
3677
|
+
windmill_api-1.452.0.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
|
|
3678
|
+
windmill_api-1.452.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|