windmill-api 1.483.0__py3-none-any.whl → 1.483.2__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.

Files changed (57) hide show
  1. windmill_api/api/app/create_app_raw.py +105 -0
  2. windmill_api/api/app/update_app_raw.py +113 -0
  3. windmill_api/models/create_app_raw_multipart_data.py +111 -0
  4. windmill_api/models/create_app_raw_multipart_data_app.py +112 -0
  5. windmill_api/models/create_app_raw_multipart_data_app_policy.py +187 -0
  6. windmill_api/models/create_app_raw_multipart_data_app_policy_allowed_s3_keys_item.py +66 -0
  7. windmill_api/models/create_app_raw_multipart_data_app_policy_execution_mode.py +10 -0
  8. windmill_api/models/create_app_raw_multipart_data_app_policy_s3_inputs_item.py +44 -0
  9. windmill_api/models/create_app_raw_multipart_data_app_policy_triggerables.py +66 -0
  10. windmill_api/models/create_app_raw_multipart_data_app_policy_triggerables_additional_property.py +44 -0
  11. windmill_api/models/create_app_raw_multipart_data_app_policy_triggerables_v2.py +70 -0
  12. windmill_api/models/create_app_raw_multipart_data_app_policy_triggerables_v2_additional_property.py +44 -0
  13. windmill_api/models/create_gcp_trigger_json_body.py +61 -15
  14. windmill_api/models/{gcp_create_update_subscription_delivery_config.py → create_gcp_trigger_json_body_delivery_config.py} +5 -12
  15. windmill_api/models/{gcp_create_update_subscription_delivery_type.py → create_gcp_trigger_json_body_delivery_type.py} +1 -1
  16. windmill_api/models/create_gcp_trigger_json_body_subscription_mode.py +6 -66
  17. windmill_api/models/gcp_trigger.py +10 -0
  18. windmill_api/models/gcp_trigger_data.py +161 -0
  19. windmill_api/models/{gcp_existing_subscription.py → gcp_trigger_data_delivery_config.py} +21 -18
  20. windmill_api/models/gcp_trigger_data_delivery_type.py +9 -0
  21. windmill_api/models/{gcp_subscription_mode_config_subscription_mode.py → gcp_trigger_data_subscription_mode.py} +1 -1
  22. windmill_api/models/gcp_trigger_delivery_config.py +0 -7
  23. windmill_api/models/{new_gcp_trigger_subscription_mode_subscription_mode.py → gcp_trigger_subscription_mode.py} +1 -1
  24. windmill_api/models/get_gcp_trigger_response_200.py +10 -0
  25. windmill_api/models/get_gcp_trigger_response_200_delivery_config.py +0 -7
  26. windmill_api/models/{create_gcp_trigger_json_body_subscription_mode_subscription_mode.py → get_gcp_trigger_response_200_subscription_mode.py} +1 -1
  27. windmill_api/models/list_apps_response_200_item.py +8 -0
  28. windmill_api/models/list_gcp_triggers_response_200_item.py +12 -0
  29. windmill_api/models/list_gcp_triggers_response_200_item_delivery_config.py +0 -7
  30. windmill_api/models/{edit_gcp_trigger_subscription_mode_subscription_mode.py → list_gcp_triggers_response_200_item_subscription_mode.py} +1 -1
  31. windmill_api/models/listable_app.py +8 -0
  32. windmill_api/models/push_config.py +0 -7
  33. windmill_api/models/update_app_raw_multipart_data.py +111 -0
  34. windmill_api/models/update_app_raw_multipart_data_app.py +112 -0
  35. windmill_api/models/update_app_raw_multipart_data_app_policy.py +187 -0
  36. windmill_api/models/update_app_raw_multipart_data_app_policy_allowed_s3_keys_item.py +66 -0
  37. windmill_api/models/update_app_raw_multipart_data_app_policy_execution_mode.py +10 -0
  38. windmill_api/models/update_app_raw_multipart_data_app_policy_s3_inputs_item.py +44 -0
  39. windmill_api/models/update_app_raw_multipart_data_app_policy_triggerables.py +66 -0
  40. windmill_api/models/update_app_raw_multipart_data_app_policy_triggerables_additional_property.py +44 -0
  41. windmill_api/models/update_app_raw_multipart_data_app_policy_triggerables_v2.py +70 -0
  42. windmill_api/models/update_app_raw_multipart_data_app_policy_triggerables_v2_additional_property.py +44 -0
  43. windmill_api/models/update_gcp_trigger_json_body.py +72 -26
  44. windmill_api/models/update_gcp_trigger_json_body_delivery_config.py +68 -0
  45. windmill_api/models/update_gcp_trigger_json_body_delivery_type.py +9 -0
  46. windmill_api/models/update_gcp_trigger_json_body_subscription_mode.py +6 -66
  47. {windmill_api-1.483.0.dist-info → windmill_api-1.483.2.dist-info}/METADATA +1 -1
  48. {windmill_api-1.483.0.dist-info → windmill_api-1.483.2.dist-info}/RECORD +50 -31
  49. windmill_api/models/edit_gcp_trigger.py +0 -114
  50. windmill_api/models/edit_gcp_trigger_subscription_mode.py +0 -66
  51. windmill_api/models/gcp_create_update_subscription.py +0 -91
  52. windmill_api/models/gcp_subscription_mode_config.py +0 -66
  53. windmill_api/models/new_gcp_trigger.py +0 -114
  54. windmill_api/models/new_gcp_trigger_subscription_mode.py +0 -66
  55. windmill_api/models/update_gcp_trigger_json_body_subscription_mode_subscription_mode.py +0 -9
  56. {windmill_api-1.483.0.dist-info → windmill_api-1.483.2.dist-info}/LICENSE +0 -0
  57. {windmill_api-1.483.0.dist-info → windmill_api-1.483.2.dist-info}/WHEEL +0 -0
@@ -1,114 +0,0 @@
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.edit_gcp_trigger_subscription_mode import EditGcpTriggerSubscriptionMode
10
-
11
-
12
- T = TypeVar("T", bound="EditGcpTrigger")
13
-
14
-
15
- @_attrs_define
16
- class EditGcpTrigger:
17
- """
18
- Attributes:
19
- topic_id (str):
20
- subscription_mode (EditGcpTriggerSubscriptionMode): "This is a union type representing the subscription mode.
21
- - 'existing': Represents an existing GCP subscription, and should be accompanied by an
22
- 'ExistingGcpSubscription' object.
23
- - 'create_update': Represents a new or updated GCP subscription, and should be accompanied by a
24
- 'CreateUpdateConfig' object."
25
- path (str):
26
- script_path (str):
27
- is_flow (bool):
28
- enabled (bool):
29
- gcp_resource_path (Union[Unset, str]):
30
- """
31
-
32
- topic_id: str
33
- subscription_mode: "EditGcpTriggerSubscriptionMode"
34
- path: str
35
- script_path: str
36
- is_flow: bool
37
- enabled: bool
38
- gcp_resource_path: Union[Unset, str] = UNSET
39
- additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
40
-
41
- def to_dict(self) -> Dict[str, Any]:
42
- topic_id = self.topic_id
43
- subscription_mode = self.subscription_mode.to_dict()
44
-
45
- path = self.path
46
- script_path = self.script_path
47
- is_flow = self.is_flow
48
- enabled = self.enabled
49
- gcp_resource_path = self.gcp_resource_path
50
-
51
- field_dict: Dict[str, Any] = {}
52
- field_dict.update(self.additional_properties)
53
- field_dict.update(
54
- {
55
- "topic_id": topic_id,
56
- "subscription_mode": subscription_mode,
57
- "path": path,
58
- "script_path": script_path,
59
- "is_flow": is_flow,
60
- "enabled": enabled,
61
- }
62
- )
63
- if gcp_resource_path is not UNSET:
64
- field_dict["gcp_resource_path"] = gcp_resource_path
65
-
66
- return field_dict
67
-
68
- @classmethod
69
- def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
70
- from ..models.edit_gcp_trigger_subscription_mode import EditGcpTriggerSubscriptionMode
71
-
72
- d = src_dict.copy()
73
- topic_id = d.pop("topic_id")
74
-
75
- subscription_mode = EditGcpTriggerSubscriptionMode.from_dict(d.pop("subscription_mode"))
76
-
77
- path = d.pop("path")
78
-
79
- script_path = d.pop("script_path")
80
-
81
- is_flow = d.pop("is_flow")
82
-
83
- enabled = d.pop("enabled")
84
-
85
- gcp_resource_path = d.pop("gcp_resource_path", UNSET)
86
-
87
- edit_gcp_trigger = cls(
88
- topic_id=topic_id,
89
- subscription_mode=subscription_mode,
90
- path=path,
91
- script_path=script_path,
92
- is_flow=is_flow,
93
- enabled=enabled,
94
- gcp_resource_path=gcp_resource_path,
95
- )
96
-
97
- edit_gcp_trigger.additional_properties = d
98
- return edit_gcp_trigger
99
-
100
- @property
101
- def additional_keys(self) -> List[str]:
102
- return list(self.additional_properties.keys())
103
-
104
- def __getitem__(self, key: str) -> Any:
105
- return self.additional_properties[key]
106
-
107
- def __setitem__(self, key: str, value: Any) -> None:
108
- self.additional_properties[key] = value
109
-
110
- def __delitem__(self, key: str) -> None:
111
- del self.additional_properties[key]
112
-
113
- def __contains__(self, key: str) -> bool:
114
- return key in self.additional_properties
@@ -1,66 +0,0 @@
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.edit_gcp_trigger_subscription_mode_subscription_mode import EditGcpTriggerSubscriptionModeSubscriptionMode
7
-
8
- T = TypeVar("T", bound="EditGcpTriggerSubscriptionMode")
9
-
10
-
11
- @_attrs_define
12
- class EditGcpTriggerSubscriptionMode:
13
- """ "This is a union type representing the subscription mode.
14
- - 'existing': Represents an existing GCP subscription, and should be accompanied by an 'ExistingGcpSubscription'
15
- object.
16
- - 'create_update': Represents a new or updated GCP subscription, and should be accompanied by a
17
- 'CreateUpdateConfig' object."
18
-
19
- Attributes:
20
- subscription_mode (EditGcpTriggerSubscriptionModeSubscriptionMode): The mode of subscription. 'existing' means
21
- using an existing GCP subscription, while 'create_update' involves creating or updating a new subscription.
22
- """
23
-
24
- subscription_mode: EditGcpTriggerSubscriptionModeSubscriptionMode
25
- additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
26
-
27
- def to_dict(self) -> Dict[str, Any]:
28
- subscription_mode = self.subscription_mode.value
29
-
30
- field_dict: Dict[str, Any] = {}
31
- field_dict.update(self.additional_properties)
32
- field_dict.update(
33
- {
34
- "subscription_mode": subscription_mode,
35
- }
36
- )
37
-
38
- return field_dict
39
-
40
- @classmethod
41
- def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
42
- d = src_dict.copy()
43
- subscription_mode = EditGcpTriggerSubscriptionModeSubscriptionMode(d.pop("subscription_mode"))
44
-
45
- edit_gcp_trigger_subscription_mode = cls(
46
- subscription_mode=subscription_mode,
47
- )
48
-
49
- edit_gcp_trigger_subscription_mode.additional_properties = d
50
- return edit_gcp_trigger_subscription_mode
51
-
52
- @property
53
- def additional_keys(self) -> List[str]:
54
- return list(self.additional_properties.keys())
55
-
56
- def __getitem__(self, key: str) -> Any:
57
- return self.additional_properties[key]
58
-
59
- def __setitem__(self, key: str, value: Any) -> None:
60
- self.additional_properties[key] = value
61
-
62
- def __delitem__(self, key: str) -> None:
63
- del self.additional_properties[key]
64
-
65
- def __contains__(self, key: str) -> bool:
66
- return key in self.additional_properties
@@ -1,91 +0,0 @@
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 ..models.gcp_create_update_subscription_delivery_type import GcpCreateUpdateSubscriptionDeliveryType
7
- from ..types import UNSET, Unset
8
-
9
- if TYPE_CHECKING:
10
- from ..models.gcp_create_update_subscription_delivery_config import GcpCreateUpdateSubscriptionDeliveryConfig
11
-
12
-
13
- T = TypeVar("T", bound="GcpCreateUpdateSubscription")
14
-
15
-
16
- @_attrs_define
17
- class GcpCreateUpdateSubscription:
18
- """
19
- Attributes:
20
- delivery_type (GcpCreateUpdateSubscriptionDeliveryType):
21
- subscription_id (Union[Unset, str]):
22
- delivery_config (Union[Unset, GcpCreateUpdateSubscriptionDeliveryConfig]):
23
- """
24
-
25
- delivery_type: GcpCreateUpdateSubscriptionDeliveryType
26
- subscription_id: Union[Unset, str] = UNSET
27
- delivery_config: Union[Unset, "GcpCreateUpdateSubscriptionDeliveryConfig"] = UNSET
28
- additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
29
-
30
- def to_dict(self) -> Dict[str, Any]:
31
- delivery_type = self.delivery_type.value
32
-
33
- subscription_id = self.subscription_id
34
- delivery_config: Union[Unset, Dict[str, Any]] = UNSET
35
- if not isinstance(self.delivery_config, Unset):
36
- delivery_config = self.delivery_config.to_dict()
37
-
38
- field_dict: Dict[str, Any] = {}
39
- field_dict.update(self.additional_properties)
40
- field_dict.update(
41
- {
42
- "delivery_type": delivery_type,
43
- }
44
- )
45
- if subscription_id is not UNSET:
46
- field_dict["subscription_id"] = subscription_id
47
- if delivery_config is not UNSET:
48
- field_dict["delivery_config"] = delivery_config
49
-
50
- return field_dict
51
-
52
- @classmethod
53
- def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
54
- from ..models.gcp_create_update_subscription_delivery_config import GcpCreateUpdateSubscriptionDeliveryConfig
55
-
56
- d = src_dict.copy()
57
- delivery_type = GcpCreateUpdateSubscriptionDeliveryType(d.pop("delivery_type"))
58
-
59
- subscription_id = d.pop("subscription_id", UNSET)
60
-
61
- _delivery_config = d.pop("delivery_config", UNSET)
62
- delivery_config: Union[Unset, GcpCreateUpdateSubscriptionDeliveryConfig]
63
- if isinstance(_delivery_config, Unset):
64
- delivery_config = UNSET
65
- else:
66
- delivery_config = GcpCreateUpdateSubscriptionDeliveryConfig.from_dict(_delivery_config)
67
-
68
- gcp_create_update_subscription = cls(
69
- delivery_type=delivery_type,
70
- subscription_id=subscription_id,
71
- delivery_config=delivery_config,
72
- )
73
-
74
- gcp_create_update_subscription.additional_properties = d
75
- return gcp_create_update_subscription
76
-
77
- @property
78
- def additional_keys(self) -> List[str]:
79
- return list(self.additional_properties.keys())
80
-
81
- def __getitem__(self, key: str) -> Any:
82
- return self.additional_properties[key]
83
-
84
- def __setitem__(self, key: str, value: Any) -> None:
85
- self.additional_properties[key] = value
86
-
87
- def __delitem__(self, key: str) -> None:
88
- del self.additional_properties[key]
89
-
90
- def __contains__(self, key: str) -> bool:
91
- return key in self.additional_properties
@@ -1,66 +0,0 @@
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.gcp_subscription_mode_config_subscription_mode import GcpSubscriptionModeConfigSubscriptionMode
7
-
8
- T = TypeVar("T", bound="GcpSubscriptionModeConfig")
9
-
10
-
11
- @_attrs_define
12
- class GcpSubscriptionModeConfig:
13
- """ "This is a union type representing the subscription mode.
14
- - 'existing': Represents an existing GCP subscription, and should be accompanied by an 'ExistingGcpSubscription'
15
- object.
16
- - 'create_update': Represents a new or updated GCP subscription, and should be accompanied by a
17
- 'CreateUpdateConfig' object."
18
-
19
- Attributes:
20
- subscription_mode (GcpSubscriptionModeConfigSubscriptionMode): The mode of subscription. 'existing' means using
21
- an existing GCP subscription, while 'create_update' involves creating or updating a new subscription.
22
- """
23
-
24
- subscription_mode: GcpSubscriptionModeConfigSubscriptionMode
25
- additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
26
-
27
- def to_dict(self) -> Dict[str, Any]:
28
- subscription_mode = self.subscription_mode.value
29
-
30
- field_dict: Dict[str, Any] = {}
31
- field_dict.update(self.additional_properties)
32
- field_dict.update(
33
- {
34
- "subscription_mode": subscription_mode,
35
- }
36
- )
37
-
38
- return field_dict
39
-
40
- @classmethod
41
- def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
42
- d = src_dict.copy()
43
- subscription_mode = GcpSubscriptionModeConfigSubscriptionMode(d.pop("subscription_mode"))
44
-
45
- gcp_subscription_mode_config = cls(
46
- subscription_mode=subscription_mode,
47
- )
48
-
49
- gcp_subscription_mode_config.additional_properties = d
50
- return gcp_subscription_mode_config
51
-
52
- @property
53
- def additional_keys(self) -> List[str]:
54
- return list(self.additional_properties.keys())
55
-
56
- def __getitem__(self, key: str) -> Any:
57
- return self.additional_properties[key]
58
-
59
- def __setitem__(self, key: str, value: Any) -> None:
60
- self.additional_properties[key] = value
61
-
62
- def __delitem__(self, key: str) -> None:
63
- del self.additional_properties[key]
64
-
65
- def __contains__(self, key: str) -> bool:
66
- return key in self.additional_properties
@@ -1,114 +0,0 @@
1
- from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
2
-
3
- from attrs import define as _attrs_define
4
- from attrs import field as _attrs_field
5
-
6
- from ..types import UNSET, Unset
7
-
8
- if TYPE_CHECKING:
9
- from ..models.new_gcp_trigger_subscription_mode import NewGcpTriggerSubscriptionMode
10
-
11
-
12
- T = TypeVar("T", bound="NewGcpTrigger")
13
-
14
-
15
- @_attrs_define
16
- class NewGcpTrigger:
17
- """
18
- Attributes:
19
- gcp_resource_path (str):
20
- topic_id (str):
21
- subscription_mode (NewGcpTriggerSubscriptionMode): "This is a union type representing the subscription mode.
22
- - 'existing': Represents an existing GCP subscription, and should be accompanied by an
23
- 'ExistingGcpSubscription' object.
24
- - 'create_update': Represents a new or updated GCP subscription, and should be accompanied by a
25
- 'CreateUpdateConfig' object."
26
- path (str):
27
- script_path (str):
28
- is_flow (bool):
29
- enabled (Union[Unset, bool]):
30
- """
31
-
32
- gcp_resource_path: str
33
- topic_id: str
34
- subscription_mode: "NewGcpTriggerSubscriptionMode"
35
- path: str
36
- script_path: str
37
- is_flow: bool
38
- enabled: Union[Unset, bool] = UNSET
39
- additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
40
-
41
- def to_dict(self) -> Dict[str, Any]:
42
- gcp_resource_path = self.gcp_resource_path
43
- topic_id = self.topic_id
44
- subscription_mode = self.subscription_mode.to_dict()
45
-
46
- path = self.path
47
- script_path = self.script_path
48
- is_flow = self.is_flow
49
- enabled = self.enabled
50
-
51
- field_dict: Dict[str, Any] = {}
52
- field_dict.update(self.additional_properties)
53
- field_dict.update(
54
- {
55
- "gcp_resource_path": gcp_resource_path,
56
- "topic_id": topic_id,
57
- "subscription_mode": subscription_mode,
58
- "path": path,
59
- "script_path": script_path,
60
- "is_flow": is_flow,
61
- }
62
- )
63
- if enabled is not UNSET:
64
- field_dict["enabled"] = enabled
65
-
66
- return field_dict
67
-
68
- @classmethod
69
- def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
70
- from ..models.new_gcp_trigger_subscription_mode import NewGcpTriggerSubscriptionMode
71
-
72
- d = src_dict.copy()
73
- gcp_resource_path = d.pop("gcp_resource_path")
74
-
75
- topic_id = d.pop("topic_id")
76
-
77
- subscription_mode = NewGcpTriggerSubscriptionMode.from_dict(d.pop("subscription_mode"))
78
-
79
- path = d.pop("path")
80
-
81
- script_path = d.pop("script_path")
82
-
83
- is_flow = d.pop("is_flow")
84
-
85
- enabled = d.pop("enabled", UNSET)
86
-
87
- new_gcp_trigger = cls(
88
- gcp_resource_path=gcp_resource_path,
89
- topic_id=topic_id,
90
- subscription_mode=subscription_mode,
91
- path=path,
92
- script_path=script_path,
93
- is_flow=is_flow,
94
- enabled=enabled,
95
- )
96
-
97
- new_gcp_trigger.additional_properties = d
98
- return new_gcp_trigger
99
-
100
- @property
101
- def additional_keys(self) -> List[str]:
102
- return list(self.additional_properties.keys())
103
-
104
- def __getitem__(self, key: str) -> Any:
105
- return self.additional_properties[key]
106
-
107
- def __setitem__(self, key: str, value: Any) -> None:
108
- self.additional_properties[key] = value
109
-
110
- def __delitem__(self, key: str) -> None:
111
- del self.additional_properties[key]
112
-
113
- def __contains__(self, key: str) -> bool:
114
- return key in self.additional_properties
@@ -1,66 +0,0 @@
1
- from typing import Any, Dict, List, Type, TypeVar
2
-
3
- from attrs import define as _attrs_define
4
- from attrs import field as _attrs_field
5
-
6
- from ..models.new_gcp_trigger_subscription_mode_subscription_mode import NewGcpTriggerSubscriptionModeSubscriptionMode
7
-
8
- T = TypeVar("T", bound="NewGcpTriggerSubscriptionMode")
9
-
10
-
11
- @_attrs_define
12
- class NewGcpTriggerSubscriptionMode:
13
- """ "This is a union type representing the subscription mode.
14
- - 'existing': Represents an existing GCP subscription, and should be accompanied by an 'ExistingGcpSubscription'
15
- object.
16
- - 'create_update': Represents a new or updated GCP subscription, and should be accompanied by a
17
- 'CreateUpdateConfig' object."
18
-
19
- Attributes:
20
- subscription_mode (NewGcpTriggerSubscriptionModeSubscriptionMode): The mode of subscription. 'existing' means
21
- using an existing GCP subscription, while 'create_update' involves creating or updating a new subscription.
22
- """
23
-
24
- subscription_mode: NewGcpTriggerSubscriptionModeSubscriptionMode
25
- additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
26
-
27
- def to_dict(self) -> Dict[str, Any]:
28
- subscription_mode = self.subscription_mode.value
29
-
30
- field_dict: Dict[str, Any] = {}
31
- field_dict.update(self.additional_properties)
32
- field_dict.update(
33
- {
34
- "subscription_mode": subscription_mode,
35
- }
36
- )
37
-
38
- return field_dict
39
-
40
- @classmethod
41
- def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
42
- d = src_dict.copy()
43
- subscription_mode = NewGcpTriggerSubscriptionModeSubscriptionMode(d.pop("subscription_mode"))
44
-
45
- new_gcp_trigger_subscription_mode = cls(
46
- subscription_mode=subscription_mode,
47
- )
48
-
49
- new_gcp_trigger_subscription_mode.additional_properties = d
50
- return new_gcp_trigger_subscription_mode
51
-
52
- @property
53
- def additional_keys(self) -> List[str]:
54
- return list(self.additional_properties.keys())
55
-
56
- def __getitem__(self, key: str) -> Any:
57
- return self.additional_properties[key]
58
-
59
- def __setitem__(self, key: str, value: Any) -> None:
60
- self.additional_properties[key] = value
61
-
62
- def __delitem__(self, key: str) -> None:
63
- del self.additional_properties[key]
64
-
65
- def __contains__(self, key: str) -> bool:
66
- return key in self.additional_properties
@@ -1,9 +0,0 @@
1
- from enum import Enum
2
-
3
-
4
- class UpdateGcpTriggerJsonBodySubscriptionModeSubscriptionMode(str, Enum):
5
- CREATE_UPDATE = "create_update"
6
- EXISTING = "existing"
7
-
8
- def __str__(self) -> str:
9
- return str(self.value)