Skip to content
This repository was archived by the owner on Jan 16, 2026. It is now read-only.

Commit 154e399

Browse files
committed
revert: undo changes to generated files
1 parent 1ef8962 commit 154e399

File tree

3 files changed

+81
-65
lines changed

3 files changed

+81
-65
lines changed
Lines changed: 29 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
# coding: utf-8
12

2-
"""Passage Management API.
3+
"""
4+
Passage Management API
35
46
Passage's management API to manage your Passage apps and users.
57
@@ -8,20 +10,19 @@
810
Generated by OpenAPI Generator (https://openapi-generator.tech)
911
1012
Do not edit the class manually.
11-
"""
13+
""" # noqa: E501
1214

1315
from __future__ import annotations
14-
15-
import json
1616
import pprint
1717
import re # noqa: F401
18-
from typing import TYPE_CHECKING, Any, ClassVar
18+
import json
1919

20-
from pydantic import BaseModel, Field, StrictBool
21-
from typing_extensions import Annotated
2220

23-
if TYPE_CHECKING:
24-
from passageidentity.openapi_client.models.ttl_display_unit import TtlDisplayUnit
21+
from typing import Any, ClassVar, Dict, List, Optional
22+
from pydantic import BaseModel, StrictBool
23+
from pydantic import Field
24+
from typing_extensions import Annotated
25+
from passageidentity.openapi_client.models.ttl_display_unit import TtlDisplayUnit
2526

2627
try:
2728
from typing import Self
@@ -31,32 +32,34 @@
3132

3233
@DeprecationWarning
3334
class UpdateMagicLinkAuthMethod(BaseModel):
34-
"""UpdateMagicLinkAuthMethod."""
35+
"""
36+
UpdateMagicLinkAuthMethod
37+
""" # noqa: E501
3538

36-
enabled: StrictBool | None = None
37-
ttl: Annotated[int, Field(strict=True, ge=60)] | None = Field(
38-
default=300, description="Maximum time (IN SECONDS) for the auth to expire.",
39+
enabled: Optional[StrictBool] = None
40+
ttl: Optional[Annotated[int, Field(strict=True, ge=60)]] = Field(
41+
default=300, description="Maximum time (IN SECONDS) for the auth to expire."
3942
)
40-
ttl_display_unit: TtlDisplayUnit | None = None
41-
__properties: ClassVar[list[str]] = ["enabled", "ttl", "ttl_display_unit"]
43+
ttl_display_unit: Optional[TtlDisplayUnit] = None
44+
__properties: ClassVar[List[str]] = ["enabled", "ttl", "ttl_display_unit"]
4245

4346
model_config = {"populate_by_name": True, "validate_assignment": True}
4447

4548
def to_str(self) -> str:
46-
"""Returns the string representation of the model using alias."""
49+
"""Returns the string representation of the model using alias"""
4750
return pprint.pformat(self.model_dump(by_alias=True))
4851

4952
def to_json(self) -> str:
50-
"""Returns the JSON representation of the model using alias."""
53+
"""Returns the JSON representation of the model using alias"""
5154
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
5255
return json.dumps(self.to_dict())
5356

5457
@classmethod
5558
def from_json(cls, json_str: str) -> Self:
56-
"""Create an instance of UpdateMagicLinkAuthMethod from a JSON string."""
59+
"""Create an instance of UpdateMagicLinkAuthMethod from a JSON string"""
5760
return cls.from_dict(json.loads(json_str))
5861

59-
def to_dict(self) -> dict[str, Any]:
62+
def to_dict(self) -> Dict[str, Any]:
6063
"""Return the dictionary representation of the model using alias.
6164
6265
This has the following differences from calling pydantic's
@@ -66,25 +69,27 @@ def to_dict(self) -> dict[str, Any]:
6669
were set at model initialization. Other fields with value `None`
6770
are ignored.
6871
"""
69-
return self.model_dump(
72+
_dict = self.model_dump(
7073
by_alias=True,
7174
exclude={},
7275
exclude_none=True,
7376
)
77+
return _dict
7478

7579
@classmethod
76-
def from_dict(cls, obj: dict) -> Self:
77-
"""Create an instance of UpdateMagicLinkAuthMethod from a dict."""
80+
def from_dict(cls, obj: Dict) -> Self:
81+
"""Create an instance of UpdateMagicLinkAuthMethod from a dict"""
7882
if obj is None:
7983
return None
8084

8185
if not isinstance(obj, dict):
8286
return cls.model_validate(obj)
8387

84-
return cls.model_validate(
88+
_obj = cls.model_validate(
8589
{
8690
"enabled": obj.get("enabled"),
8791
"ttl": obj.get("ttl") if obj.get("ttl") is not None else 300,
8892
"ttl_display_unit": obj.get("ttl_display_unit"),
89-
},
93+
}
9094
)
95+
return _obj
Lines changed: 29 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
# coding: utf-8
12

2-
"""Passage Management API.
3+
"""
4+
Passage Management API
35
46
Passage's management API to manage your Passage apps and users.
57
@@ -8,20 +10,19 @@
810
Generated by OpenAPI Generator (https://openapi-generator.tech)
911
1012
Do not edit the class manually.
11-
"""
13+
""" # noqa: E501
1214

1315
from __future__ import annotations
14-
15-
import json
1616
import pprint
1717
import re # noqa: F401
18-
from typing import TYPE_CHECKING, Any, ClassVar
18+
import json
1919

20-
from pydantic import BaseModel, Field, StrictBool
21-
from typing_extensions import Annotated
2220

23-
if TYPE_CHECKING:
24-
from passageidentity.openapi_client.models.ttl_display_unit import TtlDisplayUnit
21+
from typing import Any, ClassVar, Dict, List, Optional
22+
from pydantic import BaseModel, StrictBool
23+
from pydantic import Field
24+
from typing_extensions import Annotated
25+
from passageidentity.openapi_client.models.ttl_display_unit import TtlDisplayUnit
2526

2627
try:
2728
from typing import Self
@@ -31,32 +32,34 @@
3132

3233
@DeprecationWarning
3334
class UpdateOtpAuthMethod(BaseModel):
34-
"""the UpdateOtpAuthMethod to exchange for an authentication token."""
35+
"""
36+
the UpdateOtpAuthMethod to exchange for an authentication token
37+
""" # noqa: E501
3538

36-
enabled: StrictBool | None = None
37-
ttl: Annotated[int, Field(strict=True, ge=60)] | None = Field(
38-
default=300, description="Maximum time (IN SECONDS) for the auth to expire.",
39+
enabled: Optional[StrictBool] = None
40+
ttl: Optional[Annotated[int, Field(strict=True, ge=60)]] = Field(
41+
default=300, description="Maximum time (IN SECONDS) for the auth to expire."
3942
)
40-
ttl_display_unit: TtlDisplayUnit | None = None
41-
__properties: ClassVar[list[str]] = ["enabled", "ttl", "ttl_display_unit"]
43+
ttl_display_unit: Optional[TtlDisplayUnit] = None
44+
__properties: ClassVar[List[str]] = ["enabled", "ttl", "ttl_display_unit"]
4245

4346
model_config = {"populate_by_name": True, "validate_assignment": True}
4447

4548
def to_str(self) -> str:
46-
"""Returns the string representation of the model using alias."""
49+
"""Returns the string representation of the model using alias"""
4750
return pprint.pformat(self.model_dump(by_alias=True))
4851

4952
def to_json(self) -> str:
50-
"""Returns the JSON representation of the model using alias."""
53+
"""Returns the JSON representation of the model using alias"""
5154
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
5255
return json.dumps(self.to_dict())
5356

5457
@classmethod
5558
def from_json(cls, json_str: str) -> Self:
56-
"""Create an instance of UpdateOtpAuthMethod from a JSON string."""
59+
"""Create an instance of UpdateOtpAuthMethod from a JSON string"""
5760
return cls.from_dict(json.loads(json_str))
5861

59-
def to_dict(self) -> dict[str, Any]:
62+
def to_dict(self) -> Dict[str, Any]:
6063
"""Return the dictionary representation of the model using alias.
6164
6265
This has the following differences from calling pydantic's
@@ -66,25 +69,27 @@ def to_dict(self) -> dict[str, Any]:
6669
were set at model initialization. Other fields with value `None`
6770
are ignored.
6871
"""
69-
return self.model_dump(
72+
_dict = self.model_dump(
7073
by_alias=True,
7174
exclude={},
7275
exclude_none=True,
7376
)
77+
return _dict
7478

7579
@classmethod
76-
def from_dict(cls, obj: dict) -> Self:
77-
"""Create an instance of UpdateOtpAuthMethod from a dict."""
80+
def from_dict(cls, obj: Dict) -> Self:
81+
"""Create an instance of UpdateOtpAuthMethod from a dict"""
7882
if obj is None:
7983
return None
8084

8185
if not isinstance(obj, dict):
8286
return cls.model_validate(obj)
8387

84-
return cls.model_validate(
88+
_obj = cls.model_validate(
8589
{
8690
"enabled": obj.get("enabled"),
8791
"ttl": obj.get("ttl") if obj.get("ttl") is not None else 300,
8892
"ttl_display_unit": obj.get("ttl_display_unit"),
89-
},
93+
}
9094
)
95+
return _obj
Lines changed: 23 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
# coding: utf-8
12

2-
"""Passage Management API.
3+
"""
4+
Passage Management API
35
46
Passage's management API to manage your Passage apps and users.
57
@@ -8,15 +10,15 @@
810
Generated by OpenAPI Generator (https://openapi-generator.tech)
911
1012
Do not edit the class manually.
11-
"""
13+
""" # noqa: E501
1214

1315
from __future__ import annotations
14-
15-
import json
1616
import pprint
1717
import re # noqa: F401
18-
from typing import Any, ClassVar
18+
import json
19+
1920

21+
from typing import Any, ClassVar, Dict, List, Optional
2022
from pydantic import BaseModel, StrictBool
2123

2224
try:
@@ -27,28 +29,30 @@
2729

2830
@DeprecationWarning
2931
class UpdatePasskeysAuthMethod(BaseModel):
30-
"""UpdatePasskeysAuthMethod."""
32+
"""
33+
UpdatePasskeysAuthMethod
34+
""" # noqa: E501
3135

32-
enabled: StrictBool | None = True
33-
__properties: ClassVar[list[str]] = ["enabled"]
36+
enabled: Optional[StrictBool] = True
37+
__properties: ClassVar[List[str]] = ["enabled"]
3438

3539
model_config = {"populate_by_name": True, "validate_assignment": True}
3640

3741
def to_str(self) -> str:
38-
"""Returns the string representation of the model using alias."""
42+
"""Returns the string representation of the model using alias"""
3943
return pprint.pformat(self.model_dump(by_alias=True))
4044

4145
def to_json(self) -> str:
42-
"""Returns the JSON representation of the model using alias."""
46+
"""Returns the JSON representation of the model using alias"""
4347
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
4448
return json.dumps(self.to_dict())
4549

4650
@classmethod
4751
def from_json(cls, json_str: str) -> Self:
48-
"""Create an instance of UpdatePasskeysAuthMethod from a JSON string."""
52+
"""Create an instance of UpdatePasskeysAuthMethod from a JSON string"""
4953
return cls.from_dict(json.loads(json_str))
5054

51-
def to_dict(self) -> dict[str, Any]:
55+
def to_dict(self) -> Dict[str, Any]:
5256
"""Return the dictionary representation of the model using alias.
5357
5458
This has the following differences from calling pydantic's
@@ -58,21 +62,23 @@ def to_dict(self) -> dict[str, Any]:
5862
were set at model initialization. Other fields with value `None`
5963
are ignored.
6064
"""
61-
return self.model_dump(
65+
_dict = self.model_dump(
6266
by_alias=True,
6367
exclude={},
6468
exclude_none=True,
6569
)
70+
return _dict
6671

6772
@classmethod
68-
def from_dict(cls, obj: dict) -> Self:
69-
"""Create an instance of UpdatePasskeysAuthMethod from a dict."""
73+
def from_dict(cls, obj: Dict) -> Self:
74+
"""Create an instance of UpdatePasskeysAuthMethod from a dict"""
7075
if obj is None:
7176
return None
7277

7378
if not isinstance(obj, dict):
7479
return cls.model_validate(obj)
7580

76-
return cls.model_validate(
77-
{"enabled": obj.get("enabled") if obj.get("enabled") is not None else True},
81+
_obj = cls.model_validate(
82+
{"enabled": obj.get("enabled") if obj.get("enabled") is not None else True}
7883
)
84+
return _obj

0 commit comments

Comments
 (0)