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,161 @@
|
|
|
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_trigger_data_delivery_type import GcpTriggerDataDeliveryType
|
|
7
|
+
from ..models.gcp_trigger_data_subscription_mode import GcpTriggerDataSubscriptionMode
|
|
8
|
+
from ..types import UNSET, Unset
|
|
9
|
+
|
|
10
|
+
if TYPE_CHECKING:
|
|
11
|
+
from ..models.gcp_trigger_data_delivery_config import GcpTriggerDataDeliveryConfig
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
T = TypeVar("T", bound="GcpTriggerData")
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
@_attrs_define
|
|
18
|
+
class GcpTriggerData:
|
|
19
|
+
"""
|
|
20
|
+
Attributes:
|
|
21
|
+
gcp_resource_path (str):
|
|
22
|
+
subscription_mode (GcpTriggerDataSubscriptionMode): The mode of subscription. 'existing' means using an existing
|
|
23
|
+
GCP subscription, while 'create_update' involves creating or updating a new subscription.
|
|
24
|
+
topic_id (str):
|
|
25
|
+
path (str):
|
|
26
|
+
script_path (str):
|
|
27
|
+
is_flow (bool):
|
|
28
|
+
subscription_id (Union[Unset, str]):
|
|
29
|
+
base_endpoint (Union[Unset, str]):
|
|
30
|
+
delivery_type (Union[Unset, GcpTriggerDataDeliveryType]):
|
|
31
|
+
delivery_config (Union[Unset, GcpTriggerDataDeliveryConfig]):
|
|
32
|
+
enabled (Union[Unset, bool]):
|
|
33
|
+
"""
|
|
34
|
+
|
|
35
|
+
gcp_resource_path: str
|
|
36
|
+
subscription_mode: GcpTriggerDataSubscriptionMode
|
|
37
|
+
topic_id: str
|
|
38
|
+
path: str
|
|
39
|
+
script_path: str
|
|
40
|
+
is_flow: bool
|
|
41
|
+
subscription_id: Union[Unset, str] = UNSET
|
|
42
|
+
base_endpoint: Union[Unset, str] = UNSET
|
|
43
|
+
delivery_type: Union[Unset, GcpTriggerDataDeliveryType] = UNSET
|
|
44
|
+
delivery_config: Union[Unset, "GcpTriggerDataDeliveryConfig"] = UNSET
|
|
45
|
+
enabled: Union[Unset, bool] = UNSET
|
|
46
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
47
|
+
|
|
48
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
49
|
+
gcp_resource_path = self.gcp_resource_path
|
|
50
|
+
subscription_mode = self.subscription_mode.value
|
|
51
|
+
|
|
52
|
+
topic_id = self.topic_id
|
|
53
|
+
path = self.path
|
|
54
|
+
script_path = self.script_path
|
|
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
|
+
|
|
66
|
+
enabled = self.enabled
|
|
67
|
+
|
|
68
|
+
field_dict: Dict[str, Any] = {}
|
|
69
|
+
field_dict.update(self.additional_properties)
|
|
70
|
+
field_dict.update(
|
|
71
|
+
{
|
|
72
|
+
"gcp_resource_path": gcp_resource_path,
|
|
73
|
+
"subscription_mode": subscription_mode,
|
|
74
|
+
"topic_id": topic_id,
|
|
75
|
+
"path": path,
|
|
76
|
+
"script_path": script_path,
|
|
77
|
+
"is_flow": is_flow,
|
|
78
|
+
}
|
|
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
|
|
88
|
+
if enabled is not UNSET:
|
|
89
|
+
field_dict["enabled"] = enabled
|
|
90
|
+
|
|
91
|
+
return field_dict
|
|
92
|
+
|
|
93
|
+
@classmethod
|
|
94
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
95
|
+
from ..models.gcp_trigger_data_delivery_config import GcpTriggerDataDeliveryConfig
|
|
96
|
+
|
|
97
|
+
d = src_dict.copy()
|
|
98
|
+
gcp_resource_path = d.pop("gcp_resource_path")
|
|
99
|
+
|
|
100
|
+
subscription_mode = GcpTriggerDataSubscriptionMode(d.pop("subscription_mode"))
|
|
101
|
+
|
|
102
|
+
topic_id = d.pop("topic_id")
|
|
103
|
+
|
|
104
|
+
path = d.pop("path")
|
|
105
|
+
|
|
106
|
+
script_path = d.pop("script_path")
|
|
107
|
+
|
|
108
|
+
is_flow = d.pop("is_flow")
|
|
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, GcpTriggerDataDeliveryType]
|
|
116
|
+
if isinstance(_delivery_type, Unset):
|
|
117
|
+
delivery_type = UNSET
|
|
118
|
+
else:
|
|
119
|
+
delivery_type = GcpTriggerDataDeliveryType(_delivery_type)
|
|
120
|
+
|
|
121
|
+
_delivery_config = d.pop("delivery_config", UNSET)
|
|
122
|
+
delivery_config: Union[Unset, GcpTriggerDataDeliveryConfig]
|
|
123
|
+
if isinstance(_delivery_config, Unset):
|
|
124
|
+
delivery_config = UNSET
|
|
125
|
+
else:
|
|
126
|
+
delivery_config = GcpTriggerDataDeliveryConfig.from_dict(_delivery_config)
|
|
127
|
+
|
|
128
|
+
enabled = d.pop("enabled", UNSET)
|
|
129
|
+
|
|
130
|
+
gcp_trigger_data = cls(
|
|
131
|
+
gcp_resource_path=gcp_resource_path,
|
|
132
|
+
subscription_mode=subscription_mode,
|
|
133
|
+
topic_id=topic_id,
|
|
134
|
+
path=path,
|
|
135
|
+
script_path=script_path,
|
|
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,
|
|
141
|
+
enabled=enabled,
|
|
142
|
+
)
|
|
143
|
+
|
|
144
|
+
gcp_trigger_data.additional_properties = d
|
|
145
|
+
return gcp_trigger_data
|
|
146
|
+
|
|
147
|
+
@property
|
|
148
|
+
def additional_keys(self) -> List[str]:
|
|
149
|
+
return list(self.additional_properties.keys())
|
|
150
|
+
|
|
151
|
+
def __getitem__(self, key: str) -> Any:
|
|
152
|
+
return self.additional_properties[key]
|
|
153
|
+
|
|
154
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
155
|
+
self.additional_properties[key] = value
|
|
156
|
+
|
|
157
|
+
def __delitem__(self, key: str) -> None:
|
|
158
|
+
del self.additional_properties[key]
|
|
159
|
+
|
|
160
|
+
def __contains__(self, key: str) -> bool:
|
|
161
|
+
return key in self.additional_properties
|
|
@@ -1,52 +1,55 @@
|
|
|
1
|
-
from typing import Any, Dict, List, Type, TypeVar
|
|
1
|
+
from typing import Any, Dict, List, Type, TypeVar, Union
|
|
2
2
|
|
|
3
3
|
from attrs import define as _attrs_define
|
|
4
4
|
from attrs import field as _attrs_field
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
from ..types import UNSET, Unset
|
|
7
|
+
|
|
8
|
+
T = TypeVar("T", bound="GcpTriggerDataDeliveryConfig")
|
|
7
9
|
|
|
8
10
|
|
|
9
11
|
@_attrs_define
|
|
10
|
-
class
|
|
12
|
+
class GcpTriggerDataDeliveryConfig:
|
|
11
13
|
"""
|
|
12
14
|
Attributes:
|
|
13
|
-
|
|
14
|
-
|
|
15
|
+
authenticate (bool):
|
|
16
|
+
audience (Union[Unset, str]):
|
|
15
17
|
"""
|
|
16
18
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
+
authenticate: bool
|
|
20
|
+
audience: Union[Unset, str] = UNSET
|
|
19
21
|
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
20
22
|
|
|
21
23
|
def to_dict(self) -> Dict[str, Any]:
|
|
22
|
-
|
|
23
|
-
|
|
24
|
+
authenticate = self.authenticate
|
|
25
|
+
audience = self.audience
|
|
24
26
|
|
|
25
27
|
field_dict: Dict[str, Any] = {}
|
|
26
28
|
field_dict.update(self.additional_properties)
|
|
27
29
|
field_dict.update(
|
|
28
30
|
{
|
|
29
|
-
"
|
|
30
|
-
"base_endpoint": base_endpoint,
|
|
31
|
+
"authenticate": authenticate,
|
|
31
32
|
}
|
|
32
33
|
)
|
|
34
|
+
if audience is not UNSET:
|
|
35
|
+
field_dict["audience"] = audience
|
|
33
36
|
|
|
34
37
|
return field_dict
|
|
35
38
|
|
|
36
39
|
@classmethod
|
|
37
40
|
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
38
41
|
d = src_dict.copy()
|
|
39
|
-
|
|
42
|
+
authenticate = d.pop("authenticate")
|
|
40
43
|
|
|
41
|
-
|
|
44
|
+
audience = d.pop("audience", UNSET)
|
|
42
45
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
+
gcp_trigger_data_delivery_config = cls(
|
|
47
|
+
authenticate=authenticate,
|
|
48
|
+
audience=audience,
|
|
46
49
|
)
|
|
47
50
|
|
|
48
|
-
|
|
49
|
-
return
|
|
51
|
+
gcp_trigger_data_delivery_config.additional_properties = d
|
|
52
|
+
return gcp_trigger_data_delivery_config
|
|
50
53
|
|
|
51
54
|
@property
|
|
52
55
|
def additional_keys(self) -> List[str]:
|
|
@@ -13,18 +13,15 @@ class GcpTriggerDeliveryConfig:
|
|
|
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 GcpTriggerDeliveryConfig:
|
|
|
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,13 +41,10 @@ class GcpTriggerDeliveryConfig:
|
|
|
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
|
gcp_trigger_delivery_config = cls(
|
|
53
47
|
authenticate=authenticate,
|
|
54
|
-
base_endpoint=base_endpoint,
|
|
55
48
|
audience=audience,
|
|
56
49
|
)
|
|
57
50
|
|
|
@@ -6,6 +6,7 @@ from attrs import field as _attrs_field
|
|
|
6
6
|
from dateutil.parser import isoparse
|
|
7
7
|
|
|
8
8
|
from ..models.get_gcp_trigger_response_200_delivery_type import GetGcpTriggerResponse200DeliveryType
|
|
9
|
+
from ..models.get_gcp_trigger_response_200_subscription_mode import GetGcpTriggerResponse200SubscriptionMode
|
|
9
10
|
from ..types import UNSET, Unset
|
|
10
11
|
|
|
11
12
|
if TYPE_CHECKING:
|
|
@@ -24,6 +25,8 @@ class GetGcpTriggerResponse200:
|
|
|
24
25
|
topic_id (str):
|
|
25
26
|
subscription_id (str):
|
|
26
27
|
delivery_type (GetGcpTriggerResponse200DeliveryType):
|
|
28
|
+
subscription_mode (GetGcpTriggerResponse200SubscriptionMode): The mode of subscription. 'existing' means using
|
|
29
|
+
an existing GCP 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 GetGcpTriggerResponse200:
|
|
|
43
46
|
topic_id: str
|
|
44
47
|
subscription_id: str
|
|
45
48
|
delivery_type: GetGcpTriggerResponse200DeliveryType
|
|
49
|
+
subscription_mode: GetGcpTriggerResponse200SubscriptionMode
|
|
46
50
|
enabled: bool
|
|
47
51
|
path: str
|
|
48
52
|
script_path: str
|
|
@@ -64,6 +68,8 @@ class GetGcpTriggerResponse200:
|
|
|
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 GetGcpTriggerResponse200:
|
|
|
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 GetGcpTriggerResponse200:
|
|
|
130
137
|
|
|
131
138
|
delivery_type = GetGcpTriggerResponse200DeliveryType(d.pop("delivery_type"))
|
|
132
139
|
|
|
140
|
+
subscription_mode = GetGcpTriggerResponse200SubscriptionMode(d.pop("subscription_mode"))
|
|
141
|
+
|
|
133
142
|
enabled = d.pop("enabled")
|
|
134
143
|
|
|
135
144
|
path = d.pop("path")
|
|
@@ -171,6 +180,7 @@ class GetGcpTriggerResponse200:
|
|
|
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,
|
|
@@ -13,18 +13,15 @@ class GetGcpTriggerResponse200DeliveryConfig:
|
|
|
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 GetGcpTriggerResponse200DeliveryConfig:
|
|
|
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,13 +41,10 @@ class GetGcpTriggerResponse200DeliveryConfig:
|
|
|
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
|
get_gcp_trigger_response_200_delivery_config = cls(
|
|
53
47
|
authenticate=authenticate,
|
|
54
|
-
base_endpoint=base_endpoint,
|
|
55
48
|
audience=audience,
|
|
56
49
|
)
|
|
57
50
|
|
|
@@ -28,6 +28,7 @@ class ListAppsResponse200Item:
|
|
|
28
28
|
edited_at (datetime.datetime):
|
|
29
29
|
execution_mode (ListAppsResponse200ItemExecutionMode):
|
|
30
30
|
starred (Union[Unset, bool]):
|
|
31
|
+
raw_app (Union[Unset, bool]):
|
|
31
32
|
"""
|
|
32
33
|
|
|
33
34
|
id: int
|
|
@@ -39,6 +40,7 @@ class ListAppsResponse200Item:
|
|
|
39
40
|
edited_at: datetime.datetime
|
|
40
41
|
execution_mode: ListAppsResponse200ItemExecutionMode
|
|
41
42
|
starred: Union[Unset, bool] = UNSET
|
|
43
|
+
raw_app: Union[Unset, bool] = UNSET
|
|
42
44
|
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
43
45
|
|
|
44
46
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -54,6 +56,7 @@ class ListAppsResponse200Item:
|
|
|
54
56
|
execution_mode = self.execution_mode.value
|
|
55
57
|
|
|
56
58
|
starred = self.starred
|
|
59
|
+
raw_app = self.raw_app
|
|
57
60
|
|
|
58
61
|
field_dict: Dict[str, Any] = {}
|
|
59
62
|
field_dict.update(self.additional_properties)
|
|
@@ -71,6 +74,8 @@ class ListAppsResponse200Item:
|
|
|
71
74
|
)
|
|
72
75
|
if starred is not UNSET:
|
|
73
76
|
field_dict["starred"] = starred
|
|
77
|
+
if raw_app is not UNSET:
|
|
78
|
+
field_dict["raw_app"] = raw_app
|
|
74
79
|
|
|
75
80
|
return field_dict
|
|
76
81
|
|
|
@@ -97,6 +102,8 @@ class ListAppsResponse200Item:
|
|
|
97
102
|
|
|
98
103
|
starred = d.pop("starred", UNSET)
|
|
99
104
|
|
|
105
|
+
raw_app = d.pop("raw_app", UNSET)
|
|
106
|
+
|
|
100
107
|
list_apps_response_200_item = cls(
|
|
101
108
|
id=id,
|
|
102
109
|
workspace_id=workspace_id,
|
|
@@ -107,6 +114,7 @@ class ListAppsResponse200Item:
|
|
|
107
114
|
edited_at=edited_at,
|
|
108
115
|
execution_mode=execution_mode,
|
|
109
116
|
starred=starred,
|
|
117
|
+
raw_app=raw_app,
|
|
110
118
|
)
|
|
111
119
|
|
|
112
120
|
list_apps_response_200_item.additional_properties = d
|
|
@@ -6,6 +6,9 @@ from attrs import field as _attrs_field
|
|
|
6
6
|
from dateutil.parser import isoparse
|
|
7
7
|
|
|
8
8
|
from ..models.list_gcp_triggers_response_200_item_delivery_type import ListGcpTriggersResponse200ItemDeliveryType
|
|
9
|
+
from ..models.list_gcp_triggers_response_200_item_subscription_mode import (
|
|
10
|
+
ListGcpTriggersResponse200ItemSubscriptionMode,
|
|
11
|
+
)
|
|
9
12
|
from ..types import UNSET, Unset
|
|
10
13
|
|
|
11
14
|
if TYPE_CHECKING:
|
|
@@ -26,6 +29,8 @@ class ListGcpTriggersResponse200Item:
|
|
|
26
29
|
topic_id (str):
|
|
27
30
|
subscription_id (str):
|
|
28
31
|
delivery_type (ListGcpTriggersResponse200ItemDeliveryType):
|
|
32
|
+
subscription_mode (ListGcpTriggersResponse200ItemSubscriptionMode): The mode of subscription. 'existing' means
|
|
33
|
+
using an existing GCP subscription, while 'create_update' involves creating or updating a new subscription.
|
|
29
34
|
enabled (bool):
|
|
30
35
|
path (str):
|
|
31
36
|
script_path (str):
|
|
@@ -45,6 +50,7 @@ class ListGcpTriggersResponse200Item:
|
|
|
45
50
|
topic_id: str
|
|
46
51
|
subscription_id: str
|
|
47
52
|
delivery_type: ListGcpTriggersResponse200ItemDeliveryType
|
|
53
|
+
subscription_mode: ListGcpTriggersResponse200ItemSubscriptionMode
|
|
48
54
|
enabled: bool
|
|
49
55
|
path: str
|
|
50
56
|
script_path: str
|
|
@@ -66,6 +72,8 @@ class ListGcpTriggersResponse200Item:
|
|
|
66
72
|
subscription_id = self.subscription_id
|
|
67
73
|
delivery_type = self.delivery_type.value
|
|
68
74
|
|
|
75
|
+
subscription_mode = self.subscription_mode.value
|
|
76
|
+
|
|
69
77
|
enabled = self.enabled
|
|
70
78
|
path = self.path
|
|
71
79
|
script_path = self.script_path
|
|
@@ -96,6 +104,7 @@ class ListGcpTriggersResponse200Item:
|
|
|
96
104
|
"topic_id": topic_id,
|
|
97
105
|
"subscription_id": subscription_id,
|
|
98
106
|
"delivery_type": delivery_type,
|
|
107
|
+
"subscription_mode": subscription_mode,
|
|
99
108
|
"enabled": enabled,
|
|
100
109
|
"path": path,
|
|
101
110
|
"script_path": script_path,
|
|
@@ -134,6 +143,8 @@ class ListGcpTriggersResponse200Item:
|
|
|
134
143
|
|
|
135
144
|
delivery_type = ListGcpTriggersResponse200ItemDeliveryType(d.pop("delivery_type"))
|
|
136
145
|
|
|
146
|
+
subscription_mode = ListGcpTriggersResponse200ItemSubscriptionMode(d.pop("subscription_mode"))
|
|
147
|
+
|
|
137
148
|
enabled = d.pop("enabled")
|
|
138
149
|
|
|
139
150
|
path = d.pop("path")
|
|
@@ -175,6 +186,7 @@ class ListGcpTriggersResponse200Item:
|
|
|
175
186
|
topic_id=topic_id,
|
|
176
187
|
subscription_id=subscription_id,
|
|
177
188
|
delivery_type=delivery_type,
|
|
189
|
+
subscription_mode=subscription_mode,
|
|
178
190
|
enabled=enabled,
|
|
179
191
|
path=path,
|
|
180
192
|
script_path=script_path,
|
|
@@ -13,18 +13,15 @@ class ListGcpTriggersResponse200ItemDeliveryConfig:
|
|
|
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 ListGcpTriggersResponse200ItemDeliveryConfig:
|
|
|
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,13 +41,10 @@ class ListGcpTriggersResponse200ItemDeliveryConfig:
|
|
|
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
|
list_gcp_triggers_response_200_item_delivery_config = cls(
|
|
53
47
|
authenticate=authenticate,
|
|
54
|
-
base_endpoint=base_endpoint,
|
|
55
48
|
audience=audience,
|
|
56
49
|
)
|
|
57
50
|
|
|
@@ -28,6 +28,7 @@ class ListableApp:
|
|
|
28
28
|
edited_at (datetime.datetime):
|
|
29
29
|
execution_mode (ListableAppExecutionMode):
|
|
30
30
|
starred (Union[Unset, bool]):
|
|
31
|
+
raw_app (Union[Unset, bool]):
|
|
31
32
|
"""
|
|
32
33
|
|
|
33
34
|
id: int
|
|
@@ -39,6 +40,7 @@ class ListableApp:
|
|
|
39
40
|
edited_at: datetime.datetime
|
|
40
41
|
execution_mode: ListableAppExecutionMode
|
|
41
42
|
starred: Union[Unset, bool] = UNSET
|
|
43
|
+
raw_app: Union[Unset, bool] = UNSET
|
|
42
44
|
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
43
45
|
|
|
44
46
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -54,6 +56,7 @@ class ListableApp:
|
|
|
54
56
|
execution_mode = self.execution_mode.value
|
|
55
57
|
|
|
56
58
|
starred = self.starred
|
|
59
|
+
raw_app = self.raw_app
|
|
57
60
|
|
|
58
61
|
field_dict: Dict[str, Any] = {}
|
|
59
62
|
field_dict.update(self.additional_properties)
|
|
@@ -71,6 +74,8 @@ class ListableApp:
|
|
|
71
74
|
)
|
|
72
75
|
if starred is not UNSET:
|
|
73
76
|
field_dict["starred"] = starred
|
|
77
|
+
if raw_app is not UNSET:
|
|
78
|
+
field_dict["raw_app"] = raw_app
|
|
74
79
|
|
|
75
80
|
return field_dict
|
|
76
81
|
|
|
@@ -97,6 +102,8 @@ class ListableApp:
|
|
|
97
102
|
|
|
98
103
|
starred = d.pop("starred", UNSET)
|
|
99
104
|
|
|
105
|
+
raw_app = d.pop("raw_app", UNSET)
|
|
106
|
+
|
|
100
107
|
listable_app = cls(
|
|
101
108
|
id=id,
|
|
102
109
|
workspace_id=workspace_id,
|
|
@@ -107,6 +114,7 @@ class ListableApp:
|
|
|
107
114
|
edited_at=edited_at,
|
|
108
115
|
execution_mode=execution_mode,
|
|
109
116
|
starred=starred,
|
|
117
|
+
raw_app=raw_app,
|
|
110
118
|
)
|
|
111
119
|
|
|
112
120
|
listable_app.additional_properties = d
|
|
@@ -13,18 +13,15 @@ class PushConfig:
|
|
|
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 PushConfig:
|
|
|
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,13 +41,10 @@ class PushConfig:
|
|
|
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
|
push_config = cls(
|
|
53
47
|
authenticate=authenticate,
|
|
54
|
-
base_endpoint=base_endpoint,
|
|
55
48
|
audience=audience,
|
|
56
49
|
)
|
|
57
50
|
|