Skip to content

Commit feea72b

Browse files
author
qutech-machine
committed
[QI2-1184] Enforce maximum shots for backend
1 parent 3e2f3ac commit feea72b

File tree

5 files changed

+12
-5
lines changed

5 files changed

+12
-5
lines changed

.openapi-generator/FILES

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,5 +181,4 @@ compute_api_client/models/user_in.py
181181
compute_api_client/models/validation_error.py
182182
compute_api_client/rest.py
183183
compute_api_client/test/__init__.py
184-
compute_api_client/test/test_http_bad_request_error.py
185184
compute_api_client_README.md

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ Authentication schemes defined for the API:
227227

228228
- **Type**: OAuth
229229
- **Flow**: accessCode
230-
- **Authorization URL**: https://auth.qi2.quantum-inspire.com/realms/oidc_development/protocol/openid-connect/auth
230+
- **Authorization URL**: https://auth.qi2.quantum-inspire.com/realms/oidc_staging/protocol/openid-connect/auth
231231
- **Scopes**: N/A
232232

233233
<a id="backend"></a>

compute_api_client/api/backend_types_api.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,8 @@ def _read_backend_type_backend_types_id_get_serialize(
298298

299299
# authentication setting
300300
_auth_settings: List[str] = [
301-
'user_bearer'
301+
'user_bearer',
302+
'backend'
302303
]
303304

304305
return self.api_client.param_serialize(

compute_api_client/docs/BackendTypesApi.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Get backend type by ID.
1818
### Example
1919

2020
* OAuth Authentication (user_bearer):
21+
* Api Key Authentication (backend):
2122
```python
2223
import time
2324
import os
@@ -39,6 +40,12 @@ configuration = compute_api_client.Configuration(
3940

4041
configuration.access_token = os.environ["ACCESS_TOKEN"]
4142

43+
# Configure API key authorization: backend
44+
configuration.api_key['backend'] = os.environ["API_KEY"]
45+
46+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
47+
# configuration.api_key_prefix['backend'] = 'Bearer'
48+
4249
# Enter a context with an instance of the API client
4350
async with compute_api_client.ApiClient(configuration) as api_client:
4451
# Create an instance of the API class
@@ -68,7 +75,7 @@ Name | Type | Description | Notes
6875

6976
### Authorization
7077

71-
[user_bearer](../README.md#user_bearer)
78+
[user_bearer](../README.md#user_bearer), [backend](../README.md#backend)
7279

7380
### HTTP request headers
7481

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "qi-compute-api-client"
3-
version = "0.40.0"
3+
version = "0.41.0"
44
description = "An API client for the Compute Job Manager of Quantum Inspire."
55
license = "Apache-2.0"
66
authors = ["Quantum Inspire <[email protected]>"]

0 commit comments

Comments
 (0)