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.

Files changed (58) 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/teams_channel.py +79 -0
  34. windmill_api/models/update_app_raw_multipart_data.py +111 -0
  35. windmill_api/models/update_app_raw_multipart_data_app.py +112 -0
  36. windmill_api/models/update_app_raw_multipart_data_app_policy.py +187 -0
  37. windmill_api/models/update_app_raw_multipart_data_app_policy_allowed_s3_keys_item.py +66 -0
  38. windmill_api/models/update_app_raw_multipart_data_app_policy_execution_mode.py +10 -0
  39. windmill_api/models/update_app_raw_multipart_data_app_policy_s3_inputs_item.py +44 -0
  40. windmill_api/models/update_app_raw_multipart_data_app_policy_triggerables.py +66 -0
  41. windmill_api/models/update_app_raw_multipart_data_app_policy_triggerables_additional_property.py +44 -0
  42. windmill_api/models/update_app_raw_multipart_data_app_policy_triggerables_v2.py +70 -0
  43. windmill_api/models/update_app_raw_multipart_data_app_policy_triggerables_v2_additional_property.py +44 -0
  44. windmill_api/models/update_gcp_trigger_json_body.py +72 -26
  45. windmill_api/models/update_gcp_trigger_json_body_delivery_config.py +68 -0
  46. windmill_api/models/update_gcp_trigger_json_body_delivery_type.py +9 -0
  47. windmill_api/models/update_gcp_trigger_json_body_subscription_mode.py +6 -66
  48. {windmill_api-1.483.1.dist-info → windmill_api-1.484.0.dist-info}/METADATA +1 -1
  49. {windmill_api-1.483.1.dist-info → windmill_api-1.484.0.dist-info}/RECORD +51 -31
  50. windmill_api/models/edit_gcp_trigger.py +0 -114
  51. windmill_api/models/edit_gcp_trigger_subscription_mode.py +0 -66
  52. windmill_api/models/gcp_create_update_subscription.py +0 -91
  53. windmill_api/models/gcp_subscription_mode_config.py +0 -66
  54. windmill_api/models/new_gcp_trigger.py +0 -114
  55. windmill_api/models/new_gcp_trigger_subscription_mode.py +0 -66
  56. windmill_api/models/update_gcp_trigger_json_body_subscription_mode_subscription_mode.py +0 -9
  57. {windmill_api-1.483.1.dist-info → windmill_api-1.484.0.dist-info}/LICENSE +0 -0
  58. {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="UpdateAppRawMultipartDataAppPolicyTriggerablesAdditionalProperty")
7
+
8
+
9
+ @_attrs_define
10
+ class UpdateAppRawMultipartDataAppPolicyTriggerablesAdditionalProperty:
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
+ update_app_raw_multipart_data_app_policy_triggerables_additional_property = cls()
26
+
27
+ update_app_raw_multipart_data_app_policy_triggerables_additional_property.additional_properties = d
28
+ return update_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.update_app_raw_multipart_data_app_policy_triggerables_v2_additional_property import (
8
+ UpdateAppRawMultipartDataAppPolicyTriggerablesV2AdditionalProperty,
9
+ )
10
+
11
+
12
+ T = TypeVar("T", bound="UpdateAppRawMultipartDataAppPolicyTriggerablesV2")
13
+
14
+
15
+ @_attrs_define
16
+ class UpdateAppRawMultipartDataAppPolicyTriggerablesV2:
17
+ """ """
18
+
19
+ additional_properties: Dict[
20
+ str, "UpdateAppRawMultipartDataAppPolicyTriggerablesV2AdditionalProperty"
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.update_app_raw_multipart_data_app_policy_triggerables_v2_additional_property import (
37
+ UpdateAppRawMultipartDataAppPolicyTriggerablesV2AdditionalProperty,
38
+ )
39
+
40
+ d = src_dict.copy()
41
+ update_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 = UpdateAppRawMultipartDataAppPolicyTriggerablesV2AdditionalProperty.from_dict(
46
+ prop_dict
47
+ )
48
+
49
+ additional_properties[prop_name] = additional_property
50
+
51
+ update_app_raw_multipart_data_app_policy_triggerables_v2.additional_properties = additional_properties
52
+ return update_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) -> "UpdateAppRawMultipartDataAppPolicyTriggerablesV2AdditionalProperty":
59
+ return self.additional_properties[key]
60
+
61
+ def __setitem__(
62
+ self, key: str, value: "UpdateAppRawMultipartDataAppPolicyTriggerablesV2AdditionalProperty"
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
@@ -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="UpdateAppRawMultipartDataAppPolicyTriggerablesV2AdditionalProperty")
7
+
8
+
9
+ @_attrs_define
10
+ class UpdateAppRawMultipartDataAppPolicyTriggerablesV2AdditionalProperty:
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
+ update_app_raw_multipart_data_app_policy_triggerables_v2_additional_property = cls()
26
+
27
+ update_app_raw_multipart_data_app_policy_triggerables_v2_additional_property.additional_properties = d
28
+ return update_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.update_gcp_trigger_json_body_delivery_type import UpdateGcpTriggerJsonBodyDeliveryType
7
+ from ..models.update_gcp_trigger_json_body_subscription_mode import UpdateGcpTriggerJsonBodySubscriptionMode
6
8
  from ..types import UNSET, Unset
7
9
 
8
10
  if TYPE_CHECKING:
9
- from ..models.update_gcp_trigger_json_body_subscription_mode import UpdateGcpTriggerJsonBodySubscriptionMode
11
+ from ..models.update_gcp_trigger_json_body_delivery_config import UpdateGcpTriggerJsonBodyDeliveryConfig
10
12
 
11
13
 
12
14
  T = TypeVar("T", bound="UpdateGcpTriggerJsonBody")
@@ -16,64 +18,88 @@ T = TypeVar("T", bound="UpdateGcpTriggerJsonBody")
16
18
  class UpdateGcpTriggerJsonBody:
17
19
  """
18
20
  Attributes:
21
+ gcp_resource_path (str):
22
+ subscription_mode (UpdateGcpTriggerJsonBodySubscriptionMode): The mode of subscription. 'existing' means using
23
+ an existing GCP subscription, while 'create_update' involves creating or updating a new subscription.
19
24
  topic_id (str):
20
- subscription_mode (UpdateGcpTriggerJsonBodySubscriptionMode): "This is a union type representing the
21
- 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
25
  path (str):
27
26
  script_path (str):
28
27
  is_flow (bool):
29
- enabled (bool):
30
- gcp_resource_path (Union[Unset, str]):
28
+ subscription_id (Union[Unset, str]):
29
+ base_endpoint (Union[Unset, str]):
30
+ delivery_type (Union[Unset, UpdateGcpTriggerJsonBodyDeliveryType]):
31
+ delivery_config (Union[Unset, UpdateGcpTriggerJsonBodyDeliveryConfig]):
32
+ enabled (Union[Unset, bool]):
31
33
  """
32
34
 
35
+ gcp_resource_path: str
36
+ subscription_mode: UpdateGcpTriggerJsonBodySubscriptionMode
33
37
  topic_id: str
34
- subscription_mode: "UpdateGcpTriggerJsonBodySubscriptionMode"
35
38
  path: str
36
39
  script_path: str
37
40
  is_flow: bool
38
- enabled: bool
39
- gcp_resource_path: Union[Unset, str] = UNSET
41
+ subscription_id: Union[Unset, str] = UNSET
42
+ base_endpoint: Union[Unset, str] = UNSET
43
+ delivery_type: Union[Unset, UpdateGcpTriggerJsonBodyDeliveryType] = UNSET
44
+ delivery_config: Union[Unset, "UpdateGcpTriggerJsonBodyDeliveryConfig"] = UNSET
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
- topic_id = self.topic_id
44
- subscription_mode = self.subscription_mode.to_dict()
49
+ gcp_resource_path = self.gcp_resource_path
50
+ subscription_mode = self.subscription_mode.value
45
51
 
52
+ topic_id = self.topic_id
46
53
  path = self.path
47
54
  script_path = self.script_path
48
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
+
49
66
  enabled = self.enabled
50
- gcp_resource_path = self.gcp_resource_path
51
67
 
52
68
  field_dict: Dict[str, Any] = {}
53
69
  field_dict.update(self.additional_properties)
54
70
  field_dict.update(
55
71
  {
56
- "topic_id": topic_id,
72
+ "gcp_resource_path": gcp_resource_path,
57
73
  "subscription_mode": subscription_mode,
74
+ "topic_id": topic_id,
58
75
  "path": path,
59
76
  "script_path": script_path,
60
77
  "is_flow": is_flow,
61
- "enabled": enabled,
62
78
  }
63
79
  )
64
- if gcp_resource_path is not UNSET:
65
- field_dict["gcp_resource_path"] = gcp_resource_path
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
88
+ if enabled is not UNSET:
89
+ field_dict["enabled"] = enabled
66
90
 
67
91
  return field_dict
68
92
 
69
93
  @classmethod
70
94
  def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
71
- from ..models.update_gcp_trigger_json_body_subscription_mode import UpdateGcpTriggerJsonBodySubscriptionMode
95
+ from ..models.update_gcp_trigger_json_body_delivery_config import UpdateGcpTriggerJsonBodyDeliveryConfig
72
96
 
73
97
  d = src_dict.copy()
74
- topic_id = d.pop("topic_id")
98
+ gcp_resource_path = d.pop("gcp_resource_path")
75
99
 
76
- subscription_mode = UpdateGcpTriggerJsonBodySubscriptionMode.from_dict(d.pop("subscription_mode"))
100
+ subscription_mode = UpdateGcpTriggerJsonBodySubscriptionMode(d.pop("subscription_mode"))
101
+
102
+ topic_id = d.pop("topic_id")
77
103
 
78
104
  path = d.pop("path")
79
105
 
@@ -81,18 +107,38 @@ class UpdateGcpTriggerJsonBody:
81
107
 
82
108
  is_flow = d.pop("is_flow")
83
109
 
84
- enabled = d.pop("enabled")
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, UpdateGcpTriggerJsonBodyDeliveryType]
116
+ if isinstance(_delivery_type, Unset):
117
+ delivery_type = UNSET
118
+ else:
119
+ delivery_type = UpdateGcpTriggerJsonBodyDeliveryType(_delivery_type)
120
+
121
+ _delivery_config = d.pop("delivery_config", UNSET)
122
+ delivery_config: Union[Unset, UpdateGcpTriggerJsonBodyDeliveryConfig]
123
+ if isinstance(_delivery_config, Unset):
124
+ delivery_config = UNSET
125
+ else:
126
+ delivery_config = UpdateGcpTriggerJsonBodyDeliveryConfig.from_dict(_delivery_config)
85
127
 
86
- gcp_resource_path = d.pop("gcp_resource_path", UNSET)
128
+ enabled = d.pop("enabled", UNSET)
87
129
 
88
130
  update_gcp_trigger_json_body = cls(
89
- topic_id=topic_id,
131
+ gcp_resource_path=gcp_resource_path,
90
132
  subscription_mode=subscription_mode,
133
+ topic_id=topic_id,
91
134
  path=path,
92
135
  script_path=script_path,
93
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,
94
141
  enabled=enabled,
95
- gcp_resource_path=gcp_resource_path,
96
142
  )
97
143
 
98
144
  update_gcp_trigger_json_body.additional_properties = d
@@ -0,0 +1,68 @@
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 ..types import UNSET, Unset
7
+
8
+ T = TypeVar("T", bound="UpdateGcpTriggerJsonBodyDeliveryConfig")
9
+
10
+
11
+ @_attrs_define
12
+ class UpdateGcpTriggerJsonBodyDeliveryConfig:
13
+ """
14
+ Attributes:
15
+ authenticate (bool):
16
+ audience (Union[Unset, str]):
17
+ """
18
+
19
+ authenticate: bool
20
+ audience: Union[Unset, str] = UNSET
21
+ additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
22
+
23
+ def to_dict(self) -> Dict[str, Any]:
24
+ authenticate = self.authenticate
25
+ audience = self.audience
26
+
27
+ field_dict: Dict[str, Any] = {}
28
+ field_dict.update(self.additional_properties)
29
+ field_dict.update(
30
+ {
31
+ "authenticate": authenticate,
32
+ }
33
+ )
34
+ if audience is not UNSET:
35
+ field_dict["audience"] = audience
36
+
37
+ return field_dict
38
+
39
+ @classmethod
40
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
41
+ d = src_dict.copy()
42
+ authenticate = d.pop("authenticate")
43
+
44
+ audience = d.pop("audience", UNSET)
45
+
46
+ update_gcp_trigger_json_body_delivery_config = cls(
47
+ authenticate=authenticate,
48
+ audience=audience,
49
+ )
50
+
51
+ update_gcp_trigger_json_body_delivery_config.additional_properties = d
52
+ return update_gcp_trigger_json_body_delivery_config
53
+
54
+ @property
55
+ def additional_keys(self) -> List[str]:
56
+ return list(self.additional_properties.keys())
57
+
58
+ def __getitem__(self, key: str) -> Any:
59
+ return self.additional_properties[key]
60
+
61
+ def __setitem__(self, key: str, value: Any) -> None:
62
+ self.additional_properties[key] = value
63
+
64
+ def __delitem__(self, key: str) -> None:
65
+ del self.additional_properties[key]
66
+
67
+ def __contains__(self, key: str) -> bool:
68
+ return key in self.additional_properties
@@ -0,0 +1,9 @@
1
+ from enum import Enum
2
+
3
+
4
+ class UpdateGcpTriggerJsonBodyDeliveryType(str, Enum):
5
+ PULL = "pull"
6
+ PUSH = "push"
7
+
8
+ def __str__(self) -> str:
9
+ return str(self.value)
@@ -1,69 +1,9 @@
1
- from typing import Any, Dict, List, Type, TypeVar
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
- from ..models.update_gcp_trigger_json_body_subscription_mode_subscription_mode import (
7
- UpdateGcpTriggerJsonBodySubscriptionModeSubscriptionMode,
8
- )
4
+ class UpdateGcpTriggerJsonBodySubscriptionMode(str, Enum):
5
+ CREATE_UPDATE = "create_update"
6
+ EXISTING = "existing"
9
7
 
10
- T = TypeVar("T", bound="UpdateGcpTriggerJsonBodySubscriptionMode")
11
-
12
-
13
- @_attrs_define
14
- class UpdateGcpTriggerJsonBodySubscriptionMode:
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 (UpdateGcpTriggerJsonBodySubscriptionModeSubscriptionMode): 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: UpdateGcpTriggerJsonBodySubscriptionModeSubscriptionMode
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 = UpdateGcpTriggerJsonBodySubscriptionModeSubscriptionMode(d.pop("subscription_mode"))
47
-
48
- update_gcp_trigger_json_body_subscription_mode = cls(
49
- subscription_mode=subscription_mode,
50
- )
51
-
52
- update_gcp_trigger_json_body_subscription_mode.additional_properties = d
53
- return update_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)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: windmill-api
3
- Version: 1.483.1
3
+ Version: 1.484.0
4
4
  Summary: A client library for accessing Windmill API
5
5
  License: Apache-2.0
6
6
  Author: Ruben Fiszel