windmill-api 1.481.0__py3-none-any.whl → 1.482.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/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/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/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/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_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/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/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/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-1.481.0.dist-info → windmill_api-1.482.1.dist-info}/METADATA +1 -1
- {windmill_api-1.481.0.dist-info → windmill_api-1.482.1.dist-info}/RECORD +116 -37
- {windmill_api-1.481.0.dist-info → windmill_api-1.482.1.dist-info}/LICENSE +0 -0
- {windmill_api-1.481.0.dist-info → windmill_api-1.482.1.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,78 @@
|
|
|
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 ..models.batch_re_run_jobs_json_body_script_options_by_path_additional_property_input_transforms_additional_property_type_0_type import (
|
|
7
|
+
BatchReRunJobsJsonBodyScriptOptionsByPathAdditionalPropertyInputTransformsAdditionalPropertyType0Type,
|
|
8
|
+
)
|
|
9
|
+
from ..types import UNSET, Unset
|
|
10
|
+
|
|
11
|
+
T = TypeVar(
|
|
12
|
+
"T", bound="BatchReRunJobsJsonBodyScriptOptionsByPathAdditionalPropertyInputTransformsAdditionalPropertyType0"
|
|
13
|
+
)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
@_attrs_define
|
|
17
|
+
class BatchReRunJobsJsonBodyScriptOptionsByPathAdditionalPropertyInputTransformsAdditionalPropertyType0:
|
|
18
|
+
"""
|
|
19
|
+
Attributes:
|
|
20
|
+
type (BatchReRunJobsJsonBodyScriptOptionsByPathAdditionalPropertyInputTransformsAdditionalPropertyType0Type):
|
|
21
|
+
value (Union[Unset, Any]):
|
|
22
|
+
"""
|
|
23
|
+
|
|
24
|
+
type: BatchReRunJobsJsonBodyScriptOptionsByPathAdditionalPropertyInputTransformsAdditionalPropertyType0Type
|
|
25
|
+
value: Union[Unset, Any] = UNSET
|
|
26
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
27
|
+
|
|
28
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
29
|
+
type = self.type.value
|
|
30
|
+
|
|
31
|
+
value = self.value
|
|
32
|
+
|
|
33
|
+
field_dict: Dict[str, Any] = {}
|
|
34
|
+
field_dict.update(self.additional_properties)
|
|
35
|
+
field_dict.update(
|
|
36
|
+
{
|
|
37
|
+
"type": type,
|
|
38
|
+
}
|
|
39
|
+
)
|
|
40
|
+
if value is not UNSET:
|
|
41
|
+
field_dict["value"] = value
|
|
42
|
+
|
|
43
|
+
return field_dict
|
|
44
|
+
|
|
45
|
+
@classmethod
|
|
46
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
47
|
+
d = src_dict.copy()
|
|
48
|
+
type = BatchReRunJobsJsonBodyScriptOptionsByPathAdditionalPropertyInputTransformsAdditionalPropertyType0Type(
|
|
49
|
+
d.pop("type")
|
|
50
|
+
)
|
|
51
|
+
|
|
52
|
+
value = d.pop("value", UNSET)
|
|
53
|
+
|
|
54
|
+
batch_re_run_jobs_json_body_script_options_by_path_additional_property_input_transforms_additional_property_type_0 = cls(
|
|
55
|
+
type=type,
|
|
56
|
+
value=value,
|
|
57
|
+
)
|
|
58
|
+
|
|
59
|
+
batch_re_run_jobs_json_body_script_options_by_path_additional_property_input_transforms_additional_property_type_0.additional_properties = (
|
|
60
|
+
d
|
|
61
|
+
)
|
|
62
|
+
return batch_re_run_jobs_json_body_script_options_by_path_additional_property_input_transforms_additional_property_type_0
|
|
63
|
+
|
|
64
|
+
@property
|
|
65
|
+
def additional_keys(self) -> List[str]:
|
|
66
|
+
return list(self.additional_properties.keys())
|
|
67
|
+
|
|
68
|
+
def __getitem__(self, key: str) -> Any:
|
|
69
|
+
return self.additional_properties[key]
|
|
70
|
+
|
|
71
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
72
|
+
self.additional_properties[key] = value
|
|
73
|
+
|
|
74
|
+
def __delitem__(self, key: str) -> None:
|
|
75
|
+
del self.additional_properties[key]
|
|
76
|
+
|
|
77
|
+
def __contains__(self, key: str) -> bool:
|
|
78
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,75 @@
|
|
|
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.batch_re_run_jobs_json_body_script_options_by_path_additional_property_input_transforms_additional_property_type_1_type import (
|
|
7
|
+
BatchReRunJobsJsonBodyScriptOptionsByPathAdditionalPropertyInputTransformsAdditionalPropertyType1Type,
|
|
8
|
+
)
|
|
9
|
+
|
|
10
|
+
T = TypeVar(
|
|
11
|
+
"T", bound="BatchReRunJobsJsonBodyScriptOptionsByPathAdditionalPropertyInputTransformsAdditionalPropertyType1"
|
|
12
|
+
)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
@_attrs_define
|
|
16
|
+
class BatchReRunJobsJsonBodyScriptOptionsByPathAdditionalPropertyInputTransformsAdditionalPropertyType1:
|
|
17
|
+
"""
|
|
18
|
+
Attributes:
|
|
19
|
+
expr (str):
|
|
20
|
+
type (BatchReRunJobsJsonBodyScriptOptionsByPathAdditionalPropertyInputTransformsAdditionalPropertyType1Type):
|
|
21
|
+
"""
|
|
22
|
+
|
|
23
|
+
expr: str
|
|
24
|
+
type: BatchReRunJobsJsonBodyScriptOptionsByPathAdditionalPropertyInputTransformsAdditionalPropertyType1Type
|
|
25
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
26
|
+
|
|
27
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
28
|
+
expr = self.expr
|
|
29
|
+
type = self.type.value
|
|
30
|
+
|
|
31
|
+
field_dict: Dict[str, Any] = {}
|
|
32
|
+
field_dict.update(self.additional_properties)
|
|
33
|
+
field_dict.update(
|
|
34
|
+
{
|
|
35
|
+
"expr": expr,
|
|
36
|
+
"type": type,
|
|
37
|
+
}
|
|
38
|
+
)
|
|
39
|
+
|
|
40
|
+
return field_dict
|
|
41
|
+
|
|
42
|
+
@classmethod
|
|
43
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
44
|
+
d = src_dict.copy()
|
|
45
|
+
expr = d.pop("expr")
|
|
46
|
+
|
|
47
|
+
type = BatchReRunJobsJsonBodyScriptOptionsByPathAdditionalPropertyInputTransformsAdditionalPropertyType1Type(
|
|
48
|
+
d.pop("type")
|
|
49
|
+
)
|
|
50
|
+
|
|
51
|
+
batch_re_run_jobs_json_body_script_options_by_path_additional_property_input_transforms_additional_property_type_1 = cls(
|
|
52
|
+
expr=expr,
|
|
53
|
+
type=type,
|
|
54
|
+
)
|
|
55
|
+
|
|
56
|
+
batch_re_run_jobs_json_body_script_options_by_path_additional_property_input_transforms_additional_property_type_1.additional_properties = (
|
|
57
|
+
d
|
|
58
|
+
)
|
|
59
|
+
return batch_re_run_jobs_json_body_script_options_by_path_additional_property_input_transforms_additional_property_type_1
|
|
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,73 @@
|
|
|
1
|
+
from typing import Any, Dict, List, Type, TypeVar, cast
|
|
2
|
+
|
|
3
|
+
from attrs import define as _attrs_define
|
|
4
|
+
from attrs import field as _attrs_field
|
|
5
|
+
|
|
6
|
+
T = TypeVar("T", bound="CreateAgentTokenJsonBody")
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@_attrs_define
|
|
10
|
+
class CreateAgentTokenJsonBody:
|
|
11
|
+
"""
|
|
12
|
+
Attributes:
|
|
13
|
+
worker_group (str):
|
|
14
|
+
tags (List[str]):
|
|
15
|
+
exp (int):
|
|
16
|
+
"""
|
|
17
|
+
|
|
18
|
+
worker_group: str
|
|
19
|
+
tags: List[str]
|
|
20
|
+
exp: int
|
|
21
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
22
|
+
|
|
23
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
24
|
+
worker_group = self.worker_group
|
|
25
|
+
tags = self.tags
|
|
26
|
+
|
|
27
|
+
exp = self.exp
|
|
28
|
+
|
|
29
|
+
field_dict: Dict[str, Any] = {}
|
|
30
|
+
field_dict.update(self.additional_properties)
|
|
31
|
+
field_dict.update(
|
|
32
|
+
{
|
|
33
|
+
"worker_group": worker_group,
|
|
34
|
+
"tags": tags,
|
|
35
|
+
"exp": exp,
|
|
36
|
+
}
|
|
37
|
+
)
|
|
38
|
+
|
|
39
|
+
return field_dict
|
|
40
|
+
|
|
41
|
+
@classmethod
|
|
42
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
43
|
+
d = src_dict.copy()
|
|
44
|
+
worker_group = d.pop("worker_group")
|
|
45
|
+
|
|
46
|
+
tags = cast(List[str], d.pop("tags"))
|
|
47
|
+
|
|
48
|
+
exp = d.pop("exp")
|
|
49
|
+
|
|
50
|
+
create_agent_token_json_body = cls(
|
|
51
|
+
worker_group=worker_group,
|
|
52
|
+
tags=tags,
|
|
53
|
+
exp=exp,
|
|
54
|
+
)
|
|
55
|
+
|
|
56
|
+
create_agent_token_json_body.additional_properties = d
|
|
57
|
+
return create_agent_token_json_body
|
|
58
|
+
|
|
59
|
+
@property
|
|
60
|
+
def additional_keys(self) -> List[str]:
|
|
61
|
+
return list(self.additional_properties.keys())
|
|
62
|
+
|
|
63
|
+
def __getitem__(self, key: str) -> Any:
|
|
64
|
+
return self.additional_properties[key]
|
|
65
|
+
|
|
66
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
67
|
+
self.additional_properties[key] = value
|
|
68
|
+
|
|
69
|
+
def __delitem__(self, key: str) -> None:
|
|
70
|
+
del self.additional_properties[key]
|
|
71
|
+
|
|
72
|
+
def __contains__(self, key: str) -> bool:
|
|
73
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,115 @@
|
|
|
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.create_gcp_trigger_json_body_subscription_mode import CreateGcpTriggerJsonBodySubscriptionMode
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
T = TypeVar("T", bound="CreateGcpTriggerJsonBody")
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
@_attrs_define
|
|
16
|
+
class CreateGcpTriggerJsonBody:
|
|
17
|
+
"""
|
|
18
|
+
Attributes:
|
|
19
|
+
gcp_resource_path (str):
|
|
20
|
+
topic_id (str):
|
|
21
|
+
subscription_mode (CreateGcpTriggerJsonBodySubscriptionMode): "This is a union type representing the
|
|
22
|
+
subscription mode.
|
|
23
|
+
- 'existing': Represents an existing GCP subscription, and should be accompanied by an
|
|
24
|
+
'ExistingGcpSubscription' object.
|
|
25
|
+
- 'create_update': Represents a new or updated GCP subscription, and should be accompanied by a
|
|
26
|
+
'CreateUpdateConfig' object."
|
|
27
|
+
path (str):
|
|
28
|
+
script_path (str):
|
|
29
|
+
is_flow (bool):
|
|
30
|
+
enabled (Union[Unset, bool]):
|
|
31
|
+
"""
|
|
32
|
+
|
|
33
|
+
gcp_resource_path: str
|
|
34
|
+
topic_id: str
|
|
35
|
+
subscription_mode: "CreateGcpTriggerJsonBodySubscriptionMode"
|
|
36
|
+
path: str
|
|
37
|
+
script_path: str
|
|
38
|
+
is_flow: bool
|
|
39
|
+
enabled: Union[Unset, bool] = UNSET
|
|
40
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
41
|
+
|
|
42
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
43
|
+
gcp_resource_path = self.gcp_resource_path
|
|
44
|
+
topic_id = self.topic_id
|
|
45
|
+
subscription_mode = self.subscription_mode.to_dict()
|
|
46
|
+
|
|
47
|
+
path = self.path
|
|
48
|
+
script_path = self.script_path
|
|
49
|
+
is_flow = self.is_flow
|
|
50
|
+
enabled = self.enabled
|
|
51
|
+
|
|
52
|
+
field_dict: Dict[str, Any] = {}
|
|
53
|
+
field_dict.update(self.additional_properties)
|
|
54
|
+
field_dict.update(
|
|
55
|
+
{
|
|
56
|
+
"gcp_resource_path": gcp_resource_path,
|
|
57
|
+
"topic_id": topic_id,
|
|
58
|
+
"subscription_mode": subscription_mode,
|
|
59
|
+
"path": path,
|
|
60
|
+
"script_path": script_path,
|
|
61
|
+
"is_flow": is_flow,
|
|
62
|
+
}
|
|
63
|
+
)
|
|
64
|
+
if enabled is not UNSET:
|
|
65
|
+
field_dict["enabled"] = enabled
|
|
66
|
+
|
|
67
|
+
return field_dict
|
|
68
|
+
|
|
69
|
+
@classmethod
|
|
70
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
71
|
+
from ..models.create_gcp_trigger_json_body_subscription_mode import CreateGcpTriggerJsonBodySubscriptionMode
|
|
72
|
+
|
|
73
|
+
d = src_dict.copy()
|
|
74
|
+
gcp_resource_path = d.pop("gcp_resource_path")
|
|
75
|
+
|
|
76
|
+
topic_id = d.pop("topic_id")
|
|
77
|
+
|
|
78
|
+
subscription_mode = CreateGcpTriggerJsonBodySubscriptionMode.from_dict(d.pop("subscription_mode"))
|
|
79
|
+
|
|
80
|
+
path = d.pop("path")
|
|
81
|
+
|
|
82
|
+
script_path = d.pop("script_path")
|
|
83
|
+
|
|
84
|
+
is_flow = d.pop("is_flow")
|
|
85
|
+
|
|
86
|
+
enabled = d.pop("enabled", UNSET)
|
|
87
|
+
|
|
88
|
+
create_gcp_trigger_json_body = cls(
|
|
89
|
+
gcp_resource_path=gcp_resource_path,
|
|
90
|
+
topic_id=topic_id,
|
|
91
|
+
subscription_mode=subscription_mode,
|
|
92
|
+
path=path,
|
|
93
|
+
script_path=script_path,
|
|
94
|
+
is_flow=is_flow,
|
|
95
|
+
enabled=enabled,
|
|
96
|
+
)
|
|
97
|
+
|
|
98
|
+
create_gcp_trigger_json_body.additional_properties = d
|
|
99
|
+
return create_gcp_trigger_json_body
|
|
100
|
+
|
|
101
|
+
@property
|
|
102
|
+
def additional_keys(self) -> List[str]:
|
|
103
|
+
return list(self.additional_properties.keys())
|
|
104
|
+
|
|
105
|
+
def __getitem__(self, key: str) -> Any:
|
|
106
|
+
return self.additional_properties[key]
|
|
107
|
+
|
|
108
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
109
|
+
self.additional_properties[key] = value
|
|
110
|
+
|
|
111
|
+
def __delitem__(self, key: str) -> None:
|
|
112
|
+
del self.additional_properties[key]
|
|
113
|
+
|
|
114
|
+
def __contains__(self, key: str) -> bool:
|
|
115
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,69 @@
|
|
|
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.create_gcp_trigger_json_body_subscription_mode_subscription_mode import (
|
|
7
|
+
CreateGcpTriggerJsonBodySubscriptionModeSubscriptionMode,
|
|
8
|
+
)
|
|
9
|
+
|
|
10
|
+
T = TypeVar("T", bound="CreateGcpTriggerJsonBodySubscriptionMode")
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
@_attrs_define
|
|
14
|
+
class CreateGcpTriggerJsonBodySubscriptionMode:
|
|
15
|
+
""" "This is a union type representing the subscription mode.
|
|
16
|
+
- 'existing': Represents an existing GCP subscription, and should be accompanied by an 'ExistingGcpSubscription'
|
|
17
|
+
object.
|
|
18
|
+
- 'create_update': Represents a new or updated GCP subscription, and should be accompanied by a
|
|
19
|
+
'CreateUpdateConfig' object."
|
|
20
|
+
|
|
21
|
+
Attributes:
|
|
22
|
+
subscription_mode (CreateGcpTriggerJsonBodySubscriptionModeSubscriptionMode): The mode of subscription.
|
|
23
|
+
'existing' means using an existing GCP subscription, while 'create_update' involves creating or updating a new
|
|
24
|
+
subscription.
|
|
25
|
+
"""
|
|
26
|
+
|
|
27
|
+
subscription_mode: CreateGcpTriggerJsonBodySubscriptionModeSubscriptionMode
|
|
28
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
29
|
+
|
|
30
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
31
|
+
subscription_mode = self.subscription_mode.value
|
|
32
|
+
|
|
33
|
+
field_dict: Dict[str, Any] = {}
|
|
34
|
+
field_dict.update(self.additional_properties)
|
|
35
|
+
field_dict.update(
|
|
36
|
+
{
|
|
37
|
+
"subscription_mode": subscription_mode,
|
|
38
|
+
}
|
|
39
|
+
)
|
|
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
|
+
subscription_mode = CreateGcpTriggerJsonBodySubscriptionModeSubscriptionMode(d.pop("subscription_mode"))
|
|
47
|
+
|
|
48
|
+
create_gcp_trigger_json_body_subscription_mode = cls(
|
|
49
|
+
subscription_mode=subscription_mode,
|
|
50
|
+
)
|
|
51
|
+
|
|
52
|
+
create_gcp_trigger_json_body_subscription_mode.additional_properties = d
|
|
53
|
+
return create_gcp_trigger_json_body_subscription_mode
|
|
54
|
+
|
|
55
|
+
@property
|
|
56
|
+
def additional_keys(self) -> List[str]:
|
|
57
|
+
return list(self.additional_properties.keys())
|
|
58
|
+
|
|
59
|
+
def __getitem__(self, key: str) -> Any:
|
|
60
|
+
return self.additional_properties[key]
|
|
61
|
+
|
|
62
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
63
|
+
self.additional_properties[key] = value
|
|
64
|
+
|
|
65
|
+
def __delitem__(self, key: str) -> None:
|
|
66
|
+
del self.additional_properties[key]
|
|
67
|
+
|
|
68
|
+
def __contains__(self, key: str) -> bool:
|
|
69
|
+
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="DeleteGcpSubscription")
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@_attrs_define
|
|
10
|
+
class DeleteGcpSubscription:
|
|
11
|
+
"""
|
|
12
|
+
Attributes:
|
|
13
|
+
subscription_id (str):
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
subscription_id: str
|
|
17
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
18
|
+
|
|
19
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
20
|
+
subscription_id = self.subscription_id
|
|
21
|
+
|
|
22
|
+
field_dict: Dict[str, Any] = {}
|
|
23
|
+
field_dict.update(self.additional_properties)
|
|
24
|
+
field_dict.update(
|
|
25
|
+
{
|
|
26
|
+
"subscription_id": subscription_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
|
+
subscription_id = d.pop("subscription_id")
|
|
36
|
+
|
|
37
|
+
delete_gcp_subscription = cls(
|
|
38
|
+
subscription_id=subscription_id,
|
|
39
|
+
)
|
|
40
|
+
|
|
41
|
+
delete_gcp_subscription.additional_properties = d
|
|
42
|
+
return delete_gcp_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,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="DeleteGcpSubscriptionJsonBody")
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@_attrs_define
|
|
10
|
+
class DeleteGcpSubscriptionJsonBody:
|
|
11
|
+
"""
|
|
12
|
+
Attributes:
|
|
13
|
+
subscription_id (str):
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
subscription_id: str
|
|
17
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
18
|
+
|
|
19
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
20
|
+
subscription_id = self.subscription_id
|
|
21
|
+
|
|
22
|
+
field_dict: Dict[str, Any] = {}
|
|
23
|
+
field_dict.update(self.additional_properties)
|
|
24
|
+
field_dict.update(
|
|
25
|
+
{
|
|
26
|
+
"subscription_id": subscription_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
|
+
subscription_id = d.pop("subscription_id")
|
|
36
|
+
|
|
37
|
+
delete_gcp_subscription_json_body = cls(
|
|
38
|
+
subscription_id=subscription_id,
|
|
39
|
+
)
|
|
40
|
+
|
|
41
|
+
delete_gcp_subscription_json_body.additional_properties = d
|
|
42
|
+
return delete_gcp_subscription_json_body
|
|
43
|
+
|
|
44
|
+
@property
|
|
45
|
+
def additional_keys(self) -> List[str]:
|
|
46
|
+
return list(self.additional_properties.keys())
|
|
47
|
+
|
|
48
|
+
def __getitem__(self, key: str) -> Any:
|
|
49
|
+
return self.additional_properties[key]
|
|
50
|
+
|
|
51
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
52
|
+
self.additional_properties[key] = value
|
|
53
|
+
|
|
54
|
+
def __delitem__(self, key: str) -> None:
|
|
55
|
+
del self.additional_properties[key]
|
|
56
|
+
|
|
57
|
+
def __contains__(self, key: str) -> bool:
|
|
58
|
+
return key in self.additional_properties
|