qi-compute-api-client 0.32.0__py3-none-any.whl → 0.35.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of qi-compute-api-client might be problematic. Click here for more details.
- compute_api_client/__init__.py +20 -1
- compute_api_client/api/__init__.py +1 -0
- compute_api_client/api/algorithms_api.py +76 -75
- compute_api_client/api/backend_api.py +78 -75
- compute_api_client/api/backend_types_api.py +95 -75
- compute_api_client/api/batch_jobs_api.py +77 -74
- compute_api_client/api/commits_api.py +78 -75
- compute_api_client/api/files_api.py +78 -75
- compute_api_client/api/final_results_api.py +1 -1
- compute_api_client/api/health_api.py +290 -0
- compute_api_client/api/jobs_api.py +78 -75
- compute_api_client/api/languages_api.py +76 -73
- compute_api_client/api/members_api.py +78 -75
- compute_api_client/api/metadata_api.py +79 -8
- compute_api_client/api/permissions_api.py +146 -142
- compute_api_client/api/projects_api.py +76 -75
- compute_api_client/api/reservations_api.py +78 -75
- compute_api_client/api/results_api.py +151 -80
- compute_api_client/api/teams_api.py +78 -75
- compute_api_client/api/transactions_api.py +78 -75
- compute_api_client/api/users_api.py +78 -75
- compute_api_client/api_client.py +1 -1
- compute_api_client/configuration.py +1 -1
- compute_api_client/docs/AlgorithmsApi.md +12 -12
- compute_api_client/docs/BackendApi.md +12 -12
- compute_api_client/docs/BackendType.md +3 -1
- compute_api_client/docs/BackendTypesApi.md +14 -12
- compute_api_client/docs/BatchJobsApi.md +12 -12
- compute_api_client/docs/CommitsApi.md +12 -12
- compute_api_client/docs/FilesApi.md +12 -12
- compute_api_client/docs/HealthApi.md +71 -0
- compute_api_client/docs/JobsApi.md +12 -12
- compute_api_client/docs/LanguagesApi.md +12 -12
- compute_api_client/docs/MembersApi.md +12 -12
- compute_api_client/docs/MetadataApi.md +12 -4
- compute_api_client/docs/PageAlgorithm.md +32 -0
- compute_api_client/docs/PageBackend.md +32 -0
- compute_api_client/docs/PageBackendType.md +32 -0
- compute_api_client/docs/PageBatchJob.md +32 -0
- compute_api_client/docs/PageCommit.md +32 -0
- compute_api_client/docs/PageFile.md +32 -0
- compute_api_client/docs/PageJob.md +32 -0
- compute_api_client/docs/PageLanguage.md +32 -0
- compute_api_client/docs/PageMember.md +32 -0
- compute_api_client/docs/PageMetadata.md +32 -0
- compute_api_client/docs/PagePermission.md +32 -0
- compute_api_client/docs/PagePermissionGroup.md +32 -0
- compute_api_client/docs/PageProject.md +32 -0
- compute_api_client/docs/PageReservation.md +32 -0
- compute_api_client/docs/PageResult.md +32 -0
- compute_api_client/docs/PageTeam.md +32 -0
- compute_api_client/docs/PageTransaction.md +32 -0
- compute_api_client/docs/PageUser.md +32 -0
- compute_api_client/docs/PermissionsApi.md +24 -24
- compute_api_client/docs/ProjectsApi.md +12 -12
- compute_api_client/docs/ReservationsApi.md +12 -12
- compute_api_client/docs/ResultsApi.md +24 -16
- compute_api_client/docs/TeamsApi.md +12 -12
- compute_api_client/docs/TransactionsApi.md +12 -12
- compute_api_client/docs/UsersApi.md +12 -12
- compute_api_client/exceptions.py +1 -1
- compute_api_client/models/__init__.py +19 -1
- compute_api_client/models/algorithm.py +1 -1
- compute_api_client/models/algorithm_in.py +1 -1
- compute_api_client/models/algorithm_type.py +1 -1
- compute_api_client/models/backend.py +1 -1
- compute_api_client/models/backend_in.py +1 -1
- compute_api_client/models/backend_patch.py +1 -1
- compute_api_client/models/backend_status.py +1 -1
- compute_api_client/models/backend_type.py +8 -4
- compute_api_client/models/backend_with_authentication.py +1 -1
- compute_api_client/models/batch_job.py +1 -1
- compute_api_client/models/batch_job_in.py +1 -1
- compute_api_client/models/batch_job_status.py +1 -1
- compute_api_client/models/commit.py +1 -1
- compute_api_client/models/commit_in.py +1 -1
- compute_api_client/models/compile_stage.py +1 -1
- compute_api_client/models/domain.py +1 -1
- compute_api_client/models/file.py +1 -1
- compute_api_client/models/file_in.py +1 -1
- compute_api_client/models/final_result.py +1 -1
- compute_api_client/models/final_result_in.py +1 -1
- compute_api_client/models/http_not_found_error.py +1 -1
- compute_api_client/models/http_validation_error.py +1 -1
- compute_api_client/models/job.py +1 -1
- compute_api_client/models/job_in.py +1 -1
- compute_api_client/models/job_patch.py +1 -1
- compute_api_client/models/job_status.py +1 -1
- compute_api_client/models/language.py +1 -1
- compute_api_client/models/location_inner.py +1 -1
- compute_api_client/models/member.py +1 -1
- compute_api_client/models/member_in.py +1 -1
- compute_api_client/models/metadata.py +1 -1
- compute_api_client/models/metadata_in.py +1 -1
- compute_api_client/models/page_algorithm.py +125 -0
- compute_api_client/models/page_backend.py +125 -0
- compute_api_client/models/page_backend_type.py +125 -0
- compute_api_client/models/page_batch_job.py +125 -0
- compute_api_client/models/page_commit.py +125 -0
- compute_api_client/models/page_file.py +125 -0
- compute_api_client/models/page_job.py +125 -0
- compute_api_client/models/page_language.py +125 -0
- compute_api_client/models/page_member.py +125 -0
- compute_api_client/models/page_metadata.py +125 -0
- compute_api_client/models/page_permission.py +125 -0
- compute_api_client/models/page_permission_group.py +125 -0
- compute_api_client/models/page_project.py +125 -0
- compute_api_client/models/page_reservation.py +125 -0
- compute_api_client/models/page_result.py +125 -0
- compute_api_client/models/page_team.py +125 -0
- compute_api_client/models/page_transaction.py +125 -0
- compute_api_client/models/page_user.py +125 -0
- compute_api_client/models/permission.py +1 -1
- compute_api_client/models/permission_group.py +1 -1
- compute_api_client/models/project.py +1 -1
- compute_api_client/models/project_in.py +1 -1
- compute_api_client/models/project_patch.py +1 -1
- compute_api_client/models/reservation.py +1 -1
- compute_api_client/models/reservation_in.py +1 -1
- compute_api_client/models/result.py +1 -1
- compute_api_client/models/result_in.py +1 -1
- compute_api_client/models/role.py +1 -1
- compute_api_client/models/share_type.py +1 -1
- compute_api_client/models/team.py +1 -1
- compute_api_client/models/transaction.py +1 -1
- compute_api_client/models/user.py +1 -1
- compute_api_client/models/user_in.py +1 -1
- compute_api_client/models/validation_error.py +1 -1
- compute_api_client/rest.py +1 -1
- {qi_compute_api_client-0.32.0.dist-info → qi_compute_api_client-0.35.0.dist-info}/METADATA +22 -3
- qi_compute_api_client-0.35.0.dist-info/RECORD +182 -0
- qi_compute_api_client-0.32.0.dist-info/RECORD +0 -144
- {qi_compute_api_client-0.32.0.dist-info → qi_compute_api_client-0.35.0.dist-info}/LICENSE.md +0 -0
- {qi_compute_api_client-0.32.0.dist-info → qi_compute_api_client-0.35.0.dist-info}/WHEEL +0 -0
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"""
|
|
4
4
|
Quantum Inspire 2
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
7
|
|
|
8
8
|
The version of the OpenAPI document: 0.1.0
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
@@ -23,12 +23,15 @@ try:
|
|
|
23
23
|
except ImportError:
|
|
24
24
|
from typing_extensions import Annotated
|
|
25
25
|
|
|
26
|
+
from pydantic import Field
|
|
27
|
+
from typing_extensions import Annotated
|
|
26
28
|
from pydantic import StrictBool, StrictInt, StrictStr
|
|
27
29
|
|
|
28
|
-
from typing import
|
|
30
|
+
from typing import Optional
|
|
29
31
|
|
|
30
32
|
from compute_api_client.models.backend_status import BackendStatus
|
|
31
33
|
from compute_api_client.models.backend_type import BackendType
|
|
34
|
+
from compute_api_client.models.page_backend_type import PageBackendType
|
|
32
35
|
|
|
33
36
|
from compute_api_client.api_client import ApiClient
|
|
34
37
|
from compute_api_client.api_response import ApiResponse
|
|
@@ -319,19 +322,20 @@ class BackendTypesApi:
|
|
|
319
322
|
@validate_call
|
|
320
323
|
async def read_backend_types_backend_types_get(
|
|
321
324
|
self,
|
|
322
|
-
latest: Optional[StrictBool] = None,
|
|
323
|
-
sort_by: Optional[StrictStr] = None,
|
|
324
|
-
page_number: Optional[StrictInt] = None,
|
|
325
|
-
items_per_page: Optional[StrictInt] = None,
|
|
326
325
|
id: Optional[StrictInt] = None,
|
|
327
326
|
name: Optional[StrictStr] = None,
|
|
328
327
|
infrastructure: Optional[StrictStr] = None,
|
|
329
328
|
description: Optional[StrictStr] = None,
|
|
330
329
|
image_id: Optional[StrictStr] = None,
|
|
331
330
|
is_hardware: Optional[StrictBool] = None,
|
|
331
|
+
nqubits: Optional[StrictInt] = None,
|
|
332
332
|
status: Optional[BackendStatus] = None,
|
|
333
333
|
default_number_of_shots: Optional[StrictInt] = None,
|
|
334
334
|
max_number_of_shots: Optional[StrictInt] = None,
|
|
335
|
+
sort_by: Annotated[Optional[StrictStr], Field(description="The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'.")] = None,
|
|
336
|
+
latest: Annotated[Optional[StrictBool], Field(description="If True gets the most recently created object.")] = None,
|
|
337
|
+
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Page number")] = None,
|
|
338
|
+
size: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="Page size")] = None,
|
|
335
339
|
_request_timeout: Union[
|
|
336
340
|
None,
|
|
337
341
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -344,19 +348,11 @@ class BackendTypesApi:
|
|
|
344
348
|
_content_type: Optional[StrictStr] = None,
|
|
345
349
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
346
350
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
347
|
-
) ->
|
|
351
|
+
) -> PageBackendType:
|
|
348
352
|
"""List backend types
|
|
349
353
|
|
|
350
354
|
Read backend types.
|
|
351
355
|
|
|
352
|
-
:param latest:
|
|
353
|
-
:type latest: bool
|
|
354
|
-
:param sort_by:
|
|
355
|
-
:type sort_by: str
|
|
356
|
-
:param page_number:
|
|
357
|
-
:type page_number: int
|
|
358
|
-
:param items_per_page:
|
|
359
|
-
:type items_per_page: int
|
|
360
356
|
:param id:
|
|
361
357
|
:type id: int
|
|
362
358
|
:param name:
|
|
@@ -369,12 +365,22 @@ class BackendTypesApi:
|
|
|
369
365
|
:type image_id: str
|
|
370
366
|
:param is_hardware:
|
|
371
367
|
:type is_hardware: bool
|
|
368
|
+
:param nqubits:
|
|
369
|
+
:type nqubits: int
|
|
372
370
|
:param status:
|
|
373
371
|
:type status: BackendStatus
|
|
374
372
|
:param default_number_of_shots:
|
|
375
373
|
:type default_number_of_shots: int
|
|
376
374
|
:param max_number_of_shots:
|
|
377
375
|
:type max_number_of_shots: int
|
|
376
|
+
:param sort_by: The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'.
|
|
377
|
+
:type sort_by: str
|
|
378
|
+
:param latest: If True gets the most recently created object.
|
|
379
|
+
:type latest: bool
|
|
380
|
+
:param page: Page number
|
|
381
|
+
:type page: int
|
|
382
|
+
:param size: Page size
|
|
383
|
+
:type size: int
|
|
378
384
|
:param _request_timeout: timeout setting for this request. If one
|
|
379
385
|
number provided, it will be total request
|
|
380
386
|
timeout. It can also be a pair (tuple) of
|
|
@@ -398,19 +404,20 @@ class BackendTypesApi:
|
|
|
398
404
|
""" # noqa: E501
|
|
399
405
|
|
|
400
406
|
_param = self._read_backend_types_backend_types_get_serialize(
|
|
401
|
-
latest=latest,
|
|
402
|
-
sort_by=sort_by,
|
|
403
|
-
page_number=page_number,
|
|
404
|
-
items_per_page=items_per_page,
|
|
405
407
|
id=id,
|
|
406
408
|
name=name,
|
|
407
409
|
infrastructure=infrastructure,
|
|
408
410
|
description=description,
|
|
409
411
|
image_id=image_id,
|
|
410
412
|
is_hardware=is_hardware,
|
|
413
|
+
nqubits=nqubits,
|
|
411
414
|
status=status,
|
|
412
415
|
default_number_of_shots=default_number_of_shots,
|
|
413
416
|
max_number_of_shots=max_number_of_shots,
|
|
417
|
+
sort_by=sort_by,
|
|
418
|
+
latest=latest,
|
|
419
|
+
page=page,
|
|
420
|
+
size=size,
|
|
414
421
|
_request_auth=_request_auth,
|
|
415
422
|
_content_type=_content_type,
|
|
416
423
|
_headers=_headers,
|
|
@@ -418,7 +425,7 @@ class BackendTypesApi:
|
|
|
418
425
|
)
|
|
419
426
|
|
|
420
427
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
421
|
-
'200': "
|
|
428
|
+
'200': "PageBackendType",
|
|
422
429
|
'422': "HTTPValidationError"
|
|
423
430
|
|
|
424
431
|
}
|
|
@@ -436,19 +443,20 @@ class BackendTypesApi:
|
|
|
436
443
|
@validate_call
|
|
437
444
|
async def read_backend_types_backend_types_get_with_http_info(
|
|
438
445
|
self,
|
|
439
|
-
latest: Optional[StrictBool] = None,
|
|
440
|
-
sort_by: Optional[StrictStr] = None,
|
|
441
|
-
page_number: Optional[StrictInt] = None,
|
|
442
|
-
items_per_page: Optional[StrictInt] = None,
|
|
443
446
|
id: Optional[StrictInt] = None,
|
|
444
447
|
name: Optional[StrictStr] = None,
|
|
445
448
|
infrastructure: Optional[StrictStr] = None,
|
|
446
449
|
description: Optional[StrictStr] = None,
|
|
447
450
|
image_id: Optional[StrictStr] = None,
|
|
448
451
|
is_hardware: Optional[StrictBool] = None,
|
|
452
|
+
nqubits: Optional[StrictInt] = None,
|
|
449
453
|
status: Optional[BackendStatus] = None,
|
|
450
454
|
default_number_of_shots: Optional[StrictInt] = None,
|
|
451
455
|
max_number_of_shots: Optional[StrictInt] = None,
|
|
456
|
+
sort_by: Annotated[Optional[StrictStr], Field(description="The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'.")] = None,
|
|
457
|
+
latest: Annotated[Optional[StrictBool], Field(description="If True gets the most recently created object.")] = None,
|
|
458
|
+
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Page number")] = None,
|
|
459
|
+
size: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="Page size")] = None,
|
|
452
460
|
_request_timeout: Union[
|
|
453
461
|
None,
|
|
454
462
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -461,19 +469,11 @@ class BackendTypesApi:
|
|
|
461
469
|
_content_type: Optional[StrictStr] = None,
|
|
462
470
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
463
471
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
464
|
-
) -> ApiResponse[
|
|
472
|
+
) -> ApiResponse[PageBackendType]:
|
|
465
473
|
"""List backend types
|
|
466
474
|
|
|
467
475
|
Read backend types.
|
|
468
476
|
|
|
469
|
-
:param latest:
|
|
470
|
-
:type latest: bool
|
|
471
|
-
:param sort_by:
|
|
472
|
-
:type sort_by: str
|
|
473
|
-
:param page_number:
|
|
474
|
-
:type page_number: int
|
|
475
|
-
:param items_per_page:
|
|
476
|
-
:type items_per_page: int
|
|
477
477
|
:param id:
|
|
478
478
|
:type id: int
|
|
479
479
|
:param name:
|
|
@@ -486,12 +486,22 @@ class BackendTypesApi:
|
|
|
486
486
|
:type image_id: str
|
|
487
487
|
:param is_hardware:
|
|
488
488
|
:type is_hardware: bool
|
|
489
|
+
:param nqubits:
|
|
490
|
+
:type nqubits: int
|
|
489
491
|
:param status:
|
|
490
492
|
:type status: BackendStatus
|
|
491
493
|
:param default_number_of_shots:
|
|
492
494
|
:type default_number_of_shots: int
|
|
493
495
|
:param max_number_of_shots:
|
|
494
496
|
:type max_number_of_shots: int
|
|
497
|
+
:param sort_by: The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'.
|
|
498
|
+
:type sort_by: str
|
|
499
|
+
:param latest: If True gets the most recently created object.
|
|
500
|
+
:type latest: bool
|
|
501
|
+
:param page: Page number
|
|
502
|
+
:type page: int
|
|
503
|
+
:param size: Page size
|
|
504
|
+
:type size: int
|
|
495
505
|
:param _request_timeout: timeout setting for this request. If one
|
|
496
506
|
number provided, it will be total request
|
|
497
507
|
timeout. It can also be a pair (tuple) of
|
|
@@ -515,19 +525,20 @@ class BackendTypesApi:
|
|
|
515
525
|
""" # noqa: E501
|
|
516
526
|
|
|
517
527
|
_param = self._read_backend_types_backend_types_get_serialize(
|
|
518
|
-
latest=latest,
|
|
519
|
-
sort_by=sort_by,
|
|
520
|
-
page_number=page_number,
|
|
521
|
-
items_per_page=items_per_page,
|
|
522
528
|
id=id,
|
|
523
529
|
name=name,
|
|
524
530
|
infrastructure=infrastructure,
|
|
525
531
|
description=description,
|
|
526
532
|
image_id=image_id,
|
|
527
533
|
is_hardware=is_hardware,
|
|
534
|
+
nqubits=nqubits,
|
|
528
535
|
status=status,
|
|
529
536
|
default_number_of_shots=default_number_of_shots,
|
|
530
537
|
max_number_of_shots=max_number_of_shots,
|
|
538
|
+
sort_by=sort_by,
|
|
539
|
+
latest=latest,
|
|
540
|
+
page=page,
|
|
541
|
+
size=size,
|
|
531
542
|
_request_auth=_request_auth,
|
|
532
543
|
_content_type=_content_type,
|
|
533
544
|
_headers=_headers,
|
|
@@ -535,7 +546,7 @@ class BackendTypesApi:
|
|
|
535
546
|
)
|
|
536
547
|
|
|
537
548
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
538
|
-
'200': "
|
|
549
|
+
'200': "PageBackendType",
|
|
539
550
|
'422': "HTTPValidationError"
|
|
540
551
|
|
|
541
552
|
}
|
|
@@ -553,19 +564,20 @@ class BackendTypesApi:
|
|
|
553
564
|
@validate_call
|
|
554
565
|
async def read_backend_types_backend_types_get_without_preload_content(
|
|
555
566
|
self,
|
|
556
|
-
latest: Optional[StrictBool] = None,
|
|
557
|
-
sort_by: Optional[StrictStr] = None,
|
|
558
|
-
page_number: Optional[StrictInt] = None,
|
|
559
|
-
items_per_page: Optional[StrictInt] = None,
|
|
560
567
|
id: Optional[StrictInt] = None,
|
|
561
568
|
name: Optional[StrictStr] = None,
|
|
562
569
|
infrastructure: Optional[StrictStr] = None,
|
|
563
570
|
description: Optional[StrictStr] = None,
|
|
564
571
|
image_id: Optional[StrictStr] = None,
|
|
565
572
|
is_hardware: Optional[StrictBool] = None,
|
|
573
|
+
nqubits: Optional[StrictInt] = None,
|
|
566
574
|
status: Optional[BackendStatus] = None,
|
|
567
575
|
default_number_of_shots: Optional[StrictInt] = None,
|
|
568
576
|
max_number_of_shots: Optional[StrictInt] = None,
|
|
577
|
+
sort_by: Annotated[Optional[StrictStr], Field(description="The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'.")] = None,
|
|
578
|
+
latest: Annotated[Optional[StrictBool], Field(description="If True gets the most recently created object.")] = None,
|
|
579
|
+
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Page number")] = None,
|
|
580
|
+
size: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="Page size")] = None,
|
|
569
581
|
_request_timeout: Union[
|
|
570
582
|
None,
|
|
571
583
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -583,14 +595,6 @@ class BackendTypesApi:
|
|
|
583
595
|
|
|
584
596
|
Read backend types.
|
|
585
597
|
|
|
586
|
-
:param latest:
|
|
587
|
-
:type latest: bool
|
|
588
|
-
:param sort_by:
|
|
589
|
-
:type sort_by: str
|
|
590
|
-
:param page_number:
|
|
591
|
-
:type page_number: int
|
|
592
|
-
:param items_per_page:
|
|
593
|
-
:type items_per_page: int
|
|
594
598
|
:param id:
|
|
595
599
|
:type id: int
|
|
596
600
|
:param name:
|
|
@@ -603,12 +607,22 @@ class BackendTypesApi:
|
|
|
603
607
|
:type image_id: str
|
|
604
608
|
:param is_hardware:
|
|
605
609
|
:type is_hardware: bool
|
|
610
|
+
:param nqubits:
|
|
611
|
+
:type nqubits: int
|
|
606
612
|
:param status:
|
|
607
613
|
:type status: BackendStatus
|
|
608
614
|
:param default_number_of_shots:
|
|
609
615
|
:type default_number_of_shots: int
|
|
610
616
|
:param max_number_of_shots:
|
|
611
617
|
:type max_number_of_shots: int
|
|
618
|
+
:param sort_by: The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'.
|
|
619
|
+
:type sort_by: str
|
|
620
|
+
:param latest: If True gets the most recently created object.
|
|
621
|
+
:type latest: bool
|
|
622
|
+
:param page: Page number
|
|
623
|
+
:type page: int
|
|
624
|
+
:param size: Page size
|
|
625
|
+
:type size: int
|
|
612
626
|
:param _request_timeout: timeout setting for this request. If one
|
|
613
627
|
number provided, it will be total request
|
|
614
628
|
timeout. It can also be a pair (tuple) of
|
|
@@ -632,19 +646,20 @@ class BackendTypesApi:
|
|
|
632
646
|
""" # noqa: E501
|
|
633
647
|
|
|
634
648
|
_param = self._read_backend_types_backend_types_get_serialize(
|
|
635
|
-
latest=latest,
|
|
636
|
-
sort_by=sort_by,
|
|
637
|
-
page_number=page_number,
|
|
638
|
-
items_per_page=items_per_page,
|
|
639
649
|
id=id,
|
|
640
650
|
name=name,
|
|
641
651
|
infrastructure=infrastructure,
|
|
642
652
|
description=description,
|
|
643
653
|
image_id=image_id,
|
|
644
654
|
is_hardware=is_hardware,
|
|
655
|
+
nqubits=nqubits,
|
|
645
656
|
status=status,
|
|
646
657
|
default_number_of_shots=default_number_of_shots,
|
|
647
658
|
max_number_of_shots=max_number_of_shots,
|
|
659
|
+
sort_by=sort_by,
|
|
660
|
+
latest=latest,
|
|
661
|
+
page=page,
|
|
662
|
+
size=size,
|
|
648
663
|
_request_auth=_request_auth,
|
|
649
664
|
_content_type=_content_type,
|
|
650
665
|
_headers=_headers,
|
|
@@ -652,7 +667,7 @@ class BackendTypesApi:
|
|
|
652
667
|
)
|
|
653
668
|
|
|
654
669
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
655
|
-
'200': "
|
|
670
|
+
'200': "PageBackendType",
|
|
656
671
|
'422': "HTTPValidationError"
|
|
657
672
|
|
|
658
673
|
}
|
|
@@ -665,19 +680,20 @@ class BackendTypesApi:
|
|
|
665
680
|
|
|
666
681
|
def _read_backend_types_backend_types_get_serialize(
|
|
667
682
|
self,
|
|
668
|
-
latest,
|
|
669
|
-
sort_by,
|
|
670
|
-
page_number,
|
|
671
|
-
items_per_page,
|
|
672
683
|
id,
|
|
673
684
|
name,
|
|
674
685
|
infrastructure,
|
|
675
686
|
description,
|
|
676
687
|
image_id,
|
|
677
688
|
is_hardware,
|
|
689
|
+
nqubits,
|
|
678
690
|
status,
|
|
679
691
|
default_number_of_shots,
|
|
680
692
|
max_number_of_shots,
|
|
693
|
+
sort_by,
|
|
694
|
+
latest,
|
|
695
|
+
page,
|
|
696
|
+
size,
|
|
681
697
|
_request_auth,
|
|
682
698
|
_content_type,
|
|
683
699
|
_headers,
|
|
@@ -699,22 +715,6 @@ class BackendTypesApi:
|
|
|
699
715
|
|
|
700
716
|
# process the path parameters
|
|
701
717
|
# process the query parameters
|
|
702
|
-
if latest is not None:
|
|
703
|
-
|
|
704
|
-
_query_params.append(('latest', latest))
|
|
705
|
-
|
|
706
|
-
if sort_by is not None:
|
|
707
|
-
|
|
708
|
-
_query_params.append(('sort_by', sort_by))
|
|
709
|
-
|
|
710
|
-
if page_number is not None:
|
|
711
|
-
|
|
712
|
-
_query_params.append(('page_number', page_number))
|
|
713
|
-
|
|
714
|
-
if items_per_page is not None:
|
|
715
|
-
|
|
716
|
-
_query_params.append(('items_per_page', items_per_page))
|
|
717
|
-
|
|
718
718
|
if id is not None:
|
|
719
719
|
|
|
720
720
|
_query_params.append(('id', id))
|
|
@@ -739,6 +739,10 @@ class BackendTypesApi:
|
|
|
739
739
|
|
|
740
740
|
_query_params.append(('is_hardware', is_hardware))
|
|
741
741
|
|
|
742
|
+
if nqubits is not None:
|
|
743
|
+
|
|
744
|
+
_query_params.append(('nqubits', nqubits))
|
|
745
|
+
|
|
742
746
|
if status is not None:
|
|
743
747
|
|
|
744
748
|
_query_params.append(('status', status.value))
|
|
@@ -751,6 +755,22 @@ class BackendTypesApi:
|
|
|
751
755
|
|
|
752
756
|
_query_params.append(('max_number_of_shots', max_number_of_shots))
|
|
753
757
|
|
|
758
|
+
if sort_by is not None:
|
|
759
|
+
|
|
760
|
+
_query_params.append(('sort_by', sort_by))
|
|
761
|
+
|
|
762
|
+
if latest is not None:
|
|
763
|
+
|
|
764
|
+
_query_params.append(('latest', latest))
|
|
765
|
+
|
|
766
|
+
if page is not None:
|
|
767
|
+
|
|
768
|
+
_query_params.append(('page', page))
|
|
769
|
+
|
|
770
|
+
if size is not None:
|
|
771
|
+
|
|
772
|
+
_query_params.append(('size', size))
|
|
773
|
+
|
|
754
774
|
# process the header parameters
|
|
755
775
|
# process the form parameters
|
|
756
776
|
# process the body parameter
|