ionoscloud-dbaas-postgres 3.0.0__tar.gz → 3.0.1__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.
- ionoscloud_dbaas_postgres-3.0.1/PKG-INFO +192 -0
- ionoscloud_dbaas_postgres-3.0.1/README.md +166 -0
- ionoscloud_dbaas_postgres-3.0.1/ionoscloud_dbaas_postgres/__init__.py +71 -0
- ionoscloud_dbaas_postgres-3.0.1/ionoscloud_dbaas_postgres/api/__init__.py +8 -0
- ionoscloud_dbaas_postgres-3.0.1/ionoscloud_dbaas_postgres/api/backup_locations_api.py +651 -0
- {ionoscloud_dbaas_postgres-3.0.0 → ionoscloud_dbaas_postgres-3.0.1}/ionoscloud_dbaas_postgres/api/backups_api.py +134 -390
- ionoscloud_dbaas_postgres-3.0.0/ionoscloud_dbaas_postgres/api/users_api.py → ionoscloud_dbaas_postgres-3.0.1/ionoscloud_dbaas_postgres/api/clusters_api.py +336 -280
- ionoscloud_dbaas_postgres-3.0.0/ionoscloud_dbaas_postgres/api/metadata_api.py → ionoscloud_dbaas_postgres-3.0.1/ionoscloud_dbaas_postgres/api/versions_api.py +134 -307
- {ionoscloud_dbaas_postgres-3.0.0 → ionoscloud_dbaas_postgres-3.0.1}/ionoscloud_dbaas_postgres/api_client.py +5 -4
- {ionoscloud_dbaas_postgres-3.0.0 → ionoscloud_dbaas_postgres-3.0.1}/ionoscloud_dbaas_postgres/configuration.py +43 -52
- {ionoscloud_dbaas_postgres-3.0.0 → ionoscloud_dbaas_postgres-3.0.1}/ionoscloud_dbaas_postgres/exceptions.py +4 -3
- ionoscloud_dbaas_postgres-3.0.1/ionoscloud_dbaas_postgres/models/__init__.py +51 -0
- ionoscloud_dbaas_postgres-3.0.0/ionoscloud_dbaas_postgres/models/cluster_backup.py → ionoscloud_dbaas_postgres-3.0.1/ionoscloud_dbaas_postgres/models/backup.py +18 -19
- ionoscloud_dbaas_postgres-3.0.0/ionoscloud_dbaas_postgres/models/user.py → ionoscloud_dbaas_postgres-3.0.1/ionoscloud_dbaas_postgres/models/backup_create.py +15 -12
- ionoscloud_dbaas_postgres-3.0.0/ionoscloud_dbaas_postgres/models/database.py → ionoscloud_dbaas_postgres-3.0.1/ionoscloud_dbaas_postgres/models/backup_ensure.py +17 -12
- ionoscloud_dbaas_postgres-3.0.0/ionoscloud_dbaas_postgres/models/api_version.py → ionoscloud_dbaas_postgres-3.0.1/ionoscloud_dbaas_postgres/models/backup_location.py +11 -12
- ionoscloud_dbaas_postgres-3.0.1/ionoscloud_dbaas_postgres/models/backup_location_read.py +101 -0
- ionoscloud_dbaas_postgres-3.0.0/ionoscloud_dbaas_postgres/models/user_list.py → ionoscloud_dbaas_postgres-3.0.1/ionoscloud_dbaas_postgres/models/backup_location_read_list.py +23 -21
- ionoscloud_dbaas_postgres-3.0.1/ionoscloud_dbaas_postgres/models/backup_read.py +101 -0
- ionoscloud_dbaas_postgres-3.0.0/ionoscloud_dbaas_postgres/models/database_list.py → ionoscloud_dbaas_postgres-3.0.1/ionoscloud_dbaas_postgres/models/backup_read_list.py +23 -21
- ionoscloud_dbaas_postgres-3.0.1/ionoscloud_dbaas_postgres/models/cluster.py +138 -0
- ionoscloud_dbaas_postgres-3.0.0/ionoscloud_dbaas_postgres/models/patch_user_properties.py → ionoscloud_dbaas_postgres-3.0.1/ionoscloud_dbaas_postgres/models/cluster_backup.py +14 -11
- ionoscloud_dbaas_postgres-3.0.0/ionoscloud_dbaas_postgres/models/users_patch_request.py → ionoscloud_dbaas_postgres-3.0.1/ionoscloud_dbaas_postgres/models/cluster_create.py +15 -12
- ionoscloud_dbaas_postgres-3.0.1/ionoscloud_dbaas_postgres/models/cluster_create_properties.py +138 -0
- ionoscloud_dbaas_postgres-3.0.0/ionoscloud_dbaas_postgres/models/resource.py → ionoscloud_dbaas_postgres-3.0.1/ionoscloud_dbaas_postgres/models/cluster_ensure.py +18 -14
- {ionoscloud_dbaas_postgres-3.0.0 → ionoscloud_dbaas_postgres-3.0.1}/ionoscloud_dbaas_postgres/models/cluster_metadata.py +28 -12
- ionoscloud_dbaas_postgres-3.0.0/ionoscloud_dbaas_postgres/models/patch_cluster_request.py → ionoscloud_dbaas_postgres-3.0.1/ionoscloud_dbaas_postgres/models/cluster_read.py +19 -12
- ionoscloud_dbaas_postgres-3.0.0/ionoscloud_dbaas_postgres/models/cluster_list.py → ionoscloud_dbaas_postgres-3.0.1/ionoscloud_dbaas_postgres/models/cluster_read_list.py +25 -21
- ionoscloud_dbaas_postgres-3.0.1/ionoscloud_dbaas_postgres/models/cluster_restore_from_backup.py +138 -0
- {ionoscloud_dbaas_postgres-3.0.0 → ionoscloud_dbaas_postgres-3.0.1}/ionoscloud_dbaas_postgres/models/day_of_the_week.py +4 -3
- ionoscloud_dbaas_postgres-3.0.0/ionoscloud_dbaas_postgres/models/error_response.py → ionoscloud_dbaas_postgres-3.0.1/ionoscloud_dbaas_postgres/models/error.py +11 -10
- ionoscloud_dbaas_postgres-3.0.0/ionoscloud_dbaas_postgres/models/error_message.py → ionoscloud_dbaas_postgres-3.0.1/ionoscloud_dbaas_postgres/models/error_messages_inner.py +8 -7
- ionoscloud_dbaas_postgres-3.0.0/ionoscloud_dbaas_postgres/models/database_properties.py → ionoscloud_dbaas_postgres-3.0.1/ionoscloud_dbaas_postgres/models/instance_configuration.py +17 -12
- ionoscloud_dbaas_postgres-3.0.0/ionoscloud_dbaas_postgres/models/pagination_links.py → ionoscloud_dbaas_postgres-3.0.1/ionoscloud_dbaas_postgres/models/links.py +8 -7
- {ionoscloud_dbaas_postgres-3.0.0 → ionoscloud_dbaas_postgres-3.0.1}/ionoscloud_dbaas_postgres/models/maintenance_window.py +4 -3
- {ionoscloud_dbaas_postgres-3.0.0 → ionoscloud_dbaas_postgres-3.0.1}/ionoscloud_dbaas_postgres/models/metadata.py +22 -14
- {ionoscloud_dbaas_postgres-3.0.0 → ionoscloud_dbaas_postgres-3.0.1}/ionoscloud_dbaas_postgres/models/pagination.py +11 -8
- ionoscloud_dbaas_postgres-3.0.0/ionoscloud_dbaas_postgres/models/connection.py → ionoscloud_dbaas_postgres-3.0.1/ionoscloud_dbaas_postgres/models/postgres_cluster_connection.py +13 -12
- ionoscloud_dbaas_postgres-3.0.1/ionoscloud_dbaas_postgres/models/postgres_cluster_replication_mode.py +38 -0
- ionoscloud_dbaas_postgres-3.0.1/ionoscloud_dbaas_postgres/models/postgres_cluster_states.py +41 -0
- ionoscloud_dbaas_postgres-3.0.0/ionoscloud_dbaas_postgres/models/backup_metadata.py → ionoscloud_dbaas_postgres-3.0.1/ionoscloud_dbaas_postgres/models/postgres_in_place_restore_cluster_from_backup.py +11 -13
- ionoscloud_dbaas_postgres-3.0.1/ionoscloud_dbaas_postgres/models/postgres_restore_cluster_from_backup.py +91 -0
- ionoscloud_dbaas_postgres-3.0.0/ionoscloud_dbaas_postgres/models/user_properties.py → ionoscloud_dbaas_postgres-3.0.1/ionoscloud_dbaas_postgres/models/postgres_user.py +14 -14
- ionoscloud_dbaas_postgres-3.0.0/ionoscloud_dbaas_postgres/models/db_user.py → ionoscloud_dbaas_postgres-3.0.1/ionoscloud_dbaas_postgres/models/postgres_version.py +17 -13
- ionoscloud_dbaas_postgres-3.0.1/ionoscloud_dbaas_postgres/models/postgres_version_read.py +101 -0
- ionoscloud_dbaas_postgres-3.0.0/ionoscloud_dbaas_postgres/models/cluster_backup_list.py → ionoscloud_dbaas_postgres-3.0.1/ionoscloud_dbaas_postgres/models/postgres_version_read_list.py +25 -21
- {ionoscloud_dbaas_postgres-3.0.0 → ionoscloud_dbaas_postgres-3.0.1}/ionoscloud_dbaas_postgres/rest.py +4 -3
- {ionoscloud_dbaas_postgres-3.0.0 → ionoscloud_dbaas_postgres-3.0.1}/pyproject.toml +4 -4
- ionoscloud_dbaas_postgres-3.0.0/PKG-INFO +0 -244
- ionoscloud_dbaas_postgres-3.0.0/README.md +0 -218
- ionoscloud_dbaas_postgres-3.0.0/ionoscloud_dbaas_postgres/__init__.py +0 -89
- ionoscloud_dbaas_postgres-3.0.0/ionoscloud_dbaas_postgres/api/__init__.py +0 -11
- ionoscloud_dbaas_postgres-3.0.0/ionoscloud_dbaas_postgres/api/clusters_api.py +0 -2327
- ionoscloud_dbaas_postgres-3.0.0/ionoscloud_dbaas_postgres/api/databases_api.py +0 -1238
- ionoscloud_dbaas_postgres-3.0.0/ionoscloud_dbaas_postgres/api/logs_api.py +0 -403
- ionoscloud_dbaas_postgres-3.0.0/ionoscloud_dbaas_postgres/api/restores_api.py +0 -341
- ionoscloud_dbaas_postgres-3.0.0/ionoscloud_dbaas_postgres/models/__init__.py +0 -66
- ionoscloud_dbaas_postgres-3.0.0/ionoscloud_dbaas_postgres/models/backup_response.py +0 -102
- ionoscloud_dbaas_postgres-3.0.0/ionoscloud_dbaas_postgres/models/cluster_logs.py +0 -95
- ionoscloud_dbaas_postgres-3.0.0/ionoscloud_dbaas_postgres/models/cluster_logs_instances_inner.py +0 -97
- ionoscloud_dbaas_postgres-3.0.0/ionoscloud_dbaas_postgres/models/cluster_logs_instances_inner_messages_inner.py +0 -90
- ionoscloud_dbaas_postgres-3.0.0/ionoscloud_dbaas_postgres/models/cluster_properties.py +0 -132
- ionoscloud_dbaas_postgres-3.0.0/ionoscloud_dbaas_postgres/models/cluster_response.py +0 -102
- ionoscloud_dbaas_postgres-3.0.0/ionoscloud_dbaas_postgres/models/connection_pooler.py +0 -90
- ionoscloud_dbaas_postgres-3.0.0/ionoscloud_dbaas_postgres/models/create_cluster_properties.py +0 -142
- ionoscloud_dbaas_postgres-3.0.0/ionoscloud_dbaas_postgres/models/create_cluster_request.py +0 -97
- ionoscloud_dbaas_postgres-3.0.0/ionoscloud_dbaas_postgres/models/create_restore_request.py +0 -90
- ionoscloud_dbaas_postgres-3.0.0/ionoscloud_dbaas_postgres/models/create_synchronization_mode.py +0 -37
- ionoscloud_dbaas_postgres-3.0.0/ionoscloud_dbaas_postgres/models/database_items.py +0 -95
- ionoscloud_dbaas_postgres-3.0.0/ionoscloud_dbaas_postgres/models/database_resource.py +0 -104
- ionoscloud_dbaas_postgres-3.0.0/ionoscloud_dbaas_postgres/models/deprecated_pagination.py +0 -96
- ionoscloud_dbaas_postgres-3.0.0/ionoscloud_dbaas_postgres/models/patch_cluster_properties.py +0 -123
- ionoscloud_dbaas_postgres-3.0.0/ionoscloud_dbaas_postgres/models/pool_mode.py +0 -37
- ionoscloud_dbaas_postgres-3.0.0/ionoscloud_dbaas_postgres/models/postgres_version_list.py +0 -95
- ionoscloud_dbaas_postgres-3.0.0/ionoscloud_dbaas_postgres/models/postgres_version_list_data_inner.py +0 -87
- ionoscloud_dbaas_postgres-3.0.0/ionoscloud_dbaas_postgres/models/resource_metadata.py +0 -91
- ionoscloud_dbaas_postgres-3.0.0/ionoscloud_dbaas_postgres/models/resource_type.py +0 -40
- ionoscloud_dbaas_postgres-3.0.0/ionoscloud_dbaas_postgres/models/state.py +0 -41
- ionoscloud_dbaas_postgres-3.0.0/ionoscloud_dbaas_postgres/models/storage_type.py +0 -39
- ionoscloud_dbaas_postgres-3.0.0/ionoscloud_dbaas_postgres/models/synchronization_mode.py +0 -38
- ionoscloud_dbaas_postgres-3.0.0/ionoscloud_dbaas_postgres/models/user_items.py +0 -95
- ionoscloud_dbaas_postgres-3.0.0/ionoscloud_dbaas_postgres/models/user_resource.py +0 -104
- {ionoscloud_dbaas_postgres-3.0.0 → ionoscloud_dbaas_postgres-3.0.1}/LICENSE +0 -0
- {ionoscloud_dbaas_postgres-3.0.0 → ionoscloud_dbaas_postgres-3.0.1}/ionoscloud_dbaas_postgres/api_response.py +0 -0
- {ionoscloud_dbaas_postgres-3.0.0 → ionoscloud_dbaas_postgres-3.0.1}/ionoscloud_dbaas_postgres/py.typed +0 -0
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: ionoscloud_dbaas_postgres
|
|
3
|
+
Version: 3.0.1
|
|
4
|
+
Summary: IONOS Cloud - DBaas - PostgreSQL
|
|
5
|
+
License: NoLicense
|
|
6
|
+
License-File: LICENSE
|
|
7
|
+
Keywords: OpenAPI,OpenAPI-Generator,IONOS Cloud - DBaas - PostgreSQL
|
|
8
|
+
Author: IONOS Cloud Support
|
|
9
|
+
Author-email: support@cloud.ionos.com
|
|
10
|
+
Requires-Python: >=3.9,<4.0
|
|
11
|
+
Classifier: License :: Other/Proprietary License
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
19
|
+
Requires-Dist: pydantic (>=2)
|
|
20
|
+
Requires-Dist: python-dateutil (>=2.8.2)
|
|
21
|
+
Requires-Dist: typing-extensions (>=4.7.1)
|
|
22
|
+
Requires-Dist: urllib3 (>=2.1.0,<3.0.0)
|
|
23
|
+
Project-URL: Repository, https://github.com/ionos-cloud/sdk-python
|
|
24
|
+
Description-Content-Type: text/markdown
|
|
25
|
+
|
|
26
|
+
# ionoscloud-dbaas-postgres
|
|
27
|
+
DBaaS PostgreSQL v2 is the new version of the PostgreSQL API at IONOS cloud.
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
31
|
+
|
|
32
|
+
- API version: 2.0.0
|
|
33
|
+
- Package version: 3.0.1
|
|
34
|
+
- Generator version: 7.13.0-SNAPSHOT
|
|
35
|
+
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
|
|
36
|
+
For more information, please visit [https://docs.ionos.com/cloud/support/general-information/contact-information](https://docs.ionos.com/cloud/support/general-information/contact-information)
|
|
37
|
+
|
|
38
|
+
## Requirements.
|
|
39
|
+
|
|
40
|
+
Python 3.9+
|
|
41
|
+
|
|
42
|
+
## Installation & Usage
|
|
43
|
+
### pip install
|
|
44
|
+
|
|
45
|
+
If the python package is hosted on a repository, you can install directly using:
|
|
46
|
+
|
|
47
|
+
```sh
|
|
48
|
+
pip install git+https://github.com/ionos-cloud/sdk-python.git
|
|
49
|
+
```
|
|
50
|
+
(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/ionos-cloud/sdk-python.git`)
|
|
51
|
+
|
|
52
|
+
Then import the package:
|
|
53
|
+
```python
|
|
54
|
+
import ionoscloud_dbaas_postgres
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
### Setuptools
|
|
58
|
+
|
|
59
|
+
Install via [Setuptools](http://pypi.python.org/pypi/setuptools).
|
|
60
|
+
|
|
61
|
+
```sh
|
|
62
|
+
python setup.py install --user
|
|
63
|
+
```
|
|
64
|
+
(or `sudo python setup.py install` to install the package for all users)
|
|
65
|
+
|
|
66
|
+
Then import the package:
|
|
67
|
+
```python
|
|
68
|
+
import ionoscloud_dbaas_postgres
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
### Tests
|
|
72
|
+
|
|
73
|
+
Execute `pytest` to run the tests.
|
|
74
|
+
|
|
75
|
+
## Getting Started
|
|
76
|
+
|
|
77
|
+
Please follow the [installation procedure](#installation--usage) and then run the following:
|
|
78
|
+
|
|
79
|
+
```python
|
|
80
|
+
|
|
81
|
+
import ionoscloud_dbaas_postgres
|
|
82
|
+
from ionoscloud_dbaas_postgres.rest import ApiException
|
|
83
|
+
from pprint import pprint
|
|
84
|
+
import os
|
|
85
|
+
|
|
86
|
+
# Defining the host is optional and defaults to https://postgresql.de-txl.ionos.com
|
|
87
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
88
|
+
configuration = ionoscloud_dbaas_postgres.Configuration(
|
|
89
|
+
host = "https://postgresql.de-txl.ionos.com"
|
|
90
|
+
)
|
|
91
|
+
|
|
92
|
+
# The client must configure the authentication and authorization parameters
|
|
93
|
+
# in accordance with the API server security policy.
|
|
94
|
+
# Examples for each auth method are provided below, use the example that
|
|
95
|
+
# satisfies your auth use case.
|
|
96
|
+
|
|
97
|
+
# Configure Bearer authorization (JWT): tokenAuth
|
|
98
|
+
configuration = ionoscloud_dbaas_postgres.Configuration(
|
|
99
|
+
token = os.environ["IONOS_TOKEN"]
|
|
100
|
+
)
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
# Enter a context with an instance of the API client
|
|
104
|
+
with ionoscloud_dbaas_postgres.ApiClient(configuration) as api_client:
|
|
105
|
+
# Create an instance of the API class
|
|
106
|
+
api_instance = ionoscloud_dbaas_postgres.BackupLocationsApi(api_client)
|
|
107
|
+
backup_location_id = '7fa1dd11-59dd-53a5-ab67-50f649c8e3eb' # str | The ID (UUID) of the BackupLocation.
|
|
108
|
+
|
|
109
|
+
try:
|
|
110
|
+
# Retrieve BackupLocation
|
|
111
|
+
api_response = api_instance.backuplocations_find_by_id(backup_location_id)
|
|
112
|
+
print("The response of BackupLocationsApi->backuplocations_find_by_id:\n")
|
|
113
|
+
pprint(api_response)
|
|
114
|
+
except ApiException as e:
|
|
115
|
+
print("Exception when calling BackupLocationsApi->backuplocations_find_by_id: %s\n" % e)
|
|
116
|
+
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
## Documentation for API Endpoints
|
|
120
|
+
|
|
121
|
+
All URIs are relative to *https://postgresql.de-txl.ionos.com*
|
|
122
|
+
|
|
123
|
+
Class | Method | HTTP request | Description
|
|
124
|
+
------------ | ------------- | ------------- | -------------
|
|
125
|
+
*BackupLocationsApi* | [**backuplocations_find_by_id**](docs/api/BackupLocationsApi.md#backuplocations_find_by_id) | **GET** /backup-locations/{backupLocationId} | Retrieve BackupLocation
|
|
126
|
+
*BackupLocationsApi* | [**backuplocations_get**](docs/api/BackupLocationsApi.md#backuplocations_get) | **GET** /backup-locations | Retrieve all BackupLocations
|
|
127
|
+
*BackupsApi* | [**backups_find_by_id**](docs/api/BackupsApi.md#backups_find_by_id) | **GET** /backups/{backupId} | Retrieve Backup
|
|
128
|
+
*BackupsApi* | [**backups_get**](docs/api/BackupsApi.md#backups_get) | **GET** /backups | Retrieve all Backups
|
|
129
|
+
*ClustersApi* | [**clusters_delete**](docs/api/ClustersApi.md#clusters_delete) | **DELETE** /clusters/{clusterId} | Delete Cluster
|
|
130
|
+
*ClustersApi* | [**clusters_find_by_id**](docs/api/ClustersApi.md#clusters_find_by_id) | **GET** /clusters/{clusterId} | Retrieve Cluster
|
|
131
|
+
*ClustersApi* | [**clusters_get**](docs/api/ClustersApi.md#clusters_get) | **GET** /clusters | Retrieve all Clusters
|
|
132
|
+
*ClustersApi* | [**clusters_post**](docs/api/ClustersApi.md#clusters_post) | **POST** /clusters | Create Cluster
|
|
133
|
+
*ClustersApi* | [**clusters_put**](docs/api/ClustersApi.md#clusters_put) | **PUT** /clusters/{clusterId} | Ensure Cluster
|
|
134
|
+
*VersionsApi* | [**versions_find_by_id**](docs/api/VersionsApi.md#versions_find_by_id) | **GET** /versions/{versionId} | Retrieve PostgresVersion
|
|
135
|
+
*VersionsApi* | [**versions_get**](docs/api/VersionsApi.md#versions_get) | **GET** /versions | Retrieve all Versions
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
## Documentation For Models
|
|
139
|
+
|
|
140
|
+
- [Backup](docs/models/Backup.md)
|
|
141
|
+
- [BackupCreate](docs/models/BackupCreate.md)
|
|
142
|
+
- [BackupEnsure](docs/models/BackupEnsure.md)
|
|
143
|
+
- [BackupLocation](docs/models/BackupLocation.md)
|
|
144
|
+
- [BackupLocationRead](docs/models/BackupLocationRead.md)
|
|
145
|
+
- [BackupLocationReadList](docs/models/BackupLocationReadList.md)
|
|
146
|
+
- [BackupRead](docs/models/BackupRead.md)
|
|
147
|
+
- [BackupReadList](docs/models/BackupReadList.md)
|
|
148
|
+
- [Cluster](docs/models/Cluster.md)
|
|
149
|
+
- [ClusterBackup](docs/models/ClusterBackup.md)
|
|
150
|
+
- [ClusterCreate](docs/models/ClusterCreate.md)
|
|
151
|
+
- [ClusterCreateProperties](docs/models/ClusterCreateProperties.md)
|
|
152
|
+
- [ClusterEnsure](docs/models/ClusterEnsure.md)
|
|
153
|
+
- [ClusterMetadata](docs/models/ClusterMetadata.md)
|
|
154
|
+
- [ClusterRead](docs/models/ClusterRead.md)
|
|
155
|
+
- [ClusterReadList](docs/models/ClusterReadList.md)
|
|
156
|
+
- [ClusterRestoreFromBackup](docs/models/ClusterRestoreFromBackup.md)
|
|
157
|
+
- [DayOfTheWeek](docs/models/DayOfTheWeek.md)
|
|
158
|
+
- [Error](docs/models/Error.md)
|
|
159
|
+
- [ErrorMessagesInner](docs/models/ErrorMessagesInner.md)
|
|
160
|
+
- [InstanceConfiguration](docs/models/InstanceConfiguration.md)
|
|
161
|
+
- [Links](docs/models/Links.md)
|
|
162
|
+
- [MaintenanceWindow](docs/models/MaintenanceWindow.md)
|
|
163
|
+
- [Metadata](docs/models/Metadata.md)
|
|
164
|
+
- [Pagination](docs/models/Pagination.md)
|
|
165
|
+
- [PostgresClusterConnection](docs/models/PostgresClusterConnection.md)
|
|
166
|
+
- [PostgresClusterReplicationMode](docs/models/PostgresClusterReplicationMode.md)
|
|
167
|
+
- [PostgresClusterStates](docs/models/PostgresClusterStates.md)
|
|
168
|
+
- [PostgresInPlaceRestoreClusterFromBackup](docs/models/PostgresInPlaceRestoreClusterFromBackup.md)
|
|
169
|
+
- [PostgresRestoreClusterFromBackup](docs/models/PostgresRestoreClusterFromBackup.md)
|
|
170
|
+
- [PostgresUser](docs/models/PostgresUser.md)
|
|
171
|
+
- [PostgresVersion](docs/models/PostgresVersion.md)
|
|
172
|
+
- [PostgresVersionRead](docs/models/PostgresVersionRead.md)
|
|
173
|
+
- [PostgresVersionReadList](docs/models/PostgresVersionReadList.md)
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
<a id="documentation-for-authorization"></a>
|
|
177
|
+
## Documentation For Authorization
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
Authentication schemes defined for the API:
|
|
181
|
+
<a id="tokenAuth"></a>
|
|
182
|
+
### tokenAuth
|
|
183
|
+
|
|
184
|
+
- **Type**: Bearer authentication (JWT)
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
## Author
|
|
188
|
+
|
|
189
|
+
support@cloud.ionos.com
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
# ionoscloud-dbaas-postgres
|
|
2
|
+
DBaaS PostgreSQL v2 is the new version of the PostgreSQL API at IONOS cloud.
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
6
|
+
|
|
7
|
+
- API version: 2.0.0
|
|
8
|
+
- Package version: 3.0.1
|
|
9
|
+
- Generator version: 7.13.0-SNAPSHOT
|
|
10
|
+
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
|
|
11
|
+
For more information, please visit [https://docs.ionos.com/cloud/support/general-information/contact-information](https://docs.ionos.com/cloud/support/general-information/contact-information)
|
|
12
|
+
|
|
13
|
+
## Requirements.
|
|
14
|
+
|
|
15
|
+
Python 3.9+
|
|
16
|
+
|
|
17
|
+
## Installation & Usage
|
|
18
|
+
### pip install
|
|
19
|
+
|
|
20
|
+
If the python package is hosted on a repository, you can install directly using:
|
|
21
|
+
|
|
22
|
+
```sh
|
|
23
|
+
pip install git+https://github.com/ionos-cloud/sdk-python.git
|
|
24
|
+
```
|
|
25
|
+
(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/ionos-cloud/sdk-python.git`)
|
|
26
|
+
|
|
27
|
+
Then import the package:
|
|
28
|
+
```python
|
|
29
|
+
import ionoscloud_dbaas_postgres
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
### Setuptools
|
|
33
|
+
|
|
34
|
+
Install via [Setuptools](http://pypi.python.org/pypi/setuptools).
|
|
35
|
+
|
|
36
|
+
```sh
|
|
37
|
+
python setup.py install --user
|
|
38
|
+
```
|
|
39
|
+
(or `sudo python setup.py install` to install the package for all users)
|
|
40
|
+
|
|
41
|
+
Then import the package:
|
|
42
|
+
```python
|
|
43
|
+
import ionoscloud_dbaas_postgres
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### Tests
|
|
47
|
+
|
|
48
|
+
Execute `pytest` to run the tests.
|
|
49
|
+
|
|
50
|
+
## Getting Started
|
|
51
|
+
|
|
52
|
+
Please follow the [installation procedure](#installation--usage) and then run the following:
|
|
53
|
+
|
|
54
|
+
```python
|
|
55
|
+
|
|
56
|
+
import ionoscloud_dbaas_postgres
|
|
57
|
+
from ionoscloud_dbaas_postgres.rest import ApiException
|
|
58
|
+
from pprint import pprint
|
|
59
|
+
import os
|
|
60
|
+
|
|
61
|
+
# Defining the host is optional and defaults to https://postgresql.de-txl.ionos.com
|
|
62
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
63
|
+
configuration = ionoscloud_dbaas_postgres.Configuration(
|
|
64
|
+
host = "https://postgresql.de-txl.ionos.com"
|
|
65
|
+
)
|
|
66
|
+
|
|
67
|
+
# The client must configure the authentication and authorization parameters
|
|
68
|
+
# in accordance with the API server security policy.
|
|
69
|
+
# Examples for each auth method are provided below, use the example that
|
|
70
|
+
# satisfies your auth use case.
|
|
71
|
+
|
|
72
|
+
# Configure Bearer authorization (JWT): tokenAuth
|
|
73
|
+
configuration = ionoscloud_dbaas_postgres.Configuration(
|
|
74
|
+
token = os.environ["IONOS_TOKEN"]
|
|
75
|
+
)
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
# Enter a context with an instance of the API client
|
|
79
|
+
with ionoscloud_dbaas_postgres.ApiClient(configuration) as api_client:
|
|
80
|
+
# Create an instance of the API class
|
|
81
|
+
api_instance = ionoscloud_dbaas_postgres.BackupLocationsApi(api_client)
|
|
82
|
+
backup_location_id = '7fa1dd11-59dd-53a5-ab67-50f649c8e3eb' # str | The ID (UUID) of the BackupLocation.
|
|
83
|
+
|
|
84
|
+
try:
|
|
85
|
+
# Retrieve BackupLocation
|
|
86
|
+
api_response = api_instance.backuplocations_find_by_id(backup_location_id)
|
|
87
|
+
print("The response of BackupLocationsApi->backuplocations_find_by_id:\n")
|
|
88
|
+
pprint(api_response)
|
|
89
|
+
except ApiException as e:
|
|
90
|
+
print("Exception when calling BackupLocationsApi->backuplocations_find_by_id: %s\n" % e)
|
|
91
|
+
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
## Documentation for API Endpoints
|
|
95
|
+
|
|
96
|
+
All URIs are relative to *https://postgresql.de-txl.ionos.com*
|
|
97
|
+
|
|
98
|
+
Class | Method | HTTP request | Description
|
|
99
|
+
------------ | ------------- | ------------- | -------------
|
|
100
|
+
*BackupLocationsApi* | [**backuplocations_find_by_id**](docs/api/BackupLocationsApi.md#backuplocations_find_by_id) | **GET** /backup-locations/{backupLocationId} | Retrieve BackupLocation
|
|
101
|
+
*BackupLocationsApi* | [**backuplocations_get**](docs/api/BackupLocationsApi.md#backuplocations_get) | **GET** /backup-locations | Retrieve all BackupLocations
|
|
102
|
+
*BackupsApi* | [**backups_find_by_id**](docs/api/BackupsApi.md#backups_find_by_id) | **GET** /backups/{backupId} | Retrieve Backup
|
|
103
|
+
*BackupsApi* | [**backups_get**](docs/api/BackupsApi.md#backups_get) | **GET** /backups | Retrieve all Backups
|
|
104
|
+
*ClustersApi* | [**clusters_delete**](docs/api/ClustersApi.md#clusters_delete) | **DELETE** /clusters/{clusterId} | Delete Cluster
|
|
105
|
+
*ClustersApi* | [**clusters_find_by_id**](docs/api/ClustersApi.md#clusters_find_by_id) | **GET** /clusters/{clusterId} | Retrieve Cluster
|
|
106
|
+
*ClustersApi* | [**clusters_get**](docs/api/ClustersApi.md#clusters_get) | **GET** /clusters | Retrieve all Clusters
|
|
107
|
+
*ClustersApi* | [**clusters_post**](docs/api/ClustersApi.md#clusters_post) | **POST** /clusters | Create Cluster
|
|
108
|
+
*ClustersApi* | [**clusters_put**](docs/api/ClustersApi.md#clusters_put) | **PUT** /clusters/{clusterId} | Ensure Cluster
|
|
109
|
+
*VersionsApi* | [**versions_find_by_id**](docs/api/VersionsApi.md#versions_find_by_id) | **GET** /versions/{versionId} | Retrieve PostgresVersion
|
|
110
|
+
*VersionsApi* | [**versions_get**](docs/api/VersionsApi.md#versions_get) | **GET** /versions | Retrieve all Versions
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
## Documentation For Models
|
|
114
|
+
|
|
115
|
+
- [Backup](docs/models/Backup.md)
|
|
116
|
+
- [BackupCreate](docs/models/BackupCreate.md)
|
|
117
|
+
- [BackupEnsure](docs/models/BackupEnsure.md)
|
|
118
|
+
- [BackupLocation](docs/models/BackupLocation.md)
|
|
119
|
+
- [BackupLocationRead](docs/models/BackupLocationRead.md)
|
|
120
|
+
- [BackupLocationReadList](docs/models/BackupLocationReadList.md)
|
|
121
|
+
- [BackupRead](docs/models/BackupRead.md)
|
|
122
|
+
- [BackupReadList](docs/models/BackupReadList.md)
|
|
123
|
+
- [Cluster](docs/models/Cluster.md)
|
|
124
|
+
- [ClusterBackup](docs/models/ClusterBackup.md)
|
|
125
|
+
- [ClusterCreate](docs/models/ClusterCreate.md)
|
|
126
|
+
- [ClusterCreateProperties](docs/models/ClusterCreateProperties.md)
|
|
127
|
+
- [ClusterEnsure](docs/models/ClusterEnsure.md)
|
|
128
|
+
- [ClusterMetadata](docs/models/ClusterMetadata.md)
|
|
129
|
+
- [ClusterRead](docs/models/ClusterRead.md)
|
|
130
|
+
- [ClusterReadList](docs/models/ClusterReadList.md)
|
|
131
|
+
- [ClusterRestoreFromBackup](docs/models/ClusterRestoreFromBackup.md)
|
|
132
|
+
- [DayOfTheWeek](docs/models/DayOfTheWeek.md)
|
|
133
|
+
- [Error](docs/models/Error.md)
|
|
134
|
+
- [ErrorMessagesInner](docs/models/ErrorMessagesInner.md)
|
|
135
|
+
- [InstanceConfiguration](docs/models/InstanceConfiguration.md)
|
|
136
|
+
- [Links](docs/models/Links.md)
|
|
137
|
+
- [MaintenanceWindow](docs/models/MaintenanceWindow.md)
|
|
138
|
+
- [Metadata](docs/models/Metadata.md)
|
|
139
|
+
- [Pagination](docs/models/Pagination.md)
|
|
140
|
+
- [PostgresClusterConnection](docs/models/PostgresClusterConnection.md)
|
|
141
|
+
- [PostgresClusterReplicationMode](docs/models/PostgresClusterReplicationMode.md)
|
|
142
|
+
- [PostgresClusterStates](docs/models/PostgresClusterStates.md)
|
|
143
|
+
- [PostgresInPlaceRestoreClusterFromBackup](docs/models/PostgresInPlaceRestoreClusterFromBackup.md)
|
|
144
|
+
- [PostgresRestoreClusterFromBackup](docs/models/PostgresRestoreClusterFromBackup.md)
|
|
145
|
+
- [PostgresUser](docs/models/PostgresUser.md)
|
|
146
|
+
- [PostgresVersion](docs/models/PostgresVersion.md)
|
|
147
|
+
- [PostgresVersionRead](docs/models/PostgresVersionRead.md)
|
|
148
|
+
- [PostgresVersionReadList](docs/models/PostgresVersionReadList.md)
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
<a id="documentation-for-authorization"></a>
|
|
152
|
+
## Documentation For Authorization
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
Authentication schemes defined for the API:
|
|
156
|
+
<a id="tokenAuth"></a>
|
|
157
|
+
### tokenAuth
|
|
158
|
+
|
|
159
|
+
- **Type**: Bearer authentication (JWT)
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
## Author
|
|
163
|
+
|
|
164
|
+
support@cloud.ionos.com
|
|
165
|
+
|
|
166
|
+
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
# flake8: noqa
|
|
4
|
+
|
|
5
|
+
"""
|
|
6
|
+
IONOS Cloud - DBaas - PostgreSQL
|
|
7
|
+
|
|
8
|
+
DBaaS PostgreSQL v2 is the new version of the PostgreSQL API at IONOS cloud.
|
|
9
|
+
|
|
10
|
+
The version of the OpenAPI document: 2.0.0
|
|
11
|
+
Contact: support@cloud.ionos.com
|
|
12
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
13
|
+
|
|
14
|
+
Do not edit the class manually.
|
|
15
|
+
""" # noqa: E501
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
__version__ = "3.0.1"
|
|
19
|
+
|
|
20
|
+
# import apis into sdk package
|
|
21
|
+
from ionoscloud_dbaas_postgres.api.backup_locations_api import BackupLocationsApi
|
|
22
|
+
from ionoscloud_dbaas_postgres.api.backups_api import BackupsApi
|
|
23
|
+
from ionoscloud_dbaas_postgres.api.clusters_api import ClustersApi
|
|
24
|
+
from ionoscloud_dbaas_postgres.api.versions_api import VersionsApi
|
|
25
|
+
|
|
26
|
+
# import ApiClient
|
|
27
|
+
from ionoscloud_dbaas_postgres.api_response import ApiResponse
|
|
28
|
+
from ionoscloud_dbaas_postgres.api_client import ApiClient
|
|
29
|
+
from ionoscloud_dbaas_postgres.configuration import Configuration
|
|
30
|
+
from ionoscloud_dbaas_postgres.exceptions import OpenApiException
|
|
31
|
+
from ionoscloud_dbaas_postgres.exceptions import ApiTypeError
|
|
32
|
+
from ionoscloud_dbaas_postgres.exceptions import ApiValueError
|
|
33
|
+
from ionoscloud_dbaas_postgres.exceptions import ApiKeyError
|
|
34
|
+
from ionoscloud_dbaas_postgres.exceptions import ApiAttributeError
|
|
35
|
+
from ionoscloud_dbaas_postgres.exceptions import ApiException
|
|
36
|
+
|
|
37
|
+
# import models into sdk package
|
|
38
|
+
from ionoscloud_dbaas_postgres.models.backup import Backup
|
|
39
|
+
from ionoscloud_dbaas_postgres.models.backup_create import BackupCreate
|
|
40
|
+
from ionoscloud_dbaas_postgres.models.backup_ensure import BackupEnsure
|
|
41
|
+
from ionoscloud_dbaas_postgres.models.backup_location import BackupLocation
|
|
42
|
+
from ionoscloud_dbaas_postgres.models.backup_location_read import BackupLocationRead
|
|
43
|
+
from ionoscloud_dbaas_postgres.models.backup_location_read_list import BackupLocationReadList
|
|
44
|
+
from ionoscloud_dbaas_postgres.models.backup_read import BackupRead
|
|
45
|
+
from ionoscloud_dbaas_postgres.models.backup_read_list import BackupReadList
|
|
46
|
+
from ionoscloud_dbaas_postgres.models.cluster import Cluster
|
|
47
|
+
from ionoscloud_dbaas_postgres.models.cluster_backup import ClusterBackup
|
|
48
|
+
from ionoscloud_dbaas_postgres.models.cluster_create import ClusterCreate
|
|
49
|
+
from ionoscloud_dbaas_postgres.models.cluster_create_properties import ClusterCreateProperties
|
|
50
|
+
from ionoscloud_dbaas_postgres.models.cluster_ensure import ClusterEnsure
|
|
51
|
+
from ionoscloud_dbaas_postgres.models.cluster_metadata import ClusterMetadata
|
|
52
|
+
from ionoscloud_dbaas_postgres.models.cluster_read import ClusterRead
|
|
53
|
+
from ionoscloud_dbaas_postgres.models.cluster_read_list import ClusterReadList
|
|
54
|
+
from ionoscloud_dbaas_postgres.models.cluster_restore_from_backup import ClusterRestoreFromBackup
|
|
55
|
+
from ionoscloud_dbaas_postgres.models.day_of_the_week import DayOfTheWeek
|
|
56
|
+
from ionoscloud_dbaas_postgres.models.error import Error
|
|
57
|
+
from ionoscloud_dbaas_postgres.models.error_messages_inner import ErrorMessagesInner
|
|
58
|
+
from ionoscloud_dbaas_postgres.models.instance_configuration import InstanceConfiguration
|
|
59
|
+
from ionoscloud_dbaas_postgres.models.links import Links
|
|
60
|
+
from ionoscloud_dbaas_postgres.models.maintenance_window import MaintenanceWindow
|
|
61
|
+
from ionoscloud_dbaas_postgres.models.metadata import Metadata
|
|
62
|
+
from ionoscloud_dbaas_postgres.models.pagination import Pagination
|
|
63
|
+
from ionoscloud_dbaas_postgres.models.postgres_cluster_connection import PostgresClusterConnection
|
|
64
|
+
from ionoscloud_dbaas_postgres.models.postgres_cluster_replication_mode import PostgresClusterReplicationMode
|
|
65
|
+
from ionoscloud_dbaas_postgres.models.postgres_cluster_states import PostgresClusterStates
|
|
66
|
+
from ionoscloud_dbaas_postgres.models.postgres_in_place_restore_cluster_from_backup import PostgresInPlaceRestoreClusterFromBackup
|
|
67
|
+
from ionoscloud_dbaas_postgres.models.postgres_restore_cluster_from_backup import PostgresRestoreClusterFromBackup
|
|
68
|
+
from ionoscloud_dbaas_postgres.models.postgres_user import PostgresUser
|
|
69
|
+
from ionoscloud_dbaas_postgres.models.postgres_version import PostgresVersion
|
|
70
|
+
from ionoscloud_dbaas_postgres.models.postgres_version_read import PostgresVersionRead
|
|
71
|
+
from ionoscloud_dbaas_postgres.models.postgres_version_read_list import PostgresVersionReadList
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# flake8: noqa
|
|
2
|
+
|
|
3
|
+
# import apis into api package
|
|
4
|
+
from ionoscloud_dbaas_postgres.api.backup_locations_api import BackupLocationsApi
|
|
5
|
+
from ionoscloud_dbaas_postgres.api.backups_api import BackupsApi
|
|
6
|
+
from ionoscloud_dbaas_postgres.api.clusters_api import ClustersApi
|
|
7
|
+
from ionoscloud_dbaas_postgres.api.versions_api import VersionsApi
|
|
8
|
+
|