Skip to content

Commit b5a8055

Browse files
authored
chore: adapt client to new autorest version (#768)
1 parent ee544f5 commit b5a8055

2 files changed

Lines changed: 48 additions & 2 deletions

File tree

  • diracx-client/src/diracx/client/_generated/models
  • extensions/gubbins/gubbins-client/src/gubbins/client/_generated/models

diracx-client/src/diracx/client/_generated/models/_models.py

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

8+
from collections.abc import MutableMapping
89
import datetime
910
from typing import Any, Dict, List, Optional, TYPE_CHECKING, Union
1011

1112
from .._utils import serialization as _serialization
1213

1314
if TYPE_CHECKING:
1415
from .. import models as _models
16+
JSON = MutableMapping[str, Any]
1517

1618

1719
class BodyAuthGetOidcToken(_serialization.Model):
@@ -1522,6 +1524,10 @@ class ValidationError(_serialization.Model):
15221524
:vartype msg: str
15231525
:ivar type: Error Type. Required.
15241526
:vartype type: str
1527+
:ivar input: Input.
1528+
:vartype input: any
1529+
:ivar ctx: Context.
1530+
:vartype ctx: JSON
15251531
"""
15261532

15271533
_validation = {
@@ -1534,21 +1540,38 @@ class ValidationError(_serialization.Model):
15341540
"loc": {"key": "loc", "type": "[ValidationErrorLocItem]"},
15351541
"msg": {"key": "msg", "type": "str"},
15361542
"type": {"key": "type", "type": "str"},
1543+
"input": {"key": "input", "type": "object"},
1544+
"ctx": {"key": "ctx", "type": "object"},
15371545
}
15381546

1539-
def __init__(self, *, loc: List["_models.ValidationErrorLocItem"], msg: str, type: str, **kwargs: Any) -> None:
1547+
def __init__(
1548+
self,
1549+
*,
1550+
loc: List["_models.ValidationErrorLocItem"],
1551+
msg: str,
1552+
type: str,
1553+
input: Optional[Any] = None,
1554+
ctx: Optional[JSON] = None,
1555+
**kwargs: Any
1556+
) -> None:
15401557
"""
15411558
:keyword loc: Location. Required.
15421559
:paramtype loc: list[~_generated.models.ValidationErrorLocItem]
15431560
:keyword msg: Message. Required.
15441561
:paramtype msg: str
15451562
:keyword type: Error Type. Required.
15461563
:paramtype type: str
1564+
:keyword input: Input.
1565+
:paramtype input: any
1566+
:keyword ctx: Context.
1567+
:paramtype ctx: JSON
15471568
"""
15481569
super().__init__(**kwargs)
15491570
self.loc = loc
15501571
self.msg = msg
15511572
self.type = type
1573+
self.input = input
1574+
self.ctx = ctx
15521575

15531576

15541577
class ValidationErrorLocItem(_serialization.Model):

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

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

8+
from collections.abc import MutableMapping
89
import datetime
910
from typing import Any, Dict, List, Optional, TYPE_CHECKING, Union
1011

1112
from .._utils import serialization as _serialization
1213

1314
if TYPE_CHECKING:
1415
from .. import models as _models
16+
JSON = MutableMapping[str, Any]
1517

1618

1719
class BodyAuthGetOidcToken(_serialization.Model):
@@ -1543,6 +1545,10 @@ class ValidationError(_serialization.Model):
15431545
:vartype msg: str
15441546
:ivar type: Error Type. Required.
15451547
:vartype type: str
1548+
:ivar input: Input.
1549+
:vartype input: any
1550+
:ivar ctx: Context.
1551+
:vartype ctx: JSON
15461552
"""
15471553

15481554
_validation = {
@@ -1555,21 +1561,38 @@ class ValidationError(_serialization.Model):
15551561
"loc": {"key": "loc", "type": "[ValidationErrorLocItem]"},
15561562
"msg": {"key": "msg", "type": "str"},
15571563
"type": {"key": "type", "type": "str"},
1564+
"input": {"key": "input", "type": "object"},
1565+
"ctx": {"key": "ctx", "type": "object"},
15581566
}
15591567

1560-
def __init__(self, *, loc: List["_models.ValidationErrorLocItem"], msg: str, type: str, **kwargs: Any) -> None:
1568+
def __init__(
1569+
self,
1570+
*,
1571+
loc: List["_models.ValidationErrorLocItem"],
1572+
msg: str,
1573+
type: str,
1574+
input: Optional[Any] = None,
1575+
ctx: Optional[JSON] = None,
1576+
**kwargs: Any
1577+
) -> None:
15611578
"""
15621579
:keyword loc: Location. Required.
15631580
:paramtype loc: list[~_generated.models.ValidationErrorLocItem]
15641581
:keyword msg: Message. Required.
15651582
:paramtype msg: str
15661583
:keyword type: Error Type. Required.
15671584
:paramtype type: str
1585+
:keyword input: Input.
1586+
:paramtype input: any
1587+
:keyword ctx: Context.
1588+
:paramtype ctx: JSON
15681589
"""
15691590
super().__init__(**kwargs)
15701591
self.loc = loc
15711592
self.msg = msg
15721593
self.type = type
1594+
self.input = input
1595+
self.ctx = ctx
15731596

15741597

15751598
class ValidationErrorLocItem(_serialization.Model):

0 commit comments

Comments
 (0)