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.
- stackit/postgresflex/__init__.py +194 -70
- stackit/postgresflex/api/default_api.py +619 -142
- stackit/postgresflex/api_client.py +20 -7
- stackit/postgresflex/configuration.py +36 -11
- stackit/postgresflex/exceptions.py +21 -2
- stackit/postgresflex/models/__init__.py +2 -2
- stackit/postgresflex/models/acl.py +3 -3
- stackit/postgresflex/models/api_configuration.py +3 -3
- stackit/postgresflex/models/api_extension_config_load_response.py +3 -3
- stackit/postgresflex/models/api_extension_configure_response.py +3 -3
- stackit/postgresflex/models/api_extension_delete_response.py +3 -3
- stackit/postgresflex/models/api_extension_list.py +3 -3
- stackit/postgresflex/models/api_extension_load_response.py +3 -3
- stackit/postgresflex/models/api_install_response.py +3 -3
- stackit/postgresflex/models/api_installed_list_response.py +3 -3
- stackit/postgresflex/models/backup.py +3 -3
- stackit/postgresflex/models/clone_instance_payload.py +3 -3
- stackit/postgresflex/models/clone_instance_response.py +3 -3
- stackit/postgresflex/models/create_database_payload.py +3 -3
- stackit/postgresflex/models/create_instance_payload.py +3 -3
- stackit/postgresflex/models/create_instance_response.py +3 -3
- stackit/postgresflex/models/create_user_payload.py +3 -3
- stackit/postgresflex/models/create_user_response.py +3 -3
- stackit/postgresflex/models/error.py +3 -3
- stackit/postgresflex/models/extensions_configuration.py +3 -3
- stackit/postgresflex/models/extensions_extension_list_response.py +3 -3
- stackit/postgresflex/models/extensions_new_config.py +3 -3
- stackit/postgresflex/models/flavor.py +3 -3
- stackit/postgresflex/models/get_backup_response.py +3 -3
- stackit/postgresflex/models/get_user_response.py +3 -3
- stackit/postgresflex/models/instance.py +3 -3
- stackit/postgresflex/models/instance_create_database_response.py +3 -3
- stackit/postgresflex/models/instance_data_point.py +3 -3
- stackit/postgresflex/models/instance_database.py +3 -3
- stackit/postgresflex/models/instance_host.py +3 -3
- stackit/postgresflex/models/instance_host_metric.py +3 -3
- stackit/postgresflex/models/instance_list_databases_response.py +3 -3
- stackit/postgresflex/models/instance_list_instance.py +3 -3
- stackit/postgresflex/models/instance_metrics_response.py +3 -3
- stackit/postgresflex/models/instance_response.py +3 -3
- stackit/postgresflex/models/list_backups_response.py +3 -3
- stackit/postgresflex/models/list_flavors_response.py +3 -3
- stackit/postgresflex/models/list_instances_response.py +3 -3
- stackit/postgresflex/models/list_storages_response.py +3 -3
- stackit/postgresflex/models/list_users_response.py +3 -3
- stackit/postgresflex/models/list_users_response_item.py +3 -3
- stackit/postgresflex/models/list_versions_response.py +3 -3
- stackit/postgresflex/models/partial_update_instance_payload.py +3 -3
- stackit/postgresflex/models/partial_update_instance_response.py +3 -3
- stackit/postgresflex/models/partial_update_user_payload.py +3 -3
- stackit/postgresflex/models/postgres_database_parameter.py +3 -3
- stackit/postgresflex/models/postgres_database_parameter_response.py +3 -3
- stackit/postgresflex/models/reset_user_response.py +3 -3
- stackit/postgresflex/models/storage.py +3 -3
- stackit/postgresflex/models/storage_range.py +3 -3
- stackit/postgresflex/models/update_backup_schedule_payload.py +3 -3
- stackit/postgresflex/models/update_instance_payload.py +3 -3
- stackit/postgresflex/models/update_user_payload.py +3 -3
- stackit/postgresflex/models/user.py +3 -3
- stackit/postgresflex/models/user_response.py +3 -3
- stackit/postgresflex/rest.py +3 -3
- {stackit_postgresflex-0.3.0.dist-info → stackit_postgresflex-1.0.2.dist-info}/METADATA +1 -1
- stackit_postgresflex-1.0.2.dist-info/RECORD +69 -0
- stackit_postgresflex-0.3.0.dist-info/RECORD +0 -69
- {stackit_postgresflex-0.3.0.dist-info → stackit_postgresflex-1.0.2.dist-info}/LICENSE.md +0 -0
- {stackit_postgresflex-0.3.0.dist-info → stackit_postgresflex-1.0.2.dist-info}/NOTICE.txt +0 -0
- {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:
|
|
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
|
|
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 = "
|
|
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
|
|
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
|
|
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(
|
|
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:
|
|
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
|
|
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.
|
|
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.
|
|
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": "
|
|
66
|
-
"enum_values": ["eu01."],
|
|
86
|
+
"default_value": "global",
|
|
67
87
|
}
|
|
68
88
|
},
|
|
69
89
|
}
|
|
70
90
|
]
|
|
71
91
|
|
|
72
|
-
def get_host_from_settings(
|
|
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
|
|
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:
|
|
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
|
|
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:
|
|
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
|
|
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:
|
|
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
|
|
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:
|
|
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
|
|
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:
|
|
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
|
|
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:
|
|
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
|
|
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:
|
|
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
|
|
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:
|
|
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
|
|
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:
|
|
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
|
|
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:
|
|
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
|
|
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:
|
|
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
|
|
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:
|
|
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
|
|
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:
|
|
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
|
|
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:
|
|
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
|
|
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:
|
|
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
|
|
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:
|
|
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
|
|
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:
|
|
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
|
|
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:
|
|
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
|
|
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:
|
|
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
|
|
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"]
|