windmill-api 1.458.4__py3-none-any.whl → 1.460.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of windmill-api might be problematic. Click here for more details.
- windmill_api/api/postgres_trigger/test_postgres_connection.py +105 -0
- windmill_api/models/capture_config_trigger_kind.py +1 -0
- windmill_api/models/capture_trigger_kind.py +1 -0
- windmill_api/models/get_capture_configs_response_200_item_trigger_kind.py +1 -0
- windmill_api/models/get_capture_response_200_trigger_kind.py +1 -0
- windmill_api/models/list_captures_response_200_item_trigger_kind.py +1 -0
- windmill_api/models/list_captures_trigger_kind.py +1 -0
- windmill_api/models/ping_capture_config_trigger_kind.py +1 -0
- windmill_api/models/set_capture_config_json_body_trigger_kind.py +1 -0
- windmill_api/models/test_postgres_connection_json_body.py +58 -0
- {windmill_api-1.458.4.dist-info → windmill_api-1.460.1.dist-info}/METADATA +1 -1
- {windmill_api-1.458.4.dist-info → windmill_api-1.460.1.dist-info}/RECORD +14 -12
- {windmill_api-1.458.4.dist-info → windmill_api-1.460.1.dist-info}/LICENSE +0 -0
- {windmill_api-1.458.4.dist-info → windmill_api-1.460.1.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_postgres_connection_json_body import TestPostgresConnectionJsonBody
|
|
9
|
+
from ...types import Response
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
def _get_kwargs(
|
|
13
|
+
workspace: str,
|
|
14
|
+
*,
|
|
15
|
+
json_body: TestPostgresConnectionJsonBody,
|
|
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}/postgres_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: TestPostgresConnectionJsonBody,
|
|
51
|
+
) -> Response[Any]:
|
|
52
|
+
"""test postgres connection
|
|
53
|
+
|
|
54
|
+
Args:
|
|
55
|
+
workspace (str):
|
|
56
|
+
json_body (TestPostgresConnectionJsonBody):
|
|
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: TestPostgresConnectionJsonBody,
|
|
83
|
+
) -> Response[Any]:
|
|
84
|
+
"""test postgres connection
|
|
85
|
+
|
|
86
|
+
Args:
|
|
87
|
+
workspace (str):
|
|
88
|
+
json_body (TestPostgresConnectionJsonBody):
|
|
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,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="TestPostgresConnectionJsonBody")
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@_attrs_define
|
|
10
|
+
class TestPostgresConnectionJsonBody:
|
|
11
|
+
"""
|
|
12
|
+
Attributes:
|
|
13
|
+
database (str):
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
database: str
|
|
17
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
18
|
+
|
|
19
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
20
|
+
database = self.database
|
|
21
|
+
|
|
22
|
+
field_dict: Dict[str, Any] = {}
|
|
23
|
+
field_dict.update(self.additional_properties)
|
|
24
|
+
field_dict.update(
|
|
25
|
+
{
|
|
26
|
+
"database": database,
|
|
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
|
+
database = d.pop("database")
|
|
36
|
+
|
|
37
|
+
test_postgres_connection_json_body = cls(
|
|
38
|
+
database=database,
|
|
39
|
+
)
|
|
40
|
+
|
|
41
|
+
test_postgres_connection_json_body.additional_properties = d
|
|
42
|
+
return test_postgres_connection_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
|
|
@@ -244,6 +244,7 @@ windmill_api/api/postgres_trigger/list_postgres_publication.py,sha256=GEyx3iFXf_
|
|
|
244
244
|
windmill_api/api/postgres_trigger/list_postgres_replication_slot.py,sha256=2jxqxlZTpw_B53XSGeGoLFWrSdx14XWObNRoxyeUKks,4659
|
|
245
245
|
windmill_api/api/postgres_trigger/list_postgres_triggers.py,sha256=T9EPYl3xjw_5rO8sC_ieAe_5SBGXu6IF66Y-PdED8g8,7094
|
|
246
246
|
windmill_api/api/postgres_trigger/set_postgres_trigger_enabled.py,sha256=HI6kCGPrzvVwjv_V-FLG2N46upSVBsaBS7w2pHpA2oo,2974
|
|
247
|
+
windmill_api/api/postgres_trigger/test_postgres_connection.py,sha256=rHh-ibf4mPRvBxnrLV5SH3Ly3UYY2DUjCFzOVsIQKr0,2785
|
|
247
248
|
windmill_api/api/postgres_trigger/update_postgres_publication.py,sha256=sG8FY3f0nEsMbJu96RGDw4ZAhA3a5Tp78LiDPiIuICA,3224
|
|
248
249
|
windmill_api/api/postgres_trigger/update_postgres_trigger.py,sha256=yFv2V22OSxlViQrp2rDgFNbdhnIEYko9LVW6141l0WU,2931
|
|
249
250
|
windmill_api/api/raw_app/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -575,8 +576,8 @@ windmill_api/models/cancel_queued_job_json_body.py,sha256=bEDGehOWMK5OxJ1FXH3KHM
|
|
|
575
576
|
windmill_api/models/cancel_suspended_job_post_json_body.py,sha256=IdId9-s4n5FrTr8KkeGLU_9NYzQynom1fp2mjRrbpTg,1317
|
|
576
577
|
windmill_api/models/capture.py,sha256=Q5W19-DTlKmoLnuMxbSz2FntZn7PuFzHtEz7gg86cKU,2555
|
|
577
578
|
windmill_api/models/capture_config.py,sha256=lHEBzVKhgmpQWMJhGMVS1-0V8iE5Fco3cWznbXPo1pQ,3043
|
|
578
|
-
windmill_api/models/capture_config_trigger_kind.py,sha256=
|
|
579
|
-
windmill_api/models/capture_trigger_kind.py,sha256=
|
|
579
|
+
windmill_api/models/capture_config_trigger_kind.py,sha256=T0tyH0vvN-SVQgnNKPT39wxHU-yAywrep25vnd4rUXA,283
|
|
580
|
+
windmill_api/models/capture_trigger_kind.py,sha256=_7TvAcpNAreZeinvTlV7sntsZf3N3YliZ1_TSz7hvI4,277
|
|
580
581
|
windmill_api/models/change_workspace_color_json_body.py,sha256=odjfU1ihXfsPh86JZ3wg2Xdw78QxwGMpv79wnAc_I4k,1609
|
|
581
582
|
windmill_api/models/change_workspace_id_json_body.py,sha256=1OmKBEAA_R2o75VlpWTjgxDXdP2SE6OJ1FDbGD_f_b8,1872
|
|
582
583
|
windmill_api/models/change_workspace_name_json_body.py,sha256=ByJQqO7uQfddlxSbuKE-C540auKYuWFbvapdIltcdBg,1637
|
|
@@ -1403,10 +1404,10 @@ windmill_api/models/get_audit_log_response_200_action_kind.py,sha256=vE6D2hckbbB
|
|
|
1403
1404
|
windmill_api/models/get_audit_log_response_200_operation.py,sha256=isQ_SuC2e1vG7PWJOb5wLIUyewxJXtnxIs3P6IJt3mg,3734
|
|
1404
1405
|
windmill_api/models/get_audit_log_response_200_parameters.py,sha256=0DpzZiiQe-WPK1f_uOg0m1bktbs1O9iJRn3WgGtIEEg,1327
|
|
1405
1406
|
windmill_api/models/get_capture_configs_response_200_item.py,sha256=Ru4nl77ejFHiheMVY_lQjTCieQeCiUEf0UHjjkSuMI4,3249
|
|
1406
|
-
windmill_api/models/get_capture_configs_response_200_item_trigger_kind.py,sha256=
|
|
1407
|
+
windmill_api/models/get_capture_configs_response_200_item_trigger_kind.py,sha256=FdFdTWP1Pe8YZ17RE8qkWBS8ag_YWVBDEz5S8V-82nI,302
|
|
1407
1408
|
windmill_api/models/get_capture_configs_runnable_kind.py,sha256=VWQCYIDQqajAHhcs3aZHMfZUA_SdkF_7aXvvDlhO4hc,174
|
|
1408
1409
|
windmill_api/models/get_capture_response_200.py,sha256=DqyjJjcmN8PnqXPTkUd2uI4MRZqqgBMTAOYaCRTJ99s,2707
|
|
1409
|
-
windmill_api/models/get_capture_response_200_trigger_kind.py,sha256=
|
|
1410
|
+
windmill_api/models/get_capture_response_200_trigger_kind.py,sha256=U7uQOAB_zGm6Z1PGLeHt3bzb8o7zOp_tO2ootWq-gaw,291
|
|
1410
1411
|
windmill_api/models/get_completed_count_response_200.py,sha256=cudwRJHt5jvqGetkTemW-1aOSR5ni5znOGrkvpSR9jE,1621
|
|
1411
1412
|
windmill_api/models/get_completed_job_response_200.py,sha256=uyMi1Fazr109Zf0_vLsGEsboLqOK0WdIYIoweTJV9mU,13188
|
|
1412
1413
|
windmill_api/models/get_completed_job_response_200_args.py,sha256=bQB1sy6V5vnJFgmQ9I08gmCNgWDZ1LGRlwPE1a9ROho,1317
|
|
@@ -2421,9 +2422,9 @@ windmill_api/models/list_audit_logs_response_200_item_operation.py,sha256=FNjCW4
|
|
|
2421
2422
|
windmill_api/models/list_audit_logs_response_200_item_parameters.py,sha256=q4xUQeAhgxiNi7k5T6HGkd3peGLpXr5E3-9d4JJr6nI,1360
|
|
2422
2423
|
windmill_api/models/list_autoscaling_events_response_200_item.py,sha256=cpgO8peKyXAJ7TVYMTKk7pJyw3RaUQBAIhMcP95edsw,3479
|
|
2423
2424
|
windmill_api/models/list_captures_response_200_item.py,sha256=tLcU9DlpJ33GUdvFF5G44zrl9vrZ3_IXBQPkgde1JxQ,2771
|
|
2424
|
-
windmill_api/models/list_captures_response_200_item_trigger_kind.py,sha256=
|
|
2425
|
+
windmill_api/models/list_captures_response_200_item_trigger_kind.py,sha256=2gpDDnA3RD-TAHwbUsUIxQobUDVsMHcecpMj8iYHQ1Q,297
|
|
2425
2426
|
windmill_api/models/list_captures_runnable_kind.py,sha256=aX97pn4XHRbUoGVoEcMmhoLiGGjnEZU0eryz4Tl4AWQ,169
|
|
2426
|
-
windmill_api/models/list_captures_trigger_kind.py,sha256=
|
|
2427
|
+
windmill_api/models/list_captures_trigger_kind.py,sha256=Y00Ke00DZXtf0mthymFIHUg6VCzLkNiOq5pVUEYRy-8,282
|
|
2427
2428
|
windmill_api/models/list_completed_jobs_response_200_item.py,sha256=B7iodyuaekwnjySL6aj-CdbGvNxoVPKuRFeevG5vKLw,13464
|
|
2428
2429
|
windmill_api/models/list_completed_jobs_response_200_item_args.py,sha256=1O3m2DE94Pq3UqYNwWhC2NADWpJ1sQ1HEqpsjQ5oWMg,1350
|
|
2429
2430
|
windmill_api/models/list_completed_jobs_response_200_item_flow_status.py,sha256=ufnL4lSiFIgBsT0t2yb1vzH1Qq8eiQzinWntrkKLko0,6054
|
|
@@ -3247,7 +3248,7 @@ windmill_api/models/path_script_input_transforms_additional_property_type_1.py,s
|
|
|
3247
3248
|
windmill_api/models/path_script_input_transforms_additional_property_type_1_type.py,sha256=goB7e3b3KCBSEKqrTkirB4h7Z5ZAf_rQcJSx9yNTzpo,187
|
|
3248
3249
|
windmill_api/models/path_script_type.py,sha256=n6M8w8cjoHi8TXJtc_XD6Fer9T-tZ8sKn9C9BAubBjE,141
|
|
3249
3250
|
windmill_api/models/ping_capture_config_runnable_kind.py,sha256=XSduTEyw0b0wTHoCnMizNr7QdDYvE7_FtqplWUZQwDY,174
|
|
3250
|
-
windmill_api/models/ping_capture_config_trigger_kind.py,sha256=
|
|
3251
|
+
windmill_api/models/ping_capture_config_trigger_kind.py,sha256=9_E7WfVTs-dfrogfHjV47DJSzNvtQcUTl4A_YSIl5n0,287
|
|
3251
3252
|
windmill_api/models/polars_client_kwargs.py,sha256=zZ2xtOwkLCqmMDhRVn4zq7s_1ibf3u8JQl1KUlf0Ycc,1525
|
|
3252
3253
|
windmill_api/models/polars_connection_settings_json_body.py,sha256=VGrlo9nTKVcP36SPkntFVW5GiZkyaTyWvKy7NgN7jSU,2435
|
|
3253
3254
|
windmill_api/models/polars_connection_settings_json_body_s3_resource.py,sha256=m2u9TrPjcXtLP4IIglJb0l5LaVEvNnlo4A_9DUWvECM,2948
|
|
@@ -3507,7 +3508,7 @@ windmill_api/models/search_logs_index_response_200_hits_item.py,sha256=BjRCX0Xwn
|
|
|
3507
3508
|
windmill_api/models/set_automatic_billing_json_body.py,sha256=p-SLFxZuSkXRwFJ1_vtoJZ2CMw-KWvzSllZmvZgYlIw,1917
|
|
3508
3509
|
windmill_api/models/set_capture_config_json_body.py,sha256=OgnTJ4_rX1KXtged1u8lOTR7k8by64E7bWJ_MwF_1v0,3189
|
|
3509
3510
|
windmill_api/models/set_capture_config_json_body_trigger_config.py,sha256=EBzG1O-XyQX9aQHo70lC-PYmVGIMl8STdfuFxkuw24A,1355
|
|
3510
|
-
windmill_api/models/set_capture_config_json_body_trigger_kind.py,sha256=
|
|
3511
|
+
windmill_api/models/set_capture_config_json_body_trigger_kind.py,sha256=TOK-LiX-pB8_RZCikPnuuqnmmO1G2jHz2LfjD1TOuiU,294
|
|
3511
3512
|
windmill_api/models/set_default_error_or_recovery_handler_json_body.py,sha256=ab0CokO7IvhG6P1EDb6xy9guK2hXUw2dI4NzOFMBr1o,4902
|
|
3512
3513
|
windmill_api/models/set_default_error_or_recovery_handler_json_body_extra_args.py,sha256=VPC3QYWtVHsHv1xf8gzBfRPocbCcVGD_3AoxAxScXZc,1424
|
|
3513
3514
|
windmill_api/models/set_default_error_or_recovery_handler_json_body_handler_type.py,sha256=TxD_LUDQT86ZI6-zsAHPwM2H0W5s1MqxUDHPB9aIreE,226
|
|
@@ -3548,6 +3549,7 @@ windmill_api/models/test_license_key_json_body.py,sha256=ztZyCZ2-4graejAx27M6NaI
|
|
|
3548
3549
|
windmill_api/models/test_nats_connection_json_body.py,sha256=OVLPyC-cr2Ta-Tv6nylS9BWOOhNPS-pmkS47fh_87CI,1935
|
|
3549
3550
|
windmill_api/models/test_nats_connection_json_body_connection.py,sha256=CLP-2I6UTgliGqI5MEiiZ8O1t8mEPuC7syzTrbWL_jA,1347
|
|
3550
3551
|
windmill_api/models/test_object_storage_config_json_body.py,sha256=8hs2BhGwf4zG2AueTdCileLEVqh8IPKL0cCof7RH9WQ,1322
|
|
3552
|
+
windmill_api/models/test_postgres_connection_json_body.py,sha256=dxOQiMVQ-tAb_o7om1sGdqwR_qSa_cXee2m-yeZ2HpE,1561
|
|
3551
3553
|
windmill_api/models/test_smtp_json_body.py,sha256=1EnU2xqXl2GQ3QmZ68cuyV08h1KxzKbw5aVYrCMZxgM,1830
|
|
3552
3554
|
windmill_api/models/test_smtp_json_body_smtp.py,sha256=8fDDqj9vT6-NGxbATM6SquS7tkzSItr5KdJ996BGL1g,2565
|
|
3553
3555
|
windmill_api/models/test_websocket_connection_json_body.py,sha256=k3PoNLbzo7W_amLFxp7BJJ8vjOTjNlK7Mhf9b4ygyBI,3065
|
|
@@ -3679,7 +3681,7 @@ windmill_api/models/workspace_invite.py,sha256=HnAJWGv5LwxWkz1T3fhgHKIccO7RFC1li
|
|
|
3679
3681
|
windmill_api/models/workspace_mute_critical_alerts_ui_json_body.py,sha256=y8ZwkWEZgavVc-FgLuZZ4z8YPCLxjPcMfdGdKjGM6VQ,1883
|
|
3680
3682
|
windmill_api/py.typed,sha256=8ZJUsxZiuOy1oJeVhsTWQhTG_6pTVHVXk5hJL79ebTk,25
|
|
3681
3683
|
windmill_api/types.py,sha256=GoYub3t4hQP2Yn5tsvShsBfIY3vHUmblU0MXszDx_V0,968
|
|
3682
|
-
windmill_api-1.
|
|
3683
|
-
windmill_api-1.
|
|
3684
|
-
windmill_api-1.
|
|
3685
|
-
windmill_api-1.
|
|
3684
|
+
windmill_api-1.460.1.dist-info/LICENSE,sha256=qJVFNTaOevCeSY6NoXeUG1SPOwQ1K-PxVQ2iEWJzX-A,11348
|
|
3685
|
+
windmill_api-1.460.1.dist-info/METADATA,sha256=oAVCzJ5LBwqQFyHH-EKU0WSneqOxlJoVdBdhin8jFYY,5023
|
|
3686
|
+
windmill_api-1.460.1.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
|
|
3687
|
+
windmill_api-1.460.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|