stackit-sqlserverflex 1.2.0__py3-none-any.whl → 1.4.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 (91) hide show
  1. stackit/sqlserverflex/__init__.py +133 -94
  2. stackit/sqlserverflex/api/default_api.py +1982 -1540
  3. stackit/sqlserverflex/api_client.py +6 -7
  4. stackit/sqlserverflex/api_response.py +0 -1
  5. stackit/sqlserverflex/configuration.py +6 -7
  6. stackit/sqlserverflex/exceptions.py +6 -6
  7. stackit/sqlserverflex/models/__init__.py +74 -52
  8. stackit/sqlserverflex/models/{restore_running_restore.py → backup_running_restore.py} +16 -16
  9. stackit/sqlserverflex/models/backup_sort.py +47 -0
  10. stackit/sqlserverflex/models/create_database_payload.py +18 -22
  11. stackit/sqlserverflex/models/create_database_response.py +8 -8
  12. stackit/sqlserverflex/models/create_instance_payload.py +44 -44
  13. stackit/sqlserverflex/models/{instance_documentation_options.py → create_instance_payload_network.py} +22 -18
  14. stackit/sqlserverflex/models/create_instance_response.py +8 -8
  15. stackit/sqlserverflex/models/create_user_payload.py +14 -10
  16. stackit/sqlserverflex/models/create_user_response.py +40 -15
  17. stackit/sqlserverflex/models/{mssql_database_collation.py → database_getcollation.py} +10 -10
  18. stackit/sqlserverflex/models/{mssql_database_compatibility.py → database_getcompatibility.py} +10 -10
  19. stackit/sqlserverflex/models/{database.py → database_roles.py} +14 -15
  20. stackit/sqlserverflex/models/database_sort.py +45 -0
  21. stackit/sqlserverflex/models/{instance_error.py → error.py} +17 -19
  22. stackit/sqlserverflex/models/{list_users_response.py → external_s3.py} +32 -26
  23. stackit/sqlserverflex/models/flavor_sort.py +53 -0
  24. stackit/sqlserverflex/models/flavor_storage_classes_storage_class.py +91 -0
  25. stackit/sqlserverflex/models/{storage_range.py → flavor_storage_range.py} +13 -13
  26. stackit/sqlserverflex/models/get_backup_response.py +17 -23
  27. stackit/sqlserverflex/models/get_database_response.py +25 -15
  28. stackit/sqlserverflex/models/get_instance_response.py +90 -15
  29. stackit/sqlserverflex/models/get_user_response.py +24 -15
  30. stackit/sqlserverflex/models/instance_edition.py +38 -0
  31. stackit/sqlserverflex/models/{database_documentation_create_database_request_options.py → instance_encryption.py} +19 -19
  32. stackit/sqlserverflex/models/{single_database.py → instance_network.py} +26 -21
  33. stackit/sqlserverflex/models/instance_network_access_scope.py +37 -0
  34. stackit/sqlserverflex/models/instance_sort.py +45 -0
  35. stackit/sqlserverflex/models/instance_version.py +36 -0
  36. stackit/sqlserverflex/models/instance_version_opt.py +36 -0
  37. stackit/sqlserverflex/models/{backup.py → list_backup.py} +22 -24
  38. stackit/sqlserverflex/models/{backup_list_backups_response_grouped.py → list_backup_response.py} +23 -17
  39. stackit/sqlserverflex/models/list_backups_response.py +22 -22
  40. stackit/sqlserverflex/models/list_collations_response.py +10 -10
  41. stackit/sqlserverflex/models/list_compatibility_response.py +11 -11
  42. stackit/sqlserverflex/models/{list_restore_jobs_response.py → list_current_running_restore_jobs.py} +15 -13
  43. stackit/sqlserverflex/models/{flavor.py → list_database.py} +17 -22
  44. stackit/sqlserverflex/models/list_databases_response.py +18 -12
  45. stackit/sqlserverflex/models/list_flavors.py +129 -0
  46. stackit/sqlserverflex/models/list_flavors_response.py +18 -12
  47. stackit/sqlserverflex/models/{instance_flavor_entry.py → list_instance.py} +27 -21
  48. stackit/sqlserverflex/models/list_instances_response.py +25 -21
  49. stackit/sqlserverflex/models/list_roles_response.py +8 -8
  50. stackit/sqlserverflex/models/list_storages_response.py +28 -12
  51. stackit/sqlserverflex/models/list_user.py +85 -0
  52. stackit/sqlserverflex/models/list_user_response.py +104 -0
  53. stackit/sqlserverflex/models/list_versions_response.py +24 -9
  54. stackit/sqlserverflex/models/{instance_documentation_storage.py → pagination.py} +20 -16
  55. stackit/sqlserverflex/models/partial_update_instance_payload.py +47 -25
  56. stackit/sqlserverflex/models/{instance_documentation_acl.py → partial_update_instance_payload_network.py} +13 -13
  57. stackit/sqlserverflex/models/replicas.py +37 -0
  58. stackit/sqlserverflex/models/reset_user_response.py +20 -15
  59. stackit/sqlserverflex/models/{host.py → restore_database_from_backup_payload.py} +23 -25
  60. stackit/sqlserverflex/models/restore_database_from_backup_payload_source.py +150 -0
  61. stackit/sqlserverflex/models/s3file_info.py +84 -0
  62. stackit/sqlserverflex/models/source_backup.py +90 -0
  63. stackit/sqlserverflex/models/source_external_s3.py +107 -0
  64. stackit/sqlserverflex/models/state.py +41 -0
  65. stackit/sqlserverflex/models/storage.py +11 -9
  66. stackit/sqlserverflex/models/{instance_list_instance.py → storage_create.py} +15 -16
  67. stackit/sqlserverflex/models/{instance_list_user.py → storage_update.py} +14 -15
  68. stackit/sqlserverflex/models/{trigger_database_restore_payload.py → trigger_restore_payload.py} +13 -12
  69. stackit/sqlserverflex/models/update_instance_payload.py +48 -24
  70. stackit/sqlserverflex/models/{acl.py → update_instance_payload_network.py} +14 -14
  71. stackit/sqlserverflex/models/update_instance_protection_payload.py +83 -0
  72. stackit/sqlserverflex/models/update_instance_protection_response.py +83 -0
  73. stackit/sqlserverflex/models/user_sort.py +43 -0
  74. stackit/sqlserverflex/models/{host_metric.py → validation_error.py} +29 -27
  75. stackit/sqlserverflex/models/validation_error_validation_inner.py +84 -0
  76. stackit/sqlserverflex/models/{database_options.py → version.py} +28 -20
  77. stackit/sqlserverflex/rest.py +6 -7
  78. {stackit_sqlserverflex-1.2.0.dist-info → stackit_sqlserverflex-1.4.0.dist-info}/METADATA +3 -4
  79. stackit_sqlserverflex-1.4.0.dist-info/RECORD +84 -0
  80. {stackit_sqlserverflex-1.2.0.dist-info → stackit_sqlserverflex-1.4.0.dist-info}/WHEEL +1 -1
  81. stackit/sqlserverflex/models/data_point.py +0 -90
  82. stackit/sqlserverflex/models/instance.py +0 -129
  83. stackit/sqlserverflex/models/list_metrics_response.py +0 -94
  84. stackit/sqlserverflex/models/single_user.py +0 -110
  85. stackit/sqlserverflex/models/type.py +0 -41
  86. stackit/sqlserverflex/models/update_instance_response.py +0 -88
  87. stackit/sqlserverflex/models/user.py +0 -101
  88. stackit/sqlserverflex/models/user_response_user.py +0 -97
  89. stackit_sqlserverflex-1.2.0.dist-info/RECORD +0 -70
  90. {stackit_sqlserverflex-1.2.0.dist-info → stackit_sqlserverflex-1.4.0.dist-info}/licenses/LICENSE.md +0 -0
  91. {stackit_sqlserverflex-1.2.0.dist-info → stackit_sqlserverflex-1.4.0.dist-info}/licenses/NOTICE.txt +0 -0
@@ -1,15 +1,15 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT MSSQL Service API
4
+ STACKIT MSSQL Service API
5
5
 
6
- This is the documentation for the STACKIT MSSQL service
6
+ This is the documentation for the STACKIT MSSQL service
7
7
 
8
- The version of the OpenAPI document: 2.0.0
9
- Contact: support@stackit.cloud
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 3.0.0
9
+ Contact: support@stackit.cloud
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,11 +25,13 @@ from typing_extensions import Self
25
25
 
26
26
  class Storage(BaseModel):
27
27
  """
28
- Storage
28
+ The object containing information about the storage size and class.
29
29
  """ # noqa: E501
30
30
 
31
- var_class: Optional[StrictStr] = Field(default=None, alias="class")
32
- size: Optional[StrictInt] = None
31
+ var_class: Optional[StrictStr] = Field(
32
+ default=None, description="The storage class for the storage.", alias="class"
33
+ )
34
+ size: Optional[StrictInt] = Field(default=None, description="The storage size in Gigabytes.")
33
35
  __properties: ClassVar[List[str]] = ["class", "size"]
34
36
 
35
37
  model_config = ConfigDict(
@@ -1,15 +1,15 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT MSSQL Service API
4
+ STACKIT MSSQL Service API
5
5
 
6
- This is the documentation for the STACKIT MSSQL service
6
+ This is the documentation for the STACKIT MSSQL service
7
7
 
8
- The version of the OpenAPI document: 2.0.0
9
- Contact: support@stackit.cloud
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 3.0.0
9
+ Contact: support@stackit.cloud
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
@@ -18,20 +18,19 @@ import json
18
18
  import pprint
19
19
  from typing import Any, ClassVar, Dict, List, Optional, Set
20
20
 
21
- from pydantic import BaseModel, ConfigDict, StrictStr
21
+ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
22
22
  from pydantic_core import to_jsonable_python
23
23
  from typing_extensions import Self
24
24
 
25
25
 
26
- class InstanceListInstance(BaseModel):
26
+ class StorageCreate(BaseModel):
27
27
  """
28
- InstanceListInstance
28
+ The object containing information about the storage size and class.
29
29
  """ # noqa: E501
30
30
 
31
- id: Optional[StrictStr] = None
32
- name: Optional[StrictStr] = None
33
- status: Optional[StrictStr] = None
34
- __properties: ClassVar[List[str]] = ["id", "name", "status"]
31
+ var_class: StrictStr = Field(description="The storage class for the storage.", alias="class")
32
+ size: StrictInt = Field(description="The storage size in Gigabytes.")
33
+ __properties: ClassVar[List[str]] = ["class", "size"]
35
34
 
36
35
  model_config = ConfigDict(
37
36
  validate_by_name=True,
@@ -50,7 +49,7 @@ class InstanceListInstance(BaseModel):
50
49
 
51
50
  @classmethod
52
51
  def from_json(cls, json_str: str) -> Optional[Self]:
53
- """Create an instance of InstanceListInstance from a JSON string"""
52
+ """Create an instance of StorageCreate from a JSON string"""
54
53
  return cls.from_dict(json.loads(json_str))
55
54
 
56
55
  def to_dict(self) -> Dict[str, Any]:
@@ -74,12 +73,12 @@ class InstanceListInstance(BaseModel):
74
73
 
75
74
  @classmethod
76
75
  def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
77
- """Create an instance of InstanceListInstance from a dict"""
76
+ """Create an instance of StorageCreate from a dict"""
78
77
  if obj is None:
79
78
  return None
80
79
 
81
80
  if not isinstance(obj, dict):
82
81
  return cls.model_validate(obj)
83
82
 
84
- _obj = cls.model_validate({"id": obj.get("id"), "name": obj.get("name"), "status": obj.get("status")})
83
+ _obj = cls.model_validate({"class": obj.get("class"), "size": obj.get("size")})
85
84
  return _obj
@@ -1,15 +1,15 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT MSSQL Service API
4
+ STACKIT MSSQL Service API
5
5
 
6
- This is the documentation for the STACKIT MSSQL service
6
+ This is the documentation for the STACKIT MSSQL service
7
7
 
8
- The version of the OpenAPI document: 2.0.0
9
- Contact: support@stackit.cloud
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 3.0.0
9
+ Contact: support@stackit.cloud
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
@@ -18,19 +18,18 @@ import json
18
18
  import pprint
19
19
  from typing import Any, ClassVar, Dict, List, Optional, Set
20
20
 
21
- from pydantic import BaseModel, ConfigDict, StrictStr
21
+ from pydantic import BaseModel, ConfigDict, Field, StrictInt
22
22
  from pydantic_core import to_jsonable_python
23
23
  from typing_extensions import Self
24
24
 
25
25
 
26
- class InstanceListUser(BaseModel):
26
+ class StorageUpdate(BaseModel):
27
27
  """
28
- InstanceListUser
28
+ The object containing information about the storage size and class.
29
29
  """ # noqa: E501
30
30
 
31
- id: Optional[StrictStr] = None
32
- username: Optional[StrictStr] = None
33
- __properties: ClassVar[List[str]] = ["id", "username"]
31
+ size: Optional[StrictInt] = Field(default=None, description="The storage size in Gigabytes.")
32
+ __properties: ClassVar[List[str]] = ["size"]
34
33
 
35
34
  model_config = ConfigDict(
36
35
  validate_by_name=True,
@@ -49,7 +48,7 @@ class InstanceListUser(BaseModel):
49
48
 
50
49
  @classmethod
51
50
  def from_json(cls, json_str: str) -> Optional[Self]:
52
- """Create an instance of InstanceListUser from a JSON string"""
51
+ """Create an instance of StorageUpdate from a JSON string"""
53
52
  return cls.from_dict(json.loads(json_str))
54
53
 
55
54
  def to_dict(self) -> Dict[str, Any]:
@@ -73,12 +72,12 @@ class InstanceListUser(BaseModel):
73
72
 
74
73
  @classmethod
75
74
  def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
76
- """Create an instance of InstanceListUser from a dict"""
75
+ """Create an instance of StorageUpdate from a dict"""
77
76
  if obj is None:
78
77
  return None
79
78
 
80
79
  if not isinstance(obj, dict):
81
80
  return cls.model_validate(obj)
82
81
 
83
- _obj = cls.model_validate({"id": obj.get("id"), "username": obj.get("username")})
82
+ _obj = cls.model_validate({"size": obj.get("size")})
84
83
  return _obj
@@ -1,15 +1,15 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT MSSQL Service API
4
+ STACKIT MSSQL Service API
5
5
 
6
- This is the documentation for the STACKIT MSSQL service
6
+ This is the documentation for the STACKIT MSSQL service
7
7
 
8
- The version of the OpenAPI document: 2.0.0
9
- Contact: support@stackit.cloud
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 3.0.0
9
+ Contact: support@stackit.cloud
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
@@ -23,14 +23,15 @@ from pydantic_core import to_jsonable_python
23
23
  from typing_extensions import Self
24
24
 
25
25
 
26
- class TriggerDatabaseRestorePayload(BaseModel):
26
+ class TriggerRestorePayload(BaseModel):
27
27
  """
28
- TriggerDatabaseRestorePayload
28
+ TriggerRestorePayload
29
29
  """ # noqa: E501
30
30
 
31
- name: StrictStr = Field(description="Name for the restored database no overwrite allowed at the moment")
31
+ name: StrictStr = Field(description="The name of the database.")
32
32
  restore_date_time: StrictStr = Field(
33
- description="Time of the restore point formate RFC3339", alias="restoreDateTime"
33
+ description="the time for the restore it will be calculated between first backup and last backup",
34
+ alias="restoreDateTime",
34
35
  )
35
36
  __properties: ClassVar[List[str]] = ["name", "restoreDateTime"]
36
37
 
@@ -51,7 +52,7 @@ class TriggerDatabaseRestorePayload(BaseModel):
51
52
 
52
53
  @classmethod
53
54
  def from_json(cls, json_str: str) -> Optional[Self]:
54
- """Create an instance of TriggerDatabaseRestorePayload from a JSON string"""
55
+ """Create an instance of TriggerRestorePayload from a JSON string"""
55
56
  return cls.from_dict(json.loads(json_str))
56
57
 
57
58
  def to_dict(self) -> Dict[str, Any]:
@@ -75,7 +76,7 @@ class TriggerDatabaseRestorePayload(BaseModel):
75
76
 
76
77
  @classmethod
77
78
  def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
78
- """Create an instance of TriggerDatabaseRestorePayload from a dict"""
79
+ """Create an instance of TriggerRestorePayload from a dict"""
79
80
  if obj is None:
80
81
  return None
81
82
 
@@ -1,15 +1,15 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT MSSQL Service API
4
+ STACKIT MSSQL Service API
5
5
 
6
- This is the documentation for the STACKIT MSSQL service
6
+ This is the documentation for the STACKIT MSSQL service
7
7
 
8
- The version of the OpenAPI document: 2.0.0
9
- Contact: support@stackit.cloud
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 3.0.0
9
+ Contact: support@stackit.cloud
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
@@ -18,12 +18,14 @@ import json
18
18
  import pprint
19
19
  from typing import Any, ClassVar, Dict, List, Optional, Set
20
20
 
21
- from pydantic import BaseModel, ConfigDict, Field, StrictStr
21
+ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
22
22
  from pydantic_core import to_jsonable_python
23
- from typing_extensions import Self
23
+ from typing_extensions import Annotated, Self
24
24
 
25
- from stackit.sqlserverflex.models.instance_documentation_acl import (
26
- InstanceDocumentationACL,
25
+ from stackit.sqlserverflex.models.instance_version import InstanceVersion
26
+ from stackit.sqlserverflex.models.storage_update import StorageUpdate
27
+ from stackit.sqlserverflex.models.update_instance_payload_network import (
28
+ UpdateInstancePayloadNetwork,
27
29
  )
28
30
 
29
31
 
@@ -32,18 +34,33 @@ class UpdateInstancePayload(BaseModel):
32
34
  UpdateInstancePayload
33
35
  """ # noqa: E501
34
36
 
35
- acl: InstanceDocumentationACL = Field(
36
- description="ACL is the Access Control List defining the IP ranges allowed to connect to the database"
37
- )
38
37
  backup_schedule: StrictStr = Field(
39
- description="Cronjob for the daily full backup if not provided a job will generated between 00:00 and 04:59",
38
+ description="The schedule for on what time and how often the database backup will be created. The schedule is written as a cron schedule.",
40
39
  alias="backupSchedule",
41
40
  )
42
- flavor_id: StrictStr = Field(description="Id of the selected flavor", alias="flavorId")
43
- labels: Dict[str, Any] = Field(description="Labels for the instance")
44
- name: StrictStr = Field(description="Name of the instance")
45
- version: StrictStr = Field(description="Version of the MSSQL Server")
46
- __properties: ClassVar[List[str]] = ["acl", "backupSchedule", "flavorId", "labels", "name", "version"]
41
+ flavor_id: StrictStr = Field(description="The id of the instance flavor.", alias="flavorId")
42
+ labels: Optional[Dict[str, Optional[Annotated[str, Field(strict=True, max_length=63)]]]] = Field(
43
+ default=None,
44
+ description="A dictionary of user-defined key-value pairs used to categorize or organize the resource. **Rules for Keys:** * Must be between 1 and 63 characters long. * Must begin and end with an alphanumeric character (`[a-z0-9A-Z]`). * May contain dashes (`-`), underscores (`_`), and dots (`.`). * **Regex:** `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$` * **Restriction:** The prefix `stackit-` is strictly reserved and cannot be used. **Rules for Values:** * Must be between 0 (empty string) and 63 characters long. * If not empty, must begin and end with an alphanumeric character. * May contain dashes (`-`), underscores (`_`), and dots (`.`). * **Regex:** `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$` ",
45
+ )
46
+ name: StrictStr = Field(description="The name of the instance.")
47
+ network: UpdateInstancePayloadNetwork
48
+ retention_days: StrictInt = Field(
49
+ description="The days for how long the backup files should be stored before cleaned up. 30 to 90",
50
+ alias="retentionDays",
51
+ )
52
+ storage: StorageUpdate
53
+ version: InstanceVersion
54
+ __properties: ClassVar[List[str]] = [
55
+ "backupSchedule",
56
+ "flavorId",
57
+ "labels",
58
+ "name",
59
+ "network",
60
+ "retentionDays",
61
+ "storage",
62
+ "version",
63
+ ]
47
64
 
48
65
  model_config = ConfigDict(
49
66
  validate_by_name=True,
@@ -82,9 +99,12 @@ class UpdateInstancePayload(BaseModel):
82
99
  exclude=excluded_fields,
83
100
  exclude_none=True,
84
101
  )
85
- # override the default output from pydantic by calling `to_dict()` of acl
86
- if self.acl:
87
- _dict["acl"] = self.acl.to_dict()
102
+ # override the default output from pydantic by calling `to_dict()` of network
103
+ if self.network:
104
+ _dict["network"] = self.network.to_dict()
105
+ # override the default output from pydantic by calling `to_dict()` of storage
106
+ if self.storage:
107
+ _dict["storage"] = self.storage.to_dict()
88
108
  return _dict
89
109
 
90
110
  @classmethod
@@ -98,12 +118,16 @@ class UpdateInstancePayload(BaseModel):
98
118
 
99
119
  _obj = cls.model_validate(
100
120
  {
101
- "acl": InstanceDocumentationACL.from_dict(obj["acl"]) if obj.get("acl") is not None else None,
102
121
  "backupSchedule": obj.get("backupSchedule"),
103
122
  "flavorId": obj.get("flavorId"),
104
123
  "labels": obj.get("labels"),
105
124
  "name": obj.get("name"),
106
- "version": obj.get("version") if obj.get("version") is not None else "2022",
125
+ "network": (
126
+ UpdateInstancePayloadNetwork.from_dict(obj["network"]) if obj.get("network") is not None else None
127
+ ),
128
+ "retentionDays": obj.get("retentionDays"),
129
+ "storage": StorageUpdate.from_dict(obj["storage"]) if obj.get("storage") is not None else None,
130
+ "version": obj.get("version"),
107
131
  }
108
132
  )
109
133
  return _obj
@@ -1,15 +1,15 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT MSSQL Service API
4
+ STACKIT MSSQL Service API
5
5
 
6
- This is the documentation for the STACKIT MSSQL service
6
+ This is the documentation for the STACKIT MSSQL service
7
7
 
8
- The version of the OpenAPI document: 2.0.0
9
- Contact: support@stackit.cloud
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 3.0.0
9
+ Contact: support@stackit.cloud
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
@@ -18,18 +18,18 @@ import json
18
18
  import pprint
19
19
  from typing import Any, ClassVar, Dict, List, Optional, Set
20
20
 
21
- from pydantic import BaseModel, ConfigDict, StrictStr
21
+ from pydantic import BaseModel, ConfigDict, Field, StrictStr
22
22
  from pydantic_core import to_jsonable_python
23
23
  from typing_extensions import Self
24
24
 
25
25
 
26
- class ACL(BaseModel):
26
+ class UpdateInstancePayloadNetwork(BaseModel):
27
27
  """
28
- ACL
28
+ the network configuration of the instance.
29
29
  """ # noqa: E501
30
30
 
31
- items: Optional[List[StrictStr]] = None
32
- __properties: ClassVar[List[str]] = ["items"]
31
+ acl: List[StrictStr] = Field(description="List of IPV4 cidr.")
32
+ __properties: ClassVar[List[str]] = ["acl"]
33
33
 
34
34
  model_config = ConfigDict(
35
35
  validate_by_name=True,
@@ -48,7 +48,7 @@ class ACL(BaseModel):
48
48
 
49
49
  @classmethod
50
50
  def from_json(cls, json_str: str) -> Optional[Self]:
51
- """Create an instance of ACL from a JSON string"""
51
+ """Create an instance of UpdateInstancePayloadNetwork from a JSON string"""
52
52
  return cls.from_dict(json.loads(json_str))
53
53
 
54
54
  def to_dict(self) -> Dict[str, Any]:
@@ -72,12 +72,12 @@ class ACL(BaseModel):
72
72
 
73
73
  @classmethod
74
74
  def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
75
- """Create an instance of ACL from a dict"""
75
+ """Create an instance of UpdateInstancePayloadNetwork from a dict"""
76
76
  if obj is None:
77
77
  return None
78
78
 
79
79
  if not isinstance(obj, dict):
80
80
  return cls.model_validate(obj)
81
81
 
82
- _obj = cls.model_validate({"items": obj.get("items")})
82
+ _obj = cls.model_validate({"acl": obj.get("acl")})
83
83
  return _obj
@@ -0,0 +1,83 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ STACKIT MSSQL Service API
5
+
6
+ This is the documentation for the STACKIT MSSQL service
7
+
8
+ The version of the OpenAPI document: 3.0.0
9
+ Contact: support@stackit.cloud
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
+
12
+ Do not edit the class manually.
13
+ """ # noqa: E501
14
+
15
+ from __future__ import annotations
16
+
17
+ import json
18
+ import pprint
19
+ from typing import Any, ClassVar, Dict, List, Optional, Set
20
+
21
+ from pydantic import BaseModel, ConfigDict, Field, StrictBool
22
+ from pydantic_core import to_jsonable_python
23
+ from typing_extensions import Self
24
+
25
+
26
+ class UpdateInstanceProtectionPayload(BaseModel):
27
+ """
28
+ UpdateInstanceProtectionPayload
29
+ """ # noqa: E501
30
+
31
+ is_deletable: StrictBool = Field(description="Protect instance from deletion.", alias="isDeletable")
32
+ __properties: ClassVar[List[str]] = ["isDeletable"]
33
+
34
+ model_config = ConfigDict(
35
+ validate_by_name=True,
36
+ validate_by_alias=True,
37
+ validate_assignment=True,
38
+ protected_namespaces=(),
39
+ )
40
+
41
+ def to_str(self) -> str:
42
+ """Returns the string representation of the model using alias"""
43
+ return pprint.pformat(self.model_dump(by_alias=True))
44
+
45
+ def to_json(self) -> str:
46
+ """Returns the JSON representation of the model using alias"""
47
+ return json.dumps(to_jsonable_python(self.to_dict()))
48
+
49
+ @classmethod
50
+ def from_json(cls, json_str: str) -> Optional[Self]:
51
+ """Create an instance of UpdateInstanceProtectionPayload from a JSON string"""
52
+ return cls.from_dict(json.loads(json_str))
53
+
54
+ def to_dict(self) -> Dict[str, Any]:
55
+ """Return the dictionary representation of the model using alias.
56
+
57
+ This has the following differences from calling pydantic's
58
+ `self.model_dump(by_alias=True)`:
59
+
60
+ * `None` is only added to the output dict for nullable fields that
61
+ were set at model initialization. Other fields with value `None`
62
+ are ignored.
63
+ """
64
+ excluded_fields: Set[str] = set([])
65
+
66
+ _dict = self.model_dump(
67
+ by_alias=True,
68
+ exclude=excluded_fields,
69
+ exclude_none=True,
70
+ )
71
+ return _dict
72
+
73
+ @classmethod
74
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
75
+ """Create an instance of UpdateInstanceProtectionPayload from a dict"""
76
+ if obj is None:
77
+ return None
78
+
79
+ if not isinstance(obj, dict):
80
+ return cls.model_validate(obj)
81
+
82
+ _obj = cls.model_validate({"isDeletable": obj.get("isDeletable")})
83
+ return _obj
@@ -0,0 +1,83 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ STACKIT MSSQL Service API
5
+
6
+ This is the documentation for the STACKIT MSSQL service
7
+
8
+ The version of the OpenAPI document: 3.0.0
9
+ Contact: support@stackit.cloud
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
+
12
+ Do not edit the class manually.
13
+ """ # noqa: E501
14
+
15
+ from __future__ import annotations
16
+
17
+ import json
18
+ import pprint
19
+ from typing import Any, ClassVar, Dict, List, Optional, Set
20
+
21
+ from pydantic import BaseModel, ConfigDict, Field, StrictBool
22
+ from pydantic_core import to_jsonable_python
23
+ from typing_extensions import Self
24
+
25
+
26
+ class UpdateInstanceProtectionResponse(BaseModel):
27
+ """
28
+ UpdateInstanceProtectionResponse
29
+ """ # noqa: E501
30
+
31
+ is_deletable: StrictBool = Field(description="Protect instance from deletion.", alias="isDeletable")
32
+ __properties: ClassVar[List[str]] = ["isDeletable"]
33
+
34
+ model_config = ConfigDict(
35
+ validate_by_name=True,
36
+ validate_by_alias=True,
37
+ validate_assignment=True,
38
+ protected_namespaces=(),
39
+ )
40
+
41
+ def to_str(self) -> str:
42
+ """Returns the string representation of the model using alias"""
43
+ return pprint.pformat(self.model_dump(by_alias=True))
44
+
45
+ def to_json(self) -> str:
46
+ """Returns the JSON representation of the model using alias"""
47
+ return json.dumps(to_jsonable_python(self.to_dict()))
48
+
49
+ @classmethod
50
+ def from_json(cls, json_str: str) -> Optional[Self]:
51
+ """Create an instance of UpdateInstanceProtectionResponse from a JSON string"""
52
+ return cls.from_dict(json.loads(json_str))
53
+
54
+ def to_dict(self) -> Dict[str, Any]:
55
+ """Return the dictionary representation of the model using alias.
56
+
57
+ This has the following differences from calling pydantic's
58
+ `self.model_dump(by_alias=True)`:
59
+
60
+ * `None` is only added to the output dict for nullable fields that
61
+ were set at model initialization. Other fields with value `None`
62
+ are ignored.
63
+ """
64
+ excluded_fields: Set[str] = set([])
65
+
66
+ _dict = self.model_dump(
67
+ by_alias=True,
68
+ exclude=excluded_fields,
69
+ exclude_none=True,
70
+ )
71
+ return _dict
72
+
73
+ @classmethod
74
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
75
+ """Create an instance of UpdateInstanceProtectionResponse from a dict"""
76
+ if obj is None:
77
+ return None
78
+
79
+ if not isinstance(obj, dict):
80
+ return cls.model_validate(obj)
81
+
82
+ _obj = cls.model_validate({"isDeletable": obj.get("isDeletable")})
83
+ return _obj
@@ -0,0 +1,43 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ STACKIT MSSQL Service API
5
+
6
+ This is the documentation for the STACKIT MSSQL service
7
+
8
+ The version of the OpenAPI document: 3.0.0
9
+ Contact: support@stackit.cloud
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
+
12
+ Do not edit the class manually.
13
+ """ # noqa: E501
14
+
15
+ from __future__ import annotations
16
+
17
+ import json
18
+ from enum import Enum
19
+
20
+ from typing_extensions import Self
21
+
22
+
23
+ class UserSort(str, Enum):
24
+ """
25
+ UserSort
26
+ """
27
+
28
+ """
29
+ allowed enum values
30
+ """
31
+ ID_DOT_ASC = "id.asc"
32
+ ID_DOT_DESC = "id.desc"
33
+ INDEX_DOT_DESC = "index.desc"
34
+ INDEX_DOT_ASC = "index.asc"
35
+ NAME_DOT_DESC = "name.desc"
36
+ NAME_DOT_ASC = "name.asc"
37
+ STATUS_DOT_DESC = "status.desc"
38
+ STATUS_DOT_ASC = "status.asc"
39
+
40
+ @classmethod
41
+ def from_json(cls, json_str: str) -> Self:
42
+ """Create an instance of UserSort from a JSON string"""
43
+ return cls(json.loads(json_str))