stackit-dns 0.5.1__tar.gz → 0.6.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {stackit_dns-0.5.1 → stackit_dns-0.6.0}/PKG-INFO +1 -1
- {stackit_dns-0.5.1 → stackit_dns-0.6.0}/pyproject.toml +1 -1
- {stackit_dns-0.5.1 → stackit_dns-0.6.0}/src/stackit/dns/api_client.py +15 -17
- {stackit_dns-0.5.1 → stackit_dns-0.6.0}/src/stackit/dns/models/clone_zone_payload.py +4 -3
- {stackit_dns-0.5.1 → stackit_dns-0.6.0}/src/stackit/dns/models/create_label_payload.py +4 -3
- {stackit_dns-0.5.1 → stackit_dns-0.6.0}/src/stackit/dns/models/create_label_response.py +4 -3
- {stackit_dns-0.5.1 → stackit_dns-0.6.0}/src/stackit/dns/models/create_record_set_payload.py +4 -3
- {stackit_dns-0.5.1 → stackit_dns-0.6.0}/src/stackit/dns/models/create_zone_payload.py +4 -3
- {stackit_dns-0.5.1 → stackit_dns-0.6.0}/src/stackit/dns/models/delete_label_response.py +4 -3
- {stackit_dns-0.5.1 → stackit_dns-0.6.0}/src/stackit/dns/models/domain_extensions.py +4 -3
- {stackit_dns-0.5.1 → stackit_dns-0.6.0}/src/stackit/dns/models/domain_observability_extension.py +4 -3
- {stackit_dns-0.5.1 → stackit_dns-0.6.0}/src/stackit/dns/models/error_message.py +4 -3
- {stackit_dns-0.5.1 → stackit_dns-0.6.0}/src/stackit/dns/models/export_record_sets_payload.py +4 -3
- {stackit_dns-0.5.1 → stackit_dns-0.6.0}/src/stackit/dns/models/import_record_sets_payload.py +4 -3
- {stackit_dns-0.5.1 → stackit_dns-0.6.0}/src/stackit/dns/models/import_record_sets_response.py +4 -3
- {stackit_dns-0.5.1 → stackit_dns-0.6.0}/src/stackit/dns/models/import_summary.py +4 -3
- {stackit_dns-0.5.1 → stackit_dns-0.6.0}/src/stackit/dns/models/label.py +4 -3
- {stackit_dns-0.5.1 → stackit_dns-0.6.0}/src/stackit/dns/models/list_labels_response.py +4 -3
- {stackit_dns-0.5.1 → stackit_dns-0.6.0}/src/stackit/dns/models/list_record_sets_response.py +4 -3
- {stackit_dns-0.5.1 → stackit_dns-0.6.0}/src/stackit/dns/models/list_zones_response.py +4 -3
- {stackit_dns-0.5.1 → stackit_dns-0.6.0}/src/stackit/dns/models/message.py +4 -3
- {stackit_dns-0.5.1 → stackit_dns-0.6.0}/src/stackit/dns/models/move_code_response.py +4 -3
- {stackit_dns-0.5.1 → stackit_dns-0.6.0}/src/stackit/dns/models/move_zone_payload.py +4 -3
- {stackit_dns-0.5.1 → stackit_dns-0.6.0}/src/stackit/dns/models/partial_update_record_payload.py +4 -3
- {stackit_dns-0.5.1 → stackit_dns-0.6.0}/src/stackit/dns/models/partial_update_record_set_payload.py +4 -3
- {stackit_dns-0.5.1 → stackit_dns-0.6.0}/src/stackit/dns/models/partial_update_zone_payload.py +4 -3
- {stackit_dns-0.5.1 → stackit_dns-0.6.0}/src/stackit/dns/models/record.py +4 -3
- {stackit_dns-0.5.1 → stackit_dns-0.6.0}/src/stackit/dns/models/record_data_exchange.py +4 -3
- {stackit_dns-0.5.1 → stackit_dns-0.6.0}/src/stackit/dns/models/record_payload.py +4 -3
- {stackit_dns-0.5.1 → stackit_dns-0.6.0}/src/stackit/dns/models/record_set.py +4 -3
- {stackit_dns-0.5.1 → stackit_dns-0.6.0}/src/stackit/dns/models/record_set_response.py +4 -3
- {stackit_dns-0.5.1 → stackit_dns-0.6.0}/src/stackit/dns/models/validate_move_code_payload.py +4 -3
- {stackit_dns-0.5.1 → stackit_dns-0.6.0}/src/stackit/dns/models/zone.py +4 -3
- {stackit_dns-0.5.1 → stackit_dns-0.6.0}/src/stackit/dns/models/zone_data_exchange.py +4 -3
- {stackit_dns-0.5.1 → stackit_dns-0.6.0}/src/stackit/dns/models/zone_extensions.py +4 -3
- {stackit_dns-0.5.1 → stackit_dns-0.6.0}/src/stackit/dns/models/zone_models_import_record_model.py +4 -3
- {stackit_dns-0.5.1 → stackit_dns-0.6.0}/src/stackit/dns/models/zone_models_import_zone_json.py +4 -3
- {stackit_dns-0.5.1 → stackit_dns-0.6.0}/src/stackit/dns/models/zone_observability_extension.py +4 -3
- {stackit_dns-0.5.1 → stackit_dns-0.6.0}/src/stackit/dns/models/zone_response.py +4 -3
- {stackit_dns-0.5.1 → stackit_dns-0.6.0}/.gitignore +0 -0
- {stackit_dns-0.5.1 → stackit_dns-0.6.0}/LICENSE.md +0 -0
- {stackit_dns-0.5.1 → stackit_dns-0.6.0}/NOTICE.txt +0 -0
- {stackit_dns-0.5.1 → stackit_dns-0.6.0}/README.md +0 -0
- {stackit_dns-0.5.1 → stackit_dns-0.6.0}/src/stackit/dns/__init__.py +0 -0
- {stackit_dns-0.5.1 → stackit_dns-0.6.0}/src/stackit/dns/api/__init__.py +0 -0
- {stackit_dns-0.5.1 → stackit_dns-0.6.0}/src/stackit/dns/api/default_api.py +0 -0
- {stackit_dns-0.5.1 → stackit_dns-0.6.0}/src/stackit/dns/api_response.py +0 -0
- {stackit_dns-0.5.1 → stackit_dns-0.6.0}/src/stackit/dns/configuration.py +0 -0
- {stackit_dns-0.5.1 → stackit_dns-0.6.0}/src/stackit/dns/exceptions.py +0 -0
- {stackit_dns-0.5.1 → stackit_dns-0.6.0}/src/stackit/dns/models/__init__.py +0 -0
- {stackit_dns-0.5.1 → stackit_dns-0.6.0}/src/stackit/dns/py.typed +0 -0
- {stackit_dns-0.5.1 → stackit_dns-0.6.0}/src/stackit/dns/rest.py +0 -0
|
@@ -67,6 +67,7 @@ class ApiClient:
|
|
|
67
67
|
"date": datetime.date,
|
|
68
68
|
"datetime": datetime.datetime,
|
|
69
69
|
"decimal": decimal.Decimal,
|
|
70
|
+
"UUID": uuid.UUID,
|
|
70
71
|
"object": object,
|
|
71
72
|
}
|
|
72
73
|
_pool = None
|
|
@@ -266,7 +267,7 @@ class ApiClient:
|
|
|
266
267
|
response_text = None
|
|
267
268
|
return_data = None
|
|
268
269
|
try:
|
|
269
|
-
if response_type
|
|
270
|
+
if response_type in ("bytearray", "bytes"):
|
|
270
271
|
return_data = response_data.data
|
|
271
272
|
elif response_type == "file":
|
|
272
273
|
return_data = self.__deserialize_file(response_data)
|
|
@@ -327,25 +328,20 @@ class ApiClient:
|
|
|
327
328
|
return obj.isoformat()
|
|
328
329
|
elif isinstance(obj, decimal.Decimal):
|
|
329
330
|
return str(obj)
|
|
330
|
-
|
|
331
331
|
elif isinstance(obj, dict):
|
|
332
|
-
|
|
332
|
+
return {key: self.sanitize_for_serialization(val) for key, val in obj.items()}
|
|
333
|
+
|
|
334
|
+
# Convert model obj to dict except
|
|
335
|
+
# attributes `openapi_types`, `attribute_map`
|
|
336
|
+
# and attributes which value is not None.
|
|
337
|
+
# Convert attribute name to json key in
|
|
338
|
+
# model definition for request.
|
|
339
|
+
if hasattr(obj, "to_dict") and callable(getattr(obj, "to_dict")): # noqa: B009
|
|
340
|
+
obj_dict = obj.to_dict()
|
|
333
341
|
else:
|
|
334
|
-
|
|
335
|
-
# attributes `openapi_types`, `attribute_map`
|
|
336
|
-
# and attributes which value is not None.
|
|
337
|
-
# Convert attribute name to json key in
|
|
338
|
-
# model definition for request.
|
|
339
|
-
if hasattr(obj, "to_dict") and callable(getattr(obj, "to_dict")): # noqa: B009
|
|
340
|
-
obj_dict = obj.to_dict()
|
|
341
|
-
else:
|
|
342
|
-
obj_dict = obj.__dict__
|
|
343
|
-
|
|
344
|
-
if isinstance(obj_dict, list):
|
|
345
|
-
# here we handle instances that can either be a list or something else, and only became a real list by calling to_dict() # noqa: E501
|
|
346
|
-
return self.sanitize_for_serialization(obj_dict)
|
|
342
|
+
obj_dict = obj.__dict__
|
|
347
343
|
|
|
348
|
-
return
|
|
344
|
+
return self.sanitize_for_serialization(obj_dict)
|
|
349
345
|
|
|
350
346
|
def deserialize(self, response_text: str, response_type: str, content_type: Optional[str]):
|
|
351
347
|
"""Deserializes response into an object.
|
|
@@ -418,6 +414,8 @@ class ApiClient:
|
|
|
418
414
|
return self.__deserialize_datetime(data)
|
|
419
415
|
elif klass is decimal.Decimal:
|
|
420
416
|
return decimal.Decimal(data)
|
|
417
|
+
elif klass is uuid.UUID:
|
|
418
|
+
return uuid.UUID(data)
|
|
421
419
|
elif issubclass(klass, Enum):
|
|
422
420
|
return self.__deserialize_enum(data, klass)
|
|
423
421
|
else:
|
|
@@ -19,6 +19,7 @@ import pprint
|
|
|
19
19
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
20
20
|
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, Field, StrictBool
|
|
22
|
+
from pydantic_core import to_jsonable_python
|
|
22
23
|
from typing_extensions import Annotated, Self
|
|
23
24
|
|
|
24
25
|
|
|
@@ -45,7 +46,8 @@ class CloneZonePayload(BaseModel):
|
|
|
45
46
|
__properties: ClassVar[List[str]] = ["adjustRecords", "description", "dnsName", "name"]
|
|
46
47
|
|
|
47
48
|
model_config = ConfigDict(
|
|
48
|
-
|
|
49
|
+
validate_by_name=True,
|
|
50
|
+
validate_by_alias=True,
|
|
49
51
|
validate_assignment=True,
|
|
50
52
|
protected_namespaces=(),
|
|
51
53
|
)
|
|
@@ -56,8 +58,7 @@ class CloneZonePayload(BaseModel):
|
|
|
56
58
|
|
|
57
59
|
def to_json(self) -> str:
|
|
58
60
|
"""Returns the JSON representation of the model using alias"""
|
|
59
|
-
|
|
60
|
-
return json.dumps(self.to_dict())
|
|
61
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
61
62
|
|
|
62
63
|
@classmethod
|
|
63
64
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -19,6 +19,7 @@ import pprint
|
|
|
19
19
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
20
20
|
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, Field
|
|
22
|
+
from pydantic_core import to_jsonable_python
|
|
22
23
|
from typing_extensions import Annotated, Self
|
|
23
24
|
|
|
24
25
|
|
|
@@ -32,7 +33,8 @@ class CreateLabelPayload(BaseModel):
|
|
|
32
33
|
__properties: ClassVar[List[str]] = ["key", "value"]
|
|
33
34
|
|
|
34
35
|
model_config = ConfigDict(
|
|
35
|
-
|
|
36
|
+
validate_by_name=True,
|
|
37
|
+
validate_by_alias=True,
|
|
36
38
|
validate_assignment=True,
|
|
37
39
|
protected_namespaces=(),
|
|
38
40
|
)
|
|
@@ -43,8 +45,7 @@ class CreateLabelPayload(BaseModel):
|
|
|
43
45
|
|
|
44
46
|
def to_json(self) -> str:
|
|
45
47
|
"""Returns the JSON representation of the model using alias"""
|
|
46
|
-
|
|
47
|
-
return json.dumps(self.to_dict())
|
|
48
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
48
49
|
|
|
49
50
|
@classmethod
|
|
50
51
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -19,6 +19,7 @@ import pprint
|
|
|
19
19
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
20
20
|
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, StrictStr
|
|
22
|
+
from pydantic_core import to_jsonable_python
|
|
22
23
|
from typing_extensions import Self
|
|
23
24
|
|
|
24
25
|
from stackit.dns.models.label import Label
|
|
@@ -34,7 +35,8 @@ class CreateLabelResponse(BaseModel):
|
|
|
34
35
|
__properties: ClassVar[List[str]] = ["label", "message"]
|
|
35
36
|
|
|
36
37
|
model_config = ConfigDict(
|
|
37
|
-
|
|
38
|
+
validate_by_name=True,
|
|
39
|
+
validate_by_alias=True,
|
|
38
40
|
validate_assignment=True,
|
|
39
41
|
protected_namespaces=(),
|
|
40
42
|
)
|
|
@@ -45,8 +47,7 @@ class CreateLabelResponse(BaseModel):
|
|
|
45
47
|
|
|
46
48
|
def to_json(self) -> str:
|
|
47
49
|
"""Returns the JSON representation of the model using alias"""
|
|
48
|
-
|
|
49
|
-
return json.dumps(self.to_dict())
|
|
50
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
50
51
|
|
|
51
52
|
@classmethod
|
|
52
53
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -19,6 +19,7 @@ import pprint
|
|
|
19
19
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
20
20
|
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
|
|
22
|
+
from pydantic_core import to_jsonable_python
|
|
22
23
|
from typing_extensions import Annotated, Self
|
|
23
24
|
|
|
24
25
|
from stackit.dns.models.record_payload import RecordPayload
|
|
@@ -80,7 +81,8 @@ class CreateRecordSetPayload(BaseModel):
|
|
|
80
81
|
return value
|
|
81
82
|
|
|
82
83
|
model_config = ConfigDict(
|
|
83
|
-
|
|
84
|
+
validate_by_name=True,
|
|
85
|
+
validate_by_alias=True,
|
|
84
86
|
validate_assignment=True,
|
|
85
87
|
protected_namespaces=(),
|
|
86
88
|
)
|
|
@@ -91,8 +93,7 @@ class CreateRecordSetPayload(BaseModel):
|
|
|
91
93
|
|
|
92
94
|
def to_json(self) -> str:
|
|
93
95
|
"""Returns the JSON representation of the model using alias"""
|
|
94
|
-
|
|
95
|
-
return json.dumps(self.to_dict())
|
|
96
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
96
97
|
|
|
97
98
|
@classmethod
|
|
98
99
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -26,6 +26,7 @@ from pydantic import (
|
|
|
26
26
|
StrictStr,
|
|
27
27
|
field_validator,
|
|
28
28
|
)
|
|
29
|
+
from pydantic_core import to_jsonable_python
|
|
29
30
|
from typing_extensions import Annotated, Self
|
|
30
31
|
|
|
31
32
|
from stackit.dns.models.zone_extensions import ZoneExtensions
|
|
@@ -98,7 +99,8 @@ class CreateZonePayload(BaseModel):
|
|
|
98
99
|
return value
|
|
99
100
|
|
|
100
101
|
model_config = ConfigDict(
|
|
101
|
-
|
|
102
|
+
validate_by_name=True,
|
|
103
|
+
validate_by_alias=True,
|
|
102
104
|
validate_assignment=True,
|
|
103
105
|
protected_namespaces=(),
|
|
104
106
|
)
|
|
@@ -109,8 +111,7 @@ class CreateZonePayload(BaseModel):
|
|
|
109
111
|
|
|
110
112
|
def to_json(self) -> str:
|
|
111
113
|
"""Returns the JSON representation of the model using alias"""
|
|
112
|
-
|
|
113
|
-
return json.dumps(self.to_dict())
|
|
114
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
114
115
|
|
|
115
116
|
@classmethod
|
|
116
117
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -19,6 +19,7 @@ import pprint
|
|
|
19
19
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
20
20
|
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, StrictStr
|
|
22
|
+
from pydantic_core import to_jsonable_python
|
|
22
23
|
from typing_extensions import Self
|
|
23
24
|
|
|
24
25
|
from stackit.dns.models.label import Label
|
|
@@ -34,7 +35,8 @@ class DeleteLabelResponse(BaseModel):
|
|
|
34
35
|
__properties: ClassVar[List[str]] = ["label", "message"]
|
|
35
36
|
|
|
36
37
|
model_config = ConfigDict(
|
|
37
|
-
|
|
38
|
+
validate_by_name=True,
|
|
39
|
+
validate_by_alias=True,
|
|
38
40
|
validate_assignment=True,
|
|
39
41
|
protected_namespaces=(),
|
|
40
42
|
)
|
|
@@ -45,8 +47,7 @@ class DeleteLabelResponse(BaseModel):
|
|
|
45
47
|
|
|
46
48
|
def to_json(self) -> str:
|
|
47
49
|
"""Returns the JSON representation of the model using alias"""
|
|
48
|
-
|
|
49
|
-
return json.dumps(self.to_dict())
|
|
50
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
50
51
|
|
|
51
52
|
@classmethod
|
|
52
53
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -19,6 +19,7 @@ import pprint
|
|
|
19
19
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
20
20
|
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, Field
|
|
22
|
+
from pydantic_core import to_jsonable_python
|
|
22
23
|
from typing_extensions import Self
|
|
23
24
|
|
|
24
25
|
from stackit.dns.models.domain_observability_extension import (
|
|
@@ -37,7 +38,8 @@ class DomainExtensions(BaseModel):
|
|
|
37
38
|
__properties: ClassVar[List[str]] = ["observabilityExtension"]
|
|
38
39
|
|
|
39
40
|
model_config = ConfigDict(
|
|
40
|
-
|
|
41
|
+
validate_by_name=True,
|
|
42
|
+
validate_by_alias=True,
|
|
41
43
|
validate_assignment=True,
|
|
42
44
|
protected_namespaces=(),
|
|
43
45
|
)
|
|
@@ -48,8 +50,7 @@ class DomainExtensions(BaseModel):
|
|
|
48
50
|
|
|
49
51
|
def to_json(self) -> str:
|
|
50
52
|
"""Returns the JSON representation of the model using alias"""
|
|
51
|
-
|
|
52
|
-
return json.dumps(self.to_dict())
|
|
53
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
53
54
|
|
|
54
55
|
@classmethod
|
|
55
56
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
{stackit_dns-0.5.1 → stackit_dns-0.6.0}/src/stackit/dns/models/domain_observability_extension.py
RENAMED
|
@@ -19,6 +19,7 @@ import pprint
|
|
|
19
19
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
20
20
|
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
22
|
+
from pydantic_core import to_jsonable_python
|
|
22
23
|
from typing_extensions import Self
|
|
23
24
|
|
|
24
25
|
|
|
@@ -32,7 +33,8 @@ class DomainObservabilityExtension(BaseModel):
|
|
|
32
33
|
__properties: ClassVar[List[str]] = ["observabilityInstanceId", "state"]
|
|
33
34
|
|
|
34
35
|
model_config = ConfigDict(
|
|
35
|
-
|
|
36
|
+
validate_by_name=True,
|
|
37
|
+
validate_by_alias=True,
|
|
36
38
|
validate_assignment=True,
|
|
37
39
|
protected_namespaces=(),
|
|
38
40
|
)
|
|
@@ -43,8 +45,7 @@ class DomainObservabilityExtension(BaseModel):
|
|
|
43
45
|
|
|
44
46
|
def to_json(self) -> str:
|
|
45
47
|
"""Returns the JSON representation of the model using alias"""
|
|
46
|
-
|
|
47
|
-
return json.dumps(self.to_dict())
|
|
48
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
48
49
|
|
|
49
50
|
@classmethod
|
|
50
51
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -19,6 +19,7 @@ import pprint
|
|
|
19
19
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
20
20
|
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, StrictStr
|
|
22
|
+
from pydantic_core import to_jsonable_python
|
|
22
23
|
from typing_extensions import Self
|
|
23
24
|
|
|
24
25
|
|
|
@@ -32,7 +33,8 @@ class ErrorMessage(BaseModel):
|
|
|
32
33
|
__properties: ClassVar[List[str]] = ["error", "message"]
|
|
33
34
|
|
|
34
35
|
model_config = ConfigDict(
|
|
35
|
-
|
|
36
|
+
validate_by_name=True,
|
|
37
|
+
validate_by_alias=True,
|
|
36
38
|
validate_assignment=True,
|
|
37
39
|
protected_namespaces=(),
|
|
38
40
|
)
|
|
@@ -43,8 +45,7 @@ class ErrorMessage(BaseModel):
|
|
|
43
45
|
|
|
44
46
|
def to_json(self) -> str:
|
|
45
47
|
"""Returns the JSON representation of the model using alias"""
|
|
46
|
-
|
|
47
|
-
return json.dumps(self.to_dict())
|
|
48
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
48
49
|
|
|
49
50
|
@classmethod
|
|
50
51
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
{stackit_dns-0.5.1 → stackit_dns-0.6.0}/src/stackit/dns/models/export_record_sets_payload.py
RENAMED
|
@@ -26,6 +26,7 @@ from pydantic import (
|
|
|
26
26
|
StrictStr,
|
|
27
27
|
field_validator,
|
|
28
28
|
)
|
|
29
|
+
from pydantic_core import to_jsonable_python
|
|
29
30
|
from typing_extensions import Self
|
|
30
31
|
|
|
31
32
|
|
|
@@ -49,7 +50,8 @@ class ExportRecordSetsPayload(BaseModel):
|
|
|
49
50
|
return value
|
|
50
51
|
|
|
51
52
|
model_config = ConfigDict(
|
|
52
|
-
|
|
53
|
+
validate_by_name=True,
|
|
54
|
+
validate_by_alias=True,
|
|
53
55
|
validate_assignment=True,
|
|
54
56
|
protected_namespaces=(),
|
|
55
57
|
)
|
|
@@ -60,8 +62,7 @@ class ExportRecordSetsPayload(BaseModel):
|
|
|
60
62
|
|
|
61
63
|
def to_json(self) -> str:
|
|
62
64
|
"""Returns the JSON representation of the model using alias"""
|
|
63
|
-
|
|
64
|
-
return json.dumps(self.to_dict())
|
|
65
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
65
66
|
|
|
66
67
|
@classmethod
|
|
67
68
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
{stackit_dns-0.5.1 → stackit_dns-0.6.0}/src/stackit/dns/models/import_record_sets_payload.py
RENAMED
|
@@ -19,6 +19,7 @@ import pprint
|
|
|
19
19
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
20
20
|
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, Field
|
|
22
|
+
from pydantic_core import to_jsonable_python
|
|
22
23
|
from typing_extensions import Self
|
|
23
24
|
|
|
24
25
|
from stackit.dns.models.zone_models_import_record_model import (
|
|
@@ -35,7 +36,8 @@ class ImportRecordSetsPayload(BaseModel):
|
|
|
35
36
|
__properties: ClassVar[List[str]] = ["rrSets"]
|
|
36
37
|
|
|
37
38
|
model_config = ConfigDict(
|
|
38
|
-
|
|
39
|
+
validate_by_name=True,
|
|
40
|
+
validate_by_alias=True,
|
|
39
41
|
validate_assignment=True,
|
|
40
42
|
protected_namespaces=(),
|
|
41
43
|
)
|
|
@@ -46,8 +48,7 @@ class ImportRecordSetsPayload(BaseModel):
|
|
|
46
48
|
|
|
47
49
|
def to_json(self) -> str:
|
|
48
50
|
"""Returns the JSON representation of the model using alias"""
|
|
49
|
-
|
|
50
|
-
return json.dumps(self.to_dict())
|
|
51
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
51
52
|
|
|
52
53
|
@classmethod
|
|
53
54
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
{stackit_dns-0.5.1 → stackit_dns-0.6.0}/src/stackit/dns/models/import_record_sets_response.py
RENAMED
|
@@ -19,6 +19,7 @@ import pprint
|
|
|
19
19
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
20
20
|
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, StrictStr
|
|
22
|
+
from pydantic_core import to_jsonable_python
|
|
22
23
|
from typing_extensions import Self
|
|
23
24
|
|
|
24
25
|
from stackit.dns.models.import_summary import ImportSummary
|
|
@@ -34,7 +35,8 @@ class ImportRecordSetsResponse(BaseModel):
|
|
|
34
35
|
__properties: ClassVar[List[str]] = ["message", "summary"]
|
|
35
36
|
|
|
36
37
|
model_config = ConfigDict(
|
|
37
|
-
|
|
38
|
+
validate_by_name=True,
|
|
39
|
+
validate_by_alias=True,
|
|
38
40
|
validate_assignment=True,
|
|
39
41
|
protected_namespaces=(),
|
|
40
42
|
)
|
|
@@ -45,8 +47,7 @@ class ImportRecordSetsResponse(BaseModel):
|
|
|
45
47
|
|
|
46
48
|
def to_json(self) -> str:
|
|
47
49
|
"""Returns the JSON representation of the model using alias"""
|
|
48
|
-
|
|
49
|
-
return json.dumps(self.to_dict())
|
|
50
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
50
51
|
|
|
51
52
|
@classmethod
|
|
52
53
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -19,6 +19,7 @@ import pprint
|
|
|
19
19
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
20
20
|
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, Field
|
|
22
|
+
from pydantic_core import to_jsonable_python
|
|
22
23
|
from typing_extensions import Annotated, Self
|
|
23
24
|
|
|
24
25
|
|
|
@@ -55,7 +56,8 @@ class ImportSummary(BaseModel):
|
|
|
55
56
|
]
|
|
56
57
|
|
|
57
58
|
model_config = ConfigDict(
|
|
58
|
-
|
|
59
|
+
validate_by_name=True,
|
|
60
|
+
validate_by_alias=True,
|
|
59
61
|
validate_assignment=True,
|
|
60
62
|
protected_namespaces=(),
|
|
61
63
|
)
|
|
@@ -66,8 +68,7 @@ class ImportSummary(BaseModel):
|
|
|
66
68
|
|
|
67
69
|
def to_json(self) -> str:
|
|
68
70
|
"""Returns the JSON representation of the model using alias"""
|
|
69
|
-
|
|
70
|
-
return json.dumps(self.to_dict())
|
|
71
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
71
72
|
|
|
72
73
|
@classmethod
|
|
73
74
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -19,6 +19,7 @@ import pprint
|
|
|
19
19
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
20
20
|
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, Field
|
|
22
|
+
from pydantic_core import to_jsonable_python
|
|
22
23
|
from typing_extensions import Annotated, Self
|
|
23
24
|
|
|
24
25
|
|
|
@@ -32,7 +33,8 @@ class Label(BaseModel):
|
|
|
32
33
|
__properties: ClassVar[List[str]] = ["key", "value"]
|
|
33
34
|
|
|
34
35
|
model_config = ConfigDict(
|
|
35
|
-
|
|
36
|
+
validate_by_name=True,
|
|
37
|
+
validate_by_alias=True,
|
|
36
38
|
validate_assignment=True,
|
|
37
39
|
protected_namespaces=(),
|
|
38
40
|
)
|
|
@@ -43,8 +45,7 @@ class Label(BaseModel):
|
|
|
43
45
|
|
|
44
46
|
def to_json(self) -> str:
|
|
45
47
|
"""Returns the JSON representation of the model using alias"""
|
|
46
|
-
|
|
47
|
-
return json.dumps(self.to_dict())
|
|
48
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
48
49
|
|
|
49
50
|
@classmethod
|
|
50
51
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -19,6 +19,7 @@ import pprint
|
|
|
19
19
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
20
20
|
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, StrictStr
|
|
22
|
+
from pydantic_core import to_jsonable_python
|
|
22
23
|
from typing_extensions import Self
|
|
23
24
|
|
|
24
25
|
from stackit.dns.models.label import Label
|
|
@@ -34,7 +35,8 @@ class ListLabelsResponse(BaseModel):
|
|
|
34
35
|
__properties: ClassVar[List[str]] = ["labels", "message"]
|
|
35
36
|
|
|
36
37
|
model_config = ConfigDict(
|
|
37
|
-
|
|
38
|
+
validate_by_name=True,
|
|
39
|
+
validate_by_alias=True,
|
|
38
40
|
validate_assignment=True,
|
|
39
41
|
protected_namespaces=(),
|
|
40
42
|
)
|
|
@@ -45,8 +47,7 @@ class ListLabelsResponse(BaseModel):
|
|
|
45
47
|
|
|
46
48
|
def to_json(self) -> str:
|
|
47
49
|
"""Returns the JSON representation of the model using alias"""
|
|
48
|
-
|
|
49
|
-
return json.dumps(self.to_dict())
|
|
50
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
50
51
|
|
|
51
52
|
@classmethod
|
|
52
53
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -19,6 +19,7 @@ import pprint
|
|
|
19
19
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
20
20
|
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
|
|
22
|
+
from pydantic_core import to_jsonable_python
|
|
22
23
|
from typing_extensions import Self
|
|
23
24
|
|
|
24
25
|
from stackit.dns.models.record_set import RecordSet
|
|
@@ -37,7 +38,8 @@ class ListRecordSetsResponse(BaseModel):
|
|
|
37
38
|
__properties: ClassVar[List[str]] = ["itemsPerPage", "message", "rrSets", "totalItems", "totalPages"]
|
|
38
39
|
|
|
39
40
|
model_config = ConfigDict(
|
|
40
|
-
|
|
41
|
+
validate_by_name=True,
|
|
42
|
+
validate_by_alias=True,
|
|
41
43
|
validate_assignment=True,
|
|
42
44
|
protected_namespaces=(),
|
|
43
45
|
)
|
|
@@ -48,8 +50,7 @@ class ListRecordSetsResponse(BaseModel):
|
|
|
48
50
|
|
|
49
51
|
def to_json(self) -> str:
|
|
50
52
|
"""Returns the JSON representation of the model using alias"""
|
|
51
|
-
|
|
52
|
-
return json.dumps(self.to_dict())
|
|
53
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
53
54
|
|
|
54
55
|
@classmethod
|
|
55
56
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -19,6 +19,7 @@ import pprint
|
|
|
19
19
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
20
20
|
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
|
|
22
|
+
from pydantic_core import to_jsonable_python
|
|
22
23
|
from typing_extensions import Self
|
|
23
24
|
|
|
24
25
|
from stackit.dns.models.zone import Zone
|
|
@@ -37,7 +38,8 @@ class ListZonesResponse(BaseModel):
|
|
|
37
38
|
__properties: ClassVar[List[str]] = ["itemsPerPage", "message", "totalItems", "totalPages", "zones"]
|
|
38
39
|
|
|
39
40
|
model_config = ConfigDict(
|
|
40
|
-
|
|
41
|
+
validate_by_name=True,
|
|
42
|
+
validate_by_alias=True,
|
|
41
43
|
validate_assignment=True,
|
|
42
44
|
protected_namespaces=(),
|
|
43
45
|
)
|
|
@@ -48,8 +50,7 @@ class ListZonesResponse(BaseModel):
|
|
|
48
50
|
|
|
49
51
|
def to_json(self) -> str:
|
|
50
52
|
"""Returns the JSON representation of the model using alias"""
|
|
51
|
-
|
|
52
|
-
return json.dumps(self.to_dict())
|
|
53
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
53
54
|
|
|
54
55
|
@classmethod
|
|
55
56
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -19,6 +19,7 @@ import pprint
|
|
|
19
19
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
20
20
|
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, StrictStr
|
|
22
|
+
from pydantic_core import to_jsonable_python
|
|
22
23
|
from typing_extensions import Self
|
|
23
24
|
|
|
24
25
|
|
|
@@ -31,7 +32,8 @@ class Message(BaseModel):
|
|
|
31
32
|
__properties: ClassVar[List[str]] = ["message"]
|
|
32
33
|
|
|
33
34
|
model_config = ConfigDict(
|
|
34
|
-
|
|
35
|
+
validate_by_name=True,
|
|
36
|
+
validate_by_alias=True,
|
|
35
37
|
validate_assignment=True,
|
|
36
38
|
protected_namespaces=(),
|
|
37
39
|
)
|
|
@@ -42,8 +44,7 @@ class Message(BaseModel):
|
|
|
42
44
|
|
|
43
45
|
def to_json(self) -> str:
|
|
44
46
|
"""Returns the JSON representation of the model using alias"""
|
|
45
|
-
|
|
46
|
-
return json.dumps(self.to_dict())
|
|
47
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
47
48
|
|
|
48
49
|
@classmethod
|
|
49
50
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -19,6 +19,7 @@ import pprint
|
|
|
19
19
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
20
20
|
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
22
|
+
from pydantic_core import to_jsonable_python
|
|
22
23
|
from typing_extensions import Self
|
|
23
24
|
|
|
24
25
|
|
|
@@ -33,7 +34,8 @@ class MoveCodeResponse(BaseModel):
|
|
|
33
34
|
__properties: ClassVar[List[str]] = ["code", "expiresAt", "message"]
|
|
34
35
|
|
|
35
36
|
model_config = ConfigDict(
|
|
36
|
-
|
|
37
|
+
validate_by_name=True,
|
|
38
|
+
validate_by_alias=True,
|
|
37
39
|
validate_assignment=True,
|
|
38
40
|
protected_namespaces=(),
|
|
39
41
|
)
|
|
@@ -44,8 +46,7 @@ class MoveCodeResponse(BaseModel):
|
|
|
44
46
|
|
|
45
47
|
def to_json(self) -> str:
|
|
46
48
|
"""Returns the JSON representation of the model using alias"""
|
|
47
|
-
|
|
48
|
-
return json.dumps(self.to_dict())
|
|
49
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
49
50
|
|
|
50
51
|
@classmethod
|
|
51
52
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -19,6 +19,7 @@ import pprint
|
|
|
19
19
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
20
20
|
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, Field
|
|
22
|
+
from pydantic_core import to_jsonable_python
|
|
22
23
|
from typing_extensions import Annotated, Self
|
|
23
24
|
|
|
24
25
|
|
|
@@ -36,7 +37,8 @@ class MoveZonePayload(BaseModel):
|
|
|
36
37
|
__properties: ClassVar[List[str]] = ["code", "zoneDnsName"]
|
|
37
38
|
|
|
38
39
|
model_config = ConfigDict(
|
|
39
|
-
|
|
40
|
+
validate_by_name=True,
|
|
41
|
+
validate_by_alias=True,
|
|
40
42
|
validate_assignment=True,
|
|
41
43
|
protected_namespaces=(),
|
|
42
44
|
)
|
|
@@ -47,8 +49,7 @@ class MoveZonePayload(BaseModel):
|
|
|
47
49
|
|
|
48
50
|
def to_json(self) -> str:
|
|
49
51
|
"""Returns the JSON representation of the model using alias"""
|
|
50
|
-
|
|
51
|
-
return json.dumps(self.to_dict())
|
|
52
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
52
53
|
|
|
53
54
|
@classmethod
|
|
54
55
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
{stackit_dns-0.5.1 → stackit_dns-0.6.0}/src/stackit/dns/models/partial_update_record_payload.py
RENAMED
|
@@ -19,6 +19,7 @@ import pprint
|
|
|
19
19
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
20
20
|
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
|
|
22
|
+
from pydantic_core import to_jsonable_python
|
|
22
23
|
from typing_extensions import Self
|
|
23
24
|
|
|
24
25
|
from stackit.dns.models.record_payload import RecordPayload
|
|
@@ -41,7 +42,8 @@ class PartialUpdateRecordPayload(BaseModel):
|
|
|
41
42
|
return value
|
|
42
43
|
|
|
43
44
|
model_config = ConfigDict(
|
|
44
|
-
|
|
45
|
+
validate_by_name=True,
|
|
46
|
+
validate_by_alias=True,
|
|
45
47
|
validate_assignment=True,
|
|
46
48
|
protected_namespaces=(),
|
|
47
49
|
)
|
|
@@ -52,8 +54,7 @@ class PartialUpdateRecordPayload(BaseModel):
|
|
|
52
54
|
|
|
53
55
|
def to_json(self) -> str:
|
|
54
56
|
"""Returns the JSON representation of the model using alias"""
|
|
55
|
-
|
|
56
|
-
return json.dumps(self.to_dict())
|
|
57
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
57
58
|
|
|
58
59
|
@classmethod
|
|
59
60
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
{stackit_dns-0.5.1 → stackit_dns-0.6.0}/src/stackit/dns/models/partial_update_record_set_payload.py
RENAMED
|
@@ -19,6 +19,7 @@ import pprint
|
|
|
19
19
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
20
20
|
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, Field
|
|
22
|
+
from pydantic_core import to_jsonable_python
|
|
22
23
|
from typing_extensions import Annotated, Self
|
|
23
24
|
|
|
24
25
|
from stackit.dns.models.record_payload import RecordPayload
|
|
@@ -42,7 +43,8 @@ class PartialUpdateRecordSetPayload(BaseModel):
|
|
|
42
43
|
__properties: ClassVar[List[str]] = ["comment", "name", "records", "ttl"]
|
|
43
44
|
|
|
44
45
|
model_config = ConfigDict(
|
|
45
|
-
|
|
46
|
+
validate_by_name=True,
|
|
47
|
+
validate_by_alias=True,
|
|
46
48
|
validate_assignment=True,
|
|
47
49
|
protected_namespaces=(),
|
|
48
50
|
)
|
|
@@ -53,8 +55,7 @@ class PartialUpdateRecordSetPayload(BaseModel):
|
|
|
53
55
|
|
|
54
56
|
def to_json(self) -> str:
|
|
55
57
|
"""Returns the JSON representation of the model using alias"""
|
|
56
|
-
|
|
57
|
-
return json.dumps(self.to_dict())
|
|
58
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
58
59
|
|
|
59
60
|
@classmethod
|
|
60
61
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
{stackit_dns-0.5.1 → stackit_dns-0.6.0}/src/stackit/dns/models/partial_update_zone_payload.py
RENAMED
|
@@ -19,6 +19,7 @@ import pprint
|
|
|
19
19
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
20
20
|
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
22
|
+
from pydantic_core import to_jsonable_python
|
|
22
23
|
from typing_extensions import Annotated, Self
|
|
23
24
|
|
|
24
25
|
from stackit.dns.models.zone_extensions import ZoneExtensions
|
|
@@ -73,7 +74,8 @@ class PartialUpdateZonePayload(BaseModel):
|
|
|
73
74
|
]
|
|
74
75
|
|
|
75
76
|
model_config = ConfigDict(
|
|
76
|
-
|
|
77
|
+
validate_by_name=True,
|
|
78
|
+
validate_by_alias=True,
|
|
77
79
|
validate_assignment=True,
|
|
78
80
|
protected_namespaces=(),
|
|
79
81
|
)
|
|
@@ -84,8 +86,7 @@ class PartialUpdateZonePayload(BaseModel):
|
|
|
84
86
|
|
|
85
87
|
def to_json(self) -> str:
|
|
86
88
|
"""Returns the JSON representation of the model using alias"""
|
|
87
|
-
|
|
88
|
-
return json.dumps(self.to_dict())
|
|
89
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
89
90
|
|
|
90
91
|
@classmethod
|
|
91
92
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -19,6 +19,7 @@ import pprint
|
|
|
19
19
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
20
20
|
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, Field
|
|
22
|
+
from pydantic_core import to_jsonable_python
|
|
22
23
|
from typing_extensions import Annotated, Self
|
|
23
24
|
|
|
24
25
|
|
|
@@ -34,7 +35,8 @@ class Record(BaseModel):
|
|
|
34
35
|
__properties: ClassVar[List[str]] = ["content", "id"]
|
|
35
36
|
|
|
36
37
|
model_config = ConfigDict(
|
|
37
|
-
|
|
38
|
+
validate_by_name=True,
|
|
39
|
+
validate_by_alias=True,
|
|
38
40
|
validate_assignment=True,
|
|
39
41
|
protected_namespaces=(),
|
|
40
42
|
)
|
|
@@ -45,8 +47,7 @@ class Record(BaseModel):
|
|
|
45
47
|
|
|
46
48
|
def to_json(self) -> str:
|
|
47
49
|
"""Returns the JSON representation of the model using alias"""
|
|
48
|
-
|
|
49
|
-
return json.dumps(self.to_dict())
|
|
50
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
50
51
|
|
|
51
52
|
@classmethod
|
|
52
53
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -19,6 +19,7 @@ import pprint
|
|
|
19
19
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
20
20
|
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
|
|
22
|
+
from pydantic_core import to_jsonable_python
|
|
22
23
|
from typing_extensions import Self
|
|
23
24
|
|
|
24
25
|
|
|
@@ -35,7 +36,8 @@ class RecordDataExchange(BaseModel):
|
|
|
35
36
|
__properties: ClassVar[List[str]] = ["comment", "content", "name", "ttl", "type"]
|
|
36
37
|
|
|
37
38
|
model_config = ConfigDict(
|
|
38
|
-
|
|
39
|
+
validate_by_name=True,
|
|
40
|
+
validate_by_alias=True,
|
|
39
41
|
validate_assignment=True,
|
|
40
42
|
protected_namespaces=(),
|
|
41
43
|
)
|
|
@@ -46,8 +48,7 @@ class RecordDataExchange(BaseModel):
|
|
|
46
48
|
|
|
47
49
|
def to_json(self) -> str:
|
|
48
50
|
"""Returns the JSON representation of the model using alias"""
|
|
49
|
-
|
|
50
|
-
return json.dumps(self.to_dict())
|
|
51
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
51
52
|
|
|
52
53
|
@classmethod
|
|
53
54
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -19,6 +19,7 @@ import pprint
|
|
|
19
19
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
20
20
|
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, Field
|
|
22
|
+
from pydantic_core import to_jsonable_python
|
|
22
23
|
from typing_extensions import Annotated, Self
|
|
23
24
|
|
|
24
25
|
|
|
@@ -33,7 +34,8 @@ class RecordPayload(BaseModel):
|
|
|
33
34
|
__properties: ClassVar[List[str]] = ["content"]
|
|
34
35
|
|
|
35
36
|
model_config = ConfigDict(
|
|
36
|
-
|
|
37
|
+
validate_by_name=True,
|
|
38
|
+
validate_by_alias=True,
|
|
37
39
|
validate_assignment=True,
|
|
38
40
|
protected_namespaces=(),
|
|
39
41
|
)
|
|
@@ -44,8 +46,7 @@ class RecordPayload(BaseModel):
|
|
|
44
46
|
|
|
45
47
|
def to_json(self) -> str:
|
|
46
48
|
"""Returns the JSON representation of the model using alias"""
|
|
47
|
-
|
|
48
|
-
return json.dumps(self.to_dict())
|
|
49
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
49
50
|
|
|
50
51
|
@classmethod
|
|
51
52
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -26,6 +26,7 @@ from pydantic import (
|
|
|
26
26
|
StrictStr,
|
|
27
27
|
field_validator,
|
|
28
28
|
)
|
|
29
|
+
from pydantic_core import to_jsonable_python
|
|
29
30
|
from typing_extensions import Annotated, Self
|
|
30
31
|
|
|
31
32
|
from stackit.dns.models.record import Record
|
|
@@ -128,7 +129,8 @@ class RecordSet(BaseModel):
|
|
|
128
129
|
return value
|
|
129
130
|
|
|
130
131
|
model_config = ConfigDict(
|
|
131
|
-
|
|
132
|
+
validate_by_name=True,
|
|
133
|
+
validate_by_alias=True,
|
|
132
134
|
validate_assignment=True,
|
|
133
135
|
protected_namespaces=(),
|
|
134
136
|
)
|
|
@@ -139,8 +141,7 @@ class RecordSet(BaseModel):
|
|
|
139
141
|
|
|
140
142
|
def to_json(self) -> str:
|
|
141
143
|
"""Returns the JSON representation of the model using alias"""
|
|
142
|
-
|
|
143
|
-
return json.dumps(self.to_dict())
|
|
144
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
144
145
|
|
|
145
146
|
@classmethod
|
|
146
147
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -19,6 +19,7 @@ import pprint
|
|
|
19
19
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
20
20
|
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, StrictStr
|
|
22
|
+
from pydantic_core import to_jsonable_python
|
|
22
23
|
from typing_extensions import Self
|
|
23
24
|
|
|
24
25
|
from stackit.dns.models.record_set import RecordSet
|
|
@@ -34,7 +35,8 @@ class RecordSetResponse(BaseModel):
|
|
|
34
35
|
__properties: ClassVar[List[str]] = ["message", "rrset"]
|
|
35
36
|
|
|
36
37
|
model_config = ConfigDict(
|
|
37
|
-
|
|
38
|
+
validate_by_name=True,
|
|
39
|
+
validate_by_alias=True,
|
|
38
40
|
validate_assignment=True,
|
|
39
41
|
protected_namespaces=(),
|
|
40
42
|
)
|
|
@@ -45,8 +47,7 @@ class RecordSetResponse(BaseModel):
|
|
|
45
47
|
|
|
46
48
|
def to_json(self) -> str:
|
|
47
49
|
"""Returns the JSON representation of the model using alias"""
|
|
48
|
-
|
|
49
|
-
return json.dumps(self.to_dict())
|
|
50
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
50
51
|
|
|
51
52
|
@classmethod
|
|
52
53
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
{stackit_dns-0.5.1 → stackit_dns-0.6.0}/src/stackit/dns/models/validate_move_code_payload.py
RENAMED
|
@@ -19,6 +19,7 @@ import pprint
|
|
|
19
19
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
20
20
|
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, Field
|
|
22
|
+
from pydantic_core import to_jsonable_python
|
|
22
23
|
from typing_extensions import Annotated, Self
|
|
23
24
|
|
|
24
25
|
|
|
@@ -33,7 +34,8 @@ class ValidateMoveCodePayload(BaseModel):
|
|
|
33
34
|
__properties: ClassVar[List[str]] = ["code"]
|
|
34
35
|
|
|
35
36
|
model_config = ConfigDict(
|
|
36
|
-
|
|
37
|
+
validate_by_name=True,
|
|
38
|
+
validate_by_alias=True,
|
|
37
39
|
validate_assignment=True,
|
|
38
40
|
protected_namespaces=(),
|
|
39
41
|
)
|
|
@@ -44,8 +46,7 @@ class ValidateMoveCodePayload(BaseModel):
|
|
|
44
46
|
|
|
45
47
|
def to_json(self) -> str:
|
|
46
48
|
"""Returns the JSON representation of the model using alias"""
|
|
47
|
-
|
|
48
|
-
return json.dumps(self.to_dict())
|
|
49
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
49
50
|
|
|
50
51
|
@classmethod
|
|
51
52
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -27,6 +27,7 @@ from pydantic import (
|
|
|
27
27
|
StrictStr,
|
|
28
28
|
field_validator,
|
|
29
29
|
)
|
|
30
|
+
from pydantic_core import to_jsonable_python
|
|
30
31
|
from typing_extensions import Annotated, Self
|
|
31
32
|
|
|
32
33
|
from stackit.dns.models.domain_extensions import DomainExtensions
|
|
@@ -155,7 +156,8 @@ class Zone(BaseModel):
|
|
|
155
156
|
return value
|
|
156
157
|
|
|
157
158
|
model_config = ConfigDict(
|
|
158
|
-
|
|
159
|
+
validate_by_name=True,
|
|
160
|
+
validate_by_alias=True,
|
|
159
161
|
validate_assignment=True,
|
|
160
162
|
protected_namespaces=(),
|
|
161
163
|
)
|
|
@@ -166,8 +168,7 @@ class Zone(BaseModel):
|
|
|
166
168
|
|
|
167
169
|
def to_json(self) -> str:
|
|
168
170
|
"""Returns the JSON representation of the model using alias"""
|
|
169
|
-
|
|
170
|
-
return json.dumps(self.to_dict())
|
|
171
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
171
172
|
|
|
172
173
|
@classmethod
|
|
173
174
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -19,6 +19,7 @@ import pprint
|
|
|
19
19
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
20
20
|
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, Field
|
|
22
|
+
from pydantic_core import to_jsonable_python
|
|
22
23
|
from typing_extensions import Self
|
|
23
24
|
|
|
24
25
|
from stackit.dns.models.record_data_exchange import RecordDataExchange
|
|
@@ -33,7 +34,8 @@ class ZoneDataExchange(BaseModel):
|
|
|
33
34
|
__properties: ClassVar[List[str]] = ["rrSets"]
|
|
34
35
|
|
|
35
36
|
model_config = ConfigDict(
|
|
36
|
-
|
|
37
|
+
validate_by_name=True,
|
|
38
|
+
validate_by_alias=True,
|
|
37
39
|
validate_assignment=True,
|
|
38
40
|
protected_namespaces=(),
|
|
39
41
|
)
|
|
@@ -44,8 +46,7 @@ class ZoneDataExchange(BaseModel):
|
|
|
44
46
|
|
|
45
47
|
def to_json(self) -> str:
|
|
46
48
|
"""Returns the JSON representation of the model using alias"""
|
|
47
|
-
|
|
48
|
-
return json.dumps(self.to_dict())
|
|
49
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
49
50
|
|
|
50
51
|
@classmethod
|
|
51
52
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -19,6 +19,7 @@ import pprint
|
|
|
19
19
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
20
20
|
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, Field
|
|
22
|
+
from pydantic_core import to_jsonable_python
|
|
22
23
|
from typing_extensions import Self
|
|
23
24
|
|
|
24
25
|
from stackit.dns.models.zone_observability_extension import ZoneObservabilityExtension
|
|
@@ -33,7 +34,8 @@ class ZoneExtensions(BaseModel):
|
|
|
33
34
|
__properties: ClassVar[List[str]] = ["observabilityExtension"]
|
|
34
35
|
|
|
35
36
|
model_config = ConfigDict(
|
|
36
|
-
|
|
37
|
+
validate_by_name=True,
|
|
38
|
+
validate_by_alias=True,
|
|
37
39
|
validate_assignment=True,
|
|
38
40
|
protected_namespaces=(),
|
|
39
41
|
)
|
|
@@ -44,8 +46,7 @@ class ZoneExtensions(BaseModel):
|
|
|
44
46
|
|
|
45
47
|
def to_json(self) -> str:
|
|
46
48
|
"""Returns the JSON representation of the model using alias"""
|
|
47
|
-
|
|
48
|
-
return json.dumps(self.to_dict())
|
|
49
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
49
50
|
|
|
50
51
|
@classmethod
|
|
51
52
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
{stackit_dns-0.5.1 → stackit_dns-0.6.0}/src/stackit/dns/models/zone_models_import_record_model.py
RENAMED
|
@@ -19,6 +19,7 @@ import pprint
|
|
|
19
19
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
20
20
|
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
|
|
22
|
+
from pydantic_core import to_jsonable_python
|
|
22
23
|
from typing_extensions import Self
|
|
23
24
|
|
|
24
25
|
|
|
@@ -35,7 +36,8 @@ class ZoneModelsImportRecordModel(BaseModel):
|
|
|
35
36
|
__properties: ClassVar[List[str]] = ["comment", "content", "name", "ttl", "type"]
|
|
36
37
|
|
|
37
38
|
model_config = ConfigDict(
|
|
38
|
-
|
|
39
|
+
validate_by_name=True,
|
|
40
|
+
validate_by_alias=True,
|
|
39
41
|
validate_assignment=True,
|
|
40
42
|
protected_namespaces=(),
|
|
41
43
|
)
|
|
@@ -46,8 +48,7 @@ class ZoneModelsImportRecordModel(BaseModel):
|
|
|
46
48
|
|
|
47
49
|
def to_json(self) -> str:
|
|
48
50
|
"""Returns the JSON representation of the model using alias"""
|
|
49
|
-
|
|
50
|
-
return json.dumps(self.to_dict())
|
|
51
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
51
52
|
|
|
52
53
|
@classmethod
|
|
53
54
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
{stackit_dns-0.5.1 → stackit_dns-0.6.0}/src/stackit/dns/models/zone_models_import_zone_json.py
RENAMED
|
@@ -19,6 +19,7 @@ import pprint
|
|
|
19
19
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
20
20
|
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, Field
|
|
22
|
+
from pydantic_core import to_jsonable_python
|
|
22
23
|
from typing_extensions import Self
|
|
23
24
|
|
|
24
25
|
from stackit.dns.models.zone_models_import_record_model import (
|
|
@@ -35,7 +36,8 @@ class ZoneModelsImportZoneJson(BaseModel):
|
|
|
35
36
|
__properties: ClassVar[List[str]] = ["rrSets"]
|
|
36
37
|
|
|
37
38
|
model_config = ConfigDict(
|
|
38
|
-
|
|
39
|
+
validate_by_name=True,
|
|
40
|
+
validate_by_alias=True,
|
|
39
41
|
validate_assignment=True,
|
|
40
42
|
protected_namespaces=(),
|
|
41
43
|
)
|
|
@@ -46,8 +48,7 @@ class ZoneModelsImportZoneJson(BaseModel):
|
|
|
46
48
|
|
|
47
49
|
def to_json(self) -> str:
|
|
48
50
|
"""Returns the JSON representation of the model using alias"""
|
|
49
|
-
|
|
50
|
-
return json.dumps(self.to_dict())
|
|
51
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
51
52
|
|
|
52
53
|
@classmethod
|
|
53
54
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
{stackit_dns-0.5.1 → stackit_dns-0.6.0}/src/stackit/dns/models/zone_observability_extension.py
RENAMED
|
@@ -19,6 +19,7 @@ import pprint
|
|
|
19
19
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
20
20
|
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
22
|
+
from pydantic_core import to_jsonable_python
|
|
22
23
|
from typing_extensions import Self
|
|
23
24
|
|
|
24
25
|
|
|
@@ -32,7 +33,8 @@ class ZoneObservabilityExtension(BaseModel):
|
|
|
32
33
|
__properties: ClassVar[List[str]] = ["observabilityInstanceId", "state"]
|
|
33
34
|
|
|
34
35
|
model_config = ConfigDict(
|
|
35
|
-
|
|
36
|
+
validate_by_name=True,
|
|
37
|
+
validate_by_alias=True,
|
|
36
38
|
validate_assignment=True,
|
|
37
39
|
protected_namespaces=(),
|
|
38
40
|
)
|
|
@@ -43,8 +45,7 @@ class ZoneObservabilityExtension(BaseModel):
|
|
|
43
45
|
|
|
44
46
|
def to_json(self) -> str:
|
|
45
47
|
"""Returns the JSON representation of the model using alias"""
|
|
46
|
-
|
|
47
|
-
return json.dumps(self.to_dict())
|
|
48
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
48
49
|
|
|
49
50
|
@classmethod
|
|
50
51
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -19,6 +19,7 @@ import pprint
|
|
|
19
19
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
20
20
|
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, StrictStr
|
|
22
|
+
from pydantic_core import to_jsonable_python
|
|
22
23
|
from typing_extensions import Self
|
|
23
24
|
|
|
24
25
|
from stackit.dns.models.zone import Zone
|
|
@@ -34,7 +35,8 @@ class ZoneResponse(BaseModel):
|
|
|
34
35
|
__properties: ClassVar[List[str]] = ["message", "zone"]
|
|
35
36
|
|
|
36
37
|
model_config = ConfigDict(
|
|
37
|
-
|
|
38
|
+
validate_by_name=True,
|
|
39
|
+
validate_by_alias=True,
|
|
38
40
|
validate_assignment=True,
|
|
39
41
|
protected_namespaces=(),
|
|
40
42
|
)
|
|
@@ -45,8 +47,7 @@ class ZoneResponse(BaseModel):
|
|
|
45
47
|
|
|
46
48
|
def to_json(self) -> str:
|
|
47
49
|
"""Returns the JSON representation of the model using alias"""
|
|
48
|
-
|
|
49
|
-
return json.dumps(self.to_dict())
|
|
50
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
50
51
|
|
|
51
52
|
@classmethod
|
|
52
53
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|