windmill-api 1.481.0__py3-none-any.whl → 1.483.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of windmill-api might be problematic. Click here for more details.
- windmill_api/api/agent_workers/__init__.py +0 -0
- windmill_api/api/agent_workers/create_agent_token.py +149 -0
- windmill_api/api/app/sign_s3_objects.py +175 -0
- windmill_api/api/capture/set_capture_config.py +70 -7
- windmill_api/api/concurrency_groups/list_extended_jobs.py +15 -0
- windmill_api/api/gcp_trigger/__init__.py +0 -0
- windmill_api/api/gcp_trigger/create_gcp_trigger.py +105 -0
- windmill_api/api/gcp_trigger/delete_gcp_subscription.py +113 -0
- windmill_api/api/gcp_trigger/delete_gcp_trigger.py +101 -0
- windmill_api/api/gcp_trigger/exists_gcp_trigger.py +160 -0
- windmill_api/api/gcp_trigger/get_gcp_trigger.py +166 -0
- windmill_api/api/gcp_trigger/list_all_t_google_topic_subscriptions.py +179 -0
- windmill_api/api/gcp_trigger/list_gcp_triggers.py +237 -0
- windmill_api/api/gcp_trigger/list_google_topics.py +161 -0
- windmill_api/api/gcp_trigger/set_gcp_trigger_enabled.py +113 -0
- windmill_api/api/gcp_trigger/test_gcp_connection.py +105 -0
- windmill_api/api/gcp_trigger/update_gcp_trigger.py +113 -0
- windmill_api/api/job/batch_re_run_jobs.py +105 -0
- windmill_api/api/job/list_completed_jobs.py +15 -0
- windmill_api/api/job/list_filtered_jobs_uuids.py +633 -0
- windmill_api/api/job/{list_filtered_uuids.py → list_filtered_queue_uuids.py} +19 -4
- windmill_api/api/job/list_jobs.py +15 -0
- windmill_api/api/job/list_queue.py +15 -0
- windmill_api/api/job/list_selected_job_groups.py +104 -0
- windmill_api/models/add_granular_acls_kind.py +1 -0
- windmill_api/models/ai_config_code_completion_model_provider.py +1 -0
- windmill_api/models/ai_config_default_model_provider.py +1 -0
- windmill_api/models/ai_provider.py +1 -0
- windmill_api/models/ai_provider_model_provider.py +1 -0
- windmill_api/models/aws_auth_resource_type.py +9 -0
- windmill_api/models/batch_re_run_jobs_json_body.py +84 -0
- windmill_api/models/batch_re_run_jobs_json_body_flow_options_by_path.py +66 -0
- windmill_api/models/batch_re_run_jobs_json_body_flow_options_by_path_additional_property.py +86 -0
- windmill_api/models/batch_re_run_jobs_json_body_flow_options_by_path_additional_property_input_transforms.py +123 -0
- windmill_api/models/batch_re_run_jobs_json_body_flow_options_by_path_additional_property_input_transforms_additional_property_type_0.py +78 -0
- windmill_api/models/batch_re_run_jobs_json_body_flow_options_by_path_additional_property_input_transforms_additional_property_type_0_type.py +8 -0
- windmill_api/models/batch_re_run_jobs_json_body_flow_options_by_path_additional_property_input_transforms_additional_property_type_1.py +75 -0
- windmill_api/models/batch_re_run_jobs_json_body_flow_options_by_path_additional_property_input_transforms_additional_property_type_1_type.py +8 -0
- windmill_api/models/batch_re_run_jobs_json_body_script_options_by_path.py +66 -0
- windmill_api/models/batch_re_run_jobs_json_body_script_options_by_path_additional_property.py +86 -0
- windmill_api/models/batch_re_run_jobs_json_body_script_options_by_path_additional_property_input_transforms.py +123 -0
- windmill_api/models/batch_re_run_jobs_json_body_script_options_by_path_additional_property_input_transforms_additional_property_type_0.py +78 -0
- windmill_api/models/batch_re_run_jobs_json_body_script_options_by_path_additional_property_input_transforms_additional_property_type_0_type.py +8 -0
- windmill_api/models/batch_re_run_jobs_json_body_script_options_by_path_additional_property_input_transforms_additional_property_type_1.py +75 -0
- windmill_api/models/batch_re_run_jobs_json_body_script_options_by_path_additional_property_input_transforms_additional_property_type_1_type.py +8 -0
- windmill_api/models/capture_config_trigger_kind.py +1 -0
- windmill_api/models/capture_trigger_kind.py +1 -0
- windmill_api/models/create_agent_token_json_body.py +73 -0
- windmill_api/models/create_gcp_trigger_json_body.py +115 -0
- windmill_api/models/create_gcp_trigger_json_body_subscription_mode.py +69 -0
- windmill_api/models/create_gcp_trigger_json_body_subscription_mode_subscription_mode.py +9 -0
- windmill_api/models/create_sqs_trigger_json_body.py +9 -0
- windmill_api/models/create_sqs_trigger_json_body_aws_auth_resource_type.py +9 -0
- windmill_api/models/delete_gcp_subscription.py +58 -0
- windmill_api/models/delete_gcp_subscription_json_body.py +58 -0
- windmill_api/models/delivery_type.py +9 -0
- windmill_api/models/edit_copilot_config_json_body_code_completion_model_provider.py +1 -0
- windmill_api/models/edit_copilot_config_json_body_default_model_provider.py +1 -0
- windmill_api/models/edit_gcp_trigger.py +114 -0
- windmill_api/models/edit_gcp_trigger_subscription_mode.py +66 -0
- windmill_api/models/edit_gcp_trigger_subscription_mode_subscription_mode.py +9 -0
- windmill_api/models/edit_sqs_trigger.py +9 -0
- windmill_api/models/edit_sqs_trigger_aws_auth_resource_type.py +9 -0
- windmill_api/models/gcp_create_update_subscription.py +91 -0
- windmill_api/models/gcp_create_update_subscription_delivery_config.py +75 -0
- windmill_api/models/gcp_create_update_subscription_delivery_type.py +9 -0
- windmill_api/models/gcp_existing_subscription.py +65 -0
- windmill_api/models/gcp_subscription_mode_config.py +66 -0
- windmill_api/models/gcp_subscription_mode_config_subscription_mode.py +9 -0
- windmill_api/models/gcp_trigger.py +206 -0
- windmill_api/models/gcp_trigger_delivery_config.py +75 -0
- windmill_api/models/gcp_trigger_delivery_type.py +9 -0
- windmill_api/models/gcp_trigger_extra_perms.py +44 -0
- windmill_api/models/get_all_topic_subscription.py +58 -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_copilot_info_response_200_code_completion_model_provider.py +1 -0
- windmill_api/models/get_copilot_info_response_200_default_model_provider.py +1 -0
- windmill_api/models/get_gcp_trigger_response_200.py +206 -0
- windmill_api/models/get_gcp_trigger_response_200_delivery_config.py +75 -0
- windmill_api/models/get_gcp_trigger_response_200_delivery_type.py +9 -0
- windmill_api/models/get_gcp_trigger_response_200_extra_perms.py +44 -0
- windmill_api/models/get_granular_acls_kind.py +1 -0
- windmill_api/models/get_settings_response_200_ai_config_code_completion_model_provider.py +1 -0
- windmill_api/models/get_settings_response_200_ai_config_default_model_provider.py +1 -0
- windmill_api/models/get_sqs_trigger_response_200.py +9 -0
- windmill_api/models/get_sqs_trigger_response_200_aws_auth_resource_type.py +9 -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/list_all_t_google_topic_subscriptions_json_body.py +58 -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/list_gcp_triggers_response_200_item.py +210 -0
- windmill_api/models/list_gcp_triggers_response_200_item_delivery_config.py +75 -0
- windmill_api/models/list_gcp_triggers_response_200_item_delivery_type.py +9 -0
- windmill_api/models/list_gcp_triggers_response_200_item_extra_perms.py +44 -0
- windmill_api/models/list_sqs_triggers_response_200_item.py +11 -0
- windmill_api/models/list_sqs_triggers_response_200_item_aws_auth_resource_type.py +9 -0
- windmill_api/models/new_gcp_trigger.py +114 -0
- windmill_api/models/new_gcp_trigger_subscription_mode.py +66 -0
- windmill_api/models/new_gcp_trigger_subscription_mode_subscription_mode.py +9 -0
- windmill_api/models/new_sqs_trigger.py +9 -0
- windmill_api/models/new_sqs_trigger_aws_auth_resource_type.py +9 -0
- windmill_api/models/ping_capture_config_trigger_kind.py +1 -0
- windmill_api/models/preview.py +8 -0
- windmill_api/models/push_config.py +75 -0
- windmill_api/models/remove_granular_acls_kind.py +1 -0
- windmill_api/models/run_script_preview_json_body.py +8 -0
- windmill_api/models/s3_object.py +84 -0
- windmill_api/models/set_capture_config_json_body_trigger_kind.py +1 -0
- windmill_api/models/set_capture_config_response_200.py +44 -0
- windmill_api/models/set_gcp_trigger_enabled_json_body.py +58 -0
- windmill_api/models/sign_s3_objects_json_body.py +73 -0
- windmill_api/models/sign_s3_objects_json_body_s3_objects_item.py +84 -0
- windmill_api/models/sign_s3_objects_response_200_item.py +84 -0
- windmill_api/models/sqs_trigger.py +9 -0
- windmill_api/models/sqs_trigger_aws_auth_resource_type.py +9 -0
- windmill_api/models/subscription_mode.py +9 -0
- windmill_api/models/test_gcp_connection_json_body.py +64 -0
- windmill_api/models/test_gcp_connection_json_body_connection.py +44 -0
- windmill_api/models/triggers_count.py +8 -0
- windmill_api/models/update_gcp_trigger_json_body.py +115 -0
- windmill_api/models/update_gcp_trigger_json_body_subscription_mode.py +69 -0
- windmill_api/models/update_gcp_trigger_json_body_subscription_mode_subscription_mode.py +9 -0
- windmill_api/models/update_sqs_trigger_json_body.py +9 -0
- windmill_api/models/update_sqs_trigger_json_body_aws_auth_resource_type.py +9 -0
- {windmill_api-1.481.0.dist-info → windmill_api-1.483.0.dist-info}/METADATA +1 -1
- {windmill_api-1.481.0.dist-info → windmill_api-1.483.0.dist-info}/RECORD +131 -44
- {windmill_api-1.481.0.dist-info → windmill_api-1.483.0.dist-info}/LICENSE +0 -0
- {windmill_api-1.481.0.dist-info → windmill_api-1.483.0.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,206 @@
|
|
|
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 ..models.gcp_trigger_delivery_type import GcpTriggerDeliveryType
|
|
9
|
+
from ..types import UNSET, Unset
|
|
10
|
+
|
|
11
|
+
if TYPE_CHECKING:
|
|
12
|
+
from ..models.gcp_trigger_delivery_config import GcpTriggerDeliveryConfig
|
|
13
|
+
from ..models.gcp_trigger_extra_perms import GcpTriggerExtraPerms
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
T = TypeVar("T", bound="GcpTrigger")
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
@_attrs_define
|
|
20
|
+
class GcpTrigger:
|
|
21
|
+
"""
|
|
22
|
+
Attributes:
|
|
23
|
+
gcp_resource_path (str):
|
|
24
|
+
topic_id (str):
|
|
25
|
+
subscription_id (str):
|
|
26
|
+
delivery_type (GcpTriggerDeliveryType):
|
|
27
|
+
enabled (bool):
|
|
28
|
+
path (str):
|
|
29
|
+
script_path (str):
|
|
30
|
+
email (str):
|
|
31
|
+
extra_perms (GcpTriggerExtraPerms):
|
|
32
|
+
workspace_id (str):
|
|
33
|
+
edited_by (str):
|
|
34
|
+
edited_at (datetime.datetime):
|
|
35
|
+
is_flow (bool):
|
|
36
|
+
server_id (Union[Unset, str]):
|
|
37
|
+
delivery_config (Union[Unset, GcpTriggerDeliveryConfig]):
|
|
38
|
+
last_server_ping (Union[Unset, datetime.datetime]):
|
|
39
|
+
error (Union[Unset, str]):
|
|
40
|
+
"""
|
|
41
|
+
|
|
42
|
+
gcp_resource_path: str
|
|
43
|
+
topic_id: str
|
|
44
|
+
subscription_id: str
|
|
45
|
+
delivery_type: GcpTriggerDeliveryType
|
|
46
|
+
enabled: bool
|
|
47
|
+
path: str
|
|
48
|
+
script_path: str
|
|
49
|
+
email: str
|
|
50
|
+
extra_perms: "GcpTriggerExtraPerms"
|
|
51
|
+
workspace_id: str
|
|
52
|
+
edited_by: str
|
|
53
|
+
edited_at: datetime.datetime
|
|
54
|
+
is_flow: bool
|
|
55
|
+
server_id: Union[Unset, str] = UNSET
|
|
56
|
+
delivery_config: Union[Unset, "GcpTriggerDeliveryConfig"] = UNSET
|
|
57
|
+
last_server_ping: Union[Unset, datetime.datetime] = UNSET
|
|
58
|
+
error: Union[Unset, str] = UNSET
|
|
59
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
60
|
+
|
|
61
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
62
|
+
gcp_resource_path = self.gcp_resource_path
|
|
63
|
+
topic_id = self.topic_id
|
|
64
|
+
subscription_id = self.subscription_id
|
|
65
|
+
delivery_type = self.delivery_type.value
|
|
66
|
+
|
|
67
|
+
enabled = self.enabled
|
|
68
|
+
path = self.path
|
|
69
|
+
script_path = self.script_path
|
|
70
|
+
email = self.email
|
|
71
|
+
extra_perms = self.extra_perms.to_dict()
|
|
72
|
+
|
|
73
|
+
workspace_id = self.workspace_id
|
|
74
|
+
edited_by = self.edited_by
|
|
75
|
+
edited_at = self.edited_at.isoformat()
|
|
76
|
+
|
|
77
|
+
is_flow = self.is_flow
|
|
78
|
+
server_id = self.server_id
|
|
79
|
+
delivery_config: Union[Unset, Dict[str, Any]] = UNSET
|
|
80
|
+
if not isinstance(self.delivery_config, Unset):
|
|
81
|
+
delivery_config = self.delivery_config.to_dict()
|
|
82
|
+
|
|
83
|
+
last_server_ping: Union[Unset, str] = UNSET
|
|
84
|
+
if not isinstance(self.last_server_ping, Unset):
|
|
85
|
+
last_server_ping = self.last_server_ping.isoformat()
|
|
86
|
+
|
|
87
|
+
error = self.error
|
|
88
|
+
|
|
89
|
+
field_dict: Dict[str, Any] = {}
|
|
90
|
+
field_dict.update(self.additional_properties)
|
|
91
|
+
field_dict.update(
|
|
92
|
+
{
|
|
93
|
+
"gcp_resource_path": gcp_resource_path,
|
|
94
|
+
"topic_id": topic_id,
|
|
95
|
+
"subscription_id": subscription_id,
|
|
96
|
+
"delivery_type": delivery_type,
|
|
97
|
+
"enabled": enabled,
|
|
98
|
+
"path": path,
|
|
99
|
+
"script_path": script_path,
|
|
100
|
+
"email": email,
|
|
101
|
+
"extra_perms": extra_perms,
|
|
102
|
+
"workspace_id": workspace_id,
|
|
103
|
+
"edited_by": edited_by,
|
|
104
|
+
"edited_at": edited_at,
|
|
105
|
+
"is_flow": is_flow,
|
|
106
|
+
}
|
|
107
|
+
)
|
|
108
|
+
if server_id is not UNSET:
|
|
109
|
+
field_dict["server_id"] = server_id
|
|
110
|
+
if delivery_config is not UNSET:
|
|
111
|
+
field_dict["delivery_config"] = delivery_config
|
|
112
|
+
if last_server_ping is not UNSET:
|
|
113
|
+
field_dict["last_server_ping"] = last_server_ping
|
|
114
|
+
if error is not UNSET:
|
|
115
|
+
field_dict["error"] = error
|
|
116
|
+
|
|
117
|
+
return field_dict
|
|
118
|
+
|
|
119
|
+
@classmethod
|
|
120
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
121
|
+
from ..models.gcp_trigger_delivery_config import GcpTriggerDeliveryConfig
|
|
122
|
+
from ..models.gcp_trigger_extra_perms import GcpTriggerExtraPerms
|
|
123
|
+
|
|
124
|
+
d = src_dict.copy()
|
|
125
|
+
gcp_resource_path = d.pop("gcp_resource_path")
|
|
126
|
+
|
|
127
|
+
topic_id = d.pop("topic_id")
|
|
128
|
+
|
|
129
|
+
subscription_id = d.pop("subscription_id")
|
|
130
|
+
|
|
131
|
+
delivery_type = GcpTriggerDeliveryType(d.pop("delivery_type"))
|
|
132
|
+
|
|
133
|
+
enabled = d.pop("enabled")
|
|
134
|
+
|
|
135
|
+
path = d.pop("path")
|
|
136
|
+
|
|
137
|
+
script_path = d.pop("script_path")
|
|
138
|
+
|
|
139
|
+
email = d.pop("email")
|
|
140
|
+
|
|
141
|
+
extra_perms = GcpTriggerExtraPerms.from_dict(d.pop("extra_perms"))
|
|
142
|
+
|
|
143
|
+
workspace_id = d.pop("workspace_id")
|
|
144
|
+
|
|
145
|
+
edited_by = d.pop("edited_by")
|
|
146
|
+
|
|
147
|
+
edited_at = isoparse(d.pop("edited_at"))
|
|
148
|
+
|
|
149
|
+
is_flow = d.pop("is_flow")
|
|
150
|
+
|
|
151
|
+
server_id = d.pop("server_id", UNSET)
|
|
152
|
+
|
|
153
|
+
_delivery_config = d.pop("delivery_config", UNSET)
|
|
154
|
+
delivery_config: Union[Unset, GcpTriggerDeliveryConfig]
|
|
155
|
+
if isinstance(_delivery_config, Unset):
|
|
156
|
+
delivery_config = UNSET
|
|
157
|
+
else:
|
|
158
|
+
delivery_config = GcpTriggerDeliveryConfig.from_dict(_delivery_config)
|
|
159
|
+
|
|
160
|
+
_last_server_ping = d.pop("last_server_ping", UNSET)
|
|
161
|
+
last_server_ping: Union[Unset, datetime.datetime]
|
|
162
|
+
if isinstance(_last_server_ping, Unset):
|
|
163
|
+
last_server_ping = UNSET
|
|
164
|
+
else:
|
|
165
|
+
last_server_ping = isoparse(_last_server_ping)
|
|
166
|
+
|
|
167
|
+
error = d.pop("error", UNSET)
|
|
168
|
+
|
|
169
|
+
gcp_trigger = cls(
|
|
170
|
+
gcp_resource_path=gcp_resource_path,
|
|
171
|
+
topic_id=topic_id,
|
|
172
|
+
subscription_id=subscription_id,
|
|
173
|
+
delivery_type=delivery_type,
|
|
174
|
+
enabled=enabled,
|
|
175
|
+
path=path,
|
|
176
|
+
script_path=script_path,
|
|
177
|
+
email=email,
|
|
178
|
+
extra_perms=extra_perms,
|
|
179
|
+
workspace_id=workspace_id,
|
|
180
|
+
edited_by=edited_by,
|
|
181
|
+
edited_at=edited_at,
|
|
182
|
+
is_flow=is_flow,
|
|
183
|
+
server_id=server_id,
|
|
184
|
+
delivery_config=delivery_config,
|
|
185
|
+
last_server_ping=last_server_ping,
|
|
186
|
+
error=error,
|
|
187
|
+
)
|
|
188
|
+
|
|
189
|
+
gcp_trigger.additional_properties = d
|
|
190
|
+
return gcp_trigger
|
|
191
|
+
|
|
192
|
+
@property
|
|
193
|
+
def additional_keys(self) -> List[str]:
|
|
194
|
+
return list(self.additional_properties.keys())
|
|
195
|
+
|
|
196
|
+
def __getitem__(self, key: str) -> Any:
|
|
197
|
+
return self.additional_properties[key]
|
|
198
|
+
|
|
199
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
200
|
+
self.additional_properties[key] = value
|
|
201
|
+
|
|
202
|
+
def __delitem__(self, key: str) -> None:
|
|
203
|
+
del self.additional_properties[key]
|
|
204
|
+
|
|
205
|
+
def __contains__(self, key: str) -> bool:
|
|
206
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
from typing import 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
|
+
T = TypeVar("T", bound="GcpTriggerDeliveryConfig")
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
@_attrs_define
|
|
12
|
+
class GcpTriggerDeliveryConfig:
|
|
13
|
+
"""
|
|
14
|
+
Attributes:
|
|
15
|
+
authenticate (bool):
|
|
16
|
+
base_endpoint (str):
|
|
17
|
+
audience (Union[Unset, str]):
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
authenticate: bool
|
|
21
|
+
base_endpoint: str
|
|
22
|
+
audience: 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
|
+
authenticate = self.authenticate
|
|
27
|
+
base_endpoint = self.base_endpoint
|
|
28
|
+
audience = self.audience
|
|
29
|
+
|
|
30
|
+
field_dict: Dict[str, Any] = {}
|
|
31
|
+
field_dict.update(self.additional_properties)
|
|
32
|
+
field_dict.update(
|
|
33
|
+
{
|
|
34
|
+
"authenticate": authenticate,
|
|
35
|
+
"base_endpoint": base_endpoint,
|
|
36
|
+
}
|
|
37
|
+
)
|
|
38
|
+
if audience is not UNSET:
|
|
39
|
+
field_dict["audience"] = audience
|
|
40
|
+
|
|
41
|
+
return field_dict
|
|
42
|
+
|
|
43
|
+
@classmethod
|
|
44
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
45
|
+
d = src_dict.copy()
|
|
46
|
+
authenticate = d.pop("authenticate")
|
|
47
|
+
|
|
48
|
+
base_endpoint = d.pop("base_endpoint")
|
|
49
|
+
|
|
50
|
+
audience = d.pop("audience", UNSET)
|
|
51
|
+
|
|
52
|
+
gcp_trigger_delivery_config = cls(
|
|
53
|
+
authenticate=authenticate,
|
|
54
|
+
base_endpoint=base_endpoint,
|
|
55
|
+
audience=audience,
|
|
56
|
+
)
|
|
57
|
+
|
|
58
|
+
gcp_trigger_delivery_config.additional_properties = d
|
|
59
|
+
return gcp_trigger_delivery_config
|
|
60
|
+
|
|
61
|
+
@property
|
|
62
|
+
def additional_keys(self) -> List[str]:
|
|
63
|
+
return list(self.additional_properties.keys())
|
|
64
|
+
|
|
65
|
+
def __getitem__(self, key: str) -> Any:
|
|
66
|
+
return self.additional_properties[key]
|
|
67
|
+
|
|
68
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
69
|
+
self.additional_properties[key] = value
|
|
70
|
+
|
|
71
|
+
def __delitem__(self, key: str) -> None:
|
|
72
|
+
del self.additional_properties[key]
|
|
73
|
+
|
|
74
|
+
def __contains__(self, key: str) -> bool:
|
|
75
|
+
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="GcpTriggerExtraPerms")
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@_attrs_define
|
|
10
|
+
class GcpTriggerExtraPerms:
|
|
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
|
+
gcp_trigger_extra_perms = cls()
|
|
26
|
+
|
|
27
|
+
gcp_trigger_extra_perms.additional_properties = d
|
|
28
|
+
return gcp_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,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="GetAllTopicSubscription")
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@_attrs_define
|
|
10
|
+
class GetAllTopicSubscription:
|
|
11
|
+
"""
|
|
12
|
+
Attributes:
|
|
13
|
+
topic_id (str):
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
topic_id: str
|
|
17
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
18
|
+
|
|
19
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
20
|
+
topic_id = self.topic_id
|
|
21
|
+
|
|
22
|
+
field_dict: Dict[str, Any] = {}
|
|
23
|
+
field_dict.update(self.additional_properties)
|
|
24
|
+
field_dict.update(
|
|
25
|
+
{
|
|
26
|
+
"topic_id": topic_id,
|
|
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
|
+
topic_id = d.pop("topic_id")
|
|
36
|
+
|
|
37
|
+
get_all_topic_subscription = cls(
|
|
38
|
+
topic_id=topic_id,
|
|
39
|
+
)
|
|
40
|
+
|
|
41
|
+
get_all_topic_subscription.additional_properties = d
|
|
42
|
+
return get_all_topic_subscription
|
|
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
|
|
@@ -0,0 +1,206 @@
|
|
|
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 ..models.get_gcp_trigger_response_200_delivery_type import GetGcpTriggerResponse200DeliveryType
|
|
9
|
+
from ..types import UNSET, Unset
|
|
10
|
+
|
|
11
|
+
if TYPE_CHECKING:
|
|
12
|
+
from ..models.get_gcp_trigger_response_200_delivery_config import GetGcpTriggerResponse200DeliveryConfig
|
|
13
|
+
from ..models.get_gcp_trigger_response_200_extra_perms import GetGcpTriggerResponse200ExtraPerms
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
T = TypeVar("T", bound="GetGcpTriggerResponse200")
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
@_attrs_define
|
|
20
|
+
class GetGcpTriggerResponse200:
|
|
21
|
+
"""
|
|
22
|
+
Attributes:
|
|
23
|
+
gcp_resource_path (str):
|
|
24
|
+
topic_id (str):
|
|
25
|
+
subscription_id (str):
|
|
26
|
+
delivery_type (GetGcpTriggerResponse200DeliveryType):
|
|
27
|
+
enabled (bool):
|
|
28
|
+
path (str):
|
|
29
|
+
script_path (str):
|
|
30
|
+
email (str):
|
|
31
|
+
extra_perms (GetGcpTriggerResponse200ExtraPerms):
|
|
32
|
+
workspace_id (str):
|
|
33
|
+
edited_by (str):
|
|
34
|
+
edited_at (datetime.datetime):
|
|
35
|
+
is_flow (bool):
|
|
36
|
+
server_id (Union[Unset, str]):
|
|
37
|
+
delivery_config (Union[Unset, GetGcpTriggerResponse200DeliveryConfig]):
|
|
38
|
+
last_server_ping (Union[Unset, datetime.datetime]):
|
|
39
|
+
error (Union[Unset, str]):
|
|
40
|
+
"""
|
|
41
|
+
|
|
42
|
+
gcp_resource_path: str
|
|
43
|
+
topic_id: str
|
|
44
|
+
subscription_id: str
|
|
45
|
+
delivery_type: GetGcpTriggerResponse200DeliveryType
|
|
46
|
+
enabled: bool
|
|
47
|
+
path: str
|
|
48
|
+
script_path: str
|
|
49
|
+
email: str
|
|
50
|
+
extra_perms: "GetGcpTriggerResponse200ExtraPerms"
|
|
51
|
+
workspace_id: str
|
|
52
|
+
edited_by: str
|
|
53
|
+
edited_at: datetime.datetime
|
|
54
|
+
is_flow: bool
|
|
55
|
+
server_id: Union[Unset, str] = UNSET
|
|
56
|
+
delivery_config: Union[Unset, "GetGcpTriggerResponse200DeliveryConfig"] = UNSET
|
|
57
|
+
last_server_ping: Union[Unset, datetime.datetime] = UNSET
|
|
58
|
+
error: Union[Unset, str] = UNSET
|
|
59
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
60
|
+
|
|
61
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
62
|
+
gcp_resource_path = self.gcp_resource_path
|
|
63
|
+
topic_id = self.topic_id
|
|
64
|
+
subscription_id = self.subscription_id
|
|
65
|
+
delivery_type = self.delivery_type.value
|
|
66
|
+
|
|
67
|
+
enabled = self.enabled
|
|
68
|
+
path = self.path
|
|
69
|
+
script_path = self.script_path
|
|
70
|
+
email = self.email
|
|
71
|
+
extra_perms = self.extra_perms.to_dict()
|
|
72
|
+
|
|
73
|
+
workspace_id = self.workspace_id
|
|
74
|
+
edited_by = self.edited_by
|
|
75
|
+
edited_at = self.edited_at.isoformat()
|
|
76
|
+
|
|
77
|
+
is_flow = self.is_flow
|
|
78
|
+
server_id = self.server_id
|
|
79
|
+
delivery_config: Union[Unset, Dict[str, Any]] = UNSET
|
|
80
|
+
if not isinstance(self.delivery_config, Unset):
|
|
81
|
+
delivery_config = self.delivery_config.to_dict()
|
|
82
|
+
|
|
83
|
+
last_server_ping: Union[Unset, str] = UNSET
|
|
84
|
+
if not isinstance(self.last_server_ping, Unset):
|
|
85
|
+
last_server_ping = self.last_server_ping.isoformat()
|
|
86
|
+
|
|
87
|
+
error = self.error
|
|
88
|
+
|
|
89
|
+
field_dict: Dict[str, Any] = {}
|
|
90
|
+
field_dict.update(self.additional_properties)
|
|
91
|
+
field_dict.update(
|
|
92
|
+
{
|
|
93
|
+
"gcp_resource_path": gcp_resource_path,
|
|
94
|
+
"topic_id": topic_id,
|
|
95
|
+
"subscription_id": subscription_id,
|
|
96
|
+
"delivery_type": delivery_type,
|
|
97
|
+
"enabled": enabled,
|
|
98
|
+
"path": path,
|
|
99
|
+
"script_path": script_path,
|
|
100
|
+
"email": email,
|
|
101
|
+
"extra_perms": extra_perms,
|
|
102
|
+
"workspace_id": workspace_id,
|
|
103
|
+
"edited_by": edited_by,
|
|
104
|
+
"edited_at": edited_at,
|
|
105
|
+
"is_flow": is_flow,
|
|
106
|
+
}
|
|
107
|
+
)
|
|
108
|
+
if server_id is not UNSET:
|
|
109
|
+
field_dict["server_id"] = server_id
|
|
110
|
+
if delivery_config is not UNSET:
|
|
111
|
+
field_dict["delivery_config"] = delivery_config
|
|
112
|
+
if last_server_ping is not UNSET:
|
|
113
|
+
field_dict["last_server_ping"] = last_server_ping
|
|
114
|
+
if error is not UNSET:
|
|
115
|
+
field_dict["error"] = error
|
|
116
|
+
|
|
117
|
+
return field_dict
|
|
118
|
+
|
|
119
|
+
@classmethod
|
|
120
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
121
|
+
from ..models.get_gcp_trigger_response_200_delivery_config import GetGcpTriggerResponse200DeliveryConfig
|
|
122
|
+
from ..models.get_gcp_trigger_response_200_extra_perms import GetGcpTriggerResponse200ExtraPerms
|
|
123
|
+
|
|
124
|
+
d = src_dict.copy()
|
|
125
|
+
gcp_resource_path = d.pop("gcp_resource_path")
|
|
126
|
+
|
|
127
|
+
topic_id = d.pop("topic_id")
|
|
128
|
+
|
|
129
|
+
subscription_id = d.pop("subscription_id")
|
|
130
|
+
|
|
131
|
+
delivery_type = GetGcpTriggerResponse200DeliveryType(d.pop("delivery_type"))
|
|
132
|
+
|
|
133
|
+
enabled = d.pop("enabled")
|
|
134
|
+
|
|
135
|
+
path = d.pop("path")
|
|
136
|
+
|
|
137
|
+
script_path = d.pop("script_path")
|
|
138
|
+
|
|
139
|
+
email = d.pop("email")
|
|
140
|
+
|
|
141
|
+
extra_perms = GetGcpTriggerResponse200ExtraPerms.from_dict(d.pop("extra_perms"))
|
|
142
|
+
|
|
143
|
+
workspace_id = d.pop("workspace_id")
|
|
144
|
+
|
|
145
|
+
edited_by = d.pop("edited_by")
|
|
146
|
+
|
|
147
|
+
edited_at = isoparse(d.pop("edited_at"))
|
|
148
|
+
|
|
149
|
+
is_flow = d.pop("is_flow")
|
|
150
|
+
|
|
151
|
+
server_id = d.pop("server_id", UNSET)
|
|
152
|
+
|
|
153
|
+
_delivery_config = d.pop("delivery_config", UNSET)
|
|
154
|
+
delivery_config: Union[Unset, GetGcpTriggerResponse200DeliveryConfig]
|
|
155
|
+
if isinstance(_delivery_config, Unset):
|
|
156
|
+
delivery_config = UNSET
|
|
157
|
+
else:
|
|
158
|
+
delivery_config = GetGcpTriggerResponse200DeliveryConfig.from_dict(_delivery_config)
|
|
159
|
+
|
|
160
|
+
_last_server_ping = d.pop("last_server_ping", UNSET)
|
|
161
|
+
last_server_ping: Union[Unset, datetime.datetime]
|
|
162
|
+
if isinstance(_last_server_ping, Unset):
|
|
163
|
+
last_server_ping = UNSET
|
|
164
|
+
else:
|
|
165
|
+
last_server_ping = isoparse(_last_server_ping)
|
|
166
|
+
|
|
167
|
+
error = d.pop("error", UNSET)
|
|
168
|
+
|
|
169
|
+
get_gcp_trigger_response_200 = cls(
|
|
170
|
+
gcp_resource_path=gcp_resource_path,
|
|
171
|
+
topic_id=topic_id,
|
|
172
|
+
subscription_id=subscription_id,
|
|
173
|
+
delivery_type=delivery_type,
|
|
174
|
+
enabled=enabled,
|
|
175
|
+
path=path,
|
|
176
|
+
script_path=script_path,
|
|
177
|
+
email=email,
|
|
178
|
+
extra_perms=extra_perms,
|
|
179
|
+
workspace_id=workspace_id,
|
|
180
|
+
edited_by=edited_by,
|
|
181
|
+
edited_at=edited_at,
|
|
182
|
+
is_flow=is_flow,
|
|
183
|
+
server_id=server_id,
|
|
184
|
+
delivery_config=delivery_config,
|
|
185
|
+
last_server_ping=last_server_ping,
|
|
186
|
+
error=error,
|
|
187
|
+
)
|
|
188
|
+
|
|
189
|
+
get_gcp_trigger_response_200.additional_properties = d
|
|
190
|
+
return get_gcp_trigger_response_200
|
|
191
|
+
|
|
192
|
+
@property
|
|
193
|
+
def additional_keys(self) -> List[str]:
|
|
194
|
+
return list(self.additional_properties.keys())
|
|
195
|
+
|
|
196
|
+
def __getitem__(self, key: str) -> Any:
|
|
197
|
+
return self.additional_properties[key]
|
|
198
|
+
|
|
199
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
200
|
+
self.additional_properties[key] = value
|
|
201
|
+
|
|
202
|
+
def __delitem__(self, key: str) -> None:
|
|
203
|
+
del self.additional_properties[key]
|
|
204
|
+
|
|
205
|
+
def __contains__(self, key: str) -> bool:
|
|
206
|
+
return key in self.additional_properties
|