qi-compute-api-client 0.17.0__py3-none-any.whl → 0.27.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.

Files changed (104) hide show
  1. compute_api_client/__init__.py +2 -1
  2. compute_api_client/api/algorithms_api.py +110 -1
  3. compute_api_client/api/backend_api.py +71 -16
  4. compute_api_client/api/backend_types_api.py +106 -1
  5. compute_api_client/api/batch_jobs_api.py +310 -5
  6. compute_api_client/api/commits_api.py +56 -1
  7. compute_api_client/api/files_api.py +56 -1
  8. compute_api_client/api/final_results_api.py +4 -1
  9. compute_api_client/api/jobs_api.py +60 -2
  10. compute_api_client/api/languages_api.py +54 -1
  11. compute_api_client/api/members_api.py +57 -2
  12. compute_api_client/api/metadata_api.py +3 -1
  13. compute_api_client/api/permissions_api.py +107 -1
  14. compute_api_client/api/projects_api.py +80 -4
  15. compute_api_client/api/reservations_api.py +57 -2
  16. compute_api_client/api/results_api.py +268 -7
  17. compute_api_client/api/teams_api.py +54 -1
  18. compute_api_client/api/transactions_api.py +55 -2
  19. compute_api_client/api/users_api.py +73 -1
  20. compute_api_client/api_client.py +1 -1
  21. compute_api_client/configuration.py +8 -1
  22. compute_api_client/docs/Algorithm.md +1 -0
  23. compute_api_client/docs/AlgorithmIn.md +1 -0
  24. compute_api_client/docs/AlgorithmsApi.md +34 -7
  25. compute_api_client/docs/BackendApi.md +25 -10
  26. compute_api_client/docs/BackendIn.md +32 -0
  27. compute_api_client/docs/BackendType.md +3 -0
  28. compute_api_client/docs/BackendTypesApi.md +23 -4
  29. compute_api_client/docs/BatchJobIn.md +0 -1
  30. compute_api_client/docs/BatchJobsApi.md +101 -7
  31. compute_api_client/docs/CommitIn.md +0 -1
  32. compute_api_client/docs/CommitsApi.md +24 -6
  33. compute_api_client/docs/FilesApi.md +24 -6
  34. compute_api_client/docs/FinalResultsApi.md +12 -3
  35. compute_api_client/docs/JobIn.md +0 -1
  36. compute_api_client/docs/JobsApi.md +42 -7
  37. compute_api_client/docs/LanguagesApi.md +16 -4
  38. compute_api_client/docs/MembersApi.md +24 -6
  39. compute_api_client/docs/MetadataApi.md +8 -2
  40. compute_api_client/docs/PermissionsApi.md +32 -8
  41. compute_api_client/docs/ProjectsApi.md +35 -9
  42. compute_api_client/docs/ReservationsApi.md +24 -6
  43. compute_api_client/docs/ResultsApi.md +90 -6
  44. compute_api_client/docs/TeamsApi.md +16 -4
  45. compute_api_client/docs/TransactionsApi.md +16 -4
  46. compute_api_client/docs/User.md +1 -0
  47. compute_api_client/docs/UserIn.md +1 -0
  48. compute_api_client/docs/UsersApi.md +26 -6
  49. compute_api_client/exceptions.py +1 -1
  50. compute_api_client/models/__init__.py +2 -1
  51. compute_api_client/models/algorithm.py +10 -3
  52. compute_api_client/models/algorithm_in.py +10 -3
  53. compute_api_client/models/algorithm_type.py +1 -1
  54. compute_api_client/models/backend.py +1 -1
  55. compute_api_client/models/backend_in.py +98 -0
  56. compute_api_client/models/backend_patch.py +1 -1
  57. compute_api_client/models/backend_status.py +1 -1
  58. compute_api_client/models/backend_type.py +10 -3
  59. compute_api_client/models/backend_with_authentication.py +1 -1
  60. compute_api_client/models/batch_job.py +1 -1
  61. compute_api_client/models/batch_job_in.py +2 -4
  62. compute_api_client/models/batch_job_status.py +1 -1
  63. compute_api_client/models/commit.py +1 -1
  64. compute_api_client/models/commit_in.py +2 -6
  65. compute_api_client/models/compile_stage.py +1 -1
  66. compute_api_client/models/domain.py +1 -1
  67. compute_api_client/models/file.py +1 -1
  68. compute_api_client/models/file_in.py +1 -1
  69. compute_api_client/models/final_result.py +1 -1
  70. compute_api_client/models/final_result_in.py +1 -1
  71. compute_api_client/models/http_not_found_error.py +1 -1
  72. compute_api_client/models/http_validation_error.py +1 -1
  73. compute_api_client/models/job.py +1 -1
  74. compute_api_client/models/job_in.py +2 -5
  75. compute_api_client/models/job_patch.py +1 -1
  76. compute_api_client/models/job_status.py +1 -1
  77. compute_api_client/models/language.py +1 -1
  78. compute_api_client/models/location_inner.py +1 -1
  79. compute_api_client/models/member.py +1 -1
  80. compute_api_client/models/member_in.py +1 -1
  81. compute_api_client/models/metadata.py +1 -1
  82. compute_api_client/models/metadata_in.py +1 -1
  83. compute_api_client/models/permission.py +1 -1
  84. compute_api_client/models/permission_group.py +1 -1
  85. compute_api_client/models/project.py +1 -1
  86. compute_api_client/models/project_in.py +1 -1
  87. compute_api_client/models/project_patch.py +1 -1
  88. compute_api_client/models/reservation.py +1 -1
  89. compute_api_client/models/reservation_in.py +1 -1
  90. compute_api_client/models/result.py +1 -1
  91. compute_api_client/models/result_in.py +1 -1
  92. compute_api_client/models/role.py +1 -1
  93. compute_api_client/models/share_type.py +1 -1
  94. compute_api_client/models/team.py +1 -1
  95. compute_api_client/models/transaction.py +1 -1
  96. compute_api_client/models/user.py +5 -3
  97. compute_api_client/models/user_in.py +5 -3
  98. compute_api_client/models/validation_error.py +1 -1
  99. compute_api_client/rest.py +1 -1
  100. {qi_compute_api_client-0.17.0.dist-info → qi_compute_api_client-0.27.0.dist-info}/METADATA +17 -5
  101. qi_compute_api_client-0.27.0.dist-info/RECORD +144 -0
  102. qi_compute_api_client-0.17.0.dist-info/RECORD +0 -142
  103. {qi_compute_api_client-0.17.0.dist-info → qi_compute_api_client-0.27.0.dist-info}/LICENSE.md +0 -0
  104. {qi_compute_api_client-0.17.0.dist-info → qi_compute_api_client-0.27.0.dist-info}/WHEEL +0 -0
@@ -3,7 +3,7 @@
3
3
  """
4
4
  Quantum Inspire 2
5
5
 
6
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ **Sorting and Pagination of list endpoints** The api provides sorting and pagination for list endpoints. The following parameters can be passed as query parameters to get sorted and paginated list. - `latest` - **Type**: Boolean. - **Description**: Get the most recently created object. Defaults to False. - `sort_by` - **Type**: String: - **Description**: The field / column name to sort on. To reverse sort provide the field with a \"-\" sign. E.g. \"created_on\" for ascending order while \"-created_on\" in descending order. Defaults to \"id\". - `page_number` - **Type**: Positive Integer - **Description**: The page number for pagination. Defaults to 1. - `items_per_page` - **Type**: Positive Integer. - **Description**: The number of items per page for pagination. Defaults to 50.
7
7
 
8
8
  The version of the OpenAPI document: 0.1.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
@@ -27,6 +27,7 @@ from pydantic import StrictBool, StrictInt, StrictStr
27
27
 
28
28
  from typing import List, Optional
29
29
 
30
+ from compute_api_client.models.backend_status import BackendStatus
30
31
  from compute_api_client.models.backend_type import BackendType
31
32
 
32
33
  from compute_api_client.api_client import ApiClient
@@ -294,6 +295,7 @@ class BackendTypesApi:
294
295
 
295
296
  # authentication setting
296
297
  _auth_settings: List[str] = [
298
+ 'user_bearer',
297
299
  'user'
298
300
  ]
299
301
 
@@ -319,12 +321,18 @@ class BackendTypesApi:
319
321
  async def read_backend_types_backend_types_get(
320
322
  self,
321
323
  latest: Optional[StrictBool] = None,
324
+ sort_by: Optional[StrictStr] = None,
325
+ page_number: Optional[StrictInt] = None,
326
+ items_per_page: Optional[StrictInt] = None,
322
327
  id: Optional[StrictInt] = None,
323
328
  name: Optional[StrictStr] = None,
324
329
  infrastructure: Optional[StrictStr] = None,
325
330
  description: Optional[StrictStr] = None,
326
331
  image_id: Optional[StrictStr] = None,
327
332
  is_hardware: Optional[StrictBool] = None,
333
+ status: Optional[BackendStatus] = None,
334
+ default_number_of_shots: Optional[StrictInt] = None,
335
+ max_number_of_shots: Optional[StrictInt] = None,
328
336
  _request_timeout: Union[
329
337
  None,
330
338
  Annotated[StrictFloat, Field(gt=0)],
@@ -344,6 +352,12 @@ class BackendTypesApi:
344
352
 
345
353
  :param latest:
346
354
  :type latest: bool
355
+ :param sort_by:
356
+ :type sort_by: str
357
+ :param page_number:
358
+ :type page_number: int
359
+ :param items_per_page:
360
+ :type items_per_page: int
347
361
  :param id:
348
362
  :type id: int
349
363
  :param name:
@@ -356,6 +370,12 @@ class BackendTypesApi:
356
370
  :type image_id: str
357
371
  :param is_hardware:
358
372
  :type is_hardware: bool
373
+ :param status:
374
+ :type status: BackendStatus
375
+ :param default_number_of_shots:
376
+ :type default_number_of_shots: int
377
+ :param max_number_of_shots:
378
+ :type max_number_of_shots: int
359
379
  :param _request_timeout: timeout setting for this request. If one
360
380
  number provided, it will be total request
361
381
  timeout. It can also be a pair (tuple) of
@@ -380,12 +400,18 @@ class BackendTypesApi:
380
400
 
381
401
  _param = self._read_backend_types_backend_types_get_serialize(
382
402
  latest=latest,
403
+ sort_by=sort_by,
404
+ page_number=page_number,
405
+ items_per_page=items_per_page,
383
406
  id=id,
384
407
  name=name,
385
408
  infrastructure=infrastructure,
386
409
  description=description,
387
410
  image_id=image_id,
388
411
  is_hardware=is_hardware,
412
+ status=status,
413
+ default_number_of_shots=default_number_of_shots,
414
+ max_number_of_shots=max_number_of_shots,
389
415
  _request_auth=_request_auth,
390
416
  _content_type=_content_type,
391
417
  _headers=_headers,
@@ -412,12 +438,18 @@ class BackendTypesApi:
412
438
  async def read_backend_types_backend_types_get_with_http_info(
413
439
  self,
414
440
  latest: Optional[StrictBool] = None,
441
+ sort_by: Optional[StrictStr] = None,
442
+ page_number: Optional[StrictInt] = None,
443
+ items_per_page: Optional[StrictInt] = None,
415
444
  id: Optional[StrictInt] = None,
416
445
  name: Optional[StrictStr] = None,
417
446
  infrastructure: Optional[StrictStr] = None,
418
447
  description: Optional[StrictStr] = None,
419
448
  image_id: Optional[StrictStr] = None,
420
449
  is_hardware: Optional[StrictBool] = None,
450
+ status: Optional[BackendStatus] = None,
451
+ default_number_of_shots: Optional[StrictInt] = None,
452
+ max_number_of_shots: Optional[StrictInt] = None,
421
453
  _request_timeout: Union[
422
454
  None,
423
455
  Annotated[StrictFloat, Field(gt=0)],
@@ -437,6 +469,12 @@ class BackendTypesApi:
437
469
 
438
470
  :param latest:
439
471
  :type latest: bool
472
+ :param sort_by:
473
+ :type sort_by: str
474
+ :param page_number:
475
+ :type page_number: int
476
+ :param items_per_page:
477
+ :type items_per_page: int
440
478
  :param id:
441
479
  :type id: int
442
480
  :param name:
@@ -449,6 +487,12 @@ class BackendTypesApi:
449
487
  :type image_id: str
450
488
  :param is_hardware:
451
489
  :type is_hardware: bool
490
+ :param status:
491
+ :type status: BackendStatus
492
+ :param default_number_of_shots:
493
+ :type default_number_of_shots: int
494
+ :param max_number_of_shots:
495
+ :type max_number_of_shots: int
452
496
  :param _request_timeout: timeout setting for this request. If one
453
497
  number provided, it will be total request
454
498
  timeout. It can also be a pair (tuple) of
@@ -473,12 +517,18 @@ class BackendTypesApi:
473
517
 
474
518
  _param = self._read_backend_types_backend_types_get_serialize(
475
519
  latest=latest,
520
+ sort_by=sort_by,
521
+ page_number=page_number,
522
+ items_per_page=items_per_page,
476
523
  id=id,
477
524
  name=name,
478
525
  infrastructure=infrastructure,
479
526
  description=description,
480
527
  image_id=image_id,
481
528
  is_hardware=is_hardware,
529
+ status=status,
530
+ default_number_of_shots=default_number_of_shots,
531
+ max_number_of_shots=max_number_of_shots,
482
532
  _request_auth=_request_auth,
483
533
  _content_type=_content_type,
484
534
  _headers=_headers,
@@ -505,12 +555,18 @@ class BackendTypesApi:
505
555
  async def read_backend_types_backend_types_get_without_preload_content(
506
556
  self,
507
557
  latest: Optional[StrictBool] = None,
558
+ sort_by: Optional[StrictStr] = None,
559
+ page_number: Optional[StrictInt] = None,
560
+ items_per_page: Optional[StrictInt] = None,
508
561
  id: Optional[StrictInt] = None,
509
562
  name: Optional[StrictStr] = None,
510
563
  infrastructure: Optional[StrictStr] = None,
511
564
  description: Optional[StrictStr] = None,
512
565
  image_id: Optional[StrictStr] = None,
513
566
  is_hardware: Optional[StrictBool] = None,
567
+ status: Optional[BackendStatus] = None,
568
+ default_number_of_shots: Optional[StrictInt] = None,
569
+ max_number_of_shots: Optional[StrictInt] = None,
514
570
  _request_timeout: Union[
515
571
  None,
516
572
  Annotated[StrictFloat, Field(gt=0)],
@@ -530,6 +586,12 @@ class BackendTypesApi:
530
586
 
531
587
  :param latest:
532
588
  :type latest: bool
589
+ :param sort_by:
590
+ :type sort_by: str
591
+ :param page_number:
592
+ :type page_number: int
593
+ :param items_per_page:
594
+ :type items_per_page: int
533
595
  :param id:
534
596
  :type id: int
535
597
  :param name:
@@ -542,6 +604,12 @@ class BackendTypesApi:
542
604
  :type image_id: str
543
605
  :param is_hardware:
544
606
  :type is_hardware: bool
607
+ :param status:
608
+ :type status: BackendStatus
609
+ :param default_number_of_shots:
610
+ :type default_number_of_shots: int
611
+ :param max_number_of_shots:
612
+ :type max_number_of_shots: int
545
613
  :param _request_timeout: timeout setting for this request. If one
546
614
  number provided, it will be total request
547
615
  timeout. It can also be a pair (tuple) of
@@ -566,12 +634,18 @@ class BackendTypesApi:
566
634
 
567
635
  _param = self._read_backend_types_backend_types_get_serialize(
568
636
  latest=latest,
637
+ sort_by=sort_by,
638
+ page_number=page_number,
639
+ items_per_page=items_per_page,
569
640
  id=id,
570
641
  name=name,
571
642
  infrastructure=infrastructure,
572
643
  description=description,
573
644
  image_id=image_id,
574
645
  is_hardware=is_hardware,
646
+ status=status,
647
+ default_number_of_shots=default_number_of_shots,
648
+ max_number_of_shots=max_number_of_shots,
575
649
  _request_auth=_request_auth,
576
650
  _content_type=_content_type,
577
651
  _headers=_headers,
@@ -593,12 +667,18 @@ class BackendTypesApi:
593
667
  def _read_backend_types_backend_types_get_serialize(
594
668
  self,
595
669
  latest,
670
+ sort_by,
671
+ page_number,
672
+ items_per_page,
596
673
  id,
597
674
  name,
598
675
  infrastructure,
599
676
  description,
600
677
  image_id,
601
678
  is_hardware,
679
+ status,
680
+ default_number_of_shots,
681
+ max_number_of_shots,
602
682
  _request_auth,
603
683
  _content_type,
604
684
  _headers,
@@ -624,6 +704,18 @@ class BackendTypesApi:
624
704
 
625
705
  _query_params.append(('latest', latest))
626
706
 
707
+ if sort_by is not None:
708
+
709
+ _query_params.append(('sort_by', sort_by))
710
+
711
+ if page_number is not None:
712
+
713
+ _query_params.append(('page_number', page_number))
714
+
715
+ if items_per_page is not None:
716
+
717
+ _query_params.append(('items_per_page', items_per_page))
718
+
627
719
  if id is not None:
628
720
 
629
721
  _query_params.append(('id', id))
@@ -648,6 +740,18 @@ class BackendTypesApi:
648
740
 
649
741
  _query_params.append(('is_hardware', is_hardware))
650
742
 
743
+ if status is not None:
744
+
745
+ _query_params.append(('status', status.value))
746
+
747
+ if default_number_of_shots is not None:
748
+
749
+ _query_params.append(('default_number_of_shots', default_number_of_shots))
750
+
751
+ if max_number_of_shots is not None:
752
+
753
+ _query_params.append(('max_number_of_shots', max_number_of_shots))
754
+
651
755
  # process the header parameters
652
756
  # process the form parameters
653
757
  # process the body parameter
@@ -663,6 +767,7 @@ class BackendTypesApi:
663
767
 
664
768
  # authentication setting
665
769
  _auth_settings: List[str] = [
770
+ 'user_bearer',
666
771
  'user'
667
772
  ]
668
773