From ae80421e8a7bb25f05f8fb331be33ebdb605c88b Mon Sep 17 00:00:00 2001 From: Maarten Derickx Date: Tue, 11 Jul 2023 08:43:33 +0000 Subject: [PATCH] [QI2-470] Results use latest metadata --- compute_api_client/__init__.py | 2 +- compute_api_client/api/algorithms_api.py | 2 +- compute_api_client/api/batch_runs_api.py | 2 +- compute_api_client/api/commits_api.py | 2 +- compute_api_client/api/files_api.py | 2 +- compute_api_client/api/final_results_api.py | 2 +- compute_api_client/api/languages_api.py | 2 +- compute_api_client/api/members_api.py | 2 +- compute_api_client/api/metadata_api.py | 2 +- compute_api_client/api/permissions_api.py | 2 +- compute_api_client/api/projects_api.py | 2 +- compute_api_client/api/reservations_api.py | 2 +- compute_api_client/api/results_api.py | 4 +- compute_api_client/api/runs_api.py | 2 +- compute_api_client/api/runtime_api.py | 2 +- compute_api_client/api/runtime_types_api.py | 2 +- compute_api_client/api/teams_api.py | 2 +- compute_api_client/api/transactions_api.py | 2 +- compute_api_client/api/users_api.py | 2 +- compute_api_client/api_client.py | 2 +- compute_api_client/configuration.py | 2 +- compute_api_client/docs/ResultIn.md | 2 +- compute_api_client/docs/ResultsApi.md | 52 +------------------ compute_api_client/exceptions.py | 2 +- compute_api_client/models/__init__.py | 2 +- compute_api_client/models/algorithm.py | 2 +- compute_api_client/models/algorithm_in.py | 2 +- compute_api_client/models/algorithm_type.py | 2 +- compute_api_client/models/batch_run.py | 2 +- compute_api_client/models/batch_run_in.py | 2 +- compute_api_client/models/batch_run_status.py | 2 +- compute_api_client/models/commit.py | 2 +- compute_api_client/models/commit_in.py | 2 +- compute_api_client/models/compile_stage.py | 2 +- compute_api_client/models/domain.py | 2 +- compute_api_client/models/file.py | 2 +- compute_api_client/models/file_in.py | 2 +- compute_api_client/models/final_result.py | 2 +- compute_api_client/models/final_result_in.py | 2 +- .../models/http_not_found_error.py | 2 +- .../models/http_validation_error.py | 2 +- compute_api_client/models/language.py | 2 +- compute_api_client/models/location_inner.py | 2 +- compute_api_client/models/member.py | 2 +- compute_api_client/models/member_in.py | 2 +- compute_api_client/models/metadata.py | 2 +- compute_api_client/models/metadata_in.py | 2 +- compute_api_client/models/permission.py | 2 +- compute_api_client/models/permission_group.py | 2 +- compute_api_client/models/project.py | 2 +- compute_api_client/models/project_in.py | 2 +- compute_api_client/models/project_patch.py | 2 +- compute_api_client/models/reservation.py | 2 +- compute_api_client/models/reservation_in.py | 2 +- compute_api_client/models/result.py | 2 +- compute_api_client/models/result_in.py | 7 ++- compute_api_client/models/role.py | 2 +- compute_api_client/models/run.py | 2 +- compute_api_client/models/run_in.py | 2 +- compute_api_client/models/run_status.py | 2 +- compute_api_client/models/runtime.py | 2 +- compute_api_client/models/runtime_status.py | 2 +- compute_api_client/models/runtime_type.py | 2 +- .../models/runtime_with_authentication.py | 2 +- compute_api_client/models/share_type.py | 2 +- compute_api_client/models/team.py | 2 +- compute_api_client/models/transaction.py | 2 +- compute_api_client/models/user.py | 2 +- compute_api_client/models/user_in.py | 2 +- compute_api_client/models/validation_error.py | 2 +- compute_api_client/rest.py | 2 +- pyproject.toml | 2 +- 72 files changed, 75 insertions(+), 126 deletions(-) diff --git a/compute_api_client/__init__.py b/compute_api_client/__init__.py index ff2d2ed..6c9d12b 100644 --- a/compute_api_client/__init__.py +++ b/compute_api_client/__init__.py @@ -3,7 +3,7 @@ # flake8: noqa """ - Compute Job Manager + Quantum Inspire 2 No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/compute_api_client/api/algorithms_api.py b/compute_api_client/api/algorithms_api.py index af78843..67a4f70 100644 --- a/compute_api_client/api/algorithms_api.py +++ b/compute_api_client/api/algorithms_api.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - Compute Job Manager + Quantum Inspire 2 No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/compute_api_client/api/batch_runs_api.py b/compute_api_client/api/batch_runs_api.py index 1522dab..8771b5f 100644 --- a/compute_api_client/api/batch_runs_api.py +++ b/compute_api_client/api/batch_runs_api.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - Compute Job Manager + Quantum Inspire 2 No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/compute_api_client/api/commits_api.py b/compute_api_client/api/commits_api.py index a148908..1b3b80f 100644 --- a/compute_api_client/api/commits_api.py +++ b/compute_api_client/api/commits_api.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - Compute Job Manager + Quantum Inspire 2 No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/compute_api_client/api/files_api.py b/compute_api_client/api/files_api.py index 91e5add..bee366b 100644 --- a/compute_api_client/api/files_api.py +++ b/compute_api_client/api/files_api.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - Compute Job Manager + Quantum Inspire 2 No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/compute_api_client/api/final_results_api.py b/compute_api_client/api/final_results_api.py index 0d11967..3090690 100644 --- a/compute_api_client/api/final_results_api.py +++ b/compute_api_client/api/final_results_api.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - Compute Job Manager + Quantum Inspire 2 No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/compute_api_client/api/languages_api.py b/compute_api_client/api/languages_api.py index f97cd82..52ecdd7 100644 --- a/compute_api_client/api/languages_api.py +++ b/compute_api_client/api/languages_api.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - Compute Job Manager + Quantum Inspire 2 No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/compute_api_client/api/members_api.py b/compute_api_client/api/members_api.py index a86f212..5c779e0 100644 --- a/compute_api_client/api/members_api.py +++ b/compute_api_client/api/members_api.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - Compute Job Manager + Quantum Inspire 2 No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/compute_api_client/api/metadata_api.py b/compute_api_client/api/metadata_api.py index c574527..190808a 100644 --- a/compute_api_client/api/metadata_api.py +++ b/compute_api_client/api/metadata_api.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - Compute Job Manager + Quantum Inspire 2 No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/compute_api_client/api/permissions_api.py b/compute_api_client/api/permissions_api.py index 01ac411..b96d4c0 100644 --- a/compute_api_client/api/permissions_api.py +++ b/compute_api_client/api/permissions_api.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - Compute Job Manager + Quantum Inspire 2 No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/compute_api_client/api/projects_api.py b/compute_api_client/api/projects_api.py index caeeb95..44dd9c8 100644 --- a/compute_api_client/api/projects_api.py +++ b/compute_api_client/api/projects_api.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - Compute Job Manager + Quantum Inspire 2 No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/compute_api_client/api/reservations_api.py b/compute_api_client/api/reservations_api.py index 02f6714..1106df1 100644 --- a/compute_api_client/api/reservations_api.py +++ b/compute_api_client/api/reservations_api.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - Compute Job Manager + Quantum Inspire 2 No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/compute_api_client/api/results_api.py b/compute_api_client/api/results_api.py index e710849..ac086eb 100644 --- a/compute_api_client/api/results_api.py +++ b/compute_api_client/api/results_api.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - Compute Job Manager + Quantum Inspire 2 No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 @@ -158,7 +158,7 @@ def create_result_results_post_with_http_info(self, result_in, **kwargs): # noq header_params['Content-Type'] = content_types_list # Authentication setting - auth_settings = ['runtime', 'user'] # noqa: E501 + auth_settings = ['runtime'] # noqa: E501 response_types_map = { 201: "Result", diff --git a/compute_api_client/api/runs_api.py b/compute_api_client/api/runs_api.py index b632a9b..75928ca 100644 --- a/compute_api_client/api/runs_api.py +++ b/compute_api_client/api/runs_api.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - Compute Job Manager + Quantum Inspire 2 No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/compute_api_client/api/runtime_api.py b/compute_api_client/api/runtime_api.py index e4c2c87..fe07b28 100644 --- a/compute_api_client/api/runtime_api.py +++ b/compute_api_client/api/runtime_api.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - Compute Job Manager + Quantum Inspire 2 No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/compute_api_client/api/runtime_types_api.py b/compute_api_client/api/runtime_types_api.py index 6ae42bf..c301ed2 100644 --- a/compute_api_client/api/runtime_types_api.py +++ b/compute_api_client/api/runtime_types_api.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - Compute Job Manager + Quantum Inspire 2 No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/compute_api_client/api/teams_api.py b/compute_api_client/api/teams_api.py index 4bf6756..71d5471 100644 --- a/compute_api_client/api/teams_api.py +++ b/compute_api_client/api/teams_api.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - Compute Job Manager + Quantum Inspire 2 No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/compute_api_client/api/transactions_api.py b/compute_api_client/api/transactions_api.py index b844c36..ace27af 100644 --- a/compute_api_client/api/transactions_api.py +++ b/compute_api_client/api/transactions_api.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - Compute Job Manager + Quantum Inspire 2 No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/compute_api_client/api/users_api.py b/compute_api_client/api/users_api.py index 2e12fd3..d7c57a2 100644 --- a/compute_api_client/api/users_api.py +++ b/compute_api_client/api/users_api.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - Compute Job Manager + Quantum Inspire 2 No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/compute_api_client/api_client.py b/compute_api_client/api_client.py index 4c19df0..0ee728f 100644 --- a/compute_api_client/api_client.py +++ b/compute_api_client/api_client.py @@ -1,6 +1,6 @@ # coding: utf-8 """ - Compute Job Manager + Quantum Inspire 2 No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/compute_api_client/configuration.py b/compute_api_client/configuration.py index 5d7f569..5c88037 100644 --- a/compute_api_client/configuration.py +++ b/compute_api_client/configuration.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - Compute Job Manager + Quantum Inspire 2 No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/compute_api_client/docs/ResultIn.md b/compute_api_client/docs/ResultIn.md index b1c70c7..22214a7 100644 --- a/compute_api_client/docs/ResultIn.md +++ b/compute_api_client/docs/ResultIn.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **shots_requested** | **int** | | [optional] **shots_done** | **int** | | [optional] **results** | **object** | | [optional] -**metadata_id** | **int** | | +**metadata_id** | **int** | | [optional] **run_id** | **int** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/compute_api_client/docs/ResultsApi.md b/compute_api_client/docs/ResultsApi.md index 5230f6c..f6a3974 100644 --- a/compute_api_client/docs/ResultsApi.md +++ b/compute_api_client/docs/ResultsApi.md @@ -42,56 +42,6 @@ configuration.api_key['runtime'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['runtime'] = 'Bearer' -# Configure API key authorization: user -configuration.api_key['user'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['user'] = 'Bearer' - -# Enter a context with an instance of the API client -with compute_api_client.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = compute_api_client.ResultsApi(api_client) - result_in = compute_api_client.ResultIn() # ResultIn | - - try: - # Create result - api_response = api_instance.create_result_results_post(result_in) - pprint(api_response) - except ApiException as e: - print("Exception when calling ResultsApi->create_result_results_post: %s\n" % e) -``` - -* Api Key Authentication (user): -```python -from __future__ import print_function -import time -import compute_api_client -from compute_api_client.rest import ApiException -from pprint import pprint -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = compute_api_client.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: runtime -configuration.api_key['runtime'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['runtime'] = 'Bearer' - -# Configure API key authorization: user -configuration.api_key['user'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['user'] = 'Bearer' - # Enter a context with an instance of the API client with compute_api_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -118,7 +68,7 @@ Name | Type | Description | Notes ### Authorization -[runtime](../README.md#runtime), [user](../README.md#user) +[runtime](../README.md#runtime) ### HTTP request headers diff --git a/compute_api_client/exceptions.py b/compute_api_client/exceptions.py index e765174..6f8fe78 100644 --- a/compute_api_client/exceptions.py +++ b/compute_api_client/exceptions.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - Compute Job Manager + Quantum Inspire 2 No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/compute_api_client/models/__init__.py b/compute_api_client/models/__init__.py index ab54b97..8bd1230 100644 --- a/compute_api_client/models/__init__.py +++ b/compute_api_client/models/__init__.py @@ -2,7 +2,7 @@ # flake8: noqa """ - Compute Job Manager + Quantum Inspire 2 No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/compute_api_client/models/algorithm.py b/compute_api_client/models/algorithm.py index 0e42dfc..190a06e 100644 --- a/compute_api_client/models/algorithm.py +++ b/compute_api_client/models/algorithm.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - Compute Job Manager + Quantum Inspire 2 No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/compute_api_client/models/algorithm_in.py b/compute_api_client/models/algorithm_in.py index 925747c..37a719f 100644 --- a/compute_api_client/models/algorithm_in.py +++ b/compute_api_client/models/algorithm_in.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - Compute Job Manager + Quantum Inspire 2 No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/compute_api_client/models/algorithm_type.py b/compute_api_client/models/algorithm_type.py index 94bd20b..eb8fcc1 100644 --- a/compute_api_client/models/algorithm_type.py +++ b/compute_api_client/models/algorithm_type.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - Compute Job Manager + Quantum Inspire 2 No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/compute_api_client/models/batch_run.py b/compute_api_client/models/batch_run.py index 0dcc924..9c0b12e 100644 --- a/compute_api_client/models/batch_run.py +++ b/compute_api_client/models/batch_run.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - Compute Job Manager + Quantum Inspire 2 No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/compute_api_client/models/batch_run_in.py b/compute_api_client/models/batch_run_in.py index 73d1cf2..649bf3e 100644 --- a/compute_api_client/models/batch_run_in.py +++ b/compute_api_client/models/batch_run_in.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - Compute Job Manager + Quantum Inspire 2 No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/compute_api_client/models/batch_run_status.py b/compute_api_client/models/batch_run_status.py index 8608328..d90d76d 100644 --- a/compute_api_client/models/batch_run_status.py +++ b/compute_api_client/models/batch_run_status.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - Compute Job Manager + Quantum Inspire 2 No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/compute_api_client/models/commit.py b/compute_api_client/models/commit.py index 896bd8f..18fb007 100644 --- a/compute_api_client/models/commit.py +++ b/compute_api_client/models/commit.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - Compute Job Manager + Quantum Inspire 2 No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/compute_api_client/models/commit_in.py b/compute_api_client/models/commit_in.py index 1e84e0e..30f6a00 100644 --- a/compute_api_client/models/commit_in.py +++ b/compute_api_client/models/commit_in.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - Compute Job Manager + Quantum Inspire 2 No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/compute_api_client/models/compile_stage.py b/compute_api_client/models/compile_stage.py index d7f50f9..d246e7b 100644 --- a/compute_api_client/models/compile_stage.py +++ b/compute_api_client/models/compile_stage.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - Compute Job Manager + Quantum Inspire 2 No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/compute_api_client/models/domain.py b/compute_api_client/models/domain.py index 124a1f9..a1029c0 100644 --- a/compute_api_client/models/domain.py +++ b/compute_api_client/models/domain.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - Compute Job Manager + Quantum Inspire 2 No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/compute_api_client/models/file.py b/compute_api_client/models/file.py index 0bea5af..4540192 100644 --- a/compute_api_client/models/file.py +++ b/compute_api_client/models/file.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - Compute Job Manager + Quantum Inspire 2 No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/compute_api_client/models/file_in.py b/compute_api_client/models/file_in.py index 47ec4d0..467159b 100644 --- a/compute_api_client/models/file_in.py +++ b/compute_api_client/models/file_in.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - Compute Job Manager + Quantum Inspire 2 No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/compute_api_client/models/final_result.py b/compute_api_client/models/final_result.py index 7472458..f5a24ee 100644 --- a/compute_api_client/models/final_result.py +++ b/compute_api_client/models/final_result.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - Compute Job Manager + Quantum Inspire 2 No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/compute_api_client/models/final_result_in.py b/compute_api_client/models/final_result_in.py index 7995358..aace2fa 100644 --- a/compute_api_client/models/final_result_in.py +++ b/compute_api_client/models/final_result_in.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - Compute Job Manager + Quantum Inspire 2 No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/compute_api_client/models/http_not_found_error.py b/compute_api_client/models/http_not_found_error.py index 3d475f1..f3aa453 100644 --- a/compute_api_client/models/http_not_found_error.py +++ b/compute_api_client/models/http_not_found_error.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - Compute Job Manager + Quantum Inspire 2 No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/compute_api_client/models/http_validation_error.py b/compute_api_client/models/http_validation_error.py index bc18671..8f71df4 100644 --- a/compute_api_client/models/http_validation_error.py +++ b/compute_api_client/models/http_validation_error.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - Compute Job Manager + Quantum Inspire 2 No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/compute_api_client/models/language.py b/compute_api_client/models/language.py index 8d6f914..b5e6ac6 100644 --- a/compute_api_client/models/language.py +++ b/compute_api_client/models/language.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - Compute Job Manager + Quantum Inspire 2 No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/compute_api_client/models/location_inner.py b/compute_api_client/models/location_inner.py index 47649c1..fa6dc4c 100644 --- a/compute_api_client/models/location_inner.py +++ b/compute_api_client/models/location_inner.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - Compute Job Manager + Quantum Inspire 2 No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/compute_api_client/models/member.py b/compute_api_client/models/member.py index f9480b2..5317dc4 100644 --- a/compute_api_client/models/member.py +++ b/compute_api_client/models/member.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - Compute Job Manager + Quantum Inspire 2 No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/compute_api_client/models/member_in.py b/compute_api_client/models/member_in.py index 2870987..baac2ad 100644 --- a/compute_api_client/models/member_in.py +++ b/compute_api_client/models/member_in.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - Compute Job Manager + Quantum Inspire 2 No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/compute_api_client/models/metadata.py b/compute_api_client/models/metadata.py index 8904fa6..96b6942 100644 --- a/compute_api_client/models/metadata.py +++ b/compute_api_client/models/metadata.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - Compute Job Manager + Quantum Inspire 2 No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/compute_api_client/models/metadata_in.py b/compute_api_client/models/metadata_in.py index eeb7deb..85fde95 100644 --- a/compute_api_client/models/metadata_in.py +++ b/compute_api_client/models/metadata_in.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - Compute Job Manager + Quantum Inspire 2 No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/compute_api_client/models/permission.py b/compute_api_client/models/permission.py index f83801c..6dafd40 100644 --- a/compute_api_client/models/permission.py +++ b/compute_api_client/models/permission.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - Compute Job Manager + Quantum Inspire 2 No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/compute_api_client/models/permission_group.py b/compute_api_client/models/permission_group.py index 6078eab..e5008e5 100644 --- a/compute_api_client/models/permission_group.py +++ b/compute_api_client/models/permission_group.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - Compute Job Manager + Quantum Inspire 2 No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/compute_api_client/models/project.py b/compute_api_client/models/project.py index ff2b948..cb5ba33 100644 --- a/compute_api_client/models/project.py +++ b/compute_api_client/models/project.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - Compute Job Manager + Quantum Inspire 2 No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/compute_api_client/models/project_in.py b/compute_api_client/models/project_in.py index 4ac5778..4602ff7 100644 --- a/compute_api_client/models/project_in.py +++ b/compute_api_client/models/project_in.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - Compute Job Manager + Quantum Inspire 2 No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/compute_api_client/models/project_patch.py b/compute_api_client/models/project_patch.py index 4096f9e..6300bf5 100644 --- a/compute_api_client/models/project_patch.py +++ b/compute_api_client/models/project_patch.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - Compute Job Manager + Quantum Inspire 2 No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/compute_api_client/models/reservation.py b/compute_api_client/models/reservation.py index 0714571..a751aea 100644 --- a/compute_api_client/models/reservation.py +++ b/compute_api_client/models/reservation.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - Compute Job Manager + Quantum Inspire 2 No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/compute_api_client/models/reservation_in.py b/compute_api_client/models/reservation_in.py index 9f3141f..ba1ed09 100644 --- a/compute_api_client/models/reservation_in.py +++ b/compute_api_client/models/reservation_in.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - Compute Job Manager + Quantum Inspire 2 No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/compute_api_client/models/result.py b/compute_api_client/models/result.py index 2f01e14..0c11e1d 100644 --- a/compute_api_client/models/result.py +++ b/compute_api_client/models/result.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - Compute Job Manager + Quantum Inspire 2 No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/compute_api_client/models/result_in.py b/compute_api_client/models/result_in.py index 0da52f1..c5e42a6 100644 --- a/compute_api_client/models/result_in.py +++ b/compute_api_client/models/result_in.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - Compute Job Manager + Quantum Inspire 2 No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 @@ -75,7 +75,8 @@ def __init__(self, number_of_qubits=None, execution_time_in_seconds=None, shots_ self.shots_requested = shots_requested self.shots_done = shots_done self.results = results - self.metadata_id = metadata_id + if metadata_id is not None: + self.metadata_id = metadata_id self.run_id = run_id @property @@ -223,8 +224,6 @@ def metadata_id(self, metadata_id): :param metadata_id: The metadata_id of this ResultIn. # noqa: E501 :type metadata_id: int """ - if self.local_vars_configuration.client_side_validation and metadata_id is None: # noqa: E501 - raise ValueError("Invalid value for `metadata_id`, must not be `None`") # noqa: E501 if (self.local_vars_configuration.client_side_validation and metadata_id is not None and metadata_id > 2147483647): # noqa: E501 raise ValueError("Invalid value for `metadata_id`, must be a value less than or equal to `2147483647`") # noqa: E501 diff --git a/compute_api_client/models/role.py b/compute_api_client/models/role.py index 952359a..45dbc1b 100644 --- a/compute_api_client/models/role.py +++ b/compute_api_client/models/role.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - Compute Job Manager + Quantum Inspire 2 No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/compute_api_client/models/run.py b/compute_api_client/models/run.py index 546a5b6..f373852 100644 --- a/compute_api_client/models/run.py +++ b/compute_api_client/models/run.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - Compute Job Manager + Quantum Inspire 2 No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/compute_api_client/models/run_in.py b/compute_api_client/models/run_in.py index 42be6d2..71263c5 100644 --- a/compute_api_client/models/run_in.py +++ b/compute_api_client/models/run_in.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - Compute Job Manager + Quantum Inspire 2 No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/compute_api_client/models/run_status.py b/compute_api_client/models/run_status.py index 9dfb33d..692755d 100644 --- a/compute_api_client/models/run_status.py +++ b/compute_api_client/models/run_status.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - Compute Job Manager + Quantum Inspire 2 No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/compute_api_client/models/runtime.py b/compute_api_client/models/runtime.py index 8fef2b9..9cb5747 100644 --- a/compute_api_client/models/runtime.py +++ b/compute_api_client/models/runtime.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - Compute Job Manager + Quantum Inspire 2 No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/compute_api_client/models/runtime_status.py b/compute_api_client/models/runtime_status.py index 9630969..e9c8c40 100644 --- a/compute_api_client/models/runtime_status.py +++ b/compute_api_client/models/runtime_status.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - Compute Job Manager + Quantum Inspire 2 No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/compute_api_client/models/runtime_type.py b/compute_api_client/models/runtime_type.py index 2d2cf13..726fb29 100644 --- a/compute_api_client/models/runtime_type.py +++ b/compute_api_client/models/runtime_type.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - Compute Job Manager + Quantum Inspire 2 No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/compute_api_client/models/runtime_with_authentication.py b/compute_api_client/models/runtime_with_authentication.py index 3c98285..8629f0d 100644 --- a/compute_api_client/models/runtime_with_authentication.py +++ b/compute_api_client/models/runtime_with_authentication.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - Compute Job Manager + Quantum Inspire 2 No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/compute_api_client/models/share_type.py b/compute_api_client/models/share_type.py index b479c17..3247d64 100644 --- a/compute_api_client/models/share_type.py +++ b/compute_api_client/models/share_type.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - Compute Job Manager + Quantum Inspire 2 No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/compute_api_client/models/team.py b/compute_api_client/models/team.py index b09c6f8..f0c7a9e 100644 --- a/compute_api_client/models/team.py +++ b/compute_api_client/models/team.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - Compute Job Manager + Quantum Inspire 2 No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/compute_api_client/models/transaction.py b/compute_api_client/models/transaction.py index 60dee7c..fe20b92 100644 --- a/compute_api_client/models/transaction.py +++ b/compute_api_client/models/transaction.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - Compute Job Manager + Quantum Inspire 2 No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/compute_api_client/models/user.py b/compute_api_client/models/user.py index eaf9321..42c89e9 100644 --- a/compute_api_client/models/user.py +++ b/compute_api_client/models/user.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - Compute Job Manager + Quantum Inspire 2 No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/compute_api_client/models/user_in.py b/compute_api_client/models/user_in.py index 495b01a..f565c22 100644 --- a/compute_api_client/models/user_in.py +++ b/compute_api_client/models/user_in.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - Compute Job Manager + Quantum Inspire 2 No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/compute_api_client/models/validation_error.py b/compute_api_client/models/validation_error.py index a6d56fe..e779229 100644 --- a/compute_api_client/models/validation_error.py +++ b/compute_api_client/models/validation_error.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - Compute Job Manager + Quantum Inspire 2 No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/compute_api_client/rest.py b/compute_api_client/rest.py index 6296bc4..15f217f 100644 --- a/compute_api_client/rest.py +++ b/compute_api_client/rest.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - Compute Job Manager + Quantum Inspire 2 No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/pyproject.toml b/pyproject.toml index 8f1624b..6558f83 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "qi-compute-api-client" -version = "0.6.0" +version = "0.7.0" description = "An API client for the Compute Job Manager of Quantum Inspire." license = "Apache-2.0" authors = ["Quantum Inspire "]