windmill-api 1.448.1__py3-none-any.whl → 1.449.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/__init__.py +0 -0
- windmill_api/api/postgres_trigger/create_postgres_publication.py +121 -0
- windmill_api/api/postgres_trigger/create_postgres_replication_slot.py +113 -0
- windmill_api/api/postgres_trigger/create_postgres_trigger.py +105 -0
- windmill_api/api/postgres_trigger/create_template_script.py +105 -0
- windmill_api/api/postgres_trigger/delete_postgres_publication.py +109 -0
- windmill_api/api/postgres_trigger/delete_postgres_replication_slot.py +113 -0
- windmill_api/api/postgres_trigger/delete_postgres_trigger.py +101 -0
- windmill_api/api/postgres_trigger/exists_postgres_trigger.py +160 -0
- windmill_api/api/postgres_trigger/get_postgres_publication.py +180 -0
- windmill_api/api/postgres_trigger/get_postgres_trigger.py +166 -0
- windmill_api/api/postgres_trigger/get_template_script.py +101 -0
- windmill_api/api/postgres_trigger/is_valid_postgres_configuration.py +160 -0
- windmill_api/api/postgres_trigger/list_postgres_publication.py +161 -0
- windmill_api/api/postgres_trigger/list_postgres_replication_slot.py +171 -0
- windmill_api/api/postgres_trigger/list_postgres_triggers.py +237 -0
- windmill_api/api/postgres_trigger/set_postgres_trigger_enabled.py +113 -0
- windmill_api/api/postgres_trigger/update_postgres_publication.py +121 -0
- windmill_api/api/postgres_trigger/update_postgres_trigger.py +113 -0
- windmill_api/api/teams/__init__.py +0 -0
- windmill_api/api/teams/sync_teams.py +131 -0
- windmill_api/api/workspace/update_operator_settings.py +109 -0
- windmill_api/models/add_granular_acls_kind.py +1 -0
- windmill_api/models/channel_info.py +80 -0
- windmill_api/models/create_postgres_publication_json_body.py +90 -0
- windmill_api/models/create_postgres_publication_json_body_table_to_track_item.py +86 -0
- windmill_api/models/create_postgres_publication_json_body_table_to_track_item_table_to_track_item.py +79 -0
- windmill_api/models/create_postgres_replication_slot_json_body.py +58 -0
- windmill_api/models/create_postgres_trigger_json_body.py +125 -0
- windmill_api/models/create_postgres_trigger_json_body_publication.py +92 -0
- windmill_api/models/create_postgres_trigger_json_body_publication_table_to_track_item.py +86 -0
- windmill_api/models/create_postgres_trigger_json_body_publication_table_to_track_item_table_to_track_item.py +79 -0
- windmill_api/models/create_template_script_json_body.py +90 -0
- windmill_api/models/create_template_script_json_body_language.py +8 -0
- windmill_api/models/create_template_script_json_body_relations_item.py +86 -0
- windmill_api/models/create_template_script_json_body_relations_item_table_to_track_item.py +79 -0
- windmill_api/models/delete_postgres_replication_slot_json_body.py +58 -0
- windmill_api/models/edit_postgres_trigger.py +123 -0
- windmill_api/models/edit_postgres_trigger_publication.py +90 -0
- windmill_api/models/edit_postgres_trigger_publication_table_to_track_item.py +86 -0
- windmill_api/models/edit_postgres_trigger_publication_table_to_track_item_table_to_track_item.py +79 -0
- windmill_api/models/get_granular_acls_kind.py +1 -0
- windmill_api/models/get_http_trigger_response_200.py +36 -36
- windmill_api/models/get_postgres_publication_response_200.py +90 -0
- windmill_api/models/get_postgres_publication_response_200_table_to_track_item.py +86 -0
- windmill_api/models/get_postgres_publication_response_200_table_to_track_item_table_to_track_item.py +79 -0
- windmill_api/models/get_postgres_trigger_response_200.py +178 -0
- windmill_api/models/get_postgres_trigger_response_200_extra_perms.py +44 -0
- windmill_api/models/get_settings_response_200.py +19 -0
- windmill_api/models/get_settings_response_200_operator_settings.py +114 -0
- windmill_api/models/get_triggers_count_of_flow_response_200.py +8 -0
- windmill_api/models/get_triggers_count_of_script_response_200.py +8 -0
- windmill_api/models/get_used_triggers_response_200.py +7 -0
- windmill_api/models/get_websocket_trigger_response_200.py +37 -37
- windmill_api/models/http_trigger.py +36 -36
- windmill_api/models/language.py +8 -0
- windmill_api/models/list_http_triggers_response_200_item.py +36 -36
- windmill_api/models/list_postgres_replication_slot_response_200_item.py +66 -0
- windmill_api/models/list_postgres_triggers_response_200_item.py +182 -0
- windmill_api/models/list_postgres_triggers_response_200_item_extra_perms.py +44 -0
- windmill_api/models/list_user_workspaces_response_200_workspaces_item.py +32 -1
- windmill_api/models/list_user_workspaces_response_200_workspaces_item_operator_settings.py +114 -0
- windmill_api/models/list_websocket_triggers_response_200_item.py +37 -37
- windmill_api/models/new_postgres_trigger.py +125 -0
- windmill_api/models/new_postgres_trigger_publication.py +90 -0
- windmill_api/models/new_postgres_trigger_publication_table_to_track_item.py +86 -0
- windmill_api/models/new_postgres_trigger_publication_table_to_track_item_table_to_track_item.py +79 -0
- windmill_api/models/operator_settings.py +114 -0
- windmill_api/models/postgres_trigger.py +178 -0
- windmill_api/models/postgres_trigger_extra_perms.py +44 -0
- windmill_api/models/publication_data.py +86 -0
- windmill_api/models/publication_data_table_to_track_item.py +84 -0
- windmill_api/models/publication_data_table_to_track_item_table_to_track_item.py +79 -0
- windmill_api/models/relations.py +80 -0
- windmill_api/models/relations_table_to_track_item.py +79 -0
- windmill_api/models/remove_granular_acls_kind.py +1 -0
- windmill_api/models/script_lang.py +25 -0
- windmill_api/models/set_postgres_trigger_enabled_json_body.py +58 -0
- windmill_api/models/slot.py +58 -0
- windmill_api/models/slot_list.py +66 -0
- windmill_api/models/sync_teams_response_200_item.py +87 -0
- windmill_api/models/sync_teams_response_200_item_channels_item.py +80 -0
- windmill_api/models/table_to_track_item.py +79 -0
- windmill_api/models/team_info.py +87 -0
- windmill_api/models/team_info_channels_item.py +80 -0
- windmill_api/models/template_script.py +90 -0
- windmill_api/models/template_script_language.py +8 -0
- windmill_api/models/template_script_relations_item.py +82 -0
- windmill_api/models/template_script_relations_item_table_to_track_item.py +79 -0
- windmill_api/models/trigger_extra_property.py +95 -0
- windmill_api/models/trigger_extra_property_extra_perms.py +44 -0
- windmill_api/models/triggers_count.py +8 -0
- windmill_api/models/update_operator_settings_json_body.py +114 -0
- windmill_api/models/update_postgres_publication_json_body.py +90 -0
- windmill_api/models/update_postgres_publication_json_body_table_to_track_item.py +86 -0
- windmill_api/models/update_postgres_publication_json_body_table_to_track_item_table_to_track_item.py +79 -0
- windmill_api/models/update_postgres_trigger_json_body.py +123 -0
- windmill_api/models/update_postgres_trigger_json_body_publication.py +92 -0
- windmill_api/models/update_postgres_trigger_json_body_publication_table_to_track_item.py +86 -0
- windmill_api/models/update_postgres_trigger_json_body_publication_table_to_track_item_table_to_track_item.py +79 -0
- windmill_api/models/user_workspace_list_workspaces_item.py +30 -1
- windmill_api/models/user_workspace_list_workspaces_item_operator_settings.py +114 -0
- windmill_api/models/websocket_trigger.py +37 -37
- {windmill_api-1.448.1.dist-info → windmill_api-1.449.1.dist-info}/METADATA +1 -1
- {windmill_api-1.448.1.dist-info → windmill_api-1.449.1.dist-info}/RECORD +107 -20
- {windmill_api-1.448.1.dist-info → windmill_api-1.449.1.dist-info}/LICENSE +0 -0
- {windmill_api-1.448.1.dist-info → windmill_api-1.449.1.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,86 @@
|
|
|
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.get_postgres_publication_response_200_table_to_track_item_table_to_track_item import (
|
|
8
|
+
GetPostgresPublicationResponse200TableToTrackItemTableToTrackItem,
|
|
9
|
+
)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
T = TypeVar("T", bound="GetPostgresPublicationResponse200TableToTrackItem")
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
@_attrs_define
|
|
16
|
+
class GetPostgresPublicationResponse200TableToTrackItem:
|
|
17
|
+
"""
|
|
18
|
+
Attributes:
|
|
19
|
+
schema_name (str):
|
|
20
|
+
table_to_track (List['GetPostgresPublicationResponse200TableToTrackItemTableToTrackItem']):
|
|
21
|
+
"""
|
|
22
|
+
|
|
23
|
+
schema_name: str
|
|
24
|
+
table_to_track: List["GetPostgresPublicationResponse200TableToTrackItemTableToTrackItem"]
|
|
25
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
26
|
+
|
|
27
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
28
|
+
schema_name = self.schema_name
|
|
29
|
+
table_to_track = []
|
|
30
|
+
for table_to_track_item_data in self.table_to_track:
|
|
31
|
+
table_to_track_item = table_to_track_item_data.to_dict()
|
|
32
|
+
|
|
33
|
+
table_to_track.append(table_to_track_item)
|
|
34
|
+
|
|
35
|
+
field_dict: Dict[str, Any] = {}
|
|
36
|
+
field_dict.update(self.additional_properties)
|
|
37
|
+
field_dict.update(
|
|
38
|
+
{
|
|
39
|
+
"schema_name": schema_name,
|
|
40
|
+
"table_to_track": table_to_track,
|
|
41
|
+
}
|
|
42
|
+
)
|
|
43
|
+
|
|
44
|
+
return field_dict
|
|
45
|
+
|
|
46
|
+
@classmethod
|
|
47
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
48
|
+
from ..models.get_postgres_publication_response_200_table_to_track_item_table_to_track_item import (
|
|
49
|
+
GetPostgresPublicationResponse200TableToTrackItemTableToTrackItem,
|
|
50
|
+
)
|
|
51
|
+
|
|
52
|
+
d = src_dict.copy()
|
|
53
|
+
schema_name = d.pop("schema_name")
|
|
54
|
+
|
|
55
|
+
table_to_track = []
|
|
56
|
+
_table_to_track = d.pop("table_to_track")
|
|
57
|
+
for table_to_track_item_data in _table_to_track:
|
|
58
|
+
table_to_track_item = GetPostgresPublicationResponse200TableToTrackItemTableToTrackItem.from_dict(
|
|
59
|
+
table_to_track_item_data
|
|
60
|
+
)
|
|
61
|
+
|
|
62
|
+
table_to_track.append(table_to_track_item)
|
|
63
|
+
|
|
64
|
+
get_postgres_publication_response_200_table_to_track_item = cls(
|
|
65
|
+
schema_name=schema_name,
|
|
66
|
+
table_to_track=table_to_track,
|
|
67
|
+
)
|
|
68
|
+
|
|
69
|
+
get_postgres_publication_response_200_table_to_track_item.additional_properties = d
|
|
70
|
+
return get_postgres_publication_response_200_table_to_track_item
|
|
71
|
+
|
|
72
|
+
@property
|
|
73
|
+
def additional_keys(self) -> List[str]:
|
|
74
|
+
return list(self.additional_properties.keys())
|
|
75
|
+
|
|
76
|
+
def __getitem__(self, key: str) -> Any:
|
|
77
|
+
return self.additional_properties[key]
|
|
78
|
+
|
|
79
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
80
|
+
self.additional_properties[key] = value
|
|
81
|
+
|
|
82
|
+
def __delitem__(self, key: str) -> None:
|
|
83
|
+
del self.additional_properties[key]
|
|
84
|
+
|
|
85
|
+
def __contains__(self, key: str) -> bool:
|
|
86
|
+
return key in self.additional_properties
|
windmill_api/models/get_postgres_publication_response_200_table_to_track_item_table_to_track_item.py
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
from typing import Any, Dict, List, Type, TypeVar, Union, cast
|
|
2
|
+
|
|
3
|
+
from attrs import define as _attrs_define
|
|
4
|
+
from attrs import field as _attrs_field
|
|
5
|
+
|
|
6
|
+
from ..types import UNSET, Unset
|
|
7
|
+
|
|
8
|
+
T = TypeVar("T", bound="GetPostgresPublicationResponse200TableToTrackItemTableToTrackItem")
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
@_attrs_define
|
|
12
|
+
class GetPostgresPublicationResponse200TableToTrackItemTableToTrackItem:
|
|
13
|
+
"""
|
|
14
|
+
Attributes:
|
|
15
|
+
table_name (str):
|
|
16
|
+
columns_name (Union[Unset, List[str]]):
|
|
17
|
+
where_clause (Union[Unset, str]):
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
table_name: str
|
|
21
|
+
columns_name: Union[Unset, List[str]] = UNSET
|
|
22
|
+
where_clause: Union[Unset, str] = UNSET
|
|
23
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
24
|
+
|
|
25
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
26
|
+
table_name = self.table_name
|
|
27
|
+
columns_name: Union[Unset, List[str]] = UNSET
|
|
28
|
+
if not isinstance(self.columns_name, Unset):
|
|
29
|
+
columns_name = self.columns_name
|
|
30
|
+
|
|
31
|
+
where_clause = self.where_clause
|
|
32
|
+
|
|
33
|
+
field_dict: Dict[str, Any] = {}
|
|
34
|
+
field_dict.update(self.additional_properties)
|
|
35
|
+
field_dict.update(
|
|
36
|
+
{
|
|
37
|
+
"table_name": table_name,
|
|
38
|
+
}
|
|
39
|
+
)
|
|
40
|
+
if columns_name is not UNSET:
|
|
41
|
+
field_dict["columns_name"] = columns_name
|
|
42
|
+
if where_clause is not UNSET:
|
|
43
|
+
field_dict["where_clause"] = where_clause
|
|
44
|
+
|
|
45
|
+
return field_dict
|
|
46
|
+
|
|
47
|
+
@classmethod
|
|
48
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
49
|
+
d = src_dict.copy()
|
|
50
|
+
table_name = d.pop("table_name")
|
|
51
|
+
|
|
52
|
+
columns_name = cast(List[str], d.pop("columns_name", UNSET))
|
|
53
|
+
|
|
54
|
+
where_clause = d.pop("where_clause", UNSET)
|
|
55
|
+
|
|
56
|
+
get_postgres_publication_response_200_table_to_track_item_table_to_track_item = cls(
|
|
57
|
+
table_name=table_name,
|
|
58
|
+
columns_name=columns_name,
|
|
59
|
+
where_clause=where_clause,
|
|
60
|
+
)
|
|
61
|
+
|
|
62
|
+
get_postgres_publication_response_200_table_to_track_item_table_to_track_item.additional_properties = d
|
|
63
|
+
return get_postgres_publication_response_200_table_to_track_item_table_to_track_item
|
|
64
|
+
|
|
65
|
+
@property
|
|
66
|
+
def additional_keys(self) -> List[str]:
|
|
67
|
+
return list(self.additional_properties.keys())
|
|
68
|
+
|
|
69
|
+
def __getitem__(self, key: str) -> Any:
|
|
70
|
+
return self.additional_properties[key]
|
|
71
|
+
|
|
72
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
73
|
+
self.additional_properties[key] = value
|
|
74
|
+
|
|
75
|
+
def __delitem__(self, key: str) -> None:
|
|
76
|
+
del self.additional_properties[key]
|
|
77
|
+
|
|
78
|
+
def __contains__(self, key: str) -> bool:
|
|
79
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import datetime
|
|
2
|
+
from typing import TYPE_CHECKING, 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
|
+
if TYPE_CHECKING:
|
|
11
|
+
from ..models.get_postgres_trigger_response_200_extra_perms import GetPostgresTriggerResponse200ExtraPerms
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
T = TypeVar("T", bound="GetPostgresTriggerResponse200")
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
@_attrs_define
|
|
18
|
+
class GetPostgresTriggerResponse200:
|
|
19
|
+
"""
|
|
20
|
+
Attributes:
|
|
21
|
+
path (str):
|
|
22
|
+
script_path (str):
|
|
23
|
+
is_flow (bool):
|
|
24
|
+
enabled (bool):
|
|
25
|
+
postgres_resource_path (str):
|
|
26
|
+
publication_name (str):
|
|
27
|
+
replication_slot_name (str):
|
|
28
|
+
email (str):
|
|
29
|
+
extra_perms (GetPostgresTriggerResponse200ExtraPerms):
|
|
30
|
+
workspace_id (str):
|
|
31
|
+
edited_by (str):
|
|
32
|
+
edited_at (datetime.datetime):
|
|
33
|
+
server_id (Union[Unset, str]):
|
|
34
|
+
error (Union[Unset, str]):
|
|
35
|
+
last_server_ping (Union[Unset, datetime.datetime]):
|
|
36
|
+
"""
|
|
37
|
+
|
|
38
|
+
path: str
|
|
39
|
+
script_path: str
|
|
40
|
+
is_flow: bool
|
|
41
|
+
enabled: bool
|
|
42
|
+
postgres_resource_path: str
|
|
43
|
+
publication_name: str
|
|
44
|
+
replication_slot_name: str
|
|
45
|
+
email: str
|
|
46
|
+
extra_perms: "GetPostgresTriggerResponse200ExtraPerms"
|
|
47
|
+
workspace_id: str
|
|
48
|
+
edited_by: str
|
|
49
|
+
edited_at: datetime.datetime
|
|
50
|
+
server_id: Union[Unset, str] = UNSET
|
|
51
|
+
error: Union[Unset, str] = UNSET
|
|
52
|
+
last_server_ping: Union[Unset, datetime.datetime] = UNSET
|
|
53
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
54
|
+
|
|
55
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
56
|
+
path = self.path
|
|
57
|
+
script_path = self.script_path
|
|
58
|
+
is_flow = self.is_flow
|
|
59
|
+
enabled = self.enabled
|
|
60
|
+
postgres_resource_path = self.postgres_resource_path
|
|
61
|
+
publication_name = self.publication_name
|
|
62
|
+
replication_slot_name = self.replication_slot_name
|
|
63
|
+
email = self.email
|
|
64
|
+
extra_perms = self.extra_perms.to_dict()
|
|
65
|
+
|
|
66
|
+
workspace_id = self.workspace_id
|
|
67
|
+
edited_by = self.edited_by
|
|
68
|
+
edited_at = self.edited_at.isoformat()
|
|
69
|
+
|
|
70
|
+
server_id = self.server_id
|
|
71
|
+
error = self.error
|
|
72
|
+
last_server_ping: Union[Unset, str] = UNSET
|
|
73
|
+
if not isinstance(self.last_server_ping, Unset):
|
|
74
|
+
last_server_ping = self.last_server_ping.isoformat()
|
|
75
|
+
|
|
76
|
+
field_dict: Dict[str, Any] = {}
|
|
77
|
+
field_dict.update(self.additional_properties)
|
|
78
|
+
field_dict.update(
|
|
79
|
+
{
|
|
80
|
+
"path": path,
|
|
81
|
+
"script_path": script_path,
|
|
82
|
+
"is_flow": is_flow,
|
|
83
|
+
"enabled": enabled,
|
|
84
|
+
"postgres_resource_path": postgres_resource_path,
|
|
85
|
+
"publication_name": publication_name,
|
|
86
|
+
"replication_slot_name": replication_slot_name,
|
|
87
|
+
"email": email,
|
|
88
|
+
"extra_perms": extra_perms,
|
|
89
|
+
"workspace_id": workspace_id,
|
|
90
|
+
"edited_by": edited_by,
|
|
91
|
+
"edited_at": edited_at,
|
|
92
|
+
}
|
|
93
|
+
)
|
|
94
|
+
if server_id is not UNSET:
|
|
95
|
+
field_dict["server_id"] = server_id
|
|
96
|
+
if error is not UNSET:
|
|
97
|
+
field_dict["error"] = error
|
|
98
|
+
if last_server_ping is not UNSET:
|
|
99
|
+
field_dict["last_server_ping"] = last_server_ping
|
|
100
|
+
|
|
101
|
+
return field_dict
|
|
102
|
+
|
|
103
|
+
@classmethod
|
|
104
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
105
|
+
from ..models.get_postgres_trigger_response_200_extra_perms import GetPostgresTriggerResponse200ExtraPerms
|
|
106
|
+
|
|
107
|
+
d = src_dict.copy()
|
|
108
|
+
path = d.pop("path")
|
|
109
|
+
|
|
110
|
+
script_path = d.pop("script_path")
|
|
111
|
+
|
|
112
|
+
is_flow = d.pop("is_flow")
|
|
113
|
+
|
|
114
|
+
enabled = d.pop("enabled")
|
|
115
|
+
|
|
116
|
+
postgres_resource_path = d.pop("postgres_resource_path")
|
|
117
|
+
|
|
118
|
+
publication_name = d.pop("publication_name")
|
|
119
|
+
|
|
120
|
+
replication_slot_name = d.pop("replication_slot_name")
|
|
121
|
+
|
|
122
|
+
email = d.pop("email")
|
|
123
|
+
|
|
124
|
+
extra_perms = GetPostgresTriggerResponse200ExtraPerms.from_dict(d.pop("extra_perms"))
|
|
125
|
+
|
|
126
|
+
workspace_id = d.pop("workspace_id")
|
|
127
|
+
|
|
128
|
+
edited_by = d.pop("edited_by")
|
|
129
|
+
|
|
130
|
+
edited_at = isoparse(d.pop("edited_at"))
|
|
131
|
+
|
|
132
|
+
server_id = d.pop("server_id", UNSET)
|
|
133
|
+
|
|
134
|
+
error = d.pop("error", UNSET)
|
|
135
|
+
|
|
136
|
+
_last_server_ping = d.pop("last_server_ping", UNSET)
|
|
137
|
+
last_server_ping: Union[Unset, datetime.datetime]
|
|
138
|
+
if isinstance(_last_server_ping, Unset):
|
|
139
|
+
last_server_ping = UNSET
|
|
140
|
+
else:
|
|
141
|
+
last_server_ping = isoparse(_last_server_ping)
|
|
142
|
+
|
|
143
|
+
get_postgres_trigger_response_200 = cls(
|
|
144
|
+
path=path,
|
|
145
|
+
script_path=script_path,
|
|
146
|
+
is_flow=is_flow,
|
|
147
|
+
enabled=enabled,
|
|
148
|
+
postgres_resource_path=postgres_resource_path,
|
|
149
|
+
publication_name=publication_name,
|
|
150
|
+
replication_slot_name=replication_slot_name,
|
|
151
|
+
email=email,
|
|
152
|
+
extra_perms=extra_perms,
|
|
153
|
+
workspace_id=workspace_id,
|
|
154
|
+
edited_by=edited_by,
|
|
155
|
+
edited_at=edited_at,
|
|
156
|
+
server_id=server_id,
|
|
157
|
+
error=error,
|
|
158
|
+
last_server_ping=last_server_ping,
|
|
159
|
+
)
|
|
160
|
+
|
|
161
|
+
get_postgres_trigger_response_200.additional_properties = d
|
|
162
|
+
return get_postgres_trigger_response_200
|
|
163
|
+
|
|
164
|
+
@property
|
|
165
|
+
def additional_keys(self) -> List[str]:
|
|
166
|
+
return list(self.additional_properties.keys())
|
|
167
|
+
|
|
168
|
+
def __getitem__(self, key: str) -> Any:
|
|
169
|
+
return self.additional_properties[key]
|
|
170
|
+
|
|
171
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
172
|
+
self.additional_properties[key] = value
|
|
173
|
+
|
|
174
|
+
def __delitem__(self, key: str) -> None:
|
|
175
|
+
del self.additional_properties[key]
|
|
176
|
+
|
|
177
|
+
def __contains__(self, key: str) -> bool:
|
|
178
|
+
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="GetPostgresTriggerResponse200ExtraPerms")
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@_attrs_define
|
|
10
|
+
class GetPostgresTriggerResponse200ExtraPerms:
|
|
11
|
+
""" """
|
|
12
|
+
|
|
13
|
+
additional_properties: Dict[str, bool] = _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
|
+
get_postgres_trigger_response_200_extra_perms = cls()
|
|
26
|
+
|
|
27
|
+
get_postgres_trigger_response_200_extra_perms.additional_properties = d
|
|
28
|
+
return get_postgres_trigger_response_200_extra_perms
|
|
29
|
+
|
|
30
|
+
@property
|
|
31
|
+
def additional_keys(self) -> List[str]:
|
|
32
|
+
return list(self.additional_properties.keys())
|
|
33
|
+
|
|
34
|
+
def __getitem__(self, key: str) -> bool:
|
|
35
|
+
return self.additional_properties[key]
|
|
36
|
+
|
|
37
|
+
def __setitem__(self, key: str, value: bool) -> 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
|
|
@@ -12,6 +12,7 @@ if TYPE_CHECKING:
|
|
|
12
12
|
from ..models.get_settings_response_200_error_handler_extra_args import GetSettingsResponse200ErrorHandlerExtraArgs
|
|
13
13
|
from ..models.get_settings_response_200_git_sync import GetSettingsResponse200GitSync
|
|
14
14
|
from ..models.get_settings_response_200_large_file_storage import GetSettingsResponse200LargeFileStorage
|
|
15
|
+
from ..models.get_settings_response_200_operator_settings import GetSettingsResponse200OperatorSettings
|
|
15
16
|
|
|
16
17
|
|
|
17
18
|
T = TypeVar("T", bound="GetSettingsResponse200")
|
|
@@ -45,6 +46,7 @@ class GetSettingsResponse200:
|
|
|
45
46
|
default_scripts (Union[Unset, GetSettingsResponse200DefaultScripts]):
|
|
46
47
|
mute_critical_alerts (Union[Unset, bool]):
|
|
47
48
|
color (Union[Unset, str]):
|
|
49
|
+
operator_settings (Union[Unset, None, GetSettingsResponse200OperatorSettings]):
|
|
48
50
|
"""
|
|
49
51
|
|
|
50
52
|
automatic_billing: bool
|
|
@@ -71,6 +73,7 @@ class GetSettingsResponse200:
|
|
|
71
73
|
default_scripts: Union[Unset, "GetSettingsResponse200DefaultScripts"] = UNSET
|
|
72
74
|
mute_critical_alerts: Union[Unset, bool] = UNSET
|
|
73
75
|
color: Union[Unset, str] = UNSET
|
|
76
|
+
operator_settings: Union[Unset, None, "GetSettingsResponse200OperatorSettings"] = UNSET
|
|
74
77
|
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
75
78
|
|
|
76
79
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -116,6 +119,9 @@ class GetSettingsResponse200:
|
|
|
116
119
|
|
|
117
120
|
mute_critical_alerts = self.mute_critical_alerts
|
|
118
121
|
color = self.color
|
|
122
|
+
operator_settings: Union[Unset, None, Dict[str, Any]] = UNSET
|
|
123
|
+
if not isinstance(self.operator_settings, Unset):
|
|
124
|
+
operator_settings = self.operator_settings.to_dict() if self.operator_settings else None
|
|
119
125
|
|
|
120
126
|
field_dict: Dict[str, Any] = {}
|
|
121
127
|
field_dict.update(self.additional_properties)
|
|
@@ -168,6 +174,8 @@ class GetSettingsResponse200:
|
|
|
168
174
|
field_dict["mute_critical_alerts"] = mute_critical_alerts
|
|
169
175
|
if color is not UNSET:
|
|
170
176
|
field_dict["color"] = color
|
|
177
|
+
if operator_settings is not UNSET:
|
|
178
|
+
field_dict["operator_settings"] = operator_settings
|
|
171
179
|
|
|
172
180
|
return field_dict
|
|
173
181
|
|
|
@@ -181,6 +189,7 @@ class GetSettingsResponse200:
|
|
|
181
189
|
)
|
|
182
190
|
from ..models.get_settings_response_200_git_sync import GetSettingsResponse200GitSync
|
|
183
191
|
from ..models.get_settings_response_200_large_file_storage import GetSettingsResponse200LargeFileStorage
|
|
192
|
+
from ..models.get_settings_response_200_operator_settings import GetSettingsResponse200OperatorSettings
|
|
184
193
|
|
|
185
194
|
d = src_dict.copy()
|
|
186
195
|
automatic_billing = d.pop("automatic_billing")
|
|
@@ -261,6 +270,15 @@ class GetSettingsResponse200:
|
|
|
261
270
|
|
|
262
271
|
color = d.pop("color", UNSET)
|
|
263
272
|
|
|
273
|
+
_operator_settings = d.pop("operator_settings", UNSET)
|
|
274
|
+
operator_settings: Union[Unset, None, GetSettingsResponse200OperatorSettings]
|
|
275
|
+
if _operator_settings is None:
|
|
276
|
+
operator_settings = None
|
|
277
|
+
elif isinstance(_operator_settings, Unset):
|
|
278
|
+
operator_settings = UNSET
|
|
279
|
+
else:
|
|
280
|
+
operator_settings = GetSettingsResponse200OperatorSettings.from_dict(_operator_settings)
|
|
281
|
+
|
|
264
282
|
get_settings_response_200 = cls(
|
|
265
283
|
automatic_billing=automatic_billing,
|
|
266
284
|
code_completion_enabled=code_completion_enabled,
|
|
@@ -286,6 +304,7 @@ class GetSettingsResponse200:
|
|
|
286
304
|
default_scripts=default_scripts,
|
|
287
305
|
mute_critical_alerts=mute_critical_alerts,
|
|
288
306
|
color=color,
|
|
307
|
+
operator_settings=operator_settings,
|
|
289
308
|
)
|
|
290
309
|
|
|
291
310
|
get_settings_response_200.additional_properties = d
|
|
@@ -0,0 +1,114 @@
|
|
|
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="GetSettingsResponse200OperatorSettings")
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@_attrs_define
|
|
10
|
+
class GetSettingsResponse200OperatorSettings:
|
|
11
|
+
"""
|
|
12
|
+
Attributes:
|
|
13
|
+
runs (bool): Whether operators can view runs
|
|
14
|
+
schedules (bool): Whether operators can view schedules
|
|
15
|
+
resources (bool): Whether operators can view resources
|
|
16
|
+
variables (bool): Whether operators can view variables
|
|
17
|
+
audit_logs (bool): Whether operators can view audit logs
|
|
18
|
+
triggers (bool): Whether operators can view triggers
|
|
19
|
+
groups (bool): Whether operators can view groups page
|
|
20
|
+
folders (bool): Whether operators can view folders page
|
|
21
|
+
workers (bool): Whether operators can view workers page
|
|
22
|
+
"""
|
|
23
|
+
|
|
24
|
+
runs: bool
|
|
25
|
+
schedules: bool
|
|
26
|
+
resources: bool
|
|
27
|
+
variables: bool
|
|
28
|
+
audit_logs: bool
|
|
29
|
+
triggers: bool
|
|
30
|
+
groups: bool
|
|
31
|
+
folders: bool
|
|
32
|
+
workers: bool
|
|
33
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
34
|
+
|
|
35
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
36
|
+
runs = self.runs
|
|
37
|
+
schedules = self.schedules
|
|
38
|
+
resources = self.resources
|
|
39
|
+
variables = self.variables
|
|
40
|
+
audit_logs = self.audit_logs
|
|
41
|
+
triggers = self.triggers
|
|
42
|
+
groups = self.groups
|
|
43
|
+
folders = self.folders
|
|
44
|
+
workers = self.workers
|
|
45
|
+
|
|
46
|
+
field_dict: Dict[str, Any] = {}
|
|
47
|
+
field_dict.update(self.additional_properties)
|
|
48
|
+
field_dict.update(
|
|
49
|
+
{
|
|
50
|
+
"runs": runs,
|
|
51
|
+
"schedules": schedules,
|
|
52
|
+
"resources": resources,
|
|
53
|
+
"variables": variables,
|
|
54
|
+
"audit_logs": audit_logs,
|
|
55
|
+
"triggers": triggers,
|
|
56
|
+
"groups": groups,
|
|
57
|
+
"folders": folders,
|
|
58
|
+
"workers": workers,
|
|
59
|
+
}
|
|
60
|
+
)
|
|
61
|
+
|
|
62
|
+
return field_dict
|
|
63
|
+
|
|
64
|
+
@classmethod
|
|
65
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
66
|
+
d = src_dict.copy()
|
|
67
|
+
runs = d.pop("runs")
|
|
68
|
+
|
|
69
|
+
schedules = d.pop("schedules")
|
|
70
|
+
|
|
71
|
+
resources = d.pop("resources")
|
|
72
|
+
|
|
73
|
+
variables = d.pop("variables")
|
|
74
|
+
|
|
75
|
+
audit_logs = d.pop("audit_logs")
|
|
76
|
+
|
|
77
|
+
triggers = d.pop("triggers")
|
|
78
|
+
|
|
79
|
+
groups = d.pop("groups")
|
|
80
|
+
|
|
81
|
+
folders = d.pop("folders")
|
|
82
|
+
|
|
83
|
+
workers = d.pop("workers")
|
|
84
|
+
|
|
85
|
+
get_settings_response_200_operator_settings = cls(
|
|
86
|
+
runs=runs,
|
|
87
|
+
schedules=schedules,
|
|
88
|
+
resources=resources,
|
|
89
|
+
variables=variables,
|
|
90
|
+
audit_logs=audit_logs,
|
|
91
|
+
triggers=triggers,
|
|
92
|
+
groups=groups,
|
|
93
|
+
folders=folders,
|
|
94
|
+
workers=workers,
|
|
95
|
+
)
|
|
96
|
+
|
|
97
|
+
get_settings_response_200_operator_settings.additional_properties = d
|
|
98
|
+
return get_settings_response_200_operator_settings
|
|
99
|
+
|
|
100
|
+
@property
|
|
101
|
+
def additional_keys(self) -> List[str]:
|
|
102
|
+
return list(self.additional_properties.keys())
|
|
103
|
+
|
|
104
|
+
def __getitem__(self, key: str) -> Any:
|
|
105
|
+
return self.additional_properties[key]
|
|
106
|
+
|
|
107
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
108
|
+
self.additional_properties[key] = value
|
|
109
|
+
|
|
110
|
+
def __delitem__(self, key: str) -> None:
|
|
111
|
+
del self.additional_properties[key]
|
|
112
|
+
|
|
113
|
+
def __contains__(self, key: str) -> bool:
|
|
114
|
+
return key in self.additional_properties
|
|
@@ -24,6 +24,7 @@ class GetTriggersCountOfFlowResponse200:
|
|
|
24
24
|
webhook_count (Union[Unset, float]):
|
|
25
25
|
email_count (Union[Unset, float]):
|
|
26
26
|
websocket_count (Union[Unset, float]):
|
|
27
|
+
postgres_count (Union[Unset, float]):
|
|
27
28
|
kafka_count (Union[Unset, float]):
|
|
28
29
|
nats_count (Union[Unset, float]):
|
|
29
30
|
"""
|
|
@@ -34,6 +35,7 @@ class GetTriggersCountOfFlowResponse200:
|
|
|
34
35
|
webhook_count: Union[Unset, float] = UNSET
|
|
35
36
|
email_count: Union[Unset, float] = UNSET
|
|
36
37
|
websocket_count: Union[Unset, float] = UNSET
|
|
38
|
+
postgres_count: Union[Unset, float] = UNSET
|
|
37
39
|
kafka_count: Union[Unset, float] = UNSET
|
|
38
40
|
nats_count: Union[Unset, float] = UNSET
|
|
39
41
|
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
@@ -48,6 +50,7 @@ class GetTriggersCountOfFlowResponse200:
|
|
|
48
50
|
webhook_count = self.webhook_count
|
|
49
51
|
email_count = self.email_count
|
|
50
52
|
websocket_count = self.websocket_count
|
|
53
|
+
postgres_count = self.postgres_count
|
|
51
54
|
kafka_count = self.kafka_count
|
|
52
55
|
nats_count = self.nats_count
|
|
53
56
|
|
|
@@ -66,6 +69,8 @@ class GetTriggersCountOfFlowResponse200:
|
|
|
66
69
|
field_dict["email_count"] = email_count
|
|
67
70
|
if websocket_count is not UNSET:
|
|
68
71
|
field_dict["websocket_count"] = websocket_count
|
|
72
|
+
if postgres_count is not UNSET:
|
|
73
|
+
field_dict["postgres_count"] = postgres_count
|
|
69
74
|
if kafka_count is not UNSET:
|
|
70
75
|
field_dict["kafka_count"] = kafka_count
|
|
71
76
|
if nats_count is not UNSET:
|
|
@@ -97,6 +102,8 @@ class GetTriggersCountOfFlowResponse200:
|
|
|
97
102
|
|
|
98
103
|
websocket_count = d.pop("websocket_count", UNSET)
|
|
99
104
|
|
|
105
|
+
postgres_count = d.pop("postgres_count", UNSET)
|
|
106
|
+
|
|
100
107
|
kafka_count = d.pop("kafka_count", UNSET)
|
|
101
108
|
|
|
102
109
|
nats_count = d.pop("nats_count", UNSET)
|
|
@@ -108,6 +115,7 @@ class GetTriggersCountOfFlowResponse200:
|
|
|
108
115
|
webhook_count=webhook_count,
|
|
109
116
|
email_count=email_count,
|
|
110
117
|
websocket_count=websocket_count,
|
|
118
|
+
postgres_count=postgres_count,
|
|
111
119
|
kafka_count=kafka_count,
|
|
112
120
|
nats_count=nats_count,
|
|
113
121
|
)
|
|
@@ -24,6 +24,7 @@ class GetTriggersCountOfScriptResponse200:
|
|
|
24
24
|
webhook_count (Union[Unset, float]):
|
|
25
25
|
email_count (Union[Unset, float]):
|
|
26
26
|
websocket_count (Union[Unset, float]):
|
|
27
|
+
postgres_count (Union[Unset, float]):
|
|
27
28
|
kafka_count (Union[Unset, float]):
|
|
28
29
|
nats_count (Union[Unset, float]):
|
|
29
30
|
"""
|
|
@@ -34,6 +35,7 @@ class GetTriggersCountOfScriptResponse200:
|
|
|
34
35
|
webhook_count: Union[Unset, float] = UNSET
|
|
35
36
|
email_count: Union[Unset, float] = UNSET
|
|
36
37
|
websocket_count: Union[Unset, float] = UNSET
|
|
38
|
+
postgres_count: Union[Unset, float] = UNSET
|
|
37
39
|
kafka_count: Union[Unset, float] = UNSET
|
|
38
40
|
nats_count: Union[Unset, float] = UNSET
|
|
39
41
|
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
@@ -48,6 +50,7 @@ class GetTriggersCountOfScriptResponse200:
|
|
|
48
50
|
webhook_count = self.webhook_count
|
|
49
51
|
email_count = self.email_count
|
|
50
52
|
websocket_count = self.websocket_count
|
|
53
|
+
postgres_count = self.postgres_count
|
|
51
54
|
kafka_count = self.kafka_count
|
|
52
55
|
nats_count = self.nats_count
|
|
53
56
|
|
|
@@ -66,6 +69,8 @@ class GetTriggersCountOfScriptResponse200:
|
|
|
66
69
|
field_dict["email_count"] = email_count
|
|
67
70
|
if websocket_count is not UNSET:
|
|
68
71
|
field_dict["websocket_count"] = websocket_count
|
|
72
|
+
if postgres_count is not UNSET:
|
|
73
|
+
field_dict["postgres_count"] = postgres_count
|
|
69
74
|
if kafka_count is not UNSET:
|
|
70
75
|
field_dict["kafka_count"] = kafka_count
|
|
71
76
|
if nats_count is not UNSET:
|
|
@@ -97,6 +102,8 @@ class GetTriggersCountOfScriptResponse200:
|
|
|
97
102
|
|
|
98
103
|
websocket_count = d.pop("websocket_count", UNSET)
|
|
99
104
|
|
|
105
|
+
postgres_count = d.pop("postgres_count", UNSET)
|
|
106
|
+
|
|
100
107
|
kafka_count = d.pop("kafka_count", UNSET)
|
|
101
108
|
|
|
102
109
|
nats_count = d.pop("nats_count", UNSET)
|
|
@@ -108,6 +115,7 @@ class GetTriggersCountOfScriptResponse200:
|
|
|
108
115
|
webhook_count=webhook_count,
|
|
109
116
|
email_count=email_count,
|
|
110
117
|
websocket_count=websocket_count,
|
|
118
|
+
postgres_count=postgres_count,
|
|
111
119
|
kafka_count=kafka_count,
|
|
112
120
|
nats_count=nats_count,
|
|
113
121
|
)
|