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,86 @@
|
|
|
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.batch_re_run_jobs_json_body_flow_options_by_path_additional_property_input_transforms import (
|
|
10
|
+
BatchReRunJobsJsonBodyFlowOptionsByPathAdditionalPropertyInputTransforms,
|
|
11
|
+
)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
T = TypeVar("T", bound="BatchReRunJobsJsonBodyFlowOptionsByPathAdditionalProperty")
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
@_attrs_define
|
|
18
|
+
class BatchReRunJobsJsonBodyFlowOptionsByPathAdditionalProperty:
|
|
19
|
+
"""
|
|
20
|
+
Attributes:
|
|
21
|
+
input_transforms (Union[Unset, BatchReRunJobsJsonBodyFlowOptionsByPathAdditionalPropertyInputTransforms]):
|
|
22
|
+
use_latest_version (Union[Unset, bool]):
|
|
23
|
+
"""
|
|
24
|
+
|
|
25
|
+
input_transforms: Union[Unset, "BatchReRunJobsJsonBodyFlowOptionsByPathAdditionalPropertyInputTransforms"] = UNSET
|
|
26
|
+
use_latest_version: Union[Unset, bool] = UNSET
|
|
27
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
28
|
+
|
|
29
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
30
|
+
input_transforms: Union[Unset, Dict[str, Any]] = UNSET
|
|
31
|
+
if not isinstance(self.input_transforms, Unset):
|
|
32
|
+
input_transforms = self.input_transforms.to_dict()
|
|
33
|
+
|
|
34
|
+
use_latest_version = self.use_latest_version
|
|
35
|
+
|
|
36
|
+
field_dict: Dict[str, Any] = {}
|
|
37
|
+
field_dict.update(self.additional_properties)
|
|
38
|
+
field_dict.update({})
|
|
39
|
+
if input_transforms is not UNSET:
|
|
40
|
+
field_dict["input_transforms"] = input_transforms
|
|
41
|
+
if use_latest_version is not UNSET:
|
|
42
|
+
field_dict["use_latest_version"] = use_latest_version
|
|
43
|
+
|
|
44
|
+
return field_dict
|
|
45
|
+
|
|
46
|
+
@classmethod
|
|
47
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
48
|
+
from ..models.batch_re_run_jobs_json_body_flow_options_by_path_additional_property_input_transforms import (
|
|
49
|
+
BatchReRunJobsJsonBodyFlowOptionsByPathAdditionalPropertyInputTransforms,
|
|
50
|
+
)
|
|
51
|
+
|
|
52
|
+
d = src_dict.copy()
|
|
53
|
+
_input_transforms = d.pop("input_transforms", UNSET)
|
|
54
|
+
input_transforms: Union[Unset, BatchReRunJobsJsonBodyFlowOptionsByPathAdditionalPropertyInputTransforms]
|
|
55
|
+
if isinstance(_input_transforms, Unset):
|
|
56
|
+
input_transforms = UNSET
|
|
57
|
+
else:
|
|
58
|
+
input_transforms = BatchReRunJobsJsonBodyFlowOptionsByPathAdditionalPropertyInputTransforms.from_dict(
|
|
59
|
+
_input_transforms
|
|
60
|
+
)
|
|
61
|
+
|
|
62
|
+
use_latest_version = d.pop("use_latest_version", UNSET)
|
|
63
|
+
|
|
64
|
+
batch_re_run_jobs_json_body_flow_options_by_path_additional_property = cls(
|
|
65
|
+
input_transforms=input_transforms,
|
|
66
|
+
use_latest_version=use_latest_version,
|
|
67
|
+
)
|
|
68
|
+
|
|
69
|
+
batch_re_run_jobs_json_body_flow_options_by_path_additional_property.additional_properties = d
|
|
70
|
+
return batch_re_run_jobs_json_body_flow_options_by_path_additional_property
|
|
71
|
+
|
|
72
|
+
@property
|
|
73
|
+
def additional_keys(self) -> List[str]:
|
|
74
|
+
return list(self.additional_properties.keys())
|
|
75
|
+
|
|
76
|
+
def __getitem__(self, key: str) -> Any:
|
|
77
|
+
return self.additional_properties[key]
|
|
78
|
+
|
|
79
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
80
|
+
self.additional_properties[key] = value
|
|
81
|
+
|
|
82
|
+
def __delitem__(self, key: str) -> None:
|
|
83
|
+
del self.additional_properties[key]
|
|
84
|
+
|
|
85
|
+
def __contains__(self, key: str) -> bool:
|
|
86
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,123 @@
|
|
|
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
|
+
if TYPE_CHECKING:
|
|
7
|
+
from ..models.batch_re_run_jobs_json_body_flow_options_by_path_additional_property_input_transforms_additional_property_type_0 import (
|
|
8
|
+
BatchReRunJobsJsonBodyFlowOptionsByPathAdditionalPropertyInputTransformsAdditionalPropertyType0,
|
|
9
|
+
)
|
|
10
|
+
from ..models.batch_re_run_jobs_json_body_flow_options_by_path_additional_property_input_transforms_additional_property_type_1 import (
|
|
11
|
+
BatchReRunJobsJsonBodyFlowOptionsByPathAdditionalPropertyInputTransformsAdditionalPropertyType1,
|
|
12
|
+
)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
T = TypeVar("T", bound="BatchReRunJobsJsonBodyFlowOptionsByPathAdditionalPropertyInputTransforms")
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
@_attrs_define
|
|
19
|
+
class BatchReRunJobsJsonBodyFlowOptionsByPathAdditionalPropertyInputTransforms:
|
|
20
|
+
""" """
|
|
21
|
+
|
|
22
|
+
additional_properties: Dict[
|
|
23
|
+
str,
|
|
24
|
+
Union[
|
|
25
|
+
"BatchReRunJobsJsonBodyFlowOptionsByPathAdditionalPropertyInputTransformsAdditionalPropertyType0",
|
|
26
|
+
"BatchReRunJobsJsonBodyFlowOptionsByPathAdditionalPropertyInputTransformsAdditionalPropertyType1",
|
|
27
|
+
],
|
|
28
|
+
] = _attrs_field(init=False, factory=dict)
|
|
29
|
+
|
|
30
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
31
|
+
from ..models.batch_re_run_jobs_json_body_flow_options_by_path_additional_property_input_transforms_additional_property_type_0 import (
|
|
32
|
+
BatchReRunJobsJsonBodyFlowOptionsByPathAdditionalPropertyInputTransformsAdditionalPropertyType0,
|
|
33
|
+
)
|
|
34
|
+
|
|
35
|
+
field_dict: Dict[str, Any] = {}
|
|
36
|
+
for prop_name, prop in self.additional_properties.items():
|
|
37
|
+
if isinstance(
|
|
38
|
+
prop, BatchReRunJobsJsonBodyFlowOptionsByPathAdditionalPropertyInputTransformsAdditionalPropertyType0
|
|
39
|
+
):
|
|
40
|
+
field_dict[prop_name] = prop.to_dict()
|
|
41
|
+
|
|
42
|
+
else:
|
|
43
|
+
field_dict[prop_name] = prop.to_dict()
|
|
44
|
+
|
|
45
|
+
field_dict.update({})
|
|
46
|
+
|
|
47
|
+
return field_dict
|
|
48
|
+
|
|
49
|
+
@classmethod
|
|
50
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
51
|
+
from ..models.batch_re_run_jobs_json_body_flow_options_by_path_additional_property_input_transforms_additional_property_type_0 import (
|
|
52
|
+
BatchReRunJobsJsonBodyFlowOptionsByPathAdditionalPropertyInputTransformsAdditionalPropertyType0,
|
|
53
|
+
)
|
|
54
|
+
from ..models.batch_re_run_jobs_json_body_flow_options_by_path_additional_property_input_transforms_additional_property_type_1 import (
|
|
55
|
+
BatchReRunJobsJsonBodyFlowOptionsByPathAdditionalPropertyInputTransformsAdditionalPropertyType1,
|
|
56
|
+
)
|
|
57
|
+
|
|
58
|
+
d = src_dict.copy()
|
|
59
|
+
batch_re_run_jobs_json_body_flow_options_by_path_additional_property_input_transforms = cls()
|
|
60
|
+
|
|
61
|
+
additional_properties = {}
|
|
62
|
+
for prop_name, prop_dict in d.items():
|
|
63
|
+
|
|
64
|
+
def _parse_additional_property(
|
|
65
|
+
data: object,
|
|
66
|
+
) -> Union[
|
|
67
|
+
"BatchReRunJobsJsonBodyFlowOptionsByPathAdditionalPropertyInputTransformsAdditionalPropertyType0",
|
|
68
|
+
"BatchReRunJobsJsonBodyFlowOptionsByPathAdditionalPropertyInputTransformsAdditionalPropertyType1",
|
|
69
|
+
]:
|
|
70
|
+
try:
|
|
71
|
+
if not isinstance(data, dict):
|
|
72
|
+
raise TypeError()
|
|
73
|
+
additional_property_type_0 = BatchReRunJobsJsonBodyFlowOptionsByPathAdditionalPropertyInputTransformsAdditionalPropertyType0.from_dict(
|
|
74
|
+
data
|
|
75
|
+
)
|
|
76
|
+
|
|
77
|
+
return additional_property_type_0
|
|
78
|
+
except: # noqa: E722
|
|
79
|
+
pass
|
|
80
|
+
if not isinstance(data, dict):
|
|
81
|
+
raise TypeError()
|
|
82
|
+
additional_property_type_1 = BatchReRunJobsJsonBodyFlowOptionsByPathAdditionalPropertyInputTransformsAdditionalPropertyType1.from_dict(
|
|
83
|
+
data
|
|
84
|
+
)
|
|
85
|
+
|
|
86
|
+
return additional_property_type_1
|
|
87
|
+
|
|
88
|
+
additional_property = _parse_additional_property(prop_dict)
|
|
89
|
+
|
|
90
|
+
additional_properties[prop_name] = additional_property
|
|
91
|
+
|
|
92
|
+
batch_re_run_jobs_json_body_flow_options_by_path_additional_property_input_transforms.additional_properties = (
|
|
93
|
+
additional_properties
|
|
94
|
+
)
|
|
95
|
+
return batch_re_run_jobs_json_body_flow_options_by_path_additional_property_input_transforms
|
|
96
|
+
|
|
97
|
+
@property
|
|
98
|
+
def additional_keys(self) -> List[str]:
|
|
99
|
+
return list(self.additional_properties.keys())
|
|
100
|
+
|
|
101
|
+
def __getitem__(
|
|
102
|
+
self, key: str
|
|
103
|
+
) -> Union[
|
|
104
|
+
"BatchReRunJobsJsonBodyFlowOptionsByPathAdditionalPropertyInputTransformsAdditionalPropertyType0",
|
|
105
|
+
"BatchReRunJobsJsonBodyFlowOptionsByPathAdditionalPropertyInputTransformsAdditionalPropertyType1",
|
|
106
|
+
]:
|
|
107
|
+
return self.additional_properties[key]
|
|
108
|
+
|
|
109
|
+
def __setitem__(
|
|
110
|
+
self,
|
|
111
|
+
key: str,
|
|
112
|
+
value: Union[
|
|
113
|
+
"BatchReRunJobsJsonBodyFlowOptionsByPathAdditionalPropertyInputTransformsAdditionalPropertyType0",
|
|
114
|
+
"BatchReRunJobsJsonBodyFlowOptionsByPathAdditionalPropertyInputTransformsAdditionalPropertyType1",
|
|
115
|
+
],
|
|
116
|
+
) -> None:
|
|
117
|
+
self.additional_properties[key] = value
|
|
118
|
+
|
|
119
|
+
def __delitem__(self, key: str) -> None:
|
|
120
|
+
del self.additional_properties[key]
|
|
121
|
+
|
|
122
|
+
def __contains__(self, key: str) -> bool:
|
|
123
|
+
return key in self.additional_properties
|
|
@@ -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_flow_options_by_path_additional_property_input_transforms_additional_property_type_0_type import (
|
|
7
|
+
BatchReRunJobsJsonBodyFlowOptionsByPathAdditionalPropertyInputTransformsAdditionalPropertyType0Type,
|
|
8
|
+
)
|
|
9
|
+
from ..types import UNSET, Unset
|
|
10
|
+
|
|
11
|
+
T = TypeVar(
|
|
12
|
+
"T", bound="BatchReRunJobsJsonBodyFlowOptionsByPathAdditionalPropertyInputTransformsAdditionalPropertyType0"
|
|
13
|
+
)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
@_attrs_define
|
|
17
|
+
class BatchReRunJobsJsonBodyFlowOptionsByPathAdditionalPropertyInputTransformsAdditionalPropertyType0:
|
|
18
|
+
"""
|
|
19
|
+
Attributes:
|
|
20
|
+
type (BatchReRunJobsJsonBodyFlowOptionsByPathAdditionalPropertyInputTransformsAdditionalPropertyType0Type):
|
|
21
|
+
value (Union[Unset, Any]):
|
|
22
|
+
"""
|
|
23
|
+
|
|
24
|
+
type: BatchReRunJobsJsonBodyFlowOptionsByPathAdditionalPropertyInputTransformsAdditionalPropertyType0Type
|
|
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 = BatchReRunJobsJsonBodyFlowOptionsByPathAdditionalPropertyInputTransformsAdditionalPropertyType0Type(
|
|
49
|
+
d.pop("type")
|
|
50
|
+
)
|
|
51
|
+
|
|
52
|
+
value = d.pop("value", UNSET)
|
|
53
|
+
|
|
54
|
+
batch_re_run_jobs_json_body_flow_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_flow_options_by_path_additional_property_input_transforms_additional_property_type_0.additional_properties = (
|
|
60
|
+
d
|
|
61
|
+
)
|
|
62
|
+
return batch_re_run_jobs_json_body_flow_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_flow_options_by_path_additional_property_input_transforms_additional_property_type_1_type import (
|
|
7
|
+
BatchReRunJobsJsonBodyFlowOptionsByPathAdditionalPropertyInputTransformsAdditionalPropertyType1Type,
|
|
8
|
+
)
|
|
9
|
+
|
|
10
|
+
T = TypeVar(
|
|
11
|
+
"T", bound="BatchReRunJobsJsonBodyFlowOptionsByPathAdditionalPropertyInputTransformsAdditionalPropertyType1"
|
|
12
|
+
)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
@_attrs_define
|
|
16
|
+
class BatchReRunJobsJsonBodyFlowOptionsByPathAdditionalPropertyInputTransformsAdditionalPropertyType1:
|
|
17
|
+
"""
|
|
18
|
+
Attributes:
|
|
19
|
+
expr (str):
|
|
20
|
+
type (BatchReRunJobsJsonBodyFlowOptionsByPathAdditionalPropertyInputTransformsAdditionalPropertyType1Type):
|
|
21
|
+
"""
|
|
22
|
+
|
|
23
|
+
expr: str
|
|
24
|
+
type: BatchReRunJobsJsonBodyFlowOptionsByPathAdditionalPropertyInputTransformsAdditionalPropertyType1Type
|
|
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 = BatchReRunJobsJsonBodyFlowOptionsByPathAdditionalPropertyInputTransformsAdditionalPropertyType1Type(
|
|
48
|
+
d.pop("type")
|
|
49
|
+
)
|
|
50
|
+
|
|
51
|
+
batch_re_run_jobs_json_body_flow_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_flow_options_by_path_additional_property_input_transforms_additional_property_type_1.additional_properties = (
|
|
57
|
+
d
|
|
58
|
+
)
|
|
59
|
+
return batch_re_run_jobs_json_body_flow_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,66 @@
|
|
|
1
|
+
from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar
|
|
2
|
+
|
|
3
|
+
from attrs import define as _attrs_define
|
|
4
|
+
from attrs import field as _attrs_field
|
|
5
|
+
|
|
6
|
+
if TYPE_CHECKING:
|
|
7
|
+
from ..models.batch_re_run_jobs_json_body_script_options_by_path_additional_property import (
|
|
8
|
+
BatchReRunJobsJsonBodyScriptOptionsByPathAdditionalProperty,
|
|
9
|
+
)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
T = TypeVar("T", bound="BatchReRunJobsJsonBodyScriptOptionsByPath")
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
@_attrs_define
|
|
16
|
+
class BatchReRunJobsJsonBodyScriptOptionsByPath:
|
|
17
|
+
""" """
|
|
18
|
+
|
|
19
|
+
additional_properties: Dict[str, "BatchReRunJobsJsonBodyScriptOptionsByPathAdditionalProperty"] = _attrs_field(
|
|
20
|
+
init=False, factory=dict
|
|
21
|
+
)
|
|
22
|
+
|
|
23
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
24
|
+
pass
|
|
25
|
+
|
|
26
|
+
field_dict: Dict[str, Any] = {}
|
|
27
|
+
for prop_name, prop in self.additional_properties.items():
|
|
28
|
+
field_dict[prop_name] = prop.to_dict()
|
|
29
|
+
|
|
30
|
+
field_dict.update({})
|
|
31
|
+
|
|
32
|
+
return field_dict
|
|
33
|
+
|
|
34
|
+
@classmethod
|
|
35
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
36
|
+
from ..models.batch_re_run_jobs_json_body_script_options_by_path_additional_property import (
|
|
37
|
+
BatchReRunJobsJsonBodyScriptOptionsByPathAdditionalProperty,
|
|
38
|
+
)
|
|
39
|
+
|
|
40
|
+
d = src_dict.copy()
|
|
41
|
+
batch_re_run_jobs_json_body_script_options_by_path = cls()
|
|
42
|
+
|
|
43
|
+
additional_properties = {}
|
|
44
|
+
for prop_name, prop_dict in d.items():
|
|
45
|
+
additional_property = BatchReRunJobsJsonBodyScriptOptionsByPathAdditionalProperty.from_dict(prop_dict)
|
|
46
|
+
|
|
47
|
+
additional_properties[prop_name] = additional_property
|
|
48
|
+
|
|
49
|
+
batch_re_run_jobs_json_body_script_options_by_path.additional_properties = additional_properties
|
|
50
|
+
return batch_re_run_jobs_json_body_script_options_by_path
|
|
51
|
+
|
|
52
|
+
@property
|
|
53
|
+
def additional_keys(self) -> List[str]:
|
|
54
|
+
return list(self.additional_properties.keys())
|
|
55
|
+
|
|
56
|
+
def __getitem__(self, key: str) -> "BatchReRunJobsJsonBodyScriptOptionsByPathAdditionalProperty":
|
|
57
|
+
return self.additional_properties[key]
|
|
58
|
+
|
|
59
|
+
def __setitem__(self, key: str, value: "BatchReRunJobsJsonBodyScriptOptionsByPathAdditionalProperty") -> 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
|
|
@@ -0,0 +1,86 @@
|
|
|
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.batch_re_run_jobs_json_body_script_options_by_path_additional_property_input_transforms import (
|
|
10
|
+
BatchReRunJobsJsonBodyScriptOptionsByPathAdditionalPropertyInputTransforms,
|
|
11
|
+
)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
T = TypeVar("T", bound="BatchReRunJobsJsonBodyScriptOptionsByPathAdditionalProperty")
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
@_attrs_define
|
|
18
|
+
class BatchReRunJobsJsonBodyScriptOptionsByPathAdditionalProperty:
|
|
19
|
+
"""
|
|
20
|
+
Attributes:
|
|
21
|
+
input_transforms (Union[Unset, BatchReRunJobsJsonBodyScriptOptionsByPathAdditionalPropertyInputTransforms]):
|
|
22
|
+
use_latest_version (Union[Unset, bool]):
|
|
23
|
+
"""
|
|
24
|
+
|
|
25
|
+
input_transforms: Union[Unset, "BatchReRunJobsJsonBodyScriptOptionsByPathAdditionalPropertyInputTransforms"] = UNSET
|
|
26
|
+
use_latest_version: Union[Unset, bool] = UNSET
|
|
27
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
28
|
+
|
|
29
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
30
|
+
input_transforms: Union[Unset, Dict[str, Any]] = UNSET
|
|
31
|
+
if not isinstance(self.input_transforms, Unset):
|
|
32
|
+
input_transforms = self.input_transforms.to_dict()
|
|
33
|
+
|
|
34
|
+
use_latest_version = self.use_latest_version
|
|
35
|
+
|
|
36
|
+
field_dict: Dict[str, Any] = {}
|
|
37
|
+
field_dict.update(self.additional_properties)
|
|
38
|
+
field_dict.update({})
|
|
39
|
+
if input_transforms is not UNSET:
|
|
40
|
+
field_dict["input_transforms"] = input_transforms
|
|
41
|
+
if use_latest_version is not UNSET:
|
|
42
|
+
field_dict["use_latest_version"] = use_latest_version
|
|
43
|
+
|
|
44
|
+
return field_dict
|
|
45
|
+
|
|
46
|
+
@classmethod
|
|
47
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
48
|
+
from ..models.batch_re_run_jobs_json_body_script_options_by_path_additional_property_input_transforms import (
|
|
49
|
+
BatchReRunJobsJsonBodyScriptOptionsByPathAdditionalPropertyInputTransforms,
|
|
50
|
+
)
|
|
51
|
+
|
|
52
|
+
d = src_dict.copy()
|
|
53
|
+
_input_transforms = d.pop("input_transforms", UNSET)
|
|
54
|
+
input_transforms: Union[Unset, BatchReRunJobsJsonBodyScriptOptionsByPathAdditionalPropertyInputTransforms]
|
|
55
|
+
if isinstance(_input_transforms, Unset):
|
|
56
|
+
input_transforms = UNSET
|
|
57
|
+
else:
|
|
58
|
+
input_transforms = BatchReRunJobsJsonBodyScriptOptionsByPathAdditionalPropertyInputTransforms.from_dict(
|
|
59
|
+
_input_transforms
|
|
60
|
+
)
|
|
61
|
+
|
|
62
|
+
use_latest_version = d.pop("use_latest_version", UNSET)
|
|
63
|
+
|
|
64
|
+
batch_re_run_jobs_json_body_script_options_by_path_additional_property = cls(
|
|
65
|
+
input_transforms=input_transforms,
|
|
66
|
+
use_latest_version=use_latest_version,
|
|
67
|
+
)
|
|
68
|
+
|
|
69
|
+
batch_re_run_jobs_json_body_script_options_by_path_additional_property.additional_properties = d
|
|
70
|
+
return batch_re_run_jobs_json_body_script_options_by_path_additional_property
|
|
71
|
+
|
|
72
|
+
@property
|
|
73
|
+
def additional_keys(self) -> List[str]:
|
|
74
|
+
return list(self.additional_properties.keys())
|
|
75
|
+
|
|
76
|
+
def __getitem__(self, key: str) -> Any:
|
|
77
|
+
return self.additional_properties[key]
|
|
78
|
+
|
|
79
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
80
|
+
self.additional_properties[key] = value
|
|
81
|
+
|
|
82
|
+
def __delitem__(self, key: str) -> None:
|
|
83
|
+
del self.additional_properties[key]
|
|
84
|
+
|
|
85
|
+
def __contains__(self, key: str) -> bool:
|
|
86
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,123 @@
|
|
|
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
|
+
if TYPE_CHECKING:
|
|
7
|
+
from ..models.batch_re_run_jobs_json_body_script_options_by_path_additional_property_input_transforms_additional_property_type_0 import (
|
|
8
|
+
BatchReRunJobsJsonBodyScriptOptionsByPathAdditionalPropertyInputTransformsAdditionalPropertyType0,
|
|
9
|
+
)
|
|
10
|
+
from ..models.batch_re_run_jobs_json_body_script_options_by_path_additional_property_input_transforms_additional_property_type_1 import (
|
|
11
|
+
BatchReRunJobsJsonBodyScriptOptionsByPathAdditionalPropertyInputTransformsAdditionalPropertyType1,
|
|
12
|
+
)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
T = TypeVar("T", bound="BatchReRunJobsJsonBodyScriptOptionsByPathAdditionalPropertyInputTransforms")
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
@_attrs_define
|
|
19
|
+
class BatchReRunJobsJsonBodyScriptOptionsByPathAdditionalPropertyInputTransforms:
|
|
20
|
+
""" """
|
|
21
|
+
|
|
22
|
+
additional_properties: Dict[
|
|
23
|
+
str,
|
|
24
|
+
Union[
|
|
25
|
+
"BatchReRunJobsJsonBodyScriptOptionsByPathAdditionalPropertyInputTransformsAdditionalPropertyType0",
|
|
26
|
+
"BatchReRunJobsJsonBodyScriptOptionsByPathAdditionalPropertyInputTransformsAdditionalPropertyType1",
|
|
27
|
+
],
|
|
28
|
+
] = _attrs_field(init=False, factory=dict)
|
|
29
|
+
|
|
30
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
31
|
+
from ..models.batch_re_run_jobs_json_body_script_options_by_path_additional_property_input_transforms_additional_property_type_0 import (
|
|
32
|
+
BatchReRunJobsJsonBodyScriptOptionsByPathAdditionalPropertyInputTransformsAdditionalPropertyType0,
|
|
33
|
+
)
|
|
34
|
+
|
|
35
|
+
field_dict: Dict[str, Any] = {}
|
|
36
|
+
for prop_name, prop in self.additional_properties.items():
|
|
37
|
+
if isinstance(
|
|
38
|
+
prop, BatchReRunJobsJsonBodyScriptOptionsByPathAdditionalPropertyInputTransformsAdditionalPropertyType0
|
|
39
|
+
):
|
|
40
|
+
field_dict[prop_name] = prop.to_dict()
|
|
41
|
+
|
|
42
|
+
else:
|
|
43
|
+
field_dict[prop_name] = prop.to_dict()
|
|
44
|
+
|
|
45
|
+
field_dict.update({})
|
|
46
|
+
|
|
47
|
+
return field_dict
|
|
48
|
+
|
|
49
|
+
@classmethod
|
|
50
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
51
|
+
from ..models.batch_re_run_jobs_json_body_script_options_by_path_additional_property_input_transforms_additional_property_type_0 import (
|
|
52
|
+
BatchReRunJobsJsonBodyScriptOptionsByPathAdditionalPropertyInputTransformsAdditionalPropertyType0,
|
|
53
|
+
)
|
|
54
|
+
from ..models.batch_re_run_jobs_json_body_script_options_by_path_additional_property_input_transforms_additional_property_type_1 import (
|
|
55
|
+
BatchReRunJobsJsonBodyScriptOptionsByPathAdditionalPropertyInputTransformsAdditionalPropertyType1,
|
|
56
|
+
)
|
|
57
|
+
|
|
58
|
+
d = src_dict.copy()
|
|
59
|
+
batch_re_run_jobs_json_body_script_options_by_path_additional_property_input_transforms = cls()
|
|
60
|
+
|
|
61
|
+
additional_properties = {}
|
|
62
|
+
for prop_name, prop_dict in d.items():
|
|
63
|
+
|
|
64
|
+
def _parse_additional_property(
|
|
65
|
+
data: object,
|
|
66
|
+
) -> Union[
|
|
67
|
+
"BatchReRunJobsJsonBodyScriptOptionsByPathAdditionalPropertyInputTransformsAdditionalPropertyType0",
|
|
68
|
+
"BatchReRunJobsJsonBodyScriptOptionsByPathAdditionalPropertyInputTransformsAdditionalPropertyType1",
|
|
69
|
+
]:
|
|
70
|
+
try:
|
|
71
|
+
if not isinstance(data, dict):
|
|
72
|
+
raise TypeError()
|
|
73
|
+
additional_property_type_0 = BatchReRunJobsJsonBodyScriptOptionsByPathAdditionalPropertyInputTransformsAdditionalPropertyType0.from_dict(
|
|
74
|
+
data
|
|
75
|
+
)
|
|
76
|
+
|
|
77
|
+
return additional_property_type_0
|
|
78
|
+
except: # noqa: E722
|
|
79
|
+
pass
|
|
80
|
+
if not isinstance(data, dict):
|
|
81
|
+
raise TypeError()
|
|
82
|
+
additional_property_type_1 = BatchReRunJobsJsonBodyScriptOptionsByPathAdditionalPropertyInputTransformsAdditionalPropertyType1.from_dict(
|
|
83
|
+
data
|
|
84
|
+
)
|
|
85
|
+
|
|
86
|
+
return additional_property_type_1
|
|
87
|
+
|
|
88
|
+
additional_property = _parse_additional_property(prop_dict)
|
|
89
|
+
|
|
90
|
+
additional_properties[prop_name] = additional_property
|
|
91
|
+
|
|
92
|
+
batch_re_run_jobs_json_body_script_options_by_path_additional_property_input_transforms.additional_properties = (
|
|
93
|
+
additional_properties
|
|
94
|
+
)
|
|
95
|
+
return batch_re_run_jobs_json_body_script_options_by_path_additional_property_input_transforms
|
|
96
|
+
|
|
97
|
+
@property
|
|
98
|
+
def additional_keys(self) -> List[str]:
|
|
99
|
+
return list(self.additional_properties.keys())
|
|
100
|
+
|
|
101
|
+
def __getitem__(
|
|
102
|
+
self, key: str
|
|
103
|
+
) -> Union[
|
|
104
|
+
"BatchReRunJobsJsonBodyScriptOptionsByPathAdditionalPropertyInputTransformsAdditionalPropertyType0",
|
|
105
|
+
"BatchReRunJobsJsonBodyScriptOptionsByPathAdditionalPropertyInputTransformsAdditionalPropertyType1",
|
|
106
|
+
]:
|
|
107
|
+
return self.additional_properties[key]
|
|
108
|
+
|
|
109
|
+
def __setitem__(
|
|
110
|
+
self,
|
|
111
|
+
key: str,
|
|
112
|
+
value: Union[
|
|
113
|
+
"BatchReRunJobsJsonBodyScriptOptionsByPathAdditionalPropertyInputTransformsAdditionalPropertyType0",
|
|
114
|
+
"BatchReRunJobsJsonBodyScriptOptionsByPathAdditionalPropertyInputTransformsAdditionalPropertyType1",
|
|
115
|
+
],
|
|
116
|
+
) -> None:
|
|
117
|
+
self.additional_properties[key] = value
|
|
118
|
+
|
|
119
|
+
def __delitem__(self, key: str) -> None:
|
|
120
|
+
del self.additional_properties[key]
|
|
121
|
+
|
|
122
|
+
def __contains__(self, key: str) -> bool:
|
|
123
|
+
return key in self.additional_properties
|