stackit-postgresflex 0.0.1a0__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 (67) hide show
  1. stackit_postgresflex-0.0.1a0/PKG-INFO +45 -0
  2. stackit_postgresflex-0.0.1a0/README.md +23 -0
  3. stackit_postgresflex-0.0.1a0/pyproject.toml +105 -0
  4. stackit_postgresflex-0.0.1a0/src/stackit/postgresflex/__init__.py +120 -0
  5. stackit_postgresflex-0.0.1a0/src/stackit/postgresflex/api/__init__.py +4 -0
  6. stackit_postgresflex-0.0.1a0/src/stackit/postgresflex/api/default_api.py +7275 -0
  7. stackit_postgresflex-0.0.1a0/src/stackit/postgresflex/api_client.py +627 -0
  8. stackit_postgresflex-0.0.1a0/src/stackit/postgresflex/api_response.py +23 -0
  9. stackit_postgresflex-0.0.1a0/src/stackit/postgresflex/configuration.py +112 -0
  10. stackit_postgresflex-0.0.1a0/src/stackit/postgresflex/exceptions.py +199 -0
  11. stackit_postgresflex-0.0.1a0/src/stackit/postgresflex/models/__init__.py +101 -0
  12. stackit_postgresflex-0.0.1a0/src/stackit/postgresflex/models/acl.py +82 -0
  13. stackit_postgresflex-0.0.1a0/src/stackit/postgresflex/models/api_configuration.py +83 -0
  14. stackit_postgresflex-0.0.1a0/src/stackit/postgresflex/models/api_extension_config_load_response.py +101 -0
  15. stackit_postgresflex-0.0.1a0/src/stackit/postgresflex/models/api_extension_configure_response.py +101 -0
  16. stackit_postgresflex-0.0.1a0/src/stackit/postgresflex/models/api_extension_delete_response.py +82 -0
  17. stackit_postgresflex-0.0.1a0/src/stackit/postgresflex/models/api_extension_list.py +84 -0
  18. stackit_postgresflex-0.0.1a0/src/stackit/postgresflex/models/api_extension_load_response.py +89 -0
  19. stackit_postgresflex-0.0.1a0/src/stackit/postgresflex/models/api_install_response.py +89 -0
  20. stackit_postgresflex-0.0.1a0/src/stackit/postgresflex/models/api_installed_list_response.py +99 -0
  21. stackit_postgresflex-0.0.1a0/src/stackit/postgresflex/models/backup.py +100 -0
  22. stackit_postgresflex-0.0.1a0/src/stackit/postgresflex/models/clone_instance_payload.py +89 -0
  23. stackit_postgresflex-0.0.1a0/src/stackit/postgresflex/models/clone_instance_response.py +82 -0
  24. stackit_postgresflex-0.0.1a0/src/stackit/postgresflex/models/create_database_payload.py +83 -0
  25. stackit_postgresflex-0.0.1a0/src/stackit/postgresflex/models/create_instance_payload.py +121 -0
  26. stackit_postgresflex-0.0.1a0/src/stackit/postgresflex/models/create_instance_response.py +82 -0
  27. stackit_postgresflex-0.0.1a0/src/stackit/postgresflex/models/create_user_payload.py +83 -0
  28. stackit_postgresflex-0.0.1a0/src/stackit/postgresflex/models/create_user_response.py +87 -0
  29. stackit_postgresflex-0.0.1a0/src/stackit/postgresflex/models/error.py +92 -0
  30. stackit_postgresflex-0.0.1a0/src/stackit/postgresflex/models/extensions_configuration.py +83 -0
  31. stackit_postgresflex-0.0.1a0/src/stackit/postgresflex/models/extensions_extension_list_response.py +99 -0
  32. stackit_postgresflex-0.0.1a0/src/stackit/postgresflex/models/extensions_new_config.py +99 -0
  33. stackit_postgresflex-0.0.1a0/src/stackit/postgresflex/models/flavor.py +92 -0
  34. stackit_postgresflex-0.0.1a0/src/stackit/postgresflex/models/get_backup_response.py +87 -0
  35. stackit_postgresflex-0.0.1a0/src/stackit/postgresflex/models/get_user_response.py +89 -0
  36. stackit_postgresflex-0.0.1a0/src/stackit/postgresflex/models/instance.py +128 -0
  37. stackit_postgresflex-0.0.1a0/src/stackit/postgresflex/models/instance_create_database_response.py +82 -0
  38. stackit_postgresflex-0.0.1a0/src/stackit/postgresflex/models/instance_data_point.py +83 -0
  39. stackit_postgresflex-0.0.1a0/src/stackit/postgresflex/models/instance_database.py +84 -0
  40. stackit_postgresflex-0.0.1a0/src/stackit/postgresflex/models/instance_host.py +101 -0
  41. stackit_postgresflex-0.0.1a0/src/stackit/postgresflex/models/instance_host_metric.py +103 -0
  42. stackit_postgresflex-0.0.1a0/src/stackit/postgresflex/models/instance_list_databases_response.py +99 -0
  43. stackit_postgresflex-0.0.1a0/src/stackit/postgresflex/models/instance_list_instance.py +84 -0
  44. stackit_postgresflex-0.0.1a0/src/stackit/postgresflex/models/instance_metrics_response.py +97 -0
  45. stackit_postgresflex-0.0.1a0/src/stackit/postgresflex/models/instance_response.py +87 -0
  46. stackit_postgresflex-0.0.1a0/src/stackit/postgresflex/models/list_backups_response.py +97 -0
  47. stackit_postgresflex-0.0.1a0/src/stackit/postgresflex/models/list_flavors_response.py +97 -0
  48. stackit_postgresflex-0.0.1a0/src/stackit/postgresflex/models/list_instances_response.py +101 -0
  49. stackit_postgresflex-0.0.1a0/src/stackit/postgresflex/models/list_storages_response.py +95 -0
  50. stackit_postgresflex-0.0.1a0/src/stackit/postgresflex/models/list_users_response.py +101 -0
  51. stackit_postgresflex-0.0.1a0/src/stackit/postgresflex/models/list_users_response_item.py +83 -0
  52. stackit_postgresflex-0.0.1a0/src/stackit/postgresflex/models/list_versions_response.py +82 -0
  53. stackit_postgresflex-0.0.1a0/src/stackit/postgresflex/models/partial_update_instance_payload.py +121 -0
  54. stackit_postgresflex-0.0.1a0/src/stackit/postgresflex/models/partial_update_instance_response.py +87 -0
  55. stackit_postgresflex-0.0.1a0/src/stackit/postgresflex/models/partial_update_user_payload.py +83 -0
  56. stackit_postgresflex-0.0.1a0/src/stackit/postgresflex/models/postgres_database_parameter.py +137 -0
  57. stackit_postgresflex-0.0.1a0/src/stackit/postgresflex/models/postgres_database_parameter_response.py +101 -0
  58. stackit_postgresflex-0.0.1a0/src/stackit/postgresflex/models/reset_user_response.py +87 -0
  59. stackit_postgresflex-0.0.1a0/src/stackit/postgresflex/models/storage.py +83 -0
  60. stackit_postgresflex-0.0.1a0/src/stackit/postgresflex/models/storage_range.py +83 -0
  61. stackit_postgresflex-0.0.1a0/src/stackit/postgresflex/models/update_backup_schedule_payload.py +82 -0
  62. stackit_postgresflex-0.0.1a0/src/stackit/postgresflex/models/update_instance_payload.py +121 -0
  63. stackit_postgresflex-0.0.1a0/src/stackit/postgresflex/models/update_user_payload.py +83 -0
  64. stackit_postgresflex-0.0.1a0/src/stackit/postgresflex/models/user.py +100 -0
  65. stackit_postgresflex-0.0.1a0/src/stackit/postgresflex/models/user_response.py +94 -0
  66. stackit_postgresflex-0.0.1a0/src/stackit/postgresflex/py.typed +0 -0
  67. stackit_postgresflex-0.0.1a0/src/stackit/postgresflex/rest.py +149 -0
@@ -0,0 +1,45 @@
1
+ Metadata-Version: 2.1
2
+ Name: stackit-postgresflex
3
+ Version: 0.0.1a0
4
+ Summary: STACKIT PostgreSQL Flex API
5
+ Author: STACKIT Developer Tools
6
+ Author-email: developer-tools@stackit.cloud
7
+ Requires-Python: >=3.8,<4.0
8
+ Classifier: License :: OSI Approved :: Apache Software License
9
+ Classifier: Operating System :: OS Independent
10
+ Classifier: Programming Language :: Python :: 3
11
+ Classifier: Programming Language :: Python :: 3.8
12
+ Classifier: Programming Language :: Python :: 3.9
13
+ Classifier: Programming Language :: Python :: 3.10
14
+ Classifier: Programming Language :: Python :: 3.11
15
+ Classifier: Programming Language :: Python :: 3.12
16
+ Classifier: Programming Language :: Python :: 3.13
17
+ Requires-Dist: pydantic (>=2.9.2)
18
+ Requires-Dist: python-dateutil (>=2.9.0.post0)
19
+ Requires-Dist: requests (>=2.32.3)
20
+ Requires-Dist: stackit-core (>=0.0.1a)
21
+ Description-Content-Type: text/markdown
22
+
23
+ # stackit.postgresflex
24
+ This is the documentation for the STACKIT postgres service
25
+
26
+ For more information, please visit [https://www.stackit.de/en/contact](https://www.stackit.de/en/contact)
27
+
28
+ This package is part of the STACKIT Python SDK. For additional information, please visit the [GitHub repository](https://github.com/stackitcloud/stackit-sdk-python) of the SDK.
29
+
30
+
31
+ ## Installation & Usage
32
+ ### pip install
33
+
34
+ ```sh
35
+ pip install stackit-postgresflex
36
+ ```
37
+
38
+ Then import the package:
39
+ ```python
40
+ import stackit.postgresflex
41
+ ```
42
+
43
+ ## Getting Started
44
+
45
+ [Examples](https://github.com/stackitcloud/stackit-sdk-python/tree/main/examples) for the usage of the package can be found in the [GitHub repository](https://github.com/stackitcloud/stackit-sdk-python) of the SDK.
@@ -0,0 +1,23 @@
1
+ # stackit.postgresflex
2
+ This is the documentation for the STACKIT postgres service
3
+
4
+ For more information, please visit [https://www.stackit.de/en/contact](https://www.stackit.de/en/contact)
5
+
6
+ This package is part of the STACKIT Python SDK. For additional information, please visit the [GitHub repository](https://github.com/stackitcloud/stackit-sdk-python) of the SDK.
7
+
8
+
9
+ ## Installation & Usage
10
+ ### pip install
11
+
12
+ ```sh
13
+ pip install stackit-postgresflex
14
+ ```
15
+
16
+ Then import the package:
17
+ ```python
18
+ import stackit.postgresflex
19
+ ```
20
+
21
+ ## Getting Started
22
+
23
+ [Examples](https://github.com/stackitcloud/stackit-sdk-python/tree/main/examples) for the usage of the package can be found in the [GitHub repository](https://github.com/stackitcloud/stackit-sdk-python) of the SDK.
@@ -0,0 +1,105 @@
1
+ [tool.poetry]
2
+ name = "stackit-postgresflex"
3
+ version = "v0.0.1a"
4
+ authors = [
5
+ "STACKIT Developer Tools <developer-tools@stackit.cloud>",
6
+ ]
7
+ description = "STACKIT PostgreSQL Flex API"
8
+ readme = "README.md"
9
+ #license = "NoLicense"
10
+ classifiers = [
11
+ "Programming Language :: Python :: 3",
12
+ "License :: OSI Approved :: Apache Software License",
13
+ "Operating System :: OS Independent",
14
+ ]
15
+ packages = [
16
+ { include = "stackit", from="src" }
17
+ ]
18
+
19
+ [tool.poetry.dependencies]
20
+ python = ">=3.8,<4.0"
21
+ stackit-core = ">=0.0.1a"
22
+ requests = ">=2.32.3"
23
+ pydantic = ">=2.9.2"
24
+ python-dateutil = ">=2.9.0.post0"
25
+
26
+ [tool.poetry.group.dev.dependencies]
27
+ black = ">=24.8.0"
28
+ pytest = ">=8.3.3"
29
+ flake8 = [
30
+ { version= ">=5.0.3", python="<3.12"},
31
+ { version= ">=6.0.1", python=">=3.12"}
32
+ ]
33
+ flake8-black = ">=0.3.6"
34
+ flake8-pyproject = ">=1.2.3"
35
+ autoimport = ">=1.6.1"
36
+ flake8-eol = ">=0.0.8"
37
+ flake8-eradicate = ">=1.5.0"
38
+ flake8-bandit = ">=4.1.1"
39
+ flake8-bugbear = ">=23.1.14"
40
+ flake8-quotes = ">=3.4.0"
41
+ isort = ">=5.13.2"
42
+
43
+ [project.urls]
44
+ Homepage = "https://github.com/stackitcloud/stackit-sdk-python"
45
+ Issues = "https://github.com/stackitcloud/stackit-sdk-python/issues"
46
+
47
+ [build-system]
48
+ requires = ["setuptools", "poetry-core"]
49
+ build-backend = "poetry.core.masonry.api"
50
+
51
+ [tool.pytest.ini_options]
52
+ pythonpath = [
53
+ "src"
54
+ ]
55
+ testpaths = [
56
+ "tests"
57
+ ]
58
+
59
+ [tool.black]
60
+ line-length = 120
61
+ exclude = """
62
+ /(
63
+ .eggs
64
+ | .git
65
+ | .hg
66
+ | .mypy_cache
67
+ | .nox
68
+ | .pants.d
69
+ | .tox
70
+ | .venv
71
+ | _build
72
+ | buck-out
73
+ | build
74
+ | dist
75
+ | node_modules
76
+ | venv
77
+ )/
78
+ """
79
+
80
+ [tool.isort]
81
+ profile = 'black'
82
+
83
+ [tool.flake8]
84
+ exclude= [".eggs", ".git", ".hg", ".mypy_cache", ".tox", ".venv", ".devcontainer", "venv", "_build", "buck-out", "build", "dist"]
85
+ statistics = true
86
+ show-source = false
87
+ max-line-length = 120
88
+ # E203,W503 and E704 are incompatible with the formatter black
89
+ # W291 needs to be disabled because some doc-strings get generated with trailing whitespace but black won't re-format comments
90
+ ignore = ["E203", "W503", "E704", "W291"]
91
+ inline-quotes = '"'
92
+ docstring-quotes = '"""'
93
+ multiline-quotes = '"""'
94
+ ban-relative-imports = true
95
+ per-file-ignores = """
96
+ # asserts are fine in tests, tests shouldn't be build optimized
97
+ ./tests/*: S101,
98
+ # F841: some variables get generated but may not be used, depending on the api-spec
99
+ # E501: long descriptions/string values might lead to lines that are too long
100
+ ./src/stackit/*/models/*: F841,E501
101
+ # F841: some variables get generated but may not be used, depending on the api-spec
102
+ # E501: long descriptions/string values might lead to lines that are too long
103
+ # B028: stacklevel for deprecation warning is irrelevant
104
+ ./src/stackit/*/api/default_api.py: F841,B028,E501
105
+ """
@@ -0,0 +1,120 @@
1
+ # coding: utf-8
2
+
3
+ # flake8: noqa
4
+
5
+ """
6
+ STACKIT PostgreSQL Flex API
7
+
8
+ This is the documentation for the STACKIT postgres service
9
+
10
+ The version of the OpenAPI document: 1.0.0
11
+ Contact: support@stackit.cloud
12
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
13
+
14
+ Do not edit the class manually.
15
+ """ # noqa: E501 docstring might be too long
16
+
17
+
18
+ __version__ = "1.0.0"
19
+
20
+ # import apis into sdk package
21
+ from stackit.postgresflex.api.default_api import DefaultApi
22
+ from stackit.postgresflex.api_client import ApiClient
23
+
24
+ # import ApiClient
25
+ from stackit.postgresflex.api_response import ApiResponse
26
+ from stackit.postgresflex.configuration import HostConfiguration
27
+ from stackit.postgresflex.exceptions import (
28
+ ApiAttributeError,
29
+ ApiException,
30
+ ApiKeyError,
31
+ ApiTypeError,
32
+ ApiValueError,
33
+ OpenApiException,
34
+ )
35
+
36
+ # import models into sdk package
37
+ from stackit.postgresflex.models.acl import ACL
38
+ from stackit.postgresflex.models.api_configuration import ApiConfiguration
39
+ from stackit.postgresflex.models.api_extension_config_load_response import (
40
+ ApiExtensionConfigLoadResponse,
41
+ )
42
+ from stackit.postgresflex.models.api_extension_configure_response import (
43
+ ApiExtensionConfigureResponse,
44
+ )
45
+ from stackit.postgresflex.models.api_extension_delete_response import (
46
+ ApiExtensionDeleteResponse,
47
+ )
48
+ from stackit.postgresflex.models.api_extension_list import ApiExtensionList
49
+ from stackit.postgresflex.models.api_extension_load_response import (
50
+ ApiExtensionLoadResponse,
51
+ )
52
+ from stackit.postgresflex.models.api_install_response import ApiInstallResponse
53
+ from stackit.postgresflex.models.api_installed_list_response import (
54
+ ApiInstalledListResponse,
55
+ )
56
+ from stackit.postgresflex.models.backup import Backup
57
+ from stackit.postgresflex.models.clone_instance_payload import CloneInstancePayload
58
+ from stackit.postgresflex.models.clone_instance_response import CloneInstanceResponse
59
+ from stackit.postgresflex.models.create_database_payload import CreateDatabasePayload
60
+ from stackit.postgresflex.models.create_instance_payload import CreateInstancePayload
61
+ from stackit.postgresflex.models.create_instance_response import CreateInstanceResponse
62
+ from stackit.postgresflex.models.create_user_payload import CreateUserPayload
63
+ from stackit.postgresflex.models.create_user_response import CreateUserResponse
64
+ from stackit.postgresflex.models.error import Error
65
+ from stackit.postgresflex.models.extensions_configuration import ExtensionsConfiguration
66
+ from stackit.postgresflex.models.extensions_extension_list_response import (
67
+ ExtensionsExtensionListResponse,
68
+ )
69
+ from stackit.postgresflex.models.extensions_new_config import ExtensionsNewConfig
70
+ from stackit.postgresflex.models.flavor import Flavor
71
+ from stackit.postgresflex.models.get_backup_response import GetBackupResponse
72
+ from stackit.postgresflex.models.get_user_response import GetUserResponse
73
+ from stackit.postgresflex.models.instance import Instance
74
+ from stackit.postgresflex.models.instance_create_database_response import (
75
+ InstanceCreateDatabaseResponse,
76
+ )
77
+ from stackit.postgresflex.models.instance_data_point import InstanceDataPoint
78
+ from stackit.postgresflex.models.instance_database import InstanceDatabase
79
+ from stackit.postgresflex.models.instance_host import InstanceHost
80
+ from stackit.postgresflex.models.instance_host_metric import InstanceHostMetric
81
+ from stackit.postgresflex.models.instance_list_databases_response import (
82
+ InstanceListDatabasesResponse,
83
+ )
84
+ from stackit.postgresflex.models.instance_list_instance import InstanceListInstance
85
+ from stackit.postgresflex.models.instance_metrics_response import (
86
+ InstanceMetricsResponse,
87
+ )
88
+ from stackit.postgresflex.models.instance_response import InstanceResponse
89
+ from stackit.postgresflex.models.list_backups_response import ListBackupsResponse
90
+ from stackit.postgresflex.models.list_flavors_response import ListFlavorsResponse
91
+ from stackit.postgresflex.models.list_instances_response import ListInstancesResponse
92
+ from stackit.postgresflex.models.list_storages_response import ListStoragesResponse
93
+ from stackit.postgresflex.models.list_users_response import ListUsersResponse
94
+ from stackit.postgresflex.models.list_users_response_item import ListUsersResponseItem
95
+ from stackit.postgresflex.models.list_versions_response import ListVersionsResponse
96
+ from stackit.postgresflex.models.partial_update_instance_payload import (
97
+ PartialUpdateInstancePayload,
98
+ )
99
+ from stackit.postgresflex.models.partial_update_instance_response import (
100
+ PartialUpdateInstanceResponse,
101
+ )
102
+ from stackit.postgresflex.models.partial_update_user_payload import (
103
+ PartialUpdateUserPayload,
104
+ )
105
+ from stackit.postgresflex.models.postgres_database_parameter import (
106
+ PostgresDatabaseParameter,
107
+ )
108
+ from stackit.postgresflex.models.postgres_database_parameter_response import (
109
+ PostgresDatabaseParameterResponse,
110
+ )
111
+ from stackit.postgresflex.models.reset_user_response import ResetUserResponse
112
+ from stackit.postgresflex.models.storage import Storage
113
+ from stackit.postgresflex.models.storage_range import StorageRange
114
+ from stackit.postgresflex.models.update_backup_schedule_payload import (
115
+ UpdateBackupSchedulePayload,
116
+ )
117
+ from stackit.postgresflex.models.update_instance_payload import UpdateInstancePayload
118
+ from stackit.postgresflex.models.update_user_payload import UpdateUserPayload
119
+ from stackit.postgresflex.models.user import User
120
+ from stackit.postgresflex.models.user_response import UserResponse
@@ -0,0 +1,4 @@
1
+ # flake8: noqa
2
+
3
+ # import apis into api package
4
+ from stackit.postgresflex.api.default_api import DefaultApi