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,94 +0,0 @@
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: 2.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
22
- from pydantic_core import to_jsonable_python
23
- from typing_extensions import Self
24
-
25
- from stackit.sqlserverflex.models.host import Host
26
-
27
-
28
- class ListMetricsResponse(BaseModel):
29
- """
30
- ListMetricsResponse
31
- """ # noqa: E501
32
-
33
- hosts: Optional[List[Host]] = None
34
- __properties: ClassVar[List[str]] = ["hosts"]
35
-
36
- model_config = ConfigDict(
37
- validate_by_name=True,
38
- validate_by_alias=True,
39
- validate_assignment=True,
40
- protected_namespaces=(),
41
- )
42
-
43
- def to_str(self) -> str:
44
- """Returns the string representation of the model using alias"""
45
- return pprint.pformat(self.model_dump(by_alias=True))
46
-
47
- def to_json(self) -> str:
48
- """Returns the JSON representation of the model using alias"""
49
- return json.dumps(to_jsonable_python(self.to_dict()))
50
-
51
- @classmethod
52
- def from_json(cls, json_str: str) -> Optional[Self]:
53
- """Create an instance of ListMetricsResponse from a JSON string"""
54
- return cls.from_dict(json.loads(json_str))
55
-
56
- def to_dict(self) -> Dict[str, Any]:
57
- """Return the dictionary representation of the model using alias.
58
-
59
- This has the following differences from calling pydantic's
60
- `self.model_dump(by_alias=True)`:
61
-
62
- * `None` is only added to the output dict for nullable fields that
63
- were set at model initialization. Other fields with value `None`
64
- are ignored.
65
- """
66
- excluded_fields: Set[str] = set([])
67
-
68
- _dict = self.model_dump(
69
- by_alias=True,
70
- exclude=excluded_fields,
71
- exclude_none=True,
72
- )
73
- # override the default output from pydantic by calling `to_dict()` of each item in hosts (list)
74
- _items = []
75
- if self.hosts:
76
- for _item_hosts in self.hosts:
77
- if _item_hosts:
78
- _items.append(_item_hosts.to_dict())
79
- _dict["hosts"] = _items
80
- return _dict
81
-
82
- @classmethod
83
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
84
- """Create an instance of ListMetricsResponse from a dict"""
85
- if obj is None:
86
- return None
87
-
88
- if not isinstance(obj, dict):
89
- return cls.model_validate(obj)
90
-
91
- _obj = cls.model_validate(
92
- {"hosts": [Host.from_dict(_item) for _item in obj["hosts"]] if obj.get("hosts") is not None else None}
93
- )
94
- return _obj
@@ -1,110 +0,0 @@
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: 2.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, StrictInt, StrictStr
22
- from pydantic_core import to_jsonable_python
23
- from typing_extensions import Self
24
-
25
-
26
- class SingleUser(BaseModel):
27
- """
28
- SingleUser
29
- """ # noqa: E501
30
-
31
- default_database: Optional[StrictStr] = None
32
- host: Optional[StrictStr] = None
33
- id: Optional[StrictStr] = None
34
- password: Optional[StrictStr] = None
35
- port: Optional[StrictInt] = None
36
- roles: Optional[List[StrictStr]] = None
37
- uri: Optional[StrictStr] = None
38
- username: Optional[StrictStr] = None
39
- __properties: ClassVar[List[str]] = [
40
- "default_database",
41
- "host",
42
- "id",
43
- "password",
44
- "port",
45
- "roles",
46
- "uri",
47
- "username",
48
- ]
49
-
50
- model_config = ConfigDict(
51
- validate_by_name=True,
52
- validate_by_alias=True,
53
- validate_assignment=True,
54
- protected_namespaces=(),
55
- )
56
-
57
- def to_str(self) -> str:
58
- """Returns the string representation of the model using alias"""
59
- return pprint.pformat(self.model_dump(by_alias=True))
60
-
61
- def to_json(self) -> str:
62
- """Returns the JSON representation of the model using alias"""
63
- return json.dumps(to_jsonable_python(self.to_dict()))
64
-
65
- @classmethod
66
- def from_json(cls, json_str: str) -> Optional[Self]:
67
- """Create an instance of SingleUser from a JSON string"""
68
- return cls.from_dict(json.loads(json_str))
69
-
70
- def to_dict(self) -> Dict[str, Any]:
71
- """Return the dictionary representation of the model using alias.
72
-
73
- This has the following differences from calling pydantic's
74
- `self.model_dump(by_alias=True)`:
75
-
76
- * `None` is only added to the output dict for nullable fields that
77
- were set at model initialization. Other fields with value `None`
78
- are ignored.
79
- """
80
- excluded_fields: Set[str] = set([])
81
-
82
- _dict = self.model_dump(
83
- by_alias=True,
84
- exclude=excluded_fields,
85
- exclude_none=True,
86
- )
87
- return _dict
88
-
89
- @classmethod
90
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
91
- """Create an instance of SingleUser from a dict"""
92
- if obj is None:
93
- return None
94
-
95
- if not isinstance(obj, dict):
96
- return cls.model_validate(obj)
97
-
98
- _obj = cls.model_validate(
99
- {
100
- "default_database": obj.get("default_database"),
101
- "host": obj.get("host"),
102
- "id": obj.get("id"),
103
- "password": obj.get("password"),
104
- "port": obj.get("port"),
105
- "roles": obj.get("roles"),
106
- "uri": obj.get("uri"),
107
- "username": obj.get("username"),
108
- }
109
- )
110
- return _obj
@@ -1,41 +0,0 @@
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: 2.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 Type(str, Enum):
24
- """
25
- Type
26
- """
27
-
28
- """
29
- allowed enum values
30
- """
31
- NOTFOUND = "NotFound"
32
- CREATE = "Create"
33
- READ = "Read"
34
- DELETE = "Delete"
35
- UPDATE = "Update"
36
- VALIDATION = "Validation"
37
-
38
- @classmethod
39
- def from_json(cls, json_str: str) -> Self:
40
- """Create an instance of Type from a JSON string"""
41
- return cls(json.loads(json_str))
@@ -1,88 +0,0 @@
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: 2.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
22
- from pydantic_core import to_jsonable_python
23
- from typing_extensions import Self
24
-
25
- from stackit.sqlserverflex.models.instance import Instance
26
-
27
-
28
- class UpdateInstanceResponse(BaseModel):
29
- """
30
- UpdateInstanceResponse
31
- """ # noqa: E501
32
-
33
- item: Optional[Instance] = None
34
- __properties: ClassVar[List[str]] = ["item"]
35
-
36
- model_config = ConfigDict(
37
- validate_by_name=True,
38
- validate_by_alias=True,
39
- validate_assignment=True,
40
- protected_namespaces=(),
41
- )
42
-
43
- def to_str(self) -> str:
44
- """Returns the string representation of the model using alias"""
45
- return pprint.pformat(self.model_dump(by_alias=True))
46
-
47
- def to_json(self) -> str:
48
- """Returns the JSON representation of the model using alias"""
49
- return json.dumps(to_jsonable_python(self.to_dict()))
50
-
51
- @classmethod
52
- def from_json(cls, json_str: str) -> Optional[Self]:
53
- """Create an instance of UpdateInstanceResponse from a JSON string"""
54
- return cls.from_dict(json.loads(json_str))
55
-
56
- def to_dict(self) -> Dict[str, Any]:
57
- """Return the dictionary representation of the model using alias.
58
-
59
- This has the following differences from calling pydantic's
60
- `self.model_dump(by_alias=True)`:
61
-
62
- * `None` is only added to the output dict for nullable fields that
63
- were set at model initialization. Other fields with value `None`
64
- are ignored.
65
- """
66
- excluded_fields: Set[str] = set([])
67
-
68
- _dict = self.model_dump(
69
- by_alias=True,
70
- exclude=excluded_fields,
71
- exclude_none=True,
72
- )
73
- # override the default output from pydantic by calling `to_dict()` of item
74
- if self.item:
75
- _dict["item"] = self.item.to_dict()
76
- return _dict
77
-
78
- @classmethod
79
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
80
- """Create an instance of UpdateInstanceResponse from a dict"""
81
- if obj is None:
82
- return None
83
-
84
- if not isinstance(obj, dict):
85
- return cls.model_validate(obj)
86
-
87
- _obj = cls.model_validate({"item": Instance.from_dict(obj["item"]) if obj.get("item") is not None else None})
88
- return _obj
@@ -1,101 +0,0 @@
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: 2.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, StrictInt, StrictStr
22
- from pydantic_core import to_jsonable_python
23
- from typing_extensions import Self
24
-
25
-
26
- class User(BaseModel):
27
- """
28
- User
29
- """ # noqa: E501
30
-
31
- database: Optional[StrictStr] = None
32
- host: Optional[StrictStr] = None
33
- id: Optional[StrictStr] = None
34
- password: Optional[StrictStr] = None
35
- port: Optional[StrictInt] = None
36
- roles: Optional[List[StrictStr]] = None
37
- uri: Optional[StrictStr] = None
38
- username: Optional[StrictStr] = None
39
- __properties: ClassVar[List[str]] = ["database", "host", "id", "password", "port", "roles", "uri", "username"]
40
-
41
- model_config = ConfigDict(
42
- validate_by_name=True,
43
- validate_by_alias=True,
44
- validate_assignment=True,
45
- protected_namespaces=(),
46
- )
47
-
48
- def to_str(self) -> str:
49
- """Returns the string representation of the model using alias"""
50
- return pprint.pformat(self.model_dump(by_alias=True))
51
-
52
- def to_json(self) -> str:
53
- """Returns the JSON representation of the model using alias"""
54
- return json.dumps(to_jsonable_python(self.to_dict()))
55
-
56
- @classmethod
57
- def from_json(cls, json_str: str) -> Optional[Self]:
58
- """Create an instance of User from a JSON string"""
59
- return cls.from_dict(json.loads(json_str))
60
-
61
- def to_dict(self) -> Dict[str, Any]:
62
- """Return the dictionary representation of the model using alias.
63
-
64
- This has the following differences from calling pydantic's
65
- `self.model_dump(by_alias=True)`:
66
-
67
- * `None` is only added to the output dict for nullable fields that
68
- were set at model initialization. Other fields with value `None`
69
- are ignored.
70
- """
71
- excluded_fields: Set[str] = set([])
72
-
73
- _dict = self.model_dump(
74
- by_alias=True,
75
- exclude=excluded_fields,
76
- exclude_none=True,
77
- )
78
- return _dict
79
-
80
- @classmethod
81
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
82
- """Create an instance of User from a dict"""
83
- if obj is None:
84
- return None
85
-
86
- if not isinstance(obj, dict):
87
- return cls.model_validate(obj)
88
-
89
- _obj = cls.model_validate(
90
- {
91
- "database": obj.get("database"),
92
- "host": obj.get("host"),
93
- "id": obj.get("id"),
94
- "password": obj.get("password"),
95
- "port": obj.get("port"),
96
- "roles": obj.get("roles"),
97
- "uri": obj.get("uri"),
98
- "username": obj.get("username"),
99
- }
100
- )
101
- return _obj
@@ -1,97 +0,0 @@
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: 2.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, StrictInt, StrictStr
22
- from pydantic_core import to_jsonable_python
23
- from typing_extensions import Self
24
-
25
-
26
- class UserResponseUser(BaseModel):
27
- """
28
- UserResponseUser
29
- """ # noqa: E501
30
-
31
- default_database: Optional[StrictStr] = None
32
- host: Optional[StrictStr] = None
33
- id: Optional[StrictStr] = None
34
- port: Optional[StrictInt] = None
35
- roles: Optional[List[StrictStr]] = None
36
- username: Optional[StrictStr] = None
37
- __properties: ClassVar[List[str]] = ["default_database", "host", "id", "port", "roles", "username"]
38
-
39
- model_config = ConfigDict(
40
- validate_by_name=True,
41
- validate_by_alias=True,
42
- validate_assignment=True,
43
- protected_namespaces=(),
44
- )
45
-
46
- def to_str(self) -> str:
47
- """Returns the string representation of the model using alias"""
48
- return pprint.pformat(self.model_dump(by_alias=True))
49
-
50
- def to_json(self) -> str:
51
- """Returns the JSON representation of the model using alias"""
52
- return json.dumps(to_jsonable_python(self.to_dict()))
53
-
54
- @classmethod
55
- def from_json(cls, json_str: str) -> Optional[Self]:
56
- """Create an instance of UserResponseUser from a JSON string"""
57
- return cls.from_dict(json.loads(json_str))
58
-
59
- def to_dict(self) -> Dict[str, Any]:
60
- """Return the dictionary representation of the model using alias.
61
-
62
- This has the following differences from calling pydantic's
63
- `self.model_dump(by_alias=True)`:
64
-
65
- * `None` is only added to the output dict for nullable fields that
66
- were set at model initialization. Other fields with value `None`
67
- are ignored.
68
- """
69
- excluded_fields: Set[str] = set([])
70
-
71
- _dict = self.model_dump(
72
- by_alias=True,
73
- exclude=excluded_fields,
74
- exclude_none=True,
75
- )
76
- return _dict
77
-
78
- @classmethod
79
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
80
- """Create an instance of UserResponseUser from a dict"""
81
- if obj is None:
82
- return None
83
-
84
- if not isinstance(obj, dict):
85
- return cls.model_validate(obj)
86
-
87
- _obj = cls.model_validate(
88
- {
89
- "default_database": obj.get("default_database"),
90
- "host": obj.get("host"),
91
- "id": obj.get("id"),
92
- "port": obj.get("port"),
93
- "roles": obj.get("roles"),
94
- "username": obj.get("username"),
95
- }
96
- )
97
- return _obj
@@ -1,70 +0,0 @@
1
- stackit/sqlserverflex/__init__.py,sha256=hhJLPiikxG7Dh_1aKrvY9JGZSIQCxxfQPEj1fbaWvT4,8885
2
- stackit/sqlserverflex/api_client.py,sha256=yFo9F7ff_LSxNioi-iNTTlVhRmLGthULTne06APHl0Y,23777
3
- stackit/sqlserverflex/api_response.py,sha256=HRYkVqMNIlfODacTQPTbiVj2YdcnutpQrKJdeAoCSpM,642
4
- stackit/sqlserverflex/configuration.py,sha256=zZWS4FlD2sFNyYYNJMYPjYJQaeeeyPa2tIU0bkbLfQM,5716
5
- stackit/sqlserverflex/exceptions.py,sha256=dJAg_qzM5bAKlsfnjAHybWYYV50DBras1u-Uh4tlpXw,6419
6
- stackit/sqlserverflex/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
- stackit/sqlserverflex/rest.py,sha256=teEVlvlsTW51ze4FZOnKPNHFuyL5LC57-IlJ-0Ii_vI,6415
8
- stackit/sqlserverflex/api/__init__.py,sha256=vnWx4mPu8WNw9lyJ-_R5PHyz_KTKRlPdAPCAl72jpnQ,108
9
- stackit/sqlserverflex/api/default_api.py,sha256=dgEzVBeUYPrjE0y_pBeofS_9oVtb1yrGGGoPu9jee4E,347253
10
- stackit/sqlserverflex/models/__init__.py,sha256=KdOtc1naGkGyh1DpGWoZeDXw1hQJOu7En2ycAzXTwi0,4887
11
- stackit/sqlserverflex/models/acl.py,sha256=BC47GyvRkvq-IjetriXt3xMenVaoYbJQWCBIRSlQkEc,2388
12
- stackit/sqlserverflex/models/backup.py,sha256=OQKQTVjaC1ttFquOomPj2xO_MiIDCUf8PwxDge9wHns,3196
13
- stackit/sqlserverflex/models/backup_list_backups_response_grouped.py,sha256=ondXHs_e7lBW1Yb8ICXroOL_kz6oyczEl1AAkp0eS2w,3152
14
- stackit/sqlserverflex/models/create_database_payload.py,sha256=AhHY_oeJS7n3lBYwbNo1jrrptbdrpatLlhi5qvpVRsc,3109
15
- stackit/sqlserverflex/models/create_database_response.py,sha256=Q2lIXte3xjP-buu6Kh4oKsC8betxCGCcSP6gCsQhWC0,2446
16
- stackit/sqlserverflex/models/create_instance_payload.py,sha256=kzg9gFzwpr0wDO4CHEowTJbbt-uRaCz6wc5IZn2GzsM,5175
17
- stackit/sqlserverflex/models/create_instance_response.py,sha256=qOcdkWWspOCHorBimZQ3eq92qAZSGvfu6YEORCTZiDc,2446
18
- stackit/sqlserverflex/models/create_user_payload.py,sha256=XdGveYm8XXEG7wCxCGB5GTYHC-1tnZNCMFeIt0kXPEU,2699
19
- stackit/sqlserverflex/models/create_user_response.py,sha256=-8xRK62gwjZ183Na4uDx-vbrus7C1xjpdtiuP6NOStw,2705
20
- stackit/sqlserverflex/models/data_point.py,sha256=p4tRAQOxvrPrDSsdDPQJCD5wg-uskXgeCXiM8nenxMg,2572
21
- stackit/sqlserverflex/models/database.py,sha256=SPpzf-RlmjV9fmi91O8ciG7TIiLtt36o2GfjJNwsj2w,2610
22
- stackit/sqlserverflex/models/database_documentation_create_database_request_options.py,sha256=VQen-oZS73BCJVG32N7c1xWC1TkRR3jD121sy0kS6Pw,3080
23
- stackit/sqlserverflex/models/database_options.py,sha256=VFKcmMKabytEMT2FkDVDqqtHuWm7LxDIg-wKTIJSN7A,3045
24
- stackit/sqlserverflex/models/flavor.py,sha256=ZOEC39N32HuoX1jrGJOvxMNMTk_DDOeeWHW7FC19dMo,2736
25
- stackit/sqlserverflex/models/get_backup_response.py,sha256=047a3X1bzDnbilRad-52H9p8O4LQ3rfJNRYcDdn4kpE,3663
26
- stackit/sqlserverflex/models/get_database_response.py,sha256=HKlvG_PT7PeQMLmvRiCV5xyzg0GEVlleRySdUBeZoT4,2783
27
- stackit/sqlserverflex/models/get_instance_response.py,sha256=R_8VzryRsu6iah694TEhOXjMISb5KP6wTqEqnVO11jo,2700
28
- stackit/sqlserverflex/models/get_user_response.py,sha256=SgsNbINwEW1CIbYSmz39EY6XjSb5AOqoxBG5OIQqMbM,2740
29
- stackit/sqlserverflex/models/host.py,sha256=ortVRrjNDyYzuAjBKm9czbqngXpYpBDPln-hCHdz9F8,3187
30
- stackit/sqlserverflex/models/host_metric.py,sha256=jjckdMZk9IIOg6-JKFiDvwkPzgRx-RO0IdjVC1h2ghw,3243
31
- stackit/sqlserverflex/models/instance.py,sha256=pb3a8fjO4vYMIW-la4gpCGTnxf9GIKDUNQj9iAljoVc,4270
32
- stackit/sqlserverflex/models/instance_documentation_acl.py,sha256=X78YXaaJyiMtxquCY--XxNX8Mq2H35wLKJGZ89W41Kc,2552
33
- stackit/sqlserverflex/models/instance_documentation_options.py,sha256=LDoJjyFNOwabxUvRFxtrhOSxTk653iw3S3NV13KVFag,3017
34
- stackit/sqlserverflex/models/instance_documentation_storage.py,sha256=x-XDKjE1cCxNuBeEUHrTBXv_1yQeBdyLLAxCzm5LQGg,2872
35
- stackit/sqlserverflex/models/instance_error.py,sha256=Dw_2KQqAoYZkocxlVIhsKD7bws0Wxz666hPH61I_kDo,2824
36
- stackit/sqlserverflex/models/instance_flavor_entry.py,sha256=0A3EAnvgd7jG8f2yMelpj-BDg3h-43R71ZvZTij0Z8c,2898
37
- stackit/sqlserverflex/models/instance_list_instance.py,sha256=QMpzPDULcK_Kc6g71XkgYOcD2zFKg87bT8MdbgIsmk8,2586
38
- stackit/sqlserverflex/models/instance_list_user.py,sha256=1_RthVLQgyMZ1n6DepglCYTDwvfaDCfjUMxQHde72Bg,2508
39
- stackit/sqlserverflex/models/list_backups_response.py,sha256=jnF5YyMvgNjF_3O4exW5Lx3t4BQbTPv5MdcbuDm8XMc,3183
40
- stackit/sqlserverflex/models/list_collations_response.py,sha256=0tydGgmi8Xgxt8XfEs1kqvYV1QWhfTwef8MeKpAwxsE,3156
41
- stackit/sqlserverflex/models/list_compatibility_response.py,sha256=CgJZpsaANcsS8TLSQKVu-soNn7rSuRVliQmHPKnYF6I,3253
42
- stackit/sqlserverflex/models/list_databases_response.py,sha256=lxXyvoJEV-BLdNrODvY1SB4n3Uhjjr3sZdlDfPxYR6Y,3082
43
- stackit/sqlserverflex/models/list_flavors_response.py,sha256=-QBC7D3KLZ-qU9NlXrHtwi9iHL14fvs3zngS-huENP8,3096
44
- stackit/sqlserverflex/models/list_instances_response.py,sha256=LPz5Y3MRMOPSC9aQv9hVvdH8SffWHIl9GpDvUTIY2U0,3186
45
- stackit/sqlserverflex/models/list_metrics_response.py,sha256=wHCUdiNC0rEztRv0wulZmaK3KvqRMnetLsFX-7CG1nY,2900
46
- stackit/sqlserverflex/models/list_restore_jobs_response.py,sha256=yxzW342SLHNkC0bhuDqYAL3yvrY0Tw8yZ0FWkjuvnuI,3270
47
- stackit/sqlserverflex/models/list_roles_response.py,sha256=7tFuoj7Ra35Cq2lSA-PRupyJZnYEnsAxnk9LmhfgI6Y,2444
48
- stackit/sqlserverflex/models/list_storages_response.py,sha256=R_ZbEd99BbR_OvtgbvTMbj5uAmK6j4Z_CyYPWxYzXSs,3117
49
- stackit/sqlserverflex/models/list_users_response.py,sha256=2kOdJN45aWkAaLtEVm8sXdiHE2vvSutCqYC0AIGdEhU,3154
50
- stackit/sqlserverflex/models/list_versions_response.py,sha256=mk_AlXl-Ywt5kyZxJd-a15vhqCxvXDGMUCxClJpQf3o,2468
51
- stackit/sqlserverflex/models/mssql_database_collation.py,sha256=Y9m5KYNKkuf0PqjaTDycsU0DcBnJDx3gxUMgEuF1dPE,2592
52
- stackit/sqlserverflex/models/mssql_database_compatibility.py,sha256=-YaE760fq6rcLXC4_ROxTnmToE_sfNfou9JxU5pvvIk,2661
53
- stackit/sqlserverflex/models/partial_update_instance_payload.py,sha256=SXbiQnGMggIPfd2yO76cjptcNVBitjpY7HJsHB6ju_Q,3993
54
- stackit/sqlserverflex/models/reset_user_response.py,sha256=9OugpdOvNsvca2QPL11rGKtLD2WlIxqmnQ0kGQwS0Qg,2701
55
- stackit/sqlserverflex/models/restore_running_restore.py,sha256=OtAZg2qFTKI2DoRhCQfR9biBEnPP8M3dYYaEYBACaZs,3109
56
- stackit/sqlserverflex/models/single_database.py,sha256=X0XICix6owrx3Vg23vrcELYZ5QKJWIMVR0CeC5MB0q0,3113
57
- stackit/sqlserverflex/models/single_user.py,sha256=On8vw48sX7y3RBA_ALBZAcejAxi-_wc-BVkALm7lM_M,3221
58
- stackit/sqlserverflex/models/storage.py,sha256=wFV32aBuJEv4uz_vp4z81ASUZHPdg-zWd1b9J0YZnnk,2520
59
- stackit/sqlserverflex/models/storage_range.py,sha256=7A00Go8shkhKyn5HUttzsxYjG743sMslVvVgNiH7eUI,2476
60
- stackit/sqlserverflex/models/trigger_database_restore_payload.py,sha256=tSbs2DbvYy8bqj8tSw6I2D04s9mhvBVuh-g-yVOtaPc,2764
61
- stackit/sqlserverflex/models/type.py,sha256=X3InHcxgFvWCEkdwT0dfpI3c4SIwmeZXN6eruErRdG0,822
62
- stackit/sqlserverflex/models/update_instance_payload.py,sha256=jgq-mVHGRZDsUxTVO5XPV4_uO8Nl4n_42GPkO8NYgGQ,3802
63
- stackit/sqlserverflex/models/update_instance_response.py,sha256=yztiTIdWVc49B7__buoOZ0WATxpZG2PTQvGNkZKjFX0,2712
64
- stackit/sqlserverflex/models/user.py,sha256=jUCdEuhii2_9f7My8kql_2v9EfC5Y97DpNQzBQj0LjU,3094
65
- stackit/sqlserverflex/models/user_response_user.py,sha256=QmzmhkKKbSRvrGbsl1sjlNXXRgxkcRCvQStoN_BMYsg,2990
66
- stackit_sqlserverflex-1.2.0.dist-info/METADATA,sha256=uEnvy8bkQ73wG_50e2KATevsmQPdTi4NacqYOJf1Xq0,1804
67
- stackit_sqlserverflex-1.2.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
68
- stackit_sqlserverflex-1.2.0.dist-info/licenses/LICENSE.md,sha256=3dF8Tb7yZn2tS4zyNa-yNe-68pH8qyWdGz4ioMd3MgE,10933
69
- stackit_sqlserverflex-1.2.0.dist-info/licenses/NOTICE.txt,sha256=2NmOBbrveYxoc1q3Ttg2Py99H_uUiZtuzui5BSyh0qQ,66
70
- stackit_sqlserverflex-1.2.0.dist-info/RECORD,,