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,26 +11,15 @@
|
|
|
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 datetime import datetime
|
|
29
|
-
|
|
30
|
-
from pydantic import StrictBool, StrictInt, StrictStr
|
|
31
18
|
|
|
19
|
+
from datetime import datetime
|
|
20
|
+
from pydantic import Field, StrictBool, StrictInt, StrictStr
|
|
32
21
|
from typing import Optional
|
|
33
|
-
|
|
22
|
+
from typing_extensions import Annotated
|
|
34
23
|
from compute_api_client.models.algorithm_type import AlgorithmType
|
|
35
24
|
from compute_api_client.models.job import Job
|
|
36
25
|
from compute_api_client.models.job_in import JobIn
|
|
@@ -38,7 +27,7 @@ from compute_api_client.models.job_patch import JobPatch
|
|
|
38
27
|
from compute_api_client.models.job_status import JobStatus
|
|
39
28
|
from compute_api_client.models.page_job import PageJob
|
|
40
29
|
|
|
41
|
-
from compute_api_client.api_client import ApiClient
|
|
30
|
+
from compute_api_client.api_client import ApiClient, RequestSerialized
|
|
42
31
|
from compute_api_client.api_response import ApiResponse
|
|
43
32
|
from compute_api_client.rest import RESTResponseType
|
|
44
33
|
|
|
@@ -111,8 +100,7 @@ class JobsApi:
|
|
|
111
100
|
|
|
112
101
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
113
102
|
'201': "Job",
|
|
114
|
-
'422': "HTTPValidationError"
|
|
115
|
-
|
|
103
|
+
'422': "HTTPValidationError",
|
|
116
104
|
}
|
|
117
105
|
response_data = await self.api_client.call_api(
|
|
118
106
|
*_param,
|
|
@@ -180,8 +168,7 @@ class JobsApi:
|
|
|
180
168
|
|
|
181
169
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
182
170
|
'201': "Job",
|
|
183
|
-
'422': "HTTPValidationError"
|
|
184
|
-
|
|
171
|
+
'422': "HTTPValidationError",
|
|
185
172
|
}
|
|
186
173
|
response_data = await self.api_client.call_api(
|
|
187
174
|
*_param,
|
|
@@ -249,8 +236,7 @@ class JobsApi:
|
|
|
249
236
|
|
|
250
237
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
251
238
|
'201': "Job",
|
|
252
|
-
'422': "HTTPValidationError"
|
|
253
|
-
|
|
239
|
+
'422': "HTTPValidationError",
|
|
254
240
|
}
|
|
255
241
|
response_data = await self.api_client.call_api(
|
|
256
242
|
*_param,
|
|
@@ -266,19 +252,20 @@ class JobsApi:
|
|
|
266
252
|
_content_type,
|
|
267
253
|
_headers,
|
|
268
254
|
_host_index,
|
|
269
|
-
) ->
|
|
255
|
+
) -> RequestSerialized:
|
|
270
256
|
|
|
271
257
|
_host = None
|
|
272
258
|
|
|
273
259
|
_collection_formats: Dict[str, str] = {
|
|
274
|
-
|
|
275
260
|
}
|
|
276
261
|
|
|
277
262
|
_path_params: Dict[str, str] = {}
|
|
278
263
|
_query_params: List[Tuple[str, str]] = []
|
|
279
264
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
280
265
|
_form_params: List[Tuple[str, str]] = []
|
|
281
|
-
_files: Dict[
|
|
266
|
+
_files: Dict[
|
|
267
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
268
|
+
] = {}
|
|
282
269
|
_body_params: Optional[bytes] = None
|
|
283
270
|
|
|
284
271
|
# process the path parameters
|
|
@@ -291,11 +278,12 @@ class JobsApi:
|
|
|
291
278
|
|
|
292
279
|
|
|
293
280
|
# set the HTTP header `Accept`
|
|
294
|
-
|
|
295
|
-
[
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
281
|
+
if 'Accept' not in _header_params:
|
|
282
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
283
|
+
[
|
|
284
|
+
'application/json'
|
|
285
|
+
]
|
|
286
|
+
)
|
|
299
287
|
|
|
300
288
|
# set the HTTP header `Content-Type`
|
|
301
289
|
if _content_type:
|
|
@@ -388,7 +376,9 @@ class JobsApi:
|
|
|
388
376
|
)
|
|
389
377
|
|
|
390
378
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
391
|
-
|
|
379
|
+
'204': None,
|
|
380
|
+
'404': "HTTPNotFoundError",
|
|
381
|
+
'422': "HTTPValidationError",
|
|
392
382
|
}
|
|
393
383
|
response_data = await self.api_client.call_api(
|
|
394
384
|
*_param,
|
|
@@ -455,7 +445,9 @@ class JobsApi:
|
|
|
455
445
|
)
|
|
456
446
|
|
|
457
447
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
458
|
-
|
|
448
|
+
'204': None,
|
|
449
|
+
'404': "HTTPNotFoundError",
|
|
450
|
+
'422': "HTTPValidationError",
|
|
459
451
|
}
|
|
460
452
|
response_data = await self.api_client.call_api(
|
|
461
453
|
*_param,
|
|
@@ -522,7 +514,9 @@ class JobsApi:
|
|
|
522
514
|
)
|
|
523
515
|
|
|
524
516
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
525
|
-
|
|
517
|
+
'204': None,
|
|
518
|
+
'404': "HTTPNotFoundError",
|
|
519
|
+
'422': "HTTPValidationError",
|
|
526
520
|
}
|
|
527
521
|
response_data = await self.api_client.call_api(
|
|
528
522
|
*_param,
|
|
@@ -538,19 +532,20 @@ class JobsApi:
|
|
|
538
532
|
_content_type,
|
|
539
533
|
_headers,
|
|
540
534
|
_host_index,
|
|
541
|
-
) ->
|
|
535
|
+
) -> RequestSerialized:
|
|
542
536
|
|
|
543
537
|
_host = None
|
|
544
538
|
|
|
545
539
|
_collection_formats: Dict[str, str] = {
|
|
546
|
-
|
|
547
540
|
}
|
|
548
541
|
|
|
549
542
|
_path_params: Dict[str, str] = {}
|
|
550
543
|
_query_params: List[Tuple[str, str]] = []
|
|
551
544
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
552
545
|
_form_params: List[Tuple[str, str]] = []
|
|
553
|
-
_files: Dict[
|
|
546
|
+
_files: Dict[
|
|
547
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
548
|
+
] = {}
|
|
554
549
|
_body_params: Optional[bytes] = None
|
|
555
550
|
|
|
556
551
|
# process the path parameters
|
|
@@ -563,11 +558,12 @@ class JobsApi:
|
|
|
563
558
|
|
|
564
559
|
|
|
565
560
|
# set the HTTP header `Accept`
|
|
566
|
-
|
|
567
|
-
[
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
561
|
+
if 'Accept' not in _header_params:
|
|
562
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
563
|
+
[
|
|
564
|
+
'application/json'
|
|
565
|
+
]
|
|
566
|
+
)
|
|
571
567
|
|
|
572
568
|
|
|
573
569
|
# authentication setting
|
|
@@ -649,8 +645,7 @@ class JobsApi:
|
|
|
649
645
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
650
646
|
'200': "Job",
|
|
651
647
|
'404': "HTTPNotFoundError",
|
|
652
|
-
'422': "HTTPValidationError"
|
|
653
|
-
|
|
648
|
+
'422': "HTTPValidationError",
|
|
654
649
|
}
|
|
655
650
|
response_data = await self.api_client.call_api(
|
|
656
651
|
*_param,
|
|
@@ -719,8 +714,7 @@ class JobsApi:
|
|
|
719
714
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
720
715
|
'200': "Job",
|
|
721
716
|
'404': "HTTPNotFoundError",
|
|
722
|
-
'422': "HTTPValidationError"
|
|
723
|
-
|
|
717
|
+
'422': "HTTPValidationError",
|
|
724
718
|
}
|
|
725
719
|
response_data = await self.api_client.call_api(
|
|
726
720
|
*_param,
|
|
@@ -789,8 +783,7 @@ class JobsApi:
|
|
|
789
783
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
790
784
|
'200': "Job",
|
|
791
785
|
'404': "HTTPNotFoundError",
|
|
792
|
-
'422': "HTTPValidationError"
|
|
793
|
-
|
|
786
|
+
'422': "HTTPValidationError",
|
|
794
787
|
}
|
|
795
788
|
response_data = await self.api_client.call_api(
|
|
796
789
|
*_param,
|
|
@@ -806,19 +799,20 @@ class JobsApi:
|
|
|
806
799
|
_content_type,
|
|
807
800
|
_headers,
|
|
808
801
|
_host_index,
|
|
809
|
-
) ->
|
|
802
|
+
) -> RequestSerialized:
|
|
810
803
|
|
|
811
804
|
_host = None
|
|
812
805
|
|
|
813
806
|
_collection_formats: Dict[str, str] = {
|
|
814
|
-
|
|
815
807
|
}
|
|
816
808
|
|
|
817
809
|
_path_params: Dict[str, str] = {}
|
|
818
810
|
_query_params: List[Tuple[str, str]] = []
|
|
819
811
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
820
812
|
_form_params: List[Tuple[str, str]] = []
|
|
821
|
-
_files: Dict[
|
|
813
|
+
_files: Dict[
|
|
814
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
815
|
+
] = {}
|
|
822
816
|
_body_params: Optional[bytes] = None
|
|
823
817
|
|
|
824
818
|
# process the path parameters
|
|
@@ -831,11 +825,12 @@ class JobsApi:
|
|
|
831
825
|
|
|
832
826
|
|
|
833
827
|
# set the HTTP header `Accept`
|
|
834
|
-
|
|
835
|
-
[
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
828
|
+
if 'Accept' not in _header_params:
|
|
829
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
830
|
+
[
|
|
831
|
+
'application/json'
|
|
832
|
+
]
|
|
833
|
+
)
|
|
839
834
|
|
|
840
835
|
|
|
841
836
|
# authentication setting
|
|
@@ -997,8 +992,7 @@ class JobsApi:
|
|
|
997
992
|
|
|
998
993
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
999
994
|
'200': "PageJob",
|
|
1000
|
-
'422': "HTTPValidationError"
|
|
1001
|
-
|
|
995
|
+
'422': "HTTPValidationError",
|
|
1002
996
|
}
|
|
1003
997
|
response_data = await self.api_client.call_api(
|
|
1004
998
|
*_param,
|
|
@@ -1146,8 +1140,7 @@ class JobsApi:
|
|
|
1146
1140
|
|
|
1147
1141
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1148
1142
|
'200': "PageJob",
|
|
1149
|
-
'422': "HTTPValidationError"
|
|
1150
|
-
|
|
1143
|
+
'422': "HTTPValidationError",
|
|
1151
1144
|
}
|
|
1152
1145
|
response_data = await self.api_client.call_api(
|
|
1153
1146
|
*_param,
|
|
@@ -1295,8 +1288,7 @@ class JobsApi:
|
|
|
1295
1288
|
|
|
1296
1289
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1297
1290
|
'200': "PageJob",
|
|
1298
|
-
'422': "HTTPValidationError"
|
|
1299
|
-
|
|
1291
|
+
'422': "HTTPValidationError",
|
|
1300
1292
|
}
|
|
1301
1293
|
response_data = await self.api_client.call_api(
|
|
1302
1294
|
*_param,
|
|
@@ -1332,19 +1324,20 @@ class JobsApi:
|
|
|
1332
1324
|
_content_type,
|
|
1333
1325
|
_headers,
|
|
1334
1326
|
_host_index,
|
|
1335
|
-
) ->
|
|
1327
|
+
) -> RequestSerialized:
|
|
1336
1328
|
|
|
1337
1329
|
_host = None
|
|
1338
1330
|
|
|
1339
1331
|
_collection_formats: Dict[str, str] = {
|
|
1340
|
-
|
|
1341
1332
|
}
|
|
1342
1333
|
|
|
1343
1334
|
_path_params: Dict[str, str] = {}
|
|
1344
1335
|
_query_params: List[Tuple[str, str]] = []
|
|
1345
1336
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1346
1337
|
_form_params: List[Tuple[str, str]] = []
|
|
1347
|
-
_files: Dict[
|
|
1338
|
+
_files: Dict[
|
|
1339
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1340
|
+
] = {}
|
|
1348
1341
|
_body_params: Optional[bytes] = None
|
|
1349
1342
|
|
|
1350
1343
|
# process the path parameters
|
|
@@ -1466,11 +1459,12 @@ class JobsApi:
|
|
|
1466
1459
|
|
|
1467
1460
|
|
|
1468
1461
|
# set the HTTP header `Accept`
|
|
1469
|
-
|
|
1470
|
-
[
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1462
|
+
if 'Accept' not in _header_params:
|
|
1463
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1464
|
+
[
|
|
1465
|
+
'application/json'
|
|
1466
|
+
]
|
|
1467
|
+
)
|
|
1474
1468
|
|
|
1475
1469
|
|
|
1476
1470
|
# authentication setting
|
|
@@ -1557,8 +1551,7 @@ class JobsApi:
|
|
|
1557
1551
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1558
1552
|
'200': "Job",
|
|
1559
1553
|
'404': "HTTPNotFoundError",
|
|
1560
|
-
'422': "HTTPValidationError"
|
|
1561
|
-
|
|
1554
|
+
'422': "HTTPValidationError",
|
|
1562
1555
|
}
|
|
1563
1556
|
response_data = await self.api_client.call_api(
|
|
1564
1557
|
*_param,
|
|
@@ -1631,8 +1624,7 @@ class JobsApi:
|
|
|
1631
1624
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1632
1625
|
'200': "Job",
|
|
1633
1626
|
'404': "HTTPNotFoundError",
|
|
1634
|
-
'422': "HTTPValidationError"
|
|
1635
|
-
|
|
1627
|
+
'422': "HTTPValidationError",
|
|
1636
1628
|
}
|
|
1637
1629
|
response_data = await self.api_client.call_api(
|
|
1638
1630
|
*_param,
|
|
@@ -1705,8 +1697,7 @@ class JobsApi:
|
|
|
1705
1697
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1706
1698
|
'200': "Job",
|
|
1707
1699
|
'404': "HTTPNotFoundError",
|
|
1708
|
-
'422': "HTTPValidationError"
|
|
1709
|
-
|
|
1700
|
+
'422': "HTTPValidationError",
|
|
1710
1701
|
}
|
|
1711
1702
|
response_data = await self.api_client.call_api(
|
|
1712
1703
|
*_param,
|
|
@@ -1723,19 +1714,20 @@ class JobsApi:
|
|
|
1723
1714
|
_content_type,
|
|
1724
1715
|
_headers,
|
|
1725
1716
|
_host_index,
|
|
1726
|
-
) ->
|
|
1717
|
+
) -> RequestSerialized:
|
|
1727
1718
|
|
|
1728
1719
|
_host = None
|
|
1729
1720
|
|
|
1730
1721
|
_collection_formats: Dict[str, str] = {
|
|
1731
|
-
|
|
1732
1722
|
}
|
|
1733
1723
|
|
|
1734
1724
|
_path_params: Dict[str, str] = {}
|
|
1735
1725
|
_query_params: List[Tuple[str, str]] = []
|
|
1736
1726
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1737
1727
|
_form_params: List[Tuple[str, str]] = []
|
|
1738
|
-
_files: Dict[
|
|
1728
|
+
_files: Dict[
|
|
1729
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1730
|
+
] = {}
|
|
1739
1731
|
_body_params: Optional[bytes] = None
|
|
1740
1732
|
|
|
1741
1733
|
# process the path parameters
|
|
@@ -1750,11 +1742,12 @@ class JobsApi:
|
|
|
1750
1742
|
|
|
1751
1743
|
|
|
1752
1744
|
# set the HTTP header `Accept`
|
|
1753
|
-
|
|
1754
|
-
[
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1745
|
+
if 'Accept' not in _header_params:
|
|
1746
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1747
|
+
[
|
|
1748
|
+
'application/json'
|
|
1749
|
+
]
|
|
1750
|
+
)
|
|
1758
1751
|
|
|
1759
1752
|
# set the HTTP header `Content-Type`
|
|
1760
1753
|
if _content_type:
|
|
@@ -11,28 +11,18 @@
|
|
|
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.language import Language
|
|
33
23
|
from compute_api_client.models.page_language import PageLanguage
|
|
34
24
|
|
|
35
|
-
from compute_api_client.api_client import ApiClient
|
|
25
|
+
from compute_api_client.api_client import ApiClient, RequestSerialized
|
|
36
26
|
from compute_api_client.api_response import ApiResponse
|
|
37
27
|
from compute_api_client.rest import RESTResponseType
|
|
38
28
|
|
|
@@ -106,8 +96,7 @@ class LanguagesApi:
|
|
|
106
96
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
107
97
|
'200': "Language",
|
|
108
98
|
'404': "HTTPNotFoundError",
|
|
109
|
-
'422': "HTTPValidationError"
|
|
110
|
-
|
|
99
|
+
'422': "HTTPValidationError",
|
|
111
100
|
}
|
|
112
101
|
response_data = await self.api_client.call_api(
|
|
113
102
|
*_param,
|
|
@@ -176,8 +165,7 @@ class LanguagesApi:
|
|
|
176
165
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
177
166
|
'200': "Language",
|
|
178
167
|
'404': "HTTPNotFoundError",
|
|
179
|
-
'422': "HTTPValidationError"
|
|
180
|
-
|
|
168
|
+
'422': "HTTPValidationError",
|
|
181
169
|
}
|
|
182
170
|
response_data = await self.api_client.call_api(
|
|
183
171
|
*_param,
|
|
@@ -246,8 +234,7 @@ class LanguagesApi:
|
|
|
246
234
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
247
235
|
'200': "Language",
|
|
248
236
|
'404': "HTTPNotFoundError",
|
|
249
|
-
'422': "HTTPValidationError"
|
|
250
|
-
|
|
237
|
+
'422': "HTTPValidationError",
|
|
251
238
|
}
|
|
252
239
|
response_data = await self.api_client.call_api(
|
|
253
240
|
*_param,
|
|
@@ -263,19 +250,20 @@ class LanguagesApi:
|
|
|
263
250
|
_content_type,
|
|
264
251
|
_headers,
|
|
265
252
|
_host_index,
|
|
266
|
-
) ->
|
|
253
|
+
) -> RequestSerialized:
|
|
267
254
|
|
|
268
255
|
_host = None
|
|
269
256
|
|
|
270
257
|
_collection_formats: Dict[str, str] = {
|
|
271
|
-
|
|
272
258
|
}
|
|
273
259
|
|
|
274
260
|
_path_params: Dict[str, str] = {}
|
|
275
261
|
_query_params: List[Tuple[str, str]] = []
|
|
276
262
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
277
263
|
_form_params: List[Tuple[str, str]] = []
|
|
278
|
-
_files: Dict[
|
|
264
|
+
_files: Dict[
|
|
265
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
266
|
+
] = {}
|
|
279
267
|
_body_params: Optional[bytes] = None
|
|
280
268
|
|
|
281
269
|
# process the path parameters
|
|
@@ -288,11 +276,12 @@ class LanguagesApi:
|
|
|
288
276
|
|
|
289
277
|
|
|
290
278
|
# set the HTTP header `Accept`
|
|
291
|
-
|
|
292
|
-
[
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
279
|
+
if 'Accept' not in _header_params:
|
|
280
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
281
|
+
[
|
|
282
|
+
'application/json'
|
|
283
|
+
]
|
|
284
|
+
)
|
|
296
285
|
|
|
297
286
|
|
|
298
287
|
# authentication setting
|
|
@@ -401,8 +390,7 @@ class LanguagesApi:
|
|
|
401
390
|
|
|
402
391
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
403
392
|
'200': "PageLanguage",
|
|
404
|
-
'422': "HTTPValidationError"
|
|
405
|
-
|
|
393
|
+
'422': "HTTPValidationError",
|
|
406
394
|
}
|
|
407
395
|
response_data = await self.api_client.call_api(
|
|
408
396
|
*_param,
|
|
@@ -498,8 +486,7 @@ class LanguagesApi:
|
|
|
498
486
|
|
|
499
487
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
500
488
|
'200': "PageLanguage",
|
|
501
|
-
'422': "HTTPValidationError"
|
|
502
|
-
|
|
489
|
+
'422': "HTTPValidationError",
|
|
503
490
|
}
|
|
504
491
|
response_data = await self.api_client.call_api(
|
|
505
492
|
*_param,
|
|
@@ -595,8 +582,7 @@ class LanguagesApi:
|
|
|
595
582
|
|
|
596
583
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
597
584
|
'200': "PageLanguage",
|
|
598
|
-
'422': "HTTPValidationError"
|
|
599
|
-
|
|
585
|
+
'422': "HTTPValidationError",
|
|
600
586
|
}
|
|
601
587
|
response_data = await self.api_client.call_api(
|
|
602
588
|
*_param,
|
|
@@ -619,19 +605,20 @@ class LanguagesApi:
|
|
|
619
605
|
_content_type,
|
|
620
606
|
_headers,
|
|
621
607
|
_host_index,
|
|
622
|
-
) ->
|
|
608
|
+
) -> RequestSerialized:
|
|
623
609
|
|
|
624
610
|
_host = None
|
|
625
611
|
|
|
626
612
|
_collection_formats: Dict[str, str] = {
|
|
627
|
-
|
|
628
613
|
}
|
|
629
614
|
|
|
630
615
|
_path_params: Dict[str, str] = {}
|
|
631
616
|
_query_params: List[Tuple[str, str]] = []
|
|
632
617
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
633
618
|
_form_params: List[Tuple[str, str]] = []
|
|
634
|
-
_files: Dict[
|
|
619
|
+
_files: Dict[
|
|
620
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
621
|
+
] = {}
|
|
635
622
|
_body_params: Optional[bytes] = None
|
|
636
623
|
|
|
637
624
|
# process the path parameters
|
|
@@ -674,11 +661,12 @@ class LanguagesApi:
|
|
|
674
661
|
|
|
675
662
|
|
|
676
663
|
# set the HTTP header `Accept`
|
|
677
|
-
|
|
678
|
-
[
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
664
|
+
if 'Accept' not in _header_params:
|
|
665
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
666
|
+
[
|
|
667
|
+
'application/json'
|
|
668
|
+
]
|
|
669
|
+
)
|
|
682
670
|
|
|
683
671
|
|
|
684
672
|
# authentication setting
|