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,35 @@
|
|
|
1
|
+
# Transaction
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **int** | The id of the transaction |
|
|
9
|
+
**domain** | [**Domain**](Domain.md) | |
|
|
10
|
+
**job** | **int** | |
|
|
11
|
+
**team_id** | **int** | The id of the team who initiated the transaction |
|
|
12
|
+
**member_id** | **int** | |
|
|
13
|
+
**change** | **int** | |
|
|
14
|
+
**timestamp** | **datetime** | Time when the transaction was started |
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```python
|
|
19
|
+
from compute_api_client.models.transaction import Transaction
|
|
20
|
+
|
|
21
|
+
# TODO update the JSON string below
|
|
22
|
+
json = "{}"
|
|
23
|
+
# create an instance of Transaction from a JSON string
|
|
24
|
+
transaction_instance = Transaction.from_json(json)
|
|
25
|
+
# print the JSON string representation of the object
|
|
26
|
+
print(Transaction.to_json())
|
|
27
|
+
|
|
28
|
+
# convert the object into a dict
|
|
29
|
+
transaction_dict = transaction_instance.to_dict()
|
|
30
|
+
# create an instance of Transaction from a dict
|
|
31
|
+
transaction_from_dict = Transaction.from_dict(transaction_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,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
|
+
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
# compute_api_client.TransactionsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost*
|
|
4
|
+
|
|
5
|
+
Method | HTTP request | Description
|
|
6
|
+
------------- | ------------- | -------------
|
|
7
|
+
[**read_transaction_transactions_id_get**](TransactionsApi.md#read_transaction_transactions_id_get) | **GET** /transactions/{id} | Retrieve transactions
|
|
8
|
+
[**read_transactions_transactions_get**](TransactionsApi.md#read_transactions_transactions_get) | **GET** /transactions/ | List transactions
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
# **read_transaction_transactions_id_get**
|
|
12
|
+
> Transaction read_transaction_transactions_id_get(id)
|
|
13
|
+
|
|
14
|
+
Retrieve transactions
|
|
15
|
+
|
|
16
|
+
Get transaction by ID.
|
|
17
|
+
|
|
18
|
+
### Example
|
|
19
|
+
|
|
20
|
+
* OAuth Authentication (user_bearer):
|
|
21
|
+
|
|
22
|
+
```python
|
|
23
|
+
import compute_api_client
|
|
24
|
+
from compute_api_client.models.transaction import Transaction
|
|
25
|
+
from compute_api_client.rest import ApiException
|
|
26
|
+
from pprint import pprint
|
|
27
|
+
|
|
28
|
+
# Defining the host is optional and defaults to http://localhost
|
|
29
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
30
|
+
configuration = compute_api_client.Configuration(
|
|
31
|
+
host = "http://localhost"
|
|
32
|
+
)
|
|
33
|
+
|
|
34
|
+
# The client must configure the authentication and authorization parameters
|
|
35
|
+
# in accordance with the API server security policy.
|
|
36
|
+
# Examples for each auth method are provided below, use the example that
|
|
37
|
+
# satisfies your auth use case.
|
|
38
|
+
|
|
39
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
40
|
+
|
|
41
|
+
# Enter a context with an instance of the API client
|
|
42
|
+
async with compute_api_client.ApiClient(configuration) as api_client:
|
|
43
|
+
# Create an instance of the API class
|
|
44
|
+
api_instance = compute_api_client.TransactionsApi(api_client)
|
|
45
|
+
id = 56 # int |
|
|
46
|
+
|
|
47
|
+
try:
|
|
48
|
+
# Retrieve transactions
|
|
49
|
+
api_response = await api_instance.read_transaction_transactions_id_get(id)
|
|
50
|
+
print("The response of TransactionsApi->read_transaction_transactions_id_get:\n")
|
|
51
|
+
pprint(api_response)
|
|
52
|
+
except Exception as e:
|
|
53
|
+
print("Exception when calling TransactionsApi->read_transaction_transactions_id_get: %s\n" % e)
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
### Parameters
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
Name | Type | Description | Notes
|
|
62
|
+
------------- | ------------- | ------------- | -------------
|
|
63
|
+
**id** | **int**| |
|
|
64
|
+
|
|
65
|
+
### Return type
|
|
66
|
+
|
|
67
|
+
[**Transaction**](Transaction.md)
|
|
68
|
+
|
|
69
|
+
### Authorization
|
|
70
|
+
|
|
71
|
+
[user_bearer](../README.md#user_bearer)
|
|
72
|
+
|
|
73
|
+
### HTTP request headers
|
|
74
|
+
|
|
75
|
+
- **Content-Type**: Not defined
|
|
76
|
+
- **Accept**: application/json
|
|
77
|
+
|
|
78
|
+
### HTTP response details
|
|
79
|
+
|
|
80
|
+
| Status code | Description | Response headers |
|
|
81
|
+
|-------------|-------------|------------------|
|
|
82
|
+
**200** | Successful Response | - |
|
|
83
|
+
**404** | Not Found | - |
|
|
84
|
+
**422** | Validation Error | - |
|
|
85
|
+
|
|
86
|
+
[[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)
|
|
87
|
+
|
|
88
|
+
# **read_transactions_transactions_get**
|
|
89
|
+
> PageTransaction read_transactions_transactions_get(id=id, domain__isnull=domain__isnull, domain=domain, job__isnull=job__isnull, job=job, team_id=team_id, member_id__isnull=member_id__isnull, member_id=member_id, change=change, timestamp=timestamp, sort_by=sort_by, latest=latest, page=page, size=size)
|
|
90
|
+
|
|
91
|
+
List transactions
|
|
92
|
+
|
|
93
|
+
Read transactions.
|
|
94
|
+
|
|
95
|
+
### Example
|
|
96
|
+
|
|
97
|
+
* OAuth Authentication (user_bearer):
|
|
98
|
+
|
|
99
|
+
```python
|
|
100
|
+
import compute_api_client
|
|
101
|
+
from compute_api_client.models.domain import Domain
|
|
102
|
+
from compute_api_client.models.page_transaction import PageTransaction
|
|
103
|
+
from compute_api_client.rest import ApiException
|
|
104
|
+
from pprint import pprint
|
|
105
|
+
|
|
106
|
+
# Defining the host is optional and defaults to http://localhost
|
|
107
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
108
|
+
configuration = compute_api_client.Configuration(
|
|
109
|
+
host = "http://localhost"
|
|
110
|
+
)
|
|
111
|
+
|
|
112
|
+
# The client must configure the authentication and authorization parameters
|
|
113
|
+
# in accordance with the API server security policy.
|
|
114
|
+
# Examples for each auth method are provided below, use the example that
|
|
115
|
+
# satisfies your auth use case.
|
|
116
|
+
|
|
117
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
118
|
+
|
|
119
|
+
# Enter a context with an instance of the API client
|
|
120
|
+
async with compute_api_client.ApiClient(configuration) as api_client:
|
|
121
|
+
# Create an instance of the API class
|
|
122
|
+
api_instance = compute_api_client.TransactionsApi(api_client)
|
|
123
|
+
id = 56 # int | (optional)
|
|
124
|
+
domain__isnull = True # bool | (optional)
|
|
125
|
+
domain = compute_api_client.Domain() # Domain | (optional)
|
|
126
|
+
job__isnull = True # bool | (optional)
|
|
127
|
+
job = 56 # int | (optional)
|
|
128
|
+
team_id = 56 # int | (optional)
|
|
129
|
+
member_id__isnull = True # bool | (optional)
|
|
130
|
+
member_id = 56 # int | (optional)
|
|
131
|
+
change = 56 # int | (optional)
|
|
132
|
+
timestamp = '2013-10-20T19:20:30+01:00' # datetime | (optional)
|
|
133
|
+
sort_by = 'sort_by_example' # str | The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'. (optional)
|
|
134
|
+
latest = True # bool | If True gets the most recently created object. (optional)
|
|
135
|
+
page = 1 # int | Page number (optional) (default to 1)
|
|
136
|
+
size = 50 # int | Page size (optional) (default to 50)
|
|
137
|
+
|
|
138
|
+
try:
|
|
139
|
+
# List transactions
|
|
140
|
+
api_response = await api_instance.read_transactions_transactions_get(id=id, domain__isnull=domain__isnull, domain=domain, job__isnull=job__isnull, job=job, team_id=team_id, member_id__isnull=member_id__isnull, member_id=member_id, change=change, timestamp=timestamp, sort_by=sort_by, latest=latest, page=page, size=size)
|
|
141
|
+
print("The response of TransactionsApi->read_transactions_transactions_get:\n")
|
|
142
|
+
pprint(api_response)
|
|
143
|
+
except Exception as e:
|
|
144
|
+
print("Exception when calling TransactionsApi->read_transactions_transactions_get: %s\n" % e)
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
### Parameters
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
Name | Type | Description | Notes
|
|
153
|
+
------------- | ------------- | ------------- | -------------
|
|
154
|
+
**id** | **int**| | [optional]
|
|
155
|
+
**domain__isnull** | **bool**| | [optional]
|
|
156
|
+
**domain** | [**Domain**](.md)| | [optional]
|
|
157
|
+
**job__isnull** | **bool**| | [optional]
|
|
158
|
+
**job** | **int**| | [optional]
|
|
159
|
+
**team_id** | **int**| | [optional]
|
|
160
|
+
**member_id__isnull** | **bool**| | [optional]
|
|
161
|
+
**member_id** | **int**| | [optional]
|
|
162
|
+
**change** | **int**| | [optional]
|
|
163
|
+
**timestamp** | **datetime**| | [optional]
|
|
164
|
+
**sort_by** | **str**| The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'. | [optional]
|
|
165
|
+
**latest** | **bool**| If True gets the most recently created object. | [optional]
|
|
166
|
+
**page** | **int**| Page number | [optional] [default to 1]
|
|
167
|
+
**size** | **int**| Page size | [optional] [default to 50]
|
|
168
|
+
|
|
169
|
+
### Return type
|
|
170
|
+
|
|
171
|
+
[**PageTransaction**](PageTransaction.md)
|
|
172
|
+
|
|
173
|
+
### Authorization
|
|
174
|
+
|
|
175
|
+
[user_bearer](../README.md#user_bearer)
|
|
176
|
+
|
|
177
|
+
### HTTP request headers
|
|
178
|
+
|
|
179
|
+
- **Content-Type**: Not defined
|
|
180
|
+
- **Accept**: application/json
|
|
181
|
+
|
|
182
|
+
### HTTP response details
|
|
183
|
+
|
|
184
|
+
| Status code | Description | Response headers |
|
|
185
|
+
|-------------|-------------|------------------|
|
|
186
|
+
**200** | Successful Response | - |
|
|
187
|
+
**422** | Validation Error | - |
|
|
188
|
+
|
|
189
|
+
[[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)
|
|
190
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# User
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
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 |
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```python
|
|
20
|
+
from compute_api_client.models.user import User
|
|
21
|
+
|
|
22
|
+
# TODO update the JSON string below
|
|
23
|
+
json = "{}"
|
|
24
|
+
# create an instance of User from a JSON string
|
|
25
|
+
user_instance = User.from_json(json)
|
|
26
|
+
# print the JSON string representation of the object
|
|
27
|
+
print(User.to_json())
|
|
28
|
+
|
|
29
|
+
# convert the object into a dict
|
|
30
|
+
user_dict = user_instance.to_dict()
|
|
31
|
+
# create an instance of User from a dict
|
|
32
|
+
user_from_dict = User.from_dict(user_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,35 @@
|
|
|
1
|
+
# UserIn
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
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 |
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```python
|
|
19
|
+
from compute_api_client.models.user_in import UserIn
|
|
20
|
+
|
|
21
|
+
# TODO update the JSON string below
|
|
22
|
+
json = "{}"
|
|
23
|
+
# create an instance of UserIn from a JSON string
|
|
24
|
+
user_in_instance = UserIn.from_json(json)
|
|
25
|
+
# print the JSON string representation of the object
|
|
26
|
+
print(UserIn.to_json())
|
|
27
|
+
|
|
28
|
+
# convert the object into a dict
|
|
29
|
+
user_in_dict = user_in_instance.to_dict()
|
|
30
|
+
# create an instance of UserIn from a dict
|
|
31
|
+
user_in_from_dict = UserIn.from_dict(user_in_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,338 @@
|
|
|
1
|
+
# compute_api_client.UsersApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost*
|
|
4
|
+
|
|
5
|
+
Method | HTTP request | Description
|
|
6
|
+
------------- | ------------- | -------------
|
|
7
|
+
[**create_user_users_post**](UsersApi.md#create_user_users_post) | **POST** /users | Create user
|
|
8
|
+
[**delete_user_users_id_delete**](UsersApi.md#delete_user_users_id_delete) | **DELETE** /users/{id} | Destroy user
|
|
9
|
+
[**read_user_users_id_get**](UsersApi.md#read_user_users_id_get) | **GET** /users/{id} | Retrieve user
|
|
10
|
+
[**read_users_users_get**](UsersApi.md#read_users_users_get) | **GET** /users | List users
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
# **create_user_users_post**
|
|
14
|
+
> User create_user_users_post(user_in)
|
|
15
|
+
|
|
16
|
+
Create user
|
|
17
|
+
|
|
18
|
+
Create new user.
|
|
19
|
+
|
|
20
|
+
### Example
|
|
21
|
+
|
|
22
|
+
* OAuth Authentication (user_bearer):
|
|
23
|
+
|
|
24
|
+
```python
|
|
25
|
+
import compute_api_client
|
|
26
|
+
from compute_api_client.models.user import User
|
|
27
|
+
from compute_api_client.models.user_in import UserIn
|
|
28
|
+
from compute_api_client.rest import ApiException
|
|
29
|
+
from pprint import pprint
|
|
30
|
+
|
|
31
|
+
# Defining the host is optional and defaults to http://localhost
|
|
32
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
33
|
+
configuration = compute_api_client.Configuration(
|
|
34
|
+
host = "http://localhost"
|
|
35
|
+
)
|
|
36
|
+
|
|
37
|
+
# The client must configure the authentication and authorization parameters
|
|
38
|
+
# in accordance with the API server security policy.
|
|
39
|
+
# Examples for each auth method are provided below, use the example that
|
|
40
|
+
# satisfies your auth use case.
|
|
41
|
+
|
|
42
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
43
|
+
|
|
44
|
+
# Enter a context with an instance of the API client
|
|
45
|
+
async with compute_api_client.ApiClient(configuration) as api_client:
|
|
46
|
+
# Create an instance of the API class
|
|
47
|
+
api_instance = compute_api_client.UsersApi(api_client)
|
|
48
|
+
user_in = compute_api_client.UserIn() # UserIn |
|
|
49
|
+
|
|
50
|
+
try:
|
|
51
|
+
# Create user
|
|
52
|
+
api_response = await api_instance.create_user_users_post(user_in)
|
|
53
|
+
print("The response of UsersApi->create_user_users_post:\n")
|
|
54
|
+
pprint(api_response)
|
|
55
|
+
except Exception as e:
|
|
56
|
+
print("Exception when calling UsersApi->create_user_users_post: %s\n" % e)
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
### Parameters
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
Name | Type | Description | Notes
|
|
65
|
+
------------- | ------------- | ------------- | -------------
|
|
66
|
+
**user_in** | [**UserIn**](UserIn.md)| |
|
|
67
|
+
|
|
68
|
+
### Return type
|
|
69
|
+
|
|
70
|
+
[**User**](User.md)
|
|
71
|
+
|
|
72
|
+
### Authorization
|
|
73
|
+
|
|
74
|
+
[user_bearer](../README.md#user_bearer)
|
|
75
|
+
|
|
76
|
+
### HTTP request headers
|
|
77
|
+
|
|
78
|
+
- **Content-Type**: application/json
|
|
79
|
+
- **Accept**: application/json
|
|
80
|
+
|
|
81
|
+
### HTTP response details
|
|
82
|
+
|
|
83
|
+
| Status code | Description | Response headers |
|
|
84
|
+
|-------------|-------------|------------------|
|
|
85
|
+
**201** | Successful Response | - |
|
|
86
|
+
**422** | Validation Error | - |
|
|
87
|
+
|
|
88
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
89
|
+
|
|
90
|
+
# **delete_user_users_id_delete**
|
|
91
|
+
> delete_user_users_id_delete(id)
|
|
92
|
+
|
|
93
|
+
Destroy user
|
|
94
|
+
|
|
95
|
+
Delete a user.
|
|
96
|
+
|
|
97
|
+
### Example
|
|
98
|
+
|
|
99
|
+
* OAuth Authentication (user_bearer):
|
|
100
|
+
|
|
101
|
+
```python
|
|
102
|
+
import compute_api_client
|
|
103
|
+
from compute_api_client.rest import ApiException
|
|
104
|
+
from pprint import pprint
|
|
105
|
+
|
|
106
|
+
# Defining the host is optional and defaults to http://localhost
|
|
107
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
108
|
+
configuration = compute_api_client.Configuration(
|
|
109
|
+
host = "http://localhost"
|
|
110
|
+
)
|
|
111
|
+
|
|
112
|
+
# The client must configure the authentication and authorization parameters
|
|
113
|
+
# in accordance with the API server security policy.
|
|
114
|
+
# Examples for each auth method are provided below, use the example that
|
|
115
|
+
# satisfies your auth use case.
|
|
116
|
+
|
|
117
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
118
|
+
|
|
119
|
+
# Enter a context with an instance of the API client
|
|
120
|
+
async with compute_api_client.ApiClient(configuration) as api_client:
|
|
121
|
+
# Create an instance of the API class
|
|
122
|
+
api_instance = compute_api_client.UsersApi(api_client)
|
|
123
|
+
id = 56 # int |
|
|
124
|
+
|
|
125
|
+
try:
|
|
126
|
+
# Destroy user
|
|
127
|
+
await api_instance.delete_user_users_id_delete(id)
|
|
128
|
+
except Exception as e:
|
|
129
|
+
print("Exception when calling UsersApi->delete_user_users_id_delete: %s\n" % e)
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
### Parameters
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
Name | Type | Description | Notes
|
|
138
|
+
------------- | ------------- | ------------- | -------------
|
|
139
|
+
**id** | **int**| |
|
|
140
|
+
|
|
141
|
+
### Return type
|
|
142
|
+
|
|
143
|
+
void (empty response body)
|
|
144
|
+
|
|
145
|
+
### Authorization
|
|
146
|
+
|
|
147
|
+
[user_bearer](../README.md#user_bearer)
|
|
148
|
+
|
|
149
|
+
### HTTP request headers
|
|
150
|
+
|
|
151
|
+
- **Content-Type**: Not defined
|
|
152
|
+
- **Accept**: application/json
|
|
153
|
+
|
|
154
|
+
### HTTP response details
|
|
155
|
+
|
|
156
|
+
| Status code | Description | Response headers |
|
|
157
|
+
|-------------|-------------|------------------|
|
|
158
|
+
**204** | Successful Response | - |
|
|
159
|
+
**404** | Not Found | - |
|
|
160
|
+
**422** | Validation Error | - |
|
|
161
|
+
|
|
162
|
+
[[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)
|
|
163
|
+
|
|
164
|
+
# **read_user_users_id_get**
|
|
165
|
+
> User read_user_users_id_get(id)
|
|
166
|
+
|
|
167
|
+
Retrieve user
|
|
168
|
+
|
|
169
|
+
Get user by ID.
|
|
170
|
+
|
|
171
|
+
### Example
|
|
172
|
+
|
|
173
|
+
* OAuth Authentication (user_bearer):
|
|
174
|
+
|
|
175
|
+
```python
|
|
176
|
+
import compute_api_client
|
|
177
|
+
from compute_api_client.models.user import User
|
|
178
|
+
from compute_api_client.rest import ApiException
|
|
179
|
+
from pprint import pprint
|
|
180
|
+
|
|
181
|
+
# Defining the host is optional and defaults to http://localhost
|
|
182
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
183
|
+
configuration = compute_api_client.Configuration(
|
|
184
|
+
host = "http://localhost"
|
|
185
|
+
)
|
|
186
|
+
|
|
187
|
+
# The client must configure the authentication and authorization parameters
|
|
188
|
+
# in accordance with the API server security policy.
|
|
189
|
+
# Examples for each auth method are provided below, use the example that
|
|
190
|
+
# satisfies your auth use case.
|
|
191
|
+
|
|
192
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
193
|
+
|
|
194
|
+
# Enter a context with an instance of the API client
|
|
195
|
+
async with compute_api_client.ApiClient(configuration) as api_client:
|
|
196
|
+
# Create an instance of the API class
|
|
197
|
+
api_instance = compute_api_client.UsersApi(api_client)
|
|
198
|
+
id = 56 # int |
|
|
199
|
+
|
|
200
|
+
try:
|
|
201
|
+
# Retrieve user
|
|
202
|
+
api_response = await api_instance.read_user_users_id_get(id)
|
|
203
|
+
print("The response of UsersApi->read_user_users_id_get:\n")
|
|
204
|
+
pprint(api_response)
|
|
205
|
+
except Exception as e:
|
|
206
|
+
print("Exception when calling UsersApi->read_user_users_id_get: %s\n" % e)
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
### Parameters
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
Name | Type | Description | Notes
|
|
215
|
+
------------- | ------------- | ------------- | -------------
|
|
216
|
+
**id** | **int**| |
|
|
217
|
+
|
|
218
|
+
### Return type
|
|
219
|
+
|
|
220
|
+
[**User**](User.md)
|
|
221
|
+
|
|
222
|
+
### Authorization
|
|
223
|
+
|
|
224
|
+
[user_bearer](../README.md#user_bearer)
|
|
225
|
+
|
|
226
|
+
### HTTP request headers
|
|
227
|
+
|
|
228
|
+
- **Content-Type**: Not defined
|
|
229
|
+
- **Accept**: application/json
|
|
230
|
+
|
|
231
|
+
### HTTP response details
|
|
232
|
+
|
|
233
|
+
| Status code | Description | Response headers |
|
|
234
|
+
|-------------|-------------|------------------|
|
|
235
|
+
**200** | Successful Response | - |
|
|
236
|
+
**404** | Not Found | - |
|
|
237
|
+
**422** | Validation Error | - |
|
|
238
|
+
|
|
239
|
+
[[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)
|
|
240
|
+
|
|
241
|
+
# **read_users_users_get**
|
|
242
|
+
> PageUser read_users_users_get(id=id, full_name=full_name, email=email, is_superuser=is_superuser, is_staff=is_staff, is_active=is_active, is_confirmed=is_confirmed, oidc_sub=oidc_sub, sort_by=sort_by, latest=latest, page=page, size=size)
|
|
243
|
+
|
|
244
|
+
List users
|
|
245
|
+
|
|
246
|
+
Read users.
|
|
247
|
+
|
|
248
|
+
### Example
|
|
249
|
+
|
|
250
|
+
* OAuth Authentication (user_bearer):
|
|
251
|
+
|
|
252
|
+
```python
|
|
253
|
+
import compute_api_client
|
|
254
|
+
from compute_api_client.models.page_user import PageUser
|
|
255
|
+
from compute_api_client.rest import ApiException
|
|
256
|
+
from pprint import pprint
|
|
257
|
+
|
|
258
|
+
# Defining the host is optional and defaults to http://localhost
|
|
259
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
260
|
+
configuration = compute_api_client.Configuration(
|
|
261
|
+
host = "http://localhost"
|
|
262
|
+
)
|
|
263
|
+
|
|
264
|
+
# The client must configure the authentication and authorization parameters
|
|
265
|
+
# in accordance with the API server security policy.
|
|
266
|
+
# Examples for each auth method are provided below, use the example that
|
|
267
|
+
# satisfies your auth use case.
|
|
268
|
+
|
|
269
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
270
|
+
|
|
271
|
+
# Enter a context with an instance of the API client
|
|
272
|
+
async with compute_api_client.ApiClient(configuration) as api_client:
|
|
273
|
+
# Create an instance of the API class
|
|
274
|
+
api_instance = compute_api_client.UsersApi(api_client)
|
|
275
|
+
id = 56 # int | (optional)
|
|
276
|
+
full_name = 'full_name_example' # str | (optional)
|
|
277
|
+
email = 'email_example' # str | (optional)
|
|
278
|
+
is_superuser = True # bool | (optional)
|
|
279
|
+
is_staff = True # bool | (optional)
|
|
280
|
+
is_active = True # bool | (optional)
|
|
281
|
+
is_confirmed = True # bool | (optional)
|
|
282
|
+
oidc_sub = 'oidc_sub_example' # str | (optional)
|
|
283
|
+
sort_by = 'sort_by_example' # str | The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'. (optional)
|
|
284
|
+
latest = True # bool | If True gets the most recently created object. (optional)
|
|
285
|
+
page = 1 # int | Page number (optional) (default to 1)
|
|
286
|
+
size = 50 # int | Page size (optional) (default to 50)
|
|
287
|
+
|
|
288
|
+
try:
|
|
289
|
+
# List users
|
|
290
|
+
api_response = await api_instance.read_users_users_get(id=id, full_name=full_name, email=email, is_superuser=is_superuser, is_staff=is_staff, is_active=is_active, is_confirmed=is_confirmed, oidc_sub=oidc_sub, sort_by=sort_by, latest=latest, page=page, size=size)
|
|
291
|
+
print("The response of UsersApi->read_users_users_get:\n")
|
|
292
|
+
pprint(api_response)
|
|
293
|
+
except Exception as e:
|
|
294
|
+
print("Exception when calling UsersApi->read_users_users_get: %s\n" % e)
|
|
295
|
+
```
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
### Parameters
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
Name | Type | Description | Notes
|
|
303
|
+
------------- | ------------- | ------------- | -------------
|
|
304
|
+
**id** | **int**| | [optional]
|
|
305
|
+
**full_name** | **str**| | [optional]
|
|
306
|
+
**email** | **str**| | [optional]
|
|
307
|
+
**is_superuser** | **bool**| | [optional]
|
|
308
|
+
**is_staff** | **bool**| | [optional]
|
|
309
|
+
**is_active** | **bool**| | [optional]
|
|
310
|
+
**is_confirmed** | **bool**| | [optional]
|
|
311
|
+
**oidc_sub** | **str**| | [optional]
|
|
312
|
+
**sort_by** | **str**| The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'. | [optional]
|
|
313
|
+
**latest** | **bool**| If True gets the most recently created object. | [optional]
|
|
314
|
+
**page** | **int**| Page number | [optional] [default to 1]
|
|
315
|
+
**size** | **int**| Page size | [optional] [default to 50]
|
|
316
|
+
|
|
317
|
+
### Return type
|
|
318
|
+
|
|
319
|
+
[**PageUser**](PageUser.md)
|
|
320
|
+
|
|
321
|
+
### Authorization
|
|
322
|
+
|
|
323
|
+
[user_bearer](../README.md#user_bearer)
|
|
324
|
+
|
|
325
|
+
### HTTP request headers
|
|
326
|
+
|
|
327
|
+
- **Content-Type**: Not defined
|
|
328
|
+
- **Accept**: application/json
|
|
329
|
+
|
|
330
|
+
### HTTP response details
|
|
331
|
+
|
|
332
|
+
| Status code | Description | Response headers |
|
|
333
|
+
|-------------|-------------|------------------|
|
|
334
|
+
**200** | Successful Response | - |
|
|
335
|
+
**422** | Validation Error | - |
|
|
336
|
+
|
|
337
|
+
[[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)
|
|
338
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# ValidationError
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**loc** | [**List[ValidationErrorLocInner]**](ValidationErrorLocInner.md) | |
|
|
9
|
+
**msg** | **str** | |
|
|
10
|
+
**type** | **str** | |
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```python
|
|
15
|
+
from compute_api_client.models.validation_error import ValidationError
|
|
16
|
+
|
|
17
|
+
# TODO update the JSON string below
|
|
18
|
+
json = "{}"
|
|
19
|
+
# create an instance of ValidationError from a JSON string
|
|
20
|
+
validation_error_instance = ValidationError.from_json(json)
|
|
21
|
+
# print the JSON string representation of the object
|
|
22
|
+
print(ValidationError.to_json())
|
|
23
|
+
|
|
24
|
+
# convert the object into a dict
|
|
25
|
+
validation_error_dict = validation_error_instance.to_dict()
|
|
26
|
+
# create an instance of ValidationError from a dict
|
|
27
|
+
validation_error_from_dict = ValidationError.from_dict(validation_error_dict)
|
|
28
|
+
```
|
|
29
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
30
|
+
|
|
31
|
+
|