stackit-serverbackup 1.1.2__py3-none-any.whl → 1.3.0__py3-none-any.whl

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.
Files changed (32) hide show
  1. stackit/serverbackup/__init__.py +6 -7
  2. stackit/serverbackup/api/default_api.py +6 -6
  3. stackit/serverbackup/api_client.py +21 -24
  4. stackit/serverbackup/api_response.py +0 -1
  5. stackit/serverbackup/configuration.py +6 -7
  6. stackit/serverbackup/exceptions.py +6 -6
  7. stackit/serverbackup/models/__init__.py +6 -6
  8. stackit/serverbackup/models/backup.py +10 -9
  9. stackit/serverbackup/models/backup_job.py +10 -9
  10. stackit/serverbackup/models/backup_policy.py +10 -9
  11. stackit/serverbackup/models/backup_policy_backup_properties.py +10 -9
  12. stackit/serverbackup/models/backup_properties.py +10 -9
  13. stackit/serverbackup/models/backup_schedule.py +10 -9
  14. stackit/serverbackup/models/backup_volume_backups_inner.py +10 -9
  15. stackit/serverbackup/models/create_backup_payload.py +10 -9
  16. stackit/serverbackup/models/create_backup_schedule_payload.py +10 -9
  17. stackit/serverbackup/models/enable_service_resource_payload.py +10 -9
  18. stackit/serverbackup/models/error_response.py +10 -9
  19. stackit/serverbackup/models/get_backup_policies_response.py +10 -9
  20. stackit/serverbackup/models/get_backup_schedules_response.py +10 -9
  21. stackit/serverbackup/models/get_backup_service_response.py +10 -9
  22. stackit/serverbackup/models/get_backups_list_response.py +10 -9
  23. stackit/serverbackup/models/restore_backup_payload.py +10 -9
  24. stackit/serverbackup/models/restore_volume_backup_payload.py +10 -9
  25. stackit/serverbackup/models/update_backup_schedule_payload.py +10 -9
  26. stackit/serverbackup/rest.py +6 -7
  27. {stackit_serverbackup-1.1.2.dist-info → stackit_serverbackup-1.3.0.dist-info}/METADATA +3 -4
  28. stackit_serverbackup-1.3.0.dist-info/RECORD +33 -0
  29. {stackit_serverbackup-1.1.2.dist-info → stackit_serverbackup-1.3.0.dist-info}/WHEEL +1 -1
  30. stackit_serverbackup-1.1.2.dist-info/RECORD +0 -33
  31. {stackit_serverbackup-1.1.2.dist-info → stackit_serverbackup-1.3.0.dist-info}/licenses/LICENSE.md +0 -0
  32. {stackit_serverbackup-1.1.2.dist-info → stackit_serverbackup-1.3.0.dist-info}/licenses/NOTICE.txt +0 -0
@@ -3,18 +3,17 @@
3
3
  # flake8: noqa
4
4
 
5
5
  """
6
- STACKIT Server Backup Management API
6
+ STACKIT Server Backup Management API
7
7
 
8
- API endpoints for Server Backup Operations on STACKIT Servers.
8
+ API endpoints for Server Backup Operations on STACKIT Servers.
9
9
 
10
- The version of the OpenAPI document: 2.0
11
- Contact: support@stackit.de
12
- Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+ The version of the OpenAPI document: 2.0
11
+ Contact: support@stackit.de
12
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
13
13
 
14
- Do not edit the class manually.
14
+ Do not edit the class manually.
15
15
  """ # noqa: E501
16
16
 
17
-
18
17
  __version__ = "1.0.0"
19
18
 
20
19
  # Define package exports
@@ -1,15 +1,15 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT Server Backup Management API
4
+ STACKIT Server Backup Management API
5
5
 
6
- API endpoints for Server Backup Operations on STACKIT Servers.
6
+ API endpoints for Server Backup Operations on STACKIT Servers.
7
7
 
8
- The version of the OpenAPI document: 2.0
9
- Contact: support@stackit.de
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 2.0
9
+ Contact: support@stackit.de
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
- Do not edit the class manually.
12
+ Do not edit the class manually.
13
13
  """ # noqa: E501
14
14
 
15
15
  from typing import Any, Dict, List, Optional, Tuple, Union
@@ -1,15 +1,15 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT Server Backup Management API
4
+ STACKIT Server Backup Management API
5
5
 
6
- API endpoints for Server Backup Operations on STACKIT Servers.
6
+ API endpoints for Server Backup Operations on STACKIT Servers.
7
7
 
8
- The version of the OpenAPI document: 2.0
9
- Contact: support@stackit.de
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 2.0
9
+ Contact: support@stackit.de
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
- Do not edit the class manually.
12
+ Do not edit the class manually.
13
13
  """ # noqa: E501
14
14
 
15
15
  import datetime
@@ -37,7 +37,6 @@ from stackit.serverbackup.exceptions import (
37
37
  ApiException,
38
38
  )
39
39
 
40
-
41
40
  RequestSerialized = Tuple[str, str, Dict[str, str], Optional[str], List[str]]
42
41
 
43
42
 
@@ -67,6 +66,7 @@ class ApiClient:
67
66
  "date": datetime.date,
68
67
  "datetime": datetime.datetime,
69
68
  "decimal": decimal.Decimal,
69
+ "UUID": uuid.UUID,
70
70
  "object": object,
71
71
  }
72
72
  _pool = None
@@ -266,7 +266,7 @@ class ApiClient:
266
266
  response_text = None
267
267
  return_data = None
268
268
  try:
269
- if response_type == "bytearray":
269
+ if response_type in ("bytearray", "bytes"):
270
270
  return_data = response_data.data
271
271
  elif response_type == "file":
272
272
  return_data = self.__deserialize_file(response_data)
@@ -327,25 +327,20 @@ class ApiClient:
327
327
  return obj.isoformat()
328
328
  elif isinstance(obj, decimal.Decimal):
329
329
  return str(obj)
330
-
331
330
  elif isinstance(obj, dict):
332
- obj_dict = obj
331
+ return {key: self.sanitize_for_serialization(val) for key, val in obj.items()}
332
+
333
+ # Convert model obj to dict except
334
+ # attributes `openapi_types`, `attribute_map`
335
+ # and attributes which value is not None.
336
+ # Convert attribute name to json key in
337
+ # model definition for request.
338
+ if hasattr(obj, "to_dict") and callable(getattr(obj, "to_dict")): # noqa: B009
339
+ obj_dict = obj.to_dict()
333
340
  else:
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()
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)
341
+ obj_dict = obj.__dict__
347
342
 
348
- return {key: self.sanitize_for_serialization(val) for key, val in obj_dict.items()}
343
+ return self.sanitize_for_serialization(obj_dict)
349
344
 
350
345
  def deserialize(self, response_text: str, response_type: str, content_type: Optional[str]):
351
346
  """Deserializes response into an object.
@@ -418,6 +413,8 @@ class ApiClient:
418
413
  return self.__deserialize_datetime(data)
419
414
  elif klass is decimal.Decimal:
420
415
  return decimal.Decimal(data)
416
+ elif klass is uuid.UUID:
417
+ return uuid.UUID(data)
421
418
  elif issubclass(klass, Enum):
422
419
  return self.__deserialize_enum(data, klass)
423
420
  else:
@@ -6,7 +6,6 @@ from typing import Generic, Mapping, Optional, TypeVar
6
6
 
7
7
  from pydantic import BaseModel, Field, StrictBytes, StrictInt
8
8
 
9
-
10
9
  T = TypeVar("T")
11
10
 
12
11
 
@@ -1,15 +1,15 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT Server Backup Management API
4
+ STACKIT Server Backup Management API
5
5
 
6
- API endpoints for Server Backup Operations on STACKIT Servers.
6
+ API endpoints for Server Backup Operations on STACKIT Servers.
7
7
 
8
- The version of the OpenAPI document: 2.0
9
- Contact: support@stackit.de
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 2.0
9
+ Contact: support@stackit.de
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
- Do not edit the class manually.
12
+ Do not edit the class manually.
13
13
  """ # noqa: E501
14
14
 
15
15
  import sys
@@ -19,7 +19,6 @@ from typing_extensions import NotRequired
19
19
 
20
20
  import os
21
21
 
22
-
23
22
  ServerVariablesT = Dict[str, str]
24
23
 
25
24
 
@@ -1,15 +1,15 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT Server Backup Management API
4
+ STACKIT Server Backup Management API
5
5
 
6
- API endpoints for Server Backup Operations on STACKIT Servers.
6
+ API endpoints for Server Backup Operations on STACKIT Servers.
7
7
 
8
- The version of the OpenAPI document: 2.0
9
- Contact: support@stackit.de
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 2.0
9
+ Contact: support@stackit.de
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
- Do not edit the class manually.
12
+ Do not edit the class manually.
13
13
  """ # noqa: E501
14
14
 
15
15
  from typing import Any, Optional
@@ -2,15 +2,15 @@
2
2
 
3
3
  # flake8: noqa
4
4
  """
5
- STACKIT Server Backup Management API
5
+ STACKIT Server Backup Management API
6
6
 
7
- API endpoints for Server Backup Operations on STACKIT Servers.
7
+ API endpoints for Server Backup Operations on STACKIT Servers.
8
8
 
9
- The version of the OpenAPI document: 2.0
10
- Contact: support@stackit.de
11
- Generated by OpenAPI Generator (https://openapi-generator.tech)
9
+ The version of the OpenAPI document: 2.0
10
+ Contact: support@stackit.de
11
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
12
12
 
13
- Do not edit the class manually.
13
+ Do not edit the class manually.
14
14
  """ # noqa: E501
15
15
 
16
16
  # import models into model package
@@ -1,15 +1,15 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT Server Backup Management API
4
+ STACKIT Server Backup Management API
5
5
 
6
- API endpoints for Server Backup Operations on STACKIT Servers.
6
+ API endpoints for Server Backup Operations on STACKIT Servers.
7
7
 
8
- The version of the OpenAPI document: 2.0
9
- Contact: support@stackit.de
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 2.0
9
+ Contact: support@stackit.de
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
- Do not edit the class manually.
12
+ Do not edit the class manually.
13
13
  """ # noqa: E501
14
14
 
15
15
  from __future__ import annotations
@@ -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, field_validator
22
+ from pydantic_core import to_jsonable_python
22
23
  from typing_extensions import Self
23
24
 
24
25
  from stackit.serverbackup.models.backup_volume_backups_inner import (
@@ -71,7 +72,8 @@ class Backup(BaseModel):
71
72
  return value
72
73
 
73
74
  model_config = ConfigDict(
74
- populate_by_name=True,
75
+ validate_by_name=True,
76
+ validate_by_alias=True,
75
77
  validate_assignment=True,
76
78
  protected_namespaces=(),
77
79
  )
@@ -82,8 +84,7 @@ class Backup(BaseModel):
82
84
 
83
85
  def to_json(self) -> str:
84
86
  """Returns the JSON representation of the model using alias"""
85
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
86
- return json.dumps(self.to_dict())
87
+ return json.dumps(to_jsonable_python(self.to_dict()))
87
88
 
88
89
  @classmethod
89
90
  def from_json(cls, json_str: str) -> Optional[Self]:
@@ -1,15 +1,15 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT Server Backup Management API
4
+ STACKIT Server Backup Management API
5
5
 
6
- API endpoints for Server Backup Operations on STACKIT Servers.
6
+ API endpoints for Server Backup Operations on STACKIT Servers.
7
7
 
8
- The version of the OpenAPI document: 2.0
9
- Contact: support@stackit.de
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 2.0
9
+ Contact: support@stackit.de
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
- Do not edit the class manually.
12
+ Do not edit the class manually.
13
13
  """ # noqa: E501
14
14
 
15
15
  from __future__ import annotations
@@ -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 BackupJob(BaseModel):
31
32
  __properties: ClassVar[List[str]] = ["id"]
32
33
 
33
34
  model_config = ConfigDict(
34
- populate_by_name=True,
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 BackupJob(BaseModel):
42
44
 
43
45
  def to_json(self) -> str:
44
46
  """Returns the JSON representation of the model using alias"""
45
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
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]:
@@ -1,15 +1,15 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT Server Backup Management API
4
+ STACKIT Server Backup Management API
5
5
 
6
- API endpoints for Server Backup Operations on STACKIT Servers.
6
+ API endpoints for Server Backup Operations on STACKIT Servers.
7
7
 
8
- The version of the OpenAPI document: 2.0
9
- Contact: support@stackit.de
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 2.0
9
+ Contact: support@stackit.de
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
- Do not edit the class manually.
12
+ Do not edit the class manually.
13
13
  """ # noqa: E501
14
14
 
15
15
  from __future__ import annotations
@@ -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 Self
29
30
 
30
31
  from stackit.serverbackup.models.backup_policy_backup_properties import (
@@ -50,7 +51,8 @@ class BackupPolicy(BaseModel):
50
51
  __properties: ClassVar[List[str]] = ["backupProperties", "default", "description", "enabled", "id", "name", "rrule"]
51
52
 
52
53
  model_config = ConfigDict(
53
- populate_by_name=True,
54
+ validate_by_name=True,
55
+ validate_by_alias=True,
54
56
  validate_assignment=True,
55
57
  protected_namespaces=(),
56
58
  )
@@ -61,8 +63,7 @@ class BackupPolicy(BaseModel):
61
63
 
62
64
  def to_json(self) -> str:
63
65
  """Returns the JSON representation of the model using alias"""
64
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
65
- return json.dumps(self.to_dict())
66
+ return json.dumps(to_jsonable_python(self.to_dict()))
66
67
 
67
68
  @classmethod
68
69
  def from_json(cls, json_str: str) -> Optional[Self]:
@@ -1,15 +1,15 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT Server Backup Management API
4
+ STACKIT Server Backup Management API
5
5
 
6
- API endpoints for Server Backup Operations on STACKIT Servers.
6
+ API endpoints for Server Backup Operations on STACKIT Servers.
7
7
 
8
- The version of the OpenAPI document: 2.0
9
- Contact: support@stackit.de
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 2.0
9
+ Contact: support@stackit.de
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
- Do not edit the class manually.
12
+ Do not edit the class manually.
13
13
  """ # noqa: E501
14
14
 
15
15
  from __future__ import annotations
@@ -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
 
@@ -32,7 +33,8 @@ class BackupPolicyBackupProperties(BaseModel):
32
33
  __properties: ClassVar[List[str]] = ["name", "retentionPeriod"]
33
34
 
34
35
  model_config = ConfigDict(
35
- populate_by_name=True,
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 BackupPolicyBackupProperties(BaseModel):
43
45
 
44
46
  def to_json(self) -> str:
45
47
  """Returns the JSON representation of the model using alias"""
46
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
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]:
@@ -1,15 +1,15 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT Server Backup Management API
4
+ STACKIT Server Backup Management API
5
5
 
6
- API endpoints for Server Backup Operations on STACKIT Servers.
6
+ API endpoints for Server Backup Operations on STACKIT Servers.
7
7
 
8
- The version of the OpenAPI document: 2.0
9
- Contact: support@stackit.de
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 2.0
9
+ Contact: support@stackit.de
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
- Do not edit the class manually.
12
+ Do not edit the class manually.
13
13
  """ # noqa: E501
14
14
 
15
15
  from __future__ import annotations
@@ -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
 
@@ -35,7 +36,8 @@ class BackupProperties(BaseModel):
35
36
  __properties: ClassVar[List[str]] = ["name", "retentionPeriod", "volumeIds"]
36
37
 
37
38
  model_config = ConfigDict(
38
- populate_by_name=True,
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 BackupProperties(BaseModel):
46
48
 
47
49
  def to_json(self) -> str:
48
50
  """Returns the JSON representation of the model using alias"""
49
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
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]:
@@ -1,15 +1,15 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT Server Backup Management API
4
+ STACKIT Server Backup Management API
5
5
 
6
- API endpoints for Server Backup Operations on STACKIT Servers.
6
+ API endpoints for Server Backup Operations on STACKIT Servers.
7
7
 
8
- The version of the OpenAPI document: 2.0
9
- Contact: support@stackit.de
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 2.0
9
+ Contact: support@stackit.de
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
- Do not edit the class manually.
12
+ Do not edit the class manually.
13
13
  """ # noqa: E501
14
14
 
15
15
  from __future__ import annotations
@@ -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
  from stackit.serverbackup.models.backup_properties import BackupProperties
@@ -46,7 +47,8 @@ class BackupSchedule(BaseModel):
46
47
  __properties: ClassVar[List[str]] = ["backupProperties", "enabled", "id", "name", "rrule"]
47
48
 
48
49
  model_config = ConfigDict(
49
- populate_by_name=True,
50
+ validate_by_name=True,
51
+ validate_by_alias=True,
50
52
  validate_assignment=True,
51
53
  protected_namespaces=(),
52
54
  )
@@ -57,8 +59,7 @@ class BackupSchedule(BaseModel):
57
59
 
58
60
  def to_json(self) -> str:
59
61
  """Returns the JSON representation of the model using alias"""
60
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
61
- return json.dumps(self.to_dict())
62
+ return json.dumps(to_jsonable_python(self.to_dict()))
62
63
 
63
64
  @classmethod
64
65
  def from_json(cls, json_str: str) -> Optional[Self]:
@@ -1,15 +1,15 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT Server Backup Management API
4
+ STACKIT Server Backup Management API
5
5
 
6
- API endpoints for Server Backup Operations on STACKIT Servers.
6
+ API endpoints for Server Backup Operations on STACKIT Servers.
7
7
 
8
- The version of the OpenAPI document: 2.0
9
- Contact: support@stackit.de
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 2.0
9
+ Contact: support@stackit.de
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
- Do not edit the class manually.
12
+ Do not edit the class manually.
13
13
  """ # noqa: E501
14
14
 
15
15
  from __future__ import annotations
@@ -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, field_validator
22
+ from pydantic_core import to_jsonable_python
22
23
  from typing_extensions import Self
23
24
 
24
25
 
@@ -60,7 +61,8 @@ class BackupVolumeBackupsInner(BaseModel):
60
61
  return value
61
62
 
62
63
  model_config = ConfigDict(
63
- populate_by_name=True,
64
+ validate_by_name=True,
65
+ validate_by_alias=True,
64
66
  validate_assignment=True,
65
67
  protected_namespaces=(),
66
68
  )
@@ -71,8 +73,7 @@ class BackupVolumeBackupsInner(BaseModel):
71
73
 
72
74
  def to_json(self) -> str:
73
75
  """Returns the JSON representation of the model using alias"""
74
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
75
- return json.dumps(self.to_dict())
76
+ return json.dumps(to_jsonable_python(self.to_dict()))
76
77
 
77
78
  @classmethod
78
79
  def from_json(cls, json_str: str) -> Optional[Self]:
@@ -1,15 +1,15 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT Server Backup Management API
4
+ STACKIT Server Backup Management API
5
5
 
6
- API endpoints for Server Backup Operations on STACKIT Servers.
6
+ API endpoints for Server Backup Operations on STACKIT Servers.
7
7
 
8
- The version of the OpenAPI document: 2.0
9
- Contact: support@stackit.de
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 2.0
9
+ Contact: support@stackit.de
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
- Do not edit the class manually.
12
+ Do not edit the class manually.
13
13
  """ # noqa: E501
14
14
 
15
15
  from __future__ import annotations
@@ -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
 
@@ -35,7 +36,8 @@ class CreateBackupPayload(BaseModel):
35
36
  __properties: ClassVar[List[str]] = ["name", "retentionPeriod", "volumeIds"]
36
37
 
37
38
  model_config = ConfigDict(
38
- populate_by_name=True,
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 CreateBackupPayload(BaseModel):
46
48
 
47
49
  def to_json(self) -> str:
48
50
  """Returns the JSON representation of the model using alias"""
49
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
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]:
@@ -1,15 +1,15 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT Server Backup Management API
4
+ STACKIT Server Backup Management API
5
5
 
6
- API endpoints for Server Backup Operations on STACKIT Servers.
6
+ API endpoints for Server Backup Operations on STACKIT Servers.
7
7
 
8
- The version of the OpenAPI document: 2.0
9
- Contact: support@stackit.de
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 2.0
9
+ Contact: support@stackit.de
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
- Do not edit the class manually.
12
+ Do not edit the class manually.
13
13
  """ # noqa: E501
14
14
 
15
15
  from __future__ import annotations
@@ -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 Self
29
30
 
30
31
  from stackit.serverbackup.models.backup_properties import BackupProperties
@@ -44,7 +45,8 @@ class CreateBackupSchedulePayload(BaseModel):
44
45
  __properties: ClassVar[List[str]] = ["backupProperties", "enabled", "name", "rrule"]
45
46
 
46
47
  model_config = ConfigDict(
47
- populate_by_name=True,
48
+ validate_by_name=True,
49
+ validate_by_alias=True,
48
50
  validate_assignment=True,
49
51
  protected_namespaces=(),
50
52
  )
@@ -55,8 +57,7 @@ class CreateBackupSchedulePayload(BaseModel):
55
57
 
56
58
  def to_json(self) -> str:
57
59
  """Returns the JSON representation of the model using alias"""
58
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
59
- return json.dumps(self.to_dict())
60
+ return json.dumps(to_jsonable_python(self.to_dict()))
60
61
 
61
62
  @classmethod
62
63
  def from_json(cls, json_str: str) -> Optional[Self]:
@@ -1,15 +1,15 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT Server Backup Management API
4
+ STACKIT Server Backup Management API
5
5
 
6
- API endpoints for Server Backup Operations on STACKIT Servers.
6
+ API endpoints for Server Backup Operations on STACKIT Servers.
7
7
 
8
- The version of the OpenAPI document: 2.0
9
- Contact: support@stackit.de
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 2.0
9
+ Contact: support@stackit.de
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
- Do not edit the class manually.
12
+ Do not edit the class manually.
13
13
  """ # noqa: E501
14
14
 
15
15
  from __future__ import annotations
@@ -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]] = ["backupPolicyId"]
33
34
 
34
35
  model_config = ConfigDict(
35
- populate_by_name=True,
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
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
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]:
@@ -1,15 +1,15 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT Server Backup Management API
4
+ STACKIT Server Backup Management API
5
5
 
6
- API endpoints for Server Backup Operations on STACKIT Servers.
6
+ API endpoints for Server Backup Operations on STACKIT Servers.
7
7
 
8
- The version of the OpenAPI document: 2.0
9
- Contact: support@stackit.de
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 2.0
9
+ Contact: support@stackit.de
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
- Do not edit the class manually.
12
+ Do not edit the class manually.
13
13
  """ # noqa: E501
14
14
 
15
15
  from __future__ import annotations
@@ -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
- populate_by_name=True,
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
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
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]:
@@ -1,15 +1,15 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT Server Backup Management API
4
+ STACKIT Server Backup Management API
5
5
 
6
- API endpoints for Server Backup Operations on STACKIT Servers.
6
+ API endpoints for Server Backup Operations on STACKIT Servers.
7
7
 
8
- The version of the OpenAPI document: 2.0
9
- Contact: support@stackit.de
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 2.0
9
+ Contact: support@stackit.de
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
- Do not edit the class manually.
12
+ Do not edit the class manually.
13
13
  """ # noqa: E501
14
14
 
15
15
  from __future__ import annotations
@@ -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.serverbackup.models.backup_policy import BackupPolicy
@@ -33,7 +34,8 @@ class GetBackupPoliciesResponse(BaseModel):
33
34
  __properties: ClassVar[List[str]] = ["items"]
34
35
 
35
36
  model_config = ConfigDict(
36
- populate_by_name=True,
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 GetBackupPoliciesResponse(BaseModel):
44
46
 
45
47
  def to_json(self) -> str:
46
48
  """Returns the JSON representation of the model using alias"""
47
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
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]:
@@ -1,15 +1,15 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT Server Backup Management API
4
+ STACKIT Server Backup Management API
5
5
 
6
- API endpoints for Server Backup Operations on STACKIT Servers.
6
+ API endpoints for Server Backup Operations on STACKIT Servers.
7
7
 
8
- The version of the OpenAPI document: 2.0
9
- Contact: support@stackit.de
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 2.0
9
+ Contact: support@stackit.de
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
- Do not edit the class manually.
12
+ Do not edit the class manually.
13
13
  """ # noqa: E501
14
14
 
15
15
  from __future__ import annotations
@@ -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.serverbackup.models.backup_schedule import BackupSchedule
@@ -33,7 +34,8 @@ class GetBackupSchedulesResponse(BaseModel):
33
34
  __properties: ClassVar[List[str]] = ["items"]
34
35
 
35
36
  model_config = ConfigDict(
36
- populate_by_name=True,
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 GetBackupSchedulesResponse(BaseModel):
44
46
 
45
47
  def to_json(self) -> str:
46
48
  """Returns the JSON representation of the model using alias"""
47
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
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]:
@@ -1,15 +1,15 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT Server Backup Management API
4
+ STACKIT Server Backup Management API
5
5
 
6
- API endpoints for Server Backup Operations on STACKIT Servers.
6
+ API endpoints for Server Backup Operations on STACKIT Servers.
7
7
 
8
- The version of the OpenAPI document: 2.0
9
- Contact: support@stackit.de
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 2.0
9
+ Contact: support@stackit.de
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
- Do not edit the class manually.
12
+ Do not edit the class manually.
13
13
  """ # noqa: E501
14
14
 
15
15
  from __future__ import annotations
@@ -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 GetBackupServiceResponse(BaseModel):
31
32
  __properties: ClassVar[List[str]] = ["enabled"]
32
33
 
33
34
  model_config = ConfigDict(
34
- populate_by_name=True,
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 GetBackupServiceResponse(BaseModel):
42
44
 
43
45
  def to_json(self) -> str:
44
46
  """Returns the JSON representation of the model using alias"""
45
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
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]:
@@ -1,15 +1,15 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT Server Backup Management API
4
+ STACKIT Server Backup Management API
5
5
 
6
- API endpoints for Server Backup Operations on STACKIT Servers.
6
+ API endpoints for Server Backup Operations on STACKIT Servers.
7
7
 
8
- The version of the OpenAPI document: 2.0
9
- Contact: support@stackit.de
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 2.0
9
+ Contact: support@stackit.de
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
- Do not edit the class manually.
12
+ Do not edit the class manually.
13
13
  """ # noqa: E501
14
14
 
15
15
  from __future__ import annotations
@@ -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.serverbackup.models.backup import Backup
@@ -33,7 +34,8 @@ class GetBackupsListResponse(BaseModel):
33
34
  __properties: ClassVar[List[str]] = ["items"]
34
35
 
35
36
  model_config = ConfigDict(
36
- populate_by_name=True,
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 GetBackupsListResponse(BaseModel):
44
46
 
45
47
  def to_json(self) -> str:
46
48
  """Returns the JSON representation of the model using alias"""
47
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
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]:
@@ -1,15 +1,15 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT Server Backup Management API
4
+ STACKIT Server Backup Management API
5
5
 
6
- API endpoints for Server Backup Operations on STACKIT Servers.
6
+ API endpoints for Server Backup Operations on STACKIT Servers.
7
7
 
8
- The version of the OpenAPI document: 2.0
9
- Contact: support@stackit.de
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 2.0
9
+ Contact: support@stackit.de
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
- Do not edit the class manually.
12
+ Do not edit the class manually.
13
13
  """ # noqa: E501
14
14
 
15
15
  from __future__ import annotations
@@ -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 Self
29
30
 
30
31
 
@@ -38,7 +39,8 @@ class RestoreBackupPayload(BaseModel):
38
39
  __properties: ClassVar[List[str]] = ["startServerAfterRestore", "volumeIds"]
39
40
 
40
41
  model_config = ConfigDict(
41
- populate_by_name=True,
42
+ validate_by_name=True,
43
+ validate_by_alias=True,
42
44
  validate_assignment=True,
43
45
  protected_namespaces=(),
44
46
  )
@@ -49,8 +51,7 @@ class RestoreBackupPayload(BaseModel):
49
51
 
50
52
  def to_json(self) -> str:
51
53
  """Returns the JSON representation of the model using alias"""
52
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
53
- return json.dumps(self.to_dict())
54
+ return json.dumps(to_jsonable_python(self.to_dict()))
54
55
 
55
56
  @classmethod
56
57
  def from_json(cls, json_str: str) -> Optional[Self]:
@@ -1,15 +1,15 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT Server Backup Management API
4
+ STACKIT Server Backup Management API
5
5
 
6
- API endpoints for Server Backup Operations on STACKIT Servers.
6
+ API endpoints for Server Backup Operations on STACKIT Servers.
7
7
 
8
- The version of the OpenAPI document: 2.0
9
- Contact: support@stackit.de
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 2.0
9
+ Contact: support@stackit.de
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
- Do not edit the class manually.
12
+ Do not edit the class manually.
13
13
  """ # noqa: E501
14
14
 
15
15
  from __future__ import annotations
@@ -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
 
@@ -31,7 +32,8 @@ class RestoreVolumeBackupPayload(BaseModel):
31
32
  __properties: ClassVar[List[str]] = ["restoreVolumeId"]
32
33
 
33
34
  model_config = ConfigDict(
34
- populate_by_name=True,
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 RestoreVolumeBackupPayload(BaseModel):
42
44
 
43
45
  def to_json(self) -> str:
44
46
  """Returns the JSON representation of the model using alias"""
45
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
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]:
@@ -1,15 +1,15 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT Server Backup Management API
4
+ STACKIT Server Backup Management API
5
5
 
6
- API endpoints for Server Backup Operations on STACKIT Servers.
6
+ API endpoints for Server Backup Operations on STACKIT Servers.
7
7
 
8
- The version of the OpenAPI document: 2.0
9
- Contact: support@stackit.de
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 2.0
9
+ Contact: support@stackit.de
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
- Do not edit the class manually.
12
+ Do not edit the class manually.
13
13
  """ # noqa: E501
14
14
 
15
15
  from __future__ import annotations
@@ -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 Self
29
30
 
30
31
  from stackit.serverbackup.models.backup_properties import BackupProperties
@@ -44,7 +45,8 @@ class UpdateBackupSchedulePayload(BaseModel):
44
45
  __properties: ClassVar[List[str]] = ["backupProperties", "enabled", "name", "rrule"]
45
46
 
46
47
  model_config = ConfigDict(
47
- populate_by_name=True,
48
+ validate_by_name=True,
49
+ validate_by_alias=True,
48
50
  validate_assignment=True,
49
51
  protected_namespaces=(),
50
52
  )
@@ -55,8 +57,7 @@ class UpdateBackupSchedulePayload(BaseModel):
55
57
 
56
58
  def to_json(self) -> str:
57
59
  """Returns the JSON representation of the model using alias"""
58
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
59
- return json.dumps(self.to_dict())
60
+ return json.dumps(to_jsonable_python(self.to_dict()))
60
61
 
61
62
  @classmethod
62
63
  def from_json(cls, json_str: str) -> Optional[Self]:
@@ -1,15 +1,15 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT Server Backup Management API
4
+ STACKIT Server Backup Management API
5
5
 
6
- API endpoints for Server Backup Operations on STACKIT Servers.
6
+ API endpoints for Server Backup Operations on STACKIT Servers.
7
7
 
8
- The version of the OpenAPI document: 2.0
9
- Contact: support@stackit.de
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 2.0
9
+ Contact: support@stackit.de
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
- Do not edit the class manually.
12
+ Do not edit the class manually.
13
13
  """ # noqa: E501
14
14
 
15
15
  import io
@@ -22,7 +22,6 @@ from stackit.core.configuration import Configuration
22
22
 
23
23
  from stackit.serverbackup.exceptions import ApiException, ApiValueError
24
24
 
25
-
26
25
  RESTResponseType = requests.Response
27
26
 
28
27
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: stackit-serverbackup
3
- Version: 1.1.2
3
+ Version: 1.3.0
4
4
  Summary: STACKIT Server Backup 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
@@ -10,16 +10,15 @@ License-File: NOTICE.txt
10
10
  Classifier: License :: OSI Approved :: Apache Software License
11
11
  Classifier: Operating System :: OS Independent
12
12
  Classifier: Programming Language :: Python :: 3
13
- Classifier: Programming Language :: Python :: 3.9
14
13
  Classifier: Programming Language :: Python :: 3.10
15
14
  Classifier: Programming Language :: Python :: 3.11
16
15
  Classifier: Programming Language :: Python :: 3.12
17
16
  Classifier: Programming Language :: Python :: 3.13
18
17
  Classifier: Programming Language :: Python :: 3.14
19
- Requires-Python: <4.0,>=3.9
18
+ Requires-Python: <4.0,>=3.10
20
19
  Requires-Dist: pydantic>=2.9.2
21
20
  Requires-Dist: python-dateutil>=2.9.0.post0
22
- Requires-Dist: requests>=2.32.3
21
+ Requires-Dist: requests>=2.33.0
23
22
  Requires-Dist: stackit-core>=0.0.1a
24
23
  Description-Content-Type: text/markdown
25
24
 
@@ -0,0 +1,33 @@
1
+ stackit/serverbackup/__init__.py,sha256=DsG_V7CD-1PPgEe2mcYxtWziYxuMPIKP-98wegSrOSg,4028
2
+ stackit/serverbackup/api_client.py,sha256=agu7PwvLaJmy2gPtFRvwZ69djCjI5Q2jpwW89085B_U,23757
3
+ stackit/serverbackup/api_response.py,sha256=rSuCVGY-HE8X_WwteQP5wyANIuS-L5AmtZEUOwTicak,641
4
+ stackit/serverbackup/configuration.py,sha256=dBfqhpvJbHDr7U7BTgJJ5r_2pd8DLY_OzuM2wyPUV6s,5694
5
+ stackit/serverbackup/exceptions.py,sha256=6R1f4GE7BiPBU_-0wISlS6SIQm1fhl_RPYYApktRUEk,6408
6
+ stackit/serverbackup/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
+ stackit/serverbackup/rest.py,sha256=HSw27I9lqVnv_T6bxA-PwAiXVUQi3tfpKQhr9U7jcE4,6402
8
+ stackit/serverbackup/api/__init__.py,sha256=4gnwP89FX1nQYLr9Mg7TDzyxbWvl2JNyavFrb9moimM,107
9
+ stackit/serverbackup/api/default_api.py,sha256=probnnJZKLjUoHjErhXc1CLMPFQLPBY4VSjm58lRUbg,194779
10
+ stackit/serverbackup/models/__init__.py,sha256=tdNA2QDbUemaZz4YmGBSOsM1W6KIo42UtXcooLpW4Pc,1966
11
+ stackit/serverbackup/models/backup.py,sha256=Ao9pWcu5Ju6YaBTPIj69s8o66xuFabaOyBW_MsS92aE,4648
12
+ stackit/serverbackup/models/backup_job.py,sha256=PCQiZHH49d7hmNaM6nJ7voPLIJnpzaJntLyZC4s8DRI,2366
13
+ stackit/serverbackup/models/backup_policy.py,sha256=4CtR6O9EXWgw042g21aDTRBn5oom7YhnzvhltCIykhE,3979
14
+ stackit/serverbackup/models/backup_policy_backup_properties.py,sha256=NwkOOn7LPkngdUgv1mAq9fLLLUjZkiKeLUzWZQfZQp8,2640
15
+ stackit/serverbackup/models/backup_properties.py,sha256=szBaT2RSI5ifb3rylbFm9bXlN4G7-62kvjZ49XJtWdM,2849
16
+ stackit/serverbackup/models/backup_schedule.py,sha256=3gaSf-9zpQHt-zsTSwU4GkQ6l_M9D04Hf91MBUC0MLg,3646
17
+ stackit/serverbackup/models/backup_volume_backups_inner.py,sha256=tCF0yZUNRobD3xR_lscEcJi2wM0zSWC1KXl4cNwW65o,3954
18
+ stackit/serverbackup/models/create_backup_payload.py,sha256=64OFrglmfBLqCR8o0p6CEZNDJhhe5I_ez_QEOUZWofo,2861
19
+ stackit/serverbackup/models/create_backup_schedule_payload.py,sha256=phkvPvk-IPTr9bd_ajbV4FZJf4YMoefgmG31ywTp5D8,3664
20
+ stackit/serverbackup/models/enable_service_resource_payload.py,sha256=-C7ZDA8FJlnEnX6Xg9LVIrUb3ezHN2fva2w5gPRWm5M,2561
21
+ stackit/serverbackup/models/error_response.py,sha256=nVfi3U6d-rKSdIc9_xQBaXEAkpiQwwpp7-euWSd6yn4,2639
22
+ stackit/serverbackup/models/get_backup_policies_response.py,sha256=7J7Co_wz7L30CPT-sjYr7iSKQBd8J3kIdbdacJHwHhA,3015
23
+ stackit/serverbackup/models/get_backup_schedules_response.py,sha256=caWF_FdkVldtHWusJ-Fqc1zPGTwAO9Lda8CK21Etis8,3067
24
+ stackit/serverbackup/models/get_backup_service_response.py,sha256=e_C6S8-e9NLA4YzA2QLXy79UkJ_8dMXM1-wuRGLyVdo,2465
25
+ stackit/serverbackup/models/get_backups_list_response.py,sha256=tQCkaJ5sYUdb-WURjYPqHmCMFRos04cDslUqlHxcKy4,2908
26
+ stackit/serverbackup/models/restore_backup_payload.py,sha256=FmiaMTrdlgvzRptwwGEFV8Xgcnses9WkbdoT0ZXNNzI,2736
27
+ stackit/serverbackup/models/restore_volume_backup_payload.py,sha256=hRq7aYYodPmKtwYieUS5vO3srYyZC9GwZHS_nqQAIYs,2528
28
+ stackit/serverbackup/models/update_backup_schedule_payload.py,sha256=RN-PPVjchbDXKwhXJnMZGyeHY_atPPjFdT6_vrbjhmA,3664
29
+ stackit_serverbackup-1.3.0.dist-info/METADATA,sha256=EmoxLh_3m4qPBCFRzgCsMfCDuVKDtXyIFGx1UBe3RBo,1663
30
+ stackit_serverbackup-1.3.0.dist-info/WHEEL,sha256=lCkmxWfQsSc9CfIClYeavTdQeEX2toPqufh9gI35EQA,87
31
+ stackit_serverbackup-1.3.0.dist-info/licenses/LICENSE.md,sha256=3dF8Tb7yZn2tS4zyNa-yNe-68pH8qyWdGz4ioMd3MgE,10933
32
+ stackit_serverbackup-1.3.0.dist-info/licenses/NOTICE.txt,sha256=0HfqD8VUMXY8GOdZEb24InnlD5YeNEBb6jVOMBwSX_E,65
33
+ stackit_serverbackup-1.3.0.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: hatchling 1.27.0
2
+ Generator: hatchling 1.31.0
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
@@ -1,33 +0,0 @@
1
- stackit/serverbackup/__init__.py,sha256=VG35es8cPZHtrEahl3jZkbYoO-Ij4yIeK85bleiiGpc,4053
2
- stackit/serverbackup/api_client.py,sha256=oVjponODgsFQ1flmwNfV65MMitW2HpEjziJvL17Ug0A,23944
3
- stackit/serverbackup/api_response.py,sha256=HRYkVqMNIlfODacTQPTbiVj2YdcnutpQrKJdeAoCSpM,642
4
- stackit/serverbackup/configuration.py,sha256=TGWzzKqb_W5ULS314KdI1klLZTeNi644caUcANc15-w,5719
5
- stackit/serverbackup/exceptions.py,sha256=PGB2_qXHzry8GTiOuzykhNp5xCiCxHus-alHZTvZP3Q,6432
6
- stackit/serverbackup/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
- stackit/serverbackup/rest.py,sha256=eBxYfyGIsPby0sh7k5A8sQLSCLsrM7SH4Qr3VrxRODY,6427
8
- stackit/serverbackup/api/__init__.py,sha256=4gnwP89FX1nQYLr9Mg7TDzyxbWvl2JNyavFrb9moimM,107
9
- stackit/serverbackup/api/default_api.py,sha256=yeoTAHG_yBvaQYhSQ80duIEMd6WzMelD36N-5XELdm4,194803
10
- stackit/serverbackup/models/__init__.py,sha256=hJCXX9NE1xy5dQt1ErlJatZBAWtBaQvTr-nEUHYS99E,1990
11
- stackit/serverbackup/models/backup.py,sha256=_XPXrqI5cMuFnfBM1BdFC0Hvzh7w6TuR5siscjUelPE,4668
12
- stackit/serverbackup/models/backup_job.py,sha256=JZrjA0iJqI47r2qYeNtnxJisuv1njpv1ERPwXxVVElw,2386
13
- stackit/serverbackup/models/backup_policy.py,sha256=X0g7IbFNUgGswggTsjLRvep5T9S8F66PO2No9cab6Ys,3999
14
- stackit/serverbackup/models/backup_policy_backup_properties.py,sha256=cV5YP9LE8tyTVKnVtNUv9z4z_7-lDOxZigr8afSgOlo,2660
15
- stackit/serverbackup/models/backup_properties.py,sha256=D02gHWRAbNxTPlst9dRN2FYkoXm_m-gMPgaeu6kfD9c,2869
16
- stackit/serverbackup/models/backup_schedule.py,sha256=8u4DDiyCNILLCqQ9PQu7a6EUqwwf-x4c_vkMX1dBIcY,3666
17
- stackit/serverbackup/models/backup_volume_backups_inner.py,sha256=3TheiytC2oZejbvhd1YuyzJ7HS1kbfDT7yG9uQQ-m1Q,3974
18
- stackit/serverbackup/models/create_backup_payload.py,sha256=v5Z7yJ1xuElIBCQw4Lvcq4BlioqMIczStwp1OxvnrxE,2881
19
- stackit/serverbackup/models/create_backup_schedule_payload.py,sha256=1KD1fdN2s158Qj-0As0qmnXQlhWt2Cj5uJPBrwmU9-s,3684
20
- stackit/serverbackup/models/enable_service_resource_payload.py,sha256=-quiPRyrqavXiiDpQmN_j1X6gYaBVFYqLAMo_D3RZQE,2581
21
- stackit/serverbackup/models/error_response.py,sha256=TYIjgHUfmB-AoicyqJgH7kP4ohHPw4skTjhxOrrpoF8,2659
22
- stackit/serverbackup/models/get_backup_policies_response.py,sha256=A2s-Keat7-0UNMRcuXXgesWDPI9lzCL_qvRuL8--XF8,3035
23
- stackit/serverbackup/models/get_backup_schedules_response.py,sha256=AxjbY4K6LBArDUqnoyPOJeSF4DmJE8n4J21Nm_XNjZc,3087
24
- stackit/serverbackup/models/get_backup_service_response.py,sha256=8M1S4vF9rUbuQm3L3yx38unaAZLc7arAwu9gGYUsBac,2485
25
- stackit/serverbackup/models/get_backups_list_response.py,sha256=dBiiLilOv5Pw6pJkw1CwcaAAnhix8D-odL6NKh6ueU8,2928
26
- stackit/serverbackup/models/restore_backup_payload.py,sha256=PmHkaRp3rooaVCuwECyQw4VhiUjq5sp8tFOfOccrIDI,2756
27
- stackit/serverbackup/models/restore_volume_backup_payload.py,sha256=3lp68tCMqjcixkxOWeSAF9BITGd19TToJ2_rXJRDRKc,2548
28
- stackit/serverbackup/models/update_backup_schedule_payload.py,sha256=ukmOPJwAy7qOTie4MvAhkFFBzV5u4Ybpe59hQ0cx7GI,3684
29
- stackit_serverbackup-1.1.2.dist-info/METADATA,sha256=bXlUX5t1YMQJD9t7ALhimFHta7FFcSpcyYnxG3ER3xM,1712
30
- stackit_serverbackup-1.1.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
31
- stackit_serverbackup-1.1.2.dist-info/licenses/LICENSE.md,sha256=3dF8Tb7yZn2tS4zyNa-yNe-68pH8qyWdGz4ioMd3MgE,10933
32
- stackit_serverbackup-1.1.2.dist-info/licenses/NOTICE.txt,sha256=0HfqD8VUMXY8GOdZEb24InnlD5YeNEBb6jVOMBwSX_E,65
33
- stackit_serverbackup-1.1.2.dist-info/RECORD,,