File tree Expand file tree Collapse file tree 5 files changed +12
-5
lines changed
Expand file tree Collapse file tree 5 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -181,5 +181,4 @@ compute_api_client/models/user_in.py
181181compute_api_client/models/validation_error.py
182182compute_api_client/rest.py
183183compute_api_client/test/__init__.py
184- compute_api_client/test/test_http_bad_request_error.py
185184compute_api_client_README.md
Original file line number Diff line number Diff 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 >
Original file line number Diff line number Diff 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 (
Original file line number Diff line number Diff 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
2223import time
2324import os
@@ -39,6 +40,12 @@ configuration = compute_api_client.Configuration(
3940
4041configuration.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
4350async 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
Original file line number Diff line number Diff line change 11[tool .poetry ]
22name = " qi-compute-api-client"
3- version = " 0.40 .0"
3+ version = " 0.41 .0"
44description = " An API client for the Compute Job Manager of Quantum Inspire."
55license = " Apache-2.0"
66authors = [
" Quantum Inspire <[email protected] >" ]
You can’t perform that action at this time.
0 commit comments