qi-compute-api-client 0.53.0__py3-none-any.whl → 0.54.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of qi-compute-api-client might be problematic. Click here for more details.
- compute_api_client/__init__.py +194 -95
- compute_api_client/api/algorithms_api.py +75 -81
- compute_api_client/api/auth_config_api.py +16 -24
- compute_api_client/api/backend_api.py +70 -86
- compute_api_client/api/backend_types_api.py +43 -56
- compute_api_client/api/batch_jobs_api.py +102 -120
- compute_api_client/api/commits_api.py +85 -80
- compute_api_client/api/files_api.py +62 -67
- compute_api_client/api/final_results_api.py +42 -53
- compute_api_client/api/health_api.py +16 -25
- compute_api_client/api/jobs_api.py +76 -83
- compute_api_client/api/languages_api.py +30 -42
- compute_api_client/api/members_api.py +62 -67
- compute_api_client/api/permissions_api.py +56 -70
- compute_api_client/api/projects_api.py +89 -97
- compute_api_client/api/reservations_api.py +57 -72
- compute_api_client/api/results_api.py +76 -83
- compute_api_client/api/teams_api.py +30 -42
- compute_api_client/api/transactions_api.py +31 -44
- compute_api_client/api/users_api.py +62 -67
- compute_api_client/api_client.py +135 -75
- compute_api_client/api_response.py +3 -3
- compute_api_client/configuration.py +176 -36
- compute_api_client/docs/Algorithm.md +8 -7
- compute_api_client/docs/AlgorithmIn.md +7 -6
- compute_api_client/docs/AlgorithmType.md +5 -3
- compute_api_client/docs/AlgorithmsApi.md +15 -10
- compute_api_client/docs/AuthConfig.md +3 -2
- compute_api_client/docs/AuthConfigApi.md +3 -2
- compute_api_client/docs/Backend.md +9 -8
- compute_api_client/docs/BackendApi.md +15 -10
- compute_api_client/docs/BackendIn.md +8 -7
- compute_api_client/docs/BackendPatch.md +5 -4
- compute_api_client/docs/BackendStatus.md +9 -3
- compute_api_client/docs/BackendType.md +20 -19
- compute_api_client/docs/BackendTypePatch.md +3 -2
- compute_api_client/docs/BackendTypesApi.md +15 -8
- compute_api_client/docs/BackendWithAuthentication.md +10 -9
- compute_api_client/docs/BatchJob.md +10 -9
- compute_api_client/docs/BatchJobIn.md +4 -3
- compute_api_client/docs/BatchJobStatus.md +11 -3
- compute_api_client/docs/BatchJobsApi.md +23 -16
- compute_api_client/docs/Commit.md +8 -7
- compute_api_client/docs/CommitIn.md +5 -4
- compute_api_client/docs/CommitsApi.md +15 -10
- compute_api_client/docs/CompilePayload.md +4 -3
- compute_api_client/docs/CompileStage.md +11 -3
- compute_api_client/docs/Domain.md +7 -3
- compute_api_client/docs/File.md +10 -9
- compute_api_client/docs/FileIn.md +9 -8
- compute_api_client/docs/FilesApi.md +12 -8
- compute_api_client/docs/FinalResult.md +7 -6
- compute_api_client/docs/FinalResultIn.md +5 -4
- compute_api_client/docs/FinalResultsApi.md +9 -6
- compute_api_client/docs/HTTPBadRequestError.md +3 -2
- compute_api_client/docs/HTTPNotFoundError.md +3 -2
- compute_api_client/docs/HTTPValidationError.md +3 -2
- compute_api_client/docs/HealthApi.md +3 -2
- compute_api_client/docs/Job.md +13 -12
- compute_api_client/docs/JobIn.md +6 -5
- compute_api_client/docs/JobPatch.md +8 -7
- compute_api_client/docs/JobStatus.md +11 -3
- compute_api_client/docs/JobsApi.md +15 -10
- compute_api_client/docs/Language.md +6 -5
- compute_api_client/docs/LanguagesApi.md +6 -4
- compute_api_client/docs/Member.md +8 -7
- compute_api_client/docs/MemberId.md +28 -0
- compute_api_client/docs/MemberIn.md +7 -6
- compute_api_client/docs/MembersApi.md +12 -8
- compute_api_client/docs/PageAlgorithm.md +3 -2
- compute_api_client/docs/PageBackend.md +3 -2
- compute_api_client/docs/PageBackendType.md +3 -2
- compute_api_client/docs/PageBatchJob.md +3 -2
- compute_api_client/docs/PageCommit.md +3 -2
- compute_api_client/docs/PageFile.md +3 -2
- compute_api_client/docs/PageJob.md +3 -2
- compute_api_client/docs/PageLanguage.md +3 -2
- compute_api_client/docs/PageMember.md +3 -2
- compute_api_client/docs/PagePermission.md +3 -2
- compute_api_client/docs/PagePermissionGroup.md +3 -2
- compute_api_client/docs/PageProject.md +3 -2
- compute_api_client/docs/PageReservation.md +3 -2
- compute_api_client/docs/PageResult.md +3 -2
- compute_api_client/docs/PageTeam.md +3 -2
- compute_api_client/docs/PageTransaction.md +3 -2
- compute_api_client/docs/PageUser.md +3 -2
- compute_api_client/docs/Permission.md +6 -5
- compute_api_client/docs/PermissionGroup.md +5 -4
- compute_api_client/docs/PermissionsApi.md +12 -8
- compute_api_client/docs/Project.md +9 -8
- compute_api_client/docs/ProjectIn.md +7 -6
- compute_api_client/docs/ProjectPatch.md +3 -2
- compute_api_client/docs/ProjectsApi.md +23 -13
- compute_api_client/docs/Reservation.md +9 -8
- compute_api_client/docs/ReservationIn.md +7 -6
- compute_api_client/docs/ReservationsApi.md +12 -8
- compute_api_client/docs/Result.md +7 -6
- compute_api_client/docs/ResultIn.md +5 -4
- compute_api_client/docs/ResultsApi.md +15 -10
- compute_api_client/docs/Role.md +5 -3
- compute_api_client/docs/ShareType.md +7 -3
- compute_api_client/docs/Team.md +7 -6
- compute_api_client/docs/TeamsApi.md +6 -4
- compute_api_client/docs/Transaction.md +6 -5
- compute_api_client/docs/TransactionDomain.md +28 -0
- compute_api_client/docs/TransactionsApi.md +6 -4
- compute_api_client/docs/User.md +11 -10
- compute_api_client/docs/UserIn.md +10 -9
- compute_api_client/docs/UsersApi.md +12 -8
- compute_api_client/docs/ValidationError.md +4 -3
- compute_api_client/docs/ValidationErrorLocInner.md +28 -0
- compute_api_client/exceptions.py +74 -24
- compute_api_client/models/__init__.py +1 -1
- compute_api_client/models/algorithm.py +19 -20
- compute_api_client/models/algorithm_in.py +18 -19
- compute_api_client/models/algorithm_type.py +1 -9
- compute_api_client/models/auth_config.py +14 -14
- compute_api_client/models/backend.py +20 -20
- compute_api_client/models/backend_in.py +19 -19
- compute_api_client/models/backend_patch.py +16 -15
- compute_api_client/models/backend_status.py +1 -9
- compute_api_client/models/backend_type.py +31 -32
- compute_api_client/models/backend_type_patch.py +14 -15
- compute_api_client/models/backend_with_authentication.py +21 -21
- compute_api_client/models/batch_job.py +21 -20
- compute_api_client/models/batch_job_in.py +15 -15
- compute_api_client/models/batch_job_status.py +1 -9
- compute_api_client/models/commit.py +19 -19
- compute_api_client/models/commit_in.py +16 -16
- compute_api_client/models/compile_payload.py +15 -15
- compute_api_client/models/compile_stage.py +1 -9
- compute_api_client/models/domain.py +1 -9
- compute_api_client/models/file.py +21 -22
- compute_api_client/models/file_in.py +20 -21
- compute_api_client/models/final_result.py +18 -17
- compute_api_client/models/final_result_in.py +16 -16
- compute_api_client/models/http_bad_request_error.py +14 -14
- compute_api_client/models/http_not_found_error.py +14 -14
- compute_api_client/models/http_validation_error.py +18 -18
- compute_api_client/models/job.py +24 -24
- compute_api_client/models/job_in.py +17 -17
- compute_api_client/models/job_patch.py +19 -20
- compute_api_client/models/job_status.py +1 -9
- compute_api_client/models/language.py +17 -18
- compute_api_client/models/member.py +19 -19
- compute_api_client/models/member_id.py +144 -0
- compute_api_client/models/member_in.py +18 -18
- compute_api_client/models/page_algorithm.py +18 -19
- compute_api_client/models/page_backend.py +18 -19
- compute_api_client/models/page_backend_type.py +18 -19
- compute_api_client/models/page_batch_job.py +18 -19
- compute_api_client/models/page_commit.py +18 -19
- compute_api_client/models/page_file.py +18 -19
- compute_api_client/models/page_job.py +18 -19
- compute_api_client/models/page_language.py +18 -19
- compute_api_client/models/page_member.py +18 -19
- compute_api_client/models/page_permission.py +18 -19
- compute_api_client/models/page_permission_group.py +18 -19
- compute_api_client/models/page_project.py +18 -19
- compute_api_client/models/page_reservation.py +18 -19
- compute_api_client/models/page_result.py +18 -19
- compute_api_client/models/page_team.py +18 -19
- compute_api_client/models/page_transaction.py +18 -19
- compute_api_client/models/page_user.py +18 -19
- compute_api_client/models/permission.py +17 -18
- compute_api_client/models/permission_group.py +16 -17
- compute_api_client/models/project.py +20 -20
- compute_api_client/models/project_in.py +18 -19
- compute_api_client/models/project_patch.py +14 -15
- compute_api_client/models/reservation.py +20 -19
- compute_api_client/models/reservation_in.py +18 -17
- compute_api_client/models/result.py +18 -17
- compute_api_client/models/result_in.py +16 -16
- compute_api_client/models/role.py +1 -9
- compute_api_client/models/share_type.py +1 -9
- compute_api_client/models/team.py +18 -19
- compute_api_client/models/transaction.py +17 -17
- compute_api_client/models/transaction_domain.py +142 -0
- compute_api_client/models/user.py +22 -23
- compute_api_client/models/user_in.py +21 -22
- compute_api_client/models/validation_error.py +20 -20
- compute_api_client/models/validation_error_loc_inner.py +138 -0
- compute_api_client/rest.py +51 -26
- {qi_compute_api_client-0.53.0.dist-info → qi_compute_api_client-0.54.1.dist-info}/METADATA +12 -9
- qi_compute_api_client-0.54.1.dist-info/RECORD +203 -0
- qi_compute_api_client-0.53.0.dist-info/RECORD +0 -197
- {qi_compute_api_client-0.53.0.dist-info → qi_compute_api_client-0.54.1.dist-info}/WHEEL +0 -0
- {qi_compute_api_client-0.53.0.dist-info → qi_compute_api_client-0.54.1.dist-info}/licenses/LICENSE.md +0 -0
compute_api_client/docs/Team.md
CHANGED
|
@@ -2,12 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
## Properties
|
|
5
|
+
|
|
5
6
|
Name | Type | Description | Notes
|
|
6
7
|
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**id** | **int** |
|
|
8
|
-
**name** | **str** |
|
|
9
|
-
**slug** | **str** |
|
|
10
|
-
**individual_user** | **bool** |
|
|
8
|
+
**id** | **int** | The id of the team |
|
|
9
|
+
**name** | **str** | The name of the team |
|
|
10
|
+
**slug** | **str** | The slugified name |
|
|
11
|
+
**individual_user** | **bool** | If it is an individual user |
|
|
11
12
|
|
|
12
13
|
## Example
|
|
13
14
|
|
|
@@ -19,12 +20,12 @@ json = "{}"
|
|
|
19
20
|
# create an instance of Team from a JSON string
|
|
20
21
|
team_instance = Team.from_json(json)
|
|
21
22
|
# print the JSON string representation of the object
|
|
22
|
-
print
|
|
23
|
+
print(Team.to_json())
|
|
23
24
|
|
|
24
25
|
# convert the object into a dict
|
|
25
26
|
team_dict = team_instance.to_dict()
|
|
26
27
|
# create an instance of Team from a dict
|
|
27
|
-
|
|
28
|
+
team_from_dict = Team.from_dict(team_dict)
|
|
28
29
|
```
|
|
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)
|
|
30
31
|
|
|
@@ -18,9 +18,8 @@ Get team by ID.
|
|
|
18
18
|
### Example
|
|
19
19
|
|
|
20
20
|
* OAuth Authentication (user_bearer):
|
|
21
|
+
|
|
21
22
|
```python
|
|
22
|
-
import time
|
|
23
|
-
import os
|
|
24
23
|
import compute_api_client
|
|
25
24
|
from compute_api_client.models.team import Team
|
|
26
25
|
from compute_api_client.rest import ApiException
|
|
@@ -58,6 +57,7 @@ async with compute_api_client.ApiClient(configuration) as api_client:
|
|
|
58
57
|
|
|
59
58
|
### Parameters
|
|
60
59
|
|
|
60
|
+
|
|
61
61
|
Name | Type | Description | Notes
|
|
62
62
|
------------- | ------------- | ------------- | -------------
|
|
63
63
|
**id** | **int**| |
|
|
@@ -76,6 +76,7 @@ Name | Type | Description | Notes
|
|
|
76
76
|
- **Accept**: application/json
|
|
77
77
|
|
|
78
78
|
### HTTP response details
|
|
79
|
+
|
|
79
80
|
| Status code | Description | Response headers |
|
|
80
81
|
|-------------|-------------|------------------|
|
|
81
82
|
**200** | Successful Response | - |
|
|
@@ -94,9 +95,8 @@ Read teams.
|
|
|
94
95
|
### Example
|
|
95
96
|
|
|
96
97
|
* OAuth Authentication (user_bearer):
|
|
98
|
+
|
|
97
99
|
```python
|
|
98
|
-
import time
|
|
99
|
-
import os
|
|
100
100
|
import compute_api_client
|
|
101
101
|
from compute_api_client.models.page_team import PageTeam
|
|
102
102
|
from compute_api_client.rest import ApiException
|
|
@@ -141,6 +141,7 @@ async with compute_api_client.ApiClient(configuration) as api_client:
|
|
|
141
141
|
|
|
142
142
|
### Parameters
|
|
143
143
|
|
|
144
|
+
|
|
144
145
|
Name | Type | Description | Notes
|
|
145
146
|
------------- | ------------- | ------------- | -------------
|
|
146
147
|
**id** | **int**| | [optional]
|
|
@@ -166,6 +167,7 @@ Name | Type | Description | Notes
|
|
|
166
167
|
- **Accept**: application/json
|
|
167
168
|
|
|
168
169
|
### HTTP response details
|
|
170
|
+
|
|
169
171
|
| Status code | Description | Response headers |
|
|
170
172
|
|-------------|-------------|------------------|
|
|
171
173
|
**200** | Successful Response | - |
|
|
@@ -2,15 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
## Properties
|
|
5
|
+
|
|
5
6
|
Name | Type | Description | Notes
|
|
6
7
|
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**id** | **int** |
|
|
8
|
+
**id** | **int** | The id of the transaction |
|
|
8
9
|
**domain** | [**Domain**](Domain.md) | |
|
|
9
10
|
**job** | **int** | |
|
|
10
|
-
**team_id** | **int** |
|
|
11
|
+
**team_id** | **int** | The id of the team who initiated the transaction |
|
|
11
12
|
**member_id** | **int** | |
|
|
12
13
|
**change** | **int** | |
|
|
13
|
-
**timestamp** | **datetime** |
|
|
14
|
+
**timestamp** | **datetime** | Time when the transaction was started |
|
|
14
15
|
|
|
15
16
|
## Example
|
|
16
17
|
|
|
@@ -22,12 +23,12 @@ json = "{}"
|
|
|
22
23
|
# create an instance of Transaction from a JSON string
|
|
23
24
|
transaction_instance = Transaction.from_json(json)
|
|
24
25
|
# print the JSON string representation of the object
|
|
25
|
-
print
|
|
26
|
+
print(Transaction.to_json())
|
|
26
27
|
|
|
27
28
|
# convert the object into a dict
|
|
28
29
|
transaction_dict = transaction_instance.to_dict()
|
|
29
30
|
# create an instance of Transaction from a dict
|
|
30
|
-
|
|
31
|
+
transaction_from_dict = Transaction.from_dict(transaction_dict)
|
|
31
32
|
```
|
|
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)
|
|
33
34
|
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# TransactionDomain
|
|
2
|
+
|
|
3
|
+
The domain type of the transaction
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
|
|
9
|
+
## Example
|
|
10
|
+
|
|
11
|
+
```python
|
|
12
|
+
from compute_api_client.models.transaction_domain import TransactionDomain
|
|
13
|
+
|
|
14
|
+
# TODO update the JSON string below
|
|
15
|
+
json = "{}"
|
|
16
|
+
# create an instance of TransactionDomain from a JSON string
|
|
17
|
+
transaction_domain_instance = TransactionDomain.from_json(json)
|
|
18
|
+
# print the JSON string representation of the object
|
|
19
|
+
print TransactionDomain.to_json()
|
|
20
|
+
|
|
21
|
+
# convert the object into a dict
|
|
22
|
+
transaction_domain_dict = transaction_domain_instance.to_dict()
|
|
23
|
+
# create an instance of TransactionDomain from a dict
|
|
24
|
+
transaction_domain_form_dict = transaction_domain.from_dict(transaction_domain_dict)
|
|
25
|
+
```
|
|
26
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
27
|
+
|
|
28
|
+
|
|
@@ -18,9 +18,8 @@ Get transaction by ID.
|
|
|
18
18
|
### Example
|
|
19
19
|
|
|
20
20
|
* OAuth Authentication (user_bearer):
|
|
21
|
+
|
|
21
22
|
```python
|
|
22
|
-
import time
|
|
23
|
-
import os
|
|
24
23
|
import compute_api_client
|
|
25
24
|
from compute_api_client.models.transaction import Transaction
|
|
26
25
|
from compute_api_client.rest import ApiException
|
|
@@ -58,6 +57,7 @@ async with compute_api_client.ApiClient(configuration) as api_client:
|
|
|
58
57
|
|
|
59
58
|
### Parameters
|
|
60
59
|
|
|
60
|
+
|
|
61
61
|
Name | Type | Description | Notes
|
|
62
62
|
------------- | ------------- | ------------- | -------------
|
|
63
63
|
**id** | **int**| |
|
|
@@ -76,6 +76,7 @@ Name | Type | Description | Notes
|
|
|
76
76
|
- **Accept**: application/json
|
|
77
77
|
|
|
78
78
|
### HTTP response details
|
|
79
|
+
|
|
79
80
|
| Status code | Description | Response headers |
|
|
80
81
|
|-------------|-------------|------------------|
|
|
81
82
|
**200** | Successful Response | - |
|
|
@@ -94,9 +95,8 @@ Read transactions.
|
|
|
94
95
|
### Example
|
|
95
96
|
|
|
96
97
|
* OAuth Authentication (user_bearer):
|
|
98
|
+
|
|
97
99
|
```python
|
|
98
|
-
import time
|
|
99
|
-
import os
|
|
100
100
|
import compute_api_client
|
|
101
101
|
from compute_api_client.models.domain import Domain
|
|
102
102
|
from compute_api_client.models.page_transaction import PageTransaction
|
|
@@ -148,6 +148,7 @@ async with compute_api_client.ApiClient(configuration) as api_client:
|
|
|
148
148
|
|
|
149
149
|
### Parameters
|
|
150
150
|
|
|
151
|
+
|
|
151
152
|
Name | Type | Description | Notes
|
|
152
153
|
------------- | ------------- | ------------- | -------------
|
|
153
154
|
**id** | **int**| | [optional]
|
|
@@ -179,6 +180,7 @@ Name | Type | Description | Notes
|
|
|
179
180
|
- **Accept**: application/json
|
|
180
181
|
|
|
181
182
|
### HTTP response details
|
|
183
|
+
|
|
182
184
|
| Status code | Description | Response headers |
|
|
183
185
|
|-------------|-------------|------------------|
|
|
184
186
|
**200** | Successful Response | - |
|
compute_api_client/docs/User.md
CHANGED
|
@@ -2,16 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
## Properties
|
|
5
|
+
|
|
5
6
|
Name | Type | Description | Notes
|
|
6
7
|
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**id** | **int** |
|
|
8
|
-
**full_name** | **str** |
|
|
9
|
-
**email** | **str** |
|
|
10
|
-
**is_superuser** | **bool** |
|
|
11
|
-
**is_staff** | **bool** |
|
|
12
|
-
**is_active** | **bool** |
|
|
13
|
-
**is_confirmed** | **bool** |
|
|
14
|
-
**oidc_sub** | **str** |
|
|
8
|
+
**id** | **int** | The id of the user |
|
|
9
|
+
**full_name** | **str** | The full name of the user |
|
|
10
|
+
**email** | **str** | The email id of the user |
|
|
11
|
+
**is_superuser** | **bool** | If the user is superuser |
|
|
12
|
+
**is_staff** | **bool** | If the user is staff |
|
|
13
|
+
**is_active** | **bool** | If the user is active |
|
|
14
|
+
**is_confirmed** | **bool** | If the user is confirmed |
|
|
15
|
+
**oidc_sub** | **str** | User identifier from OIDC provider |
|
|
15
16
|
|
|
16
17
|
## Example
|
|
17
18
|
|
|
@@ -23,12 +24,12 @@ json = "{}"
|
|
|
23
24
|
# create an instance of User from a JSON string
|
|
24
25
|
user_instance = User.from_json(json)
|
|
25
26
|
# print the JSON string representation of the object
|
|
26
|
-
print
|
|
27
|
+
print(User.to_json())
|
|
27
28
|
|
|
28
29
|
# convert the object into a dict
|
|
29
30
|
user_dict = user_instance.to_dict()
|
|
30
31
|
# create an instance of User from a dict
|
|
31
|
-
|
|
32
|
+
user_from_dict = User.from_dict(user_dict)
|
|
32
33
|
```
|
|
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)
|
|
34
35
|
|
|
@@ -2,15 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
## Properties
|
|
5
|
+
|
|
5
6
|
Name | Type | Description | Notes
|
|
6
7
|
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**full_name** | **str** |
|
|
8
|
-
**email** | **str** |
|
|
9
|
-
**is_superuser** | **bool** |
|
|
10
|
-
**is_staff** | **bool** |
|
|
11
|
-
**is_active** | **bool** |
|
|
12
|
-
**is_confirmed** | **bool** |
|
|
13
|
-
**oidc_sub** | **str** |
|
|
8
|
+
**full_name** | **str** | The full name of the user |
|
|
9
|
+
**email** | **str** | The email id of the user |
|
|
10
|
+
**is_superuser** | **bool** | If the user is superuser | [optional] [default to False]
|
|
11
|
+
**is_staff** | **bool** | If the user is staff | [optional] [default to False]
|
|
12
|
+
**is_active** | **bool** | If the user is active | [optional] [default to False]
|
|
13
|
+
**is_confirmed** | **bool** | If the user is confirmed | [optional] [default to False]
|
|
14
|
+
**oidc_sub** | **str** | User identifier from OIDC provider |
|
|
14
15
|
|
|
15
16
|
## Example
|
|
16
17
|
|
|
@@ -22,12 +23,12 @@ json = "{}"
|
|
|
22
23
|
# create an instance of UserIn from a JSON string
|
|
23
24
|
user_in_instance = UserIn.from_json(json)
|
|
24
25
|
# print the JSON string representation of the object
|
|
25
|
-
print
|
|
26
|
+
print(UserIn.to_json())
|
|
26
27
|
|
|
27
28
|
# convert the object into a dict
|
|
28
29
|
user_in_dict = user_in_instance.to_dict()
|
|
29
30
|
# create an instance of UserIn from a dict
|
|
30
|
-
|
|
31
|
+
user_in_from_dict = UserIn.from_dict(user_in_dict)
|
|
31
32
|
```
|
|
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)
|
|
33
34
|
|
|
@@ -20,9 +20,8 @@ Create new user.
|
|
|
20
20
|
### Example
|
|
21
21
|
|
|
22
22
|
* OAuth Authentication (user_bearer):
|
|
23
|
+
|
|
23
24
|
```python
|
|
24
|
-
import time
|
|
25
|
-
import os
|
|
26
25
|
import compute_api_client
|
|
27
26
|
from compute_api_client.models.user import User
|
|
28
27
|
from compute_api_client.models.user_in import UserIn
|
|
@@ -61,6 +60,7 @@ async with compute_api_client.ApiClient(configuration) as api_client:
|
|
|
61
60
|
|
|
62
61
|
### Parameters
|
|
63
62
|
|
|
63
|
+
|
|
64
64
|
Name | Type | Description | Notes
|
|
65
65
|
------------- | ------------- | ------------- | -------------
|
|
66
66
|
**user_in** | [**UserIn**](UserIn.md)| |
|
|
@@ -79,6 +79,7 @@ Name | Type | Description | Notes
|
|
|
79
79
|
- **Accept**: application/json
|
|
80
80
|
|
|
81
81
|
### HTTP response details
|
|
82
|
+
|
|
82
83
|
| Status code | Description | Response headers |
|
|
83
84
|
|-------------|-------------|------------------|
|
|
84
85
|
**201** | Successful Response | - |
|
|
@@ -96,9 +97,8 @@ Delete a user.
|
|
|
96
97
|
### Example
|
|
97
98
|
|
|
98
99
|
* OAuth Authentication (user_bearer):
|
|
100
|
+
|
|
99
101
|
```python
|
|
100
|
-
import time
|
|
101
|
-
import os
|
|
102
102
|
import compute_api_client
|
|
103
103
|
from compute_api_client.rest import ApiException
|
|
104
104
|
from pprint import pprint
|
|
@@ -133,6 +133,7 @@ async with compute_api_client.ApiClient(configuration) as api_client:
|
|
|
133
133
|
|
|
134
134
|
### Parameters
|
|
135
135
|
|
|
136
|
+
|
|
136
137
|
Name | Type | Description | Notes
|
|
137
138
|
------------- | ------------- | ------------- | -------------
|
|
138
139
|
**id** | **int**| |
|
|
@@ -151,6 +152,7 @@ void (empty response body)
|
|
|
151
152
|
- **Accept**: application/json
|
|
152
153
|
|
|
153
154
|
### HTTP response details
|
|
155
|
+
|
|
154
156
|
| Status code | Description | Response headers |
|
|
155
157
|
|-------------|-------------|------------------|
|
|
156
158
|
**204** | Successful Response | - |
|
|
@@ -169,9 +171,8 @@ Get user by ID.
|
|
|
169
171
|
### Example
|
|
170
172
|
|
|
171
173
|
* OAuth Authentication (user_bearer):
|
|
174
|
+
|
|
172
175
|
```python
|
|
173
|
-
import time
|
|
174
|
-
import os
|
|
175
176
|
import compute_api_client
|
|
176
177
|
from compute_api_client.models.user import User
|
|
177
178
|
from compute_api_client.rest import ApiException
|
|
@@ -209,6 +210,7 @@ async with compute_api_client.ApiClient(configuration) as api_client:
|
|
|
209
210
|
|
|
210
211
|
### Parameters
|
|
211
212
|
|
|
213
|
+
|
|
212
214
|
Name | Type | Description | Notes
|
|
213
215
|
------------- | ------------- | ------------- | -------------
|
|
214
216
|
**id** | **int**| |
|
|
@@ -227,6 +229,7 @@ Name | Type | Description | Notes
|
|
|
227
229
|
- **Accept**: application/json
|
|
228
230
|
|
|
229
231
|
### HTTP response details
|
|
232
|
+
|
|
230
233
|
| Status code | Description | Response headers |
|
|
231
234
|
|-------------|-------------|------------------|
|
|
232
235
|
**200** | Successful Response | - |
|
|
@@ -245,9 +248,8 @@ Read users.
|
|
|
245
248
|
### Example
|
|
246
249
|
|
|
247
250
|
* OAuth Authentication (user_bearer):
|
|
251
|
+
|
|
248
252
|
```python
|
|
249
|
-
import time
|
|
250
|
-
import os
|
|
251
253
|
import compute_api_client
|
|
252
254
|
from compute_api_client.models.page_user import PageUser
|
|
253
255
|
from compute_api_client.rest import ApiException
|
|
@@ -296,6 +298,7 @@ async with compute_api_client.ApiClient(configuration) as api_client:
|
|
|
296
298
|
|
|
297
299
|
### Parameters
|
|
298
300
|
|
|
301
|
+
|
|
299
302
|
Name | Type | Description | Notes
|
|
300
303
|
------------- | ------------- | ------------- | -------------
|
|
301
304
|
**id** | **int**| | [optional]
|
|
@@ -325,6 +328,7 @@ Name | Type | Description | Notes
|
|
|
325
328
|
- **Accept**: application/json
|
|
326
329
|
|
|
327
330
|
### HTTP response details
|
|
331
|
+
|
|
328
332
|
| Status code | Description | Response headers |
|
|
329
333
|
|-------------|-------------|------------------|
|
|
330
334
|
**200** | Successful Response | - |
|
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
## Properties
|
|
5
|
+
|
|
5
6
|
Name | Type | Description | Notes
|
|
6
7
|
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**loc** | [**List[
|
|
8
|
+
**loc** | [**List[ValidationErrorLocInner]**](ValidationErrorLocInner.md) | |
|
|
8
9
|
**msg** | **str** | |
|
|
9
10
|
**type** | **str** | |
|
|
10
11
|
|
|
@@ -18,12 +19,12 @@ json = "{}"
|
|
|
18
19
|
# create an instance of ValidationError from a JSON string
|
|
19
20
|
validation_error_instance = ValidationError.from_json(json)
|
|
20
21
|
# print the JSON string representation of the object
|
|
21
|
-
print
|
|
22
|
+
print(ValidationError.to_json())
|
|
22
23
|
|
|
23
24
|
# convert the object into a dict
|
|
24
25
|
validation_error_dict = validation_error_instance.to_dict()
|
|
25
26
|
# create an instance of ValidationError from a dict
|
|
26
|
-
|
|
27
|
+
validation_error_from_dict = ValidationError.from_dict(validation_error_dict)
|
|
27
28
|
```
|
|
28
29
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
29
30
|
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# ValidationErrorLocInner
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
|
|
9
|
+
## Example
|
|
10
|
+
|
|
11
|
+
```python
|
|
12
|
+
from compute_api_client.models.validation_error_loc_inner import ValidationErrorLocInner
|
|
13
|
+
|
|
14
|
+
# TODO update the JSON string below
|
|
15
|
+
json = "{}"
|
|
16
|
+
# create an instance of ValidationErrorLocInner from a JSON string
|
|
17
|
+
validation_error_loc_inner_instance = ValidationErrorLocInner.from_json(json)
|
|
18
|
+
# print the JSON string representation of the object
|
|
19
|
+
print(ValidationErrorLocInner.to_json())
|
|
20
|
+
|
|
21
|
+
# convert the object into a dict
|
|
22
|
+
validation_error_loc_inner_dict = validation_error_loc_inner_instance.to_dict()
|
|
23
|
+
# create an instance of ValidationErrorLocInner from a dict
|
|
24
|
+
validation_error_loc_inner_from_dict = ValidationErrorLocInner.from_dict(validation_error_loc_inner_dict)
|
|
25
|
+
```
|
|
26
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
27
|
+
|
|
28
|
+
|
compute_api_client/exceptions.py
CHANGED
|
@@ -11,6 +11,8 @@
|
|
|
11
11
|
Do not edit the class manually.
|
|
12
12
|
""" # noqa: E501
|
|
13
13
|
|
|
14
|
+
from typing import Any, Optional
|
|
15
|
+
from typing_extensions import Self
|
|
14
16
|
|
|
15
17
|
class OpenApiException(Exception):
|
|
16
18
|
"""The base exception class for all OpenAPIExceptions"""
|
|
@@ -101,17 +103,63 @@ class ApiKeyError(OpenApiException, KeyError):
|
|
|
101
103
|
|
|
102
104
|
class ApiException(OpenApiException):
|
|
103
105
|
|
|
104
|
-
def __init__(
|
|
106
|
+
def __init__(
|
|
107
|
+
self,
|
|
108
|
+
status=None,
|
|
109
|
+
reason=None,
|
|
110
|
+
http_resp=None,
|
|
111
|
+
*,
|
|
112
|
+
body: Optional[str] = None,
|
|
113
|
+
data: Optional[Any] = None,
|
|
114
|
+
) -> None:
|
|
115
|
+
self.status = status
|
|
116
|
+
self.reason = reason
|
|
117
|
+
self.body = body
|
|
118
|
+
self.data = data
|
|
119
|
+
self.headers = None
|
|
120
|
+
|
|
105
121
|
if http_resp:
|
|
106
|
-
self.status
|
|
107
|
-
|
|
108
|
-
self.
|
|
122
|
+
if self.status is None:
|
|
123
|
+
self.status = http_resp.status
|
|
124
|
+
if self.reason is None:
|
|
125
|
+
self.reason = http_resp.reason
|
|
126
|
+
if self.body is None:
|
|
127
|
+
try:
|
|
128
|
+
self.body = http_resp.data.decode('utf-8')
|
|
129
|
+
except Exception:
|
|
130
|
+
pass
|
|
109
131
|
self.headers = http_resp.getheaders()
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
132
|
+
|
|
133
|
+
@classmethod
|
|
134
|
+
def from_response(
|
|
135
|
+
cls,
|
|
136
|
+
*,
|
|
137
|
+
http_resp,
|
|
138
|
+
body: Optional[str],
|
|
139
|
+
data: Optional[Any],
|
|
140
|
+
) -> Self:
|
|
141
|
+
if http_resp.status == 400:
|
|
142
|
+
raise BadRequestException(http_resp=http_resp, body=body, data=data)
|
|
143
|
+
|
|
144
|
+
if http_resp.status == 401:
|
|
145
|
+
raise UnauthorizedException(http_resp=http_resp, body=body, data=data)
|
|
146
|
+
|
|
147
|
+
if http_resp.status == 403:
|
|
148
|
+
raise ForbiddenException(http_resp=http_resp, body=body, data=data)
|
|
149
|
+
|
|
150
|
+
if http_resp.status == 404:
|
|
151
|
+
raise NotFoundException(http_resp=http_resp, body=body, data=data)
|
|
152
|
+
|
|
153
|
+
# Added new conditions for 409 and 422
|
|
154
|
+
if http_resp.status == 409:
|
|
155
|
+
raise ConflictException(http_resp=http_resp, body=body, data=data)
|
|
156
|
+
|
|
157
|
+
if http_resp.status == 422:
|
|
158
|
+
raise UnprocessableEntityException(http_resp=http_resp, body=body, data=data)
|
|
159
|
+
|
|
160
|
+
if 500 <= http_resp.status <= 599:
|
|
161
|
+
raise ServiceException(http_resp=http_resp, body=body, data=data)
|
|
162
|
+
raise ApiException(http_resp=http_resp, body=body, data=data)
|
|
115
163
|
|
|
116
164
|
def __str__(self):
|
|
117
165
|
"""Custom error messages for exception"""
|
|
@@ -121,38 +169,40 @@ class ApiException(OpenApiException):
|
|
|
121
169
|
error_message += "HTTP response headers: {0}\n".format(
|
|
122
170
|
self.headers)
|
|
123
171
|
|
|
124
|
-
if self.body:
|
|
125
|
-
error_message += "HTTP response body: {0}\n".format(self.body)
|
|
172
|
+
if self.data or self.body:
|
|
173
|
+
error_message += "HTTP response body: {0}\n".format(self.data or self.body)
|
|
126
174
|
|
|
127
175
|
return error_message
|
|
128
176
|
|
|
177
|
+
|
|
129
178
|
class BadRequestException(ApiException):
|
|
179
|
+
pass
|
|
130
180
|
|
|
131
|
-
def __init__(self, status=None, reason=None, http_resp=None) -> None:
|
|
132
|
-
super(BadRequestException, self).__init__(status, reason, http_resp)
|
|
133
181
|
|
|
134
182
|
class NotFoundException(ApiException):
|
|
135
|
-
|
|
136
|
-
def __init__(self, status=None, reason=None, http_resp=None) -> None:
|
|
137
|
-
super(NotFoundException, self).__init__(status, reason, http_resp)
|
|
183
|
+
pass
|
|
138
184
|
|
|
139
185
|
|
|
140
186
|
class UnauthorizedException(ApiException):
|
|
141
|
-
|
|
142
|
-
def __init__(self, status=None, reason=None, http_resp=None) -> None:
|
|
143
|
-
super(UnauthorizedException, self).__init__(status, reason, http_resp)
|
|
187
|
+
pass
|
|
144
188
|
|
|
145
189
|
|
|
146
190
|
class ForbiddenException(ApiException):
|
|
147
|
-
|
|
148
|
-
def __init__(self, status=None, reason=None, http_resp=None) -> None:
|
|
149
|
-
super(ForbiddenException, self).__init__(status, reason, http_resp)
|
|
191
|
+
pass
|
|
150
192
|
|
|
151
193
|
|
|
152
194
|
class ServiceException(ApiException):
|
|
195
|
+
pass
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
class ConflictException(ApiException):
|
|
199
|
+
"""Exception for HTTP 409 Conflict."""
|
|
200
|
+
pass
|
|
201
|
+
|
|
153
202
|
|
|
154
|
-
|
|
155
|
-
|
|
203
|
+
class UnprocessableEntityException(ApiException):
|
|
204
|
+
"""Exception for HTTP 422 Unprocessable Entity."""
|
|
205
|
+
pass
|
|
156
206
|
|
|
157
207
|
|
|
158
208
|
def render_path(path_to_item):
|
|
@@ -45,7 +45,6 @@ from compute_api_client.models.job_in import JobIn
|
|
|
45
45
|
from compute_api_client.models.job_patch import JobPatch
|
|
46
46
|
from compute_api_client.models.job_status import JobStatus
|
|
47
47
|
from compute_api_client.models.language import Language
|
|
48
|
-
from compute_api_client.models.location_inner import LocationInner
|
|
49
48
|
from compute_api_client.models.member import Member
|
|
50
49
|
from compute_api_client.models.member_in import MemberIn
|
|
51
50
|
from compute_api_client.models.page_algorithm import PageAlgorithm
|
|
@@ -81,3 +80,4 @@ from compute_api_client.models.transaction import Transaction
|
|
|
81
80
|
from compute_api_client.models.user import User
|
|
82
81
|
from compute_api_client.models.user_in import UserIn
|
|
83
82
|
from compute_api_client.models.validation_error import ValidationError
|
|
83
|
+
from compute_api_client.models.validation_error_loc_inner import ValidationErrorLocInner
|
|
@@ -17,34 +17,31 @@ import pprint
|
|
|
17
17
|
import re # noqa: F401
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictInt
|
|
21
21
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
-
from pydantic import BaseModel, StrictInt
|
|
23
|
-
from pydantic import Field
|
|
24
22
|
from typing_extensions import Annotated
|
|
25
23
|
from compute_api_client.models.algorithm_type import AlgorithmType
|
|
26
24
|
from compute_api_client.models.share_type import ShareType
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
except ImportError:
|
|
30
|
-
from typing_extensions import Self
|
|
25
|
+
from typing import Optional, Set
|
|
26
|
+
from typing_extensions import Self
|
|
31
27
|
|
|
32
28
|
class Algorithm(BaseModel):
|
|
33
29
|
"""
|
|
34
30
|
Algorithm
|
|
35
31
|
""" # noqa: E501
|
|
36
|
-
id: StrictInt
|
|
37
|
-
project_id: StrictInt
|
|
38
|
-
type: AlgorithmType
|
|
39
|
-
shared: ShareType
|
|
32
|
+
id: StrictInt = Field(description="ID of the algorithm")
|
|
33
|
+
project_id: StrictInt = Field(description="ID of the project")
|
|
34
|
+
type: AlgorithmType = Field(description="The type of algorithm i.e. hybrid or quantum")
|
|
35
|
+
shared: ShareType = Field(description="The sharing scope of the algorithm")
|
|
40
36
|
link: Optional[Annotated[str, Field(strict=True, max_length=255)]]
|
|
41
|
-
name: Annotated[str, Field(strict=True, max_length=255)]
|
|
37
|
+
name: Annotated[str, Field(strict=True, max_length=255)] = Field(description="Name of the algorithm")
|
|
42
38
|
__properties: ClassVar[List[str]] = ["id", "project_id", "type", "shared", "link", "name"]
|
|
43
39
|
|
|
44
|
-
model_config =
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
40
|
+
model_config = ConfigDict(
|
|
41
|
+
populate_by_name=True,
|
|
42
|
+
validate_assignment=True,
|
|
43
|
+
protected_namespaces=(),
|
|
44
|
+
)
|
|
48
45
|
|
|
49
46
|
|
|
50
47
|
def to_str(self) -> str:
|
|
@@ -57,7 +54,7 @@ class Algorithm(BaseModel):
|
|
|
57
54
|
return json.dumps(self.to_dict())
|
|
58
55
|
|
|
59
56
|
@classmethod
|
|
60
|
-
def from_json(cls, json_str: str) -> Self:
|
|
57
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
61
58
|
"""Create an instance of Algorithm from a JSON string"""
|
|
62
59
|
return cls.from_dict(json.loads(json_str))
|
|
63
60
|
|
|
@@ -71,10 +68,12 @@ class Algorithm(BaseModel):
|
|
|
71
68
|
were set at model initialization. Other fields with value `None`
|
|
72
69
|
are ignored.
|
|
73
70
|
"""
|
|
71
|
+
excluded_fields: Set[str] = set([
|
|
72
|
+
])
|
|
73
|
+
|
|
74
74
|
_dict = self.model_dump(
|
|
75
75
|
by_alias=True,
|
|
76
|
-
exclude=
|
|
77
|
-
},
|
|
76
|
+
exclude=excluded_fields,
|
|
78
77
|
exclude_none=True,
|
|
79
78
|
)
|
|
80
79
|
# set to None if link (nullable) is None
|
|
@@ -85,7 +84,7 @@ class Algorithm(BaseModel):
|
|
|
85
84
|
return _dict
|
|
86
85
|
|
|
87
86
|
@classmethod
|
|
88
|
-
def from_dict(cls, obj: Dict) -> Self:
|
|
87
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
89
88
|
"""Create an instance of Algorithm from a dict"""
|
|
90
89
|
if obj is None:
|
|
91
90
|
return None
|