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,289 @@
|
|
|
1
|
+
# compute_api_client.BackendTypesApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost*
|
|
4
|
+
|
|
5
|
+
Method | HTTP request | Description
|
|
6
|
+
------------- | ------------- | -------------
|
|
7
|
+
[**read_backend_type_backend_types_id_get**](BackendTypesApi.md#read_backend_type_backend_types_id_get) | **GET** /backend_types/{id} | Retrieve backend type
|
|
8
|
+
[**read_backend_types_backend_types_get**](BackendTypesApi.md#read_backend_types_backend_types_get) | **GET** /backend_types/ | List backend types
|
|
9
|
+
[**update_backend_type_backend_types_me_patch**](BackendTypesApi.md#update_backend_type_backend_types_me_patch) | **PATCH** /backend_types/me | Update backend type
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
# **read_backend_type_backend_types_id_get**
|
|
13
|
+
> BackendType read_backend_type_backend_types_id_get(id)
|
|
14
|
+
|
|
15
|
+
Retrieve backend type
|
|
16
|
+
|
|
17
|
+
Get backend type by ID.
|
|
18
|
+
|
|
19
|
+
### Example
|
|
20
|
+
|
|
21
|
+
* OAuth Authentication (user_bearer):
|
|
22
|
+
* Api Key Authentication (backend):
|
|
23
|
+
|
|
24
|
+
```python
|
|
25
|
+
import compute_api_client
|
|
26
|
+
from compute_api_client.models.backend_type import BackendType
|
|
27
|
+
from compute_api_client.rest import ApiException
|
|
28
|
+
from pprint import pprint
|
|
29
|
+
|
|
30
|
+
# Defining the host is optional and defaults to http://localhost
|
|
31
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
32
|
+
configuration = compute_api_client.Configuration(
|
|
33
|
+
host = "http://localhost"
|
|
34
|
+
)
|
|
35
|
+
|
|
36
|
+
# The client must configure the authentication and authorization parameters
|
|
37
|
+
# in accordance with the API server security policy.
|
|
38
|
+
# Examples for each auth method are provided below, use the example that
|
|
39
|
+
# satisfies your auth use case.
|
|
40
|
+
|
|
41
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
42
|
+
|
|
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
|
+
|
|
49
|
+
# Enter a context with an instance of the API client
|
|
50
|
+
async with compute_api_client.ApiClient(configuration) as api_client:
|
|
51
|
+
# Create an instance of the API class
|
|
52
|
+
api_instance = compute_api_client.BackendTypesApi(api_client)
|
|
53
|
+
id = 56 # int |
|
|
54
|
+
|
|
55
|
+
try:
|
|
56
|
+
# Retrieve backend type
|
|
57
|
+
api_response = await api_instance.read_backend_type_backend_types_id_get(id)
|
|
58
|
+
print("The response of BackendTypesApi->read_backend_type_backend_types_id_get:\n")
|
|
59
|
+
pprint(api_response)
|
|
60
|
+
except Exception as e:
|
|
61
|
+
print("Exception when calling BackendTypesApi->read_backend_type_backend_types_id_get: %s\n" % e)
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
### Parameters
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
Name | Type | Description | Notes
|
|
70
|
+
------------- | ------------- | ------------- | -------------
|
|
71
|
+
**id** | **int**| |
|
|
72
|
+
|
|
73
|
+
### Return type
|
|
74
|
+
|
|
75
|
+
[**BackendType**](BackendType.md)
|
|
76
|
+
|
|
77
|
+
### Authorization
|
|
78
|
+
|
|
79
|
+
[user_bearer](../README.md#user_bearer), [backend](../README.md#backend)
|
|
80
|
+
|
|
81
|
+
### HTTP request headers
|
|
82
|
+
|
|
83
|
+
- **Content-Type**: Not defined
|
|
84
|
+
- **Accept**: application/json
|
|
85
|
+
|
|
86
|
+
### HTTP response details
|
|
87
|
+
|
|
88
|
+
| Status code | Description | Response headers |
|
|
89
|
+
|-------------|-------------|------------------|
|
|
90
|
+
**200** | Successful Response | - |
|
|
91
|
+
**404** | Not Found | - |
|
|
92
|
+
**422** | Validation Error | - |
|
|
93
|
+
|
|
94
|
+
[[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)
|
|
95
|
+
|
|
96
|
+
# **read_backend_types_backend_types_get**
|
|
97
|
+
> PageBackendType read_backend_types_backend_types_get(id=id, name=name, infrastructure=infrastructure, description=description, image_id=image_id, is_hardware=is_hardware, supports_raw_data=supports_raw_data, nqubits=nqubits, status=status, default_number_of_shots=default_number_of_shots, max_number_of_shots=max_number_of_shots, enabled=enabled, identifier=identifier, protocol_version__isnull=protocol_version__isnull, protocol_version=protocol_version, job_execution_time_limit=job_execution_time_limit, sort_by=sort_by, latest=latest, page=page, size=size)
|
|
98
|
+
|
|
99
|
+
List backend types
|
|
100
|
+
|
|
101
|
+
Read backend types.
|
|
102
|
+
|
|
103
|
+
Only enabled backend types are returned.
|
|
104
|
+
|
|
105
|
+
### Example
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
```python
|
|
109
|
+
import compute_api_client
|
|
110
|
+
from compute_api_client.models.backend_status import BackendStatus
|
|
111
|
+
from compute_api_client.models.page_backend_type import PageBackendType
|
|
112
|
+
from compute_api_client.rest import ApiException
|
|
113
|
+
from pprint import pprint
|
|
114
|
+
|
|
115
|
+
# Defining the host is optional and defaults to http://localhost
|
|
116
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
117
|
+
configuration = compute_api_client.Configuration(
|
|
118
|
+
host = "http://localhost"
|
|
119
|
+
)
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
# Enter a context with an instance of the API client
|
|
123
|
+
async with compute_api_client.ApiClient(configuration) as api_client:
|
|
124
|
+
# Create an instance of the API class
|
|
125
|
+
api_instance = compute_api_client.BackendTypesApi(api_client)
|
|
126
|
+
id = 56 # int | (optional)
|
|
127
|
+
name = 'name_example' # str | (optional)
|
|
128
|
+
infrastructure = 'infrastructure_example' # str | (optional)
|
|
129
|
+
description = 'description_example' # str | (optional)
|
|
130
|
+
image_id = 'image_id_example' # str | (optional)
|
|
131
|
+
is_hardware = True # bool | (optional)
|
|
132
|
+
supports_raw_data = True # bool | (optional)
|
|
133
|
+
nqubits = 56 # int | (optional)
|
|
134
|
+
status = compute_api_client.BackendStatus() # BackendStatus | (optional)
|
|
135
|
+
default_number_of_shots = 56 # int | (optional)
|
|
136
|
+
max_number_of_shots = 56 # int | (optional)
|
|
137
|
+
enabled = True # bool | (optional)
|
|
138
|
+
identifier = 'identifier_example' # str | (optional)
|
|
139
|
+
protocol_version__isnull = True # bool | (optional)
|
|
140
|
+
protocol_version = 56 # int | (optional)
|
|
141
|
+
job_execution_time_limit = 3.4 # float | (optional)
|
|
142
|
+
sort_by = 'sort_by_example' # str | The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'. (optional)
|
|
143
|
+
latest = True # bool | If True gets the most recently created object. (optional)
|
|
144
|
+
page = 1 # int | Page number (optional) (default to 1)
|
|
145
|
+
size = 50 # int | Page size (optional) (default to 50)
|
|
146
|
+
|
|
147
|
+
try:
|
|
148
|
+
# List backend types
|
|
149
|
+
api_response = await api_instance.read_backend_types_backend_types_get(id=id, name=name, infrastructure=infrastructure, description=description, image_id=image_id, is_hardware=is_hardware, supports_raw_data=supports_raw_data, nqubits=nqubits, status=status, default_number_of_shots=default_number_of_shots, max_number_of_shots=max_number_of_shots, enabled=enabled, identifier=identifier, protocol_version__isnull=protocol_version__isnull, protocol_version=protocol_version, job_execution_time_limit=job_execution_time_limit, sort_by=sort_by, latest=latest, page=page, size=size)
|
|
150
|
+
print("The response of BackendTypesApi->read_backend_types_backend_types_get:\n")
|
|
151
|
+
pprint(api_response)
|
|
152
|
+
except Exception as e:
|
|
153
|
+
print("Exception when calling BackendTypesApi->read_backend_types_backend_types_get: %s\n" % e)
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
### Parameters
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
Name | Type | Description | Notes
|
|
162
|
+
------------- | ------------- | ------------- | -------------
|
|
163
|
+
**id** | **int**| | [optional]
|
|
164
|
+
**name** | **str**| | [optional]
|
|
165
|
+
**infrastructure** | **str**| | [optional]
|
|
166
|
+
**description** | **str**| | [optional]
|
|
167
|
+
**image_id** | **str**| | [optional]
|
|
168
|
+
**is_hardware** | **bool**| | [optional]
|
|
169
|
+
**supports_raw_data** | **bool**| | [optional]
|
|
170
|
+
**nqubits** | **int**| | [optional]
|
|
171
|
+
**status** | [**BackendStatus**](.md)| | [optional]
|
|
172
|
+
**default_number_of_shots** | **int**| | [optional]
|
|
173
|
+
**max_number_of_shots** | **int**| | [optional]
|
|
174
|
+
**enabled** | **bool**| | [optional]
|
|
175
|
+
**identifier** | **str**| | [optional]
|
|
176
|
+
**protocol_version__isnull** | **bool**| | [optional]
|
|
177
|
+
**protocol_version** | **int**| | [optional]
|
|
178
|
+
**job_execution_time_limit** | **float**| | [optional]
|
|
179
|
+
**sort_by** | **str**| The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'. | [optional]
|
|
180
|
+
**latest** | **bool**| If True gets the most recently created object. | [optional]
|
|
181
|
+
**page** | **int**| Page number | [optional] [default to 1]
|
|
182
|
+
**size** | **int**| Page size | [optional] [default to 50]
|
|
183
|
+
|
|
184
|
+
### Return type
|
|
185
|
+
|
|
186
|
+
[**PageBackendType**](PageBackendType.md)
|
|
187
|
+
|
|
188
|
+
### Authorization
|
|
189
|
+
|
|
190
|
+
No authorization required
|
|
191
|
+
|
|
192
|
+
### HTTP request headers
|
|
193
|
+
|
|
194
|
+
- **Content-Type**: Not defined
|
|
195
|
+
- **Accept**: application/json
|
|
196
|
+
|
|
197
|
+
### HTTP response details
|
|
198
|
+
|
|
199
|
+
| Status code | Description | Response headers |
|
|
200
|
+
|-------------|-------------|------------------|
|
|
201
|
+
**200** | Successful Response | - |
|
|
202
|
+
**422** | Validation Error | - |
|
|
203
|
+
|
|
204
|
+
[[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)
|
|
205
|
+
|
|
206
|
+
# **update_backend_type_backend_types_me_patch**
|
|
207
|
+
> BackendType update_backend_type_backend_types_me_patch(backend_type_patch)
|
|
208
|
+
|
|
209
|
+
Update backend type
|
|
210
|
+
|
|
211
|
+
Update backend type by ID.
|
|
212
|
+
|
|
213
|
+
This endpoint allows for partial updates of backend type properties.
|
|
214
|
+
|
|
215
|
+
### Example
|
|
216
|
+
|
|
217
|
+
* Api Key Authentication (backend):
|
|
218
|
+
|
|
219
|
+
```python
|
|
220
|
+
import compute_api_client
|
|
221
|
+
from compute_api_client.models.backend_type import BackendType
|
|
222
|
+
from compute_api_client.models.backend_type_patch import BackendTypePatch
|
|
223
|
+
from compute_api_client.rest import ApiException
|
|
224
|
+
from pprint import pprint
|
|
225
|
+
|
|
226
|
+
# Defining the host is optional and defaults to http://localhost
|
|
227
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
228
|
+
configuration = compute_api_client.Configuration(
|
|
229
|
+
host = "http://localhost"
|
|
230
|
+
)
|
|
231
|
+
|
|
232
|
+
# The client must configure the authentication and authorization parameters
|
|
233
|
+
# in accordance with the API server security policy.
|
|
234
|
+
# Examples for each auth method are provided below, use the example that
|
|
235
|
+
# satisfies your auth use case.
|
|
236
|
+
|
|
237
|
+
# Configure API key authorization: backend
|
|
238
|
+
configuration.api_key['backend'] = os.environ["API_KEY"]
|
|
239
|
+
|
|
240
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
241
|
+
# configuration.api_key_prefix['backend'] = 'Bearer'
|
|
242
|
+
|
|
243
|
+
# Enter a context with an instance of the API client
|
|
244
|
+
async with compute_api_client.ApiClient(configuration) as api_client:
|
|
245
|
+
# Create an instance of the API class
|
|
246
|
+
api_instance = compute_api_client.BackendTypesApi(api_client)
|
|
247
|
+
backend_type_patch = compute_api_client.BackendTypePatch() # BackendTypePatch |
|
|
248
|
+
|
|
249
|
+
try:
|
|
250
|
+
# Update backend type
|
|
251
|
+
api_response = await api_instance.update_backend_type_backend_types_me_patch(backend_type_patch)
|
|
252
|
+
print("The response of BackendTypesApi->update_backend_type_backend_types_me_patch:\n")
|
|
253
|
+
pprint(api_response)
|
|
254
|
+
except Exception as e:
|
|
255
|
+
print("Exception when calling BackendTypesApi->update_backend_type_backend_types_me_patch: %s\n" % e)
|
|
256
|
+
```
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
### Parameters
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
Name | Type | Description | Notes
|
|
264
|
+
------------- | ------------- | ------------- | -------------
|
|
265
|
+
**backend_type_patch** | [**BackendTypePatch**](BackendTypePatch.md)| |
|
|
266
|
+
|
|
267
|
+
### Return type
|
|
268
|
+
|
|
269
|
+
[**BackendType**](BackendType.md)
|
|
270
|
+
|
|
271
|
+
### Authorization
|
|
272
|
+
|
|
273
|
+
[backend](../README.md#backend)
|
|
274
|
+
|
|
275
|
+
### HTTP request headers
|
|
276
|
+
|
|
277
|
+
- **Content-Type**: application/json
|
|
278
|
+
- **Accept**: application/json
|
|
279
|
+
|
|
280
|
+
### HTTP response details
|
|
281
|
+
|
|
282
|
+
| Status code | Description | Response headers |
|
|
283
|
+
|-------------|-------------|------------------|
|
|
284
|
+
**200** | Successful Response | - |
|
|
285
|
+
**404** | Not Found | - |
|
|
286
|
+
**422** | Validation Error | - |
|
|
287
|
+
|
|
288
|
+
[[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)
|
|
289
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# BackendWithAuthentication
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **int** | The id of the backend |
|
|
9
|
+
**name** | **str** | The name of the backend |
|
|
10
|
+
**location** | **str** | The location of the backend |
|
|
11
|
+
**backend_type_id** | **int** | The id of the backend type |
|
|
12
|
+
**status** | [**BackendStatus**](BackendStatus.md) | Status of the backend |
|
|
13
|
+
**message** | [**BackendMessage**](BackendMessage.md) | The message obj for a backend | [optional]
|
|
14
|
+
**last_heartbeat** | **datetime** | Time of last heartbeat |
|
|
15
|
+
**authentication_hash** | **str** | The authentication hash of the backend |
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```python
|
|
20
|
+
from compute_api_client.models.backend_with_authentication import BackendWithAuthentication
|
|
21
|
+
|
|
22
|
+
# TODO update the JSON string below
|
|
23
|
+
json = "{}"
|
|
24
|
+
# create an instance of BackendWithAuthentication from a JSON string
|
|
25
|
+
backend_with_authentication_instance = BackendWithAuthentication.from_json(json)
|
|
26
|
+
# print the JSON string representation of the object
|
|
27
|
+
print(BackendWithAuthentication.to_json())
|
|
28
|
+
|
|
29
|
+
# convert the object into a dict
|
|
30
|
+
backend_with_authentication_dict = backend_with_authentication_instance.to_dict()
|
|
31
|
+
# create an instance of BackendWithAuthentication from a dict
|
|
32
|
+
backend_with_authentication_from_dict = BackendWithAuthentication.from_dict(backend_with_authentication_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,39 @@
|
|
|
1
|
+
# BatchJob
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **int** | ID of the batch job |
|
|
9
|
+
**created_on** | **datetime** | Time of batchjob creation |
|
|
10
|
+
**status** | [**BatchJobStatus**](BatchJobStatus.md) | Status of the batchjob |
|
|
11
|
+
**user_id** | **int** | ID of the user to whom this job belongs |
|
|
12
|
+
**backend_type_id** | **int** | ID of the backendtype |
|
|
13
|
+
**backend_id** | **int** | |
|
|
14
|
+
**queued_at** | **datetime** | |
|
|
15
|
+
**reserved_at** | **datetime** | |
|
|
16
|
+
**finished_at** | **datetime** | |
|
|
17
|
+
**job_ids** | **List[int]** | Job ids in the batch job |
|
|
18
|
+
**aggregated_algorithm_type** | [**AlgorithmType**](AlgorithmType.md) | Algorithm type submitted |
|
|
19
|
+
|
|
20
|
+
## Example
|
|
21
|
+
|
|
22
|
+
```python
|
|
23
|
+
from compute_api_client.models.batch_job import BatchJob
|
|
24
|
+
|
|
25
|
+
# TODO update the JSON string below
|
|
26
|
+
json = "{}"
|
|
27
|
+
# create an instance of BatchJob from a JSON string
|
|
28
|
+
batch_job_instance = BatchJob.from_json(json)
|
|
29
|
+
# print the JSON string representation of the object
|
|
30
|
+
print(BatchJob.to_json())
|
|
31
|
+
|
|
32
|
+
# convert the object into a dict
|
|
33
|
+
batch_job_dict = batch_job_instance.to_dict()
|
|
34
|
+
# create an instance of BatchJob from a dict
|
|
35
|
+
batch_job_from_dict = BatchJob.from_dict(batch_job_dict)
|
|
36
|
+
```
|
|
37
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
38
|
+
|
|
39
|
+
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# BatchJobIn
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**backend_type_id** | **int** | ID of the batch job |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```python
|
|
13
|
+
from compute_api_client.models.batch_job_in import BatchJobIn
|
|
14
|
+
|
|
15
|
+
# TODO update the JSON string below
|
|
16
|
+
json = "{}"
|
|
17
|
+
# create an instance of BatchJobIn from a JSON string
|
|
18
|
+
batch_job_in_instance = BatchJobIn.from_json(json)
|
|
19
|
+
# print the JSON string representation of the object
|
|
20
|
+
print(BatchJobIn.to_json())
|
|
21
|
+
|
|
22
|
+
# convert the object into a dict
|
|
23
|
+
batch_job_in_dict = batch_job_in_instance.to_dict()
|
|
24
|
+
# create an instance of BatchJobIn from a dict
|
|
25
|
+
batch_job_in_from_dict = BatchJobIn.from_dict(batch_job_in_dict)
|
|
26
|
+
```
|
|
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)
|
|
28
|
+
|
|
29
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# BatchJobStatus
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Enum
|
|
5
|
+
|
|
6
|
+
* `PLANNED` (value: `'planned'`)
|
|
7
|
+
|
|
8
|
+
* `QUEUED` (value: `'queued'`)
|
|
9
|
+
|
|
10
|
+
* `RESERVED` (value: `'reserved'`)
|
|
11
|
+
|
|
12
|
+
* `RUNNING` (value: `'running'`)
|
|
13
|
+
|
|
14
|
+
* `FINISHED` (value: `'finished'`)
|
|
15
|
+
|
|
16
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
17
|
+
|
|
18
|
+
|