Skip to content

Commit 49bfbfe

Browse files
committed
fix: gubbins client regen
1 parent b1d0037 commit 49bfbfe

2 files changed

Lines changed: 3 additions & 26 deletions

File tree

extensions/gubbins/gubbins-client/src/gubbins/client/_generated/models/_models.py

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,13 @@
55
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
66
# --------------------------------------------------------------------------
77

8-
from collections.abc import MutableMapping
98
import datetime
109
from typing import Any, Optional, TYPE_CHECKING, Union
1110

1211
from .._utils import serialization as _serialization
1312

1413
if TYPE_CHECKING:
1514
from .. import models as _models
16-
JSON = MutableMapping[str, Any]
1715

1816

1917
class BodyAuthGetOidcToken(_serialization.Model):
@@ -1528,10 +1526,6 @@ class ValidationError(_serialization.Model):
15281526
:vartype msg: str
15291527
:ivar type: Error Type. Required.
15301528
:vartype type: str
1531-
:ivar input: Input.
1532-
:vartype input: any
1533-
:ivar ctx: Context.
1534-
:vartype ctx: JSON
15351529
"""
15361530

15371531
_validation = {
@@ -1544,38 +1538,21 @@ class ValidationError(_serialization.Model):
15441538
"loc": {"key": "loc", "type": "[object]"},
15451539
"msg": {"key": "msg", "type": "str"},
15461540
"type": {"key": "type", "type": "str"},
1547-
"input": {"key": "input", "type": "object"},
1548-
"ctx": {"key": "ctx", "type": "object"},
15491541
}
15501542

1551-
def __init__(
1552-
self,
1553-
*,
1554-
loc: list[Any],
1555-
msg: str,
1556-
type: str,
1557-
input: Optional[Any] = None,
1558-
ctx: Optional[JSON] = None,
1559-
**kwargs: Any
1560-
) -> None:
1543+
def __init__(self, *, loc: list[Any], msg: str, type: str, **kwargs: Any) -> None:
15611544
"""
15621545
:keyword loc: Location. Required.
15631546
:paramtype loc: list[any]
15641547
:keyword msg: Message. Required.
15651548
:paramtype msg: str
15661549
:keyword type: Error Type. Required.
15671550
:paramtype type: str
1568-
:keyword input: Input.
1569-
:paramtype input: any
1570-
:keyword ctx: Context.
1571-
:paramtype ctx: JSON
15721551
"""
15731552
super().__init__(**kwargs)
15741553
self.loc = loc
15751554
self.msg = msg
15761555
self.type = type
1577-
self.input = input
1578-
self.ctx = ctx
15791556

15801557

15811558
class VectorSearchSpec(_serialization.Model):

extensions/gubbins/gubbins-client/src/gubbins/client/_generated/operations/_operations.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -519,9 +519,9 @@ def build_jobs_search_request(*, page: int = 1, per_page: int = 100, **kwargs: A
519519

520520
# Construct parameters
521521
if page is not None:
522-
_params["page"] = _SERIALIZER.query("page", page, "int")
522+
_params["page"] = _SERIALIZER.query("page", page, "int", minimum=1)
523523
if per_page is not None:
524-
_params["per_page"] = _SERIALIZER.query("per_page", per_page, "int")
524+
_params["per_page"] = _SERIALIZER.query("per_page", per_page, "int", maximum=10000, minimum=1)
525525

526526
# Construct headers
527527
if content_type is not None:

0 commit comments

Comments
 (0)