stackit-postgresflex 1.2.2__tar.gz → 1.4.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. {stackit_postgresflex-1.2.2 → stackit_postgresflex-1.4.0}/PKG-INFO +3 -4
  2. {stackit_postgresflex-1.2.2 → stackit_postgresflex-1.4.0}/pyproject.toml +7 -7
  3. {stackit_postgresflex-1.2.2 → stackit_postgresflex-1.4.0}/src/stackit/postgresflex/__init__.py +6 -7
  4. {stackit_postgresflex-1.2.2 → stackit_postgresflex-1.4.0}/src/stackit/postgresflex/api/default_api.py +6 -6
  5. {stackit_postgresflex-1.2.2 → stackit_postgresflex-1.4.0}/src/stackit/postgresflex/api_client.py +21 -24
  6. {stackit_postgresflex-1.2.2 → stackit_postgresflex-1.4.0}/src/stackit/postgresflex/api_response.py +0 -1
  7. {stackit_postgresflex-1.2.2 → stackit_postgresflex-1.4.0}/src/stackit/postgresflex/configuration.py +6 -7
  8. {stackit_postgresflex-1.2.2 → stackit_postgresflex-1.4.0}/src/stackit/postgresflex/exceptions.py +6 -6
  9. {stackit_postgresflex-1.2.2 → stackit_postgresflex-1.4.0}/src/stackit/postgresflex/models/__init__.py +6 -6
  10. {stackit_postgresflex-1.2.2 → stackit_postgresflex-1.4.0}/src/stackit/postgresflex/models/acl.py +10 -9
  11. {stackit_postgresflex-1.2.2 → stackit_postgresflex-1.4.0}/src/stackit/postgresflex/models/api_configuration.py +10 -9
  12. {stackit_postgresflex-1.2.2 → stackit_postgresflex-1.4.0}/src/stackit/postgresflex/models/api_extension_config_load_response.py +10 -9
  13. {stackit_postgresflex-1.2.2 → stackit_postgresflex-1.4.0}/src/stackit/postgresflex/models/api_extension_configure_response.py +10 -9
  14. {stackit_postgresflex-1.2.2 → stackit_postgresflex-1.4.0}/src/stackit/postgresflex/models/api_extension_delete_response.py +10 -9
  15. {stackit_postgresflex-1.2.2 → stackit_postgresflex-1.4.0}/src/stackit/postgresflex/models/api_extension_list.py +10 -9
  16. {stackit_postgresflex-1.2.2 → stackit_postgresflex-1.4.0}/src/stackit/postgresflex/models/api_extension_load_response.py +10 -9
  17. {stackit_postgresflex-1.2.2 → stackit_postgresflex-1.4.0}/src/stackit/postgresflex/models/api_install_response.py +10 -9
  18. {stackit_postgresflex-1.2.2 → stackit_postgresflex-1.4.0}/src/stackit/postgresflex/models/api_installed_list_response.py +10 -9
  19. {stackit_postgresflex-1.2.2 → stackit_postgresflex-1.4.0}/src/stackit/postgresflex/models/backup.py +10 -9
  20. {stackit_postgresflex-1.2.2 → stackit_postgresflex-1.4.0}/src/stackit/postgresflex/models/clone_instance_payload.py +10 -9
  21. {stackit_postgresflex-1.2.2 → stackit_postgresflex-1.4.0}/src/stackit/postgresflex/models/clone_instance_response.py +10 -9
  22. {stackit_postgresflex-1.2.2 → stackit_postgresflex-1.4.0}/src/stackit/postgresflex/models/create_database_payload.py +10 -9
  23. {stackit_postgresflex-1.2.2 → stackit_postgresflex-1.4.0}/src/stackit/postgresflex/models/create_instance_payload.py +10 -9
  24. {stackit_postgresflex-1.2.2 → stackit_postgresflex-1.4.0}/src/stackit/postgresflex/models/create_instance_response.py +10 -9
  25. {stackit_postgresflex-1.2.2 → stackit_postgresflex-1.4.0}/src/stackit/postgresflex/models/create_user_payload.py +10 -9
  26. {stackit_postgresflex-1.2.2 → stackit_postgresflex-1.4.0}/src/stackit/postgresflex/models/create_user_response.py +10 -9
  27. {stackit_postgresflex-1.2.2 → stackit_postgresflex-1.4.0}/src/stackit/postgresflex/models/error.py +10 -9
  28. {stackit_postgresflex-1.2.2 → stackit_postgresflex-1.4.0}/src/stackit/postgresflex/models/extensions_configuration.py +10 -9
  29. {stackit_postgresflex-1.2.2 → stackit_postgresflex-1.4.0}/src/stackit/postgresflex/models/extensions_extension_list_response.py +10 -9
  30. {stackit_postgresflex-1.2.2 → stackit_postgresflex-1.4.0}/src/stackit/postgresflex/models/extensions_new_config.py +10 -9
  31. {stackit_postgresflex-1.2.2 → stackit_postgresflex-1.4.0}/src/stackit/postgresflex/models/flavor.py +10 -9
  32. {stackit_postgresflex-1.2.2 → stackit_postgresflex-1.4.0}/src/stackit/postgresflex/models/get_backup_response.py +10 -9
  33. {stackit_postgresflex-1.2.2 → stackit_postgresflex-1.4.0}/src/stackit/postgresflex/models/get_user_response.py +10 -9
  34. {stackit_postgresflex-1.2.2 → stackit_postgresflex-1.4.0}/src/stackit/postgresflex/models/instance.py +10 -9
  35. {stackit_postgresflex-1.2.2 → stackit_postgresflex-1.4.0}/src/stackit/postgresflex/models/instance_create_database_response.py +10 -9
  36. {stackit_postgresflex-1.2.2 → stackit_postgresflex-1.4.0}/src/stackit/postgresflex/models/instance_data_point.py +10 -9
  37. {stackit_postgresflex-1.2.2 → stackit_postgresflex-1.4.0}/src/stackit/postgresflex/models/instance_database.py +10 -9
  38. {stackit_postgresflex-1.2.2 → stackit_postgresflex-1.4.0}/src/stackit/postgresflex/models/instance_host.py +10 -9
  39. {stackit_postgresflex-1.2.2 → stackit_postgresflex-1.4.0}/src/stackit/postgresflex/models/instance_host_metric.py +10 -9
  40. {stackit_postgresflex-1.2.2 → stackit_postgresflex-1.4.0}/src/stackit/postgresflex/models/instance_list_databases_response.py +10 -9
  41. {stackit_postgresflex-1.2.2 → stackit_postgresflex-1.4.0}/src/stackit/postgresflex/models/instance_list_instance.py +10 -9
  42. {stackit_postgresflex-1.2.2 → stackit_postgresflex-1.4.0}/src/stackit/postgresflex/models/instance_metrics_response.py +10 -9
  43. {stackit_postgresflex-1.2.2 → stackit_postgresflex-1.4.0}/src/stackit/postgresflex/models/instance_response.py +10 -9
  44. {stackit_postgresflex-1.2.2 → stackit_postgresflex-1.4.0}/src/stackit/postgresflex/models/list_backups_response.py +10 -9
  45. {stackit_postgresflex-1.2.2 → stackit_postgresflex-1.4.0}/src/stackit/postgresflex/models/list_flavors_response.py +10 -9
  46. {stackit_postgresflex-1.2.2 → stackit_postgresflex-1.4.0}/src/stackit/postgresflex/models/list_instances_response.py +10 -9
  47. {stackit_postgresflex-1.2.2 → stackit_postgresflex-1.4.0}/src/stackit/postgresflex/models/list_storages_response.py +10 -9
  48. {stackit_postgresflex-1.2.2 → stackit_postgresflex-1.4.0}/src/stackit/postgresflex/models/list_users_response.py +10 -9
  49. {stackit_postgresflex-1.2.2 → stackit_postgresflex-1.4.0}/src/stackit/postgresflex/models/list_users_response_item.py +10 -9
  50. {stackit_postgresflex-1.2.2 → stackit_postgresflex-1.4.0}/src/stackit/postgresflex/models/list_versions_response.py +10 -9
  51. {stackit_postgresflex-1.2.2 → stackit_postgresflex-1.4.0}/src/stackit/postgresflex/models/partial_update_instance_payload.py +10 -9
  52. {stackit_postgresflex-1.2.2 → stackit_postgresflex-1.4.0}/src/stackit/postgresflex/models/partial_update_instance_response.py +10 -9
  53. {stackit_postgresflex-1.2.2 → stackit_postgresflex-1.4.0}/src/stackit/postgresflex/models/partial_update_user_payload.py +10 -9
  54. {stackit_postgresflex-1.2.2 → stackit_postgresflex-1.4.0}/src/stackit/postgresflex/models/postgres_database_parameter.py +10 -9
  55. {stackit_postgresflex-1.2.2 → stackit_postgresflex-1.4.0}/src/stackit/postgresflex/models/postgres_database_parameter_response.py +10 -9
  56. {stackit_postgresflex-1.2.2 → stackit_postgresflex-1.4.0}/src/stackit/postgresflex/models/reset_user_response.py +10 -9
  57. {stackit_postgresflex-1.2.2 → stackit_postgresflex-1.4.0}/src/stackit/postgresflex/models/storage.py +10 -9
  58. {stackit_postgresflex-1.2.2 → stackit_postgresflex-1.4.0}/src/stackit/postgresflex/models/storage_range.py +10 -9
  59. {stackit_postgresflex-1.2.2 → stackit_postgresflex-1.4.0}/src/stackit/postgresflex/models/storage_update.py +10 -9
  60. {stackit_postgresflex-1.2.2 → stackit_postgresflex-1.4.0}/src/stackit/postgresflex/models/update_backup_schedule_payload.py +10 -9
  61. {stackit_postgresflex-1.2.2 → stackit_postgresflex-1.4.0}/src/stackit/postgresflex/models/update_instance_payload.py +10 -9
  62. {stackit_postgresflex-1.2.2 → stackit_postgresflex-1.4.0}/src/stackit/postgresflex/models/update_user_payload.py +10 -9
  63. {stackit_postgresflex-1.2.2 → stackit_postgresflex-1.4.0}/src/stackit/postgresflex/models/user.py +10 -9
  64. {stackit_postgresflex-1.2.2 → stackit_postgresflex-1.4.0}/src/stackit/postgresflex/models/user_response.py +10 -9
  65. {stackit_postgresflex-1.2.2 → stackit_postgresflex-1.4.0}/src/stackit/postgresflex/rest.py +6 -7
  66. {stackit_postgresflex-1.2.2 → stackit_postgresflex-1.4.0}/.gitignore +0 -0
  67. {stackit_postgresflex-1.2.2 → stackit_postgresflex-1.4.0}/LICENSE.md +0 -0
  68. {stackit_postgresflex-1.2.2 → stackit_postgresflex-1.4.0}/NOTICE.txt +0 -0
  69. {stackit_postgresflex-1.2.2 → stackit_postgresflex-1.4.0}/README.md +0 -0
  70. {stackit_postgresflex-1.2.2 → stackit_postgresflex-1.4.0}/src/stackit/postgresflex/api/__init__.py +0 -0
  71. {stackit_postgresflex-1.2.2 → stackit_postgresflex-1.4.0}/src/stackit/postgresflex/py.typed +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: stackit-postgresflex
3
- Version: 1.2.2
3
+ Version: 1.4.0
4
4
  Summary: STACKIT PostgreSQL Flex 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
 
@@ -1,15 +1,14 @@
1
1
  [project]
2
2
  name = "stackit-postgresflex"
3
- version = "v1.2.2"
3
+ version = "v1.4.0"
4
4
  description = "STACKIT PostgreSQL Flex API"
5
5
  authors = [{ name = "STACKIT Developer Tools", email = "developer-tools@stackit.cloud" }]
6
- requires-python = ">=3.9,<4.0"
6
+ requires-python = ">=3.10,<4.0"
7
7
  readme = "README.md"
8
8
  classifiers = [
9
9
  "Programming Language :: Python :: 3",
10
10
  "License :: OSI Approved :: Apache Software License",
11
11
  "Operating System :: OS Independent",
12
- "Programming Language :: Python :: 3.9",
13
12
  "Programming Language :: Python :: 3.10",
14
13
  "Programming Language :: Python :: 3.11",
15
14
  "Programming Language :: Python :: 3.12",
@@ -18,7 +17,7 @@ classifiers = [
18
17
  ]
19
18
  dependencies = [
20
19
  "stackit-core>=0.0.1a",
21
- "requests>=2.32.3",
20
+ "requests>=2.33.0",
22
21
  "pydantic>=2.9.2",
23
22
  "python-dateutil>=2.9.0.post0",
24
23
  ]
@@ -29,8 +28,8 @@ Issues = "https://github.com/stackitcloud/stackit-sdk-python/issues"
29
28
 
30
29
  [dependency-groups]
31
30
  dev = [
32
- "black>=24.8.0",
33
- "pytest>=8.3.3",
31
+ "black>=26.3.1",
32
+ "pytest>=9.1.1",
34
33
  "flake8>=5.0.3 ; python_full_version < '3.12'",
35
34
  "flake8>=6.0.1 ; python_full_version >= '3.12'",
36
35
  "flake8-black>=0.3.6",
@@ -102,7 +101,8 @@ show-source = false
102
101
  max-line-length = 120
103
102
  # E203,W503 and E704 are incompatible with the formatter black
104
103
  # W291 needs to be disabled because some doc-strings get generated with trailing whitespace but black won't re-format comments
105
- ignore = ["E203", "W503", "E704", "W291"]
104
+ # fixing B042 in upstream exceptions.mustache would be a breaking change
105
+ ignore = ["E203", "W503", "E704", "W291", "B042"]
106
106
  inline-quotes = '"'
107
107
  docstring-quotes = '"""'
108
108
  multiline-quotes = '"""'
@@ -3,18 +3,17 @@
3
3
  # flake8: noqa
4
4
 
5
5
  """
6
- STACKIT PostgreSQL Flex API
6
+ STACKIT PostgreSQL Flex API
7
7
 
8
- This is the documentation for the STACKIT postgres service
8
+ This is the documentation for the STACKIT postgres service
9
9
 
10
- The version of the OpenAPI document: 2.0.0
11
- Contact: support@stackit.cloud
12
- Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+ The version of the OpenAPI document: 2.0.0
11
+ Contact: support@stackit.cloud
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 PostgreSQL Flex API
4
+ STACKIT PostgreSQL Flex API
5
5
 
6
- This is the documentation for the STACKIT postgres service
6
+ This is the documentation for the STACKIT postgres 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: 2.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 typing import Any, Dict, List, Optional, Tuple, Union
@@ -1,15 +1,15 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT PostgreSQL Flex API
4
+ STACKIT PostgreSQL Flex API
5
5
 
6
- This is the documentation for the STACKIT postgres service
6
+ This is the documentation for the STACKIT postgres 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: 2.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
  import datetime
@@ -37,7 +37,6 @@ from stackit.postgresflex.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 PostgreSQL Flex API
4
+ STACKIT PostgreSQL Flex API
5
5
 
6
- This is the documentation for the STACKIT postgres service
6
+ This is the documentation for the STACKIT postgres 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: 2.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
  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 PostgreSQL Flex API
4
+ STACKIT PostgreSQL Flex API
5
5
 
6
- This is the documentation for the STACKIT postgres service
6
+ This is the documentation for the STACKIT postgres 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: 2.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 typing import Any, Optional
@@ -2,15 +2,15 @@
2
2
 
3
3
  # flake8: noqa
4
4
  """
5
- STACKIT PostgreSQL Flex API
5
+ STACKIT PostgreSQL Flex API
6
6
 
7
- This is the documentation for the STACKIT postgres service
7
+ This is the documentation for the STACKIT postgres service
8
8
 
9
- The version of the OpenAPI document: 2.0.0
10
- Contact: support@stackit.cloud
11
- Generated by OpenAPI Generator (https://openapi-generator.tech)
9
+ The version of the OpenAPI document: 2.0.0
10
+ Contact: support@stackit.cloud
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 PostgreSQL Flex API
4
+ STACKIT PostgreSQL Flex API
5
5
 
6
- This is the documentation for the STACKIT postgres service
6
+ This is the documentation for the STACKIT postgres 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: 2.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
@@ -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 ACL(BaseModel):
31
32
  __properties: ClassVar[List[str]] = ["items"]
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 ACL(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 PostgreSQL Flex API
4
+ STACKIT PostgreSQL Flex API
5
5
 
6
- This is the documentation for the STACKIT postgres service
6
+ This is the documentation for the STACKIT postgres 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: 2.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
@@ -19,6 +19,7 @@ import pprint
19
19
  from typing import Any, ClassVar, Dict, List, Optional, Set
20
20
 
21
21
  from pydantic import BaseModel, ConfigDict, StrictStr
22
+ from pydantic_core import to_jsonable_python
22
23
  from typing_extensions import Self
23
24
 
24
25
 
@@ -32,7 +33,8 @@ class ApiConfiguration(BaseModel):
32
33
  __properties: ClassVar[List[str]] = ["name", "setting"]
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 ApiConfiguration(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 PostgreSQL Flex API
4
+ STACKIT PostgreSQL Flex API
5
5
 
6
- This is the documentation for the STACKIT postgres service
6
+ This is the documentation for the STACKIT postgres 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: 2.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
@@ -19,6 +19,7 @@ import pprint
19
19
  from typing import Any, ClassVar, Dict, List, Optional, Set
20
20
 
21
21
  from pydantic import BaseModel, ConfigDict, Field
22
+ from pydantic_core import to_jsonable_python
22
23
  from typing_extensions import Self
23
24
 
24
25
  from stackit.postgresflex.models.api_configuration import ApiConfiguration
@@ -35,7 +36,8 @@ class ApiExtensionConfigLoadResponse(BaseModel):
35
36
  __properties: ClassVar[List[str]] = ["configuration"]
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 ApiExtensionConfigLoadResponse(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 PostgreSQL Flex API
4
+ STACKIT PostgreSQL Flex API
5
5
 
6
- This is the documentation for the STACKIT postgres service
6
+ This is the documentation for the STACKIT postgres 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: 2.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
@@ -19,6 +19,7 @@ import pprint
19
19
  from typing import Any, ClassVar, Dict, List, Optional, Set
20
20
 
21
21
  from pydantic import BaseModel, ConfigDict, Field
22
+ from pydantic_core import to_jsonable_python
22
23
  from typing_extensions import Self
23
24
 
24
25
  from stackit.postgresflex.models.api_configuration import ApiConfiguration
@@ -35,7 +36,8 @@ class ApiExtensionConfigureResponse(BaseModel):
35
36
  __properties: ClassVar[List[str]] = ["configuration"]
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 ApiExtensionConfigureResponse(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 PostgreSQL Flex API
4
+ STACKIT PostgreSQL Flex API
5
5
 
6
- This is the documentation for the STACKIT postgres service
6
+ This is the documentation for the STACKIT postgres 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: 2.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
@@ -19,6 +19,7 @@ import pprint
19
19
  from typing import Any, ClassVar, Dict, List, Optional, Set
20
20
 
21
21
  from pydantic import BaseModel, ConfigDict, Field, StrictBool
22
+ from pydantic_core import to_jsonable_python
22
23
  from typing_extensions import Self
23
24
 
24
25
 
@@ -31,7 +32,8 @@ class ApiExtensionDeleteResponse(BaseModel):
31
32
  __properties: ClassVar[List[str]] = ["isSucceded"]
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 ApiExtensionDeleteResponse(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 PostgreSQL Flex API
4
+ STACKIT PostgreSQL Flex API
5
5
 
6
- This is the documentation for the STACKIT postgres service
6
+ This is the documentation for the STACKIT postgres 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: 2.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
@@ -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
 
@@ -33,7 +34,8 @@ class ApiExtensionList(BaseModel):
33
34
  __properties: ClassVar[List[str]] = ["ID", "description", "name"]
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 ApiExtensionList(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 PostgreSQL Flex API
4
+ STACKIT PostgreSQL Flex API
5
5
 
6
- This is the documentation for the STACKIT postgres service
6
+ This is the documentation for the STACKIT postgres 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: 2.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
@@ -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.postgresflex.models.api_extension_list import ApiExtensionList
@@ -33,7 +34,8 @@ class ApiExtensionLoadResponse(BaseModel):
33
34
  __properties: ClassVar[List[str]] = ["extension"]
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 ApiExtensionLoadResponse(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]: