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,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="ListGcpTriggersResponse200ItemDeliveryConfig")
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
@_attrs_define
|
|
12
|
+
class ListGcpTriggersResponse200ItemDeliveryConfig:
|
|
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
|
+
list_gcp_triggers_response_200_item_delivery_config = cls(
|
|
53
|
+
authenticate=authenticate,
|
|
54
|
+
base_endpoint=base_endpoint,
|
|
55
|
+
audience=audience,
|
|
56
|
+
)
|
|
57
|
+
|
|
58
|
+
list_gcp_triggers_response_200_item_delivery_config.additional_properties = d
|
|
59
|
+
return list_gcp_triggers_response_200_item_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="ListGcpTriggersResponse200ItemExtraPerms")
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@_attrs_define
|
|
10
|
+
class ListGcpTriggersResponse200ItemExtraPerms:
|
|
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
|
+
list_gcp_triggers_response_200_item_extra_perms = cls()
|
|
26
|
+
|
|
27
|
+
list_gcp_triggers_response_200_item_extra_perms.additional_properties = d
|
|
28
|
+
return list_gcp_triggers_response_200_item_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
|
|
@@ -5,6 +5,9 @@ from attrs import define as _attrs_define
|
|
|
5
5
|
from attrs import field as _attrs_field
|
|
6
6
|
from dateutil.parser import isoparse
|
|
7
7
|
|
|
8
|
+
from ..models.list_sqs_triggers_response_200_item_aws_auth_resource_type import (
|
|
9
|
+
ListSqsTriggersResponse200ItemAwsAuthResourceType,
|
|
10
|
+
)
|
|
8
11
|
from ..types import UNSET, Unset
|
|
9
12
|
|
|
10
13
|
if TYPE_CHECKING:
|
|
@@ -19,6 +22,7 @@ class ListSqsTriggersResponse200Item:
|
|
|
19
22
|
"""
|
|
20
23
|
Attributes:
|
|
21
24
|
queue_url (str):
|
|
25
|
+
aws_auth_resource_type (ListSqsTriggersResponse200ItemAwsAuthResourceType):
|
|
22
26
|
aws_resource_path (str):
|
|
23
27
|
enabled (bool):
|
|
24
28
|
path (str):
|
|
@@ -36,6 +40,7 @@ class ListSqsTriggersResponse200Item:
|
|
|
36
40
|
"""
|
|
37
41
|
|
|
38
42
|
queue_url: str
|
|
43
|
+
aws_auth_resource_type: ListSqsTriggersResponse200ItemAwsAuthResourceType
|
|
39
44
|
aws_resource_path: str
|
|
40
45
|
enabled: bool
|
|
41
46
|
path: str
|
|
@@ -54,6 +59,8 @@ class ListSqsTriggersResponse200Item:
|
|
|
54
59
|
|
|
55
60
|
def to_dict(self) -> Dict[str, Any]:
|
|
56
61
|
queue_url = self.queue_url
|
|
62
|
+
aws_auth_resource_type = self.aws_auth_resource_type.value
|
|
63
|
+
|
|
57
64
|
aws_resource_path = self.aws_resource_path
|
|
58
65
|
enabled = self.enabled
|
|
59
66
|
path = self.path
|
|
@@ -82,6 +89,7 @@ class ListSqsTriggersResponse200Item:
|
|
|
82
89
|
field_dict.update(
|
|
83
90
|
{
|
|
84
91
|
"queue_url": queue_url,
|
|
92
|
+
"aws_auth_resource_type": aws_auth_resource_type,
|
|
85
93
|
"aws_resource_path": aws_resource_path,
|
|
86
94
|
"enabled": enabled,
|
|
87
95
|
"path": path,
|
|
@@ -112,6 +120,8 @@ class ListSqsTriggersResponse200Item:
|
|
|
112
120
|
d = src_dict.copy()
|
|
113
121
|
queue_url = d.pop("queue_url")
|
|
114
122
|
|
|
123
|
+
aws_auth_resource_type = ListSqsTriggersResponse200ItemAwsAuthResourceType(d.pop("aws_auth_resource_type"))
|
|
124
|
+
|
|
115
125
|
aws_resource_path = d.pop("aws_resource_path")
|
|
116
126
|
|
|
117
127
|
enabled = d.pop("enabled")
|
|
@@ -147,6 +157,7 @@ class ListSqsTriggersResponse200Item:
|
|
|
147
157
|
|
|
148
158
|
list_sqs_triggers_response_200_item = cls(
|
|
149
159
|
queue_url=queue_url,
|
|
160
|
+
aws_auth_resource_type=aws_auth_resource_type,
|
|
150
161
|
aws_resource_path=aws_resource_path,
|
|
151
162
|
enabled=enabled,
|
|
152
163
|
path=path,
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
|
|
2
|
+
|
|
3
|
+
from attrs import define as _attrs_define
|
|
4
|
+
from attrs import field as _attrs_field
|
|
5
|
+
|
|
6
|
+
from ..types import UNSET, Unset
|
|
7
|
+
|
|
8
|
+
if TYPE_CHECKING:
|
|
9
|
+
from ..models.new_gcp_trigger_subscription_mode import NewGcpTriggerSubscriptionMode
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
T = TypeVar("T", bound="NewGcpTrigger")
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
@_attrs_define
|
|
16
|
+
class NewGcpTrigger:
|
|
17
|
+
"""
|
|
18
|
+
Attributes:
|
|
19
|
+
gcp_resource_path (str):
|
|
20
|
+
topic_id (str):
|
|
21
|
+
subscription_mode (NewGcpTriggerSubscriptionMode): "This is a union type representing the subscription mode.
|
|
22
|
+
- 'existing': Represents an existing GCP subscription, and should be accompanied by an
|
|
23
|
+
'ExistingGcpSubscription' object.
|
|
24
|
+
- 'create_update': Represents a new or updated GCP subscription, and should be accompanied by a
|
|
25
|
+
'CreateUpdateConfig' object."
|
|
26
|
+
path (str):
|
|
27
|
+
script_path (str):
|
|
28
|
+
is_flow (bool):
|
|
29
|
+
enabled (Union[Unset, bool]):
|
|
30
|
+
"""
|
|
31
|
+
|
|
32
|
+
gcp_resource_path: str
|
|
33
|
+
topic_id: str
|
|
34
|
+
subscription_mode: "NewGcpTriggerSubscriptionMode"
|
|
35
|
+
path: str
|
|
36
|
+
script_path: str
|
|
37
|
+
is_flow: bool
|
|
38
|
+
enabled: Union[Unset, bool] = UNSET
|
|
39
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
40
|
+
|
|
41
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
42
|
+
gcp_resource_path = self.gcp_resource_path
|
|
43
|
+
topic_id = self.topic_id
|
|
44
|
+
subscription_mode = self.subscription_mode.to_dict()
|
|
45
|
+
|
|
46
|
+
path = self.path
|
|
47
|
+
script_path = self.script_path
|
|
48
|
+
is_flow = self.is_flow
|
|
49
|
+
enabled = self.enabled
|
|
50
|
+
|
|
51
|
+
field_dict: Dict[str, Any] = {}
|
|
52
|
+
field_dict.update(self.additional_properties)
|
|
53
|
+
field_dict.update(
|
|
54
|
+
{
|
|
55
|
+
"gcp_resource_path": gcp_resource_path,
|
|
56
|
+
"topic_id": topic_id,
|
|
57
|
+
"subscription_mode": subscription_mode,
|
|
58
|
+
"path": path,
|
|
59
|
+
"script_path": script_path,
|
|
60
|
+
"is_flow": is_flow,
|
|
61
|
+
}
|
|
62
|
+
)
|
|
63
|
+
if enabled is not UNSET:
|
|
64
|
+
field_dict["enabled"] = enabled
|
|
65
|
+
|
|
66
|
+
return field_dict
|
|
67
|
+
|
|
68
|
+
@classmethod
|
|
69
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
70
|
+
from ..models.new_gcp_trigger_subscription_mode import NewGcpTriggerSubscriptionMode
|
|
71
|
+
|
|
72
|
+
d = src_dict.copy()
|
|
73
|
+
gcp_resource_path = d.pop("gcp_resource_path")
|
|
74
|
+
|
|
75
|
+
topic_id = d.pop("topic_id")
|
|
76
|
+
|
|
77
|
+
subscription_mode = NewGcpTriggerSubscriptionMode.from_dict(d.pop("subscription_mode"))
|
|
78
|
+
|
|
79
|
+
path = d.pop("path")
|
|
80
|
+
|
|
81
|
+
script_path = d.pop("script_path")
|
|
82
|
+
|
|
83
|
+
is_flow = d.pop("is_flow")
|
|
84
|
+
|
|
85
|
+
enabled = d.pop("enabled", UNSET)
|
|
86
|
+
|
|
87
|
+
new_gcp_trigger = cls(
|
|
88
|
+
gcp_resource_path=gcp_resource_path,
|
|
89
|
+
topic_id=topic_id,
|
|
90
|
+
subscription_mode=subscription_mode,
|
|
91
|
+
path=path,
|
|
92
|
+
script_path=script_path,
|
|
93
|
+
is_flow=is_flow,
|
|
94
|
+
enabled=enabled,
|
|
95
|
+
)
|
|
96
|
+
|
|
97
|
+
new_gcp_trigger.additional_properties = d
|
|
98
|
+
return new_gcp_trigger
|
|
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
|
|
@@ -0,0 +1,66 @@
|
|
|
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
|
+
from ..models.new_gcp_trigger_subscription_mode_subscription_mode import NewGcpTriggerSubscriptionModeSubscriptionMode
|
|
7
|
+
|
|
8
|
+
T = TypeVar("T", bound="NewGcpTriggerSubscriptionMode")
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
@_attrs_define
|
|
12
|
+
class NewGcpTriggerSubscriptionMode:
|
|
13
|
+
""" "This is a union type representing the subscription mode.
|
|
14
|
+
- 'existing': Represents an existing GCP subscription, and should be accompanied by an 'ExistingGcpSubscription'
|
|
15
|
+
object.
|
|
16
|
+
- 'create_update': Represents a new or updated GCP subscription, and should be accompanied by a
|
|
17
|
+
'CreateUpdateConfig' object."
|
|
18
|
+
|
|
19
|
+
Attributes:
|
|
20
|
+
subscription_mode (NewGcpTriggerSubscriptionModeSubscriptionMode): The mode of subscription. 'existing' means
|
|
21
|
+
using an existing GCP subscription, while 'create_update' involves creating or updating a new subscription.
|
|
22
|
+
"""
|
|
23
|
+
|
|
24
|
+
subscription_mode: NewGcpTriggerSubscriptionModeSubscriptionMode
|
|
25
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
26
|
+
|
|
27
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
28
|
+
subscription_mode = self.subscription_mode.value
|
|
29
|
+
|
|
30
|
+
field_dict: Dict[str, Any] = {}
|
|
31
|
+
field_dict.update(self.additional_properties)
|
|
32
|
+
field_dict.update(
|
|
33
|
+
{
|
|
34
|
+
"subscription_mode": subscription_mode,
|
|
35
|
+
}
|
|
36
|
+
)
|
|
37
|
+
|
|
38
|
+
return field_dict
|
|
39
|
+
|
|
40
|
+
@classmethod
|
|
41
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
42
|
+
d = src_dict.copy()
|
|
43
|
+
subscription_mode = NewGcpTriggerSubscriptionModeSubscriptionMode(d.pop("subscription_mode"))
|
|
44
|
+
|
|
45
|
+
new_gcp_trigger_subscription_mode = cls(
|
|
46
|
+
subscription_mode=subscription_mode,
|
|
47
|
+
)
|
|
48
|
+
|
|
49
|
+
new_gcp_trigger_subscription_mode.additional_properties = d
|
|
50
|
+
return new_gcp_trigger_subscription_mode
|
|
51
|
+
|
|
52
|
+
@property
|
|
53
|
+
def additional_keys(self) -> List[str]:
|
|
54
|
+
return list(self.additional_properties.keys())
|
|
55
|
+
|
|
56
|
+
def __getitem__(self, key: str) -> Any:
|
|
57
|
+
return self.additional_properties[key]
|
|
58
|
+
|
|
59
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
60
|
+
self.additional_properties[key] = value
|
|
61
|
+
|
|
62
|
+
def __delitem__(self, key: str) -> None:
|
|
63
|
+
del self.additional_properties[key]
|
|
64
|
+
|
|
65
|
+
def __contains__(self, key: str) -> bool:
|
|
66
|
+
return key in self.additional_properties
|
|
@@ -3,6 +3,7 @@ from typing import Any, Dict, List, Type, TypeVar, Union, cast
|
|
|
3
3
|
from attrs import define as _attrs_define
|
|
4
4
|
from attrs import field as _attrs_field
|
|
5
5
|
|
|
6
|
+
from ..models.new_sqs_trigger_aws_auth_resource_type import NewSqsTriggerAwsAuthResourceType
|
|
6
7
|
from ..types import UNSET, Unset
|
|
7
8
|
|
|
8
9
|
T = TypeVar("T", bound="NewSqsTrigger")
|
|
@@ -13,6 +14,7 @@ class NewSqsTrigger:
|
|
|
13
14
|
"""
|
|
14
15
|
Attributes:
|
|
15
16
|
queue_url (str):
|
|
17
|
+
aws_auth_resource_type (NewSqsTriggerAwsAuthResourceType):
|
|
16
18
|
aws_resource_path (str):
|
|
17
19
|
path (str):
|
|
18
20
|
script_path (str):
|
|
@@ -22,6 +24,7 @@ class NewSqsTrigger:
|
|
|
22
24
|
"""
|
|
23
25
|
|
|
24
26
|
queue_url: str
|
|
27
|
+
aws_auth_resource_type: NewSqsTriggerAwsAuthResourceType
|
|
25
28
|
aws_resource_path: str
|
|
26
29
|
path: str
|
|
27
30
|
script_path: str
|
|
@@ -32,6 +35,8 @@ class NewSqsTrigger:
|
|
|
32
35
|
|
|
33
36
|
def to_dict(self) -> Dict[str, Any]:
|
|
34
37
|
queue_url = self.queue_url
|
|
38
|
+
aws_auth_resource_type = self.aws_auth_resource_type.value
|
|
39
|
+
|
|
35
40
|
aws_resource_path = self.aws_resource_path
|
|
36
41
|
path = self.path
|
|
37
42
|
script_path = self.script_path
|
|
@@ -47,6 +52,7 @@ class NewSqsTrigger:
|
|
|
47
52
|
field_dict.update(
|
|
48
53
|
{
|
|
49
54
|
"queue_url": queue_url,
|
|
55
|
+
"aws_auth_resource_type": aws_auth_resource_type,
|
|
50
56
|
"aws_resource_path": aws_resource_path,
|
|
51
57
|
"path": path,
|
|
52
58
|
"script_path": script_path,
|
|
@@ -65,6 +71,8 @@ class NewSqsTrigger:
|
|
|
65
71
|
d = src_dict.copy()
|
|
66
72
|
queue_url = d.pop("queue_url")
|
|
67
73
|
|
|
74
|
+
aws_auth_resource_type = NewSqsTriggerAwsAuthResourceType(d.pop("aws_auth_resource_type"))
|
|
75
|
+
|
|
68
76
|
aws_resource_path = d.pop("aws_resource_path")
|
|
69
77
|
|
|
70
78
|
path = d.pop("path")
|
|
@@ -79,6 +87,7 @@ class NewSqsTrigger:
|
|
|
79
87
|
|
|
80
88
|
new_sqs_trigger = cls(
|
|
81
89
|
queue_url=queue_url,
|
|
90
|
+
aws_auth_resource_type=aws_auth_resource_type,
|
|
82
91
|
aws_resource_path=aws_resource_path,
|
|
83
92
|
path=path,
|
|
84
93
|
script_path=script_path,
|
windmill_api/models/preview.py
CHANGED
|
@@ -21,6 +21,7 @@ class Preview:
|
|
|
21
21
|
args (PreviewArgs):
|
|
22
22
|
content (Union[Unset, str]):
|
|
23
23
|
path (Union[Unset, str]):
|
|
24
|
+
script_hash (Union[Unset, str]):
|
|
24
25
|
language (Union[Unset, PreviewLanguage]):
|
|
25
26
|
tag (Union[Unset, str]):
|
|
26
27
|
kind (Union[Unset, PreviewKind]):
|
|
@@ -31,6 +32,7 @@ class Preview:
|
|
|
31
32
|
args: "PreviewArgs"
|
|
32
33
|
content: Union[Unset, str] = UNSET
|
|
33
34
|
path: Union[Unset, str] = UNSET
|
|
35
|
+
script_hash: Union[Unset, str] = UNSET
|
|
34
36
|
language: Union[Unset, PreviewLanguage] = UNSET
|
|
35
37
|
tag: Union[Unset, str] = UNSET
|
|
36
38
|
kind: Union[Unset, PreviewKind] = UNSET
|
|
@@ -43,6 +45,7 @@ class Preview:
|
|
|
43
45
|
|
|
44
46
|
content = self.content
|
|
45
47
|
path = self.path
|
|
48
|
+
script_hash = self.script_hash
|
|
46
49
|
language: Union[Unset, str] = UNSET
|
|
47
50
|
if not isinstance(self.language, Unset):
|
|
48
51
|
language = self.language.value
|
|
@@ -66,6 +69,8 @@ class Preview:
|
|
|
66
69
|
field_dict["content"] = content
|
|
67
70
|
if path is not UNSET:
|
|
68
71
|
field_dict["path"] = path
|
|
72
|
+
if script_hash is not UNSET:
|
|
73
|
+
field_dict["script_hash"] = script_hash
|
|
69
74
|
if language is not UNSET:
|
|
70
75
|
field_dict["language"] = language
|
|
71
76
|
if tag is not UNSET:
|
|
@@ -90,6 +95,8 @@ class Preview:
|
|
|
90
95
|
|
|
91
96
|
path = d.pop("path", UNSET)
|
|
92
97
|
|
|
98
|
+
script_hash = d.pop("script_hash", UNSET)
|
|
99
|
+
|
|
93
100
|
_language = d.pop("language", UNSET)
|
|
94
101
|
language: Union[Unset, PreviewLanguage]
|
|
95
102
|
if isinstance(_language, Unset):
|
|
@@ -114,6 +121,7 @@ class Preview:
|
|
|
114
121
|
args=args,
|
|
115
122
|
content=content,
|
|
116
123
|
path=path,
|
|
124
|
+
script_hash=script_hash,
|
|
117
125
|
language=language,
|
|
118
126
|
tag=tag,
|
|
119
127
|
kind=kind,
|
|
@@ -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="PushConfig")
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
@_attrs_define
|
|
12
|
+
class PushConfig:
|
|
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
|
+
push_config = cls(
|
|
53
|
+
authenticate=authenticate,
|
|
54
|
+
base_endpoint=base_endpoint,
|
|
55
|
+
audience=audience,
|
|
56
|
+
)
|
|
57
|
+
|
|
58
|
+
push_config.additional_properties = d
|
|
59
|
+
return push_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
|
|
@@ -21,6 +21,7 @@ class RunScriptPreviewJsonBody:
|
|
|
21
21
|
args (RunScriptPreviewJsonBodyArgs):
|
|
22
22
|
content (Union[Unset, str]):
|
|
23
23
|
path (Union[Unset, str]):
|
|
24
|
+
script_hash (Union[Unset, str]):
|
|
24
25
|
language (Union[Unset, RunScriptPreviewJsonBodyLanguage]):
|
|
25
26
|
tag (Union[Unset, str]):
|
|
26
27
|
kind (Union[Unset, RunScriptPreviewJsonBodyKind]):
|
|
@@ -31,6 +32,7 @@ class RunScriptPreviewJsonBody:
|
|
|
31
32
|
args: "RunScriptPreviewJsonBodyArgs"
|
|
32
33
|
content: Union[Unset, str] = UNSET
|
|
33
34
|
path: Union[Unset, str] = UNSET
|
|
35
|
+
script_hash: Union[Unset, str] = UNSET
|
|
34
36
|
language: Union[Unset, RunScriptPreviewJsonBodyLanguage] = UNSET
|
|
35
37
|
tag: Union[Unset, str] = UNSET
|
|
36
38
|
kind: Union[Unset, RunScriptPreviewJsonBodyKind] = UNSET
|
|
@@ -43,6 +45,7 @@ class RunScriptPreviewJsonBody:
|
|
|
43
45
|
|
|
44
46
|
content = self.content
|
|
45
47
|
path = self.path
|
|
48
|
+
script_hash = self.script_hash
|
|
46
49
|
language: Union[Unset, str] = UNSET
|
|
47
50
|
if not isinstance(self.language, Unset):
|
|
48
51
|
language = self.language.value
|
|
@@ -66,6 +69,8 @@ class RunScriptPreviewJsonBody:
|
|
|
66
69
|
field_dict["content"] = content
|
|
67
70
|
if path is not UNSET:
|
|
68
71
|
field_dict["path"] = path
|
|
72
|
+
if script_hash is not UNSET:
|
|
73
|
+
field_dict["script_hash"] = script_hash
|
|
69
74
|
if language is not UNSET:
|
|
70
75
|
field_dict["language"] = language
|
|
71
76
|
if tag is not UNSET:
|
|
@@ -90,6 +95,8 @@ class RunScriptPreviewJsonBody:
|
|
|
90
95
|
|
|
91
96
|
path = d.pop("path", UNSET)
|
|
92
97
|
|
|
98
|
+
script_hash = d.pop("script_hash", UNSET)
|
|
99
|
+
|
|
93
100
|
_language = d.pop("language", UNSET)
|
|
94
101
|
language: Union[Unset, RunScriptPreviewJsonBodyLanguage]
|
|
95
102
|
if isinstance(_language, Unset):
|
|
@@ -114,6 +121,7 @@ class RunScriptPreviewJsonBody:
|
|
|
114
121
|
args=args,
|
|
115
122
|
content=content,
|
|
116
123
|
path=path,
|
|
124
|
+
script_hash=script_hash,
|
|
117
125
|
language=language,
|
|
118
126
|
tag=tag,
|
|
119
127
|
kind=kind,
|