Skip to content

Commit fa2c853

Browse files
committed
[QI2-1756] Added job_execution_time_limit to backend_type
1 parent 3fa5f81 commit fa2c853

38 files changed

+333
-303
lines changed

compute_api_client/api/algorithms_api.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -868,8 +868,8 @@ async def read_algorithms_algorithms_get(
868868
name: Optional[StrictStr] = None,
869869
sort_by: Annotated[Optional[StrictStr], Field(description="The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'.")] = None,
870870
latest: Annotated[Optional[StrictBool], Field(description="If True gets the most recently created object.")] = None,
871-
page: Optional[Annotated[int, Field(strict=True, ge=1)]] = None,
872-
size: Optional[Annotated[int, Field(le=100, strict=True, ge=1)]] = None,
871+
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Page number")] = None,
872+
size: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="Page size")] = None,
873873
_request_timeout: Union[
874874
None,
875875
Annotated[StrictFloat, Field(gt=0)],
@@ -907,9 +907,9 @@ async def read_algorithms_algorithms_get(
907907
:type sort_by: str
908908
:param latest: If True gets the most recently created object.
909909
:type latest: bool
910-
:param page:
910+
:param page: Page number
911911
:type page: int
912-
:param size:
912+
:param size: Page size
913913
:type size: int
914914
:param _request_timeout: timeout setting for this request. If one
915915
number provided, it will be total request
@@ -980,8 +980,8 @@ async def read_algorithms_algorithms_get_with_http_info(
980980
name: Optional[StrictStr] = None,
981981
sort_by: Annotated[Optional[StrictStr], Field(description="The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'.")] = None,
982982
latest: Annotated[Optional[StrictBool], Field(description="If True gets the most recently created object.")] = None,
983-
page: Optional[Annotated[int, Field(strict=True, ge=1)]] = None,
984-
size: Optional[Annotated[int, Field(le=100, strict=True, ge=1)]] = None,
983+
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Page number")] = None,
984+
size: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="Page size")] = None,
985985
_request_timeout: Union[
986986
None,
987987
Annotated[StrictFloat, Field(gt=0)],
@@ -1019,9 +1019,9 @@ async def read_algorithms_algorithms_get_with_http_info(
10191019
:type sort_by: str
10201020
:param latest: If True gets the most recently created object.
10211021
:type latest: bool
1022-
:param page:
1022+
:param page: Page number
10231023
:type page: int
1024-
:param size:
1024+
:param size: Page size
10251025
:type size: int
10261026
:param _request_timeout: timeout setting for this request. If one
10271027
number provided, it will be total request
@@ -1092,8 +1092,8 @@ async def read_algorithms_algorithms_get_without_preload_content(
10921092
name: Optional[StrictStr] = None,
10931093
sort_by: Annotated[Optional[StrictStr], Field(description="The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'.")] = None,
10941094
latest: Annotated[Optional[StrictBool], Field(description="If True gets the most recently created object.")] = None,
1095-
page: Optional[Annotated[int, Field(strict=True, ge=1)]] = None,
1096-
size: Optional[Annotated[int, Field(le=100, strict=True, ge=1)]] = None,
1095+
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Page number")] = None,
1096+
size: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="Page size")] = None,
10971097
_request_timeout: Union[
10981098
None,
10991099
Annotated[StrictFloat, Field(gt=0)],
@@ -1131,9 +1131,9 @@ async def read_algorithms_algorithms_get_without_preload_content(
11311131
:type sort_by: str
11321132
:param latest: If True gets the most recently created object.
11331133
:type latest: bool
1134-
:param page:
1134+
:param page: Page number
11351135
:type page: int
1136-
:param size:
1136+
:param size: Page size
11371137
:type size: int
11381138
:param _request_timeout: timeout setting for this request. If one
11391139
number provided, it will be total request

compute_api_client/api/backend_api.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -846,8 +846,8 @@ async def read_backends_backends_get(
846846
last_heartbeat: Optional[datetime] = None,
847847
sort_by: Annotated[Optional[StrictStr], Field(description="The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'.")] = None,
848848
latest: Annotated[Optional[StrictBool], Field(description="If True gets the most recently created object.")] = None,
849-
page: Optional[Annotated[int, Field(strict=True, ge=1)]] = None,
850-
size: Optional[Annotated[int, Field(le=100, strict=True, ge=1)]] = None,
849+
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Page number")] = None,
850+
size: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="Page size")] = None,
851851
_request_timeout: Union[
852852
None,
853853
Annotated[StrictFloat, Field(gt=0)],
@@ -881,9 +881,9 @@ async def read_backends_backends_get(
881881
:type sort_by: str
882882
:param latest: If True gets the most recently created object.
883883
:type latest: bool
884-
:param page:
884+
:param page: Page number
885885
:type page: int
886-
:param size:
886+
:param size: Page size
887887
:type size: int
888888
:param _request_timeout: timeout setting for this request. If one
889889
number provided, it will be total request
@@ -950,8 +950,8 @@ async def read_backends_backends_get_with_http_info(
950950
last_heartbeat: Optional[datetime] = None,
951951
sort_by: Annotated[Optional[StrictStr], Field(description="The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'.")] = None,
952952
latest: Annotated[Optional[StrictBool], Field(description="If True gets the most recently created object.")] = None,
953-
page: Optional[Annotated[int, Field(strict=True, ge=1)]] = None,
954-
size: Optional[Annotated[int, Field(le=100, strict=True, ge=1)]] = None,
953+
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Page number")] = None,
954+
size: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="Page size")] = None,
955955
_request_timeout: Union[
956956
None,
957957
Annotated[StrictFloat, Field(gt=0)],
@@ -985,9 +985,9 @@ async def read_backends_backends_get_with_http_info(
985985
:type sort_by: str
986986
:param latest: If True gets the most recently created object.
987987
:type latest: bool
988-
:param page:
988+
:param page: Page number
989989
:type page: int
990-
:param size:
990+
:param size: Page size
991991
:type size: int
992992
:param _request_timeout: timeout setting for this request. If one
993993
number provided, it will be total request
@@ -1054,8 +1054,8 @@ async def read_backends_backends_get_without_preload_content(
10541054
last_heartbeat: Optional[datetime] = None,
10551055
sort_by: Annotated[Optional[StrictStr], Field(description="The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'.")] = None,
10561056
latest: Annotated[Optional[StrictBool], Field(description="If True gets the most recently created object.")] = None,
1057-
page: Optional[Annotated[int, Field(strict=True, ge=1)]] = None,
1058-
size: Optional[Annotated[int, Field(le=100, strict=True, ge=1)]] = None,
1057+
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Page number")] = None,
1058+
size: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="Page size")] = None,
10591059
_request_timeout: Union[
10601060
None,
10611061
Annotated[StrictFloat, Field(gt=0)],
@@ -1089,9 +1089,9 @@ async def read_backends_backends_get_without_preload_content(
10891089
:type sort_by: str
10901090
:param latest: If True gets the most recently created object.
10911091
:type latest: bool
1092-
:param page:
1092+
:param page: Page number
10931093
:type page: int
1094-
:param size:
1094+
:param size: Page size
10951095
:type size: int
10961096
:param _request_timeout: timeout setting for this request. If one
10971097
number provided, it will be total request

compute_api_client/api/backend_types_api.py

Lines changed: 31 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
from typing import Any, Dict, List, Optional, Tuple, Union
1717
from typing_extensions import Annotated
1818

19-
from pydantic import Field, StrictBool, StrictInt, StrictStr
20-
from typing import Optional
19+
from pydantic import Field, StrictBool, StrictFloat, StrictInt, StrictStr
20+
from typing import Optional, Union
2121
from typing_extensions import Annotated
2222
from compute_api_client.models.backend_status import BackendStatus
2323
from compute_api_client.models.backend_type import BackendType
@@ -328,10 +328,11 @@ async def read_backend_types_backend_types_get(
328328
identifier: Optional[StrictStr] = None,
329329
protocol_version__isnull: Optional[StrictBool] = None,
330330
protocol_version: Optional[StrictInt] = None,
331+
job_execution_time_limit: Optional[Union[StrictFloat, StrictInt]] = None,
331332
sort_by: Annotated[Optional[StrictStr], Field(description="The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'.")] = None,
332333
latest: Annotated[Optional[StrictBool], Field(description="If True gets the most recently created object.")] = None,
333-
page: Optional[Annotated[int, Field(strict=True, ge=1)]] = None,
334-
size: Optional[Annotated[int, Field(le=100, strict=True, ge=1)]] = None,
334+
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Page number")] = None,
335+
size: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="Page size")] = None,
335336
_request_timeout: Union[
336337
None,
337338
Annotated[StrictFloat, Field(gt=0)],
@@ -379,13 +380,15 @@ async def read_backend_types_backend_types_get(
379380
:type protocol_version__isnull: bool
380381
:param protocol_version:
381382
:type protocol_version: int
383+
:param job_execution_time_limit:
384+
:type job_execution_time_limit: float
382385
:param sort_by: The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'.
383386
:type sort_by: str
384387
:param latest: If True gets the most recently created object.
385388
:type latest: bool
386-
:param page:
389+
:param page: Page number
387390
:type page: int
388-
:param size:
391+
:param size: Page size
389392
:type size: int
390393
:param _request_timeout: timeout setting for this request. If one
391394
number provided, it will be total request
@@ -425,6 +428,7 @@ async def read_backend_types_backend_types_get(
425428
identifier=identifier,
426429
protocol_version__isnull=protocol_version__isnull,
427430
protocol_version=protocol_version,
431+
job_execution_time_limit=job_execution_time_limit,
428432
sort_by=sort_by,
429433
latest=latest,
430434
page=page,
@@ -468,10 +472,11 @@ async def read_backend_types_backend_types_get_with_http_info(
468472
identifier: Optional[StrictStr] = None,
469473
protocol_version__isnull: Optional[StrictBool] = None,
470474
protocol_version: Optional[StrictInt] = None,
475+
job_execution_time_limit: Optional[Union[StrictFloat, StrictInt]] = None,
471476
sort_by: Annotated[Optional[StrictStr], Field(description="The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'.")] = None,
472477
latest: Annotated[Optional[StrictBool], Field(description="If True gets the most recently created object.")] = None,
473-
page: Optional[Annotated[int, Field(strict=True, ge=1)]] = None,
474-
size: Optional[Annotated[int, Field(le=100, strict=True, ge=1)]] = None,
478+
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Page number")] = None,
479+
size: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="Page size")] = None,
475480
_request_timeout: Union[
476481
None,
477482
Annotated[StrictFloat, Field(gt=0)],
@@ -519,13 +524,15 @@ async def read_backend_types_backend_types_get_with_http_info(
519524
:type protocol_version__isnull: bool
520525
:param protocol_version:
521526
:type protocol_version: int
527+
:param job_execution_time_limit:
528+
:type job_execution_time_limit: float
522529
:param sort_by: The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'.
523530
:type sort_by: str
524531
:param latest: If True gets the most recently created object.
525532
:type latest: bool
526-
:param page:
533+
:param page: Page number
527534
:type page: int
528-
:param size:
535+
:param size: Page size
529536
:type size: int
530537
:param _request_timeout: timeout setting for this request. If one
531538
number provided, it will be total request
@@ -565,6 +572,7 @@ async def read_backend_types_backend_types_get_with_http_info(
565572
identifier=identifier,
566573
protocol_version__isnull=protocol_version__isnull,
567574
protocol_version=protocol_version,
575+
job_execution_time_limit=job_execution_time_limit,
568576
sort_by=sort_by,
569577
latest=latest,
570578
page=page,
@@ -608,10 +616,11 @@ async def read_backend_types_backend_types_get_without_preload_content(
608616
identifier: Optional[StrictStr] = None,
609617
protocol_version__isnull: Optional[StrictBool] = None,
610618
protocol_version: Optional[StrictInt] = None,
619+
job_execution_time_limit: Optional[Union[StrictFloat, StrictInt]] = None,
611620
sort_by: Annotated[Optional[StrictStr], Field(description="The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'.")] = None,
612621
latest: Annotated[Optional[StrictBool], Field(description="If True gets the most recently created object.")] = None,
613-
page: Optional[Annotated[int, Field(strict=True, ge=1)]] = None,
614-
size: Optional[Annotated[int, Field(le=100, strict=True, ge=1)]] = None,
622+
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Page number")] = None,
623+
size: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="Page size")] = None,
615624
_request_timeout: Union[
616625
None,
617626
Annotated[StrictFloat, Field(gt=0)],
@@ -659,13 +668,15 @@ async def read_backend_types_backend_types_get_without_preload_content(
659668
:type protocol_version__isnull: bool
660669
:param protocol_version:
661670
:type protocol_version: int
671+
:param job_execution_time_limit:
672+
:type job_execution_time_limit: float
662673
:param sort_by: The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'.
663674
:type sort_by: str
664675
:param latest: If True gets the most recently created object.
665676
:type latest: bool
666-
:param page:
677+
:param page: Page number
667678
:type page: int
668-
:param size:
679+
:param size: Page size
669680
:type size: int
670681
:param _request_timeout: timeout setting for this request. If one
671682
number provided, it will be total request
@@ -705,6 +716,7 @@ async def read_backend_types_backend_types_get_without_preload_content(
705716
identifier=identifier,
706717
protocol_version__isnull=protocol_version__isnull,
707718
protocol_version=protocol_version,
719+
job_execution_time_limit=job_execution_time_limit,
708720
sort_by=sort_by,
709721
latest=latest,
710722
page=page,
@@ -743,6 +755,7 @@ def _read_backend_types_backend_types_get_serialize(
743755
identifier,
744756
protocol_version__isnull,
745757
protocol_version,
758+
job_execution_time_limit,
746759
sort_by,
747760
latest,
748761
page,
@@ -829,6 +842,10 @@ def _read_backend_types_backend_types_get_serialize(
829842

830843
_query_params.append(('protocol_version', protocol_version))
831844

845+
if job_execution_time_limit is not None:
846+
847+
_query_params.append(('job_execution_time_limit', job_execution_time_limit))
848+
832849
if sort_by is not None:
833850

834851
_query_params.append(('sort_by', sort_by))

0 commit comments

Comments
 (0)