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,502 @@
|
|
|
1
|
+
# compute_api_client.ProjectsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost*
|
|
4
|
+
|
|
5
|
+
Method | HTTP request | Description
|
|
6
|
+
------------- | ------------- | -------------
|
|
7
|
+
[**create_project_projects_post**](ProjectsApi.md#create_project_projects_post) | **POST** /projects | Create project
|
|
8
|
+
[**delete_project_projects_id_delete**](ProjectsApi.md#delete_project_projects_id_delete) | **DELETE** /projects/{id} | Destroy project
|
|
9
|
+
[**partial_update_project_projects_id_patch**](ProjectsApi.md#partial_update_project_projects_id_patch) | **PATCH** /projects/{id} | Partially update project
|
|
10
|
+
[**read_project_projects_id_get**](ProjectsApi.md#read_project_projects_id_get) | **GET** /projects/{id} | Retrieve project
|
|
11
|
+
[**read_projects_projects_get**](ProjectsApi.md#read_projects_projects_get) | **GET** /projects | List projects
|
|
12
|
+
[**update_project_projects_id_put**](ProjectsApi.md#update_project_projects_id_put) | **PUT** /projects/{id} | Update project
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
# **create_project_projects_post**
|
|
16
|
+
> Project create_project_projects_post(project_in)
|
|
17
|
+
|
|
18
|
+
Create project
|
|
19
|
+
|
|
20
|
+
Create new project.
|
|
21
|
+
|
|
22
|
+
### Example
|
|
23
|
+
|
|
24
|
+
* OAuth Authentication (user_bearer):
|
|
25
|
+
|
|
26
|
+
```python
|
|
27
|
+
import compute_api_client
|
|
28
|
+
from compute_api_client.models.project import Project
|
|
29
|
+
from compute_api_client.models.project_in import ProjectIn
|
|
30
|
+
from compute_api_client.rest import ApiException
|
|
31
|
+
from pprint import pprint
|
|
32
|
+
|
|
33
|
+
# Defining the host is optional and defaults to http://localhost
|
|
34
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
35
|
+
configuration = compute_api_client.Configuration(
|
|
36
|
+
host = "http://localhost"
|
|
37
|
+
)
|
|
38
|
+
|
|
39
|
+
# The client must configure the authentication and authorization parameters
|
|
40
|
+
# in accordance with the API server security policy.
|
|
41
|
+
# Examples for each auth method are provided below, use the example that
|
|
42
|
+
# satisfies your auth use case.
|
|
43
|
+
|
|
44
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
45
|
+
|
|
46
|
+
# Enter a context with an instance of the API client
|
|
47
|
+
async with compute_api_client.ApiClient(configuration) as api_client:
|
|
48
|
+
# Create an instance of the API class
|
|
49
|
+
api_instance = compute_api_client.ProjectsApi(api_client)
|
|
50
|
+
project_in = compute_api_client.ProjectIn() # ProjectIn |
|
|
51
|
+
|
|
52
|
+
try:
|
|
53
|
+
# Create project
|
|
54
|
+
api_response = await api_instance.create_project_projects_post(project_in)
|
|
55
|
+
print("The response of ProjectsApi->create_project_projects_post:\n")
|
|
56
|
+
pprint(api_response)
|
|
57
|
+
except Exception as e:
|
|
58
|
+
print("Exception when calling ProjectsApi->create_project_projects_post: %s\n" % e)
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
### Parameters
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
Name | Type | Description | Notes
|
|
67
|
+
------------- | ------------- | ------------- | -------------
|
|
68
|
+
**project_in** | [**ProjectIn**](ProjectIn.md)| |
|
|
69
|
+
|
|
70
|
+
### Return type
|
|
71
|
+
|
|
72
|
+
[**Project**](Project.md)
|
|
73
|
+
|
|
74
|
+
### Authorization
|
|
75
|
+
|
|
76
|
+
[user_bearer](../README.md#user_bearer)
|
|
77
|
+
|
|
78
|
+
### HTTP request headers
|
|
79
|
+
|
|
80
|
+
- **Content-Type**: application/json
|
|
81
|
+
- **Accept**: application/json
|
|
82
|
+
|
|
83
|
+
### HTTP response details
|
|
84
|
+
|
|
85
|
+
| Status code | Description | Response headers |
|
|
86
|
+
|-------------|-------------|------------------|
|
|
87
|
+
**201** | Successful Response | - |
|
|
88
|
+
**422** | Validation Error | - |
|
|
89
|
+
|
|
90
|
+
[[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)
|
|
91
|
+
|
|
92
|
+
# **delete_project_projects_id_delete**
|
|
93
|
+
> delete_project_projects_id_delete(id)
|
|
94
|
+
|
|
95
|
+
Destroy project
|
|
96
|
+
|
|
97
|
+
Delete a project.
|
|
98
|
+
|
|
99
|
+
### Example
|
|
100
|
+
|
|
101
|
+
* OAuth Authentication (user_bearer):
|
|
102
|
+
|
|
103
|
+
```python
|
|
104
|
+
import compute_api_client
|
|
105
|
+
from compute_api_client.rest import ApiException
|
|
106
|
+
from pprint import pprint
|
|
107
|
+
|
|
108
|
+
# Defining the host is optional and defaults to http://localhost
|
|
109
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
110
|
+
configuration = compute_api_client.Configuration(
|
|
111
|
+
host = "http://localhost"
|
|
112
|
+
)
|
|
113
|
+
|
|
114
|
+
# The client must configure the authentication and authorization parameters
|
|
115
|
+
# in accordance with the API server security policy.
|
|
116
|
+
# Examples for each auth method are provided below, use the example that
|
|
117
|
+
# satisfies your auth use case.
|
|
118
|
+
|
|
119
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
120
|
+
|
|
121
|
+
# Enter a context with an instance of the API client
|
|
122
|
+
async with compute_api_client.ApiClient(configuration) as api_client:
|
|
123
|
+
# Create an instance of the API class
|
|
124
|
+
api_instance = compute_api_client.ProjectsApi(api_client)
|
|
125
|
+
id = 56 # int |
|
|
126
|
+
|
|
127
|
+
try:
|
|
128
|
+
# Destroy project
|
|
129
|
+
await api_instance.delete_project_projects_id_delete(id)
|
|
130
|
+
except Exception as e:
|
|
131
|
+
print("Exception when calling ProjectsApi->delete_project_projects_id_delete: %s\n" % e)
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
### Parameters
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
Name | Type | Description | Notes
|
|
140
|
+
------------- | ------------- | ------------- | -------------
|
|
141
|
+
**id** | **int**| |
|
|
142
|
+
|
|
143
|
+
### Return type
|
|
144
|
+
|
|
145
|
+
void (empty response body)
|
|
146
|
+
|
|
147
|
+
### Authorization
|
|
148
|
+
|
|
149
|
+
[user_bearer](../README.md#user_bearer)
|
|
150
|
+
|
|
151
|
+
### HTTP request headers
|
|
152
|
+
|
|
153
|
+
- **Content-Type**: Not defined
|
|
154
|
+
- **Accept**: application/json
|
|
155
|
+
|
|
156
|
+
### HTTP response details
|
|
157
|
+
|
|
158
|
+
| Status code | Description | Response headers |
|
|
159
|
+
|-------------|-------------|------------------|
|
|
160
|
+
**204** | Successful Response | - |
|
|
161
|
+
**404** | Not Found | - |
|
|
162
|
+
**422** | Validation Error | - |
|
|
163
|
+
|
|
164
|
+
[[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)
|
|
165
|
+
|
|
166
|
+
# **partial_update_project_projects_id_patch**
|
|
167
|
+
> Project partial_update_project_projects_id_patch(id, project_patch)
|
|
168
|
+
|
|
169
|
+
Partially update project
|
|
170
|
+
|
|
171
|
+
Partially update a project.
|
|
172
|
+
|
|
173
|
+
### Example
|
|
174
|
+
|
|
175
|
+
* OAuth Authentication (user_bearer):
|
|
176
|
+
|
|
177
|
+
```python
|
|
178
|
+
import compute_api_client
|
|
179
|
+
from compute_api_client.models.project import Project
|
|
180
|
+
from compute_api_client.models.project_patch import ProjectPatch
|
|
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.ProjectsApi(api_client)
|
|
201
|
+
id = 56 # int |
|
|
202
|
+
project_patch = compute_api_client.ProjectPatch() # ProjectPatch |
|
|
203
|
+
|
|
204
|
+
try:
|
|
205
|
+
# Partially update project
|
|
206
|
+
api_response = await api_instance.partial_update_project_projects_id_patch(id, project_patch)
|
|
207
|
+
print("The response of ProjectsApi->partial_update_project_projects_id_patch:\n")
|
|
208
|
+
pprint(api_response)
|
|
209
|
+
except Exception as e:
|
|
210
|
+
print("Exception when calling ProjectsApi->partial_update_project_projects_id_patch: %s\n" % e)
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
### Parameters
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
Name | Type | Description | Notes
|
|
219
|
+
------------- | ------------- | ------------- | -------------
|
|
220
|
+
**id** | **int**| |
|
|
221
|
+
**project_patch** | [**ProjectPatch**](ProjectPatch.md)| |
|
|
222
|
+
|
|
223
|
+
### Return type
|
|
224
|
+
|
|
225
|
+
[**Project**](Project.md)
|
|
226
|
+
|
|
227
|
+
### Authorization
|
|
228
|
+
|
|
229
|
+
[user_bearer](../README.md#user_bearer)
|
|
230
|
+
|
|
231
|
+
### HTTP request headers
|
|
232
|
+
|
|
233
|
+
- **Content-Type**: application/json
|
|
234
|
+
- **Accept**: application/json
|
|
235
|
+
|
|
236
|
+
### HTTP response details
|
|
237
|
+
|
|
238
|
+
| Status code | Description | Response headers |
|
|
239
|
+
|-------------|-------------|------------------|
|
|
240
|
+
**200** | Successful Response | - |
|
|
241
|
+
**404** | Not Found | - |
|
|
242
|
+
**422** | Validation Error | - |
|
|
243
|
+
|
|
244
|
+
[[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)
|
|
245
|
+
|
|
246
|
+
# **read_project_projects_id_get**
|
|
247
|
+
> Project read_project_projects_id_get(id)
|
|
248
|
+
|
|
249
|
+
Retrieve project
|
|
250
|
+
|
|
251
|
+
Get project by ID.
|
|
252
|
+
|
|
253
|
+
### Example
|
|
254
|
+
|
|
255
|
+
* OAuth Authentication (user_bearer):
|
|
256
|
+
|
|
257
|
+
```python
|
|
258
|
+
import compute_api_client
|
|
259
|
+
from compute_api_client.models.project import Project
|
|
260
|
+
from compute_api_client.rest import ApiException
|
|
261
|
+
from pprint import pprint
|
|
262
|
+
|
|
263
|
+
# Defining the host is optional and defaults to http://localhost
|
|
264
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
265
|
+
configuration = compute_api_client.Configuration(
|
|
266
|
+
host = "http://localhost"
|
|
267
|
+
)
|
|
268
|
+
|
|
269
|
+
# The client must configure the authentication and authorization parameters
|
|
270
|
+
# in accordance with the API server security policy.
|
|
271
|
+
# Examples for each auth method are provided below, use the example that
|
|
272
|
+
# satisfies your auth use case.
|
|
273
|
+
|
|
274
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
275
|
+
|
|
276
|
+
# Enter a context with an instance of the API client
|
|
277
|
+
async with compute_api_client.ApiClient(configuration) as api_client:
|
|
278
|
+
# Create an instance of the API class
|
|
279
|
+
api_instance = compute_api_client.ProjectsApi(api_client)
|
|
280
|
+
id = 56 # int |
|
|
281
|
+
|
|
282
|
+
try:
|
|
283
|
+
# Retrieve project
|
|
284
|
+
api_response = await api_instance.read_project_projects_id_get(id)
|
|
285
|
+
print("The response of ProjectsApi->read_project_projects_id_get:\n")
|
|
286
|
+
pprint(api_response)
|
|
287
|
+
except Exception as e:
|
|
288
|
+
print("Exception when calling ProjectsApi->read_project_projects_id_get: %s\n" % e)
|
|
289
|
+
```
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
### Parameters
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
Name | Type | Description | Notes
|
|
297
|
+
------------- | ------------- | ------------- | -------------
|
|
298
|
+
**id** | **int**| |
|
|
299
|
+
|
|
300
|
+
### Return type
|
|
301
|
+
|
|
302
|
+
[**Project**](Project.md)
|
|
303
|
+
|
|
304
|
+
### Authorization
|
|
305
|
+
|
|
306
|
+
[user_bearer](../README.md#user_bearer)
|
|
307
|
+
|
|
308
|
+
### HTTP request headers
|
|
309
|
+
|
|
310
|
+
- **Content-Type**: Not defined
|
|
311
|
+
- **Accept**: application/json
|
|
312
|
+
|
|
313
|
+
### HTTP response details
|
|
314
|
+
|
|
315
|
+
| Status code | Description | Response headers |
|
|
316
|
+
|-------------|-------------|------------------|
|
|
317
|
+
**200** | Successful Response | - |
|
|
318
|
+
**404** | Not Found | - |
|
|
319
|
+
**422** | Validation Error | - |
|
|
320
|
+
|
|
321
|
+
[[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)
|
|
322
|
+
|
|
323
|
+
# **read_projects_projects_get**
|
|
324
|
+
> PageProject read_projects_projects_get(search=search, id=id, created_on=created_on, owner_id=owner_id, name=name, description=description, starred=starred, sort_by=sort_by, latest=latest, page=page, size=size)
|
|
325
|
+
|
|
326
|
+
List projects
|
|
327
|
+
|
|
328
|
+
List projects.
|
|
329
|
+
|
|
330
|
+
If the search parameter is provided, the list is filtered based on the condition that either the project name OR
|
|
331
|
+
description contains the specified substring. The filter considers exact matches for other parameters provided. The
|
|
332
|
+
final result is the logical AND of the substring match condition and any other provided exact match conditions.
|
|
333
|
+
|
|
334
|
+
### Example
|
|
335
|
+
|
|
336
|
+
* OAuth Authentication (user_bearer):
|
|
337
|
+
|
|
338
|
+
```python
|
|
339
|
+
import compute_api_client
|
|
340
|
+
from compute_api_client.models.page_project import PageProject
|
|
341
|
+
from compute_api_client.rest import ApiException
|
|
342
|
+
from pprint import pprint
|
|
343
|
+
|
|
344
|
+
# Defining the host is optional and defaults to http://localhost
|
|
345
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
346
|
+
configuration = compute_api_client.Configuration(
|
|
347
|
+
host = "http://localhost"
|
|
348
|
+
)
|
|
349
|
+
|
|
350
|
+
# The client must configure the authentication and authorization parameters
|
|
351
|
+
# in accordance with the API server security policy.
|
|
352
|
+
# Examples for each auth method are provided below, use the example that
|
|
353
|
+
# satisfies your auth use case.
|
|
354
|
+
|
|
355
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
356
|
+
|
|
357
|
+
# Enter a context with an instance of the API client
|
|
358
|
+
async with compute_api_client.ApiClient(configuration) as api_client:
|
|
359
|
+
# Create an instance of the API class
|
|
360
|
+
api_instance = compute_api_client.ProjectsApi(api_client)
|
|
361
|
+
search = 'search_example' # str | Substring search for project names or description (optional)
|
|
362
|
+
id = 56 # int | (optional)
|
|
363
|
+
created_on = '2013-10-20T19:20:30+01:00' # datetime | (optional)
|
|
364
|
+
owner_id = 56 # int | (optional)
|
|
365
|
+
name = 'name_example' # str | (optional)
|
|
366
|
+
description = 'description_example' # str | (optional)
|
|
367
|
+
starred = True # bool | (optional)
|
|
368
|
+
sort_by = 'sort_by_example' # str | The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'. (optional)
|
|
369
|
+
latest = True # bool | If True gets the most recently created object. (optional)
|
|
370
|
+
page = 1 # int | Page number (optional) (default to 1)
|
|
371
|
+
size = 50 # int | Page size (optional) (default to 50)
|
|
372
|
+
|
|
373
|
+
try:
|
|
374
|
+
# List projects
|
|
375
|
+
api_response = await api_instance.read_projects_projects_get(search=search, id=id, created_on=created_on, owner_id=owner_id, name=name, description=description, starred=starred, sort_by=sort_by, latest=latest, page=page, size=size)
|
|
376
|
+
print("The response of ProjectsApi->read_projects_projects_get:\n")
|
|
377
|
+
pprint(api_response)
|
|
378
|
+
except Exception as e:
|
|
379
|
+
print("Exception when calling ProjectsApi->read_projects_projects_get: %s\n" % e)
|
|
380
|
+
```
|
|
381
|
+
|
|
382
|
+
|
|
383
|
+
|
|
384
|
+
### Parameters
|
|
385
|
+
|
|
386
|
+
|
|
387
|
+
Name | Type | Description | Notes
|
|
388
|
+
------------- | ------------- | ------------- | -------------
|
|
389
|
+
**search** | **str**| Substring search for project names or description | [optional]
|
|
390
|
+
**id** | **int**| | [optional]
|
|
391
|
+
**created_on** | **datetime**| | [optional]
|
|
392
|
+
**owner_id** | **int**| | [optional]
|
|
393
|
+
**name** | **str**| | [optional]
|
|
394
|
+
**description** | **str**| | [optional]
|
|
395
|
+
**starred** | **bool**| | [optional]
|
|
396
|
+
**sort_by** | **str**| The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'. | [optional]
|
|
397
|
+
**latest** | **bool**| If True gets the most recently created object. | [optional]
|
|
398
|
+
**page** | **int**| Page number | [optional] [default to 1]
|
|
399
|
+
**size** | **int**| Page size | [optional] [default to 50]
|
|
400
|
+
|
|
401
|
+
### Return type
|
|
402
|
+
|
|
403
|
+
[**PageProject**](PageProject.md)
|
|
404
|
+
|
|
405
|
+
### Authorization
|
|
406
|
+
|
|
407
|
+
[user_bearer](../README.md#user_bearer)
|
|
408
|
+
|
|
409
|
+
### HTTP request headers
|
|
410
|
+
|
|
411
|
+
- **Content-Type**: Not defined
|
|
412
|
+
- **Accept**: application/json
|
|
413
|
+
|
|
414
|
+
### HTTP response details
|
|
415
|
+
|
|
416
|
+
| Status code | Description | Response headers |
|
|
417
|
+
|-------------|-------------|------------------|
|
|
418
|
+
**200** | Successful Response | - |
|
|
419
|
+
**422** | Validation Error | - |
|
|
420
|
+
|
|
421
|
+
[[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)
|
|
422
|
+
|
|
423
|
+
# **update_project_projects_id_put**
|
|
424
|
+
> Project update_project_projects_id_put(id, project_in)
|
|
425
|
+
|
|
426
|
+
Update project
|
|
427
|
+
|
|
428
|
+
Update a project.
|
|
429
|
+
|
|
430
|
+
### Example
|
|
431
|
+
|
|
432
|
+
* OAuth Authentication (user_bearer):
|
|
433
|
+
|
|
434
|
+
```python
|
|
435
|
+
import compute_api_client
|
|
436
|
+
from compute_api_client.models.project import Project
|
|
437
|
+
from compute_api_client.models.project_in import ProjectIn
|
|
438
|
+
from compute_api_client.rest import ApiException
|
|
439
|
+
from pprint import pprint
|
|
440
|
+
|
|
441
|
+
# Defining the host is optional and defaults to http://localhost
|
|
442
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
443
|
+
configuration = compute_api_client.Configuration(
|
|
444
|
+
host = "http://localhost"
|
|
445
|
+
)
|
|
446
|
+
|
|
447
|
+
# The client must configure the authentication and authorization parameters
|
|
448
|
+
# in accordance with the API server security policy.
|
|
449
|
+
# Examples for each auth method are provided below, use the example that
|
|
450
|
+
# satisfies your auth use case.
|
|
451
|
+
|
|
452
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
453
|
+
|
|
454
|
+
# Enter a context with an instance of the API client
|
|
455
|
+
async with compute_api_client.ApiClient(configuration) as api_client:
|
|
456
|
+
# Create an instance of the API class
|
|
457
|
+
api_instance = compute_api_client.ProjectsApi(api_client)
|
|
458
|
+
id = 56 # int |
|
|
459
|
+
project_in = compute_api_client.ProjectIn() # ProjectIn |
|
|
460
|
+
|
|
461
|
+
try:
|
|
462
|
+
# Update project
|
|
463
|
+
api_response = await api_instance.update_project_projects_id_put(id, project_in)
|
|
464
|
+
print("The response of ProjectsApi->update_project_projects_id_put:\n")
|
|
465
|
+
pprint(api_response)
|
|
466
|
+
except Exception as e:
|
|
467
|
+
print("Exception when calling ProjectsApi->update_project_projects_id_put: %s\n" % e)
|
|
468
|
+
```
|
|
469
|
+
|
|
470
|
+
|
|
471
|
+
|
|
472
|
+
### Parameters
|
|
473
|
+
|
|
474
|
+
|
|
475
|
+
Name | Type | Description | Notes
|
|
476
|
+
------------- | ------------- | ------------- | -------------
|
|
477
|
+
**id** | **int**| |
|
|
478
|
+
**project_in** | [**ProjectIn**](ProjectIn.md)| |
|
|
479
|
+
|
|
480
|
+
### Return type
|
|
481
|
+
|
|
482
|
+
[**Project**](Project.md)
|
|
483
|
+
|
|
484
|
+
### Authorization
|
|
485
|
+
|
|
486
|
+
[user_bearer](../README.md#user_bearer)
|
|
487
|
+
|
|
488
|
+
### HTTP request headers
|
|
489
|
+
|
|
490
|
+
- **Content-Type**: application/json
|
|
491
|
+
- **Accept**: application/json
|
|
492
|
+
|
|
493
|
+
### HTTP response details
|
|
494
|
+
|
|
495
|
+
| Status code | Description | Response headers |
|
|
496
|
+
|-------------|-------------|------------------|
|
|
497
|
+
**200** | Successful Response | - |
|
|
498
|
+
**404** | Not Found | - |
|
|
499
|
+
**422** | Validation Error | - |
|
|
500
|
+
|
|
501
|
+
[[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)
|
|
502
|
+
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# Reservation
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **int** | The id of the reservation |
|
|
9
|
+
**member_id** | **int** | The id of the member who made the reservation |
|
|
10
|
+
**start_time** | **datetime** | Starting time of lthe reservation |
|
|
11
|
+
**end_time** | **datetime** | End time of the reservation |
|
|
12
|
+
**backend_type_id** | **int** | The id of the backend_type |
|
|
13
|
+
**backend_id** | **int** | |
|
|
14
|
+
**is_terminated** | **bool** | If the reservation has been terminated |
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```python
|
|
19
|
+
from compute_api_client.models.reservation import Reservation
|
|
20
|
+
|
|
21
|
+
# TODO update the JSON string below
|
|
22
|
+
json = "{}"
|
|
23
|
+
# create an instance of Reservation from a JSON string
|
|
24
|
+
reservation_instance = Reservation.from_json(json)
|
|
25
|
+
# print the JSON string representation of the object
|
|
26
|
+
print(Reservation.to_json())
|
|
27
|
+
|
|
28
|
+
# convert the object into a dict
|
|
29
|
+
reservation_dict = reservation_instance.to_dict()
|
|
30
|
+
# create an instance of Reservation from a dict
|
|
31
|
+
reservation_from_dict = Reservation.from_dict(reservation_dict)
|
|
32
|
+
```
|
|
33
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
34
|
+
|
|
35
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# ReservationIn
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**member_id** | **int** | The id of the member who made the reservation |
|
|
9
|
+
**start_time** | **datetime** | Starting time of lthe reservation |
|
|
10
|
+
**end_time** | **datetime** | End time of the reservation |
|
|
11
|
+
**backend_type_id** | **int** | The id of the backend_type |
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```python
|
|
16
|
+
from compute_api_client.models.reservation_in import ReservationIn
|
|
17
|
+
|
|
18
|
+
# TODO update the JSON string below
|
|
19
|
+
json = "{}"
|
|
20
|
+
# create an instance of ReservationIn from a JSON string
|
|
21
|
+
reservation_in_instance = ReservationIn.from_json(json)
|
|
22
|
+
# print the JSON string representation of the object
|
|
23
|
+
print(ReservationIn.to_json())
|
|
24
|
+
|
|
25
|
+
# convert the object into a dict
|
|
26
|
+
reservation_in_dict = reservation_in_instance.to_dict()
|
|
27
|
+
# create an instance of ReservationIn from a dict
|
|
28
|
+
reservation_in_from_dict = ReservationIn.from_dict(reservation_in_dict)
|
|
29
|
+
```
|
|
30
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
31
|
+
|
|
32
|
+
|