windmill-api 1.448.1__py3-none-any.whl → 1.449.1__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 (107) hide show
  1. windmill_api/api/postgres_trigger/__init__.py +0 -0
  2. windmill_api/api/postgres_trigger/create_postgres_publication.py +121 -0
  3. windmill_api/api/postgres_trigger/create_postgres_replication_slot.py +113 -0
  4. windmill_api/api/postgres_trigger/create_postgres_trigger.py +105 -0
  5. windmill_api/api/postgres_trigger/create_template_script.py +105 -0
  6. windmill_api/api/postgres_trigger/delete_postgres_publication.py +109 -0
  7. windmill_api/api/postgres_trigger/delete_postgres_replication_slot.py +113 -0
  8. windmill_api/api/postgres_trigger/delete_postgres_trigger.py +101 -0
  9. windmill_api/api/postgres_trigger/exists_postgres_trigger.py +160 -0
  10. windmill_api/api/postgres_trigger/get_postgres_publication.py +180 -0
  11. windmill_api/api/postgres_trigger/get_postgres_trigger.py +166 -0
  12. windmill_api/api/postgres_trigger/get_template_script.py +101 -0
  13. windmill_api/api/postgres_trigger/is_valid_postgres_configuration.py +160 -0
  14. windmill_api/api/postgres_trigger/list_postgres_publication.py +161 -0
  15. windmill_api/api/postgres_trigger/list_postgres_replication_slot.py +171 -0
  16. windmill_api/api/postgres_trigger/list_postgres_triggers.py +237 -0
  17. windmill_api/api/postgres_trigger/set_postgres_trigger_enabled.py +113 -0
  18. windmill_api/api/postgres_trigger/update_postgres_publication.py +121 -0
  19. windmill_api/api/postgres_trigger/update_postgres_trigger.py +113 -0
  20. windmill_api/api/teams/__init__.py +0 -0
  21. windmill_api/api/teams/sync_teams.py +131 -0
  22. windmill_api/api/workspace/update_operator_settings.py +109 -0
  23. windmill_api/models/add_granular_acls_kind.py +1 -0
  24. windmill_api/models/channel_info.py +80 -0
  25. windmill_api/models/create_postgres_publication_json_body.py +90 -0
  26. windmill_api/models/create_postgres_publication_json_body_table_to_track_item.py +86 -0
  27. windmill_api/models/create_postgres_publication_json_body_table_to_track_item_table_to_track_item.py +79 -0
  28. windmill_api/models/create_postgres_replication_slot_json_body.py +58 -0
  29. windmill_api/models/create_postgres_trigger_json_body.py +125 -0
  30. windmill_api/models/create_postgres_trigger_json_body_publication.py +92 -0
  31. windmill_api/models/create_postgres_trigger_json_body_publication_table_to_track_item.py +86 -0
  32. windmill_api/models/create_postgres_trigger_json_body_publication_table_to_track_item_table_to_track_item.py +79 -0
  33. windmill_api/models/create_template_script_json_body.py +90 -0
  34. windmill_api/models/create_template_script_json_body_language.py +8 -0
  35. windmill_api/models/create_template_script_json_body_relations_item.py +86 -0
  36. windmill_api/models/create_template_script_json_body_relations_item_table_to_track_item.py +79 -0
  37. windmill_api/models/delete_postgres_replication_slot_json_body.py +58 -0
  38. windmill_api/models/edit_postgres_trigger.py +123 -0
  39. windmill_api/models/edit_postgres_trigger_publication.py +90 -0
  40. windmill_api/models/edit_postgres_trigger_publication_table_to_track_item.py +86 -0
  41. windmill_api/models/edit_postgres_trigger_publication_table_to_track_item_table_to_track_item.py +79 -0
  42. windmill_api/models/get_granular_acls_kind.py +1 -0
  43. windmill_api/models/get_http_trigger_response_200.py +36 -36
  44. windmill_api/models/get_postgres_publication_response_200.py +90 -0
  45. windmill_api/models/get_postgres_publication_response_200_table_to_track_item.py +86 -0
  46. windmill_api/models/get_postgres_publication_response_200_table_to_track_item_table_to_track_item.py +79 -0
  47. windmill_api/models/get_postgres_trigger_response_200.py +178 -0
  48. windmill_api/models/get_postgres_trigger_response_200_extra_perms.py +44 -0
  49. windmill_api/models/get_settings_response_200.py +19 -0
  50. windmill_api/models/get_settings_response_200_operator_settings.py +114 -0
  51. windmill_api/models/get_triggers_count_of_flow_response_200.py +8 -0
  52. windmill_api/models/get_triggers_count_of_script_response_200.py +8 -0
  53. windmill_api/models/get_used_triggers_response_200.py +7 -0
  54. windmill_api/models/get_websocket_trigger_response_200.py +37 -37
  55. windmill_api/models/http_trigger.py +36 -36
  56. windmill_api/models/language.py +8 -0
  57. windmill_api/models/list_http_triggers_response_200_item.py +36 -36
  58. windmill_api/models/list_postgres_replication_slot_response_200_item.py +66 -0
  59. windmill_api/models/list_postgres_triggers_response_200_item.py +182 -0
  60. windmill_api/models/list_postgres_triggers_response_200_item_extra_perms.py +44 -0
  61. windmill_api/models/list_user_workspaces_response_200_workspaces_item.py +32 -1
  62. windmill_api/models/list_user_workspaces_response_200_workspaces_item_operator_settings.py +114 -0
  63. windmill_api/models/list_websocket_triggers_response_200_item.py +37 -37
  64. windmill_api/models/new_postgres_trigger.py +125 -0
  65. windmill_api/models/new_postgres_trigger_publication.py +90 -0
  66. windmill_api/models/new_postgres_trigger_publication_table_to_track_item.py +86 -0
  67. windmill_api/models/new_postgres_trigger_publication_table_to_track_item_table_to_track_item.py +79 -0
  68. windmill_api/models/operator_settings.py +114 -0
  69. windmill_api/models/postgres_trigger.py +178 -0
  70. windmill_api/models/postgres_trigger_extra_perms.py +44 -0
  71. windmill_api/models/publication_data.py +86 -0
  72. windmill_api/models/publication_data_table_to_track_item.py +84 -0
  73. windmill_api/models/publication_data_table_to_track_item_table_to_track_item.py +79 -0
  74. windmill_api/models/relations.py +80 -0
  75. windmill_api/models/relations_table_to_track_item.py +79 -0
  76. windmill_api/models/remove_granular_acls_kind.py +1 -0
  77. windmill_api/models/script_lang.py +25 -0
  78. windmill_api/models/set_postgres_trigger_enabled_json_body.py +58 -0
  79. windmill_api/models/slot.py +58 -0
  80. windmill_api/models/slot_list.py +66 -0
  81. windmill_api/models/sync_teams_response_200_item.py +87 -0
  82. windmill_api/models/sync_teams_response_200_item_channels_item.py +80 -0
  83. windmill_api/models/table_to_track_item.py +79 -0
  84. windmill_api/models/team_info.py +87 -0
  85. windmill_api/models/team_info_channels_item.py +80 -0
  86. windmill_api/models/template_script.py +90 -0
  87. windmill_api/models/template_script_language.py +8 -0
  88. windmill_api/models/template_script_relations_item.py +82 -0
  89. windmill_api/models/template_script_relations_item_table_to_track_item.py +79 -0
  90. windmill_api/models/trigger_extra_property.py +95 -0
  91. windmill_api/models/trigger_extra_property_extra_perms.py +44 -0
  92. windmill_api/models/triggers_count.py +8 -0
  93. windmill_api/models/update_operator_settings_json_body.py +114 -0
  94. windmill_api/models/update_postgres_publication_json_body.py +90 -0
  95. windmill_api/models/update_postgres_publication_json_body_table_to_track_item.py +86 -0
  96. windmill_api/models/update_postgres_publication_json_body_table_to_track_item_table_to_track_item.py +79 -0
  97. windmill_api/models/update_postgres_trigger_json_body.py +123 -0
  98. windmill_api/models/update_postgres_trigger_json_body_publication.py +92 -0
  99. windmill_api/models/update_postgres_trigger_json_body_publication_table_to_track_item.py +86 -0
  100. windmill_api/models/update_postgres_trigger_json_body_publication_table_to_track_item_table_to_track_item.py +79 -0
  101. windmill_api/models/user_workspace_list_workspaces_item.py +30 -1
  102. windmill_api/models/user_workspace_list_workspaces_item_operator_settings.py +114 -0
  103. windmill_api/models/websocket_trigger.py +37 -37
  104. {windmill_api-1.448.1.dist-info → windmill_api-1.449.1.dist-info}/METADATA +1 -1
  105. {windmill_api-1.448.1.dist-info → windmill_api-1.449.1.dist-info}/RECORD +107 -20
  106. {windmill_api-1.448.1.dist-info → windmill_api-1.449.1.dist-info}/LICENSE +0 -0
  107. {windmill_api-1.448.1.dist-info → windmill_api-1.449.1.dist-info}/WHEEL +0 -0
@@ -14,12 +14,14 @@ class GetUsedTriggersResponse200:
14
14
  websocket_used (bool):
15
15
  kafka_used (bool):
16
16
  nats_used (bool):
17
+ postgres_used (bool):
17
18
  """
18
19
 
19
20
  http_routes_used: bool
20
21
  websocket_used: bool
21
22
  kafka_used: bool
22
23
  nats_used: bool
24
+ postgres_used: bool
23
25
  additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
24
26
 
25
27
  def to_dict(self) -> Dict[str, Any]:
@@ -27,6 +29,7 @@ class GetUsedTriggersResponse200:
27
29
  websocket_used = self.websocket_used
28
30
  kafka_used = self.kafka_used
29
31
  nats_used = self.nats_used
32
+ postgres_used = self.postgres_used
30
33
 
31
34
  field_dict: Dict[str, Any] = {}
32
35
  field_dict.update(self.additional_properties)
@@ -36,6 +39,7 @@ class GetUsedTriggersResponse200:
36
39
  "websocket_used": websocket_used,
37
40
  "kafka_used": kafka_used,
38
41
  "nats_used": nats_used,
42
+ "postgres_used": postgres_used,
39
43
  }
40
44
  )
41
45
 
@@ -52,11 +56,14 @@ class GetUsedTriggersResponse200:
52
56
 
53
57
  nats_used = d.pop("nats_used")
54
58
 
59
+ postgres_used = d.pop("postgres_used")
60
+
55
61
  get_used_triggers_response_200 = cls(
56
62
  http_routes_used=http_routes_used,
57
63
  websocket_used=websocket_used,
58
64
  kafka_used=kafka_used,
59
65
  nats_used=nats_used,
66
+ postgres_used=postgres_used,
60
67
  )
61
68
 
62
69
  get_used_triggers_response_200.additional_properties = d
@@ -29,16 +29,16 @@ class GetWebsocketTriggerResponse200:
29
29
  """
30
30
  Attributes:
31
31
  path (str):
32
- edited_by (str):
33
- edited_at (datetime.datetime):
34
32
  script_path (str):
35
33
  url (str):
36
34
  is_flow (bool):
37
- extra_perms (GetWebsocketTriggerResponse200ExtraPerms):
38
- email (str):
39
- workspace_id (str):
40
35
  enabled (bool):
41
36
  filters (List['GetWebsocketTriggerResponse200FiltersItem']):
37
+ email (str):
38
+ extra_perms (GetWebsocketTriggerResponse200ExtraPerms):
39
+ workspace_id (str):
40
+ edited_by (str):
41
+ edited_at (datetime.datetime):
42
42
  server_id (Union[Unset, str]):
43
43
  last_server_ping (Union[Unset, datetime.datetime]):
44
44
  error (Union[Unset, str]):
@@ -48,16 +48,16 @@ class GetWebsocketTriggerResponse200:
48
48
  """
49
49
 
50
50
  path: str
51
- edited_by: str
52
- edited_at: datetime.datetime
53
51
  script_path: str
54
52
  url: str
55
53
  is_flow: bool
56
- extra_perms: "GetWebsocketTriggerResponse200ExtraPerms"
57
- email: str
58
- workspace_id: str
59
54
  enabled: bool
60
55
  filters: List["GetWebsocketTriggerResponse200FiltersItem"]
56
+ email: str
57
+ extra_perms: "GetWebsocketTriggerResponse200ExtraPerms"
58
+ workspace_id: str
59
+ edited_by: str
60
+ edited_at: datetime.datetime
61
61
  server_id: Union[Unset, str] = UNSET
62
62
  last_server_ping: Union[Unset, datetime.datetime] = UNSET
63
63
  error: Union[Unset, str] = UNSET
@@ -79,16 +79,9 @@ class GetWebsocketTriggerResponse200:
79
79
  )
80
80
 
81
81
  path = self.path
82
- edited_by = self.edited_by
83
- edited_at = self.edited_at.isoformat()
84
-
85
82
  script_path = self.script_path
86
83
  url = self.url
87
84
  is_flow = self.is_flow
88
- extra_perms = self.extra_perms.to_dict()
89
-
90
- email = self.email
91
- workspace_id = self.workspace_id
92
85
  enabled = self.enabled
93
86
  filters = []
94
87
  for filters_item_data in self.filters:
@@ -96,6 +89,13 @@ class GetWebsocketTriggerResponse200:
96
89
 
97
90
  filters.append(filters_item)
98
91
 
92
+ email = self.email
93
+ extra_perms = self.extra_perms.to_dict()
94
+
95
+ workspace_id = self.workspace_id
96
+ edited_by = self.edited_by
97
+ edited_at = self.edited_at.isoformat()
98
+
99
99
  server_id = self.server_id
100
100
  last_server_ping: Union[Unset, str] = UNSET
101
101
  if not isinstance(self.last_server_ping, Unset):
@@ -125,16 +125,16 @@ class GetWebsocketTriggerResponse200:
125
125
  field_dict.update(
126
126
  {
127
127
  "path": path,
128
- "edited_by": edited_by,
129
- "edited_at": edited_at,
130
128
  "script_path": script_path,
131
129
  "url": url,
132
130
  "is_flow": is_flow,
133
- "extra_perms": extra_perms,
134
- "email": email,
135
- "workspace_id": workspace_id,
136
131
  "enabled": enabled,
137
132
  "filters": filters,
133
+ "email": email,
134
+ "extra_perms": extra_perms,
135
+ "workspace_id": workspace_id,
136
+ "edited_by": edited_by,
137
+ "edited_at": edited_at,
138
138
  }
139
139
  )
140
140
  if server_id is not UNSET:
@@ -167,22 +167,12 @@ class GetWebsocketTriggerResponse200:
167
167
  d = src_dict.copy()
168
168
  path = d.pop("path")
169
169
 
170
- edited_by = d.pop("edited_by")
171
-
172
- edited_at = isoparse(d.pop("edited_at"))
173
-
174
170
  script_path = d.pop("script_path")
175
171
 
176
172
  url = d.pop("url")
177
173
 
178
174
  is_flow = d.pop("is_flow")
179
175
 
180
- extra_perms = GetWebsocketTriggerResponse200ExtraPerms.from_dict(d.pop("extra_perms"))
181
-
182
- email = d.pop("email")
183
-
184
- workspace_id = d.pop("workspace_id")
185
-
186
176
  enabled = d.pop("enabled")
187
177
 
188
178
  filters = []
@@ -192,6 +182,16 @@ class GetWebsocketTriggerResponse200:
192
182
 
193
183
  filters.append(filters_item)
194
184
 
185
+ email = d.pop("email")
186
+
187
+ extra_perms = GetWebsocketTriggerResponse200ExtraPerms.from_dict(d.pop("extra_perms"))
188
+
189
+ workspace_id = d.pop("workspace_id")
190
+
191
+ edited_by = d.pop("edited_by")
192
+
193
+ edited_at = isoparse(d.pop("edited_at"))
194
+
195
195
  server_id = d.pop("server_id", UNSET)
196
196
 
197
197
  _last_server_ping = d.pop("last_server_ping", UNSET)
@@ -242,16 +242,16 @@ class GetWebsocketTriggerResponse200:
242
242
 
243
243
  get_websocket_trigger_response_200 = cls(
244
244
  path=path,
245
- edited_by=edited_by,
246
- edited_at=edited_at,
247
245
  script_path=script_path,
248
246
  url=url,
249
247
  is_flow=is_flow,
250
- extra_perms=extra_perms,
251
- email=email,
252
- workspace_id=workspace_id,
253
248
  enabled=enabled,
254
249
  filters=filters,
250
+ email=email,
251
+ extra_perms=extra_perms,
252
+ workspace_id=workspace_id,
253
+ edited_by=edited_by,
254
+ edited_at=edited_at,
255
255
  server_id=server_id,
256
256
  last_server_ping=last_server_ping,
257
257
  error=error,
@@ -21,51 +21,51 @@ class HttpTrigger:
21
21
  """
22
22
  Attributes:
23
23
  path (str):
24
- edited_by (str):
25
- edited_at (datetime.datetime):
26
24
  script_path (str):
27
25
  route_path (str):
28
26
  is_flow (bool):
29
- extra_perms (HttpTriggerExtraPerms):
30
- email (str):
31
- workspace_id (str):
32
27
  http_method (HttpTriggerHttpMethod):
33
28
  is_async (bool):
34
29
  requires_auth (bool):
30
+ email (str):
31
+ extra_perms (HttpTriggerExtraPerms):
32
+ workspace_id (str):
33
+ edited_by (str):
34
+ edited_at (datetime.datetime):
35
35
  static_asset_config (Union[Unset, HttpTriggerStaticAssetConfig]):
36
36
  """
37
37
 
38
38
  path: str
39
- edited_by: str
40
- edited_at: datetime.datetime
41
39
  script_path: str
42
40
  route_path: str
43
41
  is_flow: bool
44
- extra_perms: "HttpTriggerExtraPerms"
45
- email: str
46
- workspace_id: str
47
42
  http_method: HttpTriggerHttpMethod
48
43
  is_async: bool
49
44
  requires_auth: bool
45
+ email: str
46
+ extra_perms: "HttpTriggerExtraPerms"
47
+ workspace_id: str
48
+ edited_by: str
49
+ edited_at: datetime.datetime
50
50
  static_asset_config: Union[Unset, "HttpTriggerStaticAssetConfig"] = UNSET
51
51
  additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
52
52
 
53
53
  def to_dict(self) -> Dict[str, Any]:
54
54
  path = self.path
55
- edited_by = self.edited_by
56
- edited_at = self.edited_at.isoformat()
57
-
58
55
  script_path = self.script_path
59
56
  route_path = self.route_path
60
57
  is_flow = self.is_flow
61
- extra_perms = self.extra_perms.to_dict()
62
-
63
- email = self.email
64
- workspace_id = self.workspace_id
65
58
  http_method = self.http_method.value
66
59
 
67
60
  is_async = self.is_async
68
61
  requires_auth = self.requires_auth
62
+ email = self.email
63
+ extra_perms = self.extra_perms.to_dict()
64
+
65
+ workspace_id = self.workspace_id
66
+ edited_by = self.edited_by
67
+ edited_at = self.edited_at.isoformat()
68
+
69
69
  static_asset_config: Union[Unset, Dict[str, Any]] = UNSET
70
70
  if not isinstance(self.static_asset_config, Unset):
71
71
  static_asset_config = self.static_asset_config.to_dict()
@@ -75,17 +75,17 @@ class HttpTrigger:
75
75
  field_dict.update(
76
76
  {
77
77
  "path": path,
78
- "edited_by": edited_by,
79
- "edited_at": edited_at,
80
78
  "script_path": script_path,
81
79
  "route_path": route_path,
82
80
  "is_flow": is_flow,
83
- "extra_perms": extra_perms,
84
- "email": email,
85
- "workspace_id": workspace_id,
86
81
  "http_method": http_method,
87
82
  "is_async": is_async,
88
83
  "requires_auth": requires_auth,
84
+ "email": email,
85
+ "extra_perms": extra_perms,
86
+ "workspace_id": workspace_id,
87
+ "edited_by": edited_by,
88
+ "edited_at": edited_at,
89
89
  }
90
90
  )
91
91
  if static_asset_config is not UNSET:
@@ -101,27 +101,27 @@ class HttpTrigger:
101
101
  d = src_dict.copy()
102
102
  path = d.pop("path")
103
103
 
104
- edited_by = d.pop("edited_by")
105
-
106
- edited_at = isoparse(d.pop("edited_at"))
107
-
108
104
  script_path = d.pop("script_path")
109
105
 
110
106
  route_path = d.pop("route_path")
111
107
 
112
108
  is_flow = d.pop("is_flow")
113
109
 
114
- extra_perms = HttpTriggerExtraPerms.from_dict(d.pop("extra_perms"))
110
+ http_method = HttpTriggerHttpMethod(d.pop("http_method"))
111
+
112
+ is_async = d.pop("is_async")
113
+
114
+ requires_auth = d.pop("requires_auth")
115
115
 
116
116
  email = d.pop("email")
117
117
 
118
- workspace_id = d.pop("workspace_id")
118
+ extra_perms = HttpTriggerExtraPerms.from_dict(d.pop("extra_perms"))
119
119
 
120
- http_method = HttpTriggerHttpMethod(d.pop("http_method"))
120
+ workspace_id = d.pop("workspace_id")
121
121
 
122
- is_async = d.pop("is_async")
122
+ edited_by = d.pop("edited_by")
123
123
 
124
- requires_auth = d.pop("requires_auth")
124
+ edited_at = isoparse(d.pop("edited_at"))
125
125
 
126
126
  _static_asset_config = d.pop("static_asset_config", UNSET)
127
127
  static_asset_config: Union[Unset, HttpTriggerStaticAssetConfig]
@@ -132,17 +132,17 @@ class HttpTrigger:
132
132
 
133
133
  http_trigger = cls(
134
134
  path=path,
135
- edited_by=edited_by,
136
- edited_at=edited_at,
137
135
  script_path=script_path,
138
136
  route_path=route_path,
139
137
  is_flow=is_flow,
140
- extra_perms=extra_perms,
141
- email=email,
142
- workspace_id=workspace_id,
143
138
  http_method=http_method,
144
139
  is_async=is_async,
145
140
  requires_auth=requires_auth,
141
+ email=email,
142
+ extra_perms=extra_perms,
143
+ workspace_id=workspace_id,
144
+ edited_by=edited_by,
145
+ edited_at=edited_at,
146
146
  static_asset_config=static_asset_config,
147
147
  )
148
148
 
@@ -0,0 +1,8 @@
1
+ from enum import Enum
2
+
3
+
4
+ class Language(str, Enum):
5
+ TYPESCRIPT = "Typescript"
6
+
7
+ def __str__(self) -> str:
8
+ return str(self.value)
@@ -23,51 +23,51 @@ class ListHttpTriggersResponse200Item:
23
23
  """
24
24
  Attributes:
25
25
  path (str):
26
- edited_by (str):
27
- edited_at (datetime.datetime):
28
26
  script_path (str):
29
27
  route_path (str):
30
28
  is_flow (bool):
31
- extra_perms (ListHttpTriggersResponse200ItemExtraPerms):
32
- email (str):
33
- workspace_id (str):
34
29
  http_method (ListHttpTriggersResponse200ItemHttpMethod):
35
30
  is_async (bool):
36
31
  requires_auth (bool):
32
+ email (str):
33
+ extra_perms (ListHttpTriggersResponse200ItemExtraPerms):
34
+ workspace_id (str):
35
+ edited_by (str):
36
+ edited_at (datetime.datetime):
37
37
  static_asset_config (Union[Unset, ListHttpTriggersResponse200ItemStaticAssetConfig]):
38
38
  """
39
39
 
40
40
  path: str
41
- edited_by: str
42
- edited_at: datetime.datetime
43
41
  script_path: str
44
42
  route_path: str
45
43
  is_flow: bool
46
- extra_perms: "ListHttpTriggersResponse200ItemExtraPerms"
47
- email: str
48
- workspace_id: str
49
44
  http_method: ListHttpTriggersResponse200ItemHttpMethod
50
45
  is_async: bool
51
46
  requires_auth: bool
47
+ email: str
48
+ extra_perms: "ListHttpTriggersResponse200ItemExtraPerms"
49
+ workspace_id: str
50
+ edited_by: str
51
+ edited_at: datetime.datetime
52
52
  static_asset_config: Union[Unset, "ListHttpTriggersResponse200ItemStaticAssetConfig"] = UNSET
53
53
  additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
54
54
 
55
55
  def to_dict(self) -> Dict[str, Any]:
56
56
  path = self.path
57
- edited_by = self.edited_by
58
- edited_at = self.edited_at.isoformat()
59
-
60
57
  script_path = self.script_path
61
58
  route_path = self.route_path
62
59
  is_flow = self.is_flow
63
- extra_perms = self.extra_perms.to_dict()
64
-
65
- email = self.email
66
- workspace_id = self.workspace_id
67
60
  http_method = self.http_method.value
68
61
 
69
62
  is_async = self.is_async
70
63
  requires_auth = self.requires_auth
64
+ email = self.email
65
+ extra_perms = self.extra_perms.to_dict()
66
+
67
+ workspace_id = self.workspace_id
68
+ edited_by = self.edited_by
69
+ edited_at = self.edited_at.isoformat()
70
+
71
71
  static_asset_config: Union[Unset, Dict[str, Any]] = UNSET
72
72
  if not isinstance(self.static_asset_config, Unset):
73
73
  static_asset_config = self.static_asset_config.to_dict()
@@ -77,17 +77,17 @@ class ListHttpTriggersResponse200Item:
77
77
  field_dict.update(
78
78
  {
79
79
  "path": path,
80
- "edited_by": edited_by,
81
- "edited_at": edited_at,
82
80
  "script_path": script_path,
83
81
  "route_path": route_path,
84
82
  "is_flow": is_flow,
85
- "extra_perms": extra_perms,
86
- "email": email,
87
- "workspace_id": workspace_id,
88
83
  "http_method": http_method,
89
84
  "is_async": is_async,
90
85
  "requires_auth": requires_auth,
86
+ "email": email,
87
+ "extra_perms": extra_perms,
88
+ "workspace_id": workspace_id,
89
+ "edited_by": edited_by,
90
+ "edited_at": edited_at,
91
91
  }
92
92
  )
93
93
  if static_asset_config is not UNSET:
@@ -105,27 +105,27 @@ class ListHttpTriggersResponse200Item:
105
105
  d = src_dict.copy()
106
106
  path = d.pop("path")
107
107
 
108
- edited_by = d.pop("edited_by")
109
-
110
- edited_at = isoparse(d.pop("edited_at"))
111
-
112
108
  script_path = d.pop("script_path")
113
109
 
114
110
  route_path = d.pop("route_path")
115
111
 
116
112
  is_flow = d.pop("is_flow")
117
113
 
118
- extra_perms = ListHttpTriggersResponse200ItemExtraPerms.from_dict(d.pop("extra_perms"))
114
+ http_method = ListHttpTriggersResponse200ItemHttpMethod(d.pop("http_method"))
115
+
116
+ is_async = d.pop("is_async")
117
+
118
+ requires_auth = d.pop("requires_auth")
119
119
 
120
120
  email = d.pop("email")
121
121
 
122
- workspace_id = d.pop("workspace_id")
122
+ extra_perms = ListHttpTriggersResponse200ItemExtraPerms.from_dict(d.pop("extra_perms"))
123
123
 
124
- http_method = ListHttpTriggersResponse200ItemHttpMethod(d.pop("http_method"))
124
+ workspace_id = d.pop("workspace_id")
125
125
 
126
- is_async = d.pop("is_async")
126
+ edited_by = d.pop("edited_by")
127
127
 
128
- requires_auth = d.pop("requires_auth")
128
+ edited_at = isoparse(d.pop("edited_at"))
129
129
 
130
130
  _static_asset_config = d.pop("static_asset_config", UNSET)
131
131
  static_asset_config: Union[Unset, ListHttpTriggersResponse200ItemStaticAssetConfig]
@@ -136,17 +136,17 @@ class ListHttpTriggersResponse200Item:
136
136
 
137
137
  list_http_triggers_response_200_item = cls(
138
138
  path=path,
139
- edited_by=edited_by,
140
- edited_at=edited_at,
141
139
  script_path=script_path,
142
140
  route_path=route_path,
143
141
  is_flow=is_flow,
144
- extra_perms=extra_perms,
145
- email=email,
146
- workspace_id=workspace_id,
147
142
  http_method=http_method,
148
143
  is_async=is_async,
149
144
  requires_auth=requires_auth,
145
+ email=email,
146
+ extra_perms=extra_perms,
147
+ workspace_id=workspace_id,
148
+ edited_by=edited_by,
149
+ edited_at=edited_at,
150
150
  static_asset_config=static_asset_config,
151
151
  )
152
152
 
@@ -0,0 +1,66 @@
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="ListPostgresReplicationSlotResponse200Item")
9
+
10
+
11
+ @_attrs_define
12
+ class ListPostgresReplicationSlotResponse200Item:
13
+ """
14
+ Attributes:
15
+ slot_name (Union[Unset, str]):
16
+ active (Union[Unset, bool]):
17
+ """
18
+
19
+ slot_name: Union[Unset, str] = UNSET
20
+ active: Union[Unset, bool] = UNSET
21
+ additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
22
+
23
+ def to_dict(self) -> Dict[str, Any]:
24
+ slot_name = self.slot_name
25
+ active = self.active
26
+
27
+ field_dict: Dict[str, Any] = {}
28
+ field_dict.update(self.additional_properties)
29
+ field_dict.update({})
30
+ if slot_name is not UNSET:
31
+ field_dict["slot_name"] = slot_name
32
+ if active is not UNSET:
33
+ field_dict["active"] = active
34
+
35
+ return field_dict
36
+
37
+ @classmethod
38
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
39
+ d = src_dict.copy()
40
+ slot_name = d.pop("slot_name", UNSET)
41
+
42
+ active = d.pop("active", UNSET)
43
+
44
+ list_postgres_replication_slot_response_200_item = cls(
45
+ slot_name=slot_name,
46
+ active=active,
47
+ )
48
+
49
+ list_postgres_replication_slot_response_200_item.additional_properties = d
50
+ return list_postgres_replication_slot_response_200_item
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