Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 24 additions & 1 deletion diracx-client/src/diracx/client/_generated/models/_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

from collections.abc import MutableMapping
import datetime
from typing import Any, Dict, List, Optional, TYPE_CHECKING, Union

from .._utils import serialization as _serialization

if TYPE_CHECKING:
from .. import models as _models
JSON = MutableMapping[str, Any]


class BodyAuthGetOidcToken(_serialization.Model):
Expand Down Expand Up @@ -1522,6 +1524,10 @@ class ValidationError(_serialization.Model):
:vartype msg: str
:ivar type: Error Type. Required.
:vartype type: str
:ivar input: Input.
:vartype input: any
:ivar ctx: Context.
:vartype ctx: JSON
"""

_validation = {
Expand All @@ -1534,21 +1540,38 @@ class ValidationError(_serialization.Model):
"loc": {"key": "loc", "type": "[ValidationErrorLocItem]"},
"msg": {"key": "msg", "type": "str"},
"type": {"key": "type", "type": "str"},
"input": {"key": "input", "type": "object"},
"ctx": {"key": "ctx", "type": "object"},
}

def __init__(self, *, loc: List["_models.ValidationErrorLocItem"], msg: str, type: str, **kwargs: Any) -> None:
def __init__(
self,
*,
loc: List["_models.ValidationErrorLocItem"],
msg: str,
type: str,
input: Optional[Any] = None,
ctx: Optional[JSON] = None,
**kwargs: Any
) -> None:
"""
:keyword loc: Location. Required.
:paramtype loc: list[~_generated.models.ValidationErrorLocItem]
:keyword msg: Message. Required.
:paramtype msg: str
:keyword type: Error Type. Required.
:paramtype type: str
:keyword input: Input.
:paramtype input: any
:keyword ctx: Context.
:paramtype ctx: JSON
"""
super().__init__(**kwargs)
self.loc = loc
self.msg = msg
self.type = type
self.input = input
self.ctx = ctx


class ValidationErrorLocItem(_serialization.Model):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

from collections.abc import MutableMapping
import datetime
from typing import Any, Dict, List, Optional, TYPE_CHECKING, Union

from .._utils import serialization as _serialization

if TYPE_CHECKING:
from .. import models as _models
JSON = MutableMapping[str, Any]


class BodyAuthGetOidcToken(_serialization.Model):
Expand Down Expand Up @@ -1543,6 +1545,10 @@ class ValidationError(_serialization.Model):
:vartype msg: str
:ivar type: Error Type. Required.
:vartype type: str
:ivar input: Input.
:vartype input: any
:ivar ctx: Context.
:vartype ctx: JSON
"""

_validation = {
Expand All @@ -1555,21 +1561,38 @@ class ValidationError(_serialization.Model):
"loc": {"key": "loc", "type": "[ValidationErrorLocItem]"},
"msg": {"key": "msg", "type": "str"},
"type": {"key": "type", "type": "str"},
"input": {"key": "input", "type": "object"},
"ctx": {"key": "ctx", "type": "object"},
}

def __init__(self, *, loc: List["_models.ValidationErrorLocItem"], msg: str, type: str, **kwargs: Any) -> None:
def __init__(
self,
*,
loc: List["_models.ValidationErrorLocItem"],
msg: str,
type: str,
input: Optional[Any] = None,
ctx: Optional[JSON] = None,
**kwargs: Any
) -> None:
"""
:keyword loc: Location. Required.
:paramtype loc: list[~_generated.models.ValidationErrorLocItem]
:keyword msg: Message. Required.
:paramtype msg: str
:keyword type: Error Type. Required.
:paramtype type: str
:keyword input: Input.
:paramtype input: any
:keyword ctx: Context.
:paramtype ctx: JSON
"""
super().__init__(**kwargs)
self.loc = loc
self.msg = msg
self.type = type
self.input = input
self.ctx = ctx


class ValidationErrorLocItem(_serialization.Model):
Expand Down
Loading