windmill-api 1.464.0__py3-none-any.whl → 1.465.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/sqs_trigger/__init__.py +0 -0
- windmill_api/api/sqs_trigger/create_sqs_trigger.py +105 -0
- windmill_api/api/sqs_trigger/delete_sqs_trigger.py +101 -0
- windmill_api/api/sqs_trigger/exists_sqs_trigger.py +160 -0
- windmill_api/api/sqs_trigger/get_sqs_trigger.py +166 -0
- windmill_api/api/sqs_trigger/list_sqs_triggers.py +237 -0
- windmill_api/api/sqs_trigger/set_sqs_trigger_enabled.py +113 -0
- windmill_api/api/sqs_trigger/test_sqs_connection.py +105 -0
- windmill_api/api/sqs_trigger/update_sqs_trigger.py +113 -0
- windmill_api/models/add_granular_acls_kind.py +1 -0
- windmill_api/models/capture_config_trigger_kind.py +1 -0
- windmill_api/models/capture_trigger_kind.py +1 -0
- windmill_api/models/create_sqs_trigger_json_body.py +107 -0
- windmill_api/models/edit_sqs_trigger.py +105 -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/get_granular_acls_kind.py +1 -0
- windmill_api/models/get_http_trigger_response_200.py +21 -21
- windmill_api/models/get_kafka_trigger_response_200.py +47 -47
- windmill_api/models/get_nats_trigger_response_200.py +47 -47
- windmill_api/models/get_postgres_trigger_response_200.py +21 -21
- windmill_api/models/get_sqs_trigger_response_200.py +183 -0
- windmill_api/models/get_sqs_trigger_response_200_extra_perms.py +44 -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 +21 -21
- windmill_api/models/http_trigger.py +21 -21
- windmill_api/models/kafka_trigger.py +47 -47
- 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/list_http_triggers_response_200_item.py +21 -21
- windmill_api/models/list_kafka_triggers_response_200_item.py +47 -47
- windmill_api/models/list_nats_triggers_response_200_item.py +47 -47
- windmill_api/models/list_postgres_triggers_response_200_item.py +21 -21
- windmill_api/models/list_sqs_triggers_response_200_item.py +183 -0
- windmill_api/models/list_sqs_triggers_response_200_item_extra_perms.py +44 -0
- windmill_api/models/list_websocket_triggers_response_200_item.py +21 -21
- windmill_api/models/nats_trigger.py +47 -47
- windmill_api/models/new_sqs_trigger.py +107 -0
- windmill_api/models/ping_capture_config_trigger_kind.py +1 -0
- windmill_api/models/postgres_trigger.py +21 -21
- windmill_api/models/remove_granular_acls_kind.py +1 -0
- windmill_api/models/set_capture_config_json_body_trigger_kind.py +1 -0
- windmill_api/models/set_sqs_trigger_enabled_json_body.py +58 -0
- windmill_api/models/sqs_trigger.py +183 -0
- windmill_api/models/sqs_trigger_extra_perms.py +44 -0
- windmill_api/models/test_sqs_connection_json_body.py +64 -0
- windmill_api/models/test_sqs_connection_json_body_connection.py +44 -0
- windmill_api/models/trigger_extra_property.py +22 -0
- windmill_api/models/triggers_count.py +8 -0
- windmill_api/models/update_sqs_trigger_json_body.py +105 -0
- windmill_api/models/websocket_trigger.py +21 -21
- {windmill_api-1.464.0.dist-info → windmill_api-1.465.0.dist-info}/METADATA +1 -1
- {windmill_api-1.464.0.dist-info → windmill_api-1.465.0.dist-info}/RECORD +57 -35
- {windmill_api-1.464.0.dist-info → windmill_api-1.465.0.dist-info}/LICENSE +0 -0
- {windmill_api-1.464.0.dist-info → windmill_api-1.465.0.dist-info}/WHEEL +0 -0
|
@@ -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="SqsTriggerExtraPerms")
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@_attrs_define
|
|
10
|
+
class SqsTriggerExtraPerms:
|
|
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
|
+
sqs_trigger_extra_perms = cls()
|
|
26
|
+
|
|
27
|
+
sqs_trigger_extra_perms.additional_properties = d
|
|
28
|
+
return sqs_trigger_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
|
|
@@ -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_sqs_connection_json_body_connection import TestSqsConnectionJsonBodyConnection
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
T = TypeVar("T", bound="TestSqsConnectionJsonBody")
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
@_attrs_define
|
|
14
|
+
class TestSqsConnectionJsonBody:
|
|
15
|
+
"""
|
|
16
|
+
Attributes:
|
|
17
|
+
connection (TestSqsConnectionJsonBodyConnection):
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
connection: "TestSqsConnectionJsonBodyConnection"
|
|
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_sqs_connection_json_body_connection import TestSqsConnectionJsonBodyConnection
|
|
39
|
+
|
|
40
|
+
d = src_dict.copy()
|
|
41
|
+
connection = TestSqsConnectionJsonBodyConnection.from_dict(d.pop("connection"))
|
|
42
|
+
|
|
43
|
+
test_sqs_connection_json_body = cls(
|
|
44
|
+
connection=connection,
|
|
45
|
+
)
|
|
46
|
+
|
|
47
|
+
test_sqs_connection_json_body.additional_properties = d
|
|
48
|
+
return test_sqs_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="TestSqsConnectionJsonBodyConnection")
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@_attrs_define
|
|
10
|
+
class TestSqsConnectionJsonBodyConnection:
|
|
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_sqs_connection_json_body_connection = cls()
|
|
26
|
+
|
|
27
|
+
test_sqs_connection_json_body_connection.additional_properties = d
|
|
28
|
+
return test_sqs_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
|
|
@@ -16,21 +16,29 @@ T = TypeVar("T", bound="TriggerExtraProperty")
|
|
|
16
16
|
class TriggerExtraProperty:
|
|
17
17
|
"""
|
|
18
18
|
Attributes:
|
|
19
|
+
path (str):
|
|
20
|
+
script_path (str):
|
|
19
21
|
email (str):
|
|
20
22
|
extra_perms (TriggerExtraPropertyExtraPerms):
|
|
21
23
|
workspace_id (str):
|
|
22
24
|
edited_by (str):
|
|
23
25
|
edited_at (datetime.datetime):
|
|
26
|
+
is_flow (bool):
|
|
24
27
|
"""
|
|
25
28
|
|
|
29
|
+
path: str
|
|
30
|
+
script_path: str
|
|
26
31
|
email: str
|
|
27
32
|
extra_perms: "TriggerExtraPropertyExtraPerms"
|
|
28
33
|
workspace_id: str
|
|
29
34
|
edited_by: str
|
|
30
35
|
edited_at: datetime.datetime
|
|
36
|
+
is_flow: bool
|
|
31
37
|
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
32
38
|
|
|
33
39
|
def to_dict(self) -> Dict[str, Any]:
|
|
40
|
+
path = self.path
|
|
41
|
+
script_path = self.script_path
|
|
34
42
|
email = self.email
|
|
35
43
|
extra_perms = self.extra_perms.to_dict()
|
|
36
44
|
|
|
@@ -38,15 +46,20 @@ class TriggerExtraProperty:
|
|
|
38
46
|
edited_by = self.edited_by
|
|
39
47
|
edited_at = self.edited_at.isoformat()
|
|
40
48
|
|
|
49
|
+
is_flow = self.is_flow
|
|
50
|
+
|
|
41
51
|
field_dict: Dict[str, Any] = {}
|
|
42
52
|
field_dict.update(self.additional_properties)
|
|
43
53
|
field_dict.update(
|
|
44
54
|
{
|
|
55
|
+
"path": path,
|
|
56
|
+
"script_path": script_path,
|
|
45
57
|
"email": email,
|
|
46
58
|
"extra_perms": extra_perms,
|
|
47
59
|
"workspace_id": workspace_id,
|
|
48
60
|
"edited_by": edited_by,
|
|
49
61
|
"edited_at": edited_at,
|
|
62
|
+
"is_flow": is_flow,
|
|
50
63
|
}
|
|
51
64
|
)
|
|
52
65
|
|
|
@@ -57,6 +70,10 @@ class TriggerExtraProperty:
|
|
|
57
70
|
from ..models.trigger_extra_property_extra_perms import TriggerExtraPropertyExtraPerms
|
|
58
71
|
|
|
59
72
|
d = src_dict.copy()
|
|
73
|
+
path = d.pop("path")
|
|
74
|
+
|
|
75
|
+
script_path = d.pop("script_path")
|
|
76
|
+
|
|
60
77
|
email = d.pop("email")
|
|
61
78
|
|
|
62
79
|
extra_perms = TriggerExtraPropertyExtraPerms.from_dict(d.pop("extra_perms"))
|
|
@@ -67,12 +84,17 @@ class TriggerExtraProperty:
|
|
|
67
84
|
|
|
68
85
|
edited_at = isoparse(d.pop("edited_at"))
|
|
69
86
|
|
|
87
|
+
is_flow = d.pop("is_flow")
|
|
88
|
+
|
|
70
89
|
trigger_extra_property = cls(
|
|
90
|
+
path=path,
|
|
91
|
+
script_path=script_path,
|
|
71
92
|
email=email,
|
|
72
93
|
extra_perms=extra_perms,
|
|
73
94
|
workspace_id=workspace_id,
|
|
74
95
|
edited_by=edited_by,
|
|
75
96
|
edited_at=edited_at,
|
|
97
|
+
is_flow=is_flow,
|
|
76
98
|
)
|
|
77
99
|
|
|
78
100
|
trigger_extra_property.additional_properties = d
|
|
@@ -25,6 +25,7 @@ class TriggersCount:
|
|
|
25
25
|
postgres_count (Union[Unset, float]):
|
|
26
26
|
kafka_count (Union[Unset, float]):
|
|
27
27
|
nats_count (Union[Unset, float]):
|
|
28
|
+
sqs_count (Union[Unset, float]):
|
|
28
29
|
"""
|
|
29
30
|
|
|
30
31
|
primary_schedule: Union[Unset, "TriggersCountPrimarySchedule"] = UNSET
|
|
@@ -36,6 +37,7 @@ class TriggersCount:
|
|
|
36
37
|
postgres_count: Union[Unset, float] = UNSET
|
|
37
38
|
kafka_count: Union[Unset, float] = UNSET
|
|
38
39
|
nats_count: Union[Unset, float] = UNSET
|
|
40
|
+
sqs_count: Union[Unset, float] = UNSET
|
|
39
41
|
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
40
42
|
|
|
41
43
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -51,6 +53,7 @@ class TriggersCount:
|
|
|
51
53
|
postgres_count = self.postgres_count
|
|
52
54
|
kafka_count = self.kafka_count
|
|
53
55
|
nats_count = self.nats_count
|
|
56
|
+
sqs_count = self.sqs_count
|
|
54
57
|
|
|
55
58
|
field_dict: Dict[str, Any] = {}
|
|
56
59
|
field_dict.update(self.additional_properties)
|
|
@@ -73,6 +76,8 @@ class TriggersCount:
|
|
|
73
76
|
field_dict["kafka_count"] = kafka_count
|
|
74
77
|
if nats_count is not UNSET:
|
|
75
78
|
field_dict["nats_count"] = nats_count
|
|
79
|
+
if sqs_count is not UNSET:
|
|
80
|
+
field_dict["sqs_count"] = sqs_count
|
|
76
81
|
|
|
77
82
|
return field_dict
|
|
78
83
|
|
|
@@ -104,6 +109,8 @@ class TriggersCount:
|
|
|
104
109
|
|
|
105
110
|
nats_count = d.pop("nats_count", UNSET)
|
|
106
111
|
|
|
112
|
+
sqs_count = d.pop("sqs_count", UNSET)
|
|
113
|
+
|
|
107
114
|
triggers_count = cls(
|
|
108
115
|
primary_schedule=primary_schedule,
|
|
109
116
|
schedule_count=schedule_count,
|
|
@@ -114,6 +121,7 @@ class TriggersCount:
|
|
|
114
121
|
postgres_count=postgres_count,
|
|
115
122
|
kafka_count=kafka_count,
|
|
116
123
|
nats_count=nats_count,
|
|
124
|
+
sqs_count=sqs_count,
|
|
117
125
|
)
|
|
118
126
|
|
|
119
127
|
triggers_count.additional_properties = d
|
|
@@ -0,0 +1,105 @@
|
|
|
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="UpdateSqsTriggerJsonBody")
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
@_attrs_define
|
|
12
|
+
class UpdateSqsTriggerJsonBody:
|
|
13
|
+
"""
|
|
14
|
+
Attributes:
|
|
15
|
+
queue_url (str):
|
|
16
|
+
aws_resource_path (str):
|
|
17
|
+
path (str):
|
|
18
|
+
script_path (str):
|
|
19
|
+
is_flow (bool):
|
|
20
|
+
enabled (bool):
|
|
21
|
+
message_attributes (Union[Unset, List[str]]):
|
|
22
|
+
"""
|
|
23
|
+
|
|
24
|
+
queue_url: str
|
|
25
|
+
aws_resource_path: str
|
|
26
|
+
path: str
|
|
27
|
+
script_path: str
|
|
28
|
+
is_flow: bool
|
|
29
|
+
enabled: bool
|
|
30
|
+
message_attributes: Union[Unset, List[str]] = UNSET
|
|
31
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
32
|
+
|
|
33
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
34
|
+
queue_url = self.queue_url
|
|
35
|
+
aws_resource_path = self.aws_resource_path
|
|
36
|
+
path = self.path
|
|
37
|
+
script_path = self.script_path
|
|
38
|
+
is_flow = self.is_flow
|
|
39
|
+
enabled = self.enabled
|
|
40
|
+
message_attributes: Union[Unset, List[str]] = UNSET
|
|
41
|
+
if not isinstance(self.message_attributes, Unset):
|
|
42
|
+
message_attributes = self.message_attributes
|
|
43
|
+
|
|
44
|
+
field_dict: Dict[str, Any] = {}
|
|
45
|
+
field_dict.update(self.additional_properties)
|
|
46
|
+
field_dict.update(
|
|
47
|
+
{
|
|
48
|
+
"queue_url": queue_url,
|
|
49
|
+
"aws_resource_path": aws_resource_path,
|
|
50
|
+
"path": path,
|
|
51
|
+
"script_path": script_path,
|
|
52
|
+
"is_flow": is_flow,
|
|
53
|
+
"enabled": enabled,
|
|
54
|
+
}
|
|
55
|
+
)
|
|
56
|
+
if message_attributes is not UNSET:
|
|
57
|
+
field_dict["message_attributes"] = message_attributes
|
|
58
|
+
|
|
59
|
+
return field_dict
|
|
60
|
+
|
|
61
|
+
@classmethod
|
|
62
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
63
|
+
d = src_dict.copy()
|
|
64
|
+
queue_url = d.pop("queue_url")
|
|
65
|
+
|
|
66
|
+
aws_resource_path = d.pop("aws_resource_path")
|
|
67
|
+
|
|
68
|
+
path = d.pop("path")
|
|
69
|
+
|
|
70
|
+
script_path = d.pop("script_path")
|
|
71
|
+
|
|
72
|
+
is_flow = d.pop("is_flow")
|
|
73
|
+
|
|
74
|
+
enabled = d.pop("enabled")
|
|
75
|
+
|
|
76
|
+
message_attributes = cast(List[str], d.pop("message_attributes", UNSET))
|
|
77
|
+
|
|
78
|
+
update_sqs_trigger_json_body = cls(
|
|
79
|
+
queue_url=queue_url,
|
|
80
|
+
aws_resource_path=aws_resource_path,
|
|
81
|
+
path=path,
|
|
82
|
+
script_path=script_path,
|
|
83
|
+
is_flow=is_flow,
|
|
84
|
+
enabled=enabled,
|
|
85
|
+
message_attributes=message_attributes,
|
|
86
|
+
)
|
|
87
|
+
|
|
88
|
+
update_sqs_trigger_json_body.additional_properties = d
|
|
89
|
+
return update_sqs_trigger_json_body
|
|
90
|
+
|
|
91
|
+
@property
|
|
92
|
+
def additional_keys(self) -> List[str]:
|
|
93
|
+
return list(self.additional_properties.keys())
|
|
94
|
+
|
|
95
|
+
def __getitem__(self, key: str) -> Any:
|
|
96
|
+
return self.additional_properties[key]
|
|
97
|
+
|
|
98
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
99
|
+
self.additional_properties[key] = value
|
|
100
|
+
|
|
101
|
+
def __delitem__(self, key: str) -> None:
|
|
102
|
+
del self.additional_properties[key]
|
|
103
|
+
|
|
104
|
+
def __contains__(self, key: str) -> bool:
|
|
105
|
+
return key in self.additional_properties
|
|
@@ -22,18 +22,18 @@ T = TypeVar("T", bound="WebsocketTrigger")
|
|
|
22
22
|
class WebsocketTrigger:
|
|
23
23
|
"""
|
|
24
24
|
Attributes:
|
|
25
|
-
path (str):
|
|
26
|
-
script_path (str):
|
|
27
25
|
url (str):
|
|
28
|
-
is_flow (bool):
|
|
29
26
|
enabled (bool):
|
|
30
27
|
filters (List['WebsocketTriggerFiltersItem']):
|
|
31
28
|
can_return_message (bool):
|
|
29
|
+
path (str):
|
|
30
|
+
script_path (str):
|
|
32
31
|
email (str):
|
|
33
32
|
extra_perms (WebsocketTriggerExtraPerms):
|
|
34
33
|
workspace_id (str):
|
|
35
34
|
edited_by (str):
|
|
36
35
|
edited_at (datetime.datetime):
|
|
36
|
+
is_flow (bool):
|
|
37
37
|
server_id (Union[Unset, str]):
|
|
38
38
|
last_server_ping (Union[Unset, datetime.datetime]):
|
|
39
39
|
error (Union[Unset, str]):
|
|
@@ -42,18 +42,18 @@ class WebsocketTrigger:
|
|
|
42
42
|
url_runnable_args (Union[Unset, WebsocketTriggerUrlRunnableArgs]):
|
|
43
43
|
"""
|
|
44
44
|
|
|
45
|
-
path: str
|
|
46
|
-
script_path: str
|
|
47
45
|
url: str
|
|
48
|
-
is_flow: bool
|
|
49
46
|
enabled: bool
|
|
50
47
|
filters: List["WebsocketTriggerFiltersItem"]
|
|
51
48
|
can_return_message: bool
|
|
49
|
+
path: str
|
|
50
|
+
script_path: str
|
|
52
51
|
email: str
|
|
53
52
|
extra_perms: "WebsocketTriggerExtraPerms"
|
|
54
53
|
workspace_id: str
|
|
55
54
|
edited_by: str
|
|
56
55
|
edited_at: datetime.datetime
|
|
56
|
+
is_flow: bool
|
|
57
57
|
server_id: Union[Unset, str] = UNSET
|
|
58
58
|
last_server_ping: Union[Unset, datetime.datetime] = UNSET
|
|
59
59
|
error: Union[Unset, str] = UNSET
|
|
@@ -66,10 +66,7 @@ class WebsocketTrigger:
|
|
|
66
66
|
def to_dict(self) -> Dict[str, Any]:
|
|
67
67
|
from ..models.websocket_trigger_initial_messages_item_type_0 import WebsocketTriggerInitialMessagesItemType0
|
|
68
68
|
|
|
69
|
-
path = self.path
|
|
70
|
-
script_path = self.script_path
|
|
71
69
|
url = self.url
|
|
72
|
-
is_flow = self.is_flow
|
|
73
70
|
enabled = self.enabled
|
|
74
71
|
filters = []
|
|
75
72
|
for filters_item_data in self.filters:
|
|
@@ -78,6 +75,8 @@ class WebsocketTrigger:
|
|
|
78
75
|
filters.append(filters_item)
|
|
79
76
|
|
|
80
77
|
can_return_message = self.can_return_message
|
|
78
|
+
path = self.path
|
|
79
|
+
script_path = self.script_path
|
|
81
80
|
email = self.email
|
|
82
81
|
extra_perms = self.extra_perms.to_dict()
|
|
83
82
|
|
|
@@ -85,6 +84,7 @@ class WebsocketTrigger:
|
|
|
85
84
|
edited_by = self.edited_by
|
|
86
85
|
edited_at = self.edited_at.isoformat()
|
|
87
86
|
|
|
87
|
+
is_flow = self.is_flow
|
|
88
88
|
server_id = self.server_id
|
|
89
89
|
last_server_ping: Union[Unset, str] = UNSET
|
|
90
90
|
if not isinstance(self.last_server_ping, Unset):
|
|
@@ -113,18 +113,18 @@ class WebsocketTrigger:
|
|
|
113
113
|
field_dict.update(self.additional_properties)
|
|
114
114
|
field_dict.update(
|
|
115
115
|
{
|
|
116
|
-
"path": path,
|
|
117
|
-
"script_path": script_path,
|
|
118
116
|
"url": url,
|
|
119
|
-
"is_flow": is_flow,
|
|
120
117
|
"enabled": enabled,
|
|
121
118
|
"filters": filters,
|
|
122
119
|
"can_return_message": can_return_message,
|
|
120
|
+
"path": path,
|
|
121
|
+
"script_path": script_path,
|
|
123
122
|
"email": email,
|
|
124
123
|
"extra_perms": extra_perms,
|
|
125
124
|
"workspace_id": workspace_id,
|
|
126
125
|
"edited_by": edited_by,
|
|
127
126
|
"edited_at": edited_at,
|
|
127
|
+
"is_flow": is_flow,
|
|
128
128
|
}
|
|
129
129
|
)
|
|
130
130
|
if server_id is not UNSET:
|
|
@@ -149,14 +149,8 @@ class WebsocketTrigger:
|
|
|
149
149
|
from ..models.websocket_trigger_url_runnable_args import WebsocketTriggerUrlRunnableArgs
|
|
150
150
|
|
|
151
151
|
d = src_dict.copy()
|
|
152
|
-
path = d.pop("path")
|
|
153
|
-
|
|
154
|
-
script_path = d.pop("script_path")
|
|
155
|
-
|
|
156
152
|
url = d.pop("url")
|
|
157
153
|
|
|
158
|
-
is_flow = d.pop("is_flow")
|
|
159
|
-
|
|
160
154
|
enabled = d.pop("enabled")
|
|
161
155
|
|
|
162
156
|
filters = []
|
|
@@ -168,6 +162,10 @@ class WebsocketTrigger:
|
|
|
168
162
|
|
|
169
163
|
can_return_message = d.pop("can_return_message")
|
|
170
164
|
|
|
165
|
+
path = d.pop("path")
|
|
166
|
+
|
|
167
|
+
script_path = d.pop("script_path")
|
|
168
|
+
|
|
171
169
|
email = d.pop("email")
|
|
172
170
|
|
|
173
171
|
extra_perms = WebsocketTriggerExtraPerms.from_dict(d.pop("extra_perms"))
|
|
@@ -178,6 +176,8 @@ class WebsocketTrigger:
|
|
|
178
176
|
|
|
179
177
|
edited_at = isoparse(d.pop("edited_at"))
|
|
180
178
|
|
|
179
|
+
is_flow = d.pop("is_flow")
|
|
180
|
+
|
|
181
181
|
server_id = d.pop("server_id", UNSET)
|
|
182
182
|
|
|
183
183
|
_last_server_ping = d.pop("last_server_ping", UNSET)
|
|
@@ -222,18 +222,18 @@ class WebsocketTrigger:
|
|
|
222
222
|
url_runnable_args = WebsocketTriggerUrlRunnableArgs.from_dict(_url_runnable_args)
|
|
223
223
|
|
|
224
224
|
websocket_trigger = cls(
|
|
225
|
-
path=path,
|
|
226
|
-
script_path=script_path,
|
|
227
225
|
url=url,
|
|
228
|
-
is_flow=is_flow,
|
|
229
226
|
enabled=enabled,
|
|
230
227
|
filters=filters,
|
|
231
228
|
can_return_message=can_return_message,
|
|
229
|
+
path=path,
|
|
230
|
+
script_path=script_path,
|
|
232
231
|
email=email,
|
|
233
232
|
extra_perms=extra_perms,
|
|
234
233
|
workspace_id=workspace_id,
|
|
235
234
|
edited_by=edited_by,
|
|
236
235
|
edited_at=edited_at,
|
|
236
|
+
is_flow=is_flow,
|
|
237
237
|
server_id=server_id,
|
|
238
238
|
last_server_ping=last_server_ping,
|
|
239
239
|
error=error,
|