Skip to content

Commit

Permalink
[QI2-470] Results use latest metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
koffie committed Jul 11, 2023
1 parent 072b405 commit ae80421
Show file tree
Hide file tree
Showing 72 changed files with 75 additions and 126 deletions.
2 changes: 1 addition & 1 deletion compute_api_client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion compute_api_client/api/algorithms_api.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion compute_api_client/api/batch_runs_api.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion compute_api_client/api/commits_api.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion compute_api_client/api/files_api.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion compute_api_client/api/final_results_api.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion compute_api_client/api/languages_api.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion compute_api_client/api/members_api.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion compute_api_client/api/metadata_api.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion compute_api_client/api/permissions_api.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion compute_api_client/api/projects_api.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion compute_api_client/api/reservations_api.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions compute_api_client/api/results_api.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion compute_api_client/api/runs_api.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion compute_api_client/api/runtime_api.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion compute_api_client/api/runtime_types_api.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion compute_api_client/api/teams_api.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion compute_api_client/api/transactions_api.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion compute_api_client/api/users_api.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion compute_api_client/api_client.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion compute_api_client/configuration.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion compute_api_client/docs/ResultIn.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
52 changes: 1 addition & 51 deletions compute_api_client/docs/ResultsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -118,7 +68,7 @@ Name | Type | Description | Notes

### Authorization

[runtime](../README.md#runtime), [user](../README.md#user)
[runtime](../README.md#runtime)

### HTTP request headers

Expand Down
2 changes: 1 addition & 1 deletion compute_api_client/exceptions.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion compute_api_client/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion compute_api_client/models/algorithm.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion compute_api_client/models/algorithm_in.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion compute_api_client/models/algorithm_type.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion compute_api_client/models/batch_run.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion compute_api_client/models/batch_run_in.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion compute_api_client/models/batch_run_status.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion compute_api_client/models/commit.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion compute_api_client/models/commit_in.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion compute_api_client/models/compile_stage.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion compute_api_client/models/domain.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion compute_api_client/models/file.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion compute_api_client/models/file_in.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Loading

0 comments on commit ae80421

Please sign in to comment.