qi-compute-api-client 0.4.0__py3-none-any.whl → 0.17.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.
Potentially problematic release.
This version of qi-compute-api-client might be problematic. Click here for more details.
- compute_api_client/__init__.py +23 -20
- compute_api_client/api/__init__.py +5 -6
- compute_api_client/api/algorithms_api.py +1334 -554
- compute_api_client/api/backend_api.py +1501 -0
- compute_api_client/api/backend_types_api.py +684 -0
- compute_api_client/api/batch_jobs_api.py +1937 -0
- compute_api_client/api/commits_api.py +1069 -436
- compute_api_client/api/files_api.py +1076 -436
- compute_api_client/api/final_results_api.py +737 -339
- compute_api_client/api/jobs_api.py +1653 -0
- compute_api_client/api/languages_api.py +557 -218
- compute_api_client/api/members_api.py +1058 -436
- compute_api_client/api/metadata_api.py +737 -338
- compute_api_client/api/permissions_api.py +1056 -422
- compute_api_client/api/projects_api.py +1605 -677
- compute_api_client/api/reservations_api.py +1125 -428
- compute_api_client/api/results_api.py +739 -338
- compute_api_client/api/teams_api.py +568 -221
- compute_api_client/api/transactions_api.py +680 -219
- compute_api_client/api/users_api.py +1091 -436
- compute_api_client/api_client.py +347 -305
- compute_api_client/api_response.py +21 -0
- compute_api_client/configuration.py +55 -68
- compute_api_client/docs/Algorithm.md +20 -3
- compute_api_client/docs/AlgorithmIn.md +20 -3
- compute_api_client/docs/AlgorithmType.md +0 -1
- compute_api_client/docs/AlgorithmsApi.md +78 -77
- compute_api_client/docs/Backend.md +33 -0
- compute_api_client/docs/BackendApi.md +419 -0
- compute_api_client/docs/BackendPatch.md +29 -0
- compute_api_client/docs/{RunStatus.md → BackendStatus.md} +1 -2
- compute_api_client/docs/BackendType.md +36 -0
- compute_api_client/docs/{RuntimeTypesApi.md → BackendTypesApi.md} +58 -31
- compute_api_client/docs/BackendWithAuthentication.md +34 -0
- compute_api_client/docs/BatchJob.md +38 -0
- compute_api_client/docs/BatchJobIn.md +29 -0
- compute_api_client/docs/{RuntimeStatus.md → BatchJobStatus.md} +1 -2
- compute_api_client/docs/BatchJobsApi.md +524 -0
- compute_api_client/docs/Commit.md +18 -1
- compute_api_client/docs/CommitIn.md +17 -0
- compute_api_client/docs/CommitsApi.md +62 -71
- compute_api_client/docs/CompileStage.md +0 -1
- compute_api_client/docs/Domain.md +0 -1
- compute_api_client/docs/File.md +21 -4
- compute_api_client/docs/FileIn.md +21 -4
- compute_api_client/docs/FilesApi.md +65 -71
- compute_api_client/docs/FinalResult.md +20 -3
- compute_api_client/docs/FinalResultIn.md +19 -2
- compute_api_client/docs/FinalResultsApi.md +44 -71
- compute_api_client/docs/HTTPNotFoundError.md +17 -0
- compute_api_client/docs/HTTPValidationError.md +18 -1
- compute_api_client/docs/Job.md +36 -0
- compute_api_client/docs/JobIn.md +31 -0
- compute_api_client/docs/JobPatch.md +28 -0
- compute_api_client/docs/{BatchRunStatus.md → JobStatus.md} +1 -2
- compute_api_client/docs/{RunsApi.md → JobsApi.md} +137 -122
- compute_api_client/docs/Language.md +17 -0
- compute_api_client/docs/LanguagesApi.md +30 -12
- compute_api_client/docs/LocationInner.md +17 -0
- compute_api_client/docs/Member.md +19 -2
- compute_api_client/docs/MemberIn.md +19 -2
- compute_api_client/docs/MembersApi.md +59 -24
- compute_api_client/docs/Metadata.md +20 -3
- compute_api_client/docs/MetadataApi.md +49 -33
- compute_api_client/docs/MetadataIn.md +19 -2
- compute_api_client/docs/Permission.md +17 -0
- compute_api_client/docs/PermissionGroup.md +17 -0
- compute_api_client/docs/PermissionsApi.md +68 -28
- compute_api_client/docs/Project.md +20 -3
- compute_api_client/docs/ProjectIn.md +18 -1
- compute_api_client/docs/ProjectPatch.md +19 -2
- compute_api_client/docs/ProjectsApi.md +84 -36
- compute_api_client/docs/Reservation.md +21 -4
- compute_api_client/docs/ReservationIn.md +19 -2
- compute_api_client/docs/ReservationsApi.md +66 -24
- compute_api_client/docs/Result.md +23 -6
- compute_api_client/docs/ResultIn.md +19 -2
- compute_api_client/docs/ResultsApi.md +40 -74
- compute_api_client/docs/Role.md +0 -1
- compute_api_client/docs/ShareType.md +0 -1
- compute_api_client/docs/Team.md +18 -1
- compute_api_client/docs/TeamsApi.md +37 -14
- compute_api_client/docs/Transaction.md +21 -4
- compute_api_client/docs/TransactionsApi.md +50 -14
- compute_api_client/docs/User.md +21 -4
- compute_api_client/docs/UserIn.md +17 -0
- compute_api_client/docs/UsersApi.md +62 -24
- compute_api_client/docs/ValidationError.md +18 -1
- compute_api_client/exceptions.py +20 -17
- compute_api_client/models/__init__.py +17 -15
- compute_api_client/models/algorithm.py +79 -238
- compute_api_client/models/algorithm_in.py +77 -205
- compute_api_client/models/algorithm_type.py +22 -88
- compute_api_client/models/backend.py +100 -0
- compute_api_client/models/backend_patch.py +90 -0
- compute_api_client/models/backend_status.py +47 -0
- compute_api_client/models/backend_type.py +105 -0
- compute_api_client/models/backend_with_authentication.py +102 -0
- compute_api_client/models/batch_job.py +129 -0
- compute_api_client/models/batch_job_in.py +89 -0
- compute_api_client/models/batch_job_status.py +48 -0
- compute_api_client/models/commit.py +73 -231
- compute_api_client/models/commit_in.py +68 -170
- compute_api_client/models/compile_stage.py +24 -90
- compute_api_client/models/domain.py +23 -89
- compute_api_client/models/file.py +75 -289
- compute_api_client/models/file_in.py +73 -255
- compute_api_client/models/final_result.py +69 -199
- compute_api_client/models/final_result_in.py +64 -138
- compute_api_client/models/http_not_found_error.py +61 -106
- compute_api_client/models/http_validation_error.py +70 -106
- compute_api_client/models/job.py +120 -0
- compute_api_client/models/job_in.py +99 -0
- compute_api_client/models/job_patch.py +88 -0
- compute_api_client/models/job_status.py +48 -0
- compute_api_client/models/language.py +68 -173
- compute_api_client/models/location_inner.py +126 -85
- compute_api_client/models/member.py +71 -237
- compute_api_client/models/member_in.py +69 -204
- compute_api_client/models/metadata.py +69 -199
- compute_api_client/models/metadata_in.py +69 -138
- compute_api_client/models/permission.py +68 -173
- compute_api_client/models/permission_group.py +66 -143
- compute_api_client/models/project.py +75 -257
- compute_api_client/models/project_in.py +70 -196
- compute_api_client/models/project_patch.py +90 -193
- compute_api_client/models/reservation.py +80 -291
- compute_api_client/models/reservation_in.py +69 -201
- compute_api_client/models/result.py +102 -360
- compute_api_client/models/result_in.py +96 -293
- compute_api_client/models/role.py +22 -88
- compute_api_client/models/share_type.py +23 -89
- compute_api_client/models/team.py +70 -199
- compute_api_client/models/transaction.py +94 -300
- compute_api_client/models/user.py +76 -277
- compute_api_client/models/user_in.py +74 -244
- compute_api_client/models/validation_error.py +74 -161
- compute_api_client/rest.py +56 -115
- {qi_compute_api_client-0.4.0.dist-info → qi_compute_api_client-0.17.0.dist-info}/METADATA +47 -40
- qi_compute_api_client-0.17.0.dist-info/RECORD +142 -0
- compute_api_client/api/batch_runs_api.py +0 -862
- compute_api_client/api/runs_api.py +0 -723
- compute_api_client/api/runtime_api.py +0 -449
- compute_api_client/api/runtime_types_api.py +0 -303
- compute_api_client/docs/BatchRun.md +0 -21
- compute_api_client/docs/BatchRunIn.md +0 -12
- compute_api_client/docs/BatchRunsApi.md +0 -600
- compute_api_client/docs/Run.md +0 -18
- compute_api_client/docs/RunIn.md +0 -13
- compute_api_client/docs/Runtime.md +0 -16
- compute_api_client/docs/RuntimeApi.md +0 -229
- compute_api_client/docs/RuntimeType.md +0 -19
- compute_api_client/docs/RuntimeWithAuthentication.md +0 -17
- compute_api_client/models/batch_run.py +0 -423
- compute_api_client/models/batch_run_in.py +0 -171
- compute_api_client/models/batch_run_status.py +0 -114
- compute_api_client/models/run.py +0 -345
- compute_api_client/models/run_in.py +0 -202
- compute_api_client/models/run_status.py +0 -114
- compute_api_client/models/runtime.py +0 -290
- compute_api_client/models/runtime_status.py +0 -113
- compute_api_client/models/runtime_type.py +0 -357
- compute_api_client/models/runtime_with_authentication.py +0 -320
- qi_compute_api_client-0.4.0.dist-info/RECORD +0 -137
- {qi_compute_api_client-0.4.0.dist-info → qi_compute_api_client-0.17.0.dist-info}/LICENSE.md +0 -0
- {qi_compute_api_client-0.4.0.dist-info → qi_compute_api_client-0.17.0.dist-info}/WHEEL +0 -0
|
@@ -19,11 +19,13 @@ Get team by ID.
|
|
|
19
19
|
|
|
20
20
|
* Api Key Authentication (user):
|
|
21
21
|
```python
|
|
22
|
-
from __future__ import print_function
|
|
23
22
|
import time
|
|
23
|
+
import os
|
|
24
24
|
import compute_api_client
|
|
25
|
+
from compute_api_client.models.team import Team
|
|
25
26
|
from compute_api_client.rest import ApiException
|
|
26
27
|
from pprint import pprint
|
|
28
|
+
|
|
27
29
|
# Defining the host is optional and defaults to http://localhost
|
|
28
30
|
# See configuration.py for a list of all supported configuration parameters.
|
|
29
31
|
configuration = compute_api_client.Configuration(
|
|
@@ -36,25 +38,28 @@ configuration = compute_api_client.Configuration(
|
|
|
36
38
|
# satisfies your auth use case.
|
|
37
39
|
|
|
38
40
|
# Configure API key authorization: user
|
|
39
|
-
configuration.api_key['user'] =
|
|
41
|
+
configuration.api_key['user'] = os.environ["API_KEY"]
|
|
40
42
|
|
|
41
43
|
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
42
44
|
# configuration.api_key_prefix['user'] = 'Bearer'
|
|
43
45
|
|
|
44
46
|
# Enter a context with an instance of the API client
|
|
45
|
-
with compute_api_client.ApiClient(configuration) as api_client:
|
|
47
|
+
async with compute_api_client.ApiClient(configuration) as api_client:
|
|
46
48
|
# Create an instance of the API class
|
|
47
49
|
api_instance = compute_api_client.TeamsApi(api_client)
|
|
48
50
|
id = 56 # int |
|
|
49
51
|
|
|
50
52
|
try:
|
|
51
53
|
# Retrieve teams
|
|
52
|
-
api_response = api_instance.read_team_teams_id_get(id)
|
|
54
|
+
api_response = await api_instance.read_team_teams_id_get(id)
|
|
55
|
+
print("The response of TeamsApi->read_team_teams_id_get:\n")
|
|
53
56
|
pprint(api_response)
|
|
54
|
-
except
|
|
57
|
+
except Exception as e:
|
|
55
58
|
print("Exception when calling TeamsApi->read_team_teams_id_get: %s\n" % e)
|
|
56
59
|
```
|
|
57
60
|
|
|
61
|
+
|
|
62
|
+
|
|
58
63
|
### Parameters
|
|
59
64
|
|
|
60
65
|
Name | Type | Description | Notes
|
|
@@ -84,7 +89,7 @@ Name | Type | Description | Notes
|
|
|
84
89
|
[[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)
|
|
85
90
|
|
|
86
91
|
# **read_teams_teams_get**
|
|
87
|
-
>
|
|
92
|
+
> List[Team] read_teams_teams_get(latest=latest, id=id, name=name, slug=slug, individual_user=individual_user)
|
|
88
93
|
|
|
89
94
|
List teams
|
|
90
95
|
|
|
@@ -94,11 +99,13 @@ Read teams.
|
|
|
94
99
|
|
|
95
100
|
* Api Key Authentication (user):
|
|
96
101
|
```python
|
|
97
|
-
from __future__ import print_function
|
|
98
102
|
import time
|
|
103
|
+
import os
|
|
99
104
|
import compute_api_client
|
|
105
|
+
from compute_api_client.models.team import Team
|
|
100
106
|
from compute_api_client.rest import ApiException
|
|
101
107
|
from pprint import pprint
|
|
108
|
+
|
|
102
109
|
# Defining the host is optional and defaults to http://localhost
|
|
103
110
|
# See configuration.py for a list of all supported configuration parameters.
|
|
104
111
|
configuration = compute_api_client.Configuration(
|
|
@@ -111,30 +118,45 @@ configuration = compute_api_client.Configuration(
|
|
|
111
118
|
# satisfies your auth use case.
|
|
112
119
|
|
|
113
120
|
# Configure API key authorization: user
|
|
114
|
-
configuration.api_key['user'] =
|
|
121
|
+
configuration.api_key['user'] = os.environ["API_KEY"]
|
|
115
122
|
|
|
116
123
|
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
117
124
|
# configuration.api_key_prefix['user'] = 'Bearer'
|
|
118
125
|
|
|
119
126
|
# Enter a context with an instance of the API client
|
|
120
|
-
with compute_api_client.ApiClient(configuration) as api_client:
|
|
127
|
+
async with compute_api_client.ApiClient(configuration) as api_client:
|
|
121
128
|
# Create an instance of the API class
|
|
122
129
|
api_instance = compute_api_client.TeamsApi(api_client)
|
|
123
|
-
|
|
130
|
+
latest = True # bool | (optional)
|
|
131
|
+
id = 56 # int | (optional)
|
|
132
|
+
name = 'name_example' # str | (optional)
|
|
133
|
+
slug = 'slug_example' # str | (optional)
|
|
134
|
+
individual_user = True # bool | (optional)
|
|
135
|
+
|
|
124
136
|
try:
|
|
125
137
|
# List teams
|
|
126
|
-
api_response = api_instance.read_teams_teams_get()
|
|
138
|
+
api_response = await api_instance.read_teams_teams_get(latest=latest, id=id, name=name, slug=slug, individual_user=individual_user)
|
|
139
|
+
print("The response of TeamsApi->read_teams_teams_get:\n")
|
|
127
140
|
pprint(api_response)
|
|
128
|
-
except
|
|
141
|
+
except Exception as e:
|
|
129
142
|
print("Exception when calling TeamsApi->read_teams_teams_get: %s\n" % e)
|
|
130
143
|
```
|
|
131
144
|
|
|
145
|
+
|
|
146
|
+
|
|
132
147
|
### Parameters
|
|
133
|
-
|
|
148
|
+
|
|
149
|
+
Name | Type | Description | Notes
|
|
150
|
+
------------- | ------------- | ------------- | -------------
|
|
151
|
+
**latest** | **bool**| | [optional]
|
|
152
|
+
**id** | **int**| | [optional]
|
|
153
|
+
**name** | **str**| | [optional]
|
|
154
|
+
**slug** | **str**| | [optional]
|
|
155
|
+
**individual_user** | **bool**| | [optional]
|
|
134
156
|
|
|
135
157
|
### Return type
|
|
136
158
|
|
|
137
|
-
[**
|
|
159
|
+
[**List[Team]**](Team.md)
|
|
138
160
|
|
|
139
161
|
### Authorization
|
|
140
162
|
|
|
@@ -149,6 +171,7 @@ This endpoint does not need any parameter.
|
|
|
149
171
|
| Status code | Description | Response headers |
|
|
150
172
|
|-------------|-------------|------------------|
|
|
151
173
|
**200** | Successful Response | - |
|
|
174
|
+
**422** | Validation Error | - |
|
|
152
175
|
|
|
153
176
|
[[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)
|
|
154
177
|
|
|
@@ -5,13 +5,30 @@
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
7
|
**id** | **int** | |
|
|
8
|
-
**domain** | [**Domain**](Domain.md) |
|
|
9
|
-
**
|
|
8
|
+
**domain** | [**Domain**](Domain.md) | |
|
|
9
|
+
**job** | **int** | |
|
|
10
|
+
**team_id** | **int** | |
|
|
11
|
+
**user_id** | **int** | |
|
|
10
12
|
**change** | **int** | |
|
|
11
13
|
**timestamp** | **datetime** | |
|
|
12
|
-
**team_id** | **int** | |
|
|
13
|
-
**user_id** | **int** | | [optional]
|
|
14
14
|
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```python
|
|
18
|
+
from compute_api_client.models.transaction import Transaction
|
|
19
|
+
|
|
20
|
+
# TODO update the JSON string below
|
|
21
|
+
json = "{}"
|
|
22
|
+
# create an instance of Transaction from a JSON string
|
|
23
|
+
transaction_instance = Transaction.from_json(json)
|
|
24
|
+
# print the JSON string representation of the object
|
|
25
|
+
print Transaction.to_json()
|
|
26
|
+
|
|
27
|
+
# convert the object into a dict
|
|
28
|
+
transaction_dict = transaction_instance.to_dict()
|
|
29
|
+
# create an instance of Transaction from a dict
|
|
30
|
+
transaction_form_dict = transaction.from_dict(transaction_dict)
|
|
31
|
+
```
|
|
15
32
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
16
33
|
|
|
17
34
|
|
|
@@ -19,11 +19,13 @@ Get transaction by ID.
|
|
|
19
19
|
|
|
20
20
|
* Api Key Authentication (user):
|
|
21
21
|
```python
|
|
22
|
-
from __future__ import print_function
|
|
23
22
|
import time
|
|
23
|
+
import os
|
|
24
24
|
import compute_api_client
|
|
25
|
+
from compute_api_client.models.transaction import Transaction
|
|
25
26
|
from compute_api_client.rest import ApiException
|
|
26
27
|
from pprint import pprint
|
|
28
|
+
|
|
27
29
|
# Defining the host is optional and defaults to http://localhost
|
|
28
30
|
# See configuration.py for a list of all supported configuration parameters.
|
|
29
31
|
configuration = compute_api_client.Configuration(
|
|
@@ -36,25 +38,28 @@ configuration = compute_api_client.Configuration(
|
|
|
36
38
|
# satisfies your auth use case.
|
|
37
39
|
|
|
38
40
|
# Configure API key authorization: user
|
|
39
|
-
configuration.api_key['user'] =
|
|
41
|
+
configuration.api_key['user'] = os.environ["API_KEY"]
|
|
40
42
|
|
|
41
43
|
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
42
44
|
# configuration.api_key_prefix['user'] = 'Bearer'
|
|
43
45
|
|
|
44
46
|
# Enter a context with an instance of the API client
|
|
45
|
-
with compute_api_client.ApiClient(configuration) as api_client:
|
|
47
|
+
async with compute_api_client.ApiClient(configuration) as api_client:
|
|
46
48
|
# Create an instance of the API class
|
|
47
49
|
api_instance = compute_api_client.TransactionsApi(api_client)
|
|
48
50
|
id = 56 # int |
|
|
49
51
|
|
|
50
52
|
try:
|
|
51
53
|
# Retrieve transactions
|
|
52
|
-
api_response = api_instance.read_transaction_transactions_id_get(id)
|
|
54
|
+
api_response = await api_instance.read_transaction_transactions_id_get(id)
|
|
55
|
+
print("The response of TransactionsApi->read_transaction_transactions_id_get:\n")
|
|
53
56
|
pprint(api_response)
|
|
54
|
-
except
|
|
57
|
+
except Exception as e:
|
|
55
58
|
print("Exception when calling TransactionsApi->read_transaction_transactions_id_get: %s\n" % e)
|
|
56
59
|
```
|
|
57
60
|
|
|
61
|
+
|
|
62
|
+
|
|
58
63
|
### Parameters
|
|
59
64
|
|
|
60
65
|
Name | Type | Description | Notes
|
|
@@ -84,7 +89,7 @@ Name | Type | Description | Notes
|
|
|
84
89
|
[[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)
|
|
85
90
|
|
|
86
91
|
# **read_transactions_transactions_get**
|
|
87
|
-
>
|
|
92
|
+
> List[Transaction] read_transactions_transactions_get(latest=latest, id=id, domain__isnull=domain__isnull, domain=domain, job__isnull=job__isnull, job=job, team_id=team_id, user_id__isnull=user_id__isnull, user_id=user_id, change=change, timestamp=timestamp)
|
|
88
93
|
|
|
89
94
|
List transactions
|
|
90
95
|
|
|
@@ -94,11 +99,14 @@ Read transactions.
|
|
|
94
99
|
|
|
95
100
|
* Api Key Authentication (user):
|
|
96
101
|
```python
|
|
97
|
-
from __future__ import print_function
|
|
98
102
|
import time
|
|
103
|
+
import os
|
|
99
104
|
import compute_api_client
|
|
105
|
+
from compute_api_client.models.domain import Domain
|
|
106
|
+
from compute_api_client.models.transaction import Transaction
|
|
100
107
|
from compute_api_client.rest import ApiException
|
|
101
108
|
from pprint import pprint
|
|
109
|
+
|
|
102
110
|
# Defining the host is optional and defaults to http://localhost
|
|
103
111
|
# See configuration.py for a list of all supported configuration parameters.
|
|
104
112
|
configuration = compute_api_client.Configuration(
|
|
@@ -111,30 +119,57 @@ configuration = compute_api_client.Configuration(
|
|
|
111
119
|
# satisfies your auth use case.
|
|
112
120
|
|
|
113
121
|
# Configure API key authorization: user
|
|
114
|
-
configuration.api_key['user'] =
|
|
122
|
+
configuration.api_key['user'] = os.environ["API_KEY"]
|
|
115
123
|
|
|
116
124
|
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
117
125
|
# configuration.api_key_prefix['user'] = 'Bearer'
|
|
118
126
|
|
|
119
127
|
# Enter a context with an instance of the API client
|
|
120
|
-
with compute_api_client.ApiClient(configuration) as api_client:
|
|
128
|
+
async with compute_api_client.ApiClient(configuration) as api_client:
|
|
121
129
|
# Create an instance of the API class
|
|
122
130
|
api_instance = compute_api_client.TransactionsApi(api_client)
|
|
123
|
-
|
|
131
|
+
latest = True # bool | (optional)
|
|
132
|
+
id = 56 # int | (optional)
|
|
133
|
+
domain__isnull = True # bool | (optional)
|
|
134
|
+
domain = compute_api_client.Domain() # Domain | (optional)
|
|
135
|
+
job__isnull = True # bool | (optional)
|
|
136
|
+
job = 56 # int | (optional)
|
|
137
|
+
team_id = 56 # int | (optional)
|
|
138
|
+
user_id__isnull = True # bool | (optional)
|
|
139
|
+
user_id = 56 # int | (optional)
|
|
140
|
+
change = 56 # int | (optional)
|
|
141
|
+
timestamp = '2013-10-20T19:20:30+01:00' # datetime | (optional)
|
|
142
|
+
|
|
124
143
|
try:
|
|
125
144
|
# List transactions
|
|
126
|
-
api_response = api_instance.read_transactions_transactions_get()
|
|
145
|
+
api_response = await api_instance.read_transactions_transactions_get(latest=latest, id=id, domain__isnull=domain__isnull, domain=domain, job__isnull=job__isnull, job=job, team_id=team_id, user_id__isnull=user_id__isnull, user_id=user_id, change=change, timestamp=timestamp)
|
|
146
|
+
print("The response of TransactionsApi->read_transactions_transactions_get:\n")
|
|
127
147
|
pprint(api_response)
|
|
128
|
-
except
|
|
148
|
+
except Exception as e:
|
|
129
149
|
print("Exception when calling TransactionsApi->read_transactions_transactions_get: %s\n" % e)
|
|
130
150
|
```
|
|
131
151
|
|
|
152
|
+
|
|
153
|
+
|
|
132
154
|
### Parameters
|
|
133
|
-
|
|
155
|
+
|
|
156
|
+
Name | Type | Description | Notes
|
|
157
|
+
------------- | ------------- | ------------- | -------------
|
|
158
|
+
**latest** | **bool**| | [optional]
|
|
159
|
+
**id** | **int**| | [optional]
|
|
160
|
+
**domain__isnull** | **bool**| | [optional]
|
|
161
|
+
**domain** | [**Domain**](.md)| | [optional]
|
|
162
|
+
**job__isnull** | **bool**| | [optional]
|
|
163
|
+
**job** | **int**| | [optional]
|
|
164
|
+
**team_id** | **int**| | [optional]
|
|
165
|
+
**user_id__isnull** | **bool**| | [optional]
|
|
166
|
+
**user_id** | **int**| | [optional]
|
|
167
|
+
**change** | **int**| | [optional]
|
|
168
|
+
**timestamp** | **datetime**| | [optional]
|
|
134
169
|
|
|
135
170
|
### Return type
|
|
136
171
|
|
|
137
|
-
[**
|
|
172
|
+
[**List[Transaction]**](Transaction.md)
|
|
138
173
|
|
|
139
174
|
### Authorization
|
|
140
175
|
|
|
@@ -149,6 +184,7 @@ This endpoint does not need any parameter.
|
|
|
149
184
|
| Status code | Description | Response headers |
|
|
150
185
|
|-------------|-------------|------------------|
|
|
151
186
|
**200** | Successful Response | - |
|
|
187
|
+
**422** | Validation Error | - |
|
|
152
188
|
|
|
153
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)
|
|
154
190
|
|
compute_api_client/docs/User.md
CHANGED
|
@@ -7,11 +7,28 @@ Name | Type | Description | Notes
|
|
|
7
7
|
**id** | **int** | |
|
|
8
8
|
**full_name** | **str** | |
|
|
9
9
|
**email** | **str** | |
|
|
10
|
-
**is_superuser** | **bool** | |
|
|
11
|
-
**is_staff** | **bool** | |
|
|
12
|
-
**is_active** | **bool** | |
|
|
13
|
-
**is_confirmed** | **bool** | |
|
|
10
|
+
**is_superuser** | **bool** | |
|
|
11
|
+
**is_staff** | **bool** | |
|
|
12
|
+
**is_active** | **bool** | |
|
|
13
|
+
**is_confirmed** | **bool** | |
|
|
14
14
|
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```python
|
|
18
|
+
from compute_api_client.models.user import User
|
|
19
|
+
|
|
20
|
+
# TODO update the JSON string below
|
|
21
|
+
json = "{}"
|
|
22
|
+
# create an instance of User from a JSON string
|
|
23
|
+
user_instance = User.from_json(json)
|
|
24
|
+
# print the JSON string representation of the object
|
|
25
|
+
print User.to_json()
|
|
26
|
+
|
|
27
|
+
# convert the object into a dict
|
|
28
|
+
user_dict = user_instance.to_dict()
|
|
29
|
+
# create an instance of User from a dict
|
|
30
|
+
user_form_dict = user.from_dict(user_dict)
|
|
31
|
+
```
|
|
15
32
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
16
33
|
|
|
17
34
|
|
|
@@ -11,6 +11,23 @@ Name | Type | Description | Notes
|
|
|
11
11
|
**is_active** | **bool** | | [optional] [default to False]
|
|
12
12
|
**is_confirmed** | **bool** | | [optional] [default to False]
|
|
13
13
|
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```python
|
|
17
|
+
from compute_api_client.models.user_in import UserIn
|
|
18
|
+
|
|
19
|
+
# TODO update the JSON string below
|
|
20
|
+
json = "{}"
|
|
21
|
+
# create an instance of UserIn from a JSON string
|
|
22
|
+
user_in_instance = UserIn.from_json(json)
|
|
23
|
+
# print the JSON string representation of the object
|
|
24
|
+
print UserIn.to_json()
|
|
25
|
+
|
|
26
|
+
# convert the object into a dict
|
|
27
|
+
user_in_dict = user_in_instance.to_dict()
|
|
28
|
+
# create an instance of UserIn from a dict
|
|
29
|
+
user_in_form_dict = user_in.from_dict(user_in_dict)
|
|
30
|
+
```
|
|
14
31
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
15
32
|
|
|
16
33
|
|
|
@@ -21,11 +21,14 @@ Create new user.
|
|
|
21
21
|
|
|
22
22
|
* Api Key Authentication (user):
|
|
23
23
|
```python
|
|
24
|
-
from __future__ import print_function
|
|
25
24
|
import time
|
|
25
|
+
import os
|
|
26
26
|
import compute_api_client
|
|
27
|
+
from compute_api_client.models.user import User
|
|
28
|
+
from compute_api_client.models.user_in import UserIn
|
|
27
29
|
from compute_api_client.rest import ApiException
|
|
28
30
|
from pprint import pprint
|
|
31
|
+
|
|
29
32
|
# Defining the host is optional and defaults to http://localhost
|
|
30
33
|
# See configuration.py for a list of all supported configuration parameters.
|
|
31
34
|
configuration = compute_api_client.Configuration(
|
|
@@ -38,25 +41,28 @@ configuration = compute_api_client.Configuration(
|
|
|
38
41
|
# satisfies your auth use case.
|
|
39
42
|
|
|
40
43
|
# Configure API key authorization: user
|
|
41
|
-
configuration.api_key['user'] =
|
|
44
|
+
configuration.api_key['user'] = os.environ["API_KEY"]
|
|
42
45
|
|
|
43
46
|
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
44
47
|
# configuration.api_key_prefix['user'] = 'Bearer'
|
|
45
48
|
|
|
46
49
|
# Enter a context with an instance of the API client
|
|
47
|
-
with compute_api_client.ApiClient(configuration) as api_client:
|
|
50
|
+
async with compute_api_client.ApiClient(configuration) as api_client:
|
|
48
51
|
# Create an instance of the API class
|
|
49
52
|
api_instance = compute_api_client.UsersApi(api_client)
|
|
50
53
|
user_in = compute_api_client.UserIn() # UserIn |
|
|
51
54
|
|
|
52
55
|
try:
|
|
53
56
|
# Create user
|
|
54
|
-
api_response = api_instance.create_user_users_post(user_in)
|
|
57
|
+
api_response = await api_instance.create_user_users_post(user_in)
|
|
58
|
+
print("The response of UsersApi->create_user_users_post:\n")
|
|
55
59
|
pprint(api_response)
|
|
56
|
-
except
|
|
60
|
+
except Exception as e:
|
|
57
61
|
print("Exception when calling UsersApi->create_user_users_post: %s\n" % e)
|
|
58
62
|
```
|
|
59
63
|
|
|
64
|
+
|
|
65
|
+
|
|
60
66
|
### Parameters
|
|
61
67
|
|
|
62
68
|
Name | Type | Description | Notes
|
|
@@ -95,11 +101,12 @@ Delete a user.
|
|
|
95
101
|
|
|
96
102
|
* Api Key Authentication (user):
|
|
97
103
|
```python
|
|
98
|
-
from __future__ import print_function
|
|
99
104
|
import time
|
|
105
|
+
import os
|
|
100
106
|
import compute_api_client
|
|
101
107
|
from compute_api_client.rest import ApiException
|
|
102
108
|
from pprint import pprint
|
|
109
|
+
|
|
103
110
|
# Defining the host is optional and defaults to http://localhost
|
|
104
111
|
# See configuration.py for a list of all supported configuration parameters.
|
|
105
112
|
configuration = compute_api_client.Configuration(
|
|
@@ -112,24 +119,26 @@ configuration = compute_api_client.Configuration(
|
|
|
112
119
|
# satisfies your auth use case.
|
|
113
120
|
|
|
114
121
|
# Configure API key authorization: user
|
|
115
|
-
configuration.api_key['user'] =
|
|
122
|
+
configuration.api_key['user'] = os.environ["API_KEY"]
|
|
116
123
|
|
|
117
124
|
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
118
125
|
# configuration.api_key_prefix['user'] = 'Bearer'
|
|
119
126
|
|
|
120
127
|
# Enter a context with an instance of the API client
|
|
121
|
-
with compute_api_client.ApiClient(configuration) as api_client:
|
|
128
|
+
async with compute_api_client.ApiClient(configuration) as api_client:
|
|
122
129
|
# Create an instance of the API class
|
|
123
130
|
api_instance = compute_api_client.UsersApi(api_client)
|
|
124
131
|
id = 56 # int |
|
|
125
132
|
|
|
126
133
|
try:
|
|
127
134
|
# Destroy user
|
|
128
|
-
api_instance.delete_user_users_id_delete(id)
|
|
129
|
-
except
|
|
135
|
+
await api_instance.delete_user_users_id_delete(id)
|
|
136
|
+
except Exception as e:
|
|
130
137
|
print("Exception when calling UsersApi->delete_user_users_id_delete: %s\n" % e)
|
|
131
138
|
```
|
|
132
139
|
|
|
140
|
+
|
|
141
|
+
|
|
133
142
|
### Parameters
|
|
134
143
|
|
|
135
144
|
Name | Type | Description | Notes
|
|
@@ -169,11 +178,13 @@ Get user by ID.
|
|
|
169
178
|
|
|
170
179
|
* Api Key Authentication (user):
|
|
171
180
|
```python
|
|
172
|
-
from __future__ import print_function
|
|
173
181
|
import time
|
|
182
|
+
import os
|
|
174
183
|
import compute_api_client
|
|
184
|
+
from compute_api_client.models.user import User
|
|
175
185
|
from compute_api_client.rest import ApiException
|
|
176
186
|
from pprint import pprint
|
|
187
|
+
|
|
177
188
|
# Defining the host is optional and defaults to http://localhost
|
|
178
189
|
# See configuration.py for a list of all supported configuration parameters.
|
|
179
190
|
configuration = compute_api_client.Configuration(
|
|
@@ -186,25 +197,28 @@ configuration = compute_api_client.Configuration(
|
|
|
186
197
|
# satisfies your auth use case.
|
|
187
198
|
|
|
188
199
|
# Configure API key authorization: user
|
|
189
|
-
configuration.api_key['user'] =
|
|
200
|
+
configuration.api_key['user'] = os.environ["API_KEY"]
|
|
190
201
|
|
|
191
202
|
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
192
203
|
# configuration.api_key_prefix['user'] = 'Bearer'
|
|
193
204
|
|
|
194
205
|
# Enter a context with an instance of the API client
|
|
195
|
-
with compute_api_client.ApiClient(configuration) as api_client:
|
|
206
|
+
async with compute_api_client.ApiClient(configuration) as api_client:
|
|
196
207
|
# Create an instance of the API class
|
|
197
208
|
api_instance = compute_api_client.UsersApi(api_client)
|
|
198
209
|
id = 56 # int |
|
|
199
210
|
|
|
200
211
|
try:
|
|
201
212
|
# Retrieve user
|
|
202
|
-
api_response = api_instance.read_user_users_id_get(id)
|
|
213
|
+
api_response = await api_instance.read_user_users_id_get(id)
|
|
214
|
+
print("The response of UsersApi->read_user_users_id_get:\n")
|
|
203
215
|
pprint(api_response)
|
|
204
|
-
except
|
|
216
|
+
except Exception as e:
|
|
205
217
|
print("Exception when calling UsersApi->read_user_users_id_get: %s\n" % e)
|
|
206
218
|
```
|
|
207
219
|
|
|
220
|
+
|
|
221
|
+
|
|
208
222
|
### Parameters
|
|
209
223
|
|
|
210
224
|
Name | Type | Description | Notes
|
|
@@ -234,7 +248,7 @@ Name | Type | Description | Notes
|
|
|
234
248
|
[[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)
|
|
235
249
|
|
|
236
250
|
# **read_users_users_get**
|
|
237
|
-
>
|
|
251
|
+
> List[User] read_users_users_get(latest=latest, id=id, full_name=full_name, email=email, is_superuser=is_superuser, is_staff=is_staff, is_active=is_active, is_confirmed=is_confirmed)
|
|
238
252
|
|
|
239
253
|
List users
|
|
240
254
|
|
|
@@ -244,11 +258,13 @@ Read users.
|
|
|
244
258
|
|
|
245
259
|
* Api Key Authentication (user):
|
|
246
260
|
```python
|
|
247
|
-
from __future__ import print_function
|
|
248
261
|
import time
|
|
262
|
+
import os
|
|
249
263
|
import compute_api_client
|
|
264
|
+
from compute_api_client.models.user import User
|
|
250
265
|
from compute_api_client.rest import ApiException
|
|
251
266
|
from pprint import pprint
|
|
267
|
+
|
|
252
268
|
# Defining the host is optional and defaults to http://localhost
|
|
253
269
|
# See configuration.py for a list of all supported configuration parameters.
|
|
254
270
|
configuration = compute_api_client.Configuration(
|
|
@@ -261,30 +277,51 @@ configuration = compute_api_client.Configuration(
|
|
|
261
277
|
# satisfies your auth use case.
|
|
262
278
|
|
|
263
279
|
# Configure API key authorization: user
|
|
264
|
-
configuration.api_key['user'] =
|
|
280
|
+
configuration.api_key['user'] = os.environ["API_KEY"]
|
|
265
281
|
|
|
266
282
|
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
267
283
|
# configuration.api_key_prefix['user'] = 'Bearer'
|
|
268
284
|
|
|
269
285
|
# Enter a context with an instance of the API client
|
|
270
|
-
with compute_api_client.ApiClient(configuration) as api_client:
|
|
286
|
+
async with compute_api_client.ApiClient(configuration) as api_client:
|
|
271
287
|
# Create an instance of the API class
|
|
272
288
|
api_instance = compute_api_client.UsersApi(api_client)
|
|
273
|
-
|
|
289
|
+
latest = True # bool | (optional)
|
|
290
|
+
id = 56 # int | (optional)
|
|
291
|
+
full_name = 'full_name_example' # str | (optional)
|
|
292
|
+
email = 'email_example' # str | (optional)
|
|
293
|
+
is_superuser = True # bool | (optional)
|
|
294
|
+
is_staff = True # bool | (optional)
|
|
295
|
+
is_active = True # bool | (optional)
|
|
296
|
+
is_confirmed = True # bool | (optional)
|
|
297
|
+
|
|
274
298
|
try:
|
|
275
299
|
# List users
|
|
276
|
-
api_response = api_instance.read_users_users_get()
|
|
300
|
+
api_response = await api_instance.read_users_users_get(latest=latest, id=id, full_name=full_name, email=email, is_superuser=is_superuser, is_staff=is_staff, is_active=is_active, is_confirmed=is_confirmed)
|
|
301
|
+
print("The response of UsersApi->read_users_users_get:\n")
|
|
277
302
|
pprint(api_response)
|
|
278
|
-
except
|
|
303
|
+
except Exception as e:
|
|
279
304
|
print("Exception when calling UsersApi->read_users_users_get: %s\n" % e)
|
|
280
305
|
```
|
|
281
306
|
|
|
307
|
+
|
|
308
|
+
|
|
282
309
|
### Parameters
|
|
283
|
-
|
|
310
|
+
|
|
311
|
+
Name | Type | Description | Notes
|
|
312
|
+
------------- | ------------- | ------------- | -------------
|
|
313
|
+
**latest** | **bool**| | [optional]
|
|
314
|
+
**id** | **int**| | [optional]
|
|
315
|
+
**full_name** | **str**| | [optional]
|
|
316
|
+
**email** | **str**| | [optional]
|
|
317
|
+
**is_superuser** | **bool**| | [optional]
|
|
318
|
+
**is_staff** | **bool**| | [optional]
|
|
319
|
+
**is_active** | **bool**| | [optional]
|
|
320
|
+
**is_confirmed** | **bool**| | [optional]
|
|
284
321
|
|
|
285
322
|
### Return type
|
|
286
323
|
|
|
287
|
-
[**
|
|
324
|
+
[**List[User]**](User.md)
|
|
288
325
|
|
|
289
326
|
### Authorization
|
|
290
327
|
|
|
@@ -299,6 +336,7 @@ This endpoint does not need any parameter.
|
|
|
299
336
|
| Status code | Description | Response headers |
|
|
300
337
|
|-------------|-------------|------------------|
|
|
301
338
|
**200** | Successful Response | - |
|
|
339
|
+
**422** | Validation Error | - |
|
|
302
340
|
|
|
303
341
|
[[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)
|
|
304
342
|
|
|
@@ -4,10 +4,27 @@
|
|
|
4
4
|
## Properties
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**loc** | [**
|
|
7
|
+
**loc** | [**List[LocationInner]**](LocationInner.md) | |
|
|
8
8
|
**msg** | **str** | |
|
|
9
9
|
**type** | **str** | |
|
|
10
10
|
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```python
|
|
14
|
+
from compute_api_client.models.validation_error import ValidationError
|
|
15
|
+
|
|
16
|
+
# TODO update the JSON string below
|
|
17
|
+
json = "{}"
|
|
18
|
+
# create an instance of ValidationError from a JSON string
|
|
19
|
+
validation_error_instance = ValidationError.from_json(json)
|
|
20
|
+
# print the JSON string representation of the object
|
|
21
|
+
print ValidationError.to_json()
|
|
22
|
+
|
|
23
|
+
# convert the object into a dict
|
|
24
|
+
validation_error_dict = validation_error_instance.to_dict()
|
|
25
|
+
# create an instance of ValidationError from a dict
|
|
26
|
+
validation_error_form_dict = validation_error.from_dict(validation_error_dict)
|
|
27
|
+
```
|
|
11
28
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
12
29
|
|
|
13
30
|
|