qi-compute-api-client 0.53.0__py3-none-any.whl → 0.54.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 +194 -95
- compute_api_client/api/algorithms_api.py +75 -81
- compute_api_client/api/auth_config_api.py +16 -24
- compute_api_client/api/backend_api.py +70 -86
- compute_api_client/api/backend_types_api.py +43 -56
- compute_api_client/api/batch_jobs_api.py +102 -120
- compute_api_client/api/commits_api.py +85 -80
- compute_api_client/api/files_api.py +62 -67
- compute_api_client/api/final_results_api.py +42 -53
- compute_api_client/api/health_api.py +16 -25
- compute_api_client/api/jobs_api.py +76 -83
- compute_api_client/api/languages_api.py +30 -42
- compute_api_client/api/members_api.py +62 -67
- compute_api_client/api/permissions_api.py +56 -70
- compute_api_client/api/projects_api.py +89 -97
- compute_api_client/api/reservations_api.py +57 -72
- compute_api_client/api/results_api.py +76 -83
- compute_api_client/api/teams_api.py +30 -42
- compute_api_client/api/transactions_api.py +31 -44
- compute_api_client/api/users_api.py +62 -67
- compute_api_client/api_client.py +135 -75
- compute_api_client/api_response.py +3 -3
- compute_api_client/configuration.py +176 -36
- compute_api_client/docs/Algorithm.md +8 -7
- compute_api_client/docs/AlgorithmIn.md +7 -6
- compute_api_client/docs/AlgorithmType.md +5 -3
- compute_api_client/docs/AlgorithmsApi.md +15 -10
- compute_api_client/docs/AuthConfig.md +3 -2
- compute_api_client/docs/AuthConfigApi.md +3 -2
- compute_api_client/docs/Backend.md +9 -8
- compute_api_client/docs/BackendApi.md +15 -10
- compute_api_client/docs/BackendIn.md +8 -7
- compute_api_client/docs/BackendPatch.md +5 -4
- compute_api_client/docs/BackendStatus.md +9 -3
- compute_api_client/docs/BackendType.md +20 -19
- compute_api_client/docs/BackendTypePatch.md +3 -2
- compute_api_client/docs/BackendTypesApi.md +15 -8
- compute_api_client/docs/BackendWithAuthentication.md +10 -9
- compute_api_client/docs/BatchJob.md +10 -9
- compute_api_client/docs/BatchJobIn.md +4 -3
- compute_api_client/docs/BatchJobStatus.md +11 -3
- compute_api_client/docs/BatchJobsApi.md +23 -16
- compute_api_client/docs/Commit.md +8 -7
- compute_api_client/docs/CommitIn.md +5 -4
- compute_api_client/docs/CommitsApi.md +15 -10
- compute_api_client/docs/CompilePayload.md +4 -3
- compute_api_client/docs/CompileStage.md +11 -3
- compute_api_client/docs/Domain.md +7 -3
- compute_api_client/docs/File.md +10 -9
- compute_api_client/docs/FileIn.md +9 -8
- compute_api_client/docs/FilesApi.md +12 -8
- compute_api_client/docs/FinalResult.md +7 -6
- compute_api_client/docs/FinalResultIn.md +5 -4
- compute_api_client/docs/FinalResultsApi.md +9 -6
- compute_api_client/docs/HTTPBadRequestError.md +3 -2
- compute_api_client/docs/HTTPNotFoundError.md +3 -2
- compute_api_client/docs/HTTPValidationError.md +3 -2
- compute_api_client/docs/HealthApi.md +3 -2
- compute_api_client/docs/Job.md +13 -12
- compute_api_client/docs/Job1.md +28 -0
- compute_api_client/docs/JobIn.md +6 -5
- compute_api_client/docs/JobPatch.md +8 -7
- compute_api_client/docs/JobStatus.md +11 -3
- compute_api_client/docs/JobsApi.md +15 -10
- compute_api_client/docs/Language.md +6 -5
- compute_api_client/docs/LanguagesApi.md +6 -4
- compute_api_client/docs/Member.md +8 -7
- compute_api_client/docs/MemberId.md +28 -0
- compute_api_client/docs/MemberIn.md +7 -6
- compute_api_client/docs/MembersApi.md +12 -8
- compute_api_client/docs/PageAlgorithm.md +3 -2
- compute_api_client/docs/PageBackend.md +3 -2
- compute_api_client/docs/PageBackendType.md +3 -2
- compute_api_client/docs/PageBatchJob.md +3 -2
- compute_api_client/docs/PageCommit.md +3 -2
- compute_api_client/docs/PageFile.md +3 -2
- compute_api_client/docs/PageJob.md +3 -2
- compute_api_client/docs/PageLanguage.md +3 -2
- compute_api_client/docs/PageMember.md +3 -2
- compute_api_client/docs/PagePermission.md +3 -2
- compute_api_client/docs/PagePermissionGroup.md +3 -2
- compute_api_client/docs/PageProject.md +3 -2
- compute_api_client/docs/PageReservation.md +3 -2
- compute_api_client/docs/PageResult.md +3 -2
- compute_api_client/docs/PageTeam.md +3 -2
- compute_api_client/docs/PageTransaction.md +3 -2
- compute_api_client/docs/PageUser.md +3 -2
- compute_api_client/docs/Permission.md +6 -5
- compute_api_client/docs/PermissionGroup.md +5 -4
- compute_api_client/docs/PermissionsApi.md +12 -8
- compute_api_client/docs/Project.md +9 -8
- compute_api_client/docs/ProjectIn.md +7 -6
- compute_api_client/docs/ProjectPatch.md +3 -2
- compute_api_client/docs/ProjectsApi.md +23 -13
- compute_api_client/docs/Reservation.md +9 -8
- compute_api_client/docs/ReservationIn.md +7 -6
- compute_api_client/docs/ReservationsApi.md +12 -8
- compute_api_client/docs/Result.md +7 -6
- compute_api_client/docs/ResultIn.md +5 -4
- compute_api_client/docs/ResultsApi.md +15 -10
- compute_api_client/docs/Role.md +5 -3
- compute_api_client/docs/ShareType.md +7 -3
- compute_api_client/docs/Team.md +7 -6
- compute_api_client/docs/TeamsApi.md +6 -4
- compute_api_client/docs/Transaction.md +6 -5
- compute_api_client/docs/TransactionDomain.md +28 -0
- compute_api_client/docs/TransactionsApi.md +6 -4
- compute_api_client/docs/User.md +11 -10
- compute_api_client/docs/UserIn.md +10 -9
- compute_api_client/docs/UsersApi.md +12 -8
- compute_api_client/docs/ValidationError.md +4 -3
- compute_api_client/docs/ValidationErrorLocInner.md +28 -0
- compute_api_client/exceptions.py +74 -24
- compute_api_client/models/__init__.py +1 -1
- compute_api_client/models/algorithm.py +19 -20
- compute_api_client/models/algorithm_in.py +18 -19
- compute_api_client/models/algorithm_type.py +1 -9
- compute_api_client/models/auth_config.py +14 -14
- compute_api_client/models/backend.py +20 -20
- compute_api_client/models/backend_in.py +19 -19
- compute_api_client/models/backend_patch.py +16 -15
- compute_api_client/models/backend_status.py +1 -9
- compute_api_client/models/backend_type.py +31 -32
- compute_api_client/models/backend_type_patch.py +14 -15
- compute_api_client/models/backend_with_authentication.py +21 -21
- compute_api_client/models/batch_job.py +21 -20
- compute_api_client/models/batch_job_in.py +15 -15
- compute_api_client/models/batch_job_status.py +1 -9
- compute_api_client/models/commit.py +19 -19
- compute_api_client/models/commit_in.py +16 -16
- compute_api_client/models/compile_payload.py +15 -15
- compute_api_client/models/compile_stage.py +1 -9
- compute_api_client/models/domain.py +1 -9
- compute_api_client/models/file.py +21 -22
- compute_api_client/models/file_in.py +20 -21
- compute_api_client/models/final_result.py +18 -17
- compute_api_client/models/final_result_in.py +16 -16
- compute_api_client/models/http_bad_request_error.py +14 -14
- compute_api_client/models/http_not_found_error.py +14 -14
- compute_api_client/models/http_validation_error.py +18 -18
- compute_api_client/models/job.py +24 -24
- compute_api_client/models/job1.py +144 -0
- compute_api_client/models/job_in.py +17 -17
- compute_api_client/models/job_patch.py +19 -20
- compute_api_client/models/job_status.py +1 -9
- compute_api_client/models/language.py +17 -18
- compute_api_client/models/member.py +19 -19
- compute_api_client/models/member_id.py +144 -0
- compute_api_client/models/member_in.py +18 -18
- compute_api_client/models/page_algorithm.py +18 -19
- compute_api_client/models/page_backend.py +18 -19
- compute_api_client/models/page_backend_type.py +18 -19
- compute_api_client/models/page_batch_job.py +18 -19
- compute_api_client/models/page_commit.py +18 -19
- compute_api_client/models/page_file.py +18 -19
- compute_api_client/models/page_job.py +18 -19
- compute_api_client/models/page_language.py +18 -19
- compute_api_client/models/page_member.py +18 -19
- compute_api_client/models/page_permission.py +18 -19
- compute_api_client/models/page_permission_group.py +18 -19
- compute_api_client/models/page_project.py +18 -19
- compute_api_client/models/page_reservation.py +18 -19
- compute_api_client/models/page_result.py +18 -19
- compute_api_client/models/page_team.py +18 -19
- compute_api_client/models/page_transaction.py +18 -19
- compute_api_client/models/page_user.py +18 -19
- compute_api_client/models/permission.py +17 -18
- compute_api_client/models/permission_group.py +16 -17
- compute_api_client/models/project.py +20 -20
- compute_api_client/models/project_in.py +18 -19
- compute_api_client/models/project_patch.py +14 -15
- compute_api_client/models/reservation.py +20 -19
- compute_api_client/models/reservation_in.py +18 -17
- compute_api_client/models/result.py +18 -17
- compute_api_client/models/result_in.py +16 -16
- compute_api_client/models/role.py +1 -9
- compute_api_client/models/share_type.py +1 -9
- compute_api_client/models/team.py +18 -19
- compute_api_client/models/transaction.py +17 -17
- compute_api_client/models/transaction_domain.py +142 -0
- compute_api_client/models/user.py +22 -23
- compute_api_client/models/user_in.py +21 -22
- compute_api_client/models/validation_error.py +20 -20
- compute_api_client/models/validation_error_loc_inner.py +138 -0
- compute_api_client/rest.py +51 -26
- {qi_compute_api_client-0.53.0.dist-info → qi_compute_api_client-0.54.0.dist-info}/METADATA +12 -9
- qi_compute_api_client-0.54.0.dist-info/RECORD +205 -0
- qi_compute_api_client-0.53.0.dist-info/RECORD +0 -197
- {qi_compute_api_client-0.53.0.dist-info → qi_compute_api_client-0.54.0.dist-info}/WHEEL +0 -0
- {qi_compute_api_client-0.53.0.dist-info → qi_compute_api_client-0.54.0.dist-info}/licenses/LICENSE.md +0 -0
|
@@ -11,30 +11,20 @@
|
|
|
11
11
|
Do not edit the class manually.
|
|
12
12
|
""" # noqa: E501
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
import io
|
|
16
14
|
import warnings
|
|
17
|
-
|
|
18
15
|
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
19
|
-
from typing import Dict, List, Optional, Tuple, Union
|
|
20
|
-
|
|
21
|
-
try:
|
|
22
|
-
from typing import Annotated
|
|
23
|
-
except ImportError:
|
|
24
|
-
from typing_extensions import Annotated
|
|
25
|
-
|
|
26
|
-
from pydantic import Field
|
|
16
|
+
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
27
17
|
from typing_extensions import Annotated
|
|
28
|
-
from pydantic import StrictBool, StrictInt, StrictStr
|
|
29
18
|
|
|
19
|
+
from pydantic import Field, StrictBool, StrictInt, StrictStr
|
|
30
20
|
from typing import Optional
|
|
31
|
-
|
|
21
|
+
from typing_extensions import Annotated
|
|
32
22
|
from compute_api_client.models.member import Member
|
|
33
23
|
from compute_api_client.models.member_in import MemberIn
|
|
34
24
|
from compute_api_client.models.page_member import PageMember
|
|
35
25
|
from compute_api_client.models.role import Role
|
|
36
26
|
|
|
37
|
-
from compute_api_client.api_client import ApiClient
|
|
27
|
+
from compute_api_client.api_client import ApiClient, RequestSerialized
|
|
38
28
|
from compute_api_client.api_response import ApiResponse
|
|
39
29
|
from compute_api_client.rest import RESTResponseType
|
|
40
30
|
|
|
@@ -107,8 +97,7 @@ class MembersApi:
|
|
|
107
97
|
|
|
108
98
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
109
99
|
'201': "Member",
|
|
110
|
-
'422': "HTTPValidationError"
|
|
111
|
-
|
|
100
|
+
'422': "HTTPValidationError",
|
|
112
101
|
}
|
|
113
102
|
response_data = await self.api_client.call_api(
|
|
114
103
|
*_param,
|
|
@@ -176,8 +165,7 @@ class MembersApi:
|
|
|
176
165
|
|
|
177
166
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
178
167
|
'201': "Member",
|
|
179
|
-
'422': "HTTPValidationError"
|
|
180
|
-
|
|
168
|
+
'422': "HTTPValidationError",
|
|
181
169
|
}
|
|
182
170
|
response_data = await self.api_client.call_api(
|
|
183
171
|
*_param,
|
|
@@ -245,8 +233,7 @@ class MembersApi:
|
|
|
245
233
|
|
|
246
234
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
247
235
|
'201': "Member",
|
|
248
|
-
'422': "HTTPValidationError"
|
|
249
|
-
|
|
236
|
+
'422': "HTTPValidationError",
|
|
250
237
|
}
|
|
251
238
|
response_data = await self.api_client.call_api(
|
|
252
239
|
*_param,
|
|
@@ -262,19 +249,20 @@ class MembersApi:
|
|
|
262
249
|
_content_type,
|
|
263
250
|
_headers,
|
|
264
251
|
_host_index,
|
|
265
|
-
) ->
|
|
252
|
+
) -> RequestSerialized:
|
|
266
253
|
|
|
267
254
|
_host = None
|
|
268
255
|
|
|
269
256
|
_collection_formats: Dict[str, str] = {
|
|
270
|
-
|
|
271
257
|
}
|
|
272
258
|
|
|
273
259
|
_path_params: Dict[str, str] = {}
|
|
274
260
|
_query_params: List[Tuple[str, str]] = []
|
|
275
261
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
276
262
|
_form_params: List[Tuple[str, str]] = []
|
|
277
|
-
_files: Dict[
|
|
263
|
+
_files: Dict[
|
|
264
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
265
|
+
] = {}
|
|
278
266
|
_body_params: Optional[bytes] = None
|
|
279
267
|
|
|
280
268
|
# process the path parameters
|
|
@@ -287,11 +275,12 @@ class MembersApi:
|
|
|
287
275
|
|
|
288
276
|
|
|
289
277
|
# set the HTTP header `Accept`
|
|
290
|
-
|
|
291
|
-
[
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
278
|
+
if 'Accept' not in _header_params:
|
|
279
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
280
|
+
[
|
|
281
|
+
'application/json'
|
|
282
|
+
]
|
|
283
|
+
)
|
|
295
284
|
|
|
296
285
|
# set the HTTP header `Content-Type`
|
|
297
286
|
if _content_type:
|
|
@@ -384,7 +373,9 @@ class MembersApi:
|
|
|
384
373
|
)
|
|
385
374
|
|
|
386
375
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
387
|
-
|
|
376
|
+
'204': None,
|
|
377
|
+
'404': "HTTPNotFoundError",
|
|
378
|
+
'422': "HTTPValidationError",
|
|
388
379
|
}
|
|
389
380
|
response_data = await self.api_client.call_api(
|
|
390
381
|
*_param,
|
|
@@ -451,7 +442,9 @@ class MembersApi:
|
|
|
451
442
|
)
|
|
452
443
|
|
|
453
444
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
454
|
-
|
|
445
|
+
'204': None,
|
|
446
|
+
'404': "HTTPNotFoundError",
|
|
447
|
+
'422': "HTTPValidationError",
|
|
455
448
|
}
|
|
456
449
|
response_data = await self.api_client.call_api(
|
|
457
450
|
*_param,
|
|
@@ -518,7 +511,9 @@ class MembersApi:
|
|
|
518
511
|
)
|
|
519
512
|
|
|
520
513
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
521
|
-
|
|
514
|
+
'204': None,
|
|
515
|
+
'404': "HTTPNotFoundError",
|
|
516
|
+
'422': "HTTPValidationError",
|
|
522
517
|
}
|
|
523
518
|
response_data = await self.api_client.call_api(
|
|
524
519
|
*_param,
|
|
@@ -534,19 +529,20 @@ class MembersApi:
|
|
|
534
529
|
_content_type,
|
|
535
530
|
_headers,
|
|
536
531
|
_host_index,
|
|
537
|
-
) ->
|
|
532
|
+
) -> RequestSerialized:
|
|
538
533
|
|
|
539
534
|
_host = None
|
|
540
535
|
|
|
541
536
|
_collection_formats: Dict[str, str] = {
|
|
542
|
-
|
|
543
537
|
}
|
|
544
538
|
|
|
545
539
|
_path_params: Dict[str, str] = {}
|
|
546
540
|
_query_params: List[Tuple[str, str]] = []
|
|
547
541
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
548
542
|
_form_params: List[Tuple[str, str]] = []
|
|
549
|
-
_files: Dict[
|
|
543
|
+
_files: Dict[
|
|
544
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
545
|
+
] = {}
|
|
550
546
|
_body_params: Optional[bytes] = None
|
|
551
547
|
|
|
552
548
|
# process the path parameters
|
|
@@ -559,11 +555,12 @@ class MembersApi:
|
|
|
559
555
|
|
|
560
556
|
|
|
561
557
|
# set the HTTP header `Accept`
|
|
562
|
-
|
|
563
|
-
[
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
558
|
+
if 'Accept' not in _header_params:
|
|
559
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
560
|
+
[
|
|
561
|
+
'application/json'
|
|
562
|
+
]
|
|
563
|
+
)
|
|
567
564
|
|
|
568
565
|
|
|
569
566
|
# authentication setting
|
|
@@ -645,8 +642,7 @@ class MembersApi:
|
|
|
645
642
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
646
643
|
'200': "Member",
|
|
647
644
|
'404': "HTTPNotFoundError",
|
|
648
|
-
'422': "HTTPValidationError"
|
|
649
|
-
|
|
645
|
+
'422': "HTTPValidationError",
|
|
650
646
|
}
|
|
651
647
|
response_data = await self.api_client.call_api(
|
|
652
648
|
*_param,
|
|
@@ -715,8 +711,7 @@ class MembersApi:
|
|
|
715
711
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
716
712
|
'200': "Member",
|
|
717
713
|
'404': "HTTPNotFoundError",
|
|
718
|
-
'422': "HTTPValidationError"
|
|
719
|
-
|
|
714
|
+
'422': "HTTPValidationError",
|
|
720
715
|
}
|
|
721
716
|
response_data = await self.api_client.call_api(
|
|
722
717
|
*_param,
|
|
@@ -785,8 +780,7 @@ class MembersApi:
|
|
|
785
780
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
786
781
|
'200': "Member",
|
|
787
782
|
'404': "HTTPNotFoundError",
|
|
788
|
-
'422': "HTTPValidationError"
|
|
789
|
-
|
|
783
|
+
'422': "HTTPValidationError",
|
|
790
784
|
}
|
|
791
785
|
response_data = await self.api_client.call_api(
|
|
792
786
|
*_param,
|
|
@@ -802,19 +796,20 @@ class MembersApi:
|
|
|
802
796
|
_content_type,
|
|
803
797
|
_headers,
|
|
804
798
|
_host_index,
|
|
805
|
-
) ->
|
|
799
|
+
) -> RequestSerialized:
|
|
806
800
|
|
|
807
801
|
_host = None
|
|
808
802
|
|
|
809
803
|
_collection_formats: Dict[str, str] = {
|
|
810
|
-
|
|
811
804
|
}
|
|
812
805
|
|
|
813
806
|
_path_params: Dict[str, str] = {}
|
|
814
807
|
_query_params: List[Tuple[str, str]] = []
|
|
815
808
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
816
809
|
_form_params: List[Tuple[str, str]] = []
|
|
817
|
-
_files: Dict[
|
|
810
|
+
_files: Dict[
|
|
811
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
812
|
+
] = {}
|
|
818
813
|
_body_params: Optional[bytes] = None
|
|
819
814
|
|
|
820
815
|
# process the path parameters
|
|
@@ -827,11 +822,12 @@ class MembersApi:
|
|
|
827
822
|
|
|
828
823
|
|
|
829
824
|
# set the HTTP header `Accept`
|
|
830
|
-
|
|
831
|
-
[
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
825
|
+
if 'Accept' not in _header_params:
|
|
826
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
827
|
+
[
|
|
828
|
+
'application/json'
|
|
829
|
+
]
|
|
830
|
+
)
|
|
835
831
|
|
|
836
832
|
|
|
837
833
|
# authentication setting
|
|
@@ -940,8 +936,7 @@ class MembersApi:
|
|
|
940
936
|
|
|
941
937
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
942
938
|
'200': "PageMember",
|
|
943
|
-
'422': "HTTPValidationError"
|
|
944
|
-
|
|
939
|
+
'422': "HTTPValidationError",
|
|
945
940
|
}
|
|
946
941
|
response_data = await self.api_client.call_api(
|
|
947
942
|
*_param,
|
|
@@ -1037,8 +1032,7 @@ class MembersApi:
|
|
|
1037
1032
|
|
|
1038
1033
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1039
1034
|
'200': "PageMember",
|
|
1040
|
-
'422': "HTTPValidationError"
|
|
1041
|
-
|
|
1035
|
+
'422': "HTTPValidationError",
|
|
1042
1036
|
}
|
|
1043
1037
|
response_data = await self.api_client.call_api(
|
|
1044
1038
|
*_param,
|
|
@@ -1134,8 +1128,7 @@ class MembersApi:
|
|
|
1134
1128
|
|
|
1135
1129
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1136
1130
|
'200': "PageMember",
|
|
1137
|
-
'422': "HTTPValidationError"
|
|
1138
|
-
|
|
1131
|
+
'422': "HTTPValidationError",
|
|
1139
1132
|
}
|
|
1140
1133
|
response_data = await self.api_client.call_api(
|
|
1141
1134
|
*_param,
|
|
@@ -1158,19 +1151,20 @@ class MembersApi:
|
|
|
1158
1151
|
_content_type,
|
|
1159
1152
|
_headers,
|
|
1160
1153
|
_host_index,
|
|
1161
|
-
) ->
|
|
1154
|
+
) -> RequestSerialized:
|
|
1162
1155
|
|
|
1163
1156
|
_host = None
|
|
1164
1157
|
|
|
1165
1158
|
_collection_formats: Dict[str, str] = {
|
|
1166
|
-
|
|
1167
1159
|
}
|
|
1168
1160
|
|
|
1169
1161
|
_path_params: Dict[str, str] = {}
|
|
1170
1162
|
_query_params: List[Tuple[str, str]] = []
|
|
1171
1163
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1172
1164
|
_form_params: List[Tuple[str, str]] = []
|
|
1173
|
-
_files: Dict[
|
|
1165
|
+
_files: Dict[
|
|
1166
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1167
|
+
] = {}
|
|
1174
1168
|
_body_params: Optional[bytes] = None
|
|
1175
1169
|
|
|
1176
1170
|
# process the path parameters
|
|
@@ -1213,11 +1207,12 @@ class MembersApi:
|
|
|
1213
1207
|
|
|
1214
1208
|
|
|
1215
1209
|
# set the HTTP header `Accept`
|
|
1216
|
-
|
|
1217
|
-
[
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1210
|
+
if 'Accept' not in _header_params:
|
|
1211
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1212
|
+
[
|
|
1213
|
+
'application/json'
|
|
1214
|
+
]
|
|
1215
|
+
)
|
|
1221
1216
|
|
|
1222
1217
|
|
|
1223
1218
|
# authentication setting
|
|
@@ -11,30 +11,20 @@
|
|
|
11
11
|
Do not edit the class manually.
|
|
12
12
|
""" # noqa: E501
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
import io
|
|
16
14
|
import warnings
|
|
17
|
-
|
|
18
15
|
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
19
|
-
from typing import Dict, List, Optional, Tuple, Union
|
|
20
|
-
|
|
21
|
-
try:
|
|
22
|
-
from typing import Annotated
|
|
23
|
-
except ImportError:
|
|
24
|
-
from typing_extensions import Annotated
|
|
25
|
-
|
|
26
|
-
from pydantic import Field
|
|
16
|
+
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
27
17
|
from typing_extensions import Annotated
|
|
28
|
-
from pydantic import StrictBool, StrictInt, StrictStr
|
|
29
18
|
|
|
19
|
+
from pydantic import Field, StrictBool, StrictInt, StrictStr
|
|
30
20
|
from typing import Optional
|
|
31
|
-
|
|
21
|
+
from typing_extensions import Annotated
|
|
32
22
|
from compute_api_client.models.page_permission import PagePermission
|
|
33
23
|
from compute_api_client.models.page_permission_group import PagePermissionGroup
|
|
34
24
|
from compute_api_client.models.permission import Permission
|
|
35
25
|
from compute_api_client.models.permission_group import PermissionGroup
|
|
36
26
|
|
|
37
|
-
from compute_api_client.api_client import ApiClient
|
|
27
|
+
from compute_api_client.api_client import ApiClient, RequestSerialized
|
|
38
28
|
from compute_api_client.api_response import ApiResponse
|
|
39
29
|
from compute_api_client.rest import RESTResponseType
|
|
40
30
|
|
|
@@ -108,8 +98,7 @@ class PermissionsApi:
|
|
|
108
98
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
109
99
|
'200': "PermissionGroup",
|
|
110
100
|
'404': "HTTPNotFoundError",
|
|
111
|
-
'422': "HTTPValidationError"
|
|
112
|
-
|
|
101
|
+
'422': "HTTPValidationError",
|
|
113
102
|
}
|
|
114
103
|
response_data = await self.api_client.call_api(
|
|
115
104
|
*_param,
|
|
@@ -178,8 +167,7 @@ class PermissionsApi:
|
|
|
178
167
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
179
168
|
'200': "PermissionGroup",
|
|
180
169
|
'404': "HTTPNotFoundError",
|
|
181
|
-
'422': "HTTPValidationError"
|
|
182
|
-
|
|
170
|
+
'422': "HTTPValidationError",
|
|
183
171
|
}
|
|
184
172
|
response_data = await self.api_client.call_api(
|
|
185
173
|
*_param,
|
|
@@ -248,8 +236,7 @@ class PermissionsApi:
|
|
|
248
236
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
249
237
|
'200': "PermissionGroup",
|
|
250
238
|
'404': "HTTPNotFoundError",
|
|
251
|
-
'422': "HTTPValidationError"
|
|
252
|
-
|
|
239
|
+
'422': "HTTPValidationError",
|
|
253
240
|
}
|
|
254
241
|
response_data = await self.api_client.call_api(
|
|
255
242
|
*_param,
|
|
@@ -265,19 +252,20 @@ class PermissionsApi:
|
|
|
265
252
|
_content_type,
|
|
266
253
|
_headers,
|
|
267
254
|
_host_index,
|
|
268
|
-
) ->
|
|
255
|
+
) -> RequestSerialized:
|
|
269
256
|
|
|
270
257
|
_host = None
|
|
271
258
|
|
|
272
259
|
_collection_formats: Dict[str, str] = {
|
|
273
|
-
|
|
274
260
|
}
|
|
275
261
|
|
|
276
262
|
_path_params: Dict[str, str] = {}
|
|
277
263
|
_query_params: List[Tuple[str, str]] = []
|
|
278
264
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
279
265
|
_form_params: List[Tuple[str, str]] = []
|
|
280
|
-
_files: Dict[
|
|
266
|
+
_files: Dict[
|
|
267
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
268
|
+
] = {}
|
|
281
269
|
_body_params: Optional[bytes] = None
|
|
282
270
|
|
|
283
271
|
# process the path parameters
|
|
@@ -290,11 +278,12 @@ class PermissionsApi:
|
|
|
290
278
|
|
|
291
279
|
|
|
292
280
|
# set the HTTP header `Accept`
|
|
293
|
-
|
|
294
|
-
[
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
281
|
+
if 'Accept' not in _header_params:
|
|
282
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
283
|
+
[
|
|
284
|
+
'application/json'
|
|
285
|
+
]
|
|
286
|
+
)
|
|
298
287
|
|
|
299
288
|
|
|
300
289
|
# authentication setting
|
|
@@ -395,8 +384,7 @@ class PermissionsApi:
|
|
|
395
384
|
|
|
396
385
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
397
386
|
'200': "PagePermissionGroup",
|
|
398
|
-
'422': "HTTPValidationError"
|
|
399
|
-
|
|
387
|
+
'422': "HTTPValidationError",
|
|
400
388
|
}
|
|
401
389
|
response_data = await self.api_client.call_api(
|
|
402
390
|
*_param,
|
|
@@ -484,8 +472,7 @@ class PermissionsApi:
|
|
|
484
472
|
|
|
485
473
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
486
474
|
'200': "PagePermissionGroup",
|
|
487
|
-
'422': "HTTPValidationError"
|
|
488
|
-
|
|
475
|
+
'422': "HTTPValidationError",
|
|
489
476
|
}
|
|
490
477
|
response_data = await self.api_client.call_api(
|
|
491
478
|
*_param,
|
|
@@ -573,8 +560,7 @@ class PermissionsApi:
|
|
|
573
560
|
|
|
574
561
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
575
562
|
'200': "PagePermissionGroup",
|
|
576
|
-
'422': "HTTPValidationError"
|
|
577
|
-
|
|
563
|
+
'422': "HTTPValidationError",
|
|
578
564
|
}
|
|
579
565
|
response_data = await self.api_client.call_api(
|
|
580
566
|
*_param,
|
|
@@ -595,19 +581,20 @@ class PermissionsApi:
|
|
|
595
581
|
_content_type,
|
|
596
582
|
_headers,
|
|
597
583
|
_host_index,
|
|
598
|
-
) ->
|
|
584
|
+
) -> RequestSerialized:
|
|
599
585
|
|
|
600
586
|
_host = None
|
|
601
587
|
|
|
602
588
|
_collection_formats: Dict[str, str] = {
|
|
603
|
-
|
|
604
589
|
}
|
|
605
590
|
|
|
606
591
|
_path_params: Dict[str, str] = {}
|
|
607
592
|
_query_params: List[Tuple[str, str]] = []
|
|
608
593
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
609
594
|
_form_params: List[Tuple[str, str]] = []
|
|
610
|
-
_files: Dict[
|
|
595
|
+
_files: Dict[
|
|
596
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
597
|
+
] = {}
|
|
611
598
|
_body_params: Optional[bytes] = None
|
|
612
599
|
|
|
613
600
|
# process the path parameters
|
|
@@ -642,11 +629,12 @@ class PermissionsApi:
|
|
|
642
629
|
|
|
643
630
|
|
|
644
631
|
# set the HTTP header `Accept`
|
|
645
|
-
|
|
646
|
-
[
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
632
|
+
if 'Accept' not in _header_params:
|
|
633
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
634
|
+
[
|
|
635
|
+
'application/json'
|
|
636
|
+
]
|
|
637
|
+
)
|
|
650
638
|
|
|
651
639
|
|
|
652
640
|
# authentication setting
|
|
@@ -728,8 +716,7 @@ class PermissionsApi:
|
|
|
728
716
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
729
717
|
'200': "Permission",
|
|
730
718
|
'404': "HTTPNotFoundError",
|
|
731
|
-
'422': "HTTPValidationError"
|
|
732
|
-
|
|
719
|
+
'422': "HTTPValidationError",
|
|
733
720
|
}
|
|
734
721
|
response_data = await self.api_client.call_api(
|
|
735
722
|
*_param,
|
|
@@ -798,8 +785,7 @@ class PermissionsApi:
|
|
|
798
785
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
799
786
|
'200': "Permission",
|
|
800
787
|
'404': "HTTPNotFoundError",
|
|
801
|
-
'422': "HTTPValidationError"
|
|
802
|
-
|
|
788
|
+
'422': "HTTPValidationError",
|
|
803
789
|
}
|
|
804
790
|
response_data = await self.api_client.call_api(
|
|
805
791
|
*_param,
|
|
@@ -868,8 +854,7 @@ class PermissionsApi:
|
|
|
868
854
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
869
855
|
'200': "Permission",
|
|
870
856
|
'404': "HTTPNotFoundError",
|
|
871
|
-
'422': "HTTPValidationError"
|
|
872
|
-
|
|
857
|
+
'422': "HTTPValidationError",
|
|
873
858
|
}
|
|
874
859
|
response_data = await self.api_client.call_api(
|
|
875
860
|
*_param,
|
|
@@ -885,19 +870,20 @@ class PermissionsApi:
|
|
|
885
870
|
_content_type,
|
|
886
871
|
_headers,
|
|
887
872
|
_host_index,
|
|
888
|
-
) ->
|
|
873
|
+
) -> RequestSerialized:
|
|
889
874
|
|
|
890
875
|
_host = None
|
|
891
876
|
|
|
892
877
|
_collection_formats: Dict[str, str] = {
|
|
893
|
-
|
|
894
878
|
}
|
|
895
879
|
|
|
896
880
|
_path_params: Dict[str, str] = {}
|
|
897
881
|
_query_params: List[Tuple[str, str]] = []
|
|
898
882
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
899
883
|
_form_params: List[Tuple[str, str]] = []
|
|
900
|
-
_files: Dict[
|
|
884
|
+
_files: Dict[
|
|
885
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
886
|
+
] = {}
|
|
901
887
|
_body_params: Optional[bytes] = None
|
|
902
888
|
|
|
903
889
|
# process the path parameters
|
|
@@ -910,11 +896,12 @@ class PermissionsApi:
|
|
|
910
896
|
|
|
911
897
|
|
|
912
898
|
# set the HTTP header `Accept`
|
|
913
|
-
|
|
914
|
-
[
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
899
|
+
if 'Accept' not in _header_params:
|
|
900
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
901
|
+
[
|
|
902
|
+
'application/json'
|
|
903
|
+
]
|
|
904
|
+
)
|
|
918
905
|
|
|
919
906
|
|
|
920
907
|
# authentication setting
|
|
@@ -1019,8 +1006,7 @@ class PermissionsApi:
|
|
|
1019
1006
|
|
|
1020
1007
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1021
1008
|
'200': "PagePermission",
|
|
1022
|
-
'422': "HTTPValidationError"
|
|
1023
|
-
|
|
1009
|
+
'422': "HTTPValidationError",
|
|
1024
1010
|
}
|
|
1025
1011
|
response_data = await self.api_client.call_api(
|
|
1026
1012
|
*_param,
|
|
@@ -1112,8 +1098,7 @@ class PermissionsApi:
|
|
|
1112
1098
|
|
|
1113
1099
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1114
1100
|
'200': "PagePermission",
|
|
1115
|
-
'422': "HTTPValidationError"
|
|
1116
|
-
|
|
1101
|
+
'422': "HTTPValidationError",
|
|
1117
1102
|
}
|
|
1118
1103
|
response_data = await self.api_client.call_api(
|
|
1119
1104
|
*_param,
|
|
@@ -1205,8 +1190,7 @@ class PermissionsApi:
|
|
|
1205
1190
|
|
|
1206
1191
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1207
1192
|
'200': "PagePermission",
|
|
1208
|
-
'422': "HTTPValidationError"
|
|
1209
|
-
|
|
1193
|
+
'422': "HTTPValidationError",
|
|
1210
1194
|
}
|
|
1211
1195
|
response_data = await self.api_client.call_api(
|
|
1212
1196
|
*_param,
|
|
@@ -1228,19 +1212,20 @@ class PermissionsApi:
|
|
|
1228
1212
|
_content_type,
|
|
1229
1213
|
_headers,
|
|
1230
1214
|
_host_index,
|
|
1231
|
-
) ->
|
|
1215
|
+
) -> RequestSerialized:
|
|
1232
1216
|
|
|
1233
1217
|
_host = None
|
|
1234
1218
|
|
|
1235
1219
|
_collection_formats: Dict[str, str] = {
|
|
1236
|
-
|
|
1237
1220
|
}
|
|
1238
1221
|
|
|
1239
1222
|
_path_params: Dict[str, str] = {}
|
|
1240
1223
|
_query_params: List[Tuple[str, str]] = []
|
|
1241
1224
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1242
1225
|
_form_params: List[Tuple[str, str]] = []
|
|
1243
|
-
_files: Dict[
|
|
1226
|
+
_files: Dict[
|
|
1227
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1228
|
+
] = {}
|
|
1244
1229
|
_body_params: Optional[bytes] = None
|
|
1245
1230
|
|
|
1246
1231
|
# process the path parameters
|
|
@@ -1279,11 +1264,12 @@ class PermissionsApi:
|
|
|
1279
1264
|
|
|
1280
1265
|
|
|
1281
1266
|
# set the HTTP header `Accept`
|
|
1282
|
-
|
|
1283
|
-
[
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1267
|
+
if 'Accept' not in _header_params:
|
|
1268
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1269
|
+
[
|
|
1270
|
+
'application/json'
|
|
1271
|
+
]
|
|
1272
|
+
)
|
|
1287
1273
|
|
|
1288
1274
|
|
|
1289
1275
|
# authentication setting
|