platform-api-python-client 4.10.0__py3-none-any.whl → 4.13.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.
@@ -19,8 +19,6 @@ from typing_extensions import Annotated
19
19
  from datetime import date
20
20
  from pydantic import StrictBool, StrictInt, StrictStr
21
21
  from typing import Any, Optional
22
- from platform_api_python_client.models.api_key_request import APIKeyRequest
23
- from platform_api_python_client.models.api_key_response import APIKeyResponse
24
22
  from platform_api_python_client.models.create_c_serve_v2_deployment_request import CreateCServeV2DeploymentRequest
25
23
  from platform_api_python_client.models.create_c_serve_v2_deployment_response import CreateCServeV2DeploymentResponse
26
24
  from platform_api_python_client.models.create_c_serve_v3_deployment_request import CreateCServeV3DeploymentRequest
@@ -51,7 +49,6 @@ from platform_api_python_client.models.get_inference_deployment_response import
51
49
  from platform_api_python_client.models.get_inference_v3_deployment_response import GetInferenceV3DeploymentResponse
52
50
  from platform_api_python_client.models.get_job_deployment_response import GetJobDeploymentResponse
53
51
  from platform_api_python_client.models.invite_user_request import InviteUserRequest
54
- from platform_api_python_client.models.list_api_key_response import ListAPIKeyResponse
55
52
  from platform_api_python_client.models.list_c_serve_recipe_response import ListCServeRecipeResponse
56
53
  from platform_api_python_client.models.list_cluster_capacity_response import ListClusterCapacityResponse
57
54
  from platform_api_python_client.models.list_daily_bill_response import ListDailyBillResponse
@@ -86,280 +83,6 @@ class EXTERNALApi:
86
83
  self.api_client = api_client
87
84
 
88
85
 
89
- @validate_call
90
- def create_api_key_credentials_api_key_post(
91
- self,
92
- api_key_request: APIKeyRequest,
93
- _request_timeout: Union[
94
- None,
95
- Annotated[StrictFloat, Field(gt=0)],
96
- Tuple[
97
- Annotated[StrictFloat, Field(gt=0)],
98
- Annotated[StrictFloat, Field(gt=0)]
99
- ]
100
- ] = None,
101
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
102
- _content_type: Optional[StrictStr] = None,
103
- _headers: Optional[Dict[StrictStr, Any]] = None,
104
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
105
- ) -> APIKeyResponse:
106
- """Create Api Key
107
-
108
-
109
- :param api_key_request: (required)
110
- :type api_key_request: APIKeyRequest
111
- :param _request_timeout: timeout setting for this request. If one
112
- number provided, it will be total request
113
- timeout. It can also be a pair (tuple) of
114
- (connection, read) timeouts.
115
- :type _request_timeout: int, tuple(int, int), optional
116
- :param _request_auth: set to override the auth_settings for an a single
117
- request; this effectively ignores the
118
- authentication in the spec for a single request.
119
- :type _request_auth: dict, optional
120
- :param _content_type: force content-type for the request.
121
- :type _content_type: str, Optional
122
- :param _headers: set to override the headers for a single
123
- request; this effectively ignores the headers
124
- in the spec for a single request.
125
- :type _headers: dict, optional
126
- :param _host_index: set to override the host_index for a single
127
- request; this effectively ignores the host_index
128
- in the spec for a single request.
129
- :type _host_index: int, optional
130
- :return: Returns the result object.
131
- """ # noqa: E501
132
-
133
- _param = self._create_api_key_credentials_api_key_post_serialize(
134
- api_key_request=api_key_request,
135
- _request_auth=_request_auth,
136
- _content_type=_content_type,
137
- _headers=_headers,
138
- _host_index=_host_index
139
- )
140
-
141
- _response_types_map: Dict[str, Optional[str]] = {
142
- '200': "APIKeyResponse",
143
- '422': "HTTPValidationError",
144
- }
145
- response_data = self.api_client.call_api(
146
- *_param,
147
- _request_timeout=_request_timeout
148
- )
149
- response_data.read()
150
- return self.api_client.response_deserialize(
151
- response_data=response_data,
152
- response_types_map=_response_types_map,
153
- ).data
154
-
155
-
156
- @validate_call
157
- def create_api_key_credentials_api_key_post_with_http_info(
158
- self,
159
- api_key_request: APIKeyRequest,
160
- _request_timeout: Union[
161
- None,
162
- Annotated[StrictFloat, Field(gt=0)],
163
- Tuple[
164
- Annotated[StrictFloat, Field(gt=0)],
165
- Annotated[StrictFloat, Field(gt=0)]
166
- ]
167
- ] = None,
168
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
169
- _content_type: Optional[StrictStr] = None,
170
- _headers: Optional[Dict[StrictStr, Any]] = None,
171
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
172
- ) -> ApiResponse[APIKeyResponse]:
173
- """Create Api Key
174
-
175
-
176
- :param api_key_request: (required)
177
- :type api_key_request: APIKeyRequest
178
- :param _request_timeout: timeout setting for this request. If one
179
- number provided, it will be total request
180
- timeout. It can also be a pair (tuple) of
181
- (connection, read) timeouts.
182
- :type _request_timeout: int, tuple(int, int), optional
183
- :param _request_auth: set to override the auth_settings for an a single
184
- request; this effectively ignores the
185
- authentication in the spec for a single request.
186
- :type _request_auth: dict, optional
187
- :param _content_type: force content-type for the request.
188
- :type _content_type: str, Optional
189
- :param _headers: set to override the headers for a single
190
- request; this effectively ignores the headers
191
- in the spec for a single request.
192
- :type _headers: dict, optional
193
- :param _host_index: set to override the host_index for a single
194
- request; this effectively ignores the host_index
195
- in the spec for a single request.
196
- :type _host_index: int, optional
197
- :return: Returns the result object.
198
- """ # noqa: E501
199
-
200
- _param = self._create_api_key_credentials_api_key_post_serialize(
201
- api_key_request=api_key_request,
202
- _request_auth=_request_auth,
203
- _content_type=_content_type,
204
- _headers=_headers,
205
- _host_index=_host_index
206
- )
207
-
208
- _response_types_map: Dict[str, Optional[str]] = {
209
- '200': "APIKeyResponse",
210
- '422': "HTTPValidationError",
211
- }
212
- response_data = self.api_client.call_api(
213
- *_param,
214
- _request_timeout=_request_timeout
215
- )
216
- response_data.read()
217
- return self.api_client.response_deserialize(
218
- response_data=response_data,
219
- response_types_map=_response_types_map,
220
- )
221
-
222
-
223
- @validate_call
224
- def create_api_key_credentials_api_key_post_without_preload_content(
225
- self,
226
- api_key_request: APIKeyRequest,
227
- _request_timeout: Union[
228
- None,
229
- Annotated[StrictFloat, Field(gt=0)],
230
- Tuple[
231
- Annotated[StrictFloat, Field(gt=0)],
232
- Annotated[StrictFloat, Field(gt=0)]
233
- ]
234
- ] = None,
235
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
236
- _content_type: Optional[StrictStr] = None,
237
- _headers: Optional[Dict[StrictStr, Any]] = None,
238
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
239
- ) -> RESTResponseType:
240
- """Create Api Key
241
-
242
-
243
- :param api_key_request: (required)
244
- :type api_key_request: APIKeyRequest
245
- :param _request_timeout: timeout setting for this request. If one
246
- number provided, it will be total request
247
- timeout. It can also be a pair (tuple) of
248
- (connection, read) timeouts.
249
- :type _request_timeout: int, tuple(int, int), optional
250
- :param _request_auth: set to override the auth_settings for an a single
251
- request; this effectively ignores the
252
- authentication in the spec for a single request.
253
- :type _request_auth: dict, optional
254
- :param _content_type: force content-type for the request.
255
- :type _content_type: str, Optional
256
- :param _headers: set to override the headers for a single
257
- request; this effectively ignores the headers
258
- in the spec for a single request.
259
- :type _headers: dict, optional
260
- :param _host_index: set to override the host_index for a single
261
- request; this effectively ignores the host_index
262
- in the spec for a single request.
263
- :type _host_index: int, optional
264
- :return: Returns the result object.
265
- """ # noqa: E501
266
-
267
- _param = self._create_api_key_credentials_api_key_post_serialize(
268
- api_key_request=api_key_request,
269
- _request_auth=_request_auth,
270
- _content_type=_content_type,
271
- _headers=_headers,
272
- _host_index=_host_index
273
- )
274
-
275
- _response_types_map: Dict[str, Optional[str]] = {
276
- '200': "APIKeyResponse",
277
- '422': "HTTPValidationError",
278
- }
279
- response_data = self.api_client.call_api(
280
- *_param,
281
- _request_timeout=_request_timeout
282
- )
283
- return response_data.response
284
-
285
-
286
- def _create_api_key_credentials_api_key_post_serialize(
287
- self,
288
- api_key_request,
289
- _request_auth,
290
- _content_type,
291
- _headers,
292
- _host_index,
293
- ) -> RequestSerialized:
294
-
295
- _host = None
296
-
297
- _collection_formats: Dict[str, str] = {
298
- }
299
-
300
- _path_params: Dict[str, str] = {}
301
- _query_params: List[Tuple[str, str]] = []
302
- _header_params: Dict[str, Optional[str]] = _headers or {}
303
- _form_params: List[Tuple[str, str]] = []
304
- _files: Dict[
305
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
306
- ] = {}
307
- _body_params: Optional[bytes] = None
308
-
309
- # process the path parameters
310
- # process the query parameters
311
- # process the header parameters
312
- # process the form parameters
313
- # process the body parameter
314
- if api_key_request is not None:
315
- _body_params = api_key_request
316
-
317
-
318
- # set the HTTP header `Accept`
319
- if 'Accept' not in _header_params:
320
- _header_params['Accept'] = self.api_client.select_header_accept(
321
- [
322
- 'application/json'
323
- ]
324
- )
325
-
326
- # set the HTTP header `Content-Type`
327
- if _content_type:
328
- _header_params['Content-Type'] = _content_type
329
- else:
330
- _default_content_type = (
331
- self.api_client.select_header_content_type(
332
- [
333
- 'application/json'
334
- ]
335
- )
336
- )
337
- if _default_content_type is not None:
338
- _header_params['Content-Type'] = _default_content_type
339
-
340
- # authentication setting
341
- _auth_settings: List[str] = [
342
- 'HTTPBearer'
343
- ]
344
-
345
- return self.api_client.param_serialize(
346
- method='POST',
347
- resource_path='/credentials/api-key',
348
- path_params=_path_params,
349
- query_params=_query_params,
350
- header_params=_header_params,
351
- body=_body_params,
352
- post_params=_form_params,
353
- files=_files,
354
- auth_settings=_auth_settings,
355
- collection_formats=_collection_formats,
356
- _host=_host,
357
- _request_auth=_request_auth
358
- )
359
-
360
-
361
-
362
-
363
86
  @validate_call
364
87
  def create_compute_deployment_deployments_compute_post(
365
88
  self,
@@ -2279,9 +2002,9 @@ class EXTERNALApi:
2279
2002
 
2280
2003
 
2281
2004
  @validate_call
2282
- def delete_api_key_credentials_api_key_id_delete(
2005
+ def delete_user_vault_item_endpoint_user_vault_delete(
2283
2006
  self,
2284
- id: StrictStr,
2007
+ user_vault_item: UserVaultItem,
2285
2008
  _request_timeout: Union[
2286
2009
  None,
2287
2010
  Annotated[StrictFloat, Field(gt=0)],
@@ -2295,11 +2018,12 @@ class EXTERNALApi:
2295
2018
  _headers: Optional[Dict[StrictStr, Any]] = None,
2296
2019
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2297
2020
  ) -> object:
2298
- """Delete Api Key
2021
+ """Delete User Vault Item Endpoint
2299
2022
 
2023
+ Delete an item of a specific type for the user.
2300
2024
 
2301
- :param id: (required)
2302
- :type id: str
2025
+ :param user_vault_item: (required)
2026
+ :type user_vault_item: UserVaultItem
2303
2027
  :param _request_timeout: timeout setting for this request. If one
2304
2028
  number provided, it will be total request
2305
2029
  timeout. It can also be a pair (tuple) of
@@ -2322,8 +2046,8 @@ class EXTERNALApi:
2322
2046
  :return: Returns the result object.
2323
2047
  """ # noqa: E501
2324
2048
 
2325
- _param = self._delete_api_key_credentials_api_key_id_delete_serialize(
2326
- id=id,
2049
+ _param = self._delete_user_vault_item_endpoint_user_vault_delete_serialize(
2050
+ user_vault_item=user_vault_item,
2327
2051
  _request_auth=_request_auth,
2328
2052
  _content_type=_content_type,
2329
2053
  _headers=_headers,
@@ -2346,9 +2070,9 @@ class EXTERNALApi:
2346
2070
 
2347
2071
 
2348
2072
  @validate_call
2349
- def delete_api_key_credentials_api_key_id_delete_with_http_info(
2073
+ def delete_user_vault_item_endpoint_user_vault_delete_with_http_info(
2350
2074
  self,
2351
- id: StrictStr,
2075
+ user_vault_item: UserVaultItem,
2352
2076
  _request_timeout: Union[
2353
2077
  None,
2354
2078
  Annotated[StrictFloat, Field(gt=0)],
@@ -2362,271 +2086,9 @@ class EXTERNALApi:
2362
2086
  _headers: Optional[Dict[StrictStr, Any]] = None,
2363
2087
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2364
2088
  ) -> ApiResponse[object]:
2365
- """Delete Api Key
2089
+ """Delete User Vault Item Endpoint
2366
2090
 
2367
-
2368
- :param id: (required)
2369
- :type id: str
2370
- :param _request_timeout: timeout setting for this request. If one
2371
- number provided, it will be total request
2372
- timeout. It can also be a pair (tuple) of
2373
- (connection, read) timeouts.
2374
- :type _request_timeout: int, tuple(int, int), optional
2375
- :param _request_auth: set to override the auth_settings for an a single
2376
- request; this effectively ignores the
2377
- authentication in the spec for a single request.
2378
- :type _request_auth: dict, optional
2379
- :param _content_type: force content-type for the request.
2380
- :type _content_type: str, Optional
2381
- :param _headers: set to override the headers for a single
2382
- request; this effectively ignores the headers
2383
- in the spec for a single request.
2384
- :type _headers: dict, optional
2385
- :param _host_index: set to override the host_index for a single
2386
- request; this effectively ignores the host_index
2387
- in the spec for a single request.
2388
- :type _host_index: int, optional
2389
- :return: Returns the result object.
2390
- """ # noqa: E501
2391
-
2392
- _param = self._delete_api_key_credentials_api_key_id_delete_serialize(
2393
- id=id,
2394
- _request_auth=_request_auth,
2395
- _content_type=_content_type,
2396
- _headers=_headers,
2397
- _host_index=_host_index
2398
- )
2399
-
2400
- _response_types_map: Dict[str, Optional[str]] = {
2401
- '200': "object",
2402
- '422': "HTTPValidationError",
2403
- }
2404
- response_data = self.api_client.call_api(
2405
- *_param,
2406
- _request_timeout=_request_timeout
2407
- )
2408
- response_data.read()
2409
- return self.api_client.response_deserialize(
2410
- response_data=response_data,
2411
- response_types_map=_response_types_map,
2412
- )
2413
-
2414
-
2415
- @validate_call
2416
- def delete_api_key_credentials_api_key_id_delete_without_preload_content(
2417
- self,
2418
- id: StrictStr,
2419
- _request_timeout: Union[
2420
- None,
2421
- Annotated[StrictFloat, Field(gt=0)],
2422
- Tuple[
2423
- Annotated[StrictFloat, Field(gt=0)],
2424
- Annotated[StrictFloat, Field(gt=0)]
2425
- ]
2426
- ] = None,
2427
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
2428
- _content_type: Optional[StrictStr] = None,
2429
- _headers: Optional[Dict[StrictStr, Any]] = None,
2430
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2431
- ) -> RESTResponseType:
2432
- """Delete Api Key
2433
-
2434
-
2435
- :param id: (required)
2436
- :type id: str
2437
- :param _request_timeout: timeout setting for this request. If one
2438
- number provided, it will be total request
2439
- timeout. It can also be a pair (tuple) of
2440
- (connection, read) timeouts.
2441
- :type _request_timeout: int, tuple(int, int), optional
2442
- :param _request_auth: set to override the auth_settings for an a single
2443
- request; this effectively ignores the
2444
- authentication in the spec for a single request.
2445
- :type _request_auth: dict, optional
2446
- :param _content_type: force content-type for the request.
2447
- :type _content_type: str, Optional
2448
- :param _headers: set to override the headers for a single
2449
- request; this effectively ignores the headers
2450
- in the spec for a single request.
2451
- :type _headers: dict, optional
2452
- :param _host_index: set to override the host_index for a single
2453
- request; this effectively ignores the host_index
2454
- in the spec for a single request.
2455
- :type _host_index: int, optional
2456
- :return: Returns the result object.
2457
- """ # noqa: E501
2458
-
2459
- _param = self._delete_api_key_credentials_api_key_id_delete_serialize(
2460
- id=id,
2461
- _request_auth=_request_auth,
2462
- _content_type=_content_type,
2463
- _headers=_headers,
2464
- _host_index=_host_index
2465
- )
2466
-
2467
- _response_types_map: Dict[str, Optional[str]] = {
2468
- '200': "object",
2469
- '422': "HTTPValidationError",
2470
- }
2471
- response_data = self.api_client.call_api(
2472
- *_param,
2473
- _request_timeout=_request_timeout
2474
- )
2475
- return response_data.response
2476
-
2477
-
2478
- def _delete_api_key_credentials_api_key_id_delete_serialize(
2479
- self,
2480
- id,
2481
- _request_auth,
2482
- _content_type,
2483
- _headers,
2484
- _host_index,
2485
- ) -> RequestSerialized:
2486
-
2487
- _host = None
2488
-
2489
- _collection_formats: Dict[str, str] = {
2490
- }
2491
-
2492
- _path_params: Dict[str, str] = {}
2493
- _query_params: List[Tuple[str, str]] = []
2494
- _header_params: Dict[str, Optional[str]] = _headers or {}
2495
- _form_params: List[Tuple[str, str]] = []
2496
- _files: Dict[
2497
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2498
- ] = {}
2499
- _body_params: Optional[bytes] = None
2500
-
2501
- # process the path parameters
2502
- if id is not None:
2503
- _path_params['id'] = id
2504
- # process the query parameters
2505
- # process the header parameters
2506
- # process the form parameters
2507
- # process the body parameter
2508
-
2509
-
2510
- # set the HTTP header `Accept`
2511
- if 'Accept' not in _header_params:
2512
- _header_params['Accept'] = self.api_client.select_header_accept(
2513
- [
2514
- 'application/json'
2515
- ]
2516
- )
2517
-
2518
-
2519
- # authentication setting
2520
- _auth_settings: List[str] = [
2521
- 'HTTPBearer'
2522
- ]
2523
-
2524
- return self.api_client.param_serialize(
2525
- method='DELETE',
2526
- resource_path='/credentials/api-key/{id}',
2527
- path_params=_path_params,
2528
- query_params=_query_params,
2529
- header_params=_header_params,
2530
- body=_body_params,
2531
- post_params=_form_params,
2532
- files=_files,
2533
- auth_settings=_auth_settings,
2534
- collection_formats=_collection_formats,
2535
- _host=_host,
2536
- _request_auth=_request_auth
2537
- )
2538
-
2539
-
2540
-
2541
-
2542
- @validate_call
2543
- def delete_user_vault_item_endpoint_user_vault_delete(
2544
- self,
2545
- user_vault_item: UserVaultItem,
2546
- _request_timeout: Union[
2547
- None,
2548
- Annotated[StrictFloat, Field(gt=0)],
2549
- Tuple[
2550
- Annotated[StrictFloat, Field(gt=0)],
2551
- Annotated[StrictFloat, Field(gt=0)]
2552
- ]
2553
- ] = None,
2554
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
2555
- _content_type: Optional[StrictStr] = None,
2556
- _headers: Optional[Dict[StrictStr, Any]] = None,
2557
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2558
- ) -> object:
2559
- """Delete User Vault Item Endpoint
2560
-
2561
- Delete an item of a specific type for the user.
2562
-
2563
- :param user_vault_item: (required)
2564
- :type user_vault_item: UserVaultItem
2565
- :param _request_timeout: timeout setting for this request. If one
2566
- number provided, it will be total request
2567
- timeout. It can also be a pair (tuple) of
2568
- (connection, read) timeouts.
2569
- :type _request_timeout: int, tuple(int, int), optional
2570
- :param _request_auth: set to override the auth_settings for an a single
2571
- request; this effectively ignores the
2572
- authentication in the spec for a single request.
2573
- :type _request_auth: dict, optional
2574
- :param _content_type: force content-type for the request.
2575
- :type _content_type: str, Optional
2576
- :param _headers: set to override the headers for a single
2577
- request; this effectively ignores the headers
2578
- in the spec for a single request.
2579
- :type _headers: dict, optional
2580
- :param _host_index: set to override the host_index for a single
2581
- request; this effectively ignores the host_index
2582
- in the spec for a single request.
2583
- :type _host_index: int, optional
2584
- :return: Returns the result object.
2585
- """ # noqa: E501
2586
-
2587
- _param = self._delete_user_vault_item_endpoint_user_vault_delete_serialize(
2588
- user_vault_item=user_vault_item,
2589
- _request_auth=_request_auth,
2590
- _content_type=_content_type,
2591
- _headers=_headers,
2592
- _host_index=_host_index
2593
- )
2594
-
2595
- _response_types_map: Dict[str, Optional[str]] = {
2596
- '200': "object",
2597
- '422': "HTTPValidationError",
2598
- }
2599
- response_data = self.api_client.call_api(
2600
- *_param,
2601
- _request_timeout=_request_timeout
2602
- )
2603
- response_data.read()
2604
- return self.api_client.response_deserialize(
2605
- response_data=response_data,
2606
- response_types_map=_response_types_map,
2607
- ).data
2608
-
2609
-
2610
- @validate_call
2611
- def delete_user_vault_item_endpoint_user_vault_delete_with_http_info(
2612
- self,
2613
- user_vault_item: UserVaultItem,
2614
- _request_timeout: Union[
2615
- None,
2616
- Annotated[StrictFloat, Field(gt=0)],
2617
- Tuple[
2618
- Annotated[StrictFloat, Field(gt=0)],
2619
- Annotated[StrictFloat, Field(gt=0)]
2620
- ]
2621
- ] = None,
2622
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
2623
- _content_type: Optional[StrictStr] = None,
2624
- _headers: Optional[Dict[StrictStr, Any]] = None,
2625
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2626
- ) -> ApiResponse[object]:
2627
- """Delete User Vault Item Endpoint
2628
-
2629
- Delete an item of a specific type for the user.
2091
+ Delete an item of a specific type for the user.
2630
2092
 
2631
2093
  :param user_vault_item: (required)
2632
2094
  :type user_vault_item: UserVaultItem
@@ -3373,249 +2835,6 @@ class EXTERNALApi:
3373
2835
 
3374
2836
 
3375
2837
 
3376
- @validate_call
3377
- def get_api_keys_credentials_api_key_get(
3378
- self,
3379
- _request_timeout: Union[
3380
- None,
3381
- Annotated[StrictFloat, Field(gt=0)],
3382
- Tuple[
3383
- Annotated[StrictFloat, Field(gt=0)],
3384
- Annotated[StrictFloat, Field(gt=0)]
3385
- ]
3386
- ] = None,
3387
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
3388
- _content_type: Optional[StrictStr] = None,
3389
- _headers: Optional[Dict[StrictStr, Any]] = None,
3390
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3391
- ) -> ListAPIKeyResponse:
3392
- """Get Api Keys
3393
-
3394
-
3395
- :param _request_timeout: timeout setting for this request. If one
3396
- number provided, it will be total request
3397
- timeout. It can also be a pair (tuple) of
3398
- (connection, read) timeouts.
3399
- :type _request_timeout: int, tuple(int, int), optional
3400
- :param _request_auth: set to override the auth_settings for an a single
3401
- request; this effectively ignores the
3402
- authentication in the spec for a single request.
3403
- :type _request_auth: dict, optional
3404
- :param _content_type: force content-type for the request.
3405
- :type _content_type: str, Optional
3406
- :param _headers: set to override the headers for a single
3407
- request; this effectively ignores the headers
3408
- in the spec for a single request.
3409
- :type _headers: dict, optional
3410
- :param _host_index: set to override the host_index for a single
3411
- request; this effectively ignores the host_index
3412
- in the spec for a single request.
3413
- :type _host_index: int, optional
3414
- :return: Returns the result object.
3415
- """ # noqa: E501
3416
-
3417
- _param = self._get_api_keys_credentials_api_key_get_serialize(
3418
- _request_auth=_request_auth,
3419
- _content_type=_content_type,
3420
- _headers=_headers,
3421
- _host_index=_host_index
3422
- )
3423
-
3424
- _response_types_map: Dict[str, Optional[str]] = {
3425
- '200': "ListAPIKeyResponse",
3426
- }
3427
- response_data = self.api_client.call_api(
3428
- *_param,
3429
- _request_timeout=_request_timeout
3430
- )
3431
- response_data.read()
3432
- return self.api_client.response_deserialize(
3433
- response_data=response_data,
3434
- response_types_map=_response_types_map,
3435
- ).data
3436
-
3437
-
3438
- @validate_call
3439
- def get_api_keys_credentials_api_key_get_with_http_info(
3440
- self,
3441
- _request_timeout: Union[
3442
- None,
3443
- Annotated[StrictFloat, Field(gt=0)],
3444
- Tuple[
3445
- Annotated[StrictFloat, Field(gt=0)],
3446
- Annotated[StrictFloat, Field(gt=0)]
3447
- ]
3448
- ] = None,
3449
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
3450
- _content_type: Optional[StrictStr] = None,
3451
- _headers: Optional[Dict[StrictStr, Any]] = None,
3452
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3453
- ) -> ApiResponse[ListAPIKeyResponse]:
3454
- """Get Api Keys
3455
-
3456
-
3457
- :param _request_timeout: timeout setting for this request. If one
3458
- number provided, it will be total request
3459
- timeout. It can also be a pair (tuple) of
3460
- (connection, read) timeouts.
3461
- :type _request_timeout: int, tuple(int, int), optional
3462
- :param _request_auth: set to override the auth_settings for an a single
3463
- request; this effectively ignores the
3464
- authentication in the spec for a single request.
3465
- :type _request_auth: dict, optional
3466
- :param _content_type: force content-type for the request.
3467
- :type _content_type: str, Optional
3468
- :param _headers: set to override the headers for a single
3469
- request; this effectively ignores the headers
3470
- in the spec for a single request.
3471
- :type _headers: dict, optional
3472
- :param _host_index: set to override the host_index for a single
3473
- request; this effectively ignores the host_index
3474
- in the spec for a single request.
3475
- :type _host_index: int, optional
3476
- :return: Returns the result object.
3477
- """ # noqa: E501
3478
-
3479
- _param = self._get_api_keys_credentials_api_key_get_serialize(
3480
- _request_auth=_request_auth,
3481
- _content_type=_content_type,
3482
- _headers=_headers,
3483
- _host_index=_host_index
3484
- )
3485
-
3486
- _response_types_map: Dict[str, Optional[str]] = {
3487
- '200': "ListAPIKeyResponse",
3488
- }
3489
- response_data = self.api_client.call_api(
3490
- *_param,
3491
- _request_timeout=_request_timeout
3492
- )
3493
- response_data.read()
3494
- return self.api_client.response_deserialize(
3495
- response_data=response_data,
3496
- response_types_map=_response_types_map,
3497
- )
3498
-
3499
-
3500
- @validate_call
3501
- def get_api_keys_credentials_api_key_get_without_preload_content(
3502
- self,
3503
- _request_timeout: Union[
3504
- None,
3505
- Annotated[StrictFloat, Field(gt=0)],
3506
- Tuple[
3507
- Annotated[StrictFloat, Field(gt=0)],
3508
- Annotated[StrictFloat, Field(gt=0)]
3509
- ]
3510
- ] = None,
3511
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
3512
- _content_type: Optional[StrictStr] = None,
3513
- _headers: Optional[Dict[StrictStr, Any]] = None,
3514
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3515
- ) -> RESTResponseType:
3516
- """Get Api Keys
3517
-
3518
-
3519
- :param _request_timeout: timeout setting for this request. If one
3520
- number provided, it will be total request
3521
- timeout. It can also be a pair (tuple) of
3522
- (connection, read) timeouts.
3523
- :type _request_timeout: int, tuple(int, int), optional
3524
- :param _request_auth: set to override the auth_settings for an a single
3525
- request; this effectively ignores the
3526
- authentication in the spec for a single request.
3527
- :type _request_auth: dict, optional
3528
- :param _content_type: force content-type for the request.
3529
- :type _content_type: str, Optional
3530
- :param _headers: set to override the headers for a single
3531
- request; this effectively ignores the headers
3532
- in the spec for a single request.
3533
- :type _headers: dict, optional
3534
- :param _host_index: set to override the host_index for a single
3535
- request; this effectively ignores the host_index
3536
- in the spec for a single request.
3537
- :type _host_index: int, optional
3538
- :return: Returns the result object.
3539
- """ # noqa: E501
3540
-
3541
- _param = self._get_api_keys_credentials_api_key_get_serialize(
3542
- _request_auth=_request_auth,
3543
- _content_type=_content_type,
3544
- _headers=_headers,
3545
- _host_index=_host_index
3546
- )
3547
-
3548
- _response_types_map: Dict[str, Optional[str]] = {
3549
- '200': "ListAPIKeyResponse",
3550
- }
3551
- response_data = self.api_client.call_api(
3552
- *_param,
3553
- _request_timeout=_request_timeout
3554
- )
3555
- return response_data.response
3556
-
3557
-
3558
- def _get_api_keys_credentials_api_key_get_serialize(
3559
- self,
3560
- _request_auth,
3561
- _content_type,
3562
- _headers,
3563
- _host_index,
3564
- ) -> RequestSerialized:
3565
-
3566
- _host = None
3567
-
3568
- _collection_formats: Dict[str, str] = {
3569
- }
3570
-
3571
- _path_params: Dict[str, str] = {}
3572
- _query_params: List[Tuple[str, str]] = []
3573
- _header_params: Dict[str, Optional[str]] = _headers or {}
3574
- _form_params: List[Tuple[str, str]] = []
3575
- _files: Dict[
3576
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
3577
- ] = {}
3578
- _body_params: Optional[bytes] = None
3579
-
3580
- # process the path parameters
3581
- # process the query parameters
3582
- # process the header parameters
3583
- # process the form parameters
3584
- # process the body parameter
3585
-
3586
-
3587
- # set the HTTP header `Accept`
3588
- if 'Accept' not in _header_params:
3589
- _header_params['Accept'] = self.api_client.select_header_accept(
3590
- [
3591
- 'application/json'
3592
- ]
3593
- )
3594
-
3595
-
3596
- # authentication setting
3597
- _auth_settings: List[str] = [
3598
- 'HTTPBearer'
3599
- ]
3600
-
3601
- return self.api_client.param_serialize(
3602
- method='GET',
3603
- resource_path='/credentials/api-key',
3604
- path_params=_path_params,
3605
- query_params=_query_params,
3606
- header_params=_header_params,
3607
- body=_body_params,
3608
- post_params=_form_params,
3609
- files=_files,
3610
- auth_settings=_auth_settings,
3611
- collection_formats=_collection_formats,
3612
- _host=_host,
3613
- _request_auth=_request_auth
3614
- )
3615
-
3616
-
3617
-
3618
-
3619
2838
  @validate_call
3620
2839
  def get_clusters_clusters_get(
3621
2840
  self,