qi-compute-api-client 0.56.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.
- compute_api_client/__init__.py +219 -0
- compute_api_client/api/__init__.py +23 -0
- compute_api_client/api/algorithms_api.py +1603 -0
- compute_api_client/api/auth_config_api.py +278 -0
- compute_api_client/api/backend_api.py +1540 -0
- compute_api_client/api/backend_types_api.py +1178 -0
- compute_api_client/api/batch_jobs_api.py +2224 -0
- compute_api_client/api/commits_api.py +1565 -0
- compute_api_client/api/files_api.py +1307 -0
- compute_api_client/api/final_results_api.py +847 -0
- compute_api_client/api/health_api.py +281 -0
- compute_api_client/api/jobs_api.py +1787 -0
- compute_api_client/api/languages_api.py +692 -0
- compute_api_client/api/members_api.py +1238 -0
- compute_api_client/api/metadata_api.py +930 -0
- compute_api_client/api/permissions_api.py +1295 -0
- compute_api_client/api/projects_api.py +1889 -0
- compute_api_client/api/reservations_api.py +1324 -0
- compute_api_client/api/results_api.py +1702 -0
- compute_api_client/api/teams_api.py +692 -0
- compute_api_client/api/transactions_api.py +805 -0
- compute_api_client/api/users_api.py +1305 -0
- compute_api_client/api_client.py +804 -0
- compute_api_client/api_response.py +21 -0
- compute_api_client/configuration.py +606 -0
- compute_api_client/docs/Algorithm.md +34 -0
- compute_api_client/docs/AlgorithmIn.md +33 -0
- compute_api_client/docs/AlgorithmType.md +12 -0
- compute_api_client/docs/AlgorithmsApi.md +428 -0
- compute_api_client/docs/AuthConfig.md +31 -0
- compute_api_client/docs/AuthConfigApi.md +71 -0
- compute_api_client/docs/Backend.md +35 -0
- compute_api_client/docs/BackendApi.md +418 -0
- compute_api_client/docs/BackendIn.md +34 -0
- compute_api_client/docs/BackendMessage.md +29 -0
- compute_api_client/docs/BackendPatch.md +31 -0
- compute_api_client/docs/BackendStatus.md +16 -0
- compute_api_client/docs/BackendType.md +48 -0
- compute_api_client/docs/BackendTypePatch.md +45 -0
- compute_api_client/docs/BackendTypesApi.md +289 -0
- compute_api_client/docs/BackendWithAuthentication.md +36 -0
- compute_api_client/docs/BatchJob.md +39 -0
- compute_api_client/docs/BatchJobIn.md +29 -0
- compute_api_client/docs/BatchJobStatus.md +18 -0
- compute_api_client/docs/BatchJobsApi.md +600 -0
- compute_api_client/docs/Commit.md +33 -0
- compute_api_client/docs/CommitIn.md +30 -0
- compute_api_client/docs/CommitsApi.md +425 -0
- compute_api_client/docs/CompilePayload.md +30 -0
- compute_api_client/docs/CompileStage.md +18 -0
- compute_api_client/docs/Domain.md +14 -0
- compute_api_client/docs/File.md +36 -0
- compute_api_client/docs/FileIn.md +35 -0
- compute_api_client/docs/FilesApi.md +346 -0
- compute_api_client/docs/FinalResult.md +32 -0
- compute_api_client/docs/FinalResultIn.md +30 -0
- compute_api_client/docs/FinalResultsApi.md +248 -0
- compute_api_client/docs/HTTPBadRequestError.md +29 -0
- compute_api_client/docs/HTTPNotFoundError.md +29 -0
- compute_api_client/docs/HTTPValidationError.md +29 -0
- compute_api_client/docs/HealthApi.md +72 -0
- compute_api_client/docs/Job.md +42 -0
- compute_api_client/docs/JobIn.md +32 -0
- compute_api_client/docs/JobPatch.md +34 -0
- compute_api_client/docs/JobStatus.md +18 -0
- compute_api_client/docs/JobsApi.md +460 -0
- compute_api_client/docs/Language.md +31 -0
- compute_api_client/docs/LanguagesApi.md +177 -0
- compute_api_client/docs/LocationInner.md +27 -0
- compute_api_client/docs/Member.md +33 -0
- compute_api_client/docs/MemberId.md +28 -0
- compute_api_client/docs/MemberIn.md +32 -0
- compute_api_client/docs/MembersApi.md +331 -0
- compute_api_client/docs/PageAlgorithm.md +33 -0
- compute_api_client/docs/PageBackend.md +33 -0
- compute_api_client/docs/PageBackendType.md +33 -0
- compute_api_client/docs/PageBatchJob.md +33 -0
- compute_api_client/docs/PageCommit.md +33 -0
- compute_api_client/docs/PageFile.md +33 -0
- compute_api_client/docs/PageJob.md +33 -0
- compute_api_client/docs/PageLanguage.md +33 -0
- compute_api_client/docs/PageMember.md +33 -0
- compute_api_client/docs/PageMetadata.md +32 -0
- compute_api_client/docs/PagePermission.md +33 -0
- compute_api_client/docs/PagePermissionGroup.md +33 -0
- compute_api_client/docs/PageProject.md +33 -0
- compute_api_client/docs/PageReservation.md +33 -0
- compute_api_client/docs/PageResult.md +33 -0
- compute_api_client/docs/PageTeam.md +33 -0
- compute_api_client/docs/PageTransaction.md +33 -0
- compute_api_client/docs/PageUser.md +33 -0
- compute_api_client/docs/Permission.md +31 -0
- compute_api_client/docs/PermissionGroup.md +30 -0
- compute_api_client/docs/PermissionsApi.md +340 -0
- compute_api_client/docs/Project.md +34 -0
- compute_api_client/docs/ProjectIn.md +32 -0
- compute_api_client/docs/ProjectPatch.md +32 -0
- compute_api_client/docs/ProjectsApi.md +502 -0
- compute_api_client/docs/Reservation.md +35 -0
- compute_api_client/docs/ReservationIn.md +32 -0
- compute_api_client/docs/ReservationsApi.md +341 -0
- compute_api_client/docs/Result.md +36 -0
- compute_api_client/docs/ResultIn.md +34 -0
- compute_api_client/docs/ResultsApi.md +439 -0
- compute_api_client/docs/Role.md +12 -0
- compute_api_client/docs/ShareType.md +14 -0
- compute_api_client/docs/Team.md +32 -0
- compute_api_client/docs/TeamsApi.md +177 -0
- compute_api_client/docs/Transaction.md +35 -0
- compute_api_client/docs/TransactionDomain.md +28 -0
- compute_api_client/docs/TransactionsApi.md +190 -0
- compute_api_client/docs/User.md +36 -0
- compute_api_client/docs/UserIn.md +35 -0
- compute_api_client/docs/UsersApi.md +338 -0
- compute_api_client/docs/ValidationError.md +31 -0
- compute_api_client/docs/ValidationErrorLocInner.md +28 -0
- compute_api_client/exceptions.py +216 -0
- compute_api_client/models/__init__.py +84 -0
- compute_api_client/models/algorithm.py +105 -0
- compute_api_client/models/algorithm_in.py +103 -0
- compute_api_client/models/algorithm_type.py +37 -0
- compute_api_client/models/auth_config.py +91 -0
- compute_api_client/models/backend.py +106 -0
- compute_api_client/models/backend_in.py +104 -0
- compute_api_client/models/backend_message.py +87 -0
- compute_api_client/models/backend_patch.py +112 -0
- compute_api_client/models/backend_status.py +39 -0
- compute_api_client/models/backend_type.py +145 -0
- compute_api_client/models/backend_type_patch.py +205 -0
- compute_api_client/models/backend_with_authentication.py +108 -0
- compute_api_client/models/batch_job.py +130 -0
- compute_api_client/models/batch_job_in.py +87 -0
- compute_api_client/models/batch_job_status.py +40 -0
- compute_api_client/models/commit.py +97 -0
- compute_api_client/models/commit_in.py +89 -0
- compute_api_client/models/compile_payload.py +95 -0
- compute_api_client/models/compile_stage.py +40 -0
- compute_api_client/models/domain.py +38 -0
- compute_api_client/models/file.py +108 -0
- compute_api_client/models/file_in.py +106 -0
- compute_api_client/models/final_result.py +94 -0
- compute_api_client/models/final_result_in.py +89 -0
- compute_api_client/models/http_bad_request_error.py +87 -0
- compute_api_client/models/http_not_found_error.py +87 -0
- compute_api_client/models/http_validation_error.py +95 -0
- compute_api_client/models/job.py +131 -0
- compute_api_client/models/job_in.py +98 -0
- compute_api_client/models/job_patch.py +99 -0
- compute_api_client/models/job_status.py +40 -0
- compute_api_client/models/language.py +92 -0
- compute_api_client/models/location_inner.py +144 -0
- compute_api_client/models/member.py +96 -0
- compute_api_client/models/member_id.py +144 -0
- compute_api_client/models/member_in.py +94 -0
- compute_api_client/models/metadata.py +93 -0
- compute_api_client/models/metadata_in.py +94 -0
- compute_api_client/models/page_algorithm.py +104 -0
- compute_api_client/models/page_backend.py +104 -0
- compute_api_client/models/page_backend_type.py +104 -0
- compute_api_client/models/page_batch_job.py +104 -0
- compute_api_client/models/page_commit.py +104 -0
- compute_api_client/models/page_file.py +104 -0
- compute_api_client/models/page_job.py +104 -0
- compute_api_client/models/page_language.py +104 -0
- compute_api_client/models/page_member.py +104 -0
- compute_api_client/models/page_metadata.py +125 -0
- compute_api_client/models/page_permission.py +104 -0
- compute_api_client/models/page_permission_group.py +104 -0
- compute_api_client/models/page_project.py +104 -0
- compute_api_client/models/page_reservation.py +104 -0
- compute_api_client/models/page_result.py +104 -0
- compute_api_client/models/page_team.py +104 -0
- compute_api_client/models/page_transaction.py +104 -0
- compute_api_client/models/page_user.py +104 -0
- compute_api_client/models/permission.py +92 -0
- compute_api_client/models/permission_group.py +90 -0
- compute_api_client/models/project.py +99 -0
- compute_api_client/models/project_in.py +94 -0
- compute_api_client/models/project_patch.py +114 -0
- compute_api_client/models/reservation.py +105 -0
- compute_api_client/models/reservation_in.py +94 -0
- compute_api_client/models/result.py +122 -0
- compute_api_client/models/result_in.py +117 -0
- compute_api_client/models/role.py +37 -0
- compute_api_client/models/share_type.py +38 -0
- compute_api_client/models/team.py +94 -0
- compute_api_client/models/transaction.py +117 -0
- compute_api_client/models/transaction_domain.py +142 -0
- compute_api_client/models/user.py +102 -0
- compute_api_client/models/user_in.py +100 -0
- compute_api_client/models/validation_error.py +99 -0
- compute_api_client/models/validation_error_loc_inner.py +138 -0
- compute_api_client/rest.py +213 -0
- qi2_shared/__init__.py +0 -0
- qi2_shared/authentication.py +66 -0
- qi2_shared/client.py +52 -0
- qi2_shared/hybrid/__init__.py +0 -0
- qi2_shared/hybrid/quantum_interface.py +45 -0
- qi2_shared/pagination.py +44 -0
- qi2_shared/settings.py +68 -0
- qi2_shared/utils.py +13 -0
- qi_compute_api_client-0.56.0.dist-info/METADATA +266 -0
- qi_compute_api_client-0.56.0.dist-info/RECORD +205 -0
- qi_compute_api_client-0.56.0.dist-info/WHEEL +4 -0
- qi_compute_api_client-0.56.0.dist-info/licenses/LICENSE.md +142 -0
|
@@ -0,0 +1,341 @@
|
|
|
1
|
+
# compute_api_client.ReservationsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost*
|
|
4
|
+
|
|
5
|
+
Method | HTTP request | Description
|
|
6
|
+
------------- | ------------- | -------------
|
|
7
|
+
[**create_reservation_reservations_post**](ReservationsApi.md#create_reservation_reservations_post) | **POST** /reservations | Create reservation
|
|
8
|
+
[**read_reservation_reservations_id_get**](ReservationsApi.md#read_reservation_reservations_id_get) | **GET** /reservations/{id} | Retrieve reservation
|
|
9
|
+
[**read_reservations_reservations_get**](ReservationsApi.md#read_reservations_reservations_get) | **GET** /reservations | List reservations
|
|
10
|
+
[**terminate_reservation_reservations_id_terminate_patch**](ReservationsApi.md#terminate_reservation_reservations_id_terminate_patch) | **PATCH** /reservations/{id}/terminate | Terminate reservation
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
# **create_reservation_reservations_post**
|
|
14
|
+
> Reservation create_reservation_reservations_post(reservation_in)
|
|
15
|
+
|
|
16
|
+
Create reservation
|
|
17
|
+
|
|
18
|
+
Create new reservation.
|
|
19
|
+
|
|
20
|
+
### Example
|
|
21
|
+
|
|
22
|
+
* OAuth Authentication (user_bearer):
|
|
23
|
+
|
|
24
|
+
```python
|
|
25
|
+
import compute_api_client
|
|
26
|
+
from compute_api_client.models.reservation import Reservation
|
|
27
|
+
from compute_api_client.models.reservation_in import ReservationIn
|
|
28
|
+
from compute_api_client.rest import ApiException
|
|
29
|
+
from pprint import pprint
|
|
30
|
+
|
|
31
|
+
# Defining the host is optional and defaults to http://localhost
|
|
32
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
33
|
+
configuration = compute_api_client.Configuration(
|
|
34
|
+
host = "http://localhost"
|
|
35
|
+
)
|
|
36
|
+
|
|
37
|
+
# The client must configure the authentication and authorization parameters
|
|
38
|
+
# in accordance with the API server security policy.
|
|
39
|
+
# Examples for each auth method are provided below, use the example that
|
|
40
|
+
# satisfies your auth use case.
|
|
41
|
+
|
|
42
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
43
|
+
|
|
44
|
+
# Enter a context with an instance of the API client
|
|
45
|
+
async with compute_api_client.ApiClient(configuration) as api_client:
|
|
46
|
+
# Create an instance of the API class
|
|
47
|
+
api_instance = compute_api_client.ReservationsApi(api_client)
|
|
48
|
+
reservation_in = compute_api_client.ReservationIn() # ReservationIn |
|
|
49
|
+
|
|
50
|
+
try:
|
|
51
|
+
# Create reservation
|
|
52
|
+
api_response = await api_instance.create_reservation_reservations_post(reservation_in)
|
|
53
|
+
print("The response of ReservationsApi->create_reservation_reservations_post:\n")
|
|
54
|
+
pprint(api_response)
|
|
55
|
+
except Exception as e:
|
|
56
|
+
print("Exception when calling ReservationsApi->create_reservation_reservations_post: %s\n" % e)
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
### Parameters
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
Name | Type | Description | Notes
|
|
65
|
+
------------- | ------------- | ------------- | -------------
|
|
66
|
+
**reservation_in** | [**ReservationIn**](ReservationIn.md)| |
|
|
67
|
+
|
|
68
|
+
### Return type
|
|
69
|
+
|
|
70
|
+
[**Reservation**](Reservation.md)
|
|
71
|
+
|
|
72
|
+
### Authorization
|
|
73
|
+
|
|
74
|
+
[user_bearer](../README.md#user_bearer)
|
|
75
|
+
|
|
76
|
+
### HTTP request headers
|
|
77
|
+
|
|
78
|
+
- **Content-Type**: application/json
|
|
79
|
+
- **Accept**: application/json
|
|
80
|
+
|
|
81
|
+
### HTTP response details
|
|
82
|
+
|
|
83
|
+
| Status code | Description | Response headers |
|
|
84
|
+
|-------------|-------------|------------------|
|
|
85
|
+
**201** | Successful Response | - |
|
|
86
|
+
**422** | Validation Error | - |
|
|
87
|
+
|
|
88
|
+
[[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)
|
|
89
|
+
|
|
90
|
+
# **read_reservation_reservations_id_get**
|
|
91
|
+
> Reservation read_reservation_reservations_id_get(id)
|
|
92
|
+
|
|
93
|
+
Retrieve reservation
|
|
94
|
+
|
|
95
|
+
Get reservation by ID.
|
|
96
|
+
|
|
97
|
+
### Example
|
|
98
|
+
|
|
99
|
+
* OAuth Authentication (user_bearer):
|
|
100
|
+
|
|
101
|
+
```python
|
|
102
|
+
import compute_api_client
|
|
103
|
+
from compute_api_client.models.reservation import Reservation
|
|
104
|
+
from compute_api_client.rest import ApiException
|
|
105
|
+
from pprint import pprint
|
|
106
|
+
|
|
107
|
+
# Defining the host is optional and defaults to http://localhost
|
|
108
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
109
|
+
configuration = compute_api_client.Configuration(
|
|
110
|
+
host = "http://localhost"
|
|
111
|
+
)
|
|
112
|
+
|
|
113
|
+
# The client must configure the authentication and authorization parameters
|
|
114
|
+
# in accordance with the API server security policy.
|
|
115
|
+
# Examples for each auth method are provided below, use the example that
|
|
116
|
+
# satisfies your auth use case.
|
|
117
|
+
|
|
118
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
119
|
+
|
|
120
|
+
# Enter a context with an instance of the API client
|
|
121
|
+
async with compute_api_client.ApiClient(configuration) as api_client:
|
|
122
|
+
# Create an instance of the API class
|
|
123
|
+
api_instance = compute_api_client.ReservationsApi(api_client)
|
|
124
|
+
id = 56 # int |
|
|
125
|
+
|
|
126
|
+
try:
|
|
127
|
+
# Retrieve reservation
|
|
128
|
+
api_response = await api_instance.read_reservation_reservations_id_get(id)
|
|
129
|
+
print("The response of ReservationsApi->read_reservation_reservations_id_get:\n")
|
|
130
|
+
pprint(api_response)
|
|
131
|
+
except Exception as e:
|
|
132
|
+
print("Exception when calling ReservationsApi->read_reservation_reservations_id_get: %s\n" % e)
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
### Parameters
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
Name | Type | Description | Notes
|
|
141
|
+
------------- | ------------- | ------------- | -------------
|
|
142
|
+
**id** | **int**| |
|
|
143
|
+
|
|
144
|
+
### Return type
|
|
145
|
+
|
|
146
|
+
[**Reservation**](Reservation.md)
|
|
147
|
+
|
|
148
|
+
### Authorization
|
|
149
|
+
|
|
150
|
+
[user_bearer](../README.md#user_bearer)
|
|
151
|
+
|
|
152
|
+
### HTTP request headers
|
|
153
|
+
|
|
154
|
+
- **Content-Type**: Not defined
|
|
155
|
+
- **Accept**: application/json
|
|
156
|
+
|
|
157
|
+
### HTTP response details
|
|
158
|
+
|
|
159
|
+
| Status code | Description | Response headers |
|
|
160
|
+
|-------------|-------------|------------------|
|
|
161
|
+
**200** | Successful Response | - |
|
|
162
|
+
**404** | Not Found | - |
|
|
163
|
+
**422** | Validation Error | - |
|
|
164
|
+
|
|
165
|
+
[[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)
|
|
166
|
+
|
|
167
|
+
# **read_reservations_reservations_get**
|
|
168
|
+
> PageReservation read_reservations_reservations_get(id=id, member_id=member_id, start_time=start_time, end_time=end_time, backend_type_id=backend_type_id, backend_id__isnull=backend_id__isnull, backend_id=backend_id, is_terminated=is_terminated, sort_by=sort_by, latest=latest, page=page, size=size)
|
|
169
|
+
|
|
170
|
+
List reservations
|
|
171
|
+
|
|
172
|
+
Read reservations.
|
|
173
|
+
|
|
174
|
+
### Example
|
|
175
|
+
|
|
176
|
+
* OAuth Authentication (user_bearer):
|
|
177
|
+
|
|
178
|
+
```python
|
|
179
|
+
import compute_api_client
|
|
180
|
+
from compute_api_client.models.page_reservation import PageReservation
|
|
181
|
+
from compute_api_client.rest import ApiException
|
|
182
|
+
from pprint import pprint
|
|
183
|
+
|
|
184
|
+
# Defining the host is optional and defaults to http://localhost
|
|
185
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
186
|
+
configuration = compute_api_client.Configuration(
|
|
187
|
+
host = "http://localhost"
|
|
188
|
+
)
|
|
189
|
+
|
|
190
|
+
# The client must configure the authentication and authorization parameters
|
|
191
|
+
# in accordance with the API server security policy.
|
|
192
|
+
# Examples for each auth method are provided below, use the example that
|
|
193
|
+
# satisfies your auth use case.
|
|
194
|
+
|
|
195
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
196
|
+
|
|
197
|
+
# Enter a context with an instance of the API client
|
|
198
|
+
async with compute_api_client.ApiClient(configuration) as api_client:
|
|
199
|
+
# Create an instance of the API class
|
|
200
|
+
api_instance = compute_api_client.ReservationsApi(api_client)
|
|
201
|
+
id = 56 # int | (optional)
|
|
202
|
+
member_id = 56 # int | (optional)
|
|
203
|
+
start_time = '2013-10-20T19:20:30+01:00' # datetime | (optional)
|
|
204
|
+
end_time = '2013-10-20T19:20:30+01:00' # datetime | (optional)
|
|
205
|
+
backend_type_id = 56 # int | (optional)
|
|
206
|
+
backend_id__isnull = True # bool | (optional)
|
|
207
|
+
backend_id = 56 # int | (optional)
|
|
208
|
+
is_terminated = True # bool | (optional)
|
|
209
|
+
sort_by = 'sort_by_example' # str | The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'. (optional)
|
|
210
|
+
latest = True # bool | If True gets the most recently created object. (optional)
|
|
211
|
+
page = 1 # int | Page number (optional) (default to 1)
|
|
212
|
+
size = 50 # int | Page size (optional) (default to 50)
|
|
213
|
+
|
|
214
|
+
try:
|
|
215
|
+
# List reservations
|
|
216
|
+
api_response = await api_instance.read_reservations_reservations_get(id=id, member_id=member_id, start_time=start_time, end_time=end_time, backend_type_id=backend_type_id, backend_id__isnull=backend_id__isnull, backend_id=backend_id, is_terminated=is_terminated, sort_by=sort_by, latest=latest, page=page, size=size)
|
|
217
|
+
print("The response of ReservationsApi->read_reservations_reservations_get:\n")
|
|
218
|
+
pprint(api_response)
|
|
219
|
+
except Exception as e:
|
|
220
|
+
print("Exception when calling ReservationsApi->read_reservations_reservations_get: %s\n" % e)
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
### Parameters
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
Name | Type | Description | Notes
|
|
229
|
+
------------- | ------------- | ------------- | -------------
|
|
230
|
+
**id** | **int**| | [optional]
|
|
231
|
+
**member_id** | **int**| | [optional]
|
|
232
|
+
**start_time** | **datetime**| | [optional]
|
|
233
|
+
**end_time** | **datetime**| | [optional]
|
|
234
|
+
**backend_type_id** | **int**| | [optional]
|
|
235
|
+
**backend_id__isnull** | **bool**| | [optional]
|
|
236
|
+
**backend_id** | **int**| | [optional]
|
|
237
|
+
**is_terminated** | **bool**| | [optional]
|
|
238
|
+
**sort_by** | **str**| The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'. | [optional]
|
|
239
|
+
**latest** | **bool**| If True gets the most recently created object. | [optional]
|
|
240
|
+
**page** | **int**| Page number | [optional] [default to 1]
|
|
241
|
+
**size** | **int**| Page size | [optional] [default to 50]
|
|
242
|
+
|
|
243
|
+
### Return type
|
|
244
|
+
|
|
245
|
+
[**PageReservation**](PageReservation.md)
|
|
246
|
+
|
|
247
|
+
### Authorization
|
|
248
|
+
|
|
249
|
+
[user_bearer](../README.md#user_bearer)
|
|
250
|
+
|
|
251
|
+
### HTTP request headers
|
|
252
|
+
|
|
253
|
+
- **Content-Type**: Not defined
|
|
254
|
+
- **Accept**: application/json
|
|
255
|
+
|
|
256
|
+
### HTTP response details
|
|
257
|
+
|
|
258
|
+
| Status code | Description | Response headers |
|
|
259
|
+
|-------------|-------------|------------------|
|
|
260
|
+
**200** | Successful Response | - |
|
|
261
|
+
**422** | Validation Error | - |
|
|
262
|
+
|
|
263
|
+
[[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)
|
|
264
|
+
|
|
265
|
+
# **terminate_reservation_reservations_id_terminate_patch**
|
|
266
|
+
> Reservation terminate_reservation_reservations_id_terminate_patch(id)
|
|
267
|
+
|
|
268
|
+
Terminate reservation
|
|
269
|
+
|
|
270
|
+
Terminate reservation by ID.
|
|
271
|
+
|
|
272
|
+
### Example
|
|
273
|
+
|
|
274
|
+
* OAuth Authentication (user_bearer):
|
|
275
|
+
|
|
276
|
+
```python
|
|
277
|
+
import compute_api_client
|
|
278
|
+
from compute_api_client.models.reservation import Reservation
|
|
279
|
+
from compute_api_client.rest import ApiException
|
|
280
|
+
from pprint import pprint
|
|
281
|
+
|
|
282
|
+
# Defining the host is optional and defaults to http://localhost
|
|
283
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
284
|
+
configuration = compute_api_client.Configuration(
|
|
285
|
+
host = "http://localhost"
|
|
286
|
+
)
|
|
287
|
+
|
|
288
|
+
# The client must configure the authentication and authorization parameters
|
|
289
|
+
# in accordance with the API server security policy.
|
|
290
|
+
# Examples for each auth method are provided below, use the example that
|
|
291
|
+
# satisfies your auth use case.
|
|
292
|
+
|
|
293
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
294
|
+
|
|
295
|
+
# Enter a context with an instance of the API client
|
|
296
|
+
async with compute_api_client.ApiClient(configuration) as api_client:
|
|
297
|
+
# Create an instance of the API class
|
|
298
|
+
api_instance = compute_api_client.ReservationsApi(api_client)
|
|
299
|
+
id = 56 # int |
|
|
300
|
+
|
|
301
|
+
try:
|
|
302
|
+
# Terminate reservation
|
|
303
|
+
api_response = await api_instance.terminate_reservation_reservations_id_terminate_patch(id)
|
|
304
|
+
print("The response of ReservationsApi->terminate_reservation_reservations_id_terminate_patch:\n")
|
|
305
|
+
pprint(api_response)
|
|
306
|
+
except Exception as e:
|
|
307
|
+
print("Exception when calling ReservationsApi->terminate_reservation_reservations_id_terminate_patch: %s\n" % e)
|
|
308
|
+
```
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
### Parameters
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
Name | Type | Description | Notes
|
|
316
|
+
------------- | ------------- | ------------- | -------------
|
|
317
|
+
**id** | **int**| |
|
|
318
|
+
|
|
319
|
+
### Return type
|
|
320
|
+
|
|
321
|
+
[**Reservation**](Reservation.md)
|
|
322
|
+
|
|
323
|
+
### Authorization
|
|
324
|
+
|
|
325
|
+
[user_bearer](../README.md#user_bearer)
|
|
326
|
+
|
|
327
|
+
### HTTP request headers
|
|
328
|
+
|
|
329
|
+
- **Content-Type**: Not defined
|
|
330
|
+
- **Accept**: application/json
|
|
331
|
+
|
|
332
|
+
### HTTP response details
|
|
333
|
+
|
|
334
|
+
| Status code | Description | Response headers |
|
|
335
|
+
|-------------|-------------|------------------|
|
|
336
|
+
**200** | Successful Response | - |
|
|
337
|
+
**404** | Not Found | - |
|
|
338
|
+
**422** | Validation Error | - |
|
|
339
|
+
|
|
340
|
+
[[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)
|
|
341
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# Result
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **int** | The ID of the result |
|
|
9
|
+
**created_on** | **datetime** | Time of creation of the result |
|
|
10
|
+
**job_id** | **int** | The ID of the job |
|
|
11
|
+
**execution_time_in_seconds** | **float** | Time it took to compute the result |
|
|
12
|
+
**shots_requested** | **int** | |
|
|
13
|
+
**shots_done** | **int** | |
|
|
14
|
+
**results** | **Dict[str, object]** | |
|
|
15
|
+
**raw_data** | **List[str]** | |
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```python
|
|
20
|
+
from compute_api_client.models.result import Result
|
|
21
|
+
|
|
22
|
+
# TODO update the JSON string below
|
|
23
|
+
json = "{}"
|
|
24
|
+
# create an instance of Result from a JSON string
|
|
25
|
+
result_instance = Result.from_json(json)
|
|
26
|
+
# print the JSON string representation of the object
|
|
27
|
+
print(Result.to_json())
|
|
28
|
+
|
|
29
|
+
# convert the object into a dict
|
|
30
|
+
result_dict = result_instance.to_dict()
|
|
31
|
+
# create an instance of Result from a dict
|
|
32
|
+
result_from_dict = Result.from_dict(result_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,34 @@
|
|
|
1
|
+
# ResultIn
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**job_id** | **int** | The ID of the result |
|
|
9
|
+
**execution_time_in_seconds** | **float** | Time it took to compute the result |
|
|
10
|
+
**shots_requested** | **int** | | [optional]
|
|
11
|
+
**shots_done** | **int** | | [optional]
|
|
12
|
+
**results** | **Dict[str, object]** | | [optional]
|
|
13
|
+
**raw_data** | **List[str]** | | [optional]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```python
|
|
18
|
+
from compute_api_client.models.result_in import ResultIn
|
|
19
|
+
|
|
20
|
+
# TODO update the JSON string below
|
|
21
|
+
json = "{}"
|
|
22
|
+
# create an instance of ResultIn from a JSON string
|
|
23
|
+
result_in_instance = ResultIn.from_json(json)
|
|
24
|
+
# print the JSON string representation of the object
|
|
25
|
+
print(ResultIn.to_json())
|
|
26
|
+
|
|
27
|
+
# convert the object into a dict
|
|
28
|
+
result_in_dict = result_in_instance.to_dict()
|
|
29
|
+
# create an instance of ResultIn from a dict
|
|
30
|
+
result_in_from_dict = ResultIn.from_dict(result_in_dict)
|
|
31
|
+
```
|
|
32
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
33
|
+
|
|
34
|
+
|