daytona_api_client 0.21.3a0__py3-none-any.whl → 0.21.5a0__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 daytona_api_client might be problematic. Click here for more details.
- daytona_api_client/api/__init__.py +1 -0
- daytona_api_client/api/api_keys_api.py +328 -171
- daytona_api_client/api/docker_registry_api.py +463 -239
- daytona_api_client/api/object_storage_api.py +63 -33
- daytona_api_client/api/organizations_api.py +1582 -612
- daytona_api_client/api/preview_api.py +175 -71
- daytona_api_client/api/runners_api.py +195 -67
- daytona_api_client/api/sandbox_api.py +909 -499
- daytona_api_client/api/snapshots_api.py +482 -253
- daytona_api_client/api/toolbox_api.py +2684 -1410
- daytona_api_client/api/users_api.py +526 -184
- daytona_api_client/api/volumes_api.py +332 -180
- daytona_api_client/api/workspace_api.py +909 -499
- daytona_api_client/api_client.py +192 -90
- daytona_api_client/api_response.py +3 -2
- daytona_api_client/configuration.py +52 -55
- daytona_api_client/exceptions.py +16 -15
- daytona_api_client/models/account_provider.py +11 -9
- daytona_api_client/models/api_key_list.py +21 -40
- daytona_api_client/models/api_key_response.py +19 -38
- daytona_api_client/models/build_info.py +15 -22
- daytona_api_client/models/command.py +13 -12
- daytona_api_client/models/completion_context.py +11 -11
- daytona_api_client/models/completion_item.py +17 -28
- daytona_api_client/models/completion_list.py +12 -17
- daytona_api_client/models/create_api_key.py +17 -32
- daytona_api_client/models/create_build_info.py +13 -17
- daytona_api_client/models/create_docker_registry.py +18 -21
- daytona_api_client/models/create_linked_account.py +11 -9
- daytona_api_client/models/create_organization.py +10 -9
- daytona_api_client/models/create_organization_invitation.py +17 -24
- daytona_api_client/models/create_organization_quota.py +19 -32
- daytona_api_client/models/create_organization_role.py +15 -28
- daytona_api_client/models/create_runner.py +26 -41
- daytona_api_client/models/create_sandbox.py +39 -76
- daytona_api_client/models/create_session_request.py +10 -9
- daytona_api_client/models/create_snapshot.py +22 -39
- daytona_api_client/models/create_user.py +19 -26
- daytona_api_client/models/create_volume.py +10 -9
- daytona_api_client/models/create_workspace.py +38 -73
- daytona_api_client/models/docker_registry.py +21 -33
- daytona_api_client/models/execute_request.py +13 -12
- daytona_api_client/models/execute_response.py +11 -9
- daytona_api_client/models/file_info.py +17 -20
- daytona_api_client/models/file_status.py +13 -16
- daytona_api_client/models/git_add_request.py +11 -9
- daytona_api_client/models/git_branch_request.py +11 -9
- daytona_api_client/models/git_checkout_request.py +11 -9
- daytona_api_client/models/git_clone_request.py +15 -18
- daytona_api_client/models/git_commit_info.py +14 -17
- daytona_api_client/models/git_commit_request.py +13 -16
- daytona_api_client/models/git_commit_response.py +10 -9
- daytona_api_client/models/git_delete_branch_request.py +11 -9
- daytona_api_client/models/git_repo_request.py +12 -11
- daytona_api_client/models/git_status.py +15 -20
- daytona_api_client/models/list_branch_response.py +10 -9
- daytona_api_client/models/lsp_completion_params.py +16 -19
- daytona_api_client/models/lsp_document_request.py +12 -11
- daytona_api_client/models/lsp_location.py +12 -12
- daytona_api_client/models/lsp_server_request.py +11 -9
- daytona_api_client/models/lsp_symbol.py +13 -16
- daytona_api_client/models/match.py +12 -9
- daytona_api_client/models/organization.py +20 -34
- daytona_api_client/models/organization_invitation.py +27 -44
- daytona_api_client/models/organization_role.py +21 -46
- daytona_api_client/models/organization_suspension.py +11 -9
- daytona_api_client/models/organization_user.py +22 -36
- daytona_api_client/models/paginated_snapshots_dto.py +14 -19
- daytona_api_client/models/port_preview_url.py +11 -9
- daytona_api_client/models/position.py +11 -9
- daytona_api_client/models/project_dir_response.py +10 -9
- daytona_api_client/models/range.py +13 -16
- daytona_api_client/models/registry_push_access_dto.py +15 -18
- daytona_api_client/models/replace_request.py +12 -11
- daytona_api_client/models/replace_result.py +12 -9
- daytona_api_client/models/sandbox.py +49 -95
- daytona_api_client/models/sandbox_info.py +13 -18
- daytona_api_client/models/sandbox_labels.py +10 -9
- daytona_api_client/models/sandbox_state.py +18 -16
- daytona_api_client/models/sandbox_volume.py +11 -9
- daytona_api_client/models/search_files_response.py +10 -9
- daytona_api_client/models/session.py +13 -18
- daytona_api_client/models/session_execute_request.py +14 -19
- daytona_api_client/models/session_execute_response.py +13 -14
- daytona_api_client/models/set_snapshot_general_status_dto.py +10 -9
- daytona_api_client/models/snapshot_dto.py +34 -58
- daytona_api_client/models/snapshot_state.py +12 -10
- daytona_api_client/models/storage_access_dto.py +16 -26
- daytona_api_client/models/toggle_state.py +10 -9
- daytona_api_client/models/update_assigned_organization_roles.py +10 -9
- daytona_api_client/models/update_docker_registry.py +12 -11
- daytona_api_client/models/update_organization_invitation.py +15 -16
- daytona_api_client/models/update_organization_member_role.py +12 -11
- daytona_api_client/models/update_organization_quota.py +28 -41
- daytona_api_client/models/update_organization_role.py +15 -28
- daytona_api_client/models/usage_overview.py +17 -28
- daytona_api_client/models/user.py +14 -19
- daytona_api_client/models/user_public_key.py +11 -9
- daytona_api_client/models/volume_dto.py +20 -32
- daytona_api_client/models/volume_state.py +9 -7
- daytona_api_client/models/workspace.py +58 -113
- daytona_api_client/rest.py +77 -26
- {daytona_api_client-0.21.3a0.dist-info → daytona_api_client-0.21.5a0.dist-info}/METADATA +1 -1
- daytona_api_client-0.21.5a0.dist-info/RECORD +117 -0
- daytona_api_client-0.21.3a0.dist-info/RECORD +0 -117
- {daytona_api_client-0.21.3a0.dist-info → daytona_api_client-0.21.5a0.dist-info}/WHEEL +0 -0
- {daytona_api_client-0.21.3a0.dist-info → daytona_api_client-0.21.5a0.dist-info}/top_level.txt +0 -0
|
@@ -41,6 +41,7 @@ class UsersApi:
|
|
|
41
41
|
api_client = ApiClient.get_default()
|
|
42
42
|
self.api_client = api_client
|
|
43
43
|
|
|
44
|
+
|
|
44
45
|
@validate_call
|
|
45
46
|
def create_user(
|
|
46
47
|
self,
|
|
@@ -48,7 +49,10 @@ class UsersApi:
|
|
|
48
49
|
_request_timeout: Union[
|
|
49
50
|
None,
|
|
50
51
|
Annotated[StrictFloat, Field(gt=0)],
|
|
51
|
-
Tuple[
|
|
52
|
+
Tuple[
|
|
53
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
54
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
55
|
+
]
|
|
52
56
|
] = None,
|
|
53
57
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
54
58
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -80,26 +84,30 @@ class UsersApi:
|
|
|
80
84
|
in the spec for a single request.
|
|
81
85
|
:type _host_index: int, optional
|
|
82
86
|
:return: Returns the result object.
|
|
83
|
-
"""
|
|
87
|
+
""" # noqa: E501
|
|
84
88
|
|
|
85
89
|
_param = self._create_user_serialize(
|
|
86
90
|
create_user=create_user,
|
|
87
91
|
_request_auth=_request_auth,
|
|
88
92
|
_content_type=_content_type,
|
|
89
93
|
_headers=_headers,
|
|
90
|
-
_host_index=_host_index
|
|
94
|
+
_host_index=_host_index
|
|
91
95
|
)
|
|
92
96
|
|
|
93
97
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
94
|
-
|
|
98
|
+
'201': None,
|
|
95
99
|
}
|
|
96
|
-
response_data = self.api_client.call_api(
|
|
100
|
+
response_data = self.api_client.call_api(
|
|
101
|
+
*_param,
|
|
102
|
+
_request_timeout=_request_timeout
|
|
103
|
+
)
|
|
97
104
|
response_data.read()
|
|
98
105
|
return self.api_client.response_deserialize(
|
|
99
106
|
response_data=response_data,
|
|
100
107
|
response_types_map=_response_types_map,
|
|
101
108
|
).data
|
|
102
109
|
|
|
110
|
+
|
|
103
111
|
@validate_call
|
|
104
112
|
def create_user_with_http_info(
|
|
105
113
|
self,
|
|
@@ -107,7 +115,10 @@ class UsersApi:
|
|
|
107
115
|
_request_timeout: Union[
|
|
108
116
|
None,
|
|
109
117
|
Annotated[StrictFloat, Field(gt=0)],
|
|
110
|
-
Tuple[
|
|
118
|
+
Tuple[
|
|
119
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
120
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
121
|
+
]
|
|
111
122
|
] = None,
|
|
112
123
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
113
124
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -139,26 +150,30 @@ class UsersApi:
|
|
|
139
150
|
in the spec for a single request.
|
|
140
151
|
:type _host_index: int, optional
|
|
141
152
|
:return: Returns the result object.
|
|
142
|
-
"""
|
|
153
|
+
""" # noqa: E501
|
|
143
154
|
|
|
144
155
|
_param = self._create_user_serialize(
|
|
145
156
|
create_user=create_user,
|
|
146
157
|
_request_auth=_request_auth,
|
|
147
158
|
_content_type=_content_type,
|
|
148
159
|
_headers=_headers,
|
|
149
|
-
_host_index=_host_index
|
|
160
|
+
_host_index=_host_index
|
|
150
161
|
)
|
|
151
162
|
|
|
152
163
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
153
|
-
|
|
164
|
+
'201': None,
|
|
154
165
|
}
|
|
155
|
-
response_data = self.api_client.call_api(
|
|
166
|
+
response_data = self.api_client.call_api(
|
|
167
|
+
*_param,
|
|
168
|
+
_request_timeout=_request_timeout
|
|
169
|
+
)
|
|
156
170
|
response_data.read()
|
|
157
171
|
return self.api_client.response_deserialize(
|
|
158
172
|
response_data=response_data,
|
|
159
173
|
response_types_map=_response_types_map,
|
|
160
174
|
)
|
|
161
175
|
|
|
176
|
+
|
|
162
177
|
@validate_call
|
|
163
178
|
def create_user_without_preload_content(
|
|
164
179
|
self,
|
|
@@ -166,7 +181,10 @@ class UsersApi:
|
|
|
166
181
|
_request_timeout: Union[
|
|
167
182
|
None,
|
|
168
183
|
Annotated[StrictFloat, Field(gt=0)],
|
|
169
|
-
Tuple[
|
|
184
|
+
Tuple[
|
|
185
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
186
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
187
|
+
]
|
|
170
188
|
] = None,
|
|
171
189
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
172
190
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -198,22 +216,26 @@ class UsersApi:
|
|
|
198
216
|
in the spec for a single request.
|
|
199
217
|
:type _host_index: int, optional
|
|
200
218
|
:return: Returns the result object.
|
|
201
|
-
"""
|
|
219
|
+
""" # noqa: E501
|
|
202
220
|
|
|
203
221
|
_param = self._create_user_serialize(
|
|
204
222
|
create_user=create_user,
|
|
205
223
|
_request_auth=_request_auth,
|
|
206
224
|
_content_type=_content_type,
|
|
207
225
|
_headers=_headers,
|
|
208
|
-
_host_index=_host_index
|
|
226
|
+
_host_index=_host_index
|
|
209
227
|
)
|
|
210
228
|
|
|
211
229
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
212
|
-
|
|
230
|
+
'201': None,
|
|
213
231
|
}
|
|
214
|
-
response_data = self.api_client.call_api(
|
|
232
|
+
response_data = self.api_client.call_api(
|
|
233
|
+
*_param,
|
|
234
|
+
_request_timeout=_request_timeout
|
|
235
|
+
)
|
|
215
236
|
return response_data.response
|
|
216
237
|
|
|
238
|
+
|
|
217
239
|
def _create_user_serialize(
|
|
218
240
|
self,
|
|
219
241
|
create_user,
|
|
@@ -222,15 +244,19 @@ class UsersApi:
|
|
|
222
244
|
_headers,
|
|
223
245
|
_host_index,
|
|
224
246
|
) -> RequestSerialized:
|
|
247
|
+
|
|
225
248
|
_host = None
|
|
226
249
|
|
|
227
|
-
_collection_formats: Dict[str, str] = {
|
|
250
|
+
_collection_formats: Dict[str, str] = {
|
|
251
|
+
}
|
|
228
252
|
|
|
229
253
|
_path_params: Dict[str, str] = {}
|
|
230
254
|
_query_params: List[Tuple[str, str]] = []
|
|
231
255
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
232
256
|
_form_params: List[Tuple[str, str]] = []
|
|
233
|
-
_files: Dict[
|
|
257
|
+
_files: Dict[
|
|
258
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
259
|
+
] = {}
|
|
234
260
|
_body_params: Optional[bytes] = None
|
|
235
261
|
|
|
236
262
|
# process the path parameters
|
|
@@ -241,20 +267,31 @@ class UsersApi:
|
|
|
241
267
|
if create_user is not None:
|
|
242
268
|
_body_params = create_user
|
|
243
269
|
|
|
270
|
+
|
|
271
|
+
|
|
244
272
|
# set the HTTP header `Content-Type`
|
|
245
273
|
if _content_type:
|
|
246
|
-
_header_params[
|
|
274
|
+
_header_params['Content-Type'] = _content_type
|
|
247
275
|
else:
|
|
248
|
-
_default_content_type =
|
|
276
|
+
_default_content_type = (
|
|
277
|
+
self.api_client.select_header_content_type(
|
|
278
|
+
[
|
|
279
|
+
'application/json'
|
|
280
|
+
]
|
|
281
|
+
)
|
|
282
|
+
)
|
|
249
283
|
if _default_content_type is not None:
|
|
250
|
-
_header_params[
|
|
284
|
+
_header_params['Content-Type'] = _default_content_type
|
|
251
285
|
|
|
252
286
|
# authentication setting
|
|
253
|
-
_auth_settings: List[str] = [
|
|
287
|
+
_auth_settings: List[str] = [
|
|
288
|
+
'bearer',
|
|
289
|
+
'oauth2'
|
|
290
|
+
]
|
|
254
291
|
|
|
255
292
|
return self.api_client.param_serialize(
|
|
256
|
-
method=
|
|
257
|
-
resource_path=
|
|
293
|
+
method='POST',
|
|
294
|
+
resource_path='/users',
|
|
258
295
|
path_params=_path_params,
|
|
259
296
|
query_params=_query_params,
|
|
260
297
|
header_params=_header_params,
|
|
@@ -264,16 +301,22 @@ class UsersApi:
|
|
|
264
301
|
auth_settings=_auth_settings,
|
|
265
302
|
collection_formats=_collection_formats,
|
|
266
303
|
_host=_host,
|
|
267
|
-
_request_auth=_request_auth
|
|
304
|
+
_request_auth=_request_auth
|
|
268
305
|
)
|
|
269
306
|
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
|
|
270
310
|
@validate_call
|
|
271
311
|
def get_authenticated_user(
|
|
272
312
|
self,
|
|
273
313
|
_request_timeout: Union[
|
|
274
314
|
None,
|
|
275
315
|
Annotated[StrictFloat, Field(gt=0)],
|
|
276
|
-
Tuple[
|
|
316
|
+
Tuple[
|
|
317
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
318
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
319
|
+
]
|
|
277
320
|
] = None,
|
|
278
321
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
279
322
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -303,29 +346,39 @@ class UsersApi:
|
|
|
303
346
|
in the spec for a single request.
|
|
304
347
|
:type _host_index: int, optional
|
|
305
348
|
:return: Returns the result object.
|
|
306
|
-
"""
|
|
349
|
+
""" # noqa: E501
|
|
307
350
|
|
|
308
351
|
_param = self._get_authenticated_user_serialize(
|
|
309
|
-
_request_auth=_request_auth,
|
|
352
|
+
_request_auth=_request_auth,
|
|
353
|
+
_content_type=_content_type,
|
|
354
|
+
_headers=_headers,
|
|
355
|
+
_host_index=_host_index
|
|
310
356
|
)
|
|
311
357
|
|
|
312
358
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
313
|
-
|
|
359
|
+
'200': "User",
|
|
314
360
|
}
|
|
315
|
-
response_data = self.api_client.call_api(
|
|
361
|
+
response_data = self.api_client.call_api(
|
|
362
|
+
*_param,
|
|
363
|
+
_request_timeout=_request_timeout
|
|
364
|
+
)
|
|
316
365
|
response_data.read()
|
|
317
366
|
return self.api_client.response_deserialize(
|
|
318
367
|
response_data=response_data,
|
|
319
368
|
response_types_map=_response_types_map,
|
|
320
369
|
).data
|
|
321
370
|
|
|
371
|
+
|
|
322
372
|
@validate_call
|
|
323
373
|
def get_authenticated_user_with_http_info(
|
|
324
374
|
self,
|
|
325
375
|
_request_timeout: Union[
|
|
326
376
|
None,
|
|
327
377
|
Annotated[StrictFloat, Field(gt=0)],
|
|
328
|
-
Tuple[
|
|
378
|
+
Tuple[
|
|
379
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
380
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
381
|
+
]
|
|
329
382
|
] = None,
|
|
330
383
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
331
384
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -355,29 +408,39 @@ class UsersApi:
|
|
|
355
408
|
in the spec for a single request.
|
|
356
409
|
:type _host_index: int, optional
|
|
357
410
|
:return: Returns the result object.
|
|
358
|
-
"""
|
|
411
|
+
""" # noqa: E501
|
|
359
412
|
|
|
360
413
|
_param = self._get_authenticated_user_serialize(
|
|
361
|
-
_request_auth=_request_auth,
|
|
414
|
+
_request_auth=_request_auth,
|
|
415
|
+
_content_type=_content_type,
|
|
416
|
+
_headers=_headers,
|
|
417
|
+
_host_index=_host_index
|
|
362
418
|
)
|
|
363
419
|
|
|
364
420
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
365
|
-
|
|
421
|
+
'200': "User",
|
|
366
422
|
}
|
|
367
|
-
response_data = self.api_client.call_api(
|
|
423
|
+
response_data = self.api_client.call_api(
|
|
424
|
+
*_param,
|
|
425
|
+
_request_timeout=_request_timeout
|
|
426
|
+
)
|
|
368
427
|
response_data.read()
|
|
369
428
|
return self.api_client.response_deserialize(
|
|
370
429
|
response_data=response_data,
|
|
371
430
|
response_types_map=_response_types_map,
|
|
372
431
|
)
|
|
373
432
|
|
|
433
|
+
|
|
374
434
|
@validate_call
|
|
375
435
|
def get_authenticated_user_without_preload_content(
|
|
376
436
|
self,
|
|
377
437
|
_request_timeout: Union[
|
|
378
438
|
None,
|
|
379
439
|
Annotated[StrictFloat, Field(gt=0)],
|
|
380
|
-
Tuple[
|
|
440
|
+
Tuple[
|
|
441
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
442
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
443
|
+
]
|
|
381
444
|
] = None,
|
|
382
445
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
383
446
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -407,18 +470,25 @@ class UsersApi:
|
|
|
407
470
|
in the spec for a single request.
|
|
408
471
|
:type _host_index: int, optional
|
|
409
472
|
:return: Returns the result object.
|
|
410
|
-
"""
|
|
473
|
+
""" # noqa: E501
|
|
411
474
|
|
|
412
475
|
_param = self._get_authenticated_user_serialize(
|
|
413
|
-
_request_auth=_request_auth,
|
|
476
|
+
_request_auth=_request_auth,
|
|
477
|
+
_content_type=_content_type,
|
|
478
|
+
_headers=_headers,
|
|
479
|
+
_host_index=_host_index
|
|
414
480
|
)
|
|
415
481
|
|
|
416
482
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
417
|
-
|
|
483
|
+
'200': "User",
|
|
418
484
|
}
|
|
419
|
-
response_data = self.api_client.call_api(
|
|
485
|
+
response_data = self.api_client.call_api(
|
|
486
|
+
*_param,
|
|
487
|
+
_request_timeout=_request_timeout
|
|
488
|
+
)
|
|
420
489
|
return response_data.response
|
|
421
490
|
|
|
491
|
+
|
|
422
492
|
def _get_authenticated_user_serialize(
|
|
423
493
|
self,
|
|
424
494
|
_request_auth,
|
|
@@ -426,15 +496,19 @@ class UsersApi:
|
|
|
426
496
|
_headers,
|
|
427
497
|
_host_index,
|
|
428
498
|
) -> RequestSerialized:
|
|
499
|
+
|
|
429
500
|
_host = None
|
|
430
501
|
|
|
431
|
-
_collection_formats: Dict[str, str] = {
|
|
502
|
+
_collection_formats: Dict[str, str] = {
|
|
503
|
+
}
|
|
432
504
|
|
|
433
505
|
_path_params: Dict[str, str] = {}
|
|
434
506
|
_query_params: List[Tuple[str, str]] = []
|
|
435
507
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
436
508
|
_form_params: List[Tuple[str, str]] = []
|
|
437
|
-
_files: Dict[
|
|
509
|
+
_files: Dict[
|
|
510
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
511
|
+
] = {}
|
|
438
512
|
_body_params: Optional[bytes] = None
|
|
439
513
|
|
|
440
514
|
# process the path parameters
|
|
@@ -443,16 +517,25 @@ class UsersApi:
|
|
|
443
517
|
# process the form parameters
|
|
444
518
|
# process the body parameter
|
|
445
519
|
|
|
520
|
+
|
|
446
521
|
# set the HTTP header `Accept`
|
|
447
|
-
if
|
|
448
|
-
_header_params[
|
|
522
|
+
if 'Accept' not in _header_params:
|
|
523
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
524
|
+
[
|
|
525
|
+
'application/json'
|
|
526
|
+
]
|
|
527
|
+
)
|
|
528
|
+
|
|
449
529
|
|
|
450
530
|
# authentication setting
|
|
451
|
-
_auth_settings: List[str] = [
|
|
531
|
+
_auth_settings: List[str] = [
|
|
532
|
+
'bearer',
|
|
533
|
+
'oauth2'
|
|
534
|
+
]
|
|
452
535
|
|
|
453
536
|
return self.api_client.param_serialize(
|
|
454
|
-
method=
|
|
455
|
-
resource_path=
|
|
537
|
+
method='GET',
|
|
538
|
+
resource_path='/users/me',
|
|
456
539
|
path_params=_path_params,
|
|
457
540
|
query_params=_query_params,
|
|
458
541
|
header_params=_header_params,
|
|
@@ -462,16 +545,22 @@ class UsersApi:
|
|
|
462
545
|
auth_settings=_auth_settings,
|
|
463
546
|
collection_formats=_collection_formats,
|
|
464
547
|
_host=_host,
|
|
465
|
-
_request_auth=_request_auth
|
|
548
|
+
_request_auth=_request_auth
|
|
466
549
|
)
|
|
467
550
|
|
|
551
|
+
|
|
552
|
+
|
|
553
|
+
|
|
468
554
|
@validate_call
|
|
469
555
|
def get_available_account_providers(
|
|
470
556
|
self,
|
|
471
557
|
_request_timeout: Union[
|
|
472
558
|
None,
|
|
473
559
|
Annotated[StrictFloat, Field(gt=0)],
|
|
474
|
-
Tuple[
|
|
560
|
+
Tuple[
|
|
561
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
562
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
563
|
+
]
|
|
475
564
|
] = None,
|
|
476
565
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
477
566
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -501,29 +590,39 @@ class UsersApi:
|
|
|
501
590
|
in the spec for a single request.
|
|
502
591
|
:type _host_index: int, optional
|
|
503
592
|
:return: Returns the result object.
|
|
504
|
-
"""
|
|
593
|
+
""" # noqa: E501
|
|
505
594
|
|
|
506
595
|
_param = self._get_available_account_providers_serialize(
|
|
507
|
-
_request_auth=_request_auth,
|
|
596
|
+
_request_auth=_request_auth,
|
|
597
|
+
_content_type=_content_type,
|
|
598
|
+
_headers=_headers,
|
|
599
|
+
_host_index=_host_index
|
|
508
600
|
)
|
|
509
601
|
|
|
510
602
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
511
|
-
|
|
603
|
+
'200': "List[AccountProvider]",
|
|
512
604
|
}
|
|
513
|
-
response_data = self.api_client.call_api(
|
|
605
|
+
response_data = self.api_client.call_api(
|
|
606
|
+
*_param,
|
|
607
|
+
_request_timeout=_request_timeout
|
|
608
|
+
)
|
|
514
609
|
response_data.read()
|
|
515
610
|
return self.api_client.response_deserialize(
|
|
516
611
|
response_data=response_data,
|
|
517
612
|
response_types_map=_response_types_map,
|
|
518
613
|
).data
|
|
519
614
|
|
|
615
|
+
|
|
520
616
|
@validate_call
|
|
521
617
|
def get_available_account_providers_with_http_info(
|
|
522
618
|
self,
|
|
523
619
|
_request_timeout: Union[
|
|
524
620
|
None,
|
|
525
621
|
Annotated[StrictFloat, Field(gt=0)],
|
|
526
|
-
Tuple[
|
|
622
|
+
Tuple[
|
|
623
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
624
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
625
|
+
]
|
|
527
626
|
] = None,
|
|
528
627
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
529
628
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -553,29 +652,39 @@ class UsersApi:
|
|
|
553
652
|
in the spec for a single request.
|
|
554
653
|
:type _host_index: int, optional
|
|
555
654
|
:return: Returns the result object.
|
|
556
|
-
"""
|
|
655
|
+
""" # noqa: E501
|
|
557
656
|
|
|
558
657
|
_param = self._get_available_account_providers_serialize(
|
|
559
|
-
_request_auth=_request_auth,
|
|
658
|
+
_request_auth=_request_auth,
|
|
659
|
+
_content_type=_content_type,
|
|
660
|
+
_headers=_headers,
|
|
661
|
+
_host_index=_host_index
|
|
560
662
|
)
|
|
561
663
|
|
|
562
664
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
563
|
-
|
|
665
|
+
'200': "List[AccountProvider]",
|
|
564
666
|
}
|
|
565
|
-
response_data = self.api_client.call_api(
|
|
667
|
+
response_data = self.api_client.call_api(
|
|
668
|
+
*_param,
|
|
669
|
+
_request_timeout=_request_timeout
|
|
670
|
+
)
|
|
566
671
|
response_data.read()
|
|
567
672
|
return self.api_client.response_deserialize(
|
|
568
673
|
response_data=response_data,
|
|
569
674
|
response_types_map=_response_types_map,
|
|
570
675
|
)
|
|
571
676
|
|
|
677
|
+
|
|
572
678
|
@validate_call
|
|
573
679
|
def get_available_account_providers_without_preload_content(
|
|
574
680
|
self,
|
|
575
681
|
_request_timeout: Union[
|
|
576
682
|
None,
|
|
577
683
|
Annotated[StrictFloat, Field(gt=0)],
|
|
578
|
-
Tuple[
|
|
684
|
+
Tuple[
|
|
685
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
686
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
687
|
+
]
|
|
579
688
|
] = None,
|
|
580
689
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
581
690
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -605,18 +714,25 @@ class UsersApi:
|
|
|
605
714
|
in the spec for a single request.
|
|
606
715
|
:type _host_index: int, optional
|
|
607
716
|
:return: Returns the result object.
|
|
608
|
-
"""
|
|
717
|
+
""" # noqa: E501
|
|
609
718
|
|
|
610
719
|
_param = self._get_available_account_providers_serialize(
|
|
611
|
-
_request_auth=_request_auth,
|
|
720
|
+
_request_auth=_request_auth,
|
|
721
|
+
_content_type=_content_type,
|
|
722
|
+
_headers=_headers,
|
|
723
|
+
_host_index=_host_index
|
|
612
724
|
)
|
|
613
725
|
|
|
614
726
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
615
|
-
|
|
727
|
+
'200': "List[AccountProvider]",
|
|
616
728
|
}
|
|
617
|
-
response_data = self.api_client.call_api(
|
|
729
|
+
response_data = self.api_client.call_api(
|
|
730
|
+
*_param,
|
|
731
|
+
_request_timeout=_request_timeout
|
|
732
|
+
)
|
|
618
733
|
return response_data.response
|
|
619
734
|
|
|
735
|
+
|
|
620
736
|
def _get_available_account_providers_serialize(
|
|
621
737
|
self,
|
|
622
738
|
_request_auth,
|
|
@@ -624,15 +740,19 @@ class UsersApi:
|
|
|
624
740
|
_headers,
|
|
625
741
|
_host_index,
|
|
626
742
|
) -> RequestSerialized:
|
|
743
|
+
|
|
627
744
|
_host = None
|
|
628
745
|
|
|
629
|
-
_collection_formats: Dict[str, str] = {
|
|
746
|
+
_collection_formats: Dict[str, str] = {
|
|
747
|
+
}
|
|
630
748
|
|
|
631
749
|
_path_params: Dict[str, str] = {}
|
|
632
750
|
_query_params: List[Tuple[str, str]] = []
|
|
633
751
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
634
752
|
_form_params: List[Tuple[str, str]] = []
|
|
635
|
-
_files: Dict[
|
|
753
|
+
_files: Dict[
|
|
754
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
755
|
+
] = {}
|
|
636
756
|
_body_params: Optional[bytes] = None
|
|
637
757
|
|
|
638
758
|
# process the path parameters
|
|
@@ -641,16 +761,25 @@ class UsersApi:
|
|
|
641
761
|
# process the form parameters
|
|
642
762
|
# process the body parameter
|
|
643
763
|
|
|
764
|
+
|
|
644
765
|
# set the HTTP header `Accept`
|
|
645
|
-
if
|
|
646
|
-
_header_params[
|
|
766
|
+
if 'Accept' not in _header_params:
|
|
767
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
768
|
+
[
|
|
769
|
+
'application/json'
|
|
770
|
+
]
|
|
771
|
+
)
|
|
772
|
+
|
|
647
773
|
|
|
648
774
|
# authentication setting
|
|
649
|
-
_auth_settings: List[str] = [
|
|
775
|
+
_auth_settings: List[str] = [
|
|
776
|
+
'bearer',
|
|
777
|
+
'oauth2'
|
|
778
|
+
]
|
|
650
779
|
|
|
651
780
|
return self.api_client.param_serialize(
|
|
652
|
-
method=
|
|
653
|
-
resource_path=
|
|
781
|
+
method='GET',
|
|
782
|
+
resource_path='/users/account-providers',
|
|
654
783
|
path_params=_path_params,
|
|
655
784
|
query_params=_query_params,
|
|
656
785
|
header_params=_header_params,
|
|
@@ -660,9 +789,12 @@ class UsersApi:
|
|
|
660
789
|
auth_settings=_auth_settings,
|
|
661
790
|
collection_formats=_collection_formats,
|
|
662
791
|
_host=_host,
|
|
663
|
-
_request_auth=_request_auth
|
|
792
|
+
_request_auth=_request_auth
|
|
664
793
|
)
|
|
665
794
|
|
|
795
|
+
|
|
796
|
+
|
|
797
|
+
|
|
666
798
|
@validate_call
|
|
667
799
|
def get_user(
|
|
668
800
|
self,
|
|
@@ -670,7 +802,10 @@ class UsersApi:
|
|
|
670
802
|
_request_timeout: Union[
|
|
671
803
|
None,
|
|
672
804
|
Annotated[StrictFloat, Field(gt=0)],
|
|
673
|
-
Tuple[
|
|
805
|
+
Tuple[
|
|
806
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
807
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
808
|
+
]
|
|
674
809
|
] = None,
|
|
675
810
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
676
811
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -702,22 +837,30 @@ class UsersApi:
|
|
|
702
837
|
in the spec for a single request.
|
|
703
838
|
:type _host_index: int, optional
|
|
704
839
|
:return: Returns the result object.
|
|
705
|
-
"""
|
|
840
|
+
""" # noqa: E501
|
|
706
841
|
|
|
707
842
|
_param = self._get_user_serialize(
|
|
708
|
-
id=id,
|
|
843
|
+
id=id,
|
|
844
|
+
_request_auth=_request_auth,
|
|
845
|
+
_content_type=_content_type,
|
|
846
|
+
_headers=_headers,
|
|
847
|
+
_host_index=_host_index
|
|
709
848
|
)
|
|
710
849
|
|
|
711
850
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
712
|
-
|
|
851
|
+
'200': "User",
|
|
713
852
|
}
|
|
714
|
-
response_data = self.api_client.call_api(
|
|
853
|
+
response_data = self.api_client.call_api(
|
|
854
|
+
*_param,
|
|
855
|
+
_request_timeout=_request_timeout
|
|
856
|
+
)
|
|
715
857
|
response_data.read()
|
|
716
858
|
return self.api_client.response_deserialize(
|
|
717
859
|
response_data=response_data,
|
|
718
860
|
response_types_map=_response_types_map,
|
|
719
861
|
).data
|
|
720
862
|
|
|
863
|
+
|
|
721
864
|
@validate_call
|
|
722
865
|
def get_user_with_http_info(
|
|
723
866
|
self,
|
|
@@ -725,7 +868,10 @@ class UsersApi:
|
|
|
725
868
|
_request_timeout: Union[
|
|
726
869
|
None,
|
|
727
870
|
Annotated[StrictFloat, Field(gt=0)],
|
|
728
|
-
Tuple[
|
|
871
|
+
Tuple[
|
|
872
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
873
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
874
|
+
]
|
|
729
875
|
] = None,
|
|
730
876
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
731
877
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -757,22 +903,30 @@ class UsersApi:
|
|
|
757
903
|
in the spec for a single request.
|
|
758
904
|
:type _host_index: int, optional
|
|
759
905
|
:return: Returns the result object.
|
|
760
|
-
"""
|
|
906
|
+
""" # noqa: E501
|
|
761
907
|
|
|
762
908
|
_param = self._get_user_serialize(
|
|
763
|
-
id=id,
|
|
909
|
+
id=id,
|
|
910
|
+
_request_auth=_request_auth,
|
|
911
|
+
_content_type=_content_type,
|
|
912
|
+
_headers=_headers,
|
|
913
|
+
_host_index=_host_index
|
|
764
914
|
)
|
|
765
915
|
|
|
766
916
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
767
|
-
|
|
917
|
+
'200': "User",
|
|
768
918
|
}
|
|
769
|
-
response_data = self.api_client.call_api(
|
|
919
|
+
response_data = self.api_client.call_api(
|
|
920
|
+
*_param,
|
|
921
|
+
_request_timeout=_request_timeout
|
|
922
|
+
)
|
|
770
923
|
response_data.read()
|
|
771
924
|
return self.api_client.response_deserialize(
|
|
772
925
|
response_data=response_data,
|
|
773
926
|
response_types_map=_response_types_map,
|
|
774
927
|
)
|
|
775
928
|
|
|
929
|
+
|
|
776
930
|
@validate_call
|
|
777
931
|
def get_user_without_preload_content(
|
|
778
932
|
self,
|
|
@@ -780,7 +934,10 @@ class UsersApi:
|
|
|
780
934
|
_request_timeout: Union[
|
|
781
935
|
None,
|
|
782
936
|
Annotated[StrictFloat, Field(gt=0)],
|
|
783
|
-
Tuple[
|
|
937
|
+
Tuple[
|
|
938
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
939
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
940
|
+
]
|
|
784
941
|
] = None,
|
|
785
942
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
786
943
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -812,18 +969,26 @@ class UsersApi:
|
|
|
812
969
|
in the spec for a single request.
|
|
813
970
|
:type _host_index: int, optional
|
|
814
971
|
:return: Returns the result object.
|
|
815
|
-
"""
|
|
972
|
+
""" # noqa: E501
|
|
816
973
|
|
|
817
974
|
_param = self._get_user_serialize(
|
|
818
|
-
id=id,
|
|
975
|
+
id=id,
|
|
976
|
+
_request_auth=_request_auth,
|
|
977
|
+
_content_type=_content_type,
|
|
978
|
+
_headers=_headers,
|
|
979
|
+
_host_index=_host_index
|
|
819
980
|
)
|
|
820
981
|
|
|
821
982
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
822
|
-
|
|
983
|
+
'200': "User",
|
|
823
984
|
}
|
|
824
|
-
response_data = self.api_client.call_api(
|
|
985
|
+
response_data = self.api_client.call_api(
|
|
986
|
+
*_param,
|
|
987
|
+
_request_timeout=_request_timeout
|
|
988
|
+
)
|
|
825
989
|
return response_data.response
|
|
826
990
|
|
|
991
|
+
|
|
827
992
|
def _get_user_serialize(
|
|
828
993
|
self,
|
|
829
994
|
id,
|
|
@@ -832,35 +997,48 @@ class UsersApi:
|
|
|
832
997
|
_headers,
|
|
833
998
|
_host_index,
|
|
834
999
|
) -> RequestSerialized:
|
|
1000
|
+
|
|
835
1001
|
_host = None
|
|
836
1002
|
|
|
837
|
-
_collection_formats: Dict[str, str] = {
|
|
1003
|
+
_collection_formats: Dict[str, str] = {
|
|
1004
|
+
}
|
|
838
1005
|
|
|
839
1006
|
_path_params: Dict[str, str] = {}
|
|
840
1007
|
_query_params: List[Tuple[str, str]] = []
|
|
841
1008
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
842
1009
|
_form_params: List[Tuple[str, str]] = []
|
|
843
|
-
_files: Dict[
|
|
1010
|
+
_files: Dict[
|
|
1011
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1012
|
+
] = {}
|
|
844
1013
|
_body_params: Optional[bytes] = None
|
|
845
1014
|
|
|
846
1015
|
# process the path parameters
|
|
847
1016
|
if id is not None:
|
|
848
|
-
_path_params[
|
|
1017
|
+
_path_params['id'] = id
|
|
849
1018
|
# process the query parameters
|
|
850
1019
|
# process the header parameters
|
|
851
1020
|
# process the form parameters
|
|
852
1021
|
# process the body parameter
|
|
853
1022
|
|
|
1023
|
+
|
|
854
1024
|
# set the HTTP header `Accept`
|
|
855
|
-
if
|
|
856
|
-
_header_params[
|
|
1025
|
+
if 'Accept' not in _header_params:
|
|
1026
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1027
|
+
[
|
|
1028
|
+
'application/json'
|
|
1029
|
+
]
|
|
1030
|
+
)
|
|
1031
|
+
|
|
857
1032
|
|
|
858
1033
|
# authentication setting
|
|
859
|
-
_auth_settings: List[str] = [
|
|
1034
|
+
_auth_settings: List[str] = [
|
|
1035
|
+
'bearer',
|
|
1036
|
+
'oauth2'
|
|
1037
|
+
]
|
|
860
1038
|
|
|
861
1039
|
return self.api_client.param_serialize(
|
|
862
|
-
method=
|
|
863
|
-
resource_path=
|
|
1040
|
+
method='GET',
|
|
1041
|
+
resource_path='/users/{id}',
|
|
864
1042
|
path_params=_path_params,
|
|
865
1043
|
query_params=_query_params,
|
|
866
1044
|
header_params=_header_params,
|
|
@@ -870,9 +1048,12 @@ class UsersApi:
|
|
|
870
1048
|
auth_settings=_auth_settings,
|
|
871
1049
|
collection_formats=_collection_formats,
|
|
872
1050
|
_host=_host,
|
|
873
|
-
_request_auth=_request_auth
|
|
1051
|
+
_request_auth=_request_auth
|
|
874
1052
|
)
|
|
875
1053
|
|
|
1054
|
+
|
|
1055
|
+
|
|
1056
|
+
|
|
876
1057
|
@validate_call
|
|
877
1058
|
def link_account(
|
|
878
1059
|
self,
|
|
@@ -880,7 +1061,10 @@ class UsersApi:
|
|
|
880
1061
|
_request_timeout: Union[
|
|
881
1062
|
None,
|
|
882
1063
|
Annotated[StrictFloat, Field(gt=0)],
|
|
883
|
-
Tuple[
|
|
1064
|
+
Tuple[
|
|
1065
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1066
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1067
|
+
]
|
|
884
1068
|
] = None,
|
|
885
1069
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
886
1070
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -912,26 +1096,30 @@ class UsersApi:
|
|
|
912
1096
|
in the spec for a single request.
|
|
913
1097
|
:type _host_index: int, optional
|
|
914
1098
|
:return: Returns the result object.
|
|
915
|
-
"""
|
|
1099
|
+
""" # noqa: E501
|
|
916
1100
|
|
|
917
1101
|
_param = self._link_account_serialize(
|
|
918
1102
|
create_linked_account=create_linked_account,
|
|
919
1103
|
_request_auth=_request_auth,
|
|
920
1104
|
_content_type=_content_type,
|
|
921
1105
|
_headers=_headers,
|
|
922
|
-
_host_index=_host_index
|
|
1106
|
+
_host_index=_host_index
|
|
923
1107
|
)
|
|
924
1108
|
|
|
925
1109
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
926
|
-
|
|
1110
|
+
'204': None,
|
|
927
1111
|
}
|
|
928
|
-
response_data = self.api_client.call_api(
|
|
1112
|
+
response_data = self.api_client.call_api(
|
|
1113
|
+
*_param,
|
|
1114
|
+
_request_timeout=_request_timeout
|
|
1115
|
+
)
|
|
929
1116
|
response_data.read()
|
|
930
1117
|
return self.api_client.response_deserialize(
|
|
931
1118
|
response_data=response_data,
|
|
932
1119
|
response_types_map=_response_types_map,
|
|
933
1120
|
).data
|
|
934
1121
|
|
|
1122
|
+
|
|
935
1123
|
@validate_call
|
|
936
1124
|
def link_account_with_http_info(
|
|
937
1125
|
self,
|
|
@@ -939,7 +1127,10 @@ class UsersApi:
|
|
|
939
1127
|
_request_timeout: Union[
|
|
940
1128
|
None,
|
|
941
1129
|
Annotated[StrictFloat, Field(gt=0)],
|
|
942
|
-
Tuple[
|
|
1130
|
+
Tuple[
|
|
1131
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1132
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1133
|
+
]
|
|
943
1134
|
] = None,
|
|
944
1135
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
945
1136
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -971,26 +1162,30 @@ class UsersApi:
|
|
|
971
1162
|
in the spec for a single request.
|
|
972
1163
|
:type _host_index: int, optional
|
|
973
1164
|
:return: Returns the result object.
|
|
974
|
-
"""
|
|
1165
|
+
""" # noqa: E501
|
|
975
1166
|
|
|
976
1167
|
_param = self._link_account_serialize(
|
|
977
1168
|
create_linked_account=create_linked_account,
|
|
978
1169
|
_request_auth=_request_auth,
|
|
979
1170
|
_content_type=_content_type,
|
|
980
1171
|
_headers=_headers,
|
|
981
|
-
_host_index=_host_index
|
|
1172
|
+
_host_index=_host_index
|
|
982
1173
|
)
|
|
983
1174
|
|
|
984
1175
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
985
|
-
|
|
1176
|
+
'204': None,
|
|
986
1177
|
}
|
|
987
|
-
response_data = self.api_client.call_api(
|
|
1178
|
+
response_data = self.api_client.call_api(
|
|
1179
|
+
*_param,
|
|
1180
|
+
_request_timeout=_request_timeout
|
|
1181
|
+
)
|
|
988
1182
|
response_data.read()
|
|
989
1183
|
return self.api_client.response_deserialize(
|
|
990
1184
|
response_data=response_data,
|
|
991
1185
|
response_types_map=_response_types_map,
|
|
992
1186
|
)
|
|
993
1187
|
|
|
1188
|
+
|
|
994
1189
|
@validate_call
|
|
995
1190
|
def link_account_without_preload_content(
|
|
996
1191
|
self,
|
|
@@ -998,7 +1193,10 @@ class UsersApi:
|
|
|
998
1193
|
_request_timeout: Union[
|
|
999
1194
|
None,
|
|
1000
1195
|
Annotated[StrictFloat, Field(gt=0)],
|
|
1001
|
-
Tuple[
|
|
1196
|
+
Tuple[
|
|
1197
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1198
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1199
|
+
]
|
|
1002
1200
|
] = None,
|
|
1003
1201
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1004
1202
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -1030,22 +1228,26 @@ class UsersApi:
|
|
|
1030
1228
|
in the spec for a single request.
|
|
1031
1229
|
:type _host_index: int, optional
|
|
1032
1230
|
:return: Returns the result object.
|
|
1033
|
-
"""
|
|
1231
|
+
""" # noqa: E501
|
|
1034
1232
|
|
|
1035
1233
|
_param = self._link_account_serialize(
|
|
1036
1234
|
create_linked_account=create_linked_account,
|
|
1037
1235
|
_request_auth=_request_auth,
|
|
1038
1236
|
_content_type=_content_type,
|
|
1039
1237
|
_headers=_headers,
|
|
1040
|
-
_host_index=_host_index
|
|
1238
|
+
_host_index=_host_index
|
|
1041
1239
|
)
|
|
1042
1240
|
|
|
1043
1241
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1044
|
-
|
|
1242
|
+
'204': None,
|
|
1045
1243
|
}
|
|
1046
|
-
response_data = self.api_client.call_api(
|
|
1244
|
+
response_data = self.api_client.call_api(
|
|
1245
|
+
*_param,
|
|
1246
|
+
_request_timeout=_request_timeout
|
|
1247
|
+
)
|
|
1047
1248
|
return response_data.response
|
|
1048
1249
|
|
|
1250
|
+
|
|
1049
1251
|
def _link_account_serialize(
|
|
1050
1252
|
self,
|
|
1051
1253
|
create_linked_account,
|
|
@@ -1054,15 +1256,19 @@ class UsersApi:
|
|
|
1054
1256
|
_headers,
|
|
1055
1257
|
_host_index,
|
|
1056
1258
|
) -> RequestSerialized:
|
|
1259
|
+
|
|
1057
1260
|
_host = None
|
|
1058
1261
|
|
|
1059
|
-
_collection_formats: Dict[str, str] = {
|
|
1262
|
+
_collection_formats: Dict[str, str] = {
|
|
1263
|
+
}
|
|
1060
1264
|
|
|
1061
1265
|
_path_params: Dict[str, str] = {}
|
|
1062
1266
|
_query_params: List[Tuple[str, str]] = []
|
|
1063
1267
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1064
1268
|
_form_params: List[Tuple[str, str]] = []
|
|
1065
|
-
_files: Dict[
|
|
1269
|
+
_files: Dict[
|
|
1270
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1271
|
+
] = {}
|
|
1066
1272
|
_body_params: Optional[bytes] = None
|
|
1067
1273
|
|
|
1068
1274
|
# process the path parameters
|
|
@@ -1073,20 +1279,31 @@ class UsersApi:
|
|
|
1073
1279
|
if create_linked_account is not None:
|
|
1074
1280
|
_body_params = create_linked_account
|
|
1075
1281
|
|
|
1282
|
+
|
|
1283
|
+
|
|
1076
1284
|
# set the HTTP header `Content-Type`
|
|
1077
1285
|
if _content_type:
|
|
1078
|
-
_header_params[
|
|
1286
|
+
_header_params['Content-Type'] = _content_type
|
|
1079
1287
|
else:
|
|
1080
|
-
_default_content_type =
|
|
1288
|
+
_default_content_type = (
|
|
1289
|
+
self.api_client.select_header_content_type(
|
|
1290
|
+
[
|
|
1291
|
+
'application/json'
|
|
1292
|
+
]
|
|
1293
|
+
)
|
|
1294
|
+
)
|
|
1081
1295
|
if _default_content_type is not None:
|
|
1082
|
-
_header_params[
|
|
1296
|
+
_header_params['Content-Type'] = _default_content_type
|
|
1083
1297
|
|
|
1084
1298
|
# authentication setting
|
|
1085
|
-
_auth_settings: List[str] = [
|
|
1299
|
+
_auth_settings: List[str] = [
|
|
1300
|
+
'bearer',
|
|
1301
|
+
'oauth2'
|
|
1302
|
+
]
|
|
1086
1303
|
|
|
1087
1304
|
return self.api_client.param_serialize(
|
|
1088
|
-
method=
|
|
1089
|
-
resource_path=
|
|
1305
|
+
method='POST',
|
|
1306
|
+
resource_path='/users/linked-accounts',
|
|
1090
1307
|
path_params=_path_params,
|
|
1091
1308
|
query_params=_query_params,
|
|
1092
1309
|
header_params=_header_params,
|
|
@@ -1096,16 +1313,22 @@ class UsersApi:
|
|
|
1096
1313
|
auth_settings=_auth_settings,
|
|
1097
1314
|
collection_formats=_collection_formats,
|
|
1098
1315
|
_host=_host,
|
|
1099
|
-
_request_auth=_request_auth
|
|
1316
|
+
_request_auth=_request_auth
|
|
1100
1317
|
)
|
|
1101
1318
|
|
|
1319
|
+
|
|
1320
|
+
|
|
1321
|
+
|
|
1102
1322
|
@validate_call
|
|
1103
1323
|
def list_users(
|
|
1104
1324
|
self,
|
|
1105
1325
|
_request_timeout: Union[
|
|
1106
1326
|
None,
|
|
1107
1327
|
Annotated[StrictFloat, Field(gt=0)],
|
|
1108
|
-
Tuple[
|
|
1328
|
+
Tuple[
|
|
1329
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1330
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1331
|
+
]
|
|
1109
1332
|
] = None,
|
|
1110
1333
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1111
1334
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -1135,29 +1358,39 @@ class UsersApi:
|
|
|
1135
1358
|
in the spec for a single request.
|
|
1136
1359
|
:type _host_index: int, optional
|
|
1137
1360
|
:return: Returns the result object.
|
|
1138
|
-
"""
|
|
1361
|
+
""" # noqa: E501
|
|
1139
1362
|
|
|
1140
1363
|
_param = self._list_users_serialize(
|
|
1141
|
-
_request_auth=_request_auth,
|
|
1364
|
+
_request_auth=_request_auth,
|
|
1365
|
+
_content_type=_content_type,
|
|
1366
|
+
_headers=_headers,
|
|
1367
|
+
_host_index=_host_index
|
|
1142
1368
|
)
|
|
1143
1369
|
|
|
1144
1370
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1145
|
-
|
|
1371
|
+
'200': None,
|
|
1146
1372
|
}
|
|
1147
|
-
response_data = self.api_client.call_api(
|
|
1373
|
+
response_data = self.api_client.call_api(
|
|
1374
|
+
*_param,
|
|
1375
|
+
_request_timeout=_request_timeout
|
|
1376
|
+
)
|
|
1148
1377
|
response_data.read()
|
|
1149
1378
|
return self.api_client.response_deserialize(
|
|
1150
1379
|
response_data=response_data,
|
|
1151
1380
|
response_types_map=_response_types_map,
|
|
1152
1381
|
).data
|
|
1153
1382
|
|
|
1383
|
+
|
|
1154
1384
|
@validate_call
|
|
1155
1385
|
def list_users_with_http_info(
|
|
1156
1386
|
self,
|
|
1157
1387
|
_request_timeout: Union[
|
|
1158
1388
|
None,
|
|
1159
1389
|
Annotated[StrictFloat, Field(gt=0)],
|
|
1160
|
-
Tuple[
|
|
1390
|
+
Tuple[
|
|
1391
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1392
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1393
|
+
]
|
|
1161
1394
|
] = None,
|
|
1162
1395
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1163
1396
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -1187,29 +1420,39 @@ class UsersApi:
|
|
|
1187
1420
|
in the spec for a single request.
|
|
1188
1421
|
:type _host_index: int, optional
|
|
1189
1422
|
:return: Returns the result object.
|
|
1190
|
-
"""
|
|
1423
|
+
""" # noqa: E501
|
|
1191
1424
|
|
|
1192
1425
|
_param = self._list_users_serialize(
|
|
1193
|
-
_request_auth=_request_auth,
|
|
1426
|
+
_request_auth=_request_auth,
|
|
1427
|
+
_content_type=_content_type,
|
|
1428
|
+
_headers=_headers,
|
|
1429
|
+
_host_index=_host_index
|
|
1194
1430
|
)
|
|
1195
1431
|
|
|
1196
1432
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1197
|
-
|
|
1433
|
+
'200': None,
|
|
1198
1434
|
}
|
|
1199
|
-
response_data = self.api_client.call_api(
|
|
1435
|
+
response_data = self.api_client.call_api(
|
|
1436
|
+
*_param,
|
|
1437
|
+
_request_timeout=_request_timeout
|
|
1438
|
+
)
|
|
1200
1439
|
response_data.read()
|
|
1201
1440
|
return self.api_client.response_deserialize(
|
|
1202
1441
|
response_data=response_data,
|
|
1203
1442
|
response_types_map=_response_types_map,
|
|
1204
1443
|
)
|
|
1205
1444
|
|
|
1445
|
+
|
|
1206
1446
|
@validate_call
|
|
1207
1447
|
def list_users_without_preload_content(
|
|
1208
1448
|
self,
|
|
1209
1449
|
_request_timeout: Union[
|
|
1210
1450
|
None,
|
|
1211
1451
|
Annotated[StrictFloat, Field(gt=0)],
|
|
1212
|
-
Tuple[
|
|
1452
|
+
Tuple[
|
|
1453
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1454
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1455
|
+
]
|
|
1213
1456
|
] = None,
|
|
1214
1457
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1215
1458
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -1239,18 +1482,25 @@ class UsersApi:
|
|
|
1239
1482
|
in the spec for a single request.
|
|
1240
1483
|
:type _host_index: int, optional
|
|
1241
1484
|
:return: Returns the result object.
|
|
1242
|
-
"""
|
|
1485
|
+
""" # noqa: E501
|
|
1243
1486
|
|
|
1244
1487
|
_param = self._list_users_serialize(
|
|
1245
|
-
_request_auth=_request_auth,
|
|
1488
|
+
_request_auth=_request_auth,
|
|
1489
|
+
_content_type=_content_type,
|
|
1490
|
+
_headers=_headers,
|
|
1491
|
+
_host_index=_host_index
|
|
1246
1492
|
)
|
|
1247
1493
|
|
|
1248
1494
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1249
|
-
|
|
1495
|
+
'200': None,
|
|
1250
1496
|
}
|
|
1251
|
-
response_data = self.api_client.call_api(
|
|
1497
|
+
response_data = self.api_client.call_api(
|
|
1498
|
+
*_param,
|
|
1499
|
+
_request_timeout=_request_timeout
|
|
1500
|
+
)
|
|
1252
1501
|
return response_data.response
|
|
1253
1502
|
|
|
1503
|
+
|
|
1254
1504
|
def _list_users_serialize(
|
|
1255
1505
|
self,
|
|
1256
1506
|
_request_auth,
|
|
@@ -1258,15 +1508,19 @@ class UsersApi:
|
|
|
1258
1508
|
_headers,
|
|
1259
1509
|
_host_index,
|
|
1260
1510
|
) -> RequestSerialized:
|
|
1511
|
+
|
|
1261
1512
|
_host = None
|
|
1262
1513
|
|
|
1263
|
-
_collection_formats: Dict[str, str] = {
|
|
1514
|
+
_collection_formats: Dict[str, str] = {
|
|
1515
|
+
}
|
|
1264
1516
|
|
|
1265
1517
|
_path_params: Dict[str, str] = {}
|
|
1266
1518
|
_query_params: List[Tuple[str, str]] = []
|
|
1267
1519
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1268
1520
|
_form_params: List[Tuple[str, str]] = []
|
|
1269
|
-
_files: Dict[
|
|
1521
|
+
_files: Dict[
|
|
1522
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1523
|
+
] = {}
|
|
1270
1524
|
_body_params: Optional[bytes] = None
|
|
1271
1525
|
|
|
1272
1526
|
# process the path parameters
|
|
@@ -1275,12 +1529,18 @@ class UsersApi:
|
|
|
1275
1529
|
# process the form parameters
|
|
1276
1530
|
# process the body parameter
|
|
1277
1531
|
|
|
1532
|
+
|
|
1533
|
+
|
|
1534
|
+
|
|
1278
1535
|
# authentication setting
|
|
1279
|
-
_auth_settings: List[str] = [
|
|
1536
|
+
_auth_settings: List[str] = [
|
|
1537
|
+
'bearer',
|
|
1538
|
+
'oauth2'
|
|
1539
|
+
]
|
|
1280
1540
|
|
|
1281
1541
|
return self.api_client.param_serialize(
|
|
1282
|
-
method=
|
|
1283
|
-
resource_path=
|
|
1542
|
+
method='GET',
|
|
1543
|
+
resource_path='/users',
|
|
1284
1544
|
path_params=_path_params,
|
|
1285
1545
|
query_params=_query_params,
|
|
1286
1546
|
header_params=_header_params,
|
|
@@ -1290,9 +1550,12 @@ class UsersApi:
|
|
|
1290
1550
|
auth_settings=_auth_settings,
|
|
1291
1551
|
collection_formats=_collection_formats,
|
|
1292
1552
|
_host=_host,
|
|
1293
|
-
_request_auth=_request_auth
|
|
1553
|
+
_request_auth=_request_auth
|
|
1294
1554
|
)
|
|
1295
1555
|
|
|
1556
|
+
|
|
1557
|
+
|
|
1558
|
+
|
|
1296
1559
|
@validate_call
|
|
1297
1560
|
def regenerate_key_pair(
|
|
1298
1561
|
self,
|
|
@@ -1300,7 +1563,10 @@ class UsersApi:
|
|
|
1300
1563
|
_request_timeout: Union[
|
|
1301
1564
|
None,
|
|
1302
1565
|
Annotated[StrictFloat, Field(gt=0)],
|
|
1303
|
-
Tuple[
|
|
1566
|
+
Tuple[
|
|
1567
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1568
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1569
|
+
]
|
|
1304
1570
|
] = None,
|
|
1305
1571
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1306
1572
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -1332,22 +1598,30 @@ class UsersApi:
|
|
|
1332
1598
|
in the spec for a single request.
|
|
1333
1599
|
:type _host_index: int, optional
|
|
1334
1600
|
:return: Returns the result object.
|
|
1335
|
-
"""
|
|
1601
|
+
""" # noqa: E501
|
|
1336
1602
|
|
|
1337
1603
|
_param = self._regenerate_key_pair_serialize(
|
|
1338
|
-
id=id,
|
|
1604
|
+
id=id,
|
|
1605
|
+
_request_auth=_request_auth,
|
|
1606
|
+
_content_type=_content_type,
|
|
1607
|
+
_headers=_headers,
|
|
1608
|
+
_host_index=_host_index
|
|
1339
1609
|
)
|
|
1340
1610
|
|
|
1341
1611
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1342
|
-
|
|
1612
|
+
'201': None,
|
|
1343
1613
|
}
|
|
1344
|
-
response_data = self.api_client.call_api(
|
|
1614
|
+
response_data = self.api_client.call_api(
|
|
1615
|
+
*_param,
|
|
1616
|
+
_request_timeout=_request_timeout
|
|
1617
|
+
)
|
|
1345
1618
|
response_data.read()
|
|
1346
1619
|
return self.api_client.response_deserialize(
|
|
1347
1620
|
response_data=response_data,
|
|
1348
1621
|
response_types_map=_response_types_map,
|
|
1349
1622
|
).data
|
|
1350
1623
|
|
|
1624
|
+
|
|
1351
1625
|
@validate_call
|
|
1352
1626
|
def regenerate_key_pair_with_http_info(
|
|
1353
1627
|
self,
|
|
@@ -1355,7 +1629,10 @@ class UsersApi:
|
|
|
1355
1629
|
_request_timeout: Union[
|
|
1356
1630
|
None,
|
|
1357
1631
|
Annotated[StrictFloat, Field(gt=0)],
|
|
1358
|
-
Tuple[
|
|
1632
|
+
Tuple[
|
|
1633
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1634
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1635
|
+
]
|
|
1359
1636
|
] = None,
|
|
1360
1637
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1361
1638
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -1387,22 +1664,30 @@ class UsersApi:
|
|
|
1387
1664
|
in the spec for a single request.
|
|
1388
1665
|
:type _host_index: int, optional
|
|
1389
1666
|
:return: Returns the result object.
|
|
1390
|
-
"""
|
|
1667
|
+
""" # noqa: E501
|
|
1391
1668
|
|
|
1392
1669
|
_param = self._regenerate_key_pair_serialize(
|
|
1393
|
-
id=id,
|
|
1670
|
+
id=id,
|
|
1671
|
+
_request_auth=_request_auth,
|
|
1672
|
+
_content_type=_content_type,
|
|
1673
|
+
_headers=_headers,
|
|
1674
|
+
_host_index=_host_index
|
|
1394
1675
|
)
|
|
1395
1676
|
|
|
1396
1677
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1397
|
-
|
|
1678
|
+
'201': None,
|
|
1398
1679
|
}
|
|
1399
|
-
response_data = self.api_client.call_api(
|
|
1680
|
+
response_data = self.api_client.call_api(
|
|
1681
|
+
*_param,
|
|
1682
|
+
_request_timeout=_request_timeout
|
|
1683
|
+
)
|
|
1400
1684
|
response_data.read()
|
|
1401
1685
|
return self.api_client.response_deserialize(
|
|
1402
1686
|
response_data=response_data,
|
|
1403
1687
|
response_types_map=_response_types_map,
|
|
1404
1688
|
)
|
|
1405
1689
|
|
|
1690
|
+
|
|
1406
1691
|
@validate_call
|
|
1407
1692
|
def regenerate_key_pair_without_preload_content(
|
|
1408
1693
|
self,
|
|
@@ -1410,7 +1695,10 @@ class UsersApi:
|
|
|
1410
1695
|
_request_timeout: Union[
|
|
1411
1696
|
None,
|
|
1412
1697
|
Annotated[StrictFloat, Field(gt=0)],
|
|
1413
|
-
Tuple[
|
|
1698
|
+
Tuple[
|
|
1699
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1700
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1701
|
+
]
|
|
1414
1702
|
] = None,
|
|
1415
1703
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1416
1704
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -1442,18 +1730,26 @@ class UsersApi:
|
|
|
1442
1730
|
in the spec for a single request.
|
|
1443
1731
|
:type _host_index: int, optional
|
|
1444
1732
|
:return: Returns the result object.
|
|
1445
|
-
"""
|
|
1733
|
+
""" # noqa: E501
|
|
1446
1734
|
|
|
1447
1735
|
_param = self._regenerate_key_pair_serialize(
|
|
1448
|
-
id=id,
|
|
1736
|
+
id=id,
|
|
1737
|
+
_request_auth=_request_auth,
|
|
1738
|
+
_content_type=_content_type,
|
|
1739
|
+
_headers=_headers,
|
|
1740
|
+
_host_index=_host_index
|
|
1449
1741
|
)
|
|
1450
1742
|
|
|
1451
1743
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1452
|
-
|
|
1744
|
+
'201': None,
|
|
1453
1745
|
}
|
|
1454
|
-
response_data = self.api_client.call_api(
|
|
1746
|
+
response_data = self.api_client.call_api(
|
|
1747
|
+
*_param,
|
|
1748
|
+
_request_timeout=_request_timeout
|
|
1749
|
+
)
|
|
1455
1750
|
return response_data.response
|
|
1456
1751
|
|
|
1752
|
+
|
|
1457
1753
|
def _regenerate_key_pair_serialize(
|
|
1458
1754
|
self,
|
|
1459
1755
|
id,
|
|
@@ -1462,31 +1758,41 @@ class UsersApi:
|
|
|
1462
1758
|
_headers,
|
|
1463
1759
|
_host_index,
|
|
1464
1760
|
) -> RequestSerialized:
|
|
1761
|
+
|
|
1465
1762
|
_host = None
|
|
1466
1763
|
|
|
1467
|
-
_collection_formats: Dict[str, str] = {
|
|
1764
|
+
_collection_formats: Dict[str, str] = {
|
|
1765
|
+
}
|
|
1468
1766
|
|
|
1469
1767
|
_path_params: Dict[str, str] = {}
|
|
1470
1768
|
_query_params: List[Tuple[str, str]] = []
|
|
1471
1769
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1472
1770
|
_form_params: List[Tuple[str, str]] = []
|
|
1473
|
-
_files: Dict[
|
|
1771
|
+
_files: Dict[
|
|
1772
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1773
|
+
] = {}
|
|
1474
1774
|
_body_params: Optional[bytes] = None
|
|
1475
1775
|
|
|
1476
1776
|
# process the path parameters
|
|
1477
1777
|
if id is not None:
|
|
1478
|
-
_path_params[
|
|
1778
|
+
_path_params['id'] = id
|
|
1479
1779
|
# process the query parameters
|
|
1480
1780
|
# process the header parameters
|
|
1481
1781
|
# process the form parameters
|
|
1482
1782
|
# process the body parameter
|
|
1483
1783
|
|
|
1784
|
+
|
|
1785
|
+
|
|
1786
|
+
|
|
1484
1787
|
# authentication setting
|
|
1485
|
-
_auth_settings: List[str] = [
|
|
1788
|
+
_auth_settings: List[str] = [
|
|
1789
|
+
'bearer',
|
|
1790
|
+
'oauth2'
|
|
1791
|
+
]
|
|
1486
1792
|
|
|
1487
1793
|
return self.api_client.param_serialize(
|
|
1488
|
-
method=
|
|
1489
|
-
resource_path=
|
|
1794
|
+
method='POST',
|
|
1795
|
+
resource_path='/users/{id}/regenerate-key-pair',
|
|
1490
1796
|
path_params=_path_params,
|
|
1491
1797
|
query_params=_query_params,
|
|
1492
1798
|
header_params=_header_params,
|
|
@@ -1496,9 +1802,12 @@ class UsersApi:
|
|
|
1496
1802
|
auth_settings=_auth_settings,
|
|
1497
1803
|
collection_formats=_collection_formats,
|
|
1498
1804
|
_host=_host,
|
|
1499
|
-
_request_auth=_request_auth
|
|
1805
|
+
_request_auth=_request_auth
|
|
1500
1806
|
)
|
|
1501
1807
|
|
|
1808
|
+
|
|
1809
|
+
|
|
1810
|
+
|
|
1502
1811
|
@validate_call
|
|
1503
1812
|
def unlink_account(
|
|
1504
1813
|
self,
|
|
@@ -1507,7 +1816,10 @@ class UsersApi:
|
|
|
1507
1816
|
_request_timeout: Union[
|
|
1508
1817
|
None,
|
|
1509
1818
|
Annotated[StrictFloat, Field(gt=0)],
|
|
1510
|
-
Tuple[
|
|
1819
|
+
Tuple[
|
|
1820
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1821
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1822
|
+
]
|
|
1511
1823
|
] = None,
|
|
1512
1824
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1513
1825
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -1541,7 +1853,7 @@ class UsersApi:
|
|
|
1541
1853
|
in the spec for a single request.
|
|
1542
1854
|
:type _host_index: int, optional
|
|
1543
1855
|
:return: Returns the result object.
|
|
1544
|
-
"""
|
|
1856
|
+
""" # noqa: E501
|
|
1545
1857
|
|
|
1546
1858
|
_param = self._unlink_account_serialize(
|
|
1547
1859
|
provider=provider,
|
|
@@ -1549,19 +1861,23 @@ class UsersApi:
|
|
|
1549
1861
|
_request_auth=_request_auth,
|
|
1550
1862
|
_content_type=_content_type,
|
|
1551
1863
|
_headers=_headers,
|
|
1552
|
-
_host_index=_host_index
|
|
1864
|
+
_host_index=_host_index
|
|
1553
1865
|
)
|
|
1554
1866
|
|
|
1555
1867
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1556
|
-
|
|
1868
|
+
'204': None,
|
|
1557
1869
|
}
|
|
1558
|
-
response_data = self.api_client.call_api(
|
|
1870
|
+
response_data = self.api_client.call_api(
|
|
1871
|
+
*_param,
|
|
1872
|
+
_request_timeout=_request_timeout
|
|
1873
|
+
)
|
|
1559
1874
|
response_data.read()
|
|
1560
1875
|
return self.api_client.response_deserialize(
|
|
1561
1876
|
response_data=response_data,
|
|
1562
1877
|
response_types_map=_response_types_map,
|
|
1563
1878
|
).data
|
|
1564
1879
|
|
|
1880
|
+
|
|
1565
1881
|
@validate_call
|
|
1566
1882
|
def unlink_account_with_http_info(
|
|
1567
1883
|
self,
|
|
@@ -1570,7 +1886,10 @@ class UsersApi:
|
|
|
1570
1886
|
_request_timeout: Union[
|
|
1571
1887
|
None,
|
|
1572
1888
|
Annotated[StrictFloat, Field(gt=0)],
|
|
1573
|
-
Tuple[
|
|
1889
|
+
Tuple[
|
|
1890
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1891
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1892
|
+
]
|
|
1574
1893
|
] = None,
|
|
1575
1894
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1576
1895
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -1604,7 +1923,7 @@ class UsersApi:
|
|
|
1604
1923
|
in the spec for a single request.
|
|
1605
1924
|
:type _host_index: int, optional
|
|
1606
1925
|
:return: Returns the result object.
|
|
1607
|
-
"""
|
|
1926
|
+
""" # noqa: E501
|
|
1608
1927
|
|
|
1609
1928
|
_param = self._unlink_account_serialize(
|
|
1610
1929
|
provider=provider,
|
|
@@ -1612,19 +1931,23 @@ class UsersApi:
|
|
|
1612
1931
|
_request_auth=_request_auth,
|
|
1613
1932
|
_content_type=_content_type,
|
|
1614
1933
|
_headers=_headers,
|
|
1615
|
-
_host_index=_host_index
|
|
1934
|
+
_host_index=_host_index
|
|
1616
1935
|
)
|
|
1617
1936
|
|
|
1618
1937
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1619
|
-
|
|
1938
|
+
'204': None,
|
|
1620
1939
|
}
|
|
1621
|
-
response_data = self.api_client.call_api(
|
|
1940
|
+
response_data = self.api_client.call_api(
|
|
1941
|
+
*_param,
|
|
1942
|
+
_request_timeout=_request_timeout
|
|
1943
|
+
)
|
|
1622
1944
|
response_data.read()
|
|
1623
1945
|
return self.api_client.response_deserialize(
|
|
1624
1946
|
response_data=response_data,
|
|
1625
1947
|
response_types_map=_response_types_map,
|
|
1626
1948
|
)
|
|
1627
1949
|
|
|
1950
|
+
|
|
1628
1951
|
@validate_call
|
|
1629
1952
|
def unlink_account_without_preload_content(
|
|
1630
1953
|
self,
|
|
@@ -1633,7 +1956,10 @@ class UsersApi:
|
|
|
1633
1956
|
_request_timeout: Union[
|
|
1634
1957
|
None,
|
|
1635
1958
|
Annotated[StrictFloat, Field(gt=0)],
|
|
1636
|
-
Tuple[
|
|
1959
|
+
Tuple[
|
|
1960
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1961
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1962
|
+
]
|
|
1637
1963
|
] = None,
|
|
1638
1964
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1639
1965
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -1667,7 +1993,7 @@ class UsersApi:
|
|
|
1667
1993
|
in the spec for a single request.
|
|
1668
1994
|
:type _host_index: int, optional
|
|
1669
1995
|
:return: Returns the result object.
|
|
1670
|
-
"""
|
|
1996
|
+
""" # noqa: E501
|
|
1671
1997
|
|
|
1672
1998
|
_param = self._unlink_account_serialize(
|
|
1673
1999
|
provider=provider,
|
|
@@ -1675,15 +2001,19 @@ class UsersApi:
|
|
|
1675
2001
|
_request_auth=_request_auth,
|
|
1676
2002
|
_content_type=_content_type,
|
|
1677
2003
|
_headers=_headers,
|
|
1678
|
-
_host_index=_host_index
|
|
2004
|
+
_host_index=_host_index
|
|
1679
2005
|
)
|
|
1680
2006
|
|
|
1681
2007
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1682
|
-
|
|
2008
|
+
'204': None,
|
|
1683
2009
|
}
|
|
1684
|
-
response_data = self.api_client.call_api(
|
|
2010
|
+
response_data = self.api_client.call_api(
|
|
2011
|
+
*_param,
|
|
2012
|
+
_request_timeout=_request_timeout
|
|
2013
|
+
)
|
|
1685
2014
|
return response_data.response
|
|
1686
2015
|
|
|
2016
|
+
|
|
1687
2017
|
def _unlink_account_serialize(
|
|
1688
2018
|
self,
|
|
1689
2019
|
provider,
|
|
@@ -1693,33 +2023,43 @@ class UsersApi:
|
|
|
1693
2023
|
_headers,
|
|
1694
2024
|
_host_index,
|
|
1695
2025
|
) -> RequestSerialized:
|
|
2026
|
+
|
|
1696
2027
|
_host = None
|
|
1697
2028
|
|
|
1698
|
-
_collection_formats: Dict[str, str] = {
|
|
2029
|
+
_collection_formats: Dict[str, str] = {
|
|
2030
|
+
}
|
|
1699
2031
|
|
|
1700
2032
|
_path_params: Dict[str, str] = {}
|
|
1701
2033
|
_query_params: List[Tuple[str, str]] = []
|
|
1702
2034
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1703
2035
|
_form_params: List[Tuple[str, str]] = []
|
|
1704
|
-
_files: Dict[
|
|
2036
|
+
_files: Dict[
|
|
2037
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2038
|
+
] = {}
|
|
1705
2039
|
_body_params: Optional[bytes] = None
|
|
1706
2040
|
|
|
1707
2041
|
# process the path parameters
|
|
1708
2042
|
if provider is not None:
|
|
1709
|
-
_path_params[
|
|
2043
|
+
_path_params['provider'] = provider
|
|
1710
2044
|
if provider_user_id is not None:
|
|
1711
|
-
_path_params[
|
|
2045
|
+
_path_params['providerUserId'] = provider_user_id
|
|
1712
2046
|
# process the query parameters
|
|
1713
2047
|
# process the header parameters
|
|
1714
2048
|
# process the form parameters
|
|
1715
2049
|
# process the body parameter
|
|
1716
2050
|
|
|
2051
|
+
|
|
2052
|
+
|
|
2053
|
+
|
|
1717
2054
|
# authentication setting
|
|
1718
|
-
_auth_settings: List[str] = [
|
|
2055
|
+
_auth_settings: List[str] = [
|
|
2056
|
+
'bearer',
|
|
2057
|
+
'oauth2'
|
|
2058
|
+
]
|
|
1719
2059
|
|
|
1720
2060
|
return self.api_client.param_serialize(
|
|
1721
|
-
method=
|
|
1722
|
-
resource_path=
|
|
2061
|
+
method='DELETE',
|
|
2062
|
+
resource_path='/users/linked-accounts/{provider}/{providerUserId}',
|
|
1723
2063
|
path_params=_path_params,
|
|
1724
2064
|
query_params=_query_params,
|
|
1725
2065
|
header_params=_header_params,
|
|
@@ -1729,5 +2069,7 @@ class UsersApi:
|
|
|
1729
2069
|
auth_settings=_auth_settings,
|
|
1730
2070
|
collection_formats=_collection_formats,
|
|
1731
2071
|
_host=_host,
|
|
1732
|
-
_request_auth=_request_auth
|
|
2072
|
+
_request_auth=_request_auth
|
|
1733
2073
|
)
|
|
2074
|
+
|
|
2075
|
+
|