stackit-serverupdate 1.1.1__tar.gz → 1.2.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_serverupdate-1.1.1 → stackit_serverupdate-1.2.0}/PKG-INFO +1 -1
- {stackit_serverupdate-1.1.1 → stackit_serverupdate-1.2.0}/pyproject.toml +1 -1
- {stackit_serverupdate-1.1.1 → stackit_serverupdate-1.2.0}/src/stackit/serverupdate/api_client.py +15 -17
- {stackit_serverupdate-1.1.1 → stackit_serverupdate-1.2.0}/src/stackit/serverupdate/models/create_update_payload.py +4 -3
- {stackit_serverupdate-1.1.1 → stackit_serverupdate-1.2.0}/src/stackit/serverupdate/models/create_update_schedule_payload.py +4 -3
- {stackit_serverupdate-1.1.1 → stackit_serverupdate-1.2.0}/src/stackit/serverupdate/models/enable_service_resource_payload.py +4 -3
- {stackit_serverupdate-1.1.1 → stackit_serverupdate-1.2.0}/src/stackit/serverupdate/models/error_response.py +4 -3
- {stackit_serverupdate-1.1.1 → stackit_serverupdate-1.2.0}/src/stackit/serverupdate/models/get_update_policies_response.py +4 -3
- {stackit_serverupdate-1.1.1 → stackit_serverupdate-1.2.0}/src/stackit/serverupdate/models/get_update_schedules_response.py +4 -3
- {stackit_serverupdate-1.1.1 → stackit_serverupdate-1.2.0}/src/stackit/serverupdate/models/get_update_service_response.py +4 -3
- {stackit_serverupdate-1.1.1 → stackit_serverupdate-1.2.0}/src/stackit/serverupdate/models/get_updates_list_response.py +4 -3
- {stackit_serverupdate-1.1.1 → stackit_serverupdate-1.2.0}/src/stackit/serverupdate/models/update.py +4 -3
- {stackit_serverupdate-1.1.1 → stackit_serverupdate-1.2.0}/src/stackit/serverupdate/models/update_policy.py +4 -3
- {stackit_serverupdate-1.1.1 → stackit_serverupdate-1.2.0}/src/stackit/serverupdate/models/update_schedule.py +4 -3
- {stackit_serverupdate-1.1.1 → stackit_serverupdate-1.2.0}/src/stackit/serverupdate/models/update_schedule_create_request.py +4 -3
- {stackit_serverupdate-1.1.1 → stackit_serverupdate-1.2.0}/src/stackit/serverupdate/models/update_update_schedule_payload.py +4 -3
- {stackit_serverupdate-1.1.1 → stackit_serverupdate-1.2.0}/.gitignore +0 -0
- {stackit_serverupdate-1.1.1 → stackit_serverupdate-1.2.0}/LICENSE.md +0 -0
- {stackit_serverupdate-1.1.1 → stackit_serverupdate-1.2.0}/NOTICE.txt +0 -0
- {stackit_serverupdate-1.1.1 → stackit_serverupdate-1.2.0}/README.md +0 -0
- {stackit_serverupdate-1.1.1 → stackit_serverupdate-1.2.0}/src/stackit/serverupdate/__init__.py +0 -0
- {stackit_serverupdate-1.1.1 → stackit_serverupdate-1.2.0}/src/stackit/serverupdate/api/__init__.py +0 -0
- {stackit_serverupdate-1.1.1 → stackit_serverupdate-1.2.0}/src/stackit/serverupdate/api/default_api.py +0 -0
- {stackit_serverupdate-1.1.1 → stackit_serverupdate-1.2.0}/src/stackit/serverupdate/api_response.py +0 -0
- {stackit_serverupdate-1.1.1 → stackit_serverupdate-1.2.0}/src/stackit/serverupdate/configuration.py +0 -0
- {stackit_serverupdate-1.1.1 → stackit_serverupdate-1.2.0}/src/stackit/serverupdate/exceptions.py +0 -0
- {stackit_serverupdate-1.1.1 → stackit_serverupdate-1.2.0}/src/stackit/serverupdate/models/__init__.py +0 -0
- {stackit_serverupdate-1.1.1 → stackit_serverupdate-1.2.0}/src/stackit/serverupdate/py.typed +0 -0
- {stackit_serverupdate-1.1.1 → stackit_serverupdate-1.2.0}/src/stackit/serverupdate/rest.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: stackit-serverupdate
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.2.0
|
|
4
4
|
Summary: STACKIT Server Update Management API
|
|
5
5
|
Project-URL: Homepage, https://github.com/stackitcloud/stackit-sdk-python
|
|
6
6
|
Project-URL: Issues, https://github.com/stackitcloud/stackit-sdk-python/issues
|
{stackit_serverupdate-1.1.1 → stackit_serverupdate-1.2.0}/src/stackit/serverupdate/api_client.py
RENAMED
|
@@ -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
|
|
|
@@ -35,7 +36,8 @@ class CreateUpdatePayload(BaseModel):
|
|
|
35
36
|
__properties: ClassVar[List[str]] = ["backupBeforeUpdate", "maintenanceWindow"]
|
|
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 CreateUpdatePayload(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]:
|
|
@@ -25,6 +25,7 @@ from pydantic import (
|
|
|
25
25
|
StrictBool,
|
|
26
26
|
StrictStr,
|
|
27
27
|
)
|
|
28
|
+
from pydantic_core import to_jsonable_python
|
|
28
29
|
from typing_extensions import Annotated, Self
|
|
29
30
|
|
|
30
31
|
|
|
@@ -45,7 +46,8 @@ class CreateUpdateSchedulePayload(BaseModel):
|
|
|
45
46
|
__properties: ClassVar[List[str]] = ["enabled", "maintenanceWindow", "name", "rrule"]
|
|
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 CreateUpdateSchedulePayload(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]:
|
|
@@ -20,6 +20,7 @@ from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
|
20
20
|
from uuid import UUID
|
|
21
21
|
|
|
22
22
|
from pydantic import BaseModel, ConfigDict, Field
|
|
23
|
+
from pydantic_core import to_jsonable_python
|
|
23
24
|
from typing_extensions import Self
|
|
24
25
|
|
|
25
26
|
|
|
@@ -32,7 +33,8 @@ class EnableServiceResourcePayload(BaseModel):
|
|
|
32
33
|
__properties: ClassVar[List[str]] = ["updatePolicyId"]
|
|
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 EnableServiceResourcePayload(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, Field, StrictStr
|
|
22
|
+
from pydantic_core import to_jsonable_python
|
|
22
23
|
from typing_extensions import Self
|
|
23
24
|
|
|
24
25
|
|
|
@@ -34,7 +35,8 @@ class ErrorResponse(BaseModel):
|
|
|
34
35
|
__properties: ClassVar[List[str]] = ["message", "status"]
|
|
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 ErrorResponse(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
|
|
22
|
+
from pydantic_core import to_jsonable_python
|
|
22
23
|
from typing_extensions import Self
|
|
23
24
|
|
|
24
25
|
from stackit.serverupdate.models.update_policy import UpdatePolicy
|
|
@@ -33,7 +34,8 @@ class GetUpdatePoliciesResponse(BaseModel):
|
|
|
33
34
|
__properties: ClassVar[List[str]] = ["items"]
|
|
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 GetUpdatePoliciesResponse(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
|
|
22
|
+
from pydantic_core import to_jsonable_python
|
|
22
23
|
from typing_extensions import Self
|
|
23
24
|
|
|
24
25
|
from stackit.serverupdate.models.update_schedule import UpdateSchedule
|
|
@@ -33,7 +34,8 @@ class GetUpdateSchedulesResponse(BaseModel):
|
|
|
33
34
|
__properties: ClassVar[List[str]] = ["items"]
|
|
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 GetUpdateSchedulesResponse(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, StrictBool
|
|
22
|
+
from pydantic_core import to_jsonable_python
|
|
22
23
|
from typing_extensions import Self
|
|
23
24
|
|
|
24
25
|
|
|
@@ -31,7 +32,8 @@ class GetUpdateServiceResponse(BaseModel):
|
|
|
31
32
|
__properties: ClassVar[List[str]] = ["enabled"]
|
|
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 GetUpdateServiceResponse(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
|
|
22
|
+
from pydantic_core import to_jsonable_python
|
|
22
23
|
from typing_extensions import Self
|
|
23
24
|
|
|
24
25
|
from stackit.serverupdate.models.update import Update
|
|
@@ -33,7 +34,8 @@ class GetUpdatesListResponse(BaseModel):
|
|
|
33
34
|
__properties: ClassVar[List[str]] = ["items"]
|
|
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 GetUpdatesListResponse(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_serverupdate-1.1.1 → stackit_serverupdate-1.2.0}/src/stackit/serverupdate/models/update.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, StrictInt, StrictStr
|
|
22
|
+
from pydantic_core import to_jsonable_python
|
|
22
23
|
from typing_extensions import Self
|
|
23
24
|
|
|
24
25
|
|
|
@@ -45,7 +46,8 @@ class Update(BaseModel):
|
|
|
45
46
|
]
|
|
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 Update(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]:
|
|
@@ -26,6 +26,7 @@ from pydantic import (
|
|
|
26
26
|
StrictInt,
|
|
27
27
|
StrictStr,
|
|
28
28
|
)
|
|
29
|
+
from pydantic_core import to_jsonable_python
|
|
29
30
|
from typing_extensions import Self
|
|
30
31
|
|
|
31
32
|
|
|
@@ -59,7 +60,8 @@ class UpdatePolicy(BaseModel):
|
|
|
59
60
|
]
|
|
60
61
|
|
|
61
62
|
model_config = ConfigDict(
|
|
62
|
-
|
|
63
|
+
validate_by_name=True,
|
|
64
|
+
validate_by_alias=True,
|
|
63
65
|
validate_assignment=True,
|
|
64
66
|
protected_namespaces=(),
|
|
65
67
|
)
|
|
@@ -70,8 +72,7 @@ class UpdatePolicy(BaseModel):
|
|
|
70
72
|
|
|
71
73
|
def to_json(self) -> str:
|
|
72
74
|
"""Returns the JSON representation of the model using alias"""
|
|
73
|
-
|
|
74
|
-
return json.dumps(self.to_dict())
|
|
75
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
75
76
|
|
|
76
77
|
@classmethod
|
|
77
78
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -26,6 +26,7 @@ from pydantic import (
|
|
|
26
26
|
StrictInt,
|
|
27
27
|
StrictStr,
|
|
28
28
|
)
|
|
29
|
+
from pydantic_core import to_jsonable_python
|
|
29
30
|
from typing_extensions import Annotated, Self
|
|
30
31
|
|
|
31
32
|
|
|
@@ -47,7 +48,8 @@ class UpdateSchedule(BaseModel):
|
|
|
47
48
|
__properties: ClassVar[List[str]] = ["enabled", "maintenanceWindow", "name", "rrule", "id"]
|
|
48
49
|
|
|
49
50
|
model_config = ConfigDict(
|
|
50
|
-
|
|
51
|
+
validate_by_name=True,
|
|
52
|
+
validate_by_alias=True,
|
|
51
53
|
validate_assignment=True,
|
|
52
54
|
protected_namespaces=(),
|
|
53
55
|
)
|
|
@@ -58,8 +60,7 @@ class UpdateSchedule(BaseModel):
|
|
|
58
60
|
|
|
59
61
|
def to_json(self) -> str:
|
|
60
62
|
"""Returns the JSON representation of the model using alias"""
|
|
61
|
-
|
|
62
|
-
return json.dumps(self.to_dict())
|
|
63
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
63
64
|
|
|
64
65
|
@classmethod
|
|
65
66
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -25,6 +25,7 @@ from pydantic import (
|
|
|
25
25
|
StrictBool,
|
|
26
26
|
StrictStr,
|
|
27
27
|
)
|
|
28
|
+
from pydantic_core import to_jsonable_python
|
|
28
29
|
from typing_extensions import Annotated, Self
|
|
29
30
|
|
|
30
31
|
|
|
@@ -45,7 +46,8 @@ class UpdateScheduleCreateRequest(BaseModel):
|
|
|
45
46
|
__properties: ClassVar[List[str]] = ["enabled", "maintenanceWindow", "name", "rrule"]
|
|
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 UpdateScheduleCreateRequest(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]:
|
|
@@ -25,6 +25,7 @@ from pydantic import (
|
|
|
25
25
|
StrictBool,
|
|
26
26
|
StrictStr,
|
|
27
27
|
)
|
|
28
|
+
from pydantic_core import to_jsonable_python
|
|
28
29
|
from typing_extensions import Annotated, Self
|
|
29
30
|
|
|
30
31
|
|
|
@@ -45,7 +46,8 @@ class UpdateUpdateSchedulePayload(BaseModel):
|
|
|
45
46
|
__properties: ClassVar[List[str]] = ["enabled", "maintenanceWindow", "name", "rrule"]
|
|
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 UpdateUpdateSchedulePayload(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]:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{stackit_serverupdate-1.1.1 → stackit_serverupdate-1.2.0}/src/stackit/serverupdate/__init__.py
RENAMED
|
File without changes
|
{stackit_serverupdate-1.1.1 → stackit_serverupdate-1.2.0}/src/stackit/serverupdate/api/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{stackit_serverupdate-1.1.1 → stackit_serverupdate-1.2.0}/src/stackit/serverupdate/api_response.py
RENAMED
|
File without changes
|
{stackit_serverupdate-1.1.1 → stackit_serverupdate-1.2.0}/src/stackit/serverupdate/configuration.py
RENAMED
|
File without changes
|
{stackit_serverupdate-1.1.1 → stackit_serverupdate-1.2.0}/src/stackit/serverupdate/exceptions.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|