alchemy-python 0.1.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.
Files changed (172) hide show
  1. alchemy/.fern/metadata.json +18 -0
  2. alchemy/CONTRIBUTING.md +125 -0
  3. alchemy/__init__.py +380 -0
  4. alchemy/_default_clients.py +30 -0
  5. alchemy/auth/__init__.py +4 -0
  6. alchemy/auth/client.py +767 -0
  7. alchemy/auth/raw_client.py +866 -0
  8. alchemy/client.py +717 -0
  9. alchemy/core/__init__.py +127 -0
  10. alchemy/core/api_error.py +23 -0
  11. alchemy/core/client_wrapper.py +155 -0
  12. alchemy/core/datetime_utils.py +70 -0
  13. alchemy/core/file.py +67 -0
  14. alchemy/core/force_multipart.py +18 -0
  15. alchemy/core/http_client.py +940 -0
  16. alchemy/core/http_response.py +63 -0
  17. alchemy/core/http_sse/__init__.py +42 -0
  18. alchemy/core/http_sse/_api.py +455 -0
  19. alchemy/core/http_sse/_decoders.py +74 -0
  20. alchemy/core/http_sse/_exceptions.py +7 -0
  21. alchemy/core/http_sse/_models.py +17 -0
  22. alchemy/core/jsonable_encoder.py +133 -0
  23. alchemy/core/logging.py +107 -0
  24. alchemy/core/oauth_token_provider.py +73 -0
  25. alchemy/core/parse_error.py +36 -0
  26. alchemy/core/pydantic_utilities.py +486 -0
  27. alchemy/core/query_encoder.py +58 -0
  28. alchemy/core/remove_none_from_dict.py +11 -0
  29. alchemy/core/request_options.py +40 -0
  30. alchemy/core/serialization.py +347 -0
  31. alchemy/environment.py +7 -0
  32. alchemy/function/__init__.py +34 -0
  33. alchemy/function/client.py +808 -0
  34. alchemy/function/raw_client.py +903 -0
  35. alchemy/function/version/__init__.py +4 -0
  36. alchemy/function/version/client.py +364 -0
  37. alchemy/function/version/raw_client.py +410 -0
  38. alchemy/host/__init__.py +4 -0
  39. alchemy/host/client.py +227 -0
  40. alchemy/host/raw_client.py +242 -0
  41. alchemy/instance/__init__.py +4 -0
  42. alchemy/instance/client.py +136 -0
  43. alchemy/instance/raw_client.py +141 -0
  44. alchemy/invocation/__init__.py +4 -0
  45. alchemy/invocation/client.py +570 -0
  46. alchemy/invocation/raw_client.py +636 -0
  47. alchemy/member/__init__.py +4 -0
  48. alchemy/member/client.py +441 -0
  49. alchemy/member/raw_client.py +504 -0
  50. alchemy/metrics/__init__.py +4 -0
  51. alchemy/metrics/client.py +428 -0
  52. alchemy/metrics/raw_client.py +478 -0
  53. alchemy/py.typed +0 -0
  54. alchemy/raw_client.py +138 -0
  55. alchemy/reference.md +3300 -0
  56. alchemy/runtime/__init__.py +4 -0
  57. alchemy/runtime/client.py +141 -0
  58. alchemy/runtime/raw_client.py +140 -0
  59. alchemy/service_account/__init__.py +4 -0
  60. alchemy/service_account/client.py +429 -0
  61. alchemy/service_account/raw_client.py +490 -0
  62. alchemy/template/__init__.py +4 -0
  63. alchemy/template/client.py +141 -0
  64. alchemy/template/raw_client.py +140 -0
  65. alchemy/types/__init__.py +344 -0
  66. alchemy/types/auth_v1accept_invite_response.py +5 -0
  67. alchemy/types/auth_v1create_service_account_response.py +34 -0
  68. alchemy/types/auth_v1get_auth_config_request.py +5 -0
  69. alchemy/types/auth_v1get_auth_config_response.py +53 -0
  70. alchemy/types/auth_v1get_session_request.py +9 -0
  71. alchemy/types/auth_v1get_session_response.py +28 -0
  72. alchemy/types/auth_v1get_token_response.py +29 -0
  73. alchemy/types/auth_v1invite_member_response.py +29 -0
  74. alchemy/types/auth_v1list_members_request.py +5 -0
  75. alchemy/types/auth_v1list_members_response.py +34 -0
  76. alchemy/types/auth_v1list_service_accounts_request.py +5 -0
  77. alchemy/types/auth_v1list_service_accounts_response.py +29 -0
  78. alchemy/types/auth_v1login_response.py +5 -0
  79. alchemy/types/auth_v1logout_request.py +8 -0
  80. alchemy/types/auth_v1logout_response.py +5 -0
  81. alchemy/types/auth_v1member.py +31 -0
  82. alchemy/types/auth_v1register_response.py +23 -0
  83. alchemy/types/auth_v1remove_member_response.py +5 -0
  84. alchemy/types/auth_v1remove_service_account_response.py +5 -0
  85. alchemy/types/auth_v1role.py +5 -0
  86. alchemy/types/auth_v1rotate_service_account_secret_response.py +31 -0
  87. alchemy/types/auth_v1service_account.py +35 -0
  88. alchemy/types/auth_v1set_member_role_response.py +5 -0
  89. alchemy/types/connect_error.py +38 -0
  90. alchemy/types/connect_error_code.py +25 -0
  91. alchemy/types/connect_error_details_any.py +36 -0
  92. alchemy/types/connect_protocol_version.py +5 -0
  93. alchemy/types/connect_timeout_header.py +6 -0
  94. alchemy/types/functions_v1arrow_contract.py +50 -0
  95. alchemy/types/functions_v1contract.py +8 -0
  96. alchemy/types/functions_v1contract_arrow.py +20 -0
  97. alchemy/types/functions_v1contract_json_schema.py +26 -0
  98. alchemy/types/functions_v1contract_violation.py +32 -0
  99. alchemy/types/functions_v1create_function_response.py +22 -0
  100. alchemy/types/functions_v1create_function_version_response.py +20 -0
  101. alchemy/types/functions_v1delete_function_response.py +5 -0
  102. alchemy/types/functions_v1function.py +100 -0
  103. alchemy/types/functions_v1function_error.py +30 -0
  104. alchemy/types/functions_v1function_error_kind.py +15 -0
  105. alchemy/types/functions_v1function_spec.py +58 -0
  106. alchemy/types/functions_v1function_version.py +81 -0
  107. alchemy/types/functions_v1function_version_status.py +13 -0
  108. alchemy/types/functions_v1get_function_response.py +20 -0
  109. alchemy/types/functions_v1get_function_version_response.py +20 -0
  110. alchemy/types/functions_v1get_host_request.py +5 -0
  111. alchemy/types/functions_v1get_host_response.py +20 -0
  112. alchemy/types/functions_v1get_invocation_logs_request.py +31 -0
  113. alchemy/types/functions_v1get_invocation_logs_response.py +24 -0
  114. alchemy/types/functions_v1get_invocation_response.py +20 -0
  115. alchemy/types/functions_v1get_version_request.py +5 -0
  116. alchemy/types/functions_v1get_version_response.py +25 -0
  117. alchemy/types/functions_v1host.py +58 -0
  118. alchemy/types/functions_v1instance.py +54 -0
  119. alchemy/types/functions_v1instance_status.py +14 -0
  120. alchemy/types/functions_v1invocation.py +106 -0
  121. alchemy/types/functions_v1invocation_protocol.py +8 -0
  122. alchemy/types/functions_v1invocation_stats.py +41 -0
  123. alchemy/types/functions_v1invocation_status.py +18 -0
  124. alchemy/types/functions_v1invoke_async_response.py +34 -0
  125. alchemy/types/functions_v1invoke_response.py +8 -0
  126. alchemy/types/functions_v1invoke_response_error.py +20 -0
  127. alchemy/types/functions_v1invoke_response_output.py +19 -0
  128. alchemy/types/functions_v1json_schema_contract.py +28 -0
  129. alchemy/types/functions_v1list_function_versions_response.py +22 -0
  130. alchemy/types/functions_v1list_functions_response.py +22 -0
  131. alchemy/types/functions_v1list_hosts_request.py +5 -0
  132. alchemy/types/functions_v1list_hosts_response.py +23 -0
  133. alchemy/types/functions_v1list_instances_response.py +20 -0
  134. alchemy/types/functions_v1list_invocations_response.py +22 -0
  135. alchemy/types/functions_v1list_runtimes_request.py +5 -0
  136. alchemy/types/functions_v1list_runtimes_response.py +22 -0
  137. alchemy/types/functions_v1list_templates_request.py +5 -0
  138. alchemy/types/functions_v1list_templates_response.py +20 -0
  139. alchemy/types/functions_v1network.py +5 -0
  140. alchemy/types/functions_v1pagination_request.py +31 -0
  141. alchemy/types/functions_v1pagination_response.py +33 -0
  142. alchemy/types/functions_v1resources.py +28 -0
  143. alchemy/types/functions_v1runtime.py +59 -0
  144. alchemy/types/functions_v1runtime_starters.py +29 -0
  145. alchemy/types/functions_v1source.py +31 -0
  146. alchemy/types/functions_v1source_file.py +28 -0
  147. alchemy/types/functions_v1source_layer.py +27 -0
  148. alchemy/types/functions_v1source_limits.py +30 -0
  149. alchemy/types/functions_v1start_kind.py +8 -0
  150. alchemy/types/functions_v1tail_invocations_request.py +32 -0
  151. alchemy/types/functions_v1tail_invocations_response.py +34 -0
  152. alchemy/types/functions_v1template.py +94 -0
  153. alchemy/types/functions_v1template_source.py +27 -0
  154. alchemy/types/functions_v1update_function_response.py +20 -0
  155. alchemy/types/google_protobuf_list_value.py +10 -0
  156. alchemy/types/google_protobuf_null_value.py +5 -0
  157. alchemy/types/google_protobuf_struct.py +10 -0
  158. alchemy/types/google_protobuf_value.py +5 -0
  159. alchemy/types/metrics_v1aggregate_row.py +24 -0
  160. alchemy/types/metrics_v1get_queue_response.py +25 -0
  161. alchemy/types/metrics_v1metric.py +16 -0
  162. alchemy/types/metrics_v1metric_dimension.py +14 -0
  163. alchemy/types/metrics_v1metric_filter.py +26 -0
  164. alchemy/types/metrics_v1metric_granularity.py +13 -0
  165. alchemy/types/metrics_v1query_aggregate_response.py +20 -0
  166. alchemy/types/metrics_v1query_timeseries_response.py +20 -0
  167. alchemy/types/metrics_v1timeseries.py +28 -0
  168. alchemy/types/metrics_v1timeseries_point.py +28 -0
  169. alchemy_python-0.1.0.dist-info/METADATA +196 -0
  170. alchemy_python-0.1.0.dist-info/RECORD +172 -0
  171. alchemy_python-0.1.0.dist-info/WHEEL +4 -0
  172. alchemy_python-0.1.0.dist-info/licenses/LICENSE +201 -0
@@ -0,0 +1,429 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+
5
+ from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
6
+ from ..core.request_options import RequestOptions
7
+ from ..types.auth_v1create_service_account_response import AuthV1CreateServiceAccountResponse
8
+ from ..types.auth_v1list_service_accounts_request import AuthV1ListServiceAccountsRequest
9
+ from ..types.auth_v1list_service_accounts_response import AuthV1ListServiceAccountsResponse
10
+ from ..types.auth_v1remove_service_account_response import AuthV1RemoveServiceAccountResponse
11
+ from ..types.auth_v1role import AuthV1Role
12
+ from ..types.auth_v1rotate_service_account_secret_response import AuthV1RotateServiceAccountSecretResponse
13
+ from ..types.connect_timeout_header import ConnectTimeoutHeader
14
+ from .raw_client import AsyncRawServiceAccountClient, RawServiceAccountClient
15
+
16
+ # this is used as the default value for optional parameters
17
+ OMIT = typing.cast(typing.Any, ...)
18
+
19
+
20
+ class ServiceAccountClient:
21
+ def __init__(self, *, client_wrapper: SyncClientWrapper):
22
+ self._raw_client = RawServiceAccountClient(client_wrapper=client_wrapper)
23
+
24
+ @property
25
+ def with_raw_response(self) -> RawServiceAccountClient:
26
+ """
27
+ Retrieves a raw implementation of this client that returns raw responses.
28
+
29
+ Returns
30
+ -------
31
+ RawServiceAccountClient
32
+ """
33
+ return self._raw_client
34
+
35
+ def create(
36
+ self,
37
+ *,
38
+ connect_timeout_ms: typing.Optional[ConnectTimeoutHeader] = None,
39
+ name: typing.Optional[str] = OMIT,
40
+ description: typing.Optional[str] = OMIT,
41
+ role: typing.Optional[AuthV1Role] = OMIT,
42
+ request_options: typing.Optional[RequestOptions] = None,
43
+ ) -> AuthV1CreateServiceAccountResponse:
44
+ """
45
+ Parameters
46
+ ----------
47
+ connect_timeout_ms : typing.Optional[ConnectTimeoutHeader]
48
+ Define the timeout, in ms
49
+
50
+ name : typing.Optional[str]
51
+
52
+ description : typing.Optional[str]
53
+
54
+ role : typing.Optional[AuthV1Role]
55
+
56
+ request_options : typing.Optional[RequestOptions]
57
+ Request-specific configuration.
58
+
59
+ Returns
60
+ -------
61
+ AuthV1CreateServiceAccountResponse
62
+ Success
63
+
64
+ Examples
65
+ --------
66
+ from alchemy import Alchemy
67
+
68
+ client = Alchemy(
69
+ client_id="YOUR_CLIENT_ID",
70
+ client_secret="YOUR_CLIENT_SECRET",
71
+ )
72
+ client.service_account.create(
73
+ connect_timeout_ms=1000.0,
74
+ )
75
+ """
76
+ _response = self._raw_client.create(
77
+ connect_timeout_ms=connect_timeout_ms,
78
+ name=name,
79
+ description=description,
80
+ role=role,
81
+ request_options=request_options,
82
+ )
83
+ return _response.data
84
+
85
+ def list(
86
+ self,
87
+ *,
88
+ request: AuthV1ListServiceAccountsRequest,
89
+ connect_timeout_ms: typing.Optional[ConnectTimeoutHeader] = None,
90
+ request_options: typing.Optional[RequestOptions] = None,
91
+ ) -> AuthV1ListServiceAccountsResponse:
92
+ """
93
+ Service accounts; authenticated tenant administration. Secrets are only
94
+ returned by create and rotate and cannot be retrieved later.
95
+
96
+ Parameters
97
+ ----------
98
+ request : AuthV1ListServiceAccountsRequest
99
+
100
+ connect_timeout_ms : typing.Optional[ConnectTimeoutHeader]
101
+ Define the timeout, in ms
102
+
103
+ request_options : typing.Optional[RequestOptions]
104
+ Request-specific configuration.
105
+
106
+ Returns
107
+ -------
108
+ AuthV1ListServiceAccountsResponse
109
+ Success
110
+
111
+ Examples
112
+ --------
113
+ from alchemy import Alchemy
114
+
115
+ client = Alchemy(
116
+ client_id="YOUR_CLIENT_ID",
117
+ client_secret="YOUR_CLIENT_SECRET",
118
+ )
119
+ client.service_account.list(
120
+ connect_timeout_ms=1000.0,
121
+ request={"key": "value"},
122
+ )
123
+ """
124
+ _response = self._raw_client.list(
125
+ request=request, connect_timeout_ms=connect_timeout_ms, request_options=request_options
126
+ )
127
+ return _response.data
128
+
129
+ def remove(
130
+ self,
131
+ *,
132
+ connect_timeout_ms: typing.Optional[ConnectTimeoutHeader] = None,
133
+ user_id: typing.Optional[str] = OMIT,
134
+ request_options: typing.Optional[RequestOptions] = None,
135
+ ) -> AuthV1RemoveServiceAccountResponse:
136
+ """
137
+ Parameters
138
+ ----------
139
+ connect_timeout_ms : typing.Optional[ConnectTimeoutHeader]
140
+ Define the timeout, in ms
141
+
142
+ user_id : typing.Optional[str]
143
+
144
+ request_options : typing.Optional[RequestOptions]
145
+ Request-specific configuration.
146
+
147
+ Returns
148
+ -------
149
+ AuthV1RemoveServiceAccountResponse
150
+ Success
151
+
152
+ Examples
153
+ --------
154
+ from alchemy import Alchemy
155
+
156
+ client = Alchemy(
157
+ client_id="YOUR_CLIENT_ID",
158
+ client_secret="YOUR_CLIENT_SECRET",
159
+ )
160
+ client.service_account.remove(
161
+ connect_timeout_ms=1000.0,
162
+ )
163
+ """
164
+ _response = self._raw_client.remove(
165
+ connect_timeout_ms=connect_timeout_ms, user_id=user_id, request_options=request_options
166
+ )
167
+ return _response.data
168
+
169
+ def rotate_secret(
170
+ self,
171
+ *,
172
+ connect_timeout_ms: typing.Optional[ConnectTimeoutHeader] = None,
173
+ user_id: typing.Optional[str] = OMIT,
174
+ request_options: typing.Optional[RequestOptions] = None,
175
+ ) -> AuthV1RotateServiceAccountSecretResponse:
176
+ """
177
+ Parameters
178
+ ----------
179
+ connect_timeout_ms : typing.Optional[ConnectTimeoutHeader]
180
+ Define the timeout, in ms
181
+
182
+ user_id : typing.Optional[str]
183
+
184
+ request_options : typing.Optional[RequestOptions]
185
+ Request-specific configuration.
186
+
187
+ Returns
188
+ -------
189
+ AuthV1RotateServiceAccountSecretResponse
190
+ Success
191
+
192
+ Examples
193
+ --------
194
+ from alchemy import Alchemy
195
+
196
+ client = Alchemy(
197
+ client_id="YOUR_CLIENT_ID",
198
+ client_secret="YOUR_CLIENT_SECRET",
199
+ )
200
+ client.service_account.rotate_secret(
201
+ connect_timeout_ms=1000.0,
202
+ )
203
+ """
204
+ _response = self._raw_client.rotate_secret(
205
+ connect_timeout_ms=connect_timeout_ms, user_id=user_id, request_options=request_options
206
+ )
207
+ return _response.data
208
+
209
+
210
+ class AsyncServiceAccountClient:
211
+ def __init__(self, *, client_wrapper: AsyncClientWrapper):
212
+ self._raw_client = AsyncRawServiceAccountClient(client_wrapper=client_wrapper)
213
+
214
+ @property
215
+ def with_raw_response(self) -> AsyncRawServiceAccountClient:
216
+ """
217
+ Retrieves a raw implementation of this client that returns raw responses.
218
+
219
+ Returns
220
+ -------
221
+ AsyncRawServiceAccountClient
222
+ """
223
+ return self._raw_client
224
+
225
+ async def create(
226
+ self,
227
+ *,
228
+ connect_timeout_ms: typing.Optional[ConnectTimeoutHeader] = None,
229
+ name: typing.Optional[str] = OMIT,
230
+ description: typing.Optional[str] = OMIT,
231
+ role: typing.Optional[AuthV1Role] = OMIT,
232
+ request_options: typing.Optional[RequestOptions] = None,
233
+ ) -> AuthV1CreateServiceAccountResponse:
234
+ """
235
+ Parameters
236
+ ----------
237
+ connect_timeout_ms : typing.Optional[ConnectTimeoutHeader]
238
+ Define the timeout, in ms
239
+
240
+ name : typing.Optional[str]
241
+
242
+ description : typing.Optional[str]
243
+
244
+ role : typing.Optional[AuthV1Role]
245
+
246
+ request_options : typing.Optional[RequestOptions]
247
+ Request-specific configuration.
248
+
249
+ Returns
250
+ -------
251
+ AuthV1CreateServiceAccountResponse
252
+ Success
253
+
254
+ Examples
255
+ --------
256
+ import asyncio
257
+
258
+ from alchemy import AsyncAlchemy
259
+
260
+ client = AsyncAlchemy(
261
+ client_id="YOUR_CLIENT_ID",
262
+ client_secret="YOUR_CLIENT_SECRET",
263
+ )
264
+
265
+
266
+ async def main() -> None:
267
+ await client.service_account.create(
268
+ connect_timeout_ms=1000.0,
269
+ )
270
+
271
+
272
+ asyncio.run(main())
273
+ """
274
+ _response = await self._raw_client.create(
275
+ connect_timeout_ms=connect_timeout_ms,
276
+ name=name,
277
+ description=description,
278
+ role=role,
279
+ request_options=request_options,
280
+ )
281
+ return _response.data
282
+
283
+ async def list(
284
+ self,
285
+ *,
286
+ request: AuthV1ListServiceAccountsRequest,
287
+ connect_timeout_ms: typing.Optional[ConnectTimeoutHeader] = None,
288
+ request_options: typing.Optional[RequestOptions] = None,
289
+ ) -> AuthV1ListServiceAccountsResponse:
290
+ """
291
+ Service accounts; authenticated tenant administration. Secrets are only
292
+ returned by create and rotate and cannot be retrieved later.
293
+
294
+ Parameters
295
+ ----------
296
+ request : AuthV1ListServiceAccountsRequest
297
+
298
+ connect_timeout_ms : typing.Optional[ConnectTimeoutHeader]
299
+ Define the timeout, in ms
300
+
301
+ request_options : typing.Optional[RequestOptions]
302
+ Request-specific configuration.
303
+
304
+ Returns
305
+ -------
306
+ AuthV1ListServiceAccountsResponse
307
+ Success
308
+
309
+ Examples
310
+ --------
311
+ import asyncio
312
+
313
+ from alchemy import AsyncAlchemy
314
+
315
+ client = AsyncAlchemy(
316
+ client_id="YOUR_CLIENT_ID",
317
+ client_secret="YOUR_CLIENT_SECRET",
318
+ )
319
+
320
+
321
+ async def main() -> None:
322
+ await client.service_account.list(
323
+ connect_timeout_ms=1000.0,
324
+ request={"key": "value"},
325
+ )
326
+
327
+
328
+ asyncio.run(main())
329
+ """
330
+ _response = await self._raw_client.list(
331
+ request=request, connect_timeout_ms=connect_timeout_ms, request_options=request_options
332
+ )
333
+ return _response.data
334
+
335
+ async def remove(
336
+ self,
337
+ *,
338
+ connect_timeout_ms: typing.Optional[ConnectTimeoutHeader] = None,
339
+ user_id: typing.Optional[str] = OMIT,
340
+ request_options: typing.Optional[RequestOptions] = None,
341
+ ) -> AuthV1RemoveServiceAccountResponse:
342
+ """
343
+ Parameters
344
+ ----------
345
+ connect_timeout_ms : typing.Optional[ConnectTimeoutHeader]
346
+ Define the timeout, in ms
347
+
348
+ user_id : typing.Optional[str]
349
+
350
+ request_options : typing.Optional[RequestOptions]
351
+ Request-specific configuration.
352
+
353
+ Returns
354
+ -------
355
+ AuthV1RemoveServiceAccountResponse
356
+ Success
357
+
358
+ Examples
359
+ --------
360
+ import asyncio
361
+
362
+ from alchemy import AsyncAlchemy
363
+
364
+ client = AsyncAlchemy(
365
+ client_id="YOUR_CLIENT_ID",
366
+ client_secret="YOUR_CLIENT_SECRET",
367
+ )
368
+
369
+
370
+ async def main() -> None:
371
+ await client.service_account.remove(
372
+ connect_timeout_ms=1000.0,
373
+ )
374
+
375
+
376
+ asyncio.run(main())
377
+ """
378
+ _response = await self._raw_client.remove(
379
+ connect_timeout_ms=connect_timeout_ms, user_id=user_id, request_options=request_options
380
+ )
381
+ return _response.data
382
+
383
+ async def rotate_secret(
384
+ self,
385
+ *,
386
+ connect_timeout_ms: typing.Optional[ConnectTimeoutHeader] = None,
387
+ user_id: typing.Optional[str] = OMIT,
388
+ request_options: typing.Optional[RequestOptions] = None,
389
+ ) -> AuthV1RotateServiceAccountSecretResponse:
390
+ """
391
+ Parameters
392
+ ----------
393
+ connect_timeout_ms : typing.Optional[ConnectTimeoutHeader]
394
+ Define the timeout, in ms
395
+
396
+ user_id : typing.Optional[str]
397
+
398
+ request_options : typing.Optional[RequestOptions]
399
+ Request-specific configuration.
400
+
401
+ Returns
402
+ -------
403
+ AuthV1RotateServiceAccountSecretResponse
404
+ Success
405
+
406
+ Examples
407
+ --------
408
+ import asyncio
409
+
410
+ from alchemy import AsyncAlchemy
411
+
412
+ client = AsyncAlchemy(
413
+ client_id="YOUR_CLIENT_ID",
414
+ client_secret="YOUR_CLIENT_SECRET",
415
+ )
416
+
417
+
418
+ async def main() -> None:
419
+ await client.service_account.rotate_secret(
420
+ connect_timeout_ms=1000.0,
421
+ )
422
+
423
+
424
+ asyncio.run(main())
425
+ """
426
+ _response = await self._raw_client.rotate_secret(
427
+ connect_timeout_ms=connect_timeout_ms, user_id=user_id, request_options=request_options
428
+ )
429
+ return _response.data