windmill-api 1.543.0__py3-none-any.whl → 1.544.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/job/{openai_sync_flow_by_path.py → run_dynamic_select.py} +10 -51
- windmill_api/api/job/run_wait_result_flow_by_path.py +9 -0
- windmill_api/api/job/run_wait_result_script_by_path.py +9 -0
- windmill_api/api/job/run_wait_result_script_by_path_get.py +9 -0
- windmill_api/models/ai_config.py +18 -0
- windmill_api/models/ai_config_max_tokens_per_model.py +44 -0
- windmill_api/models/create_gcp_trigger_json_body.py +9 -0
- windmill_api/models/dynamic_input_data.py +118 -0
- windmill_api/models/{openai_sync_flow_by_path_json_body.py → dynamic_input_data_args.py} +6 -6
- windmill_api/models/dynamic_input_data_runnable_ref_type_0.py +76 -0
- windmill_api/models/dynamic_input_data_runnable_ref_type_0_runnable_kind.py +9 -0
- windmill_api/models/dynamic_input_data_runnable_ref_type_0_source.py +8 -0
- windmill_api/models/dynamic_input_data_runnable_ref_type_1.py +85 -0
- windmill_api/models/dynamic_input_data_runnable_ref_type_1_language.py +29 -0
- windmill_api/models/dynamic_input_data_runnable_ref_type_1_source.py +8 -0
- windmill_api/models/edit_copilot_config_json_body.py +20 -0
- windmill_api/models/edit_copilot_config_json_body_max_tokens_per_model.py +44 -0
- windmill_api/models/edit_large_file_storage_config_json_body_large_file_storage.py +33 -0
- windmill_api/models/edit_large_file_storage_config_json_body_large_file_storage_advanced_permissions_item.py +65 -0
- windmill_api/models/gcp_trigger_data.py +9 -0
- windmill_api/models/get_copilot_info_response_200.py +20 -0
- windmill_api/models/get_copilot_info_response_200_max_tokens_per_model.py +44 -0
- windmill_api/models/get_large_file_storage_config_response_200.py +28 -0
- windmill_api/models/get_large_file_storage_config_response_200_advanced_permissions_item.py +65 -0
- windmill_api/models/get_runnable_response_200.py +0 -7
- windmill_api/models/get_settings_response_200_ai_config.py +22 -0
- windmill_api/models/get_settings_response_200_ai_config_max_tokens_per_model.py +44 -0
- windmill_api/models/get_settings_response_200_large_file_storage.py +28 -0
- windmill_api/models/get_settings_response_200_large_file_storage_advanced_permissions_item.py +65 -0
- windmill_api/models/large_file_storage.py +24 -0
- windmill_api/models/large_file_storage_advanced_permissions_item.py +65 -0
- windmill_api/models/run_dynamic_select_json_body.py +118 -0
- windmill_api/models/{openai_sync_script_by_path_json_body.py → run_dynamic_select_json_body_args.py} +6 -6
- windmill_api/models/run_dynamic_select_json_body_runnable_ref_type_0.py +80 -0
- windmill_api/models/run_dynamic_select_json_body_runnable_ref_type_0_runnable_kind.py +9 -0
- windmill_api/models/run_dynamic_select_json_body_runnable_ref_type_0_source.py +8 -0
- windmill_api/models/run_dynamic_select_json_body_runnable_ref_type_1.py +89 -0
- windmill_api/models/run_dynamic_select_json_body_runnable_ref_type_1_language.py +29 -0
- windmill_api/models/run_dynamic_select_json_body_runnable_ref_type_1_source.py +8 -0
- windmill_api/models/s3_permission_rule.py +65 -0
- windmill_api/models/update_gcp_trigger_json_body.py +9 -0
- {windmill_api-1.543.0.dist-info → windmill_api-1.544.1.dist-info}/METADATA +1 -1
- {windmill_api-1.543.0.dist-info → windmill_api-1.544.1.dist-info}/RECORD +45 -23
- windmill_api/api/job/openai_sync_script_by_path.py +0 -155
- {windmill_api-1.543.0.dist-info → windmill_api-1.544.1.dist-info}/LICENSE +0 -0
- {windmill_api-1.543.0.dist-info → windmill_api-1.544.1.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,118 @@
|
|
|
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.run_dynamic_select_json_body_args import RunDynamicSelectJsonBodyArgs
|
|
10
|
+
from ..models.run_dynamic_select_json_body_runnable_ref_type_0 import RunDynamicSelectJsonBodyRunnableRefType0
|
|
11
|
+
from ..models.run_dynamic_select_json_body_runnable_ref_type_1 import RunDynamicSelectJsonBodyRunnableRefType1
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
T = TypeVar("T", bound="RunDynamicSelectJsonBody")
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
@_attrs_define
|
|
18
|
+
class RunDynamicSelectJsonBody:
|
|
19
|
+
"""
|
|
20
|
+
Attributes:
|
|
21
|
+
entrypoint_function (str): Name of the function to execute for dynamic select
|
|
22
|
+
runnable_ref (Union['RunDynamicSelectJsonBodyRunnableRefType0', 'RunDynamicSelectJsonBodyRunnableRefType1']):
|
|
23
|
+
args (Union[Unset, RunDynamicSelectJsonBodyArgs]): Arguments to pass to the function
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
entrypoint_function: str
|
|
27
|
+
runnable_ref: Union["RunDynamicSelectJsonBodyRunnableRefType0", "RunDynamicSelectJsonBodyRunnableRefType1"]
|
|
28
|
+
args: Union[Unset, "RunDynamicSelectJsonBodyArgs"] = UNSET
|
|
29
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
30
|
+
|
|
31
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
32
|
+
from ..models.run_dynamic_select_json_body_runnable_ref_type_0 import RunDynamicSelectJsonBodyRunnableRefType0
|
|
33
|
+
|
|
34
|
+
entrypoint_function = self.entrypoint_function
|
|
35
|
+
runnable_ref: Dict[str, Any]
|
|
36
|
+
|
|
37
|
+
if isinstance(self.runnable_ref, RunDynamicSelectJsonBodyRunnableRefType0):
|
|
38
|
+
runnable_ref = self.runnable_ref.to_dict()
|
|
39
|
+
|
|
40
|
+
else:
|
|
41
|
+
runnable_ref = self.runnable_ref.to_dict()
|
|
42
|
+
|
|
43
|
+
args: Union[Unset, Dict[str, Any]] = UNSET
|
|
44
|
+
if not isinstance(self.args, Unset):
|
|
45
|
+
args = self.args.to_dict()
|
|
46
|
+
|
|
47
|
+
field_dict: Dict[str, Any] = {}
|
|
48
|
+
field_dict.update(self.additional_properties)
|
|
49
|
+
field_dict.update(
|
|
50
|
+
{
|
|
51
|
+
"entrypoint_function": entrypoint_function,
|
|
52
|
+
"runnable_ref": runnable_ref,
|
|
53
|
+
}
|
|
54
|
+
)
|
|
55
|
+
if args is not UNSET:
|
|
56
|
+
field_dict["args"] = args
|
|
57
|
+
|
|
58
|
+
return field_dict
|
|
59
|
+
|
|
60
|
+
@classmethod
|
|
61
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
62
|
+
from ..models.run_dynamic_select_json_body_args import RunDynamicSelectJsonBodyArgs
|
|
63
|
+
from ..models.run_dynamic_select_json_body_runnable_ref_type_0 import RunDynamicSelectJsonBodyRunnableRefType0
|
|
64
|
+
from ..models.run_dynamic_select_json_body_runnable_ref_type_1 import RunDynamicSelectJsonBodyRunnableRefType1
|
|
65
|
+
|
|
66
|
+
d = src_dict.copy()
|
|
67
|
+
entrypoint_function = d.pop("entrypoint_function")
|
|
68
|
+
|
|
69
|
+
def _parse_runnable_ref(
|
|
70
|
+
data: object,
|
|
71
|
+
) -> Union["RunDynamicSelectJsonBodyRunnableRefType0", "RunDynamicSelectJsonBodyRunnableRefType1"]:
|
|
72
|
+
try:
|
|
73
|
+
if not isinstance(data, dict):
|
|
74
|
+
raise TypeError()
|
|
75
|
+
runnable_ref_type_0 = RunDynamicSelectJsonBodyRunnableRefType0.from_dict(data)
|
|
76
|
+
|
|
77
|
+
return runnable_ref_type_0
|
|
78
|
+
except: # noqa: E722
|
|
79
|
+
pass
|
|
80
|
+
if not isinstance(data, dict):
|
|
81
|
+
raise TypeError()
|
|
82
|
+
runnable_ref_type_1 = RunDynamicSelectJsonBodyRunnableRefType1.from_dict(data)
|
|
83
|
+
|
|
84
|
+
return runnable_ref_type_1
|
|
85
|
+
|
|
86
|
+
runnable_ref = _parse_runnable_ref(d.pop("runnable_ref"))
|
|
87
|
+
|
|
88
|
+
_args = d.pop("args", UNSET)
|
|
89
|
+
args: Union[Unset, RunDynamicSelectJsonBodyArgs]
|
|
90
|
+
if isinstance(_args, Unset):
|
|
91
|
+
args = UNSET
|
|
92
|
+
else:
|
|
93
|
+
args = RunDynamicSelectJsonBodyArgs.from_dict(_args)
|
|
94
|
+
|
|
95
|
+
run_dynamic_select_json_body = cls(
|
|
96
|
+
entrypoint_function=entrypoint_function,
|
|
97
|
+
runnable_ref=runnable_ref,
|
|
98
|
+
args=args,
|
|
99
|
+
)
|
|
100
|
+
|
|
101
|
+
run_dynamic_select_json_body.additional_properties = d
|
|
102
|
+
return run_dynamic_select_json_body
|
|
103
|
+
|
|
104
|
+
@property
|
|
105
|
+
def additional_keys(self) -> List[str]:
|
|
106
|
+
return list(self.additional_properties.keys())
|
|
107
|
+
|
|
108
|
+
def __getitem__(self, key: str) -> Any:
|
|
109
|
+
return self.additional_properties[key]
|
|
110
|
+
|
|
111
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
112
|
+
self.additional_properties[key] = value
|
|
113
|
+
|
|
114
|
+
def __delitem__(self, key: str) -> None:
|
|
115
|
+
del self.additional_properties[key]
|
|
116
|
+
|
|
117
|
+
def __contains__(self, key: str) -> bool:
|
|
118
|
+
return key in self.additional_properties
|
windmill_api/models/{openai_sync_script_by_path_json_body.py → run_dynamic_select_json_body_args.py}
RENAMED
|
@@ -3,12 +3,12 @@ from typing import Any, Dict, List, Type, TypeVar
|
|
|
3
3
|
from attrs import define as _attrs_define
|
|
4
4
|
from attrs import field as _attrs_field
|
|
5
5
|
|
|
6
|
-
T = TypeVar("T", bound="
|
|
6
|
+
T = TypeVar("T", bound="RunDynamicSelectJsonBodyArgs")
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
@_attrs_define
|
|
10
|
-
class
|
|
11
|
-
"""
|
|
10
|
+
class RunDynamicSelectJsonBodyArgs:
|
|
11
|
+
"""Arguments to pass to the function"""
|
|
12
12
|
|
|
13
13
|
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
14
14
|
|
|
@@ -22,10 +22,10 @@ class OpenaiSyncScriptByPathJsonBody:
|
|
|
22
22
|
@classmethod
|
|
23
23
|
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
24
24
|
d = src_dict.copy()
|
|
25
|
-
|
|
25
|
+
run_dynamic_select_json_body_args = cls()
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
return
|
|
27
|
+
run_dynamic_select_json_body_args.additional_properties = d
|
|
28
|
+
return run_dynamic_select_json_body_args
|
|
29
29
|
|
|
30
30
|
@property
|
|
31
31
|
def additional_keys(self) -> List[str]:
|
|
@@ -0,0 +1,80 @@
|
|
|
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.run_dynamic_select_json_body_runnable_ref_type_0_runnable_kind import (
|
|
7
|
+
RunDynamicSelectJsonBodyRunnableRefType0RunnableKind,
|
|
8
|
+
)
|
|
9
|
+
from ..models.run_dynamic_select_json_body_runnable_ref_type_0_source import (
|
|
10
|
+
RunDynamicSelectJsonBodyRunnableRefType0Source,
|
|
11
|
+
)
|
|
12
|
+
|
|
13
|
+
T = TypeVar("T", bound="RunDynamicSelectJsonBodyRunnableRefType0")
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
@_attrs_define
|
|
17
|
+
class RunDynamicSelectJsonBodyRunnableRefType0:
|
|
18
|
+
"""
|
|
19
|
+
Attributes:
|
|
20
|
+
source (RunDynamicSelectJsonBodyRunnableRefType0Source):
|
|
21
|
+
path (str): Path to the deployed script or flow
|
|
22
|
+
runnable_kind (RunDynamicSelectJsonBodyRunnableRefType0RunnableKind):
|
|
23
|
+
"""
|
|
24
|
+
|
|
25
|
+
source: RunDynamicSelectJsonBodyRunnableRefType0Source
|
|
26
|
+
path: str
|
|
27
|
+
runnable_kind: RunDynamicSelectJsonBodyRunnableRefType0RunnableKind
|
|
28
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
29
|
+
|
|
30
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
31
|
+
source = self.source.value
|
|
32
|
+
|
|
33
|
+
path = self.path
|
|
34
|
+
runnable_kind = self.runnable_kind.value
|
|
35
|
+
|
|
36
|
+
field_dict: Dict[str, Any] = {}
|
|
37
|
+
field_dict.update(self.additional_properties)
|
|
38
|
+
field_dict.update(
|
|
39
|
+
{
|
|
40
|
+
"source": source,
|
|
41
|
+
"path": path,
|
|
42
|
+
"runnable_kind": runnable_kind,
|
|
43
|
+
}
|
|
44
|
+
)
|
|
45
|
+
|
|
46
|
+
return field_dict
|
|
47
|
+
|
|
48
|
+
@classmethod
|
|
49
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
50
|
+
d = src_dict.copy()
|
|
51
|
+
source = RunDynamicSelectJsonBodyRunnableRefType0Source(d.pop("source"))
|
|
52
|
+
|
|
53
|
+
path = d.pop("path")
|
|
54
|
+
|
|
55
|
+
runnable_kind = RunDynamicSelectJsonBodyRunnableRefType0RunnableKind(d.pop("runnable_kind"))
|
|
56
|
+
|
|
57
|
+
run_dynamic_select_json_body_runnable_ref_type_0 = cls(
|
|
58
|
+
source=source,
|
|
59
|
+
path=path,
|
|
60
|
+
runnable_kind=runnable_kind,
|
|
61
|
+
)
|
|
62
|
+
|
|
63
|
+
run_dynamic_select_json_body_runnable_ref_type_0.additional_properties = d
|
|
64
|
+
return run_dynamic_select_json_body_runnable_ref_type_0
|
|
65
|
+
|
|
66
|
+
@property
|
|
67
|
+
def additional_keys(self) -> List[str]:
|
|
68
|
+
return list(self.additional_properties.keys())
|
|
69
|
+
|
|
70
|
+
def __getitem__(self, key: str) -> Any:
|
|
71
|
+
return self.additional_properties[key]
|
|
72
|
+
|
|
73
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
74
|
+
self.additional_properties[key] = value
|
|
75
|
+
|
|
76
|
+
def __delitem__(self, key: str) -> None:
|
|
77
|
+
del self.additional_properties[key]
|
|
78
|
+
|
|
79
|
+
def __contains__(self, key: str) -> bool:
|
|
80
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,89 @@
|
|
|
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.run_dynamic_select_json_body_runnable_ref_type_1_language import (
|
|
7
|
+
RunDynamicSelectJsonBodyRunnableRefType1Language,
|
|
8
|
+
)
|
|
9
|
+
from ..models.run_dynamic_select_json_body_runnable_ref_type_1_source import (
|
|
10
|
+
RunDynamicSelectJsonBodyRunnableRefType1Source,
|
|
11
|
+
)
|
|
12
|
+
from ..types import UNSET, Unset
|
|
13
|
+
|
|
14
|
+
T = TypeVar("T", bound="RunDynamicSelectJsonBodyRunnableRefType1")
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
@_attrs_define
|
|
18
|
+
class RunDynamicSelectJsonBodyRunnableRefType1:
|
|
19
|
+
"""
|
|
20
|
+
Attributes:
|
|
21
|
+
source (RunDynamicSelectJsonBodyRunnableRefType1Source):
|
|
22
|
+
code (str): Code content for inline execution
|
|
23
|
+
language (Union[Unset, RunDynamicSelectJsonBodyRunnableRefType1Language]):
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
source: RunDynamicSelectJsonBodyRunnableRefType1Source
|
|
27
|
+
code: str
|
|
28
|
+
language: Union[Unset, RunDynamicSelectJsonBodyRunnableRefType1Language] = UNSET
|
|
29
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
30
|
+
|
|
31
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
32
|
+
source = self.source.value
|
|
33
|
+
|
|
34
|
+
code = self.code
|
|
35
|
+
language: Union[Unset, str] = UNSET
|
|
36
|
+
if not isinstance(self.language, Unset):
|
|
37
|
+
language = self.language.value
|
|
38
|
+
|
|
39
|
+
field_dict: Dict[str, Any] = {}
|
|
40
|
+
field_dict.update(self.additional_properties)
|
|
41
|
+
field_dict.update(
|
|
42
|
+
{
|
|
43
|
+
"source": source,
|
|
44
|
+
"code": code,
|
|
45
|
+
}
|
|
46
|
+
)
|
|
47
|
+
if language is not UNSET:
|
|
48
|
+
field_dict["language"] = language
|
|
49
|
+
|
|
50
|
+
return field_dict
|
|
51
|
+
|
|
52
|
+
@classmethod
|
|
53
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
54
|
+
d = src_dict.copy()
|
|
55
|
+
source = RunDynamicSelectJsonBodyRunnableRefType1Source(d.pop("source"))
|
|
56
|
+
|
|
57
|
+
code = d.pop("code")
|
|
58
|
+
|
|
59
|
+
_language = d.pop("language", UNSET)
|
|
60
|
+
language: Union[Unset, RunDynamicSelectJsonBodyRunnableRefType1Language]
|
|
61
|
+
if isinstance(_language, Unset):
|
|
62
|
+
language = UNSET
|
|
63
|
+
else:
|
|
64
|
+
language = RunDynamicSelectJsonBodyRunnableRefType1Language(_language)
|
|
65
|
+
|
|
66
|
+
run_dynamic_select_json_body_runnable_ref_type_1 = cls(
|
|
67
|
+
source=source,
|
|
68
|
+
code=code,
|
|
69
|
+
language=language,
|
|
70
|
+
)
|
|
71
|
+
|
|
72
|
+
run_dynamic_select_json_body_runnable_ref_type_1.additional_properties = d
|
|
73
|
+
return run_dynamic_select_json_body_runnable_ref_type_1
|
|
74
|
+
|
|
75
|
+
@property
|
|
76
|
+
def additional_keys(self) -> List[str]:
|
|
77
|
+
return list(self.additional_properties.keys())
|
|
78
|
+
|
|
79
|
+
def __getitem__(self, key: str) -> Any:
|
|
80
|
+
return self.additional_properties[key]
|
|
81
|
+
|
|
82
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
83
|
+
self.additional_properties[key] = value
|
|
84
|
+
|
|
85
|
+
def __delitem__(self, key: str) -> None:
|
|
86
|
+
del self.additional_properties[key]
|
|
87
|
+
|
|
88
|
+
def __contains__(self, key: str) -> bool:
|
|
89
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
from enum import Enum
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class RunDynamicSelectJsonBodyRunnableRefType1Language(str, Enum):
|
|
5
|
+
ANSIBLE = "ansible"
|
|
6
|
+
BASH = "bash"
|
|
7
|
+
BIGQUERY = "bigquery"
|
|
8
|
+
BUN = "bun"
|
|
9
|
+
CSHARP = "csharp"
|
|
10
|
+
DENO = "deno"
|
|
11
|
+
DUCKDB = "duckdb"
|
|
12
|
+
GO = "go"
|
|
13
|
+
GRAPHQL = "graphql"
|
|
14
|
+
JAVA = "java"
|
|
15
|
+
MSSQL = "mssql"
|
|
16
|
+
MYSQL = "mysql"
|
|
17
|
+
NATIVETS = "nativets"
|
|
18
|
+
NU = "nu"
|
|
19
|
+
ORACLEDB = "oracledb"
|
|
20
|
+
PHP = "php"
|
|
21
|
+
POSTGRESQL = "postgresql"
|
|
22
|
+
POWERSHELL = "powershell"
|
|
23
|
+
PYTHON3 = "python3"
|
|
24
|
+
RUBY = "ruby"
|
|
25
|
+
RUST = "rust"
|
|
26
|
+
SNOWFLAKE = "snowflake"
|
|
27
|
+
|
|
28
|
+
def __str__(self) -> str:
|
|
29
|
+
return str(self.value)
|
|
@@ -0,0 +1,65 @@
|
|
|
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="S3PermissionRule")
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@_attrs_define
|
|
10
|
+
class S3PermissionRule:
|
|
11
|
+
"""
|
|
12
|
+
Attributes:
|
|
13
|
+
pattern (str):
|
|
14
|
+
allow (str):
|
|
15
|
+
"""
|
|
16
|
+
|
|
17
|
+
pattern: str
|
|
18
|
+
allow: str
|
|
19
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
20
|
+
|
|
21
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
22
|
+
pattern = self.pattern
|
|
23
|
+
allow = self.allow
|
|
24
|
+
|
|
25
|
+
field_dict: Dict[str, Any] = {}
|
|
26
|
+
field_dict.update(self.additional_properties)
|
|
27
|
+
field_dict.update(
|
|
28
|
+
{
|
|
29
|
+
"pattern": pattern,
|
|
30
|
+
"allow": allow,
|
|
31
|
+
}
|
|
32
|
+
)
|
|
33
|
+
|
|
34
|
+
return field_dict
|
|
35
|
+
|
|
36
|
+
@classmethod
|
|
37
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
38
|
+
d = src_dict.copy()
|
|
39
|
+
pattern = d.pop("pattern")
|
|
40
|
+
|
|
41
|
+
allow = d.pop("allow")
|
|
42
|
+
|
|
43
|
+
s3_permission_rule = cls(
|
|
44
|
+
pattern=pattern,
|
|
45
|
+
allow=allow,
|
|
46
|
+
)
|
|
47
|
+
|
|
48
|
+
s3_permission_rule.additional_properties = d
|
|
49
|
+
return s3_permission_rule
|
|
50
|
+
|
|
51
|
+
@property
|
|
52
|
+
def additional_keys(self) -> List[str]:
|
|
53
|
+
return list(self.additional_properties.keys())
|
|
54
|
+
|
|
55
|
+
def __getitem__(self, key: str) -> Any:
|
|
56
|
+
return self.additional_properties[key]
|
|
57
|
+
|
|
58
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
59
|
+
self.additional_properties[key] = value
|
|
60
|
+
|
|
61
|
+
def __delitem__(self, key: str) -> None:
|
|
62
|
+
del self.additional_properties[key]
|
|
63
|
+
|
|
64
|
+
def __contains__(self, key: str) -> bool:
|
|
65
|
+
return key in self.additional_properties
|
|
@@ -33,6 +33,8 @@ class UpdateGcpTriggerJsonBody:
|
|
|
33
33
|
delivery_config (Union[Unset, UpdateGcpTriggerJsonBodyDeliveryConfig]):
|
|
34
34
|
enabled (Union[Unset, bool]):
|
|
35
35
|
auto_acknowledge_msg (Union[Unset, bool]):
|
|
36
|
+
ack_deadline (Union[Unset, int]): Time in seconds within which the message must be acknowledged. If not
|
|
37
|
+
provided, defaults to the subscription's acknowledgment deadline (600 seconds).
|
|
36
38
|
error_handler_path (Union[Unset, str]):
|
|
37
39
|
error_handler_args (Union[Unset, UpdateGcpTriggerJsonBodyErrorHandlerArgs]): The arguments to pass to the script
|
|
38
40
|
or flow
|
|
@@ -51,6 +53,7 @@ class UpdateGcpTriggerJsonBody:
|
|
|
51
53
|
delivery_config: Union[Unset, "UpdateGcpTriggerJsonBodyDeliveryConfig"] = UNSET
|
|
52
54
|
enabled: Union[Unset, bool] = UNSET
|
|
53
55
|
auto_acknowledge_msg: Union[Unset, bool] = UNSET
|
|
56
|
+
ack_deadline: Union[Unset, int] = UNSET
|
|
54
57
|
error_handler_path: Union[Unset, str] = UNSET
|
|
55
58
|
error_handler_args: Union[Unset, "UpdateGcpTriggerJsonBodyErrorHandlerArgs"] = UNSET
|
|
56
59
|
retry: Union[Unset, "UpdateGcpTriggerJsonBodyRetry"] = UNSET
|
|
@@ -76,6 +79,7 @@ class UpdateGcpTriggerJsonBody:
|
|
|
76
79
|
|
|
77
80
|
enabled = self.enabled
|
|
78
81
|
auto_acknowledge_msg = self.auto_acknowledge_msg
|
|
82
|
+
ack_deadline = self.ack_deadline
|
|
79
83
|
error_handler_path = self.error_handler_path
|
|
80
84
|
error_handler_args: Union[Unset, Dict[str, Any]] = UNSET
|
|
81
85
|
if not isinstance(self.error_handler_args, Unset):
|
|
@@ -109,6 +113,8 @@ class UpdateGcpTriggerJsonBody:
|
|
|
109
113
|
field_dict["enabled"] = enabled
|
|
110
114
|
if auto_acknowledge_msg is not UNSET:
|
|
111
115
|
field_dict["auto_acknowledge_msg"] = auto_acknowledge_msg
|
|
116
|
+
if ack_deadline is not UNSET:
|
|
117
|
+
field_dict["ack_deadline"] = ack_deadline
|
|
112
118
|
if error_handler_path is not UNSET:
|
|
113
119
|
field_dict["error_handler_path"] = error_handler_path
|
|
114
120
|
if error_handler_args is not UNSET:
|
|
@@ -159,6 +165,8 @@ class UpdateGcpTriggerJsonBody:
|
|
|
159
165
|
|
|
160
166
|
auto_acknowledge_msg = d.pop("auto_acknowledge_msg", UNSET)
|
|
161
167
|
|
|
168
|
+
ack_deadline = d.pop("ack_deadline", UNSET)
|
|
169
|
+
|
|
162
170
|
error_handler_path = d.pop("error_handler_path", UNSET)
|
|
163
171
|
|
|
164
172
|
_error_handler_args = d.pop("error_handler_args", UNSET)
|
|
@@ -188,6 +196,7 @@ class UpdateGcpTriggerJsonBody:
|
|
|
188
196
|
delivery_config=delivery_config,
|
|
189
197
|
enabled=enabled,
|
|
190
198
|
auto_acknowledge_msg=auto_acknowledge_msg,
|
|
199
|
+
ack_deadline=ack_deadline,
|
|
191
200
|
error_handler_path=error_handler_path,
|
|
192
201
|
error_handler_args=error_handler_args,
|
|
193
202
|
retry=retry,
|