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