stackit-postgresflex 0.3.0__py3-none-any.whl → 1.0.2__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 (67) hide show
  1. stackit/postgresflex/__init__.py +194 -70
  2. stackit/postgresflex/api/default_api.py +619 -142
  3. stackit/postgresflex/api_client.py +20 -7
  4. stackit/postgresflex/configuration.py +36 -11
  5. stackit/postgresflex/exceptions.py +21 -2
  6. stackit/postgresflex/models/__init__.py +2 -2
  7. stackit/postgresflex/models/acl.py +3 -3
  8. stackit/postgresflex/models/api_configuration.py +3 -3
  9. stackit/postgresflex/models/api_extension_config_load_response.py +3 -3
  10. stackit/postgresflex/models/api_extension_configure_response.py +3 -3
  11. stackit/postgresflex/models/api_extension_delete_response.py +3 -3
  12. stackit/postgresflex/models/api_extension_list.py +3 -3
  13. stackit/postgresflex/models/api_extension_load_response.py +3 -3
  14. stackit/postgresflex/models/api_install_response.py +3 -3
  15. stackit/postgresflex/models/api_installed_list_response.py +3 -3
  16. stackit/postgresflex/models/backup.py +3 -3
  17. stackit/postgresflex/models/clone_instance_payload.py +3 -3
  18. stackit/postgresflex/models/clone_instance_response.py +3 -3
  19. stackit/postgresflex/models/create_database_payload.py +3 -3
  20. stackit/postgresflex/models/create_instance_payload.py +3 -3
  21. stackit/postgresflex/models/create_instance_response.py +3 -3
  22. stackit/postgresflex/models/create_user_payload.py +3 -3
  23. stackit/postgresflex/models/create_user_response.py +3 -3
  24. stackit/postgresflex/models/error.py +3 -3
  25. stackit/postgresflex/models/extensions_configuration.py +3 -3
  26. stackit/postgresflex/models/extensions_extension_list_response.py +3 -3
  27. stackit/postgresflex/models/extensions_new_config.py +3 -3
  28. stackit/postgresflex/models/flavor.py +3 -3
  29. stackit/postgresflex/models/get_backup_response.py +3 -3
  30. stackit/postgresflex/models/get_user_response.py +3 -3
  31. stackit/postgresflex/models/instance.py +3 -3
  32. stackit/postgresflex/models/instance_create_database_response.py +3 -3
  33. stackit/postgresflex/models/instance_data_point.py +3 -3
  34. stackit/postgresflex/models/instance_database.py +3 -3
  35. stackit/postgresflex/models/instance_host.py +3 -3
  36. stackit/postgresflex/models/instance_host_metric.py +3 -3
  37. stackit/postgresflex/models/instance_list_databases_response.py +3 -3
  38. stackit/postgresflex/models/instance_list_instance.py +3 -3
  39. stackit/postgresflex/models/instance_metrics_response.py +3 -3
  40. stackit/postgresflex/models/instance_response.py +3 -3
  41. stackit/postgresflex/models/list_backups_response.py +3 -3
  42. stackit/postgresflex/models/list_flavors_response.py +3 -3
  43. stackit/postgresflex/models/list_instances_response.py +3 -3
  44. stackit/postgresflex/models/list_storages_response.py +3 -3
  45. stackit/postgresflex/models/list_users_response.py +3 -3
  46. stackit/postgresflex/models/list_users_response_item.py +3 -3
  47. stackit/postgresflex/models/list_versions_response.py +3 -3
  48. stackit/postgresflex/models/partial_update_instance_payload.py +3 -3
  49. stackit/postgresflex/models/partial_update_instance_response.py +3 -3
  50. stackit/postgresflex/models/partial_update_user_payload.py +3 -3
  51. stackit/postgresflex/models/postgres_database_parameter.py +3 -3
  52. stackit/postgresflex/models/postgres_database_parameter_response.py +3 -3
  53. stackit/postgresflex/models/reset_user_response.py +3 -3
  54. stackit/postgresflex/models/storage.py +3 -3
  55. stackit/postgresflex/models/storage_range.py +3 -3
  56. stackit/postgresflex/models/update_backup_schedule_payload.py +3 -3
  57. stackit/postgresflex/models/update_instance_payload.py +3 -3
  58. stackit/postgresflex/models/update_user_payload.py +3 -3
  59. stackit/postgresflex/models/user.py +3 -3
  60. stackit/postgresflex/models/user_response.py +3 -3
  61. stackit/postgresflex/rest.py +3 -3
  62. {stackit_postgresflex-0.3.0.dist-info → stackit_postgresflex-1.0.2.dist-info}/METADATA +1 -1
  63. stackit_postgresflex-1.0.2.dist-info/RECORD +69 -0
  64. stackit_postgresflex-0.3.0.dist-info/RECORD +0 -69
  65. {stackit_postgresflex-0.3.0.dist-info → stackit_postgresflex-1.0.2.dist-info}/LICENSE.md +0 -0
  66. {stackit_postgresflex-0.3.0.dist-info → stackit_postgresflex-1.0.2.dist-info}/NOTICE.txt +0 -0
  67. {stackit_postgresflex-0.3.0.dist-info → stackit_postgresflex-1.0.2.dist-info}/WHEEL +0 -0
@@ -5,12 +5,12 @@
5
5
 
6
6
  This is the documentation for the STACKIT postgres service
7
7
 
8
- The version of the OpenAPI document: 1.0.0
8
+ The version of the OpenAPI document: 2.0.0
9
9
  Contact: support@stackit.cloud
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
12
  Do not edit the class manually.
13
- """ # noqa: E501 docstring might be too long
13
+ """ # noqa: E501
14
14
 
15
15
  import datetime
16
16
  import json
@@ -82,7 +82,7 @@ class ApiClient:
82
82
  self.default_headers[header_name] = header_value
83
83
  self.cookie = cookie
84
84
  # Set default User-Agent.
85
- self.user_agent = "OpenAPI-Generator/1.0.0/python"
85
+ self.user_agent = "stackit-sdk-python/postgresflex"
86
86
 
87
87
  def __enter__(self):
88
88
  return self
@@ -332,6 +332,10 @@ class ApiClient:
332
332
  else:
333
333
  obj_dict = obj.__dict__
334
334
 
335
+ if isinstance(obj_dict, list):
336
+ # 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
337
+ return self.sanitize_for_serialization(obj_dict)
338
+
335
339
  return {key: self.sanitize_for_serialization(val) for key, val in obj_dict.items()}
336
340
 
337
341
  def deserialize(self, response_text: str, response_type: str, content_type: Optional[str]):
@@ -351,12 +355,12 @@ class ApiClient:
351
355
  data = json.loads(response_text)
352
356
  except ValueError:
353
357
  data = response_text
354
- elif content_type.startswith("application/json"):
358
+ elif re.match(r"^application/(json|[\w!#$&.+-^_]+\+json)\s*(;|$)", content_type, re.IGNORECASE):
355
359
  if response_text == "":
356
360
  data = ""
357
361
  else:
358
362
  data = json.loads(response_text)
359
- elif content_type.startswith("text/plain"):
363
+ elif re.match(r"^text\/[a-z.+-]+\s*(;|$)", content_type, re.IGNORECASE):
360
364
  data = response_text
361
365
  else:
362
366
  raise ApiException(status=0, reason="Unsupported content type: {0}".format(content_type))
@@ -458,7 +462,7 @@ class ApiClient:
458
462
  if k in collection_formats:
459
463
  collection_format = collection_formats[k]
460
464
  if collection_format == "multi":
461
- new_params.extend((k, str(value)) for value in v)
465
+ new_params.extend((k, quote(str(value))) for value in v)
462
466
  else:
463
467
  if collection_format == "ssv":
464
468
  delimiter = " "
@@ -474,7 +478,10 @@ class ApiClient:
474
478
 
475
479
  return "&".join(["=".join(map(str, item)) for item in new_params])
476
480
 
477
- def files_parameters(self, files: Dict[str, Union[str, bytes]]):
481
+ def files_parameters(
482
+ self,
483
+ files: Dict[str, Union[str, bytes, List[str], List[bytes], Tuple[str, bytes]]],
484
+ ):
478
485
  """Builds form parameters.
479
486
 
480
487
  :param files: File parameters.
@@ -489,6 +496,12 @@ class ApiClient:
489
496
  elif isinstance(v, bytes):
490
497
  filename = k
491
498
  filedata = v
499
+ elif isinstance(v, tuple):
500
+ filename, filedata = v
501
+ elif isinstance(v, list):
502
+ for file_param in v:
503
+ params.extend(self.files_parameters({k: file_param}))
504
+ continue
492
505
  else:
493
506
  raise ValueError("Unsupported file value")
494
507
  mimetype = mimetypes.guess_type(filename)[0] or "application/octet-stream"
@@ -5,16 +5,36 @@
5
5
 
6
6
  This is the documentation for the STACKIT postgres service
7
7
 
8
- The version of the OpenAPI document: 1.0.0
8
+ The version of the OpenAPI document: 2.0.0
9
9
  Contact: support@stackit.cloud
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
12
  Do not edit the class manually.
13
- """ # noqa: E501 docstring might be too long
13
+ """ # noqa: E501
14
+
15
+ import sys
16
+ from typing import Dict, List, Optional, TypedDict
17
+
18
+ from typing_extensions import NotRequired
14
19
 
15
20
  import os
16
21
 
17
22
 
23
+ ServerVariablesT = Dict[str, str]
24
+
25
+
26
+ class HostSettingVariable(TypedDict):
27
+ description: str
28
+ default_value: str
29
+ enum_values: List[str]
30
+
31
+
32
+ class HostSetting(TypedDict):
33
+ url: str
34
+ description: str
35
+ variables: NotRequired[Dict[str, HostSettingVariable]]
36
+
37
+
18
38
  class HostConfiguration:
19
39
  def __init__(
20
40
  self,
@@ -30,10 +50,11 @@ class HostConfiguration:
30
50
  "as a function argument instead of being set in the client configuration.\n"
31
51
  "Once all services have migrated, the methods to specify the region in the client configuration "
32
52
  "will be removed.",
53
+ file=sys.stderr,
33
54
  )
34
55
  """Constructor
35
56
  """
36
- self._base_path = "https://postgres-flex-service.api.eu01.stackit.cloud"
57
+ self._base_path = "https://postgres-flex-service.api.stackit.cloud"
37
58
  """Default Base url
38
59
  """
39
60
  self.server_index = 0 if server_index is None else server_index
@@ -50,26 +71,30 @@ class HostConfiguration:
50
71
  """Ignore operation servers
51
72
  """
52
73
 
53
- def get_host_settings(self):
74
+ def get_host_settings(self) -> List[HostSetting]:
54
75
  """Gets an array of host settings
55
76
 
56
77
  :return: An array of host settings
57
78
  """
58
79
  return [
59
80
  {
60
- "url": "https://postgres-flex-service.api.{region}stackit.cloud",
81
+ "url": "https://postgres-flex-service.api.stackit.cloud",
61
82
  "description": "No description provided",
62
83
  "variables": {
63
84
  "region": {
64
85
  "description": "No description provided",
65
- "default_value": "eu01.",
66
- "enum_values": ["eu01."],
86
+ "default_value": "global",
67
87
  }
68
88
  },
69
89
  }
70
90
  ]
71
91
 
72
- def get_host_from_settings(self, index, variables=None, servers=None):
92
+ def get_host_from_settings(
93
+ self,
94
+ index: Optional[int],
95
+ variables: Optional[ServerVariablesT] = None,
96
+ servers: Optional[List[HostSetting]] = None,
97
+ ) -> str:
73
98
  """Gets host URL based on the index and variables
74
99
  :param index: array index of the host settings
75
100
  :param variables: hash of variable and the corresponding value
@@ -109,7 +134,7 @@ class HostConfiguration:
109
134
  and variables.get(variable_name) is not None
110
135
  ):
111
136
  raise ValueError(
112
- "this API does not support setting a region in the the client configuration, "
137
+ "this API does not support setting a region in the client configuration, "
113
138
  "please check if the region can be specified as a function parameter"
114
139
  )
115
140
  used_value = variables.get(variable_name, variable["default_value"])
@@ -128,12 +153,12 @@ class HostConfiguration:
128
153
  return url
129
154
 
130
155
  @property
131
- def host(self):
156
+ def host(self) -> str:
132
157
  """Return generated host."""
133
158
  return self.get_host_from_settings(self.server_index, variables=self.server_variables)
134
159
 
135
160
  @host.setter
136
- def host(self, value):
161
+ def host(self, value: str) -> None:
137
162
  """Fix base path."""
138
163
  self._base_path = value
139
164
  self.server_index = None
@@ -5,12 +5,12 @@
5
5
 
6
6
  This is the documentation for the STACKIT postgres service
7
7
 
8
- The version of the OpenAPI document: 1.0.0
8
+ The version of the OpenAPI document: 2.0.0
9
9
  Contact: support@stackit.cloud
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
12
  Do not edit the class manually.
13
- """ # noqa: E501 docstring might be too long
13
+ """ # noqa: E501
14
14
 
15
15
  from typing import Any, Optional
16
16
 
@@ -152,6 +152,13 @@ class ApiException(OpenApiException):
152
152
  if http_resp.status == 404:
153
153
  raise NotFoundException(http_resp=http_resp, body=body, data=data)
154
154
 
155
+ # Added new conditions for 409 and 422
156
+ if http_resp.status == 409:
157
+ raise ConflictException(http_resp=http_resp, body=body, data=data)
158
+
159
+ if http_resp.status == 422:
160
+ raise UnprocessableEntityException(http_resp=http_resp, body=body, data=data)
161
+
155
162
  if 500 <= http_resp.status <= 599:
156
163
  raise ServiceException(http_resp=http_resp, body=body, data=data)
157
164
  raise ApiException(http_resp=http_resp, body=body, data=data)
@@ -188,6 +195,18 @@ class ServiceException(ApiException):
188
195
  pass
189
196
 
190
197
 
198
+ class ConflictException(ApiException):
199
+ """Exception for HTTP 409 Conflict."""
200
+
201
+ pass
202
+
203
+
204
+ class UnprocessableEntityException(ApiException):
205
+ """Exception for HTTP 422 Unprocessable Entity."""
206
+
207
+ pass
208
+
209
+
191
210
  def render_path(path_to_item):
192
211
  """Returns a string representation of a path"""
193
212
  result = ""
@@ -6,12 +6,12 @@
6
6
 
7
7
  This is the documentation for the STACKIT postgres service
8
8
 
9
- The version of the OpenAPI document: 1.0.0
9
+ The version of the OpenAPI document: 2.0.0
10
10
  Contact: support@stackit.cloud
11
11
  Generated by OpenAPI Generator (https://openapi-generator.tech)
12
12
 
13
13
  Do not edit the class manually.
14
- """ # noqa: E501 docstring might be too long
14
+ """ # noqa: E501
15
15
 
16
16
 
17
17
  # import models into model package
@@ -5,12 +5,12 @@
5
5
 
6
6
  This is the documentation for the STACKIT postgres service
7
7
 
8
- The version of the OpenAPI document: 1.0.0
8
+ The version of the OpenAPI document: 2.0.0
9
9
  Contact: support@stackit.cloud
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
12
  Do not edit the class manually.
13
- """ # noqa: E501 docstring might be too long
13
+ """ # noqa: E501
14
14
 
15
15
  from __future__ import annotations
16
16
 
@@ -25,7 +25,7 @@ from typing_extensions import Self
25
25
  class ACL(BaseModel):
26
26
  """
27
27
  ACL
28
- """
28
+ """ # noqa: E501
29
29
 
30
30
  items: Optional[List[StrictStr]] = None
31
31
  __properties: ClassVar[List[str]] = ["items"]
@@ -5,12 +5,12 @@
5
5
 
6
6
  This is the documentation for the STACKIT postgres service
7
7
 
8
- The version of the OpenAPI document: 1.0.0
8
+ The version of the OpenAPI document: 2.0.0
9
9
  Contact: support@stackit.cloud
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
12
  Do not edit the class manually.
13
- """ # noqa: E501 docstring might be too long
13
+ """ # noqa: E501
14
14
 
15
15
  from __future__ import annotations
16
16
 
@@ -25,7 +25,7 @@ from typing_extensions import Self
25
25
  class ApiConfiguration(BaseModel):
26
26
  """
27
27
  ApiConfiguration
28
- """
28
+ """ # noqa: E501
29
29
 
30
30
  name: Optional[StrictStr] = None
31
31
  setting: Optional[StrictStr] = None
@@ -5,12 +5,12 @@
5
5
 
6
6
  This is the documentation for the STACKIT postgres service
7
7
 
8
- The version of the OpenAPI document: 1.0.0
8
+ The version of the OpenAPI document: 2.0.0
9
9
  Contact: support@stackit.cloud
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
12
  Do not edit the class manually.
13
- """ # noqa: E501 docstring might be too long
13
+ """ # noqa: E501
14
14
 
15
15
  from __future__ import annotations
16
16
 
@@ -27,7 +27,7 @@ from stackit.postgresflex.models.api_configuration import ApiConfiguration
27
27
  class ApiExtensionConfigLoadResponse(BaseModel):
28
28
  """
29
29
  ApiExtensionConfigLoadResponse
30
- """
30
+ """ # noqa: E501
31
31
 
32
32
  configuration: Optional[List[ApiConfiguration]] = Field(
33
33
  default=None, description="Returns marshalled JSON of the new configuration of whatever extension is called"
@@ -5,12 +5,12 @@
5
5
 
6
6
  This is the documentation for the STACKIT postgres service
7
7
 
8
- The version of the OpenAPI document: 1.0.0
8
+ The version of the OpenAPI document: 2.0.0
9
9
  Contact: support@stackit.cloud
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
12
  Do not edit the class manually.
13
- """ # noqa: E501 docstring might be too long
13
+ """ # noqa: E501
14
14
 
15
15
  from __future__ import annotations
16
16
 
@@ -27,7 +27,7 @@ from stackit.postgresflex.models.api_configuration import ApiConfiguration
27
27
  class ApiExtensionConfigureResponse(BaseModel):
28
28
  """
29
29
  ApiExtensionConfigureResponse
30
- """
30
+ """ # noqa: E501
31
31
 
32
32
  configuration: Optional[List[ApiConfiguration]] = Field(
33
33
  default=None, description="Returns marshalled JSON of the new configuration of whatever extension is called"
@@ -5,12 +5,12 @@
5
5
 
6
6
  This is the documentation for the STACKIT postgres service
7
7
 
8
- The version of the OpenAPI document: 1.0.0
8
+ The version of the OpenAPI document: 2.0.0
9
9
  Contact: support@stackit.cloud
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
12
  Do not edit the class manually.
13
- """ # noqa: E501 docstring might be too long
13
+ """ # noqa: E501
14
14
 
15
15
  from __future__ import annotations
16
16
 
@@ -25,7 +25,7 @@ from typing_extensions import Self
25
25
  class ApiExtensionDeleteResponse(BaseModel):
26
26
  """
27
27
  ApiExtensionDeleteResponse
28
- """
28
+ """ # noqa: E501
29
29
 
30
30
  is_succeded: Optional[StrictBool] = Field(default=None, alias="isSucceded")
31
31
  __properties: ClassVar[List[str]] = ["isSucceded"]
@@ -5,12 +5,12 @@
5
5
 
6
6
  This is the documentation for the STACKIT postgres service
7
7
 
8
- The version of the OpenAPI document: 1.0.0
8
+ The version of the OpenAPI document: 2.0.0
9
9
  Contact: support@stackit.cloud
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
12
  Do not edit the class manually.
13
- """ # noqa: E501 docstring might be too long
13
+ """ # noqa: E501
14
14
 
15
15
  from __future__ import annotations
16
16
 
@@ -25,7 +25,7 @@ from typing_extensions import Self
25
25
  class ApiExtensionList(BaseModel):
26
26
  """
27
27
  ApiExtensionList
28
- """
28
+ """ # noqa: E501
29
29
 
30
30
  id: Optional[StrictInt] = Field(default=None, alias="ID")
31
31
  description: Optional[StrictStr] = None
@@ -5,12 +5,12 @@
5
5
 
6
6
  This is the documentation for the STACKIT postgres service
7
7
 
8
- The version of the OpenAPI document: 1.0.0
8
+ The version of the OpenAPI document: 2.0.0
9
9
  Contact: support@stackit.cloud
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
12
  Do not edit the class manually.
13
- """ # noqa: E501 docstring might be too long
13
+ """ # noqa: E501
14
14
 
15
15
  from __future__ import annotations
16
16
 
@@ -27,7 +27,7 @@ from stackit.postgresflex.models.api_extension_list import ApiExtensionList
27
27
  class ApiExtensionLoadResponse(BaseModel):
28
28
  """
29
29
  ApiExtensionLoadResponse
30
- """
30
+ """ # noqa: E501
31
31
 
32
32
  extension: Optional[ApiExtensionList] = None
33
33
  __properties: ClassVar[List[str]] = ["extension"]
@@ -5,12 +5,12 @@
5
5
 
6
6
  This is the documentation for the STACKIT postgres service
7
7
 
8
- The version of the OpenAPI document: 1.0.0
8
+ The version of the OpenAPI document: 2.0.0
9
9
  Contact: support@stackit.cloud
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
12
  Do not edit the class manually.
13
- """ # noqa: E501 docstring might be too long
13
+ """ # noqa: E501
14
14
 
15
15
  from __future__ import annotations
16
16
 
@@ -27,7 +27,7 @@ from stackit.postgresflex.models.api_extension_list import ApiExtensionList
27
27
  class ApiInstallResponse(BaseModel):
28
28
  """
29
29
  ApiInstallResponse
30
- """
30
+ """ # noqa: E501
31
31
 
32
32
  extension: Optional[ApiExtensionList] = None
33
33
  __properties: ClassVar[List[str]] = ["extension"]
@@ -5,12 +5,12 @@
5
5
 
6
6
  This is the documentation for the STACKIT postgres service
7
7
 
8
- The version of the OpenAPI document: 1.0.0
8
+ The version of the OpenAPI document: 2.0.0
9
9
  Contact: support@stackit.cloud
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
12
  Do not edit the class manually.
13
- """ # noqa: E501 docstring might be too long
13
+ """ # noqa: E501
14
14
 
15
15
  from __future__ import annotations
16
16
 
@@ -27,7 +27,7 @@ from stackit.postgresflex.models.api_extension_list import ApiExtensionList
27
27
  class ApiInstalledListResponse(BaseModel):
28
28
  """
29
29
  ApiInstalledListResponse
30
- """
30
+ """ # noqa: E501
31
31
 
32
32
  installed: Optional[List[ApiExtensionList]] = None
33
33
  __properties: ClassVar[List[str]] = ["installed"]
@@ -5,12 +5,12 @@
5
5
 
6
6
  This is the documentation for the STACKIT postgres service
7
7
 
8
- The version of the OpenAPI document: 1.0.0
8
+ The version of the OpenAPI document: 2.0.0
9
9
  Contact: support@stackit.cloud
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
12
  Do not edit the class manually.
13
- """ # noqa: E501 docstring might be too long
13
+ """ # noqa: E501
14
14
 
15
15
  from __future__ import annotations
16
16
 
@@ -25,7 +25,7 @@ from typing_extensions import Self
25
25
  class Backup(BaseModel):
26
26
  """
27
27
  Backup
28
- """
28
+ """ # noqa: E501
29
29
 
30
30
  end_time: Optional[StrictStr] = Field(default=None, alias="endTime")
31
31
  error: Optional[StrictStr] = None
@@ -5,12 +5,12 @@
5
5
 
6
6
  This is the documentation for the STACKIT postgres service
7
7
 
8
- The version of the OpenAPI document: 1.0.0
8
+ The version of the OpenAPI document: 2.0.0
9
9
  Contact: support@stackit.cloud
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
12
  Do not edit the class manually.
13
- """ # noqa: E501 docstring might be too long
13
+ """ # noqa: E501
14
14
 
15
15
  from __future__ import annotations
16
16
 
@@ -25,7 +25,7 @@ from typing_extensions import Self
25
25
  class CloneInstancePayload(BaseModel):
26
26
  """
27
27
  CloneInstancePayload
28
- """
28
+ """ # noqa: E501
29
29
 
30
30
  var_class: Optional[StrictStr] = Field(default=None, alias="class")
31
31
  size: Optional[StrictInt] = None
@@ -5,12 +5,12 @@
5
5
 
6
6
  This is the documentation for the STACKIT postgres service
7
7
 
8
- The version of the OpenAPI document: 1.0.0
8
+ The version of the OpenAPI document: 2.0.0
9
9
  Contact: support@stackit.cloud
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
12
  Do not edit the class manually.
13
- """ # noqa: E501 docstring might be too long
13
+ """ # noqa: E501
14
14
 
15
15
  from __future__ import annotations
16
16
 
@@ -25,7 +25,7 @@ from typing_extensions import Self
25
25
  class CloneInstanceResponse(BaseModel):
26
26
  """
27
27
  CloneInstanceResponse
28
- """
28
+ """ # noqa: E501
29
29
 
30
30
  instance_id: Optional[StrictStr] = Field(default=None, alias="instanceId")
31
31
  __properties: ClassVar[List[str]] = ["instanceId"]
@@ -5,12 +5,12 @@
5
5
 
6
6
  This is the documentation for the STACKIT postgres service
7
7
 
8
- The version of the OpenAPI document: 1.0.0
8
+ The version of the OpenAPI document: 2.0.0
9
9
  Contact: support@stackit.cloud
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
12
  Do not edit the class manually.
13
- """ # noqa: E501 docstring might be too long
13
+ """ # noqa: E501
14
14
 
15
15
  from __future__ import annotations
16
16
 
@@ -25,7 +25,7 @@ from typing_extensions import Self
25
25
  class CreateDatabasePayload(BaseModel):
26
26
  """
27
27
  CreateDatabasePayload
28
- """
28
+ """ # noqa: E501
29
29
 
30
30
  name: Optional[StrictStr] = None
31
31
  options: Optional[Dict[str, StrictStr]] = Field(default=None, description="Database specific options")
@@ -5,12 +5,12 @@
5
5
 
6
6
  This is the documentation for the STACKIT postgres service
7
7
 
8
- The version of the OpenAPI document: 1.0.0
8
+ The version of the OpenAPI document: 2.0.0
9
9
  Contact: support@stackit.cloud
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
12
  Do not edit the class manually.
13
- """ # noqa: E501 docstring might be too long
13
+ """ # noqa: E501
14
14
 
15
15
  from __future__ import annotations
16
16
 
@@ -28,7 +28,7 @@ from stackit.postgresflex.models.storage import Storage
28
28
  class CreateInstancePayload(BaseModel):
29
29
  """
30
30
  CreateInstancePayload
31
- """
31
+ """ # noqa: E501
32
32
 
33
33
  acl: ACL
34
34
  backup_schedule: StrictStr = Field(alias="backupSchedule")
@@ -5,12 +5,12 @@
5
5
 
6
6
  This is the documentation for the STACKIT postgres service
7
7
 
8
- The version of the OpenAPI document: 1.0.0
8
+ The version of the OpenAPI document: 2.0.0
9
9
  Contact: support@stackit.cloud
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
12
  Do not edit the class manually.
13
- """ # noqa: E501 docstring might be too long
13
+ """ # noqa: E501
14
14
 
15
15
  from __future__ import annotations
16
16
 
@@ -25,7 +25,7 @@ from typing_extensions import Self
25
25
  class CreateInstanceResponse(BaseModel):
26
26
  """
27
27
  CreateInstanceResponse
28
- """
28
+ """ # noqa: E501
29
29
 
30
30
  id: Optional[StrictStr] = None
31
31
  __properties: ClassVar[List[str]] = ["id"]
@@ -5,12 +5,12 @@
5
5
 
6
6
  This is the documentation for the STACKIT postgres service
7
7
 
8
- The version of the OpenAPI document: 1.0.0
8
+ The version of the OpenAPI document: 2.0.0
9
9
  Contact: support@stackit.cloud
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
12
  Do not edit the class manually.
13
- """ # noqa: E501 docstring might be too long
13
+ """ # noqa: E501
14
14
 
15
15
  from __future__ import annotations
16
16
 
@@ -25,7 +25,7 @@ from typing_extensions import Self
25
25
  class CreateUserPayload(BaseModel):
26
26
  """
27
27
  CreateUserPayload
28
- """
28
+ """ # noqa: E501
29
29
 
30
30
  roles: Optional[List[StrictStr]] = None
31
31
  username: Optional[StrictStr] = None
@@ -5,12 +5,12 @@
5
5
 
6
6
  This is the documentation for the STACKIT postgres service
7
7
 
8
- The version of the OpenAPI document: 1.0.0
8
+ The version of the OpenAPI document: 2.0.0
9
9
  Contact: support@stackit.cloud
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
12
  Do not edit the class manually.
13
- """ # noqa: E501 docstring might be too long
13
+ """ # noqa: E501
14
14
 
15
15
  from __future__ import annotations
16
16
 
@@ -27,7 +27,7 @@ from stackit.postgresflex.models.user import User
27
27
  class CreateUserResponse(BaseModel):
28
28
  """
29
29
  CreateUserResponse
30
- """
30
+ """ # noqa: E501
31
31
 
32
32
  item: Optional[User] = None
33
33
  __properties: ClassVar[List[str]] = ["item"]