windmill-api 1.481.0__py3-none-any.whl → 1.483.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 (131) hide show
  1. windmill_api/api/agent_workers/__init__.py +0 -0
  2. windmill_api/api/agent_workers/create_agent_token.py +149 -0
  3. windmill_api/api/app/sign_s3_objects.py +175 -0
  4. windmill_api/api/capture/set_capture_config.py +70 -7
  5. windmill_api/api/concurrency_groups/list_extended_jobs.py +15 -0
  6. windmill_api/api/gcp_trigger/__init__.py +0 -0
  7. windmill_api/api/gcp_trigger/create_gcp_trigger.py +105 -0
  8. windmill_api/api/gcp_trigger/delete_gcp_subscription.py +113 -0
  9. windmill_api/api/gcp_trigger/delete_gcp_trigger.py +101 -0
  10. windmill_api/api/gcp_trigger/exists_gcp_trigger.py +160 -0
  11. windmill_api/api/gcp_trigger/get_gcp_trigger.py +166 -0
  12. windmill_api/api/gcp_trigger/list_all_t_google_topic_subscriptions.py +179 -0
  13. windmill_api/api/gcp_trigger/list_gcp_triggers.py +237 -0
  14. windmill_api/api/gcp_trigger/list_google_topics.py +161 -0
  15. windmill_api/api/gcp_trigger/set_gcp_trigger_enabled.py +113 -0
  16. windmill_api/api/gcp_trigger/test_gcp_connection.py +105 -0
  17. windmill_api/api/gcp_trigger/update_gcp_trigger.py +113 -0
  18. windmill_api/api/job/batch_re_run_jobs.py +105 -0
  19. windmill_api/api/job/list_completed_jobs.py +15 -0
  20. windmill_api/api/job/list_filtered_jobs_uuids.py +633 -0
  21. windmill_api/api/job/{list_filtered_uuids.py → list_filtered_queue_uuids.py} +19 -4
  22. windmill_api/api/job/list_jobs.py +15 -0
  23. windmill_api/api/job/list_queue.py +15 -0
  24. windmill_api/api/job/list_selected_job_groups.py +104 -0
  25. windmill_api/models/add_granular_acls_kind.py +1 -0
  26. windmill_api/models/ai_config_code_completion_model_provider.py +1 -0
  27. windmill_api/models/ai_config_default_model_provider.py +1 -0
  28. windmill_api/models/ai_provider.py +1 -0
  29. windmill_api/models/ai_provider_model_provider.py +1 -0
  30. windmill_api/models/aws_auth_resource_type.py +9 -0
  31. windmill_api/models/batch_re_run_jobs_json_body.py +84 -0
  32. windmill_api/models/batch_re_run_jobs_json_body_flow_options_by_path.py +66 -0
  33. windmill_api/models/batch_re_run_jobs_json_body_flow_options_by_path_additional_property.py +86 -0
  34. windmill_api/models/batch_re_run_jobs_json_body_flow_options_by_path_additional_property_input_transforms.py +123 -0
  35. windmill_api/models/batch_re_run_jobs_json_body_flow_options_by_path_additional_property_input_transforms_additional_property_type_0.py +78 -0
  36. windmill_api/models/batch_re_run_jobs_json_body_flow_options_by_path_additional_property_input_transforms_additional_property_type_0_type.py +8 -0
  37. windmill_api/models/batch_re_run_jobs_json_body_flow_options_by_path_additional_property_input_transforms_additional_property_type_1.py +75 -0
  38. windmill_api/models/batch_re_run_jobs_json_body_flow_options_by_path_additional_property_input_transforms_additional_property_type_1_type.py +8 -0
  39. windmill_api/models/batch_re_run_jobs_json_body_script_options_by_path.py +66 -0
  40. windmill_api/models/batch_re_run_jobs_json_body_script_options_by_path_additional_property.py +86 -0
  41. windmill_api/models/batch_re_run_jobs_json_body_script_options_by_path_additional_property_input_transforms.py +123 -0
  42. windmill_api/models/batch_re_run_jobs_json_body_script_options_by_path_additional_property_input_transforms_additional_property_type_0.py +78 -0
  43. windmill_api/models/batch_re_run_jobs_json_body_script_options_by_path_additional_property_input_transforms_additional_property_type_0_type.py +8 -0
  44. windmill_api/models/batch_re_run_jobs_json_body_script_options_by_path_additional_property_input_transforms_additional_property_type_1.py +75 -0
  45. windmill_api/models/batch_re_run_jobs_json_body_script_options_by_path_additional_property_input_transforms_additional_property_type_1_type.py +8 -0
  46. windmill_api/models/capture_config_trigger_kind.py +1 -0
  47. windmill_api/models/capture_trigger_kind.py +1 -0
  48. windmill_api/models/create_agent_token_json_body.py +73 -0
  49. windmill_api/models/create_gcp_trigger_json_body.py +115 -0
  50. windmill_api/models/create_gcp_trigger_json_body_subscription_mode.py +69 -0
  51. windmill_api/models/create_gcp_trigger_json_body_subscription_mode_subscription_mode.py +9 -0
  52. windmill_api/models/create_sqs_trigger_json_body.py +9 -0
  53. windmill_api/models/create_sqs_trigger_json_body_aws_auth_resource_type.py +9 -0
  54. windmill_api/models/delete_gcp_subscription.py +58 -0
  55. windmill_api/models/delete_gcp_subscription_json_body.py +58 -0
  56. windmill_api/models/delivery_type.py +9 -0
  57. windmill_api/models/edit_copilot_config_json_body_code_completion_model_provider.py +1 -0
  58. windmill_api/models/edit_copilot_config_json_body_default_model_provider.py +1 -0
  59. windmill_api/models/edit_gcp_trigger.py +114 -0
  60. windmill_api/models/edit_gcp_trigger_subscription_mode.py +66 -0
  61. windmill_api/models/edit_gcp_trigger_subscription_mode_subscription_mode.py +9 -0
  62. windmill_api/models/edit_sqs_trigger.py +9 -0
  63. windmill_api/models/edit_sqs_trigger_aws_auth_resource_type.py +9 -0
  64. windmill_api/models/gcp_create_update_subscription.py +91 -0
  65. windmill_api/models/gcp_create_update_subscription_delivery_config.py +75 -0
  66. windmill_api/models/gcp_create_update_subscription_delivery_type.py +9 -0
  67. windmill_api/models/gcp_existing_subscription.py +65 -0
  68. windmill_api/models/gcp_subscription_mode_config.py +66 -0
  69. windmill_api/models/gcp_subscription_mode_config_subscription_mode.py +9 -0
  70. windmill_api/models/gcp_trigger.py +206 -0
  71. windmill_api/models/gcp_trigger_delivery_config.py +75 -0
  72. windmill_api/models/gcp_trigger_delivery_type.py +9 -0
  73. windmill_api/models/gcp_trigger_extra_perms.py +44 -0
  74. windmill_api/models/get_all_topic_subscription.py +58 -0
  75. windmill_api/models/get_capture_configs_response_200_item_trigger_kind.py +1 -0
  76. windmill_api/models/get_capture_response_200_trigger_kind.py +1 -0
  77. windmill_api/models/get_copilot_info_response_200_code_completion_model_provider.py +1 -0
  78. windmill_api/models/get_copilot_info_response_200_default_model_provider.py +1 -0
  79. windmill_api/models/get_gcp_trigger_response_200.py +206 -0
  80. windmill_api/models/get_gcp_trigger_response_200_delivery_config.py +75 -0
  81. windmill_api/models/get_gcp_trigger_response_200_delivery_type.py +9 -0
  82. windmill_api/models/get_gcp_trigger_response_200_extra_perms.py +44 -0
  83. windmill_api/models/get_granular_acls_kind.py +1 -0
  84. windmill_api/models/get_settings_response_200_ai_config_code_completion_model_provider.py +1 -0
  85. windmill_api/models/get_settings_response_200_ai_config_default_model_provider.py +1 -0
  86. windmill_api/models/get_sqs_trigger_response_200.py +9 -0
  87. windmill_api/models/get_sqs_trigger_response_200_aws_auth_resource_type.py +9 -0
  88. windmill_api/models/get_triggers_count_of_flow_response_200.py +8 -0
  89. windmill_api/models/get_triggers_count_of_script_response_200.py +8 -0
  90. windmill_api/models/get_used_triggers_response_200.py +7 -0
  91. windmill_api/models/list_all_t_google_topic_subscriptions_json_body.py +58 -0
  92. windmill_api/models/list_captures_response_200_item_trigger_kind.py +1 -0
  93. windmill_api/models/list_captures_trigger_kind.py +1 -0
  94. windmill_api/models/list_gcp_triggers_response_200_item.py +210 -0
  95. windmill_api/models/list_gcp_triggers_response_200_item_delivery_config.py +75 -0
  96. windmill_api/models/list_gcp_triggers_response_200_item_delivery_type.py +9 -0
  97. windmill_api/models/list_gcp_triggers_response_200_item_extra_perms.py +44 -0
  98. windmill_api/models/list_sqs_triggers_response_200_item.py +11 -0
  99. windmill_api/models/list_sqs_triggers_response_200_item_aws_auth_resource_type.py +9 -0
  100. windmill_api/models/new_gcp_trigger.py +114 -0
  101. windmill_api/models/new_gcp_trigger_subscription_mode.py +66 -0
  102. windmill_api/models/new_gcp_trigger_subscription_mode_subscription_mode.py +9 -0
  103. windmill_api/models/new_sqs_trigger.py +9 -0
  104. windmill_api/models/new_sqs_trigger_aws_auth_resource_type.py +9 -0
  105. windmill_api/models/ping_capture_config_trigger_kind.py +1 -0
  106. windmill_api/models/preview.py +8 -0
  107. windmill_api/models/push_config.py +75 -0
  108. windmill_api/models/remove_granular_acls_kind.py +1 -0
  109. windmill_api/models/run_script_preview_json_body.py +8 -0
  110. windmill_api/models/s3_object.py +84 -0
  111. windmill_api/models/set_capture_config_json_body_trigger_kind.py +1 -0
  112. windmill_api/models/set_capture_config_response_200.py +44 -0
  113. windmill_api/models/set_gcp_trigger_enabled_json_body.py +58 -0
  114. windmill_api/models/sign_s3_objects_json_body.py +73 -0
  115. windmill_api/models/sign_s3_objects_json_body_s3_objects_item.py +84 -0
  116. windmill_api/models/sign_s3_objects_response_200_item.py +84 -0
  117. windmill_api/models/sqs_trigger.py +9 -0
  118. windmill_api/models/sqs_trigger_aws_auth_resource_type.py +9 -0
  119. windmill_api/models/subscription_mode.py +9 -0
  120. windmill_api/models/test_gcp_connection_json_body.py +64 -0
  121. windmill_api/models/test_gcp_connection_json_body_connection.py +44 -0
  122. windmill_api/models/triggers_count.py +8 -0
  123. windmill_api/models/update_gcp_trigger_json_body.py +115 -0
  124. windmill_api/models/update_gcp_trigger_json_body_subscription_mode.py +69 -0
  125. windmill_api/models/update_gcp_trigger_json_body_subscription_mode_subscription_mode.py +9 -0
  126. windmill_api/models/update_sqs_trigger_json_body.py +9 -0
  127. windmill_api/models/update_sqs_trigger_json_body_aws_auth_resource_type.py +9 -0
  128. {windmill_api-1.481.0.dist-info → windmill_api-1.483.0.dist-info}/METADATA +1 -1
  129. {windmill_api-1.481.0.dist-info → windmill_api-1.483.0.dist-info}/RECORD +131 -44
  130. {windmill_api-1.481.0.dist-info → windmill_api-1.483.0.dist-info}/LICENSE +0 -0
  131. {windmill_api-1.481.0.dist-info → windmill_api-1.483.0.dist-info}/WHEEL +0 -0
@@ -0,0 +1,75 @@
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="GetGcpTriggerResponse200DeliveryConfig")
9
+
10
+
11
+ @_attrs_define
12
+ class GetGcpTriggerResponse200DeliveryConfig:
13
+ """
14
+ Attributes:
15
+ authenticate (bool):
16
+ base_endpoint (str):
17
+ audience (Union[Unset, str]):
18
+ """
19
+
20
+ authenticate: bool
21
+ base_endpoint: str
22
+ audience: Union[Unset, str] = UNSET
23
+ additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
24
+
25
+ def to_dict(self) -> Dict[str, Any]:
26
+ authenticate = self.authenticate
27
+ base_endpoint = self.base_endpoint
28
+ audience = self.audience
29
+
30
+ field_dict: Dict[str, Any] = {}
31
+ field_dict.update(self.additional_properties)
32
+ field_dict.update(
33
+ {
34
+ "authenticate": authenticate,
35
+ "base_endpoint": base_endpoint,
36
+ }
37
+ )
38
+ if audience is not UNSET:
39
+ field_dict["audience"] = audience
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
+ authenticate = d.pop("authenticate")
47
+
48
+ base_endpoint = d.pop("base_endpoint")
49
+
50
+ audience = d.pop("audience", UNSET)
51
+
52
+ get_gcp_trigger_response_200_delivery_config = cls(
53
+ authenticate=authenticate,
54
+ base_endpoint=base_endpoint,
55
+ audience=audience,
56
+ )
57
+
58
+ get_gcp_trigger_response_200_delivery_config.additional_properties = d
59
+ return get_gcp_trigger_response_200_delivery_config
60
+
61
+ @property
62
+ def additional_keys(self) -> List[str]:
63
+ return list(self.additional_properties.keys())
64
+
65
+ def __getitem__(self, key: str) -> Any:
66
+ return self.additional_properties[key]
67
+
68
+ def __setitem__(self, key: str, value: Any) -> None:
69
+ self.additional_properties[key] = value
70
+
71
+ def __delitem__(self, key: str) -> None:
72
+ del self.additional_properties[key]
73
+
74
+ def __contains__(self, key: str) -> bool:
75
+ return key in self.additional_properties
@@ -0,0 +1,9 @@
1
+ from enum import Enum
2
+
3
+
4
+ class GetGcpTriggerResponse200DeliveryType(str, Enum):
5
+ PULL = "pull"
6
+ PUSH = "push"
7
+
8
+ def __str__(self) -> str:
9
+ return str(self.value)
@@ -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="GetGcpTriggerResponse200ExtraPerms")
7
+
8
+
9
+ @_attrs_define
10
+ class GetGcpTriggerResponse200ExtraPerms:
11
+ """ """
12
+
13
+ additional_properties: Dict[str, bool] = _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
+ get_gcp_trigger_response_200_extra_perms = cls()
26
+
27
+ get_gcp_trigger_response_200_extra_perms.additional_properties = d
28
+ return get_gcp_trigger_response_200_extra_perms
29
+
30
+ @property
31
+ def additional_keys(self) -> List[str]:
32
+ return list(self.additional_properties.keys())
33
+
34
+ def __getitem__(self, key: str) -> bool:
35
+ return self.additional_properties[key]
36
+
37
+ def __setitem__(self, key: str, value: bool) -> 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
@@ -5,6 +5,7 @@ class GetGranularAclsKind(str, Enum):
5
5
  APP = "app"
6
6
  FLOW = "flow"
7
7
  FOLDER = "folder"
8
+ GCP_TRIGGER = "gcp_trigger"
8
9
  GROUP = "group_"
9
10
  HTTP_TRIGGER = "http_trigger"
10
11
  KAFKA_TRIGGER = "kafka_trigger"
@@ -3,6 +3,7 @@ from enum import Enum
3
3
 
4
4
  class GetSettingsResponse200AiConfigCodeCompletionModelProvider(str, Enum):
5
5
  ANTHROPIC = "anthropic"
6
+ AZURE_OPENAI = "azure_openai"
6
7
  CUSTOMAI = "customai"
7
8
  DEEPSEEK = "deepseek"
8
9
  GOOGLEAI = "googleai"
@@ -3,6 +3,7 @@ from enum import Enum
3
3
 
4
4
  class GetSettingsResponse200AiConfigDefaultModelProvider(str, Enum):
5
5
  ANTHROPIC = "anthropic"
6
+ AZURE_OPENAI = "azure_openai"
6
7
  CUSTOMAI = "customai"
7
8
  DEEPSEEK = "deepseek"
8
9
  GOOGLEAI = "googleai"
@@ -5,6 +5,7 @@ from attrs import define as _attrs_define
5
5
  from attrs import field as _attrs_field
6
6
  from dateutil.parser import isoparse
7
7
 
8
+ from ..models.get_sqs_trigger_response_200_aws_auth_resource_type import GetSqsTriggerResponse200AwsAuthResourceType
8
9
  from ..types import UNSET, Unset
9
10
 
10
11
  if TYPE_CHECKING:
@@ -19,6 +20,7 @@ class GetSqsTriggerResponse200:
19
20
  """
20
21
  Attributes:
21
22
  queue_url (str):
23
+ aws_auth_resource_type (GetSqsTriggerResponse200AwsAuthResourceType):
22
24
  aws_resource_path (str):
23
25
  enabled (bool):
24
26
  path (str):
@@ -36,6 +38,7 @@ class GetSqsTriggerResponse200:
36
38
  """
37
39
 
38
40
  queue_url: str
41
+ aws_auth_resource_type: GetSqsTriggerResponse200AwsAuthResourceType
39
42
  aws_resource_path: str
40
43
  enabled: bool
41
44
  path: str
@@ -54,6 +57,8 @@ class GetSqsTriggerResponse200:
54
57
 
55
58
  def to_dict(self) -> Dict[str, Any]:
56
59
  queue_url = self.queue_url
60
+ aws_auth_resource_type = self.aws_auth_resource_type.value
61
+
57
62
  aws_resource_path = self.aws_resource_path
58
63
  enabled = self.enabled
59
64
  path = self.path
@@ -82,6 +87,7 @@ class GetSqsTriggerResponse200:
82
87
  field_dict.update(
83
88
  {
84
89
  "queue_url": queue_url,
90
+ "aws_auth_resource_type": aws_auth_resource_type,
85
91
  "aws_resource_path": aws_resource_path,
86
92
  "enabled": enabled,
87
93
  "path": path,
@@ -112,6 +118,8 @@ class GetSqsTriggerResponse200:
112
118
  d = src_dict.copy()
113
119
  queue_url = d.pop("queue_url")
114
120
 
121
+ aws_auth_resource_type = GetSqsTriggerResponse200AwsAuthResourceType(d.pop("aws_auth_resource_type"))
122
+
115
123
  aws_resource_path = d.pop("aws_resource_path")
116
124
 
117
125
  enabled = d.pop("enabled")
@@ -147,6 +155,7 @@ class GetSqsTriggerResponse200:
147
155
 
148
156
  get_sqs_trigger_response_200 = cls(
149
157
  queue_url=queue_url,
158
+ aws_auth_resource_type=aws_auth_resource_type,
150
159
  aws_resource_path=aws_resource_path,
151
160
  enabled=enabled,
152
161
  path=path,
@@ -0,0 +1,9 @@
1
+ from enum import Enum
2
+
3
+
4
+ class GetSqsTriggerResponse200AwsAuthResourceType(str, Enum):
5
+ CREDENTIALS = "credentials"
6
+ OIDC = "oidc"
7
+
8
+ def __str__(self) -> str:
9
+ return str(self.value)
@@ -28,6 +28,7 @@ class GetTriggersCountOfFlowResponse200:
28
28
  kafka_count (Union[Unset, float]):
29
29
  nats_count (Union[Unset, float]):
30
30
  mqtt_count (Union[Unset, float]):
31
+ gcp_count (Union[Unset, float]):
31
32
  sqs_count (Union[Unset, float]):
32
33
  """
33
34
 
@@ -41,6 +42,7 @@ class GetTriggersCountOfFlowResponse200:
41
42
  kafka_count: Union[Unset, float] = UNSET
42
43
  nats_count: Union[Unset, float] = UNSET
43
44
  mqtt_count: Union[Unset, float] = UNSET
45
+ gcp_count: Union[Unset, float] = UNSET
44
46
  sqs_count: Union[Unset, float] = UNSET
45
47
  additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
46
48
 
@@ -58,6 +60,7 @@ class GetTriggersCountOfFlowResponse200:
58
60
  kafka_count = self.kafka_count
59
61
  nats_count = self.nats_count
60
62
  mqtt_count = self.mqtt_count
63
+ gcp_count = self.gcp_count
61
64
  sqs_count = self.sqs_count
62
65
 
63
66
  field_dict: Dict[str, Any] = {}
@@ -83,6 +86,8 @@ class GetTriggersCountOfFlowResponse200:
83
86
  field_dict["nats_count"] = nats_count
84
87
  if mqtt_count is not UNSET:
85
88
  field_dict["mqtt_count"] = mqtt_count
89
+ if gcp_count is not UNSET:
90
+ field_dict["gcp_count"] = gcp_count
86
91
  if sqs_count is not UNSET:
87
92
  field_dict["sqs_count"] = sqs_count
88
93
 
@@ -120,6 +125,8 @@ class GetTriggersCountOfFlowResponse200:
120
125
 
121
126
  mqtt_count = d.pop("mqtt_count", UNSET)
122
127
 
128
+ gcp_count = d.pop("gcp_count", UNSET)
129
+
123
130
  sqs_count = d.pop("sqs_count", UNSET)
124
131
 
125
132
  get_triggers_count_of_flow_response_200 = cls(
@@ -133,6 +140,7 @@ class GetTriggersCountOfFlowResponse200:
133
140
  kafka_count=kafka_count,
134
141
  nats_count=nats_count,
135
142
  mqtt_count=mqtt_count,
143
+ gcp_count=gcp_count,
136
144
  sqs_count=sqs_count,
137
145
  )
138
146
 
@@ -28,6 +28,7 @@ class GetTriggersCountOfScriptResponse200:
28
28
  kafka_count (Union[Unset, float]):
29
29
  nats_count (Union[Unset, float]):
30
30
  mqtt_count (Union[Unset, float]):
31
+ gcp_count (Union[Unset, float]):
31
32
  sqs_count (Union[Unset, float]):
32
33
  """
33
34
 
@@ -41,6 +42,7 @@ class GetTriggersCountOfScriptResponse200:
41
42
  kafka_count: Union[Unset, float] = UNSET
42
43
  nats_count: Union[Unset, float] = UNSET
43
44
  mqtt_count: Union[Unset, float] = UNSET
45
+ gcp_count: Union[Unset, float] = UNSET
44
46
  sqs_count: Union[Unset, float] = UNSET
45
47
  additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
46
48
 
@@ -58,6 +60,7 @@ class GetTriggersCountOfScriptResponse200:
58
60
  kafka_count = self.kafka_count
59
61
  nats_count = self.nats_count
60
62
  mqtt_count = self.mqtt_count
63
+ gcp_count = self.gcp_count
61
64
  sqs_count = self.sqs_count
62
65
 
63
66
  field_dict: Dict[str, Any] = {}
@@ -83,6 +86,8 @@ class GetTriggersCountOfScriptResponse200:
83
86
  field_dict["nats_count"] = nats_count
84
87
  if mqtt_count is not UNSET:
85
88
  field_dict["mqtt_count"] = mqtt_count
89
+ if gcp_count is not UNSET:
90
+ field_dict["gcp_count"] = gcp_count
86
91
  if sqs_count is not UNSET:
87
92
  field_dict["sqs_count"] = sqs_count
88
93
 
@@ -120,6 +125,8 @@ class GetTriggersCountOfScriptResponse200:
120
125
 
121
126
  mqtt_count = d.pop("mqtt_count", UNSET)
122
127
 
128
+ gcp_count = d.pop("gcp_count", UNSET)
129
+
123
130
  sqs_count = d.pop("sqs_count", UNSET)
124
131
 
125
132
  get_triggers_count_of_script_response_200 = cls(
@@ -133,6 +140,7 @@ class GetTriggersCountOfScriptResponse200:
133
140
  kafka_count=kafka_count,
134
141
  nats_count=nats_count,
135
142
  mqtt_count=mqtt_count,
143
+ gcp_count=gcp_count,
136
144
  sqs_count=sqs_count,
137
145
  )
138
146
 
@@ -16,6 +16,7 @@ class GetUsedTriggersResponse200:
16
16
  nats_used (bool):
17
17
  postgres_used (bool):
18
18
  mqtt_used (bool):
19
+ gcp_used (bool):
19
20
  sqs_used (bool):
20
21
  """
21
22
 
@@ -25,6 +26,7 @@ class GetUsedTriggersResponse200:
25
26
  nats_used: bool
26
27
  postgres_used: bool
27
28
  mqtt_used: bool
29
+ gcp_used: bool
28
30
  sqs_used: bool
29
31
  additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
30
32
 
@@ -35,6 +37,7 @@ class GetUsedTriggersResponse200:
35
37
  nats_used = self.nats_used
36
38
  postgres_used = self.postgres_used
37
39
  mqtt_used = self.mqtt_used
40
+ gcp_used = self.gcp_used
38
41
  sqs_used = self.sqs_used
39
42
 
40
43
  field_dict: Dict[str, Any] = {}
@@ -47,6 +50,7 @@ class GetUsedTriggersResponse200:
47
50
  "nats_used": nats_used,
48
51
  "postgres_used": postgres_used,
49
52
  "mqtt_used": mqtt_used,
53
+ "gcp_used": gcp_used,
50
54
  "sqs_used": sqs_used,
51
55
  }
52
56
  )
@@ -68,6 +72,8 @@ class GetUsedTriggersResponse200:
68
72
 
69
73
  mqtt_used = d.pop("mqtt_used")
70
74
 
75
+ gcp_used = d.pop("gcp_used")
76
+
71
77
  sqs_used = d.pop("sqs_used")
72
78
 
73
79
  get_used_triggers_response_200 = cls(
@@ -77,6 +83,7 @@ class GetUsedTriggersResponse200:
77
83
  nats_used=nats_used,
78
84
  postgres_used=postgres_used,
79
85
  mqtt_used=mqtt_used,
86
+ gcp_used=gcp_used,
80
87
  sqs_used=sqs_used,
81
88
  )
82
89
 
@@ -0,0 +1,58 @@
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="ListAllTGoogleTopicSubscriptionsJsonBody")
7
+
8
+
9
+ @_attrs_define
10
+ class ListAllTGoogleTopicSubscriptionsJsonBody:
11
+ """
12
+ Attributes:
13
+ topic_id (str):
14
+ """
15
+
16
+ topic_id: str
17
+ additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
18
+
19
+ def to_dict(self) -> Dict[str, Any]:
20
+ topic_id = self.topic_id
21
+
22
+ field_dict: Dict[str, Any] = {}
23
+ field_dict.update(self.additional_properties)
24
+ field_dict.update(
25
+ {
26
+ "topic_id": topic_id,
27
+ }
28
+ )
29
+
30
+ return field_dict
31
+
32
+ @classmethod
33
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
34
+ d = src_dict.copy()
35
+ topic_id = d.pop("topic_id")
36
+
37
+ list_all_t_google_topic_subscriptions_json_body = cls(
38
+ topic_id=topic_id,
39
+ )
40
+
41
+ list_all_t_google_topic_subscriptions_json_body.additional_properties = d
42
+ return list_all_t_google_topic_subscriptions_json_body
43
+
44
+ @property
45
+ def additional_keys(self) -> List[str]:
46
+ return list(self.additional_properties.keys())
47
+
48
+ def __getitem__(self, key: str) -> Any:
49
+ return self.additional_properties[key]
50
+
51
+ def __setitem__(self, key: str, value: Any) -> None:
52
+ self.additional_properties[key] = value
53
+
54
+ def __delitem__(self, key: str) -> None:
55
+ del self.additional_properties[key]
56
+
57
+ def __contains__(self, key: str) -> bool:
58
+ return key in self.additional_properties
@@ -3,6 +3,7 @@ from enum import Enum
3
3
 
4
4
  class ListCapturesResponse200ItemTriggerKind(str, Enum):
5
5
  EMAIL = "email"
6
+ GCP = "gcp"
6
7
  HTTP = "http"
7
8
  KAFKA = "kafka"
8
9
  MQTT = "mqtt"
@@ -3,6 +3,7 @@ from enum import Enum
3
3
 
4
4
  class ListCapturesTriggerKind(str, Enum):
5
5
  EMAIL = "email"
6
+ GCP = "gcp"
6
7
  HTTP = "http"
7
8
  KAFKA = "kafka"
8
9
  MQTT = "mqtt"
@@ -0,0 +1,210 @@
1
+ import datetime
2
+ from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
3
+
4
+ from attrs import define as _attrs_define
5
+ from attrs import field as _attrs_field
6
+ from dateutil.parser import isoparse
7
+
8
+ from ..models.list_gcp_triggers_response_200_item_delivery_type import ListGcpTriggersResponse200ItemDeliveryType
9
+ from ..types import UNSET, Unset
10
+
11
+ if TYPE_CHECKING:
12
+ from ..models.list_gcp_triggers_response_200_item_delivery_config import (
13
+ ListGcpTriggersResponse200ItemDeliveryConfig,
14
+ )
15
+ from ..models.list_gcp_triggers_response_200_item_extra_perms import ListGcpTriggersResponse200ItemExtraPerms
16
+
17
+
18
+ T = TypeVar("T", bound="ListGcpTriggersResponse200Item")
19
+
20
+
21
+ @_attrs_define
22
+ class ListGcpTriggersResponse200Item:
23
+ """
24
+ Attributes:
25
+ gcp_resource_path (str):
26
+ topic_id (str):
27
+ subscription_id (str):
28
+ delivery_type (ListGcpTriggersResponse200ItemDeliveryType):
29
+ enabled (bool):
30
+ path (str):
31
+ script_path (str):
32
+ email (str):
33
+ extra_perms (ListGcpTriggersResponse200ItemExtraPerms):
34
+ workspace_id (str):
35
+ edited_by (str):
36
+ edited_at (datetime.datetime):
37
+ is_flow (bool):
38
+ server_id (Union[Unset, str]):
39
+ delivery_config (Union[Unset, ListGcpTriggersResponse200ItemDeliveryConfig]):
40
+ last_server_ping (Union[Unset, datetime.datetime]):
41
+ error (Union[Unset, str]):
42
+ """
43
+
44
+ gcp_resource_path: str
45
+ topic_id: str
46
+ subscription_id: str
47
+ delivery_type: ListGcpTriggersResponse200ItemDeliveryType
48
+ enabled: bool
49
+ path: str
50
+ script_path: str
51
+ email: str
52
+ extra_perms: "ListGcpTriggersResponse200ItemExtraPerms"
53
+ workspace_id: str
54
+ edited_by: str
55
+ edited_at: datetime.datetime
56
+ is_flow: bool
57
+ server_id: Union[Unset, str] = UNSET
58
+ delivery_config: Union[Unset, "ListGcpTriggersResponse200ItemDeliveryConfig"] = UNSET
59
+ last_server_ping: Union[Unset, datetime.datetime] = UNSET
60
+ error: Union[Unset, str] = UNSET
61
+ additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
62
+
63
+ def to_dict(self) -> Dict[str, Any]:
64
+ gcp_resource_path = self.gcp_resource_path
65
+ topic_id = self.topic_id
66
+ subscription_id = self.subscription_id
67
+ delivery_type = self.delivery_type.value
68
+
69
+ enabled = self.enabled
70
+ path = self.path
71
+ script_path = self.script_path
72
+ email = self.email
73
+ extra_perms = self.extra_perms.to_dict()
74
+
75
+ workspace_id = self.workspace_id
76
+ edited_by = self.edited_by
77
+ edited_at = self.edited_at.isoformat()
78
+
79
+ is_flow = self.is_flow
80
+ server_id = self.server_id
81
+ delivery_config: Union[Unset, Dict[str, Any]] = UNSET
82
+ if not isinstance(self.delivery_config, Unset):
83
+ delivery_config = self.delivery_config.to_dict()
84
+
85
+ last_server_ping: Union[Unset, str] = UNSET
86
+ if not isinstance(self.last_server_ping, Unset):
87
+ last_server_ping = self.last_server_ping.isoformat()
88
+
89
+ error = self.error
90
+
91
+ field_dict: Dict[str, Any] = {}
92
+ field_dict.update(self.additional_properties)
93
+ field_dict.update(
94
+ {
95
+ "gcp_resource_path": gcp_resource_path,
96
+ "topic_id": topic_id,
97
+ "subscription_id": subscription_id,
98
+ "delivery_type": delivery_type,
99
+ "enabled": enabled,
100
+ "path": path,
101
+ "script_path": script_path,
102
+ "email": email,
103
+ "extra_perms": extra_perms,
104
+ "workspace_id": workspace_id,
105
+ "edited_by": edited_by,
106
+ "edited_at": edited_at,
107
+ "is_flow": is_flow,
108
+ }
109
+ )
110
+ if server_id is not UNSET:
111
+ field_dict["server_id"] = server_id
112
+ if delivery_config is not UNSET:
113
+ field_dict["delivery_config"] = delivery_config
114
+ if last_server_ping is not UNSET:
115
+ field_dict["last_server_ping"] = last_server_ping
116
+ if error is not UNSET:
117
+ field_dict["error"] = error
118
+
119
+ return field_dict
120
+
121
+ @classmethod
122
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
123
+ from ..models.list_gcp_triggers_response_200_item_delivery_config import (
124
+ ListGcpTriggersResponse200ItemDeliveryConfig,
125
+ )
126
+ from ..models.list_gcp_triggers_response_200_item_extra_perms import ListGcpTriggersResponse200ItemExtraPerms
127
+
128
+ d = src_dict.copy()
129
+ gcp_resource_path = d.pop("gcp_resource_path")
130
+
131
+ topic_id = d.pop("topic_id")
132
+
133
+ subscription_id = d.pop("subscription_id")
134
+
135
+ delivery_type = ListGcpTriggersResponse200ItemDeliveryType(d.pop("delivery_type"))
136
+
137
+ enabled = d.pop("enabled")
138
+
139
+ path = d.pop("path")
140
+
141
+ script_path = d.pop("script_path")
142
+
143
+ email = d.pop("email")
144
+
145
+ extra_perms = ListGcpTriggersResponse200ItemExtraPerms.from_dict(d.pop("extra_perms"))
146
+
147
+ workspace_id = d.pop("workspace_id")
148
+
149
+ edited_by = d.pop("edited_by")
150
+
151
+ edited_at = isoparse(d.pop("edited_at"))
152
+
153
+ is_flow = d.pop("is_flow")
154
+
155
+ server_id = d.pop("server_id", UNSET)
156
+
157
+ _delivery_config = d.pop("delivery_config", UNSET)
158
+ delivery_config: Union[Unset, ListGcpTriggersResponse200ItemDeliveryConfig]
159
+ if isinstance(_delivery_config, Unset):
160
+ delivery_config = UNSET
161
+ else:
162
+ delivery_config = ListGcpTriggersResponse200ItemDeliveryConfig.from_dict(_delivery_config)
163
+
164
+ _last_server_ping = d.pop("last_server_ping", UNSET)
165
+ last_server_ping: Union[Unset, datetime.datetime]
166
+ if isinstance(_last_server_ping, Unset):
167
+ last_server_ping = UNSET
168
+ else:
169
+ last_server_ping = isoparse(_last_server_ping)
170
+
171
+ error = d.pop("error", UNSET)
172
+
173
+ list_gcp_triggers_response_200_item = cls(
174
+ gcp_resource_path=gcp_resource_path,
175
+ topic_id=topic_id,
176
+ subscription_id=subscription_id,
177
+ delivery_type=delivery_type,
178
+ enabled=enabled,
179
+ path=path,
180
+ script_path=script_path,
181
+ email=email,
182
+ extra_perms=extra_perms,
183
+ workspace_id=workspace_id,
184
+ edited_by=edited_by,
185
+ edited_at=edited_at,
186
+ is_flow=is_flow,
187
+ server_id=server_id,
188
+ delivery_config=delivery_config,
189
+ last_server_ping=last_server_ping,
190
+ error=error,
191
+ )
192
+
193
+ list_gcp_triggers_response_200_item.additional_properties = d
194
+ return list_gcp_triggers_response_200_item
195
+
196
+ @property
197
+ def additional_keys(self) -> List[str]:
198
+ return list(self.additional_properties.keys())
199
+
200
+ def __getitem__(self, key: str) -> Any:
201
+ return self.additional_properties[key]
202
+
203
+ def __setitem__(self, key: str, value: Any) -> None:
204
+ self.additional_properties[key] = value
205
+
206
+ def __delitem__(self, key: str) -> None:
207
+ del self.additional_properties[key]
208
+
209
+ def __contains__(self, key: str) -> bool:
210
+ return key in self.additional_properties