windmill-api 1.483.1__py3-none-any.whl → 1.484.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/app/create_app_raw.py +105 -0
- windmill_api/api/app/update_app_raw.py +113 -0
- windmill_api/models/create_app_raw_multipart_data.py +111 -0
- windmill_api/models/create_app_raw_multipart_data_app.py +112 -0
- windmill_api/models/create_app_raw_multipart_data_app_policy.py +187 -0
- windmill_api/models/create_app_raw_multipart_data_app_policy_allowed_s3_keys_item.py +66 -0
- windmill_api/models/create_app_raw_multipart_data_app_policy_execution_mode.py +10 -0
- windmill_api/models/create_app_raw_multipart_data_app_policy_s3_inputs_item.py +44 -0
- windmill_api/models/create_app_raw_multipart_data_app_policy_triggerables.py +66 -0
- windmill_api/models/create_app_raw_multipart_data_app_policy_triggerables_additional_property.py +44 -0
- windmill_api/models/create_app_raw_multipart_data_app_policy_triggerables_v2.py +70 -0
- windmill_api/models/create_app_raw_multipart_data_app_policy_triggerables_v2_additional_property.py +44 -0
- windmill_api/models/create_gcp_trigger_json_body.py +61 -15
- windmill_api/models/{gcp_create_update_subscription_delivery_config.py → create_gcp_trigger_json_body_delivery_config.py} +5 -12
- windmill_api/models/{gcp_create_update_subscription_delivery_type.py → create_gcp_trigger_json_body_delivery_type.py} +1 -1
- windmill_api/models/create_gcp_trigger_json_body_subscription_mode.py +6 -66
- windmill_api/models/gcp_trigger.py +10 -0
- windmill_api/models/gcp_trigger_data.py +161 -0
- windmill_api/models/{gcp_existing_subscription.py → gcp_trigger_data_delivery_config.py} +21 -18
- windmill_api/models/gcp_trigger_data_delivery_type.py +9 -0
- windmill_api/models/{gcp_subscription_mode_config_subscription_mode.py → gcp_trigger_data_subscription_mode.py} +1 -1
- windmill_api/models/gcp_trigger_delivery_config.py +0 -7
- windmill_api/models/{new_gcp_trigger_subscription_mode_subscription_mode.py → gcp_trigger_subscription_mode.py} +1 -1
- windmill_api/models/get_gcp_trigger_response_200.py +10 -0
- windmill_api/models/get_gcp_trigger_response_200_delivery_config.py +0 -7
- windmill_api/models/{create_gcp_trigger_json_body_subscription_mode_subscription_mode.py → get_gcp_trigger_response_200_subscription_mode.py} +1 -1
- windmill_api/models/list_apps_response_200_item.py +8 -0
- windmill_api/models/list_gcp_triggers_response_200_item.py +12 -0
- windmill_api/models/list_gcp_triggers_response_200_item_delivery_config.py +0 -7
- windmill_api/models/{edit_gcp_trigger_subscription_mode_subscription_mode.py → list_gcp_triggers_response_200_item_subscription_mode.py} +1 -1
- windmill_api/models/listable_app.py +8 -0
- windmill_api/models/push_config.py +0 -7
- windmill_api/models/teams_channel.py +79 -0
- windmill_api/models/update_app_raw_multipart_data.py +111 -0
- windmill_api/models/update_app_raw_multipart_data_app.py +112 -0
- windmill_api/models/update_app_raw_multipart_data_app_policy.py +187 -0
- windmill_api/models/update_app_raw_multipart_data_app_policy_allowed_s3_keys_item.py +66 -0
- windmill_api/models/update_app_raw_multipart_data_app_policy_execution_mode.py +10 -0
- windmill_api/models/update_app_raw_multipart_data_app_policy_s3_inputs_item.py +44 -0
- windmill_api/models/update_app_raw_multipart_data_app_policy_triggerables.py +66 -0
- windmill_api/models/update_app_raw_multipart_data_app_policy_triggerables_additional_property.py +44 -0
- windmill_api/models/update_app_raw_multipart_data_app_policy_triggerables_v2.py +70 -0
- windmill_api/models/update_app_raw_multipart_data_app_policy_triggerables_v2_additional_property.py +44 -0
- windmill_api/models/update_gcp_trigger_json_body.py +72 -26
- windmill_api/models/update_gcp_trigger_json_body_delivery_config.py +68 -0
- windmill_api/models/update_gcp_trigger_json_body_delivery_type.py +9 -0
- windmill_api/models/update_gcp_trigger_json_body_subscription_mode.py +6 -66
- {windmill_api-1.483.1.dist-info → windmill_api-1.484.0.dist-info}/METADATA +1 -1
- {windmill_api-1.483.1.dist-info → windmill_api-1.484.0.dist-info}/RECORD +51 -31
- windmill_api/models/edit_gcp_trigger.py +0 -114
- windmill_api/models/edit_gcp_trigger_subscription_mode.py +0 -66
- windmill_api/models/gcp_create_update_subscription.py +0 -91
- windmill_api/models/gcp_subscription_mode_config.py +0 -66
- windmill_api/models/new_gcp_trigger.py +0 -114
- windmill_api/models/new_gcp_trigger_subscription_mode.py +0 -66
- windmill_api/models/update_gcp_trigger_json_body_subscription_mode_subscription_mode.py +0 -9
- {windmill_api-1.483.1.dist-info → windmill_api-1.484.0.dist-info}/LICENSE +0 -0
- {windmill_api-1.483.1.dist-info → windmill_api-1.484.0.dist-info}/WHEEL +0 -0
|
@@ -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="CreateAppRawMultipartDataAppPolicyS3InputsItem")
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@_attrs_define
|
|
10
|
+
class CreateAppRawMultipartDataAppPolicyS3InputsItem:
|
|
11
|
+
""" """
|
|
12
|
+
|
|
13
|
+
additional_properties: Dict[str, Any] = _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
|
+
create_app_raw_multipart_data_app_policy_s3_inputs_item = cls()
|
|
26
|
+
|
|
27
|
+
create_app_raw_multipart_data_app_policy_s3_inputs_item.additional_properties = d
|
|
28
|
+
return create_app_raw_multipart_data_app_policy_s3_inputs_item
|
|
29
|
+
|
|
30
|
+
@property
|
|
31
|
+
def additional_keys(self) -> List[str]:
|
|
32
|
+
return list(self.additional_properties.keys())
|
|
33
|
+
|
|
34
|
+
def __getitem__(self, key: str) -> Any:
|
|
35
|
+
return self.additional_properties[key]
|
|
36
|
+
|
|
37
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
38
|
+
self.additional_properties[key] = value
|
|
39
|
+
|
|
40
|
+
def __delitem__(self, key: str) -> None:
|
|
41
|
+
del self.additional_properties[key]
|
|
42
|
+
|
|
43
|
+
def __contains__(self, key: str) -> bool:
|
|
44
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,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.create_app_raw_multipart_data_app_policy_triggerables_additional_property import (
|
|
8
|
+
CreateAppRawMultipartDataAppPolicyTriggerablesAdditionalProperty,
|
|
9
|
+
)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
T = TypeVar("T", bound="CreateAppRawMultipartDataAppPolicyTriggerables")
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
@_attrs_define
|
|
16
|
+
class CreateAppRawMultipartDataAppPolicyTriggerables:
|
|
17
|
+
""" """
|
|
18
|
+
|
|
19
|
+
additional_properties: Dict[str, "CreateAppRawMultipartDataAppPolicyTriggerablesAdditionalProperty"] = _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.create_app_raw_multipart_data_app_policy_triggerables_additional_property import (
|
|
37
|
+
CreateAppRawMultipartDataAppPolicyTriggerablesAdditionalProperty,
|
|
38
|
+
)
|
|
39
|
+
|
|
40
|
+
d = src_dict.copy()
|
|
41
|
+
create_app_raw_multipart_data_app_policy_triggerables = cls()
|
|
42
|
+
|
|
43
|
+
additional_properties = {}
|
|
44
|
+
for prop_name, prop_dict in d.items():
|
|
45
|
+
additional_property = CreateAppRawMultipartDataAppPolicyTriggerablesAdditionalProperty.from_dict(prop_dict)
|
|
46
|
+
|
|
47
|
+
additional_properties[prop_name] = additional_property
|
|
48
|
+
|
|
49
|
+
create_app_raw_multipart_data_app_policy_triggerables.additional_properties = additional_properties
|
|
50
|
+
return create_app_raw_multipart_data_app_policy_triggerables
|
|
51
|
+
|
|
52
|
+
@property
|
|
53
|
+
def additional_keys(self) -> List[str]:
|
|
54
|
+
return list(self.additional_properties.keys())
|
|
55
|
+
|
|
56
|
+
def __getitem__(self, key: str) -> "CreateAppRawMultipartDataAppPolicyTriggerablesAdditionalProperty":
|
|
57
|
+
return self.additional_properties[key]
|
|
58
|
+
|
|
59
|
+
def __setitem__(self, key: str, value: "CreateAppRawMultipartDataAppPolicyTriggerablesAdditionalProperty") -> 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
|
windmill_api/models/create_app_raw_multipart_data_app_policy_triggerables_additional_property.py
ADDED
|
@@ -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="CreateAppRawMultipartDataAppPolicyTriggerablesAdditionalProperty")
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@_attrs_define
|
|
10
|
+
class CreateAppRawMultipartDataAppPolicyTriggerablesAdditionalProperty:
|
|
11
|
+
""" """
|
|
12
|
+
|
|
13
|
+
additional_properties: Dict[str, Any] = _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
|
+
create_app_raw_multipart_data_app_policy_triggerables_additional_property = cls()
|
|
26
|
+
|
|
27
|
+
create_app_raw_multipart_data_app_policy_triggerables_additional_property.additional_properties = d
|
|
28
|
+
return create_app_raw_multipart_data_app_policy_triggerables_additional_property
|
|
29
|
+
|
|
30
|
+
@property
|
|
31
|
+
def additional_keys(self) -> List[str]:
|
|
32
|
+
return list(self.additional_properties.keys())
|
|
33
|
+
|
|
34
|
+
def __getitem__(self, key: str) -> Any:
|
|
35
|
+
return self.additional_properties[key]
|
|
36
|
+
|
|
37
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
38
|
+
self.additional_properties[key] = value
|
|
39
|
+
|
|
40
|
+
def __delitem__(self, key: str) -> None:
|
|
41
|
+
del self.additional_properties[key]
|
|
42
|
+
|
|
43
|
+
def __contains__(self, key: str) -> bool:
|
|
44
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,70 @@
|
|
|
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.create_app_raw_multipart_data_app_policy_triggerables_v2_additional_property import (
|
|
8
|
+
CreateAppRawMultipartDataAppPolicyTriggerablesV2AdditionalProperty,
|
|
9
|
+
)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
T = TypeVar("T", bound="CreateAppRawMultipartDataAppPolicyTriggerablesV2")
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
@_attrs_define
|
|
16
|
+
class CreateAppRawMultipartDataAppPolicyTriggerablesV2:
|
|
17
|
+
""" """
|
|
18
|
+
|
|
19
|
+
additional_properties: Dict[
|
|
20
|
+
str, "CreateAppRawMultipartDataAppPolicyTriggerablesV2AdditionalProperty"
|
|
21
|
+
] = _attrs_field(init=False, factory=dict)
|
|
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.create_app_raw_multipart_data_app_policy_triggerables_v2_additional_property import (
|
|
37
|
+
CreateAppRawMultipartDataAppPolicyTriggerablesV2AdditionalProperty,
|
|
38
|
+
)
|
|
39
|
+
|
|
40
|
+
d = src_dict.copy()
|
|
41
|
+
create_app_raw_multipart_data_app_policy_triggerables_v2 = cls()
|
|
42
|
+
|
|
43
|
+
additional_properties = {}
|
|
44
|
+
for prop_name, prop_dict in d.items():
|
|
45
|
+
additional_property = CreateAppRawMultipartDataAppPolicyTriggerablesV2AdditionalProperty.from_dict(
|
|
46
|
+
prop_dict
|
|
47
|
+
)
|
|
48
|
+
|
|
49
|
+
additional_properties[prop_name] = additional_property
|
|
50
|
+
|
|
51
|
+
create_app_raw_multipart_data_app_policy_triggerables_v2.additional_properties = additional_properties
|
|
52
|
+
return create_app_raw_multipart_data_app_policy_triggerables_v2
|
|
53
|
+
|
|
54
|
+
@property
|
|
55
|
+
def additional_keys(self) -> List[str]:
|
|
56
|
+
return list(self.additional_properties.keys())
|
|
57
|
+
|
|
58
|
+
def __getitem__(self, key: str) -> "CreateAppRawMultipartDataAppPolicyTriggerablesV2AdditionalProperty":
|
|
59
|
+
return self.additional_properties[key]
|
|
60
|
+
|
|
61
|
+
def __setitem__(
|
|
62
|
+
self, key: str, value: "CreateAppRawMultipartDataAppPolicyTriggerablesV2AdditionalProperty"
|
|
63
|
+
) -> None:
|
|
64
|
+
self.additional_properties[key] = value
|
|
65
|
+
|
|
66
|
+
def __delitem__(self, key: str) -> None:
|
|
67
|
+
del self.additional_properties[key]
|
|
68
|
+
|
|
69
|
+
def __contains__(self, key: str) -> bool:
|
|
70
|
+
return key in self.additional_properties
|
windmill_api/models/create_app_raw_multipart_data_app_policy_triggerables_v2_additional_property.py
ADDED
|
@@ -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="CreateAppRawMultipartDataAppPolicyTriggerablesV2AdditionalProperty")
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@_attrs_define
|
|
10
|
+
class CreateAppRawMultipartDataAppPolicyTriggerablesV2AdditionalProperty:
|
|
11
|
+
""" """
|
|
12
|
+
|
|
13
|
+
additional_properties: Dict[str, Any] = _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
|
+
create_app_raw_multipart_data_app_policy_triggerables_v2_additional_property = cls()
|
|
26
|
+
|
|
27
|
+
create_app_raw_multipart_data_app_policy_triggerables_v2_additional_property.additional_properties = d
|
|
28
|
+
return create_app_raw_multipart_data_app_policy_triggerables_v2_additional_property
|
|
29
|
+
|
|
30
|
+
@property
|
|
31
|
+
def additional_keys(self) -> List[str]:
|
|
32
|
+
return list(self.additional_properties.keys())
|
|
33
|
+
|
|
34
|
+
def __getitem__(self, key: str) -> Any:
|
|
35
|
+
return self.additional_properties[key]
|
|
36
|
+
|
|
37
|
+
def __setitem__(self, key: str, value: Any) -> 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
|
|
@@ -3,10 +3,12 @@ from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
|
|
|
3
3
|
from attrs import define as _attrs_define
|
|
4
4
|
from attrs import field as _attrs_field
|
|
5
5
|
|
|
6
|
+
from ..models.create_gcp_trigger_json_body_delivery_type import CreateGcpTriggerJsonBodyDeliveryType
|
|
7
|
+
from ..models.create_gcp_trigger_json_body_subscription_mode import CreateGcpTriggerJsonBodySubscriptionMode
|
|
6
8
|
from ..types import UNSET, Unset
|
|
7
9
|
|
|
8
10
|
if TYPE_CHECKING:
|
|
9
|
-
from ..models.
|
|
11
|
+
from ..models.create_gcp_trigger_json_body_delivery_config import CreateGcpTriggerJsonBodyDeliveryConfig
|
|
10
12
|
|
|
11
13
|
|
|
12
14
|
T = TypeVar("T", bound="CreateGcpTriggerJsonBody")
|
|
@@ -17,36 +19,50 @@ class CreateGcpTriggerJsonBody:
|
|
|
17
19
|
"""
|
|
18
20
|
Attributes:
|
|
19
21
|
gcp_resource_path (str):
|
|
22
|
+
subscription_mode (CreateGcpTriggerJsonBodySubscriptionMode): The mode of subscription. 'existing' means using
|
|
23
|
+
an existing GCP subscription, while 'create_update' involves creating or updating a new subscription.
|
|
20
24
|
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
25
|
path (str):
|
|
28
26
|
script_path (str):
|
|
29
27
|
is_flow (bool):
|
|
28
|
+
subscription_id (Union[Unset, str]):
|
|
29
|
+
base_endpoint (Union[Unset, str]):
|
|
30
|
+
delivery_type (Union[Unset, CreateGcpTriggerJsonBodyDeliveryType]):
|
|
31
|
+
delivery_config (Union[Unset, CreateGcpTriggerJsonBodyDeliveryConfig]):
|
|
30
32
|
enabled (Union[Unset, bool]):
|
|
31
33
|
"""
|
|
32
34
|
|
|
33
35
|
gcp_resource_path: str
|
|
36
|
+
subscription_mode: CreateGcpTriggerJsonBodySubscriptionMode
|
|
34
37
|
topic_id: str
|
|
35
|
-
subscription_mode: "CreateGcpTriggerJsonBodySubscriptionMode"
|
|
36
38
|
path: str
|
|
37
39
|
script_path: str
|
|
38
40
|
is_flow: bool
|
|
41
|
+
subscription_id: Union[Unset, str] = UNSET
|
|
42
|
+
base_endpoint: Union[Unset, str] = UNSET
|
|
43
|
+
delivery_type: Union[Unset, CreateGcpTriggerJsonBodyDeliveryType] = UNSET
|
|
44
|
+
delivery_config: Union[Unset, "CreateGcpTriggerJsonBodyDeliveryConfig"] = UNSET
|
|
39
45
|
enabled: Union[Unset, bool] = UNSET
|
|
40
46
|
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
41
47
|
|
|
42
48
|
def to_dict(self) -> Dict[str, Any]:
|
|
43
49
|
gcp_resource_path = self.gcp_resource_path
|
|
44
|
-
|
|
45
|
-
subscription_mode = self.subscription_mode.to_dict()
|
|
50
|
+
subscription_mode = self.subscription_mode.value
|
|
46
51
|
|
|
52
|
+
topic_id = self.topic_id
|
|
47
53
|
path = self.path
|
|
48
54
|
script_path = self.script_path
|
|
49
55
|
is_flow = self.is_flow
|
|
56
|
+
subscription_id = self.subscription_id
|
|
57
|
+
base_endpoint = self.base_endpoint
|
|
58
|
+
delivery_type: Union[Unset, str] = UNSET
|
|
59
|
+
if not isinstance(self.delivery_type, Unset):
|
|
60
|
+
delivery_type = self.delivery_type.value
|
|
61
|
+
|
|
62
|
+
delivery_config: Union[Unset, Dict[str, Any]] = UNSET
|
|
63
|
+
if not isinstance(self.delivery_config, Unset):
|
|
64
|
+
delivery_config = self.delivery_config.to_dict()
|
|
65
|
+
|
|
50
66
|
enabled = self.enabled
|
|
51
67
|
|
|
52
68
|
field_dict: Dict[str, Any] = {}
|
|
@@ -54,13 +70,21 @@ class CreateGcpTriggerJsonBody:
|
|
|
54
70
|
field_dict.update(
|
|
55
71
|
{
|
|
56
72
|
"gcp_resource_path": gcp_resource_path,
|
|
57
|
-
"topic_id": topic_id,
|
|
58
73
|
"subscription_mode": subscription_mode,
|
|
74
|
+
"topic_id": topic_id,
|
|
59
75
|
"path": path,
|
|
60
76
|
"script_path": script_path,
|
|
61
77
|
"is_flow": is_flow,
|
|
62
78
|
}
|
|
63
79
|
)
|
|
80
|
+
if subscription_id is not UNSET:
|
|
81
|
+
field_dict["subscription_id"] = subscription_id
|
|
82
|
+
if base_endpoint is not UNSET:
|
|
83
|
+
field_dict["base_endpoint"] = base_endpoint
|
|
84
|
+
if delivery_type is not UNSET:
|
|
85
|
+
field_dict["delivery_type"] = delivery_type
|
|
86
|
+
if delivery_config is not UNSET:
|
|
87
|
+
field_dict["delivery_config"] = delivery_config
|
|
64
88
|
if enabled is not UNSET:
|
|
65
89
|
field_dict["enabled"] = enabled
|
|
66
90
|
|
|
@@ -68,14 +92,14 @@ class CreateGcpTriggerJsonBody:
|
|
|
68
92
|
|
|
69
93
|
@classmethod
|
|
70
94
|
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
71
|
-
from ..models.
|
|
95
|
+
from ..models.create_gcp_trigger_json_body_delivery_config import CreateGcpTriggerJsonBodyDeliveryConfig
|
|
72
96
|
|
|
73
97
|
d = src_dict.copy()
|
|
74
98
|
gcp_resource_path = d.pop("gcp_resource_path")
|
|
75
99
|
|
|
76
|
-
|
|
100
|
+
subscription_mode = CreateGcpTriggerJsonBodySubscriptionMode(d.pop("subscription_mode"))
|
|
77
101
|
|
|
78
|
-
|
|
102
|
+
topic_id = d.pop("topic_id")
|
|
79
103
|
|
|
80
104
|
path = d.pop("path")
|
|
81
105
|
|
|
@@ -83,15 +107,37 @@ class CreateGcpTriggerJsonBody:
|
|
|
83
107
|
|
|
84
108
|
is_flow = d.pop("is_flow")
|
|
85
109
|
|
|
110
|
+
subscription_id = d.pop("subscription_id", UNSET)
|
|
111
|
+
|
|
112
|
+
base_endpoint = d.pop("base_endpoint", UNSET)
|
|
113
|
+
|
|
114
|
+
_delivery_type = d.pop("delivery_type", UNSET)
|
|
115
|
+
delivery_type: Union[Unset, CreateGcpTriggerJsonBodyDeliveryType]
|
|
116
|
+
if isinstance(_delivery_type, Unset):
|
|
117
|
+
delivery_type = UNSET
|
|
118
|
+
else:
|
|
119
|
+
delivery_type = CreateGcpTriggerJsonBodyDeliveryType(_delivery_type)
|
|
120
|
+
|
|
121
|
+
_delivery_config = d.pop("delivery_config", UNSET)
|
|
122
|
+
delivery_config: Union[Unset, CreateGcpTriggerJsonBodyDeliveryConfig]
|
|
123
|
+
if isinstance(_delivery_config, Unset):
|
|
124
|
+
delivery_config = UNSET
|
|
125
|
+
else:
|
|
126
|
+
delivery_config = CreateGcpTriggerJsonBodyDeliveryConfig.from_dict(_delivery_config)
|
|
127
|
+
|
|
86
128
|
enabled = d.pop("enabled", UNSET)
|
|
87
129
|
|
|
88
130
|
create_gcp_trigger_json_body = cls(
|
|
89
131
|
gcp_resource_path=gcp_resource_path,
|
|
90
|
-
topic_id=topic_id,
|
|
91
132
|
subscription_mode=subscription_mode,
|
|
133
|
+
topic_id=topic_id,
|
|
92
134
|
path=path,
|
|
93
135
|
script_path=script_path,
|
|
94
136
|
is_flow=is_flow,
|
|
137
|
+
subscription_id=subscription_id,
|
|
138
|
+
base_endpoint=base_endpoint,
|
|
139
|
+
delivery_type=delivery_type,
|
|
140
|
+
delivery_config=delivery_config,
|
|
95
141
|
enabled=enabled,
|
|
96
142
|
)
|
|
97
143
|
|
|
@@ -5,26 +5,23 @@ from attrs import field as _attrs_field
|
|
|
5
5
|
|
|
6
6
|
from ..types import UNSET, Unset
|
|
7
7
|
|
|
8
|
-
T = TypeVar("T", bound="
|
|
8
|
+
T = TypeVar("T", bound="CreateGcpTriggerJsonBodyDeliveryConfig")
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
@_attrs_define
|
|
12
|
-
class
|
|
12
|
+
class CreateGcpTriggerJsonBodyDeliveryConfig:
|
|
13
13
|
"""
|
|
14
14
|
Attributes:
|
|
15
15
|
authenticate (bool):
|
|
16
|
-
base_endpoint (str):
|
|
17
16
|
audience (Union[Unset, str]):
|
|
18
17
|
"""
|
|
19
18
|
|
|
20
19
|
authenticate: bool
|
|
21
|
-
base_endpoint: str
|
|
22
20
|
audience: Union[Unset, str] = UNSET
|
|
23
21
|
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
24
22
|
|
|
25
23
|
def to_dict(self) -> Dict[str, Any]:
|
|
26
24
|
authenticate = self.authenticate
|
|
27
|
-
base_endpoint = self.base_endpoint
|
|
28
25
|
audience = self.audience
|
|
29
26
|
|
|
30
27
|
field_dict: Dict[str, Any] = {}
|
|
@@ -32,7 +29,6 @@ class GcpCreateUpdateSubscriptionDeliveryConfig:
|
|
|
32
29
|
field_dict.update(
|
|
33
30
|
{
|
|
34
31
|
"authenticate": authenticate,
|
|
35
|
-
"base_endpoint": base_endpoint,
|
|
36
32
|
}
|
|
37
33
|
)
|
|
38
34
|
if audience is not UNSET:
|
|
@@ -45,18 +41,15 @@ class GcpCreateUpdateSubscriptionDeliveryConfig:
|
|
|
45
41
|
d = src_dict.copy()
|
|
46
42
|
authenticate = d.pop("authenticate")
|
|
47
43
|
|
|
48
|
-
base_endpoint = d.pop("base_endpoint")
|
|
49
|
-
|
|
50
44
|
audience = d.pop("audience", UNSET)
|
|
51
45
|
|
|
52
|
-
|
|
46
|
+
create_gcp_trigger_json_body_delivery_config = cls(
|
|
53
47
|
authenticate=authenticate,
|
|
54
|
-
base_endpoint=base_endpoint,
|
|
55
48
|
audience=audience,
|
|
56
49
|
)
|
|
57
50
|
|
|
58
|
-
|
|
59
|
-
return
|
|
51
|
+
create_gcp_trigger_json_body_delivery_config.additional_properties = d
|
|
52
|
+
return create_gcp_trigger_json_body_delivery_config
|
|
60
53
|
|
|
61
54
|
@property
|
|
62
55
|
def additional_keys(self) -> List[str]:
|
|
@@ -1,69 +1,9 @@
|
|
|
1
|
-
from
|
|
1
|
+
from enum import Enum
|
|
2
2
|
|
|
3
|
-
from attrs import define as _attrs_define
|
|
4
|
-
from attrs import field as _attrs_field
|
|
5
3
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
class CreateGcpTriggerJsonBodySubscriptionMode(str, Enum):
|
|
5
|
+
CREATE_UPDATE = "create_update"
|
|
6
|
+
EXISTING = "existing"
|
|
9
7
|
|
|
10
|
-
|
|
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
|
|
8
|
+
def __str__(self) -> str:
|
|
9
|
+
return str(self.value)
|
|
@@ -6,6 +6,7 @@ from attrs import field as _attrs_field
|
|
|
6
6
|
from dateutil.parser import isoparse
|
|
7
7
|
|
|
8
8
|
from ..models.gcp_trigger_delivery_type import GcpTriggerDeliveryType
|
|
9
|
+
from ..models.gcp_trigger_subscription_mode import GcpTriggerSubscriptionMode
|
|
9
10
|
from ..types import UNSET, Unset
|
|
10
11
|
|
|
11
12
|
if TYPE_CHECKING:
|
|
@@ -24,6 +25,8 @@ class GcpTrigger:
|
|
|
24
25
|
topic_id (str):
|
|
25
26
|
subscription_id (str):
|
|
26
27
|
delivery_type (GcpTriggerDeliveryType):
|
|
28
|
+
subscription_mode (GcpTriggerSubscriptionMode): The mode of subscription. 'existing' means using an existing GCP
|
|
29
|
+
subscription, while 'create_update' involves creating or updating a new subscription.
|
|
27
30
|
enabled (bool):
|
|
28
31
|
path (str):
|
|
29
32
|
script_path (str):
|
|
@@ -43,6 +46,7 @@ class GcpTrigger:
|
|
|
43
46
|
topic_id: str
|
|
44
47
|
subscription_id: str
|
|
45
48
|
delivery_type: GcpTriggerDeliveryType
|
|
49
|
+
subscription_mode: GcpTriggerSubscriptionMode
|
|
46
50
|
enabled: bool
|
|
47
51
|
path: str
|
|
48
52
|
script_path: str
|
|
@@ -64,6 +68,8 @@ class GcpTrigger:
|
|
|
64
68
|
subscription_id = self.subscription_id
|
|
65
69
|
delivery_type = self.delivery_type.value
|
|
66
70
|
|
|
71
|
+
subscription_mode = self.subscription_mode.value
|
|
72
|
+
|
|
67
73
|
enabled = self.enabled
|
|
68
74
|
path = self.path
|
|
69
75
|
script_path = self.script_path
|
|
@@ -94,6 +100,7 @@ class GcpTrigger:
|
|
|
94
100
|
"topic_id": topic_id,
|
|
95
101
|
"subscription_id": subscription_id,
|
|
96
102
|
"delivery_type": delivery_type,
|
|
103
|
+
"subscription_mode": subscription_mode,
|
|
97
104
|
"enabled": enabled,
|
|
98
105
|
"path": path,
|
|
99
106
|
"script_path": script_path,
|
|
@@ -130,6 +137,8 @@ class GcpTrigger:
|
|
|
130
137
|
|
|
131
138
|
delivery_type = GcpTriggerDeliveryType(d.pop("delivery_type"))
|
|
132
139
|
|
|
140
|
+
subscription_mode = GcpTriggerSubscriptionMode(d.pop("subscription_mode"))
|
|
141
|
+
|
|
133
142
|
enabled = d.pop("enabled")
|
|
134
143
|
|
|
135
144
|
path = d.pop("path")
|
|
@@ -171,6 +180,7 @@ class GcpTrigger:
|
|
|
171
180
|
topic_id=topic_id,
|
|
172
181
|
subscription_id=subscription_id,
|
|
173
182
|
delivery_type=delivery_type,
|
|
183
|
+
subscription_mode=subscription_mode,
|
|
174
184
|
enabled=enabled,
|
|
175
185
|
path=path,
|
|
176
186
|
script_path=script_path,
|