|
16 | 16 | from typing import Any, Dict, List, Optional, Tuple, Union |
17 | 17 | from typing_extensions import Annotated |
18 | 18 |
|
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 |
21 | 21 | from typing_extensions import Annotated |
22 | 22 | from compute_api_client.models.backend_status import BackendStatus |
23 | 23 | from compute_api_client.models.backend_type import BackendType |
@@ -328,10 +328,11 @@ async def read_backend_types_backend_types_get( |
328 | 328 | identifier: Optional[StrictStr] = None, |
329 | 329 | protocol_version__isnull: Optional[StrictBool] = None, |
330 | 330 | protocol_version: Optional[StrictInt] = None, |
| 331 | + job_execution_time_limit: Optional[Union[StrictFloat, StrictInt]] = None, |
331 | 332 | sort_by: Annotated[Optional[StrictStr], Field(description="The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'.")] = None, |
332 | 333 | 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, |
335 | 336 | _request_timeout: Union[ |
336 | 337 | None, |
337 | 338 | Annotated[StrictFloat, Field(gt=0)], |
@@ -379,13 +380,15 @@ async def read_backend_types_backend_types_get( |
379 | 380 | :type protocol_version__isnull: bool |
380 | 381 | :param protocol_version: |
381 | 382 | :type protocol_version: int |
| 383 | + :param job_execution_time_limit: |
| 384 | + :type job_execution_time_limit: float |
382 | 385 | :param sort_by: The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'. |
383 | 386 | :type sort_by: str |
384 | 387 | :param latest: If True gets the most recently created object. |
385 | 388 | :type latest: bool |
386 | | - :param page: |
| 389 | + :param page: Page number |
387 | 390 | :type page: int |
388 | | - :param size: |
| 391 | + :param size: Page size |
389 | 392 | :type size: int |
390 | 393 | :param _request_timeout: timeout setting for this request. If one |
391 | 394 | number provided, it will be total request |
@@ -425,6 +428,7 @@ async def read_backend_types_backend_types_get( |
425 | 428 | identifier=identifier, |
426 | 429 | protocol_version__isnull=protocol_version__isnull, |
427 | 430 | protocol_version=protocol_version, |
| 431 | + job_execution_time_limit=job_execution_time_limit, |
428 | 432 | sort_by=sort_by, |
429 | 433 | latest=latest, |
430 | 434 | page=page, |
@@ -468,10 +472,11 @@ async def read_backend_types_backend_types_get_with_http_info( |
468 | 472 | identifier: Optional[StrictStr] = None, |
469 | 473 | protocol_version__isnull: Optional[StrictBool] = None, |
470 | 474 | protocol_version: Optional[StrictInt] = None, |
| 475 | + job_execution_time_limit: Optional[Union[StrictFloat, StrictInt]] = None, |
471 | 476 | sort_by: Annotated[Optional[StrictStr], Field(description="The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'.")] = None, |
472 | 477 | 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, |
475 | 480 | _request_timeout: Union[ |
476 | 481 | None, |
477 | 482 | Annotated[StrictFloat, Field(gt=0)], |
@@ -519,13 +524,15 @@ async def read_backend_types_backend_types_get_with_http_info( |
519 | 524 | :type protocol_version__isnull: bool |
520 | 525 | :param protocol_version: |
521 | 526 | :type protocol_version: int |
| 527 | + :param job_execution_time_limit: |
| 528 | + :type job_execution_time_limit: float |
522 | 529 | :param sort_by: The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'. |
523 | 530 | :type sort_by: str |
524 | 531 | :param latest: If True gets the most recently created object. |
525 | 532 | :type latest: bool |
526 | | - :param page: |
| 533 | + :param page: Page number |
527 | 534 | :type page: int |
528 | | - :param size: |
| 535 | + :param size: Page size |
529 | 536 | :type size: int |
530 | 537 | :param _request_timeout: timeout setting for this request. If one |
531 | 538 | number provided, it will be total request |
@@ -565,6 +572,7 @@ async def read_backend_types_backend_types_get_with_http_info( |
565 | 572 | identifier=identifier, |
566 | 573 | protocol_version__isnull=protocol_version__isnull, |
567 | 574 | protocol_version=protocol_version, |
| 575 | + job_execution_time_limit=job_execution_time_limit, |
568 | 576 | sort_by=sort_by, |
569 | 577 | latest=latest, |
570 | 578 | page=page, |
@@ -608,10 +616,11 @@ async def read_backend_types_backend_types_get_without_preload_content( |
608 | 616 | identifier: Optional[StrictStr] = None, |
609 | 617 | protocol_version__isnull: Optional[StrictBool] = None, |
610 | 618 | protocol_version: Optional[StrictInt] = None, |
| 619 | + job_execution_time_limit: Optional[Union[StrictFloat, StrictInt]] = None, |
611 | 620 | sort_by: Annotated[Optional[StrictStr], Field(description="The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'.")] = None, |
612 | 621 | 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, |
615 | 624 | _request_timeout: Union[ |
616 | 625 | None, |
617 | 626 | Annotated[StrictFloat, Field(gt=0)], |
@@ -659,13 +668,15 @@ async def read_backend_types_backend_types_get_without_preload_content( |
659 | 668 | :type protocol_version__isnull: bool |
660 | 669 | :param protocol_version: |
661 | 670 | :type protocol_version: int |
| 671 | + :param job_execution_time_limit: |
| 672 | + :type job_execution_time_limit: float |
662 | 673 | :param sort_by: The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'. |
663 | 674 | :type sort_by: str |
664 | 675 | :param latest: If True gets the most recently created object. |
665 | 676 | :type latest: bool |
666 | | - :param page: |
| 677 | + :param page: Page number |
667 | 678 | :type page: int |
668 | | - :param size: |
| 679 | + :param size: Page size |
669 | 680 | :type size: int |
670 | 681 | :param _request_timeout: timeout setting for this request. If one |
671 | 682 | number provided, it will be total request |
@@ -705,6 +716,7 @@ async def read_backend_types_backend_types_get_without_preload_content( |
705 | 716 | identifier=identifier, |
706 | 717 | protocol_version__isnull=protocol_version__isnull, |
707 | 718 | protocol_version=protocol_version, |
| 719 | + job_execution_time_limit=job_execution_time_limit, |
708 | 720 | sort_by=sort_by, |
709 | 721 | latest=latest, |
710 | 722 | page=page, |
@@ -743,6 +755,7 @@ def _read_backend_types_backend_types_get_serialize( |
743 | 755 | identifier, |
744 | 756 | protocol_version__isnull, |
745 | 757 | protocol_version, |
| 758 | + job_execution_time_limit, |
746 | 759 | sort_by, |
747 | 760 | latest, |
748 | 761 | page, |
@@ -829,6 +842,10 @@ def _read_backend_types_backend_types_get_serialize( |
829 | 842 |
|
830 | 843 | _query_params.append(('protocol_version', protocol_version)) |
831 | 844 |
|
| 845 | + if job_execution_time_limit is not None: |
| 846 | + |
| 847 | + _query_params.append(('job_execution_time_limit', job_execution_time_limit)) |
| 848 | + |
832 | 849 | if sort_by is not None: |
833 | 850 |
|
834 | 851 | _query_params.append(('sort_by', sort_by)) |
|
0 commit comments