qi-compute-api-client 0.38.2__py3-none-any.whl → 0.42.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.
- compute_api_client/__init__.py +3 -0
- compute_api_client/api/__init__.py +1 -0
- compute_api_client/api/auth_config_api.py +286 -0
- compute_api_client/api/backend_types_api.py +19 -1
- compute_api_client/api/jobs_api.py +17 -0
- compute_api_client/api/results_api.py +17 -0
- compute_api_client/docs/AuthConfig.md +30 -0
- compute_api_client/docs/AuthConfigApi.md +70 -0
- compute_api_client/docs/BackendType.md +1 -0
- compute_api_client/docs/BackendTypesApi.md +12 -3
- compute_api_client/docs/CommitsApi.md +1 -0
- compute_api_client/docs/HTTPBadRequestError.md +28 -0
- compute_api_client/docs/Job.md +1 -0
- compute_api_client/docs/JobIn.md +1 -0
- compute_api_client/docs/JobsApi.md +4 -2
- compute_api_client/docs/Result.md +1 -0
- compute_api_client/docs/ResultIn.md +1 -0
- compute_api_client/docs/ResultsApi.md +4 -2
- compute_api_client/models/__init__.py +2 -0
- compute_api_client/models/auth_config.py +91 -0
- compute_api_client/models/backend_type.py +3 -1
- compute_api_client/models/http_bad_request_error.py +87 -0
- compute_api_client/models/job.py +5 -3
- compute_api_client/models/job_in.py +5 -3
- compute_api_client/models/result.py +10 -3
- compute_api_client/models/result_in.py +10 -3
- {qi_compute_api_client-0.38.2.dist-info → qi_compute_api_client-0.42.0.dist-info}/METADATA +5 -2
- {qi_compute_api_client-0.38.2.dist-info → qi_compute_api_client-0.42.0.dist-info}/RECORD +30 -24
- {qi_compute_api_client-0.38.2.dist-info → qi_compute_api_client-0.42.0.dist-info}/LICENSE.md +0 -0
- {qi_compute_api_client-0.38.2.dist-info → qi_compute_api_client-0.42.0.dist-info}/WHEEL +0 -0
compute_api_client/__init__.py
CHANGED
|
@@ -18,6 +18,7 @@ __version__ = "1.0.0"
|
|
|
18
18
|
|
|
19
19
|
# import apis into sdk package
|
|
20
20
|
from compute_api_client.api.algorithms_api import AlgorithmsApi
|
|
21
|
+
from compute_api_client.api.auth_config_api import AuthConfigApi
|
|
21
22
|
from compute_api_client.api.backend_api import BackendApi
|
|
22
23
|
from compute_api_client.api.backend_types_api import BackendTypesApi
|
|
23
24
|
from compute_api_client.api.batch_jobs_api import BatchJobsApi
|
|
@@ -52,6 +53,7 @@ from compute_api_client.exceptions import ApiException
|
|
|
52
53
|
from compute_api_client.models.algorithm import Algorithm
|
|
53
54
|
from compute_api_client.models.algorithm_in import AlgorithmIn
|
|
54
55
|
from compute_api_client.models.algorithm_type import AlgorithmType
|
|
56
|
+
from compute_api_client.models.auth_config import AuthConfig
|
|
55
57
|
from compute_api_client.models.backend import Backend
|
|
56
58
|
from compute_api_client.models.backend_in import BackendIn
|
|
57
59
|
from compute_api_client.models.backend_patch import BackendPatch
|
|
@@ -70,6 +72,7 @@ from compute_api_client.models.file import File
|
|
|
70
72
|
from compute_api_client.models.file_in import FileIn
|
|
71
73
|
from compute_api_client.models.final_result import FinalResult
|
|
72
74
|
from compute_api_client.models.final_result_in import FinalResultIn
|
|
75
|
+
from compute_api_client.models.http_bad_request_error import HTTPBadRequestError
|
|
73
76
|
from compute_api_client.models.http_not_found_error import HTTPNotFoundError
|
|
74
77
|
from compute_api_client.models.http_validation_error import HTTPValidationError
|
|
75
78
|
from compute_api_client.models.job import Job
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# import apis into api package
|
|
4
4
|
from compute_api_client.api.algorithms_api import AlgorithmsApi
|
|
5
|
+
from compute_api_client.api.auth_config_api import AuthConfigApi
|
|
5
6
|
from compute_api_client.api.backend_api import BackendApi
|
|
6
7
|
from compute_api_client.api.backend_types_api import BackendTypesApi
|
|
7
8
|
from compute_api_client.api.batch_jobs_api import BatchJobsApi
|
|
@@ -0,0 +1,286 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Quantum Inspire 2
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 0.1.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
import io
|
|
16
|
+
import warnings
|
|
17
|
+
|
|
18
|
+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
19
|
+
from typing import Dict, List, Optional, Tuple, Union, Any
|
|
20
|
+
|
|
21
|
+
try:
|
|
22
|
+
from typing import Annotated
|
|
23
|
+
except ImportError:
|
|
24
|
+
from typing_extensions import Annotated
|
|
25
|
+
|
|
26
|
+
from compute_api_client.models.auth_config import AuthConfig
|
|
27
|
+
|
|
28
|
+
from compute_api_client.api_client import ApiClient
|
|
29
|
+
from compute_api_client.api_response import ApiResponse
|
|
30
|
+
from compute_api_client.rest import RESTResponseType
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
class AuthConfigApi:
|
|
34
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
35
|
+
Ref: https://openapi-generator.tech
|
|
36
|
+
|
|
37
|
+
Do not edit the class manually.
|
|
38
|
+
"""
|
|
39
|
+
|
|
40
|
+
def __init__(self, api_client=None) -> None:
|
|
41
|
+
if api_client is None:
|
|
42
|
+
api_client = ApiClient.get_default()
|
|
43
|
+
self.api_client = api_client
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
@validate_call
|
|
47
|
+
async def auth_config_auth_config_get(
|
|
48
|
+
self,
|
|
49
|
+
_request_timeout: Union[
|
|
50
|
+
None,
|
|
51
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
52
|
+
Tuple[
|
|
53
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
54
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
55
|
+
]
|
|
56
|
+
] = None,
|
|
57
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
58
|
+
_content_type: Optional[StrictStr] = None,
|
|
59
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
60
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
61
|
+
) -> AuthConfig:
|
|
62
|
+
"""Get suggested authentication configuration
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
66
|
+
number provided, it will be total request
|
|
67
|
+
timeout. It can also be a pair (tuple) of
|
|
68
|
+
(connection, read) timeouts.
|
|
69
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
70
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
71
|
+
request; this effectively ignores the
|
|
72
|
+
authentication in the spec for a single request.
|
|
73
|
+
:type _request_auth: dict, optional
|
|
74
|
+
:param _content_type: force content-type for the request.
|
|
75
|
+
:type _content_type: str, Optional
|
|
76
|
+
:param _headers: set to override the headers for a single
|
|
77
|
+
request; this effectively ignores the headers
|
|
78
|
+
in the spec for a single request.
|
|
79
|
+
:type _headers: dict, optional
|
|
80
|
+
:param _host_index: set to override the host_index for a single
|
|
81
|
+
request; this effectively ignores the host_index
|
|
82
|
+
in the spec for a single request.
|
|
83
|
+
:type _host_index: int, optional
|
|
84
|
+
:return: Returns the result object.
|
|
85
|
+
""" # noqa: E501
|
|
86
|
+
|
|
87
|
+
_param = self._auth_config_auth_config_get_serialize(
|
|
88
|
+
_request_auth=_request_auth,
|
|
89
|
+
_content_type=_content_type,
|
|
90
|
+
_headers=_headers,
|
|
91
|
+
_host_index=_host_index
|
|
92
|
+
)
|
|
93
|
+
|
|
94
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
95
|
+
'200': "AuthConfig"
|
|
96
|
+
|
|
97
|
+
}
|
|
98
|
+
response_data = await self.api_client.call_api(
|
|
99
|
+
*_param,
|
|
100
|
+
_request_timeout=_request_timeout
|
|
101
|
+
)
|
|
102
|
+
await response_data.read()
|
|
103
|
+
return self.api_client.response_deserialize(
|
|
104
|
+
response_data=response_data,
|
|
105
|
+
response_types_map=_response_types_map,
|
|
106
|
+
).data
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
@validate_call
|
|
110
|
+
async def auth_config_auth_config_get_with_http_info(
|
|
111
|
+
self,
|
|
112
|
+
_request_timeout: Union[
|
|
113
|
+
None,
|
|
114
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
115
|
+
Tuple[
|
|
116
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
117
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
118
|
+
]
|
|
119
|
+
] = None,
|
|
120
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
121
|
+
_content_type: Optional[StrictStr] = None,
|
|
122
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
123
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
124
|
+
) -> ApiResponse[AuthConfig]:
|
|
125
|
+
"""Get suggested authentication configuration
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
129
|
+
number provided, it will be total request
|
|
130
|
+
timeout. It can also be a pair (tuple) of
|
|
131
|
+
(connection, read) timeouts.
|
|
132
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
133
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
134
|
+
request; this effectively ignores the
|
|
135
|
+
authentication in the spec for a single request.
|
|
136
|
+
:type _request_auth: dict, optional
|
|
137
|
+
:param _content_type: force content-type for the request.
|
|
138
|
+
:type _content_type: str, Optional
|
|
139
|
+
:param _headers: set to override the headers for a single
|
|
140
|
+
request; this effectively ignores the headers
|
|
141
|
+
in the spec for a single request.
|
|
142
|
+
:type _headers: dict, optional
|
|
143
|
+
:param _host_index: set to override the host_index for a single
|
|
144
|
+
request; this effectively ignores the host_index
|
|
145
|
+
in the spec for a single request.
|
|
146
|
+
:type _host_index: int, optional
|
|
147
|
+
:return: Returns the result object.
|
|
148
|
+
""" # noqa: E501
|
|
149
|
+
|
|
150
|
+
_param = self._auth_config_auth_config_get_serialize(
|
|
151
|
+
_request_auth=_request_auth,
|
|
152
|
+
_content_type=_content_type,
|
|
153
|
+
_headers=_headers,
|
|
154
|
+
_host_index=_host_index
|
|
155
|
+
)
|
|
156
|
+
|
|
157
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
158
|
+
'200': "AuthConfig"
|
|
159
|
+
|
|
160
|
+
}
|
|
161
|
+
response_data = await self.api_client.call_api(
|
|
162
|
+
*_param,
|
|
163
|
+
_request_timeout=_request_timeout
|
|
164
|
+
)
|
|
165
|
+
await response_data.read()
|
|
166
|
+
return self.api_client.response_deserialize(
|
|
167
|
+
response_data=response_data,
|
|
168
|
+
response_types_map=_response_types_map,
|
|
169
|
+
)
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
@validate_call
|
|
173
|
+
async def auth_config_auth_config_get_without_preload_content(
|
|
174
|
+
self,
|
|
175
|
+
_request_timeout: Union[
|
|
176
|
+
None,
|
|
177
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
178
|
+
Tuple[
|
|
179
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
180
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
181
|
+
]
|
|
182
|
+
] = None,
|
|
183
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
184
|
+
_content_type: Optional[StrictStr] = None,
|
|
185
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
186
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
187
|
+
) -> RESTResponseType:
|
|
188
|
+
"""Get suggested authentication configuration
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
192
|
+
number provided, it will be total request
|
|
193
|
+
timeout. It can also be a pair (tuple) of
|
|
194
|
+
(connection, read) timeouts.
|
|
195
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
196
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
197
|
+
request; this effectively ignores the
|
|
198
|
+
authentication in the spec for a single request.
|
|
199
|
+
:type _request_auth: dict, optional
|
|
200
|
+
:param _content_type: force content-type for the request.
|
|
201
|
+
:type _content_type: str, Optional
|
|
202
|
+
:param _headers: set to override the headers for a single
|
|
203
|
+
request; this effectively ignores the headers
|
|
204
|
+
in the spec for a single request.
|
|
205
|
+
:type _headers: dict, optional
|
|
206
|
+
:param _host_index: set to override the host_index for a single
|
|
207
|
+
request; this effectively ignores the host_index
|
|
208
|
+
in the spec for a single request.
|
|
209
|
+
:type _host_index: int, optional
|
|
210
|
+
:return: Returns the result object.
|
|
211
|
+
""" # noqa: E501
|
|
212
|
+
|
|
213
|
+
_param = self._auth_config_auth_config_get_serialize(
|
|
214
|
+
_request_auth=_request_auth,
|
|
215
|
+
_content_type=_content_type,
|
|
216
|
+
_headers=_headers,
|
|
217
|
+
_host_index=_host_index
|
|
218
|
+
)
|
|
219
|
+
|
|
220
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
221
|
+
'200': "AuthConfig"
|
|
222
|
+
|
|
223
|
+
}
|
|
224
|
+
response_data = await self.api_client.call_api(
|
|
225
|
+
*_param,
|
|
226
|
+
_request_timeout=_request_timeout
|
|
227
|
+
)
|
|
228
|
+
return response_data.response
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
def _auth_config_auth_config_get_serialize(
|
|
232
|
+
self,
|
|
233
|
+
_request_auth,
|
|
234
|
+
_content_type,
|
|
235
|
+
_headers,
|
|
236
|
+
_host_index,
|
|
237
|
+
) -> Tuple:
|
|
238
|
+
|
|
239
|
+
_host = None
|
|
240
|
+
|
|
241
|
+
_collection_formats: Dict[str, str] = {
|
|
242
|
+
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
_path_params: Dict[str, str] = {}
|
|
246
|
+
_query_params: List[Tuple[str, str]] = []
|
|
247
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
248
|
+
_form_params: List[Tuple[str, str]] = []
|
|
249
|
+
_files: Dict[str, str] = {}
|
|
250
|
+
_body_params: Optional[bytes] = None
|
|
251
|
+
|
|
252
|
+
# process the path parameters
|
|
253
|
+
# process the query parameters
|
|
254
|
+
# process the header parameters
|
|
255
|
+
# process the form parameters
|
|
256
|
+
# process the body parameter
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
# set the HTTP header `Accept`
|
|
260
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
261
|
+
[
|
|
262
|
+
'application/json'
|
|
263
|
+
]
|
|
264
|
+
)
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
# authentication setting
|
|
268
|
+
_auth_settings: List[str] = [
|
|
269
|
+
]
|
|
270
|
+
|
|
271
|
+
return self.api_client.param_serialize(
|
|
272
|
+
method='GET',
|
|
273
|
+
resource_path='/auth_config',
|
|
274
|
+
path_params=_path_params,
|
|
275
|
+
query_params=_query_params,
|
|
276
|
+
header_params=_header_params,
|
|
277
|
+
body=_body_params,
|
|
278
|
+
post_params=_form_params,
|
|
279
|
+
files=_files,
|
|
280
|
+
auth_settings=_auth_settings,
|
|
281
|
+
collection_formats=_collection_formats,
|
|
282
|
+
_host=_host,
|
|
283
|
+
_request_auth=_request_auth
|
|
284
|
+
)
|
|
285
|
+
|
|
286
|
+
|
|
@@ -298,7 +298,8 @@ class BackendTypesApi:
|
|
|
298
298
|
|
|
299
299
|
# authentication setting
|
|
300
300
|
_auth_settings: List[str] = [
|
|
301
|
-
'user_bearer'
|
|
301
|
+
'user_bearer',
|
|
302
|
+
'backend'
|
|
302
303
|
]
|
|
303
304
|
|
|
304
305
|
return self.api_client.param_serialize(
|
|
@@ -328,6 +329,7 @@ class BackendTypesApi:
|
|
|
328
329
|
description: Optional[StrictStr] = None,
|
|
329
330
|
image_id: Optional[StrictStr] = None,
|
|
330
331
|
is_hardware: Optional[StrictBool] = None,
|
|
332
|
+
supports_raw_data: Optional[StrictBool] = None,
|
|
331
333
|
nqubits: Optional[StrictInt] = None,
|
|
332
334
|
status: Optional[BackendStatus] = None,
|
|
333
335
|
default_number_of_shots: Optional[StrictInt] = None,
|
|
@@ -365,6 +367,8 @@ class BackendTypesApi:
|
|
|
365
367
|
:type image_id: str
|
|
366
368
|
:param is_hardware:
|
|
367
369
|
:type is_hardware: bool
|
|
370
|
+
:param supports_raw_data:
|
|
371
|
+
:type supports_raw_data: bool
|
|
368
372
|
:param nqubits:
|
|
369
373
|
:type nqubits: int
|
|
370
374
|
:param status:
|
|
@@ -410,6 +414,7 @@ class BackendTypesApi:
|
|
|
410
414
|
description=description,
|
|
411
415
|
image_id=image_id,
|
|
412
416
|
is_hardware=is_hardware,
|
|
417
|
+
supports_raw_data=supports_raw_data,
|
|
413
418
|
nqubits=nqubits,
|
|
414
419
|
status=status,
|
|
415
420
|
default_number_of_shots=default_number_of_shots,
|
|
@@ -449,6 +454,7 @@ class BackendTypesApi:
|
|
|
449
454
|
description: Optional[StrictStr] = None,
|
|
450
455
|
image_id: Optional[StrictStr] = None,
|
|
451
456
|
is_hardware: Optional[StrictBool] = None,
|
|
457
|
+
supports_raw_data: Optional[StrictBool] = None,
|
|
452
458
|
nqubits: Optional[StrictInt] = None,
|
|
453
459
|
status: Optional[BackendStatus] = None,
|
|
454
460
|
default_number_of_shots: Optional[StrictInt] = None,
|
|
@@ -486,6 +492,8 @@ class BackendTypesApi:
|
|
|
486
492
|
:type image_id: str
|
|
487
493
|
:param is_hardware:
|
|
488
494
|
:type is_hardware: bool
|
|
495
|
+
:param supports_raw_data:
|
|
496
|
+
:type supports_raw_data: bool
|
|
489
497
|
:param nqubits:
|
|
490
498
|
:type nqubits: int
|
|
491
499
|
:param status:
|
|
@@ -531,6 +539,7 @@ class BackendTypesApi:
|
|
|
531
539
|
description=description,
|
|
532
540
|
image_id=image_id,
|
|
533
541
|
is_hardware=is_hardware,
|
|
542
|
+
supports_raw_data=supports_raw_data,
|
|
534
543
|
nqubits=nqubits,
|
|
535
544
|
status=status,
|
|
536
545
|
default_number_of_shots=default_number_of_shots,
|
|
@@ -570,6 +579,7 @@ class BackendTypesApi:
|
|
|
570
579
|
description: Optional[StrictStr] = None,
|
|
571
580
|
image_id: Optional[StrictStr] = None,
|
|
572
581
|
is_hardware: Optional[StrictBool] = None,
|
|
582
|
+
supports_raw_data: Optional[StrictBool] = None,
|
|
573
583
|
nqubits: Optional[StrictInt] = None,
|
|
574
584
|
status: Optional[BackendStatus] = None,
|
|
575
585
|
default_number_of_shots: Optional[StrictInt] = None,
|
|
@@ -607,6 +617,8 @@ class BackendTypesApi:
|
|
|
607
617
|
:type image_id: str
|
|
608
618
|
:param is_hardware:
|
|
609
619
|
:type is_hardware: bool
|
|
620
|
+
:param supports_raw_data:
|
|
621
|
+
:type supports_raw_data: bool
|
|
610
622
|
:param nqubits:
|
|
611
623
|
:type nqubits: int
|
|
612
624
|
:param status:
|
|
@@ -652,6 +664,7 @@ class BackendTypesApi:
|
|
|
652
664
|
description=description,
|
|
653
665
|
image_id=image_id,
|
|
654
666
|
is_hardware=is_hardware,
|
|
667
|
+
supports_raw_data=supports_raw_data,
|
|
655
668
|
nqubits=nqubits,
|
|
656
669
|
status=status,
|
|
657
670
|
default_number_of_shots=default_number_of_shots,
|
|
@@ -686,6 +699,7 @@ class BackendTypesApi:
|
|
|
686
699
|
description,
|
|
687
700
|
image_id,
|
|
688
701
|
is_hardware,
|
|
702
|
+
supports_raw_data,
|
|
689
703
|
nqubits,
|
|
690
704
|
status,
|
|
691
705
|
default_number_of_shots,
|
|
@@ -739,6 +753,10 @@ class BackendTypesApi:
|
|
|
739
753
|
|
|
740
754
|
_query_params.append(('is_hardware', is_hardware))
|
|
741
755
|
|
|
756
|
+
if supports_raw_data is not None:
|
|
757
|
+
|
|
758
|
+
_query_params.append(('supports_raw_data', supports_raw_data))
|
|
759
|
+
|
|
742
760
|
if nqubits is not None:
|
|
743
761
|
|
|
744
762
|
_query_params.append(('nqubits', nqubits))
|
|
@@ -877,6 +877,7 @@ class JobsApi:
|
|
|
877
877
|
finished_at: Optional[datetime] = None,
|
|
878
878
|
number_of_shots__isnull: Optional[StrictBool] = None,
|
|
879
879
|
number_of_shots: Optional[StrictInt] = None,
|
|
880
|
+
raw_data_enabled: Optional[StrictBool] = None,
|
|
880
881
|
sort_by: Annotated[Optional[StrictStr], Field(description="The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'.")] = None,
|
|
881
882
|
latest: Annotated[Optional[StrictBool], Field(description="If True gets the most recently created object.")] = None,
|
|
882
883
|
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Page number")] = None,
|
|
@@ -922,6 +923,8 @@ class JobsApi:
|
|
|
922
923
|
:type number_of_shots__isnull: bool
|
|
923
924
|
:param number_of_shots:
|
|
924
925
|
:type number_of_shots: int
|
|
926
|
+
:param raw_data_enabled:
|
|
927
|
+
:type raw_data_enabled: bool
|
|
925
928
|
:param sort_by: The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'.
|
|
926
929
|
:type sort_by: str
|
|
927
930
|
:param latest: If True gets the most recently created object.
|
|
@@ -965,6 +968,7 @@ class JobsApi:
|
|
|
965
968
|
finished_at=finished_at,
|
|
966
969
|
number_of_shots__isnull=number_of_shots__isnull,
|
|
967
970
|
number_of_shots=number_of_shots,
|
|
971
|
+
raw_data_enabled=raw_data_enabled,
|
|
968
972
|
sort_by=sort_by,
|
|
969
973
|
latest=latest,
|
|
970
974
|
page=page,
|
|
@@ -1006,6 +1010,7 @@ class JobsApi:
|
|
|
1006
1010
|
finished_at: Optional[datetime] = None,
|
|
1007
1011
|
number_of_shots__isnull: Optional[StrictBool] = None,
|
|
1008
1012
|
number_of_shots: Optional[StrictInt] = None,
|
|
1013
|
+
raw_data_enabled: Optional[StrictBool] = None,
|
|
1009
1014
|
sort_by: Annotated[Optional[StrictStr], Field(description="The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'.")] = None,
|
|
1010
1015
|
latest: Annotated[Optional[StrictBool], Field(description="If True gets the most recently created object.")] = None,
|
|
1011
1016
|
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Page number")] = None,
|
|
@@ -1051,6 +1056,8 @@ class JobsApi:
|
|
|
1051
1056
|
:type number_of_shots__isnull: bool
|
|
1052
1057
|
:param number_of_shots:
|
|
1053
1058
|
:type number_of_shots: int
|
|
1059
|
+
:param raw_data_enabled:
|
|
1060
|
+
:type raw_data_enabled: bool
|
|
1054
1061
|
:param sort_by: The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'.
|
|
1055
1062
|
:type sort_by: str
|
|
1056
1063
|
:param latest: If True gets the most recently created object.
|
|
@@ -1094,6 +1101,7 @@ class JobsApi:
|
|
|
1094
1101
|
finished_at=finished_at,
|
|
1095
1102
|
number_of_shots__isnull=number_of_shots__isnull,
|
|
1096
1103
|
number_of_shots=number_of_shots,
|
|
1104
|
+
raw_data_enabled=raw_data_enabled,
|
|
1097
1105
|
sort_by=sort_by,
|
|
1098
1106
|
latest=latest,
|
|
1099
1107
|
page=page,
|
|
@@ -1135,6 +1143,7 @@ class JobsApi:
|
|
|
1135
1143
|
finished_at: Optional[datetime] = None,
|
|
1136
1144
|
number_of_shots__isnull: Optional[StrictBool] = None,
|
|
1137
1145
|
number_of_shots: Optional[StrictInt] = None,
|
|
1146
|
+
raw_data_enabled: Optional[StrictBool] = None,
|
|
1138
1147
|
sort_by: Annotated[Optional[StrictStr], Field(description="The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'.")] = None,
|
|
1139
1148
|
latest: Annotated[Optional[StrictBool], Field(description="If True gets the most recently created object.")] = None,
|
|
1140
1149
|
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Page number")] = None,
|
|
@@ -1180,6 +1189,8 @@ class JobsApi:
|
|
|
1180
1189
|
:type number_of_shots__isnull: bool
|
|
1181
1190
|
:param number_of_shots:
|
|
1182
1191
|
:type number_of_shots: int
|
|
1192
|
+
:param raw_data_enabled:
|
|
1193
|
+
:type raw_data_enabled: bool
|
|
1183
1194
|
:param sort_by: The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'.
|
|
1184
1195
|
:type sort_by: str
|
|
1185
1196
|
:param latest: If True gets the most recently created object.
|
|
@@ -1223,6 +1234,7 @@ class JobsApi:
|
|
|
1223
1234
|
finished_at=finished_at,
|
|
1224
1235
|
number_of_shots__isnull=number_of_shots__isnull,
|
|
1225
1236
|
number_of_shots=number_of_shots,
|
|
1237
|
+
raw_data_enabled=raw_data_enabled,
|
|
1226
1238
|
sort_by=sort_by,
|
|
1227
1239
|
latest=latest,
|
|
1228
1240
|
page=page,
|
|
@@ -1259,6 +1271,7 @@ class JobsApi:
|
|
|
1259
1271
|
finished_at,
|
|
1260
1272
|
number_of_shots__isnull,
|
|
1261
1273
|
number_of_shots,
|
|
1274
|
+
raw_data_enabled,
|
|
1262
1275
|
sort_by,
|
|
1263
1276
|
latest,
|
|
1264
1277
|
page,
|
|
@@ -1359,6 +1372,10 @@ class JobsApi:
|
|
|
1359
1372
|
|
|
1360
1373
|
_query_params.append(('number_of_shots', number_of_shots))
|
|
1361
1374
|
|
|
1375
|
+
if raw_data_enabled is not None:
|
|
1376
|
+
|
|
1377
|
+
_query_params.append(('raw_data_enabled', raw_data_enabled))
|
|
1378
|
+
|
|
1362
1379
|
if sort_by is not None:
|
|
1363
1380
|
|
|
1364
1381
|
_query_params.append(('sort_by', sort_by))
|
|
@@ -872,6 +872,7 @@ class ResultsApi:
|
|
|
872
872
|
shots_done__isnull: Optional[StrictBool] = None,
|
|
873
873
|
shots_done: Optional[StrictInt] = None,
|
|
874
874
|
results__isnull: Optional[StrictBool] = None,
|
|
875
|
+
raw_data__isnull: Optional[StrictBool] = None,
|
|
875
876
|
sort_by: Annotated[Optional[StrictStr], Field(description="The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'.")] = None,
|
|
876
877
|
latest: Annotated[Optional[StrictBool], Field(description="If True gets the most recently created object.")] = None,
|
|
877
878
|
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Page number")] = None,
|
|
@@ -915,6 +916,8 @@ class ResultsApi:
|
|
|
915
916
|
:type shots_done: int
|
|
916
917
|
:param results__isnull:
|
|
917
918
|
:type results__isnull: bool
|
|
919
|
+
:param raw_data__isnull:
|
|
920
|
+
:type raw_data__isnull: bool
|
|
918
921
|
:param sort_by: The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'.
|
|
919
922
|
:type sort_by: str
|
|
920
923
|
:param latest: If True gets the most recently created object.
|
|
@@ -957,6 +960,7 @@ class ResultsApi:
|
|
|
957
960
|
shots_done__isnull=shots_done__isnull,
|
|
958
961
|
shots_done=shots_done,
|
|
959
962
|
results__isnull=results__isnull,
|
|
963
|
+
raw_data__isnull=raw_data__isnull,
|
|
960
964
|
sort_by=sort_by,
|
|
961
965
|
latest=latest,
|
|
962
966
|
page=page,
|
|
@@ -998,6 +1002,7 @@ class ResultsApi:
|
|
|
998
1002
|
shots_done__isnull: Optional[StrictBool] = None,
|
|
999
1003
|
shots_done: Optional[StrictInt] = None,
|
|
1000
1004
|
results__isnull: Optional[StrictBool] = None,
|
|
1005
|
+
raw_data__isnull: Optional[StrictBool] = None,
|
|
1001
1006
|
sort_by: Annotated[Optional[StrictStr], Field(description="The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'.")] = None,
|
|
1002
1007
|
latest: Annotated[Optional[StrictBool], Field(description="If True gets the most recently created object.")] = None,
|
|
1003
1008
|
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Page number")] = None,
|
|
@@ -1041,6 +1046,8 @@ class ResultsApi:
|
|
|
1041
1046
|
:type shots_done: int
|
|
1042
1047
|
:param results__isnull:
|
|
1043
1048
|
:type results__isnull: bool
|
|
1049
|
+
:param raw_data__isnull:
|
|
1050
|
+
:type raw_data__isnull: bool
|
|
1044
1051
|
:param sort_by: The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'.
|
|
1045
1052
|
:type sort_by: str
|
|
1046
1053
|
:param latest: If True gets the most recently created object.
|
|
@@ -1083,6 +1090,7 @@ class ResultsApi:
|
|
|
1083
1090
|
shots_done__isnull=shots_done__isnull,
|
|
1084
1091
|
shots_done=shots_done,
|
|
1085
1092
|
results__isnull=results__isnull,
|
|
1093
|
+
raw_data__isnull=raw_data__isnull,
|
|
1086
1094
|
sort_by=sort_by,
|
|
1087
1095
|
latest=latest,
|
|
1088
1096
|
page=page,
|
|
@@ -1124,6 +1132,7 @@ class ResultsApi:
|
|
|
1124
1132
|
shots_done__isnull: Optional[StrictBool] = None,
|
|
1125
1133
|
shots_done: Optional[StrictInt] = None,
|
|
1126
1134
|
results__isnull: Optional[StrictBool] = None,
|
|
1135
|
+
raw_data__isnull: Optional[StrictBool] = None,
|
|
1127
1136
|
sort_by: Annotated[Optional[StrictStr], Field(description="The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'.")] = None,
|
|
1128
1137
|
latest: Annotated[Optional[StrictBool], Field(description="If True gets the most recently created object.")] = None,
|
|
1129
1138
|
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Page number")] = None,
|
|
@@ -1167,6 +1176,8 @@ class ResultsApi:
|
|
|
1167
1176
|
:type shots_done: int
|
|
1168
1177
|
:param results__isnull:
|
|
1169
1178
|
:type results__isnull: bool
|
|
1179
|
+
:param raw_data__isnull:
|
|
1180
|
+
:type raw_data__isnull: bool
|
|
1170
1181
|
:param sort_by: The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'.
|
|
1171
1182
|
:type sort_by: str
|
|
1172
1183
|
:param latest: If True gets the most recently created object.
|
|
@@ -1209,6 +1220,7 @@ class ResultsApi:
|
|
|
1209
1220
|
shots_done__isnull=shots_done__isnull,
|
|
1210
1221
|
shots_done=shots_done,
|
|
1211
1222
|
results__isnull=results__isnull,
|
|
1223
|
+
raw_data__isnull=raw_data__isnull,
|
|
1212
1224
|
sort_by=sort_by,
|
|
1213
1225
|
latest=latest,
|
|
1214
1226
|
page=page,
|
|
@@ -1245,6 +1257,7 @@ class ResultsApi:
|
|
|
1245
1257
|
shots_done__isnull,
|
|
1246
1258
|
shots_done,
|
|
1247
1259
|
results__isnull,
|
|
1260
|
+
raw_data__isnull,
|
|
1248
1261
|
sort_by,
|
|
1249
1262
|
latest,
|
|
1250
1263
|
page,
|
|
@@ -1321,6 +1334,10 @@ class ResultsApi:
|
|
|
1321
1334
|
|
|
1322
1335
|
_query_params.append(('results__isnull', results__isnull))
|
|
1323
1336
|
|
|
1337
|
+
if raw_data__isnull is not None:
|
|
1338
|
+
|
|
1339
|
+
_query_params.append(('raw_data__isnull', raw_data__isnull))
|
|
1340
|
+
|
|
1324
1341
|
if sort_by is not None:
|
|
1325
1342
|
|
|
1326
1343
|
_query_params.append(('sort_by', sort_by))
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# AuthConfig
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**client_id** | **str** | |
|
|
8
|
+
**audience** | **str** | |
|
|
9
|
+
**well_known_endpoint** | **str** | |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```python
|
|
14
|
+
from compute_api_client.models.auth_config import AuthConfig
|
|
15
|
+
|
|
16
|
+
# TODO update the JSON string below
|
|
17
|
+
json = "{}"
|
|
18
|
+
# create an instance of AuthConfig from a JSON string
|
|
19
|
+
auth_config_instance = AuthConfig.from_json(json)
|
|
20
|
+
# print the JSON string representation of the object
|
|
21
|
+
print AuthConfig.to_json()
|
|
22
|
+
|
|
23
|
+
# convert the object into a dict
|
|
24
|
+
auth_config_dict = auth_config_instance.to_dict()
|
|
25
|
+
# create an instance of AuthConfig from a dict
|
|
26
|
+
auth_config_form_dict = auth_config.from_dict(auth_config_dict)
|
|
27
|
+
```
|
|
28
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
29
|
+
|
|
30
|
+
|