qi-compute-api-client 0.7.0__py3-none-any.whl → 0.17.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 +22 -19
- compute_api_client/api/__init__.py +5 -6
- compute_api_client/api/algorithms_api.py +1333 -553
- compute_api_client/api/backend_api.py +1501 -0
- compute_api_client/api/backend_types_api.py +684 -0
- compute_api_client/api/batch_jobs_api.py +1937 -0
- compute_api_client/api/commits_api.py +1068 -435
- compute_api_client/api/files_api.py +1075 -435
- compute_api_client/api/final_results_api.py +736 -338
- compute_api_client/api/jobs_api.py +1653 -0
- compute_api_client/api/languages_api.py +556 -217
- compute_api_client/api/members_api.py +1057 -435
- compute_api_client/api/metadata_api.py +736 -337
- compute_api_client/api/permissions_api.py +1055 -421
- compute_api_client/api/projects_api.py +1604 -676
- compute_api_client/api/reservations_api.py +1124 -427
- compute_api_client/api/results_api.py +738 -337
- compute_api_client/api/teams_api.py +567 -220
- compute_api_client/api/transactions_api.py +679 -218
- compute_api_client/api/users_api.py +1090 -435
- compute_api_client/api_client.py +346 -304
- compute_api_client/api_response.py +21 -0
- compute_api_client/configuration.py +54 -67
- compute_api_client/docs/Algorithm.md +20 -3
- compute_api_client/docs/AlgorithmIn.md +20 -3
- compute_api_client/docs/AlgorithmType.md +0 -1
- compute_api_client/docs/AlgorithmsApi.md +78 -77
- compute_api_client/docs/Backend.md +33 -0
- compute_api_client/docs/BackendApi.md +419 -0
- compute_api_client/docs/BackendPatch.md +29 -0
- compute_api_client/docs/{RunStatus.md → BackendStatus.md} +1 -2
- compute_api_client/docs/BackendType.md +36 -0
- compute_api_client/docs/{RuntimeTypesApi.md → BackendTypesApi.md} +58 -31
- compute_api_client/docs/BackendWithAuthentication.md +34 -0
- compute_api_client/docs/BatchJob.md +38 -0
- compute_api_client/docs/BatchJobIn.md +29 -0
- compute_api_client/docs/{RuntimeStatus.md → BatchJobStatus.md} +1 -2
- compute_api_client/docs/{BatchRunsApi.md → BatchJobsApi.md} +170 -147
- compute_api_client/docs/Commit.md +18 -1
- compute_api_client/docs/CommitIn.md +17 -0
- compute_api_client/docs/CommitsApi.md +62 -71
- compute_api_client/docs/CompileStage.md +0 -1
- compute_api_client/docs/Domain.md +0 -1
- compute_api_client/docs/File.md +21 -4
- compute_api_client/docs/FileIn.md +21 -4
- compute_api_client/docs/FilesApi.md +65 -71
- compute_api_client/docs/FinalResult.md +20 -3
- compute_api_client/docs/FinalResultIn.md +19 -2
- compute_api_client/docs/FinalResultsApi.md +44 -71
- compute_api_client/docs/HTTPNotFoundError.md +17 -0
- compute_api_client/docs/HTTPValidationError.md +18 -1
- compute_api_client/docs/Job.md +36 -0
- compute_api_client/docs/JobIn.md +31 -0
- compute_api_client/docs/JobPatch.md +28 -0
- compute_api_client/docs/{BatchRunStatus.md → JobStatus.md} +1 -2
- compute_api_client/docs/{RunsApi.md → JobsApi.md} +137 -122
- compute_api_client/docs/Language.md +17 -0
- compute_api_client/docs/LanguagesApi.md +30 -12
- compute_api_client/docs/LocationInner.md +17 -0
- compute_api_client/docs/Member.md +19 -2
- compute_api_client/docs/MemberIn.md +19 -2
- compute_api_client/docs/MembersApi.md +59 -24
- compute_api_client/docs/Metadata.md +20 -3
- compute_api_client/docs/MetadataApi.md +49 -33
- compute_api_client/docs/MetadataIn.md +19 -2
- compute_api_client/docs/Permission.md +17 -0
- compute_api_client/docs/PermissionGroup.md +17 -0
- compute_api_client/docs/PermissionsApi.md +68 -28
- compute_api_client/docs/Project.md +20 -3
- compute_api_client/docs/ProjectIn.md +18 -1
- compute_api_client/docs/ProjectPatch.md +19 -2
- compute_api_client/docs/ProjectsApi.md +84 -36
- compute_api_client/docs/Reservation.md +21 -4
- compute_api_client/docs/ReservationIn.md +19 -2
- compute_api_client/docs/ReservationsApi.md +66 -24
- compute_api_client/docs/Result.md +23 -6
- compute_api_client/docs/ResultIn.md +19 -2
- compute_api_client/docs/ResultsApi.md +42 -26
- compute_api_client/docs/Role.md +0 -1
- compute_api_client/docs/ShareType.md +0 -1
- compute_api_client/docs/Team.md +18 -1
- compute_api_client/docs/TeamsApi.md +37 -14
- compute_api_client/docs/Transaction.md +21 -4
- compute_api_client/docs/TransactionsApi.md +50 -14
- compute_api_client/docs/User.md +21 -4
- compute_api_client/docs/UserIn.md +17 -0
- compute_api_client/docs/UsersApi.md +62 -24
- compute_api_client/docs/ValidationError.md +18 -1
- compute_api_client/exceptions.py +19 -16
- compute_api_client/models/__init__.py +16 -14
- compute_api_client/models/algorithm.py +78 -237
- compute_api_client/models/algorithm_in.py +76 -204
- compute_api_client/models/algorithm_type.py +21 -87
- compute_api_client/models/backend.py +100 -0
- compute_api_client/models/backend_patch.py +90 -0
- compute_api_client/models/backend_status.py +47 -0
- compute_api_client/models/backend_type.py +105 -0
- compute_api_client/models/backend_with_authentication.py +102 -0
- compute_api_client/models/batch_job.py +129 -0
- compute_api_client/models/batch_job_in.py +89 -0
- compute_api_client/models/batch_job_status.py +48 -0
- compute_api_client/models/commit.py +72 -230
- compute_api_client/models/commit_in.py +67 -169
- compute_api_client/models/compile_stage.py +23 -89
- compute_api_client/models/domain.py +22 -88
- compute_api_client/models/file.py +74 -288
- compute_api_client/models/file_in.py +72 -254
- compute_api_client/models/final_result.py +68 -198
- compute_api_client/models/final_result_in.py +63 -137
- compute_api_client/models/http_not_found_error.py +60 -105
- compute_api_client/models/http_validation_error.py +69 -105
- compute_api_client/models/job.py +120 -0
- compute_api_client/models/job_in.py +99 -0
- compute_api_client/models/job_patch.py +88 -0
- compute_api_client/models/job_status.py +48 -0
- compute_api_client/models/language.py +67 -172
- compute_api_client/models/location_inner.py +125 -84
- compute_api_client/models/member.py +70 -236
- compute_api_client/models/member_in.py +68 -203
- compute_api_client/models/metadata.py +68 -198
- compute_api_client/models/metadata_in.py +68 -137
- compute_api_client/models/permission.py +67 -172
- compute_api_client/models/permission_group.py +65 -142
- compute_api_client/models/project.py +74 -256
- compute_api_client/models/project_in.py +69 -195
- compute_api_client/models/project_patch.py +89 -192
- compute_api_client/models/reservation.py +79 -290
- compute_api_client/models/reservation_in.py +68 -200
- compute_api_client/models/result.py +101 -359
- compute_api_client/models/result_in.py +95 -291
- compute_api_client/models/role.py +21 -87
- compute_api_client/models/share_type.py +22 -88
- compute_api_client/models/team.py +69 -198
- compute_api_client/models/transaction.py +93 -299
- compute_api_client/models/user.py +75 -276
- compute_api_client/models/user_in.py +73 -243
- compute_api_client/models/validation_error.py +73 -160
- compute_api_client/rest.py +55 -114
- {qi_compute_api_client-0.7.0.dist-info → qi_compute_api_client-0.17.0.dist-info}/METADATA +47 -40
- qi_compute_api_client-0.17.0.dist-info/RECORD +142 -0
- compute_api_client/api/batch_runs_api.py +0 -862
- compute_api_client/api/runs_api.py +0 -723
- compute_api_client/api/runtime_api.py +0 -449
- compute_api_client/api/runtime_types_api.py +0 -303
- compute_api_client/docs/BatchRun.md +0 -21
- compute_api_client/docs/BatchRunIn.md +0 -12
- compute_api_client/docs/Run.md +0 -19
- compute_api_client/docs/RunIn.md +0 -14
- compute_api_client/docs/Runtime.md +0 -16
- compute_api_client/docs/RuntimeApi.md +0 -229
- compute_api_client/docs/RuntimeType.md +0 -19
- compute_api_client/docs/RuntimeWithAuthentication.md +0 -17
- compute_api_client/models/batch_run.py +0 -423
- compute_api_client/models/batch_run_in.py +0 -171
- compute_api_client/models/batch_run_status.py +0 -114
- compute_api_client/models/run.py +0 -376
- compute_api_client/models/run_in.py +0 -233
- compute_api_client/models/run_status.py +0 -114
- compute_api_client/models/runtime.py +0 -290
- compute_api_client/models/runtime_status.py +0 -113
- compute_api_client/models/runtime_type.py +0 -357
- compute_api_client/models/runtime_with_authentication.py +0 -320
- qi_compute_api_client-0.7.0.dist-info/RECORD +0 -137
- {qi_compute_api_client-0.7.0.dist-info → qi_compute_api_client-0.17.0.dist-info}/LICENSE.md +0 -0
- {qi_compute_api_client-0.7.0.dist-info → qi_compute_api_client-0.17.0.dist-info}/WHEEL +0 -0
|
@@ -4,11 +4,28 @@
|
|
|
4
4
|
## Properties
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**created_on** | **datetime** | | [readonly]
|
|
8
7
|
**id** | **int** | |
|
|
9
|
-
**
|
|
10
|
-
**
|
|
8
|
+
**created_on** | **datetime** | |
|
|
9
|
+
**job_id** | **int** | |
|
|
10
|
+
**final_result** | **object** | |
|
|
11
11
|
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```python
|
|
15
|
+
from compute_api_client.models.final_result import FinalResult
|
|
16
|
+
|
|
17
|
+
# TODO update the JSON string below
|
|
18
|
+
json = "{}"
|
|
19
|
+
# create an instance of FinalResult from a JSON string
|
|
20
|
+
final_result_instance = FinalResult.from_json(json)
|
|
21
|
+
# print the JSON string representation of the object
|
|
22
|
+
print FinalResult.to_json()
|
|
23
|
+
|
|
24
|
+
# convert the object into a dict
|
|
25
|
+
final_result_dict = final_result_instance.to_dict()
|
|
26
|
+
# create an instance of FinalResult from a dict
|
|
27
|
+
final_result_form_dict = final_result.from_dict(final_result_dict)
|
|
28
|
+
```
|
|
12
29
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
13
30
|
|
|
14
31
|
|
|
@@ -4,9 +4,26 @@
|
|
|
4
4
|
## Properties
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**
|
|
8
|
-
**
|
|
7
|
+
**job_id** | **int** | |
|
|
8
|
+
**final_result** | **object** | |
|
|
9
9
|
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```python
|
|
13
|
+
from compute_api_client.models.final_result_in import FinalResultIn
|
|
14
|
+
|
|
15
|
+
# TODO update the JSON string below
|
|
16
|
+
json = "{}"
|
|
17
|
+
# create an instance of FinalResultIn from a JSON string
|
|
18
|
+
final_result_in_instance = FinalResultIn.from_json(json)
|
|
19
|
+
# print the JSON string representation of the object
|
|
20
|
+
print FinalResultIn.to_json()
|
|
21
|
+
|
|
22
|
+
# convert the object into a dict
|
|
23
|
+
final_result_in_dict = final_result_in_instance.to_dict()
|
|
24
|
+
# create an instance of FinalResultIn from a dict
|
|
25
|
+
final_result_in_form_dict = final_result_in.from_dict(final_result_in_dict)
|
|
26
|
+
```
|
|
10
27
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
11
28
|
|
|
12
29
|
|
|
@@ -5,7 +5,7 @@ All URIs are relative to *http://localhost*
|
|
|
5
5
|
Method | HTTP request | Description
|
|
6
6
|
------------- | ------------- | -------------
|
|
7
7
|
[**create_final_result_final_results_post**](FinalResultsApi.md#create_final_result_final_results_post) | **POST** /final_results | Create final result
|
|
8
|
-
[**
|
|
8
|
+
[**read_final_result_by_job_id_final_results_job_job_id_get**](FinalResultsApi.md#read_final_result_by_job_id_final_results_job_job_id_get) | **GET** /final_results/job/{job_id} | Retrieve final result by job ID
|
|
9
9
|
[**read_final_result_final_results_id_get**](FinalResultsApi.md#read_final_result_final_results_id_get) | **GET** /final_results/{id} | Retrieve final result
|
|
10
10
|
|
|
11
11
|
|
|
@@ -18,13 +18,17 @@ Create new final result.
|
|
|
18
18
|
|
|
19
19
|
### Example
|
|
20
20
|
|
|
21
|
-
* Api Key Authentication (
|
|
21
|
+
* Api Key Authentication (backend):
|
|
22
|
+
* Api Key Authentication (user):
|
|
22
23
|
```python
|
|
23
|
-
from __future__ import print_function
|
|
24
24
|
import time
|
|
25
|
+
import os
|
|
25
26
|
import compute_api_client
|
|
27
|
+
from compute_api_client.models.final_result import FinalResult
|
|
28
|
+
from compute_api_client.models.final_result_in import FinalResultIn
|
|
26
29
|
from compute_api_client.rest import ApiException
|
|
27
30
|
from pprint import pprint
|
|
31
|
+
|
|
28
32
|
# Defining the host is optional and defaults to http://localhost
|
|
29
33
|
# See configuration.py for a list of all supported configuration parameters.
|
|
30
34
|
configuration = compute_api_client.Configuration(
|
|
@@ -36,75 +40,34 @@ configuration = compute_api_client.Configuration(
|
|
|
36
40
|
# Examples for each auth method are provided below, use the example that
|
|
37
41
|
# satisfies your auth use case.
|
|
38
42
|
|
|
39
|
-
# Configure API key authorization:
|
|
40
|
-
configuration.api_key['
|
|
43
|
+
# Configure API key authorization: backend
|
|
44
|
+
configuration.api_key['backend'] = os.environ["API_KEY"]
|
|
41
45
|
|
|
42
46
|
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
43
|
-
# configuration.api_key_prefix['
|
|
47
|
+
# configuration.api_key_prefix['backend'] = 'Bearer'
|
|
44
48
|
|
|
45
49
|
# Configure API key authorization: user
|
|
46
|
-
configuration.api_key['user'] =
|
|
50
|
+
configuration.api_key['user'] = os.environ["API_KEY"]
|
|
47
51
|
|
|
48
52
|
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
49
53
|
# configuration.api_key_prefix['user'] = 'Bearer'
|
|
50
54
|
|
|
51
55
|
# Enter a context with an instance of the API client
|
|
52
|
-
with compute_api_client.ApiClient(configuration) as api_client:
|
|
56
|
+
async with compute_api_client.ApiClient(configuration) as api_client:
|
|
53
57
|
# Create an instance of the API class
|
|
54
58
|
api_instance = compute_api_client.FinalResultsApi(api_client)
|
|
55
59
|
final_result_in = compute_api_client.FinalResultIn() # FinalResultIn |
|
|
56
60
|
|
|
57
61
|
try:
|
|
58
62
|
# Create final result
|
|
59
|
-
api_response = api_instance.create_final_result_final_results_post(final_result_in)
|
|
63
|
+
api_response = await api_instance.create_final_result_final_results_post(final_result_in)
|
|
64
|
+
print("The response of FinalResultsApi->create_final_result_final_results_post:\n")
|
|
60
65
|
pprint(api_response)
|
|
61
|
-
except
|
|
66
|
+
except Exception as e:
|
|
62
67
|
print("Exception when calling FinalResultsApi->create_final_result_final_results_post: %s\n" % e)
|
|
63
68
|
```
|
|
64
69
|
|
|
65
|
-
* Api Key Authentication (user):
|
|
66
|
-
```python
|
|
67
|
-
from __future__ import print_function
|
|
68
|
-
import time
|
|
69
|
-
import compute_api_client
|
|
70
|
-
from compute_api_client.rest import ApiException
|
|
71
|
-
from pprint import pprint
|
|
72
|
-
# Defining the host is optional and defaults to http://localhost
|
|
73
|
-
# See configuration.py for a list of all supported configuration parameters.
|
|
74
|
-
configuration = compute_api_client.Configuration(
|
|
75
|
-
host = "http://localhost"
|
|
76
|
-
)
|
|
77
|
-
|
|
78
|
-
# The client must configure the authentication and authorization parameters
|
|
79
|
-
# in accordance with the API server security policy.
|
|
80
|
-
# Examples for each auth method are provided below, use the example that
|
|
81
|
-
# satisfies your auth use case.
|
|
82
|
-
|
|
83
|
-
# Configure API key authorization: runtime
|
|
84
|
-
configuration.api_key['runtime'] = 'YOUR_API_KEY'
|
|
85
|
-
|
|
86
|
-
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
87
|
-
# configuration.api_key_prefix['runtime'] = 'Bearer'
|
|
88
|
-
|
|
89
|
-
# Configure API key authorization: user
|
|
90
|
-
configuration.api_key['user'] = 'YOUR_API_KEY'
|
|
91
70
|
|
|
92
|
-
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
93
|
-
# configuration.api_key_prefix['user'] = 'Bearer'
|
|
94
|
-
|
|
95
|
-
# Enter a context with an instance of the API client
|
|
96
|
-
with compute_api_client.ApiClient(configuration) as api_client:
|
|
97
|
-
# Create an instance of the API class
|
|
98
|
-
api_instance = compute_api_client.FinalResultsApi(api_client)
|
|
99
|
-
final_result_in = compute_api_client.FinalResultIn() # FinalResultIn |
|
|
100
|
-
|
|
101
|
-
try:
|
|
102
|
-
# Create final result
|
|
103
|
-
api_response = api_instance.create_final_result_final_results_post(final_result_in)
|
|
104
|
-
pprint(api_response)
|
|
105
|
-
except ApiException as e:
|
|
106
|
-
print("Exception when calling FinalResultsApi->create_final_result_final_results_post: %s\n" % e)
|
|
107
|
-
```
|
|
108
71
|
|
|
109
72
|
### Parameters
|
|
110
73
|
|
|
@@ -118,7 +81,7 @@ Name | Type | Description | Notes
|
|
|
118
81
|
|
|
119
82
|
### Authorization
|
|
120
83
|
|
|
121
|
-
[
|
|
84
|
+
[backend](../README.md#backend), [user](../README.md#user)
|
|
122
85
|
|
|
123
86
|
### HTTP request headers
|
|
124
87
|
|
|
@@ -133,22 +96,24 @@ Name | Type | Description | Notes
|
|
|
133
96
|
|
|
134
97
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
135
98
|
|
|
136
|
-
# **
|
|
137
|
-
> FinalResult
|
|
99
|
+
# **read_final_result_by_job_id_final_results_job_job_id_get**
|
|
100
|
+
> FinalResult read_final_result_by_job_id_final_results_job_job_id_get(job_id)
|
|
138
101
|
|
|
139
|
-
Retrieve final result by
|
|
102
|
+
Retrieve final result by job ID
|
|
140
103
|
|
|
141
|
-
Get final result by
|
|
104
|
+
Get final result by job ID.
|
|
142
105
|
|
|
143
106
|
### Example
|
|
144
107
|
|
|
145
108
|
* Api Key Authentication (user):
|
|
146
109
|
```python
|
|
147
|
-
from __future__ import print_function
|
|
148
110
|
import time
|
|
111
|
+
import os
|
|
149
112
|
import compute_api_client
|
|
113
|
+
from compute_api_client.models.final_result import FinalResult
|
|
150
114
|
from compute_api_client.rest import ApiException
|
|
151
115
|
from pprint import pprint
|
|
116
|
+
|
|
152
117
|
# Defining the host is optional and defaults to http://localhost
|
|
153
118
|
# See configuration.py for a list of all supported configuration parameters.
|
|
154
119
|
configuration = compute_api_client.Configuration(
|
|
@@ -161,30 +126,33 @@ configuration = compute_api_client.Configuration(
|
|
|
161
126
|
# satisfies your auth use case.
|
|
162
127
|
|
|
163
128
|
# Configure API key authorization: user
|
|
164
|
-
configuration.api_key['user'] =
|
|
129
|
+
configuration.api_key['user'] = os.environ["API_KEY"]
|
|
165
130
|
|
|
166
131
|
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
167
132
|
# configuration.api_key_prefix['user'] = 'Bearer'
|
|
168
133
|
|
|
169
134
|
# Enter a context with an instance of the API client
|
|
170
|
-
with compute_api_client.ApiClient(configuration) as api_client:
|
|
135
|
+
async with compute_api_client.ApiClient(configuration) as api_client:
|
|
171
136
|
# Create an instance of the API class
|
|
172
137
|
api_instance = compute_api_client.FinalResultsApi(api_client)
|
|
173
|
-
|
|
138
|
+
job_id = 56 # int |
|
|
174
139
|
|
|
175
140
|
try:
|
|
176
|
-
# Retrieve final result by
|
|
177
|
-
api_response = api_instance.
|
|
141
|
+
# Retrieve final result by job ID
|
|
142
|
+
api_response = await api_instance.read_final_result_by_job_id_final_results_job_job_id_get(job_id)
|
|
143
|
+
print("The response of FinalResultsApi->read_final_result_by_job_id_final_results_job_job_id_get:\n")
|
|
178
144
|
pprint(api_response)
|
|
179
|
-
except
|
|
180
|
-
print("Exception when calling FinalResultsApi->
|
|
145
|
+
except Exception as e:
|
|
146
|
+
print("Exception when calling FinalResultsApi->read_final_result_by_job_id_final_results_job_job_id_get: %s\n" % e)
|
|
181
147
|
```
|
|
182
148
|
|
|
149
|
+
|
|
150
|
+
|
|
183
151
|
### Parameters
|
|
184
152
|
|
|
185
153
|
Name | Type | Description | Notes
|
|
186
154
|
------------- | ------------- | ------------- | -------------
|
|
187
|
-
**
|
|
155
|
+
**job_id** | **int**| |
|
|
188
156
|
|
|
189
157
|
### Return type
|
|
190
158
|
|
|
@@ -218,11 +186,13 @@ Get final result by ID.
|
|
|
218
186
|
|
|
219
187
|
* Api Key Authentication (user):
|
|
220
188
|
```python
|
|
221
|
-
from __future__ import print_function
|
|
222
189
|
import time
|
|
190
|
+
import os
|
|
223
191
|
import compute_api_client
|
|
192
|
+
from compute_api_client.models.final_result import FinalResult
|
|
224
193
|
from compute_api_client.rest import ApiException
|
|
225
194
|
from pprint import pprint
|
|
195
|
+
|
|
226
196
|
# Defining the host is optional and defaults to http://localhost
|
|
227
197
|
# See configuration.py for a list of all supported configuration parameters.
|
|
228
198
|
configuration = compute_api_client.Configuration(
|
|
@@ -235,25 +205,28 @@ configuration = compute_api_client.Configuration(
|
|
|
235
205
|
# satisfies your auth use case.
|
|
236
206
|
|
|
237
207
|
# Configure API key authorization: user
|
|
238
|
-
configuration.api_key['user'] =
|
|
208
|
+
configuration.api_key['user'] = os.environ["API_KEY"]
|
|
239
209
|
|
|
240
210
|
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
241
211
|
# configuration.api_key_prefix['user'] = 'Bearer'
|
|
242
212
|
|
|
243
213
|
# Enter a context with an instance of the API client
|
|
244
|
-
with compute_api_client.ApiClient(configuration) as api_client:
|
|
214
|
+
async with compute_api_client.ApiClient(configuration) as api_client:
|
|
245
215
|
# Create an instance of the API class
|
|
246
216
|
api_instance = compute_api_client.FinalResultsApi(api_client)
|
|
247
217
|
id = 56 # int |
|
|
248
218
|
|
|
249
219
|
try:
|
|
250
220
|
# Retrieve final result
|
|
251
|
-
api_response = api_instance.read_final_result_final_results_id_get(id)
|
|
221
|
+
api_response = await api_instance.read_final_result_final_results_id_get(id)
|
|
222
|
+
print("The response of FinalResultsApi->read_final_result_final_results_id_get:\n")
|
|
252
223
|
pprint(api_response)
|
|
253
|
-
except
|
|
224
|
+
except Exception as e:
|
|
254
225
|
print("Exception when calling FinalResultsApi->read_final_result_final_results_id_get: %s\n" % e)
|
|
255
226
|
```
|
|
256
227
|
|
|
228
|
+
|
|
229
|
+
|
|
257
230
|
### Parameters
|
|
258
231
|
|
|
259
232
|
Name | Type | Description | Notes
|
|
@@ -6,6 +6,23 @@ Name | Type | Description | Notes
|
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
7
|
**detail** | **str** | |
|
|
8
8
|
|
|
9
|
+
## Example
|
|
10
|
+
|
|
11
|
+
```python
|
|
12
|
+
from compute_api_client.models.http_not_found_error import HTTPNotFoundError
|
|
13
|
+
|
|
14
|
+
# TODO update the JSON string below
|
|
15
|
+
json = "{}"
|
|
16
|
+
# create an instance of HTTPNotFoundError from a JSON string
|
|
17
|
+
http_not_found_error_instance = HTTPNotFoundError.from_json(json)
|
|
18
|
+
# print the JSON string representation of the object
|
|
19
|
+
print HTTPNotFoundError.to_json()
|
|
20
|
+
|
|
21
|
+
# convert the object into a dict
|
|
22
|
+
http_not_found_error_dict = http_not_found_error_instance.to_dict()
|
|
23
|
+
# create an instance of HTTPNotFoundError from a dict
|
|
24
|
+
http_not_found_error_form_dict = http_not_found_error.from_dict(http_not_found_error_dict)
|
|
25
|
+
```
|
|
9
26
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
10
27
|
|
|
11
28
|
|
|
@@ -4,8 +4,25 @@
|
|
|
4
4
|
## Properties
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**detail** | [**
|
|
7
|
+
**detail** | [**List[ValidationError]**](ValidationError.md) | | [optional]
|
|
8
8
|
|
|
9
|
+
## Example
|
|
10
|
+
|
|
11
|
+
```python
|
|
12
|
+
from compute_api_client.models.http_validation_error import HTTPValidationError
|
|
13
|
+
|
|
14
|
+
# TODO update the JSON string below
|
|
15
|
+
json = "{}"
|
|
16
|
+
# create an instance of HTTPValidationError from a JSON string
|
|
17
|
+
http_validation_error_instance = HTTPValidationError.from_json(json)
|
|
18
|
+
# print the JSON string representation of the object
|
|
19
|
+
print HTTPValidationError.to_json()
|
|
20
|
+
|
|
21
|
+
# convert the object into a dict
|
|
22
|
+
http_validation_error_dict = http_validation_error_instance.to_dict()
|
|
23
|
+
# create an instance of HTTPValidationError from a dict
|
|
24
|
+
http_validation_error_form_dict = http_validation_error.from_dict(http_validation_error_dict)
|
|
25
|
+
```
|
|
9
26
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
10
27
|
|
|
11
28
|
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# Job
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**id** | **int** | |
|
|
8
|
+
**created_on** | **datetime** | |
|
|
9
|
+
**file_id** | **int** | |
|
|
10
|
+
**algorithm_type** | [**AlgorithmType**](AlgorithmType.md) | |
|
|
11
|
+
**status** | [**JobStatus**](JobStatus.md) | |
|
|
12
|
+
**batch_job_id** | **int** | |
|
|
13
|
+
**queued_at** | **datetime** | |
|
|
14
|
+
**finished_at** | **datetime** | |
|
|
15
|
+
**number_of_shots** | **int** | |
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```python
|
|
20
|
+
from compute_api_client.models.job import Job
|
|
21
|
+
|
|
22
|
+
# TODO update the JSON string below
|
|
23
|
+
json = "{}"
|
|
24
|
+
# create an instance of Job from a JSON string
|
|
25
|
+
job_instance = Job.from_json(json)
|
|
26
|
+
# print the JSON string representation of the object
|
|
27
|
+
print Job.to_json()
|
|
28
|
+
|
|
29
|
+
# convert the object into a dict
|
|
30
|
+
job_dict = job_instance.to_dict()
|
|
31
|
+
# create an instance of Job from a dict
|
|
32
|
+
job_form_dict = job.from_dict(job_dict)
|
|
33
|
+
```
|
|
34
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
35
|
+
|
|
36
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# JobIn
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**file_id** | **int** | |
|
|
8
|
+
**status** | [**JobStatus**](JobStatus.md) | | [optional]
|
|
9
|
+
**batch_job_id** | **int** | |
|
|
10
|
+
**number_of_shots** | **int** | | [optional]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```python
|
|
15
|
+
from compute_api_client.models.job_in import JobIn
|
|
16
|
+
|
|
17
|
+
# TODO update the JSON string below
|
|
18
|
+
json = "{}"
|
|
19
|
+
# create an instance of JobIn from a JSON string
|
|
20
|
+
job_in_instance = JobIn.from_json(json)
|
|
21
|
+
# print the JSON string representation of the object
|
|
22
|
+
print JobIn.to_json()
|
|
23
|
+
|
|
24
|
+
# convert the object into a dict
|
|
25
|
+
job_in_dict = job_in_instance.to_dict()
|
|
26
|
+
# create an instance of JobIn from a dict
|
|
27
|
+
job_in_form_dict = job_in.from_dict(job_in_dict)
|
|
28
|
+
```
|
|
29
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
30
|
+
|
|
31
|
+
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# JobPatch
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**status** | [**JobStatus**](JobStatus.md) | |
|
|
8
|
+
|
|
9
|
+
## Example
|
|
10
|
+
|
|
11
|
+
```python
|
|
12
|
+
from compute_api_client.models.job_patch import JobPatch
|
|
13
|
+
|
|
14
|
+
# TODO update the JSON string below
|
|
15
|
+
json = "{}"
|
|
16
|
+
# create an instance of JobPatch from a JSON string
|
|
17
|
+
job_patch_instance = JobPatch.from_json(json)
|
|
18
|
+
# print the JSON string representation of the object
|
|
19
|
+
print JobPatch.to_json()
|
|
20
|
+
|
|
21
|
+
# convert the object into a dict
|
|
22
|
+
job_patch_dict = job_patch_instance.to_dict()
|
|
23
|
+
# create an instance of JobPatch from a dict
|
|
24
|
+
job_patch_form_dict = job_patch.from_dict(job_patch_dict)
|
|
25
|
+
```
|
|
26
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
27
|
+
|
|
28
|
+
|