ionoscloud-dbaas-postgres 1.0.3 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/docs/CHANGELOG.md +5 -0
- data/docs/api/BackupsApi.md +25 -12
- data/docs/api/ClustersApi.md +14 -10
- data/docs/api/LogsApi.md +1 -1
- data/docs/api/MetadataApi.md +2 -2
- data/docs/api/RestoresApi.md +1 -1
- data/docs/models/BackupResponse.md +1 -1
- data/docs/models/ClusterBackupList.md +6 -6
- data/docs/models/ClusterList.md +6 -6
- data/docs/models/ClusterProperties.md +2 -0
- data/docs/models/ClusterResponse.md +1 -1
- data/docs/models/DBUser.md +1 -1
- data/docs/models/Pagination.md +6 -6
- data/ionoscloud-dbaas-postgres.gemspec +4 -4
- data/lib/ionoscloud-dbaas-postgres/api/backups_api.rb +30 -2
- data/lib/ionoscloud-dbaas-postgres/api/clusters_api.rb +18 -4
- data/lib/ionoscloud-dbaas-postgres/api/logs_api.rb +2 -2
- data/lib/ionoscloud-dbaas-postgres/api/metadata_api.rb +2 -2
- data/lib/ionoscloud-dbaas-postgres/api/restores_api.rb +2 -2
- data/lib/ionoscloud-dbaas-postgres/api_client.rb +3 -3
- data/lib/ionoscloud-dbaas-postgres/api_error.rb +2 -2
- data/lib/ionoscloud-dbaas-postgres/configuration.rb +2 -2
- data/lib/ionoscloud-dbaas-postgres/models/api_version.rb +2 -2
- data/lib/ionoscloud-dbaas-postgres/models/backup_metadata.rb +2 -2
- data/lib/ionoscloud-dbaas-postgres/models/backup_response.rb +2 -2
- data/lib/ionoscloud-dbaas-postgres/models/cluster_backup.rb +2 -2
- data/lib/ionoscloud-dbaas-postgres/models/cluster_backup_list.rb +24 -11
- data/lib/ionoscloud-dbaas-postgres/models/cluster_backup_list_all_of.rb +2 -2
- data/lib/ionoscloud-dbaas-postgres/models/cluster_list.rb +24 -11
- data/lib/ionoscloud-dbaas-postgres/models/cluster_list_all_of.rb +2 -2
- data/lib/ionoscloud-dbaas-postgres/models/cluster_logs.rb +2 -2
- data/lib/ionoscloud-dbaas-postgres/models/cluster_logs_instances.rb +2 -2
- data/lib/ionoscloud-dbaas-postgres/models/cluster_logs_messages.rb +2 -2
- data/lib/ionoscloud-dbaas-postgres/models/cluster_properties.rb +21 -3
- data/lib/ionoscloud-dbaas-postgres/models/cluster_response.rb +2 -2
- data/lib/ionoscloud-dbaas-postgres/models/connection.rb +2 -2
- data/lib/ionoscloud-dbaas-postgres/models/create_cluster_properties.rb +2 -2
- data/lib/ionoscloud-dbaas-postgres/models/create_cluster_request.rb +2 -2
- data/lib/ionoscloud-dbaas-postgres/models/create_restore_request.rb +2 -2
- data/lib/ionoscloud-dbaas-postgres/models/day_of_the_week.rb +2 -2
- data/lib/ionoscloud-dbaas-postgres/models/db_user.rb +21 -2
- data/lib/ionoscloud-dbaas-postgres/models/error_message.rb +2 -2
- data/lib/ionoscloud-dbaas-postgres/models/error_response.rb +2 -2
- data/lib/ionoscloud-dbaas-postgres/models/maintenance_window.rb +2 -2
- data/lib/ionoscloud-dbaas-postgres/models/metadata.rb +2 -2
- data/lib/ionoscloud-dbaas-postgres/models/pagination.rb +24 -11
- data/lib/ionoscloud-dbaas-postgres/models/pagination_links.rb +3 -3
- data/lib/ionoscloud-dbaas-postgres/models/patch_cluster_properties.rb +2 -2
- data/lib/ionoscloud-dbaas-postgres/models/patch_cluster_request.rb +2 -2
- data/lib/ionoscloud-dbaas-postgres/models/postgres_version_list.rb +2 -2
- data/lib/ionoscloud-dbaas-postgres/models/postgres_version_list_data.rb +2 -2
- data/lib/ionoscloud-dbaas-postgres/models/resource_type.rb +2 -2
- data/lib/ionoscloud-dbaas-postgres/models/state.rb +3 -2
- data/lib/ionoscloud-dbaas-postgres/models/storage_type.rb +2 -2
- data/lib/ionoscloud-dbaas-postgres/models/synchronization_mode.rb +2 -2
- data/lib/ionoscloud-dbaas-postgres/version.rb +3 -3
- data/lib/ionoscloud-dbaas-postgres.rb +2 -2
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +2 -2
- data/spec/spec_helper.rb +2 -2
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 73d9b09427968fbfacf66a70016dffc0c45557012109786842f1407e47ba811b
|
4
|
+
data.tar.gz: af086d51387ec696eb5506f264aff20538c4d5b4e67d026c4e3386652f18f807
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9acb5fa3a4754b6f28812a050312088c6cc44a77ff981ccea14f7823120f74e300c3ebd97060a97da1983c32d3cffb1d5c3a5649ff43c72e846c24dfb606aa76
|
7
|
+
data.tar.gz: 94400ea9746e95362e7dc4fe59d10918887f8d13031cdd2ce345640fcd04aebe19116e199601fe105122cf09b694c49f089d5a388d1b9730b8bd24328b13a0b6
|
data/docs/CHANGELOG.md
CHANGED
data/docs/api/BackupsApi.md
CHANGED
@@ -11,7 +11,7 @@ All URIs are relative to *https://api.ionos.com/databases/postgresql*
|
|
11
11
|
|
12
12
|
## cluster_backups_get
|
13
13
|
|
14
|
-
> <ClusterBackupList> cluster_backups_get(cluster_id)
|
14
|
+
> <ClusterBackupList> cluster_backups_get(cluster_id, opts)
|
15
15
|
|
16
16
|
List backups of cluster
|
17
17
|
|
@@ -36,10 +36,14 @@ end
|
|
36
36
|
|
37
37
|
api_instance = IonoscloudDbaasPostgres::BackupsApi.new
|
38
38
|
cluster_id = 'cluster_id_example' # String | The unique ID of the cluster.
|
39
|
+
opts = {
|
40
|
+
limit: 100, # Integer | The maximum number of elements to return. Use together with 'offset' for pagination.
|
41
|
+
offset: 200 # Integer | The first element to return. Use together with 'limit' for pagination.
|
42
|
+
}
|
39
43
|
|
40
44
|
begin
|
41
45
|
# List backups of cluster
|
42
|
-
result = api_instance.cluster_backups_get(cluster_id)
|
46
|
+
result = api_instance.cluster_backups_get(cluster_id, opts)
|
43
47
|
p result
|
44
48
|
rescue IonoscloudDbaasPostgres::ApiError => e
|
45
49
|
puts "Error when calling BackupsApi->cluster_backups_get: #{e}"
|
@@ -50,12 +54,12 @@ end
|
|
50
54
|
|
51
55
|
This returns an Array which contains the response data, status code and headers.
|
52
56
|
|
53
|
-
> <Array(<ClusterBackupList>, Integer, Hash)> cluster_backups_get_with_http_info(cluster_id)
|
57
|
+
> <Array(<ClusterBackupList>, Integer, Hash)> cluster_backups_get_with_http_info(cluster_id, opts)
|
54
58
|
|
55
59
|
```ruby
|
56
60
|
begin
|
57
61
|
# List backups of cluster
|
58
|
-
data, status_code, headers = api_instance.cluster_backups_get_with_http_info(cluster_id)
|
62
|
+
data, status_code, headers = api_instance.cluster_backups_get_with_http_info(cluster_id, opts)
|
59
63
|
p status_code # => 2xx
|
60
64
|
p headers # => { ... }
|
61
65
|
p data # => <ClusterBackupList>
|
@@ -69,10 +73,12 @@ end
|
|
69
73
|
| Name | Type | Description | Notes |
|
70
74
|
| ---- | ---- | ----------- | ----- |
|
71
75
|
| **cluster_id** | **String** | The unique ID of the cluster. | |
|
76
|
+
| **limit** | **Integer** | The maximum number of elements to return. Use together with 'offset' for pagination. | [optional][default to 100] |
|
77
|
+
| **offset** | **Integer** | The first element to return. Use together with 'limit' for pagination. | [optional][default to 0] |
|
72
78
|
|
73
79
|
### Return type
|
74
80
|
|
75
|
-
[**ClusterBackupList**](ClusterBackupList.md)
|
81
|
+
[**ClusterBackupList**](../models/ClusterBackupList.md)
|
76
82
|
|
77
83
|
### Authorization
|
78
84
|
|
@@ -147,7 +153,7 @@ end
|
|
147
153
|
|
148
154
|
### Return type
|
149
155
|
|
150
|
-
[**BackupResponse**](BackupResponse.md)
|
156
|
+
[**BackupResponse**](../models/BackupResponse.md)
|
151
157
|
|
152
158
|
### Authorization
|
153
159
|
|
@@ -161,7 +167,7 @@ basicAuth, tokenAuth
|
|
161
167
|
|
162
168
|
## clusters_backups_get
|
163
169
|
|
164
|
-
> <ClusterBackupList> clusters_backups_get
|
170
|
+
> <ClusterBackupList> clusters_backups_get(opts)
|
165
171
|
|
166
172
|
List cluster backups
|
167
173
|
|
@@ -185,10 +191,14 @@ IonoscloudDbaasPostgres.configure do |config|
|
|
185
191
|
end
|
186
192
|
|
187
193
|
api_instance = IonoscloudDbaasPostgres::BackupsApi.new
|
194
|
+
opts = {
|
195
|
+
limit: 100, # Integer | The maximum number of elements to return. Use together with 'offset' for pagination.
|
196
|
+
offset: 200 # Integer | The first element to return. Use together with 'limit' for pagination.
|
197
|
+
}
|
188
198
|
|
189
199
|
begin
|
190
200
|
# List cluster backups
|
191
|
-
result = api_instance.clusters_backups_get
|
201
|
+
result = api_instance.clusters_backups_get(opts)
|
192
202
|
p result
|
193
203
|
rescue IonoscloudDbaasPostgres::ApiError => e
|
194
204
|
puts "Error when calling BackupsApi->clusters_backups_get: #{e}"
|
@@ -199,12 +209,12 @@ end
|
|
199
209
|
|
200
210
|
This returns an Array which contains the response data, status code and headers.
|
201
211
|
|
202
|
-
> <Array(<ClusterBackupList>, Integer, Hash)> clusters_backups_get_with_http_info
|
212
|
+
> <Array(<ClusterBackupList>, Integer, Hash)> clusters_backups_get_with_http_info(opts)
|
203
213
|
|
204
214
|
```ruby
|
205
215
|
begin
|
206
216
|
# List cluster backups
|
207
|
-
data, status_code, headers = api_instance.clusters_backups_get_with_http_info
|
217
|
+
data, status_code, headers = api_instance.clusters_backups_get_with_http_info(opts)
|
208
218
|
p status_code # => 2xx
|
209
219
|
p headers # => { ... }
|
210
220
|
p data # => <ClusterBackupList>
|
@@ -215,11 +225,14 @@ end
|
|
215
225
|
|
216
226
|
### Parameters
|
217
227
|
|
218
|
-
|
228
|
+
| Name | Type | Description | Notes |
|
229
|
+
| ---- | ---- | ----------- | ----- |
|
230
|
+
| **limit** | **Integer** | The maximum number of elements to return. Use together with 'offset' for pagination. | [optional][default to 100] |
|
231
|
+
| **offset** | **Integer** | The first element to return. Use together with 'limit' for pagination. | [optional][default to 0] |
|
219
232
|
|
220
233
|
### Return type
|
221
234
|
|
222
|
-
[**ClusterBackupList**](ClusterBackupList.md)
|
235
|
+
[**ClusterBackupList**](../models/ClusterBackupList.md)
|
223
236
|
|
224
237
|
### Authorization
|
225
238
|
|
data/docs/api/ClustersApi.md
CHANGED
@@ -76,7 +76,7 @@ end
|
|
76
76
|
|
77
77
|
### Return type
|
78
78
|
|
79
|
-
[**PostgresVersionList**](PostgresVersionList.md)
|
79
|
+
[**PostgresVersionList**](../models/PostgresVersionList.md)
|
80
80
|
|
81
81
|
### Authorization
|
82
82
|
|
@@ -151,7 +151,7 @@ end
|
|
151
151
|
|
152
152
|
### Return type
|
153
153
|
|
154
|
-
[**ClusterResponse**](ClusterResponse.md)
|
154
|
+
[**ClusterResponse**](../models/ClusterResponse.md)
|
155
155
|
|
156
156
|
### Authorization
|
157
157
|
|
@@ -226,7 +226,7 @@ end
|
|
226
226
|
|
227
227
|
### Return type
|
228
228
|
|
229
|
-
[**ClusterResponse**](ClusterResponse.md)
|
229
|
+
[**ClusterResponse**](../models/ClusterResponse.md)
|
230
230
|
|
231
231
|
### Authorization
|
232
232
|
|
@@ -265,6 +265,8 @@ end
|
|
265
265
|
|
266
266
|
api_instance = IonoscloudDbaasPostgres::ClustersApi.new
|
267
267
|
opts = {
|
268
|
+
limit: 100, # Integer | The maximum number of elements to return. Use together with 'offset' for pagination.
|
269
|
+
offset: 200, # Integer | The first element to return. Use together with 'limit' for pagination.
|
268
270
|
filter_name: 'filter_name_example' # String | Response filter to list only the PostgreSQL clusters that contain the specified name. The value is case insensitive and matched on the 'displayName' field.
|
269
271
|
}
|
270
272
|
|
@@ -299,11 +301,13 @@ end
|
|
299
301
|
|
300
302
|
| Name | Type | Description | Notes |
|
301
303
|
| ---- | ---- | ----------- | ----- |
|
304
|
+
| **limit** | **Integer** | The maximum number of elements to return. Use together with 'offset' for pagination. | [optional][default to 100] |
|
305
|
+
| **offset** | **Integer** | The first element to return. Use together with 'limit' for pagination. | [optional][default to 0] |
|
302
306
|
| **filter_name** | **String** | Response filter to list only the PostgreSQL clusters that contain the specified name. The value is case insensitive and matched on the 'displayName' field. | [optional] |
|
303
307
|
|
304
308
|
### Return type
|
305
309
|
|
306
|
-
[**ClusterList**](ClusterList.md)
|
310
|
+
[**ClusterList**](../models/ClusterList.md)
|
307
311
|
|
308
312
|
### Authorization
|
309
313
|
|
@@ -342,7 +346,7 @@ end
|
|
342
346
|
|
343
347
|
api_instance = IonoscloudDbaasPostgres::ClustersApi.new
|
344
348
|
cluster_id = 'cluster_id_example' # String | The unique ID of the cluster.
|
345
|
-
patch_cluster_request = IonoscloudDbaasPostgres::PatchClusterRequest.new # PatchClusterRequest |
|
349
|
+
patch_cluster_request = IonoscloudDbaasPostgres::PatchClusterRequest.new # PatchClusterRequest | Part of the cluster which should be modified.
|
346
350
|
|
347
351
|
begin
|
348
352
|
# Patch a cluster
|
@@ -376,11 +380,11 @@ end
|
|
376
380
|
| Name | Type | Description | Notes |
|
377
381
|
| ---- | ---- | ----------- | ----- |
|
378
382
|
| **cluster_id** | **String** | The unique ID of the cluster. | |
|
379
|
-
| **patch_cluster_request** | [**PatchClusterRequest**](PatchClusterRequest.md) |
|
383
|
+
| **patch_cluster_request** | [**PatchClusterRequest**](../models/PatchClusterRequest.md) | Part of the cluster which should be modified. | |
|
380
384
|
|
381
385
|
### Return type
|
382
386
|
|
383
|
-
[**ClusterResponse**](ClusterResponse.md)
|
387
|
+
[**ClusterResponse**](../models/ClusterResponse.md)
|
384
388
|
|
385
389
|
### Authorization
|
386
390
|
|
@@ -451,11 +455,11 @@ end
|
|
451
455
|
|
452
456
|
| Name | Type | Description | Notes |
|
453
457
|
| ---- | ---- | ----------- | ----- |
|
454
|
-
| **create_cluster_request** | [**CreateClusterRequest**](CreateClusterRequest.md) | The cluster to be created. | |
|
458
|
+
| **create_cluster_request** | [**CreateClusterRequest**](../models/CreateClusterRequest.md) | The cluster to be created. | |
|
455
459
|
|
456
460
|
### Return type
|
457
461
|
|
458
|
-
[**ClusterResponse**](ClusterResponse.md)
|
462
|
+
[**ClusterResponse**](../models/ClusterResponse.md)
|
459
463
|
|
460
464
|
### Authorization
|
461
465
|
|
@@ -527,7 +531,7 @@ This endpoint does not need any parameter.
|
|
527
531
|
|
528
532
|
### Return type
|
529
533
|
|
530
|
-
[**PostgresVersionList**](PostgresVersionList.md)
|
534
|
+
[**PostgresVersionList**](../models/PostgresVersionList.md)
|
531
535
|
|
532
536
|
### Authorization
|
533
537
|
|
data/docs/api/LogsApi.md
CHANGED
data/docs/api/MetadataApi.md
CHANGED
@@ -68,7 +68,7 @@ This endpoint does not need any parameter.
|
|
68
68
|
|
69
69
|
### Return type
|
70
70
|
|
71
|
-
[**APIVersion**](APIVersion.md)
|
71
|
+
[**APIVersion**](../models/APIVersion.md)
|
72
72
|
|
73
73
|
### Authorization
|
74
74
|
|
@@ -140,7 +140,7 @@ This endpoint does not need any parameter.
|
|
140
140
|
|
141
141
|
### Return type
|
142
142
|
|
143
|
-
[**Array<APIVersion>**](APIVersion.md)
|
143
|
+
[**Array<APIVersion>**](../models/APIVersion.md)
|
144
144
|
|
145
145
|
### Authorization
|
146
146
|
|
data/docs/api/RestoresApi.md
CHANGED
@@ -67,7 +67,7 @@ end
|
|
67
67
|
| Name | Type | Description | Notes |
|
68
68
|
| ---- | ---- | ----------- | ----- |
|
69
69
|
| **cluster_id** | **String** | The unique ID of the cluster. | |
|
70
|
-
| **create_restore_request** | [**CreateRestoreRequest**](CreateRestoreRequest.md) | The restore request to create. | |
|
70
|
+
| **create_restore_request** | [**CreateRestoreRequest**](../models/CreateRestoreRequest.md) | The restore request to create. | |
|
71
71
|
|
72
72
|
### Return type
|
73
73
|
|
@@ -7,9 +7,9 @@
|
|
7
7
|
| **type** | [**ResourceType**](ResourceType.md) | | [optional] |
|
8
8
|
| **id** | **String** | The unique ID of the resource. | [optional] |
|
9
9
|
| **items** | [**Array<BackupResponse>**](BackupResponse.md) | | [optional] |
|
10
|
-
| **offset** | **Integer** | The offset specified in the request (if none was specified, the default offset is 0)
|
11
|
-
| **limit** | **Integer** | The limit specified in the request (if none was specified,
|
12
|
-
| **
|
10
|
+
| **offset** | **Integer** | The offset specified in the request (if none was specified, the default offset is 0). | [optional][default to 0] |
|
11
|
+
| **limit** | **Integer** | The limit specified in the request (if none was specified, the default limit is 100). | [optional][default to 100] |
|
12
|
+
| **links** | [**PaginationLinks**](PaginationLinks.md) | | [optional] |
|
13
13
|
|
14
14
|
## Example
|
15
15
|
|
@@ -20,9 +20,9 @@ instance = IonoscloudDbaasPostgres::ClusterBackupList.new(
|
|
20
20
|
type: null,
|
21
21
|
id: 498ae72f-411f-11eb-9d07-046c59cc737e,
|
22
22
|
items: null,
|
23
|
-
offset:
|
24
|
-
limit:
|
25
|
-
|
23
|
+
offset: 200,
|
24
|
+
limit: 100,
|
25
|
+
links: null
|
26
26
|
)
|
27
27
|
```
|
28
28
|
|
data/docs/models/ClusterList.md
CHANGED
@@ -7,9 +7,9 @@
|
|
7
7
|
| **type** | [**ResourceType**](ResourceType.md) | | [optional] |
|
8
8
|
| **id** | **String** | The unique ID of the resource. | [optional] |
|
9
9
|
| **items** | [**Array<ClusterResponse>**](ClusterResponse.md) | | [optional] |
|
10
|
-
| **offset** | **Integer** | The offset specified in the request (if none was specified, the default offset is 0)
|
11
|
-
| **limit** | **Integer** | The limit specified in the request (if none was specified,
|
12
|
-
| **
|
10
|
+
| **offset** | **Integer** | The offset specified in the request (if none was specified, the default offset is 0). | [optional][default to 0] |
|
11
|
+
| **limit** | **Integer** | The limit specified in the request (if none was specified, the default limit is 100). | [optional][default to 100] |
|
12
|
+
| **links** | [**PaginationLinks**](PaginationLinks.md) | | [optional] |
|
13
13
|
|
14
14
|
## Example
|
15
15
|
|
@@ -20,9 +20,9 @@ instance = IonoscloudDbaasPostgres::ClusterList.new(
|
|
20
20
|
type: null,
|
21
21
|
id: 498ae72f-411f-11eb-9d07-046c59cc737e,
|
22
22
|
items: null,
|
23
|
-
offset:
|
24
|
-
limit:
|
25
|
-
|
23
|
+
offset: 200,
|
24
|
+
limit: 100,
|
25
|
+
links: null
|
26
26
|
)
|
27
27
|
```
|
28
28
|
|
@@ -7,6 +7,7 @@
|
|
7
7
|
| **display_name** | **String** | The friendly name of your cluster. | [optional] |
|
8
8
|
| **postgres_version** | **String** | The PostgreSQL version of your cluster. | [optional] |
|
9
9
|
| **location** | **String** | The physical location where the cluster will be created. This will be where all of your instances live. Property cannot be modified after datacenter creation. | [optional] |
|
10
|
+
| **dns_name** | **String** | The DNS name pointing to your cluster. | [optional] |
|
10
11
|
| **backup_location** | **String** | The S3 location where the backups will be stored. | [optional] |
|
11
12
|
| **instances** | **Integer** | The total number of instances in the cluster (one master and n-1 standbys). | [optional] |
|
12
13
|
| **ram** | **Integer** | The amount of memory per instance in megabytes. Has to be a multiple of 1024. | [optional] |
|
@@ -26,6 +27,7 @@ instance = IonoscloudDbaasPostgres::ClusterProperties.new(
|
|
26
27
|
display_name: PostgreSQL cluster,
|
27
28
|
postgres_version: 13,
|
28
29
|
location: de/fra,
|
30
|
+
dns_name: pg.example.com,
|
29
31
|
backup_location: de,
|
30
32
|
instances: 2,
|
31
33
|
ram: 2048,
|
data/docs/models/DBUser.md
CHANGED
data/docs/models/Pagination.md
CHANGED
@@ -4,9 +4,9 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **offset** | **Integer** | The offset specified in the request (if none was specified, the default offset is 0)
|
8
|
-
| **limit** | **Integer** | The limit specified in the request (if none was specified,
|
9
|
-
| **
|
7
|
+
| **offset** | **Integer** | The offset specified in the request (if none was specified, the default offset is 0). | [optional][default to 0] |
|
8
|
+
| **limit** | **Integer** | The limit specified in the request (if none was specified, the default limit is 100). | [optional][default to 100] |
|
9
|
+
| **links** | [**PaginationLinks**](PaginationLinks.md) | | [optional] |
|
10
10
|
|
11
11
|
## Example
|
12
12
|
|
@@ -14,9 +14,9 @@
|
|
14
14
|
require 'ionoscloud-dbaas-postgres'
|
15
15
|
|
16
16
|
instance = IonoscloudDbaasPostgres::Pagination.new(
|
17
|
-
offset:
|
18
|
-
limit:
|
19
|
-
|
17
|
+
offset: 200,
|
18
|
+
limit: 100,
|
19
|
+
links: null
|
20
20
|
)
|
21
21
|
```
|
22
22
|
|
@@ -1,9 +1,9 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
|
3
3
|
=begin
|
4
|
-
#IONOS DBaaS REST API
|
4
|
+
#IONOS DBaaS PostgreSQL REST API
|
5
5
|
|
6
|
-
#An enterprise-grade Database is provided as a Service (DBaaS) solution that can be managed through a browser-based \"Data Center Designer\" (DCD) tool or via an easy to use API. The API allows you to create additional database clusters or modify existing ones. It is designed to allow users to leverage the same power and flexibility found within the DCD visual tool. Both tools are consistent with their concepts and lend well to making the experience smooth and intuitive.
|
6
|
+
#An enterprise-grade Database is provided as a Service (DBaaS) solution that can be managed through a browser-based \"Data Center Designer\" (DCD) tool or via an easy to use API. The API allows you to create additional PostgreSQL database clusters or modify existing ones. It is designed to allow users to leverage the same power and flexibility found within the DCD visual tool. Both tools are consistent with their concepts and lend well to making the experience smooth and intuitive.
|
7
7
|
|
8
8
|
The version of the OpenAPI document: 1.0.0
|
9
9
|
|
@@ -22,8 +22,8 @@ Gem::Specification.new do |s|
|
|
22
22
|
s.authors = ["OpenAPI-Generator"]
|
23
23
|
s.email = [""]
|
24
24
|
s.homepage = "https://openapi-generator.tech"
|
25
|
-
s.summary = "IONOS DBaaS REST API Ruby Gem"
|
26
|
-
s.description = "An enterprise-grade Database is provided as a Service (DBaaS) solution that can be managed through a browser-based \"Data Center Designer\" (DCD) tool or via an easy to use API. The API allows you to create additional database clusters or modify existing ones. It is designed to allow users to leverage the same power and flexibility found within the DCD visual tool. Both tools are consistent with their concepts and lend well to making the experience smooth and intuitive. "
|
25
|
+
s.summary = "IONOS DBaaS PostgreSQL REST API Ruby Gem"
|
26
|
+
s.description = "An enterprise-grade Database is provided as a Service (DBaaS) solution that can be managed through a browser-based \"Data Center Designer\" (DCD) tool or via an easy to use API. The API allows you to create additional PostgreSQL database clusters or modify existing ones. It is designed to allow users to leverage the same power and flexibility found within the DCD visual tool. Both tools are consistent with their concepts and lend well to making the experience smooth and intuitive. "
|
27
27
|
s.license = "Unlicense"
|
28
28
|
s.required_ruby_version = ">= 2.4"
|
29
29
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
|
-
#IONOS DBaaS REST API
|
2
|
+
#IONOS DBaaS PostgreSQL REST API
|
3
3
|
|
4
|
-
#An enterprise-grade Database is provided as a Service (DBaaS) solution that can be managed through a browser-based \"Data Center Designer\" (DCD) tool or via an easy to use API. The API allows you to create additional database clusters or modify existing ones. It is designed to allow users to leverage the same power and flexibility found within the DCD visual tool. Both tools are consistent with their concepts and lend well to making the experience smooth and intuitive.
|
4
|
+
#An enterprise-grade Database is provided as a Service (DBaaS) solution that can be managed through a browser-based \"Data Center Designer\" (DCD) tool or via an easy to use API. The API allows you to create additional PostgreSQL database clusters or modify existing ones. It is designed to allow users to leverage the same power and flexibility found within the DCD visual tool. Both tools are consistent with their concepts and lend well to making the experience smooth and intuitive.
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
|
@@ -23,6 +23,8 @@ module IonoscloudDbaasPostgres
|
|
23
23
|
# Retrieves a list of all backups of the given PostgreSQL cluster.
|
24
24
|
# @param cluster_id [String] The unique ID of the cluster.
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
|
+
# @option opts [Integer] :limit The maximum number of elements to return. Use together with 'offset' for pagination. (default to 100)
|
27
|
+
# @option opts [Integer] :offset The first element to return. Use together with 'limit' for pagination. (default to 0)
|
26
28
|
# @return [ClusterBackupList]
|
27
29
|
def cluster_backups_get(cluster_id, opts = {})
|
28
30
|
data, _status_code, _headers = cluster_backups_get_with_http_info(cluster_id, opts)
|
@@ -33,6 +35,8 @@ module IonoscloudDbaasPostgres
|
|
33
35
|
# Retrieves a list of all backups of the given PostgreSQL cluster.
|
34
36
|
# @param cluster_id [String] The unique ID of the cluster.
|
35
37
|
# @param [Hash] opts the optional parameters
|
38
|
+
# @option opts [Integer] :limit The maximum number of elements to return. Use together with 'offset' for pagination.
|
39
|
+
# @option opts [Integer] :offset The first element to return. Use together with 'limit' for pagination.
|
36
40
|
# @return [Array<(ClusterBackupList, Integer, Hash)>] ClusterBackupList data, response status code and response headers
|
37
41
|
def cluster_backups_get_with_http_info(cluster_id, opts = {})
|
38
42
|
if @api_client.config.debugging
|
@@ -42,11 +46,21 @@ module IonoscloudDbaasPostgres
|
|
42
46
|
if @api_client.config.client_side_validation && cluster_id.nil?
|
43
47
|
fail ArgumentError, "Missing the required parameter 'cluster_id' when calling BackupsApi.cluster_backups_get"
|
44
48
|
end
|
49
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000
|
50
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling BackupsApi.cluster_backups_get, must be smaller than or equal to 1000.'
|
51
|
+
end
|
52
|
+
|
53
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
54
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling BackupsApi.cluster_backups_get, must be greater than or equal to 1.'
|
55
|
+
end
|
56
|
+
|
45
57
|
# resource path
|
46
58
|
local_var_path = '/clusters/{clusterId}/backups'.sub('{' + 'clusterId' + '}', CGI.escape(cluster_id.to_s))
|
47
59
|
|
48
60
|
# query parameters
|
49
61
|
query_params = opts[:query_params] || {}
|
62
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
63
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
50
64
|
|
51
65
|
# header parameters
|
52
66
|
header_params = opts[:header_params] || {}
|
@@ -148,6 +162,8 @@ module IonoscloudDbaasPostgres
|
|
148
162
|
# List cluster backups
|
149
163
|
# Retrieves a list of all PostgreSQL cluster backups.
|
150
164
|
# @param [Hash] opts the optional parameters
|
165
|
+
# @option opts [Integer] :limit The maximum number of elements to return. Use together with 'offset' for pagination. (default to 100)
|
166
|
+
# @option opts [Integer] :offset The first element to return. Use together with 'limit' for pagination. (default to 0)
|
151
167
|
# @return [ClusterBackupList]
|
152
168
|
def clusters_backups_get(opts = {})
|
153
169
|
data, _status_code, _headers = clusters_backups_get_with_http_info(opts)
|
@@ -157,16 +173,28 @@ module IonoscloudDbaasPostgres
|
|
157
173
|
# List cluster backups
|
158
174
|
# Retrieves a list of all PostgreSQL cluster backups.
|
159
175
|
# @param [Hash] opts the optional parameters
|
176
|
+
# @option opts [Integer] :limit The maximum number of elements to return. Use together with 'offset' for pagination.
|
177
|
+
# @option opts [Integer] :offset The first element to return. Use together with 'limit' for pagination.
|
160
178
|
# @return [Array<(ClusterBackupList, Integer, Hash)>] ClusterBackupList data, response status code and response headers
|
161
179
|
def clusters_backups_get_with_http_info(opts = {})
|
162
180
|
if @api_client.config.debugging
|
163
181
|
@api_client.config.logger.debug 'Calling API: BackupsApi.clusters_backups_get ...'
|
164
182
|
end
|
183
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000
|
184
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling BackupsApi.clusters_backups_get, must be smaller than or equal to 1000.'
|
185
|
+
end
|
186
|
+
|
187
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
188
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling BackupsApi.clusters_backups_get, must be greater than or equal to 1.'
|
189
|
+
end
|
190
|
+
|
165
191
|
# resource path
|
166
192
|
local_var_path = '/clusters/backups'
|
167
193
|
|
168
194
|
# query parameters
|
169
195
|
query_params = opts[:query_params] || {}
|
196
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
197
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
170
198
|
|
171
199
|
# header parameters
|
172
200
|
header_params = opts[:header_params] || {}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
|
-
#IONOS DBaaS REST API
|
2
|
+
#IONOS DBaaS PostgreSQL REST API
|
3
3
|
|
4
|
-
#An enterprise-grade Database is provided as a Service (DBaaS) solution that can be managed through a browser-based \"Data Center Designer\" (DCD) tool or via an easy to use API. The API allows you to create additional database clusters or modify existing ones. It is designed to allow users to leverage the same power and flexibility found within the DCD visual tool. Both tools are consistent with their concepts and lend well to making the experience smooth and intuitive.
|
4
|
+
#An enterprise-grade Database is provided as a Service (DBaaS) solution that can be managed through a browser-based \"Data Center Designer\" (DCD) tool or via an easy to use API. The API allows you to create additional PostgreSQL database clusters or modify existing ones. It is designed to allow users to leverage the same power and flexibility found within the DCD visual tool. Both tools are consistent with their concepts and lend well to making the experience smooth and intuitive.
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
|
@@ -211,6 +211,8 @@ module IonoscloudDbaasPostgres
|
|
211
211
|
# List clusters
|
212
212
|
# Retrieves a list of PostgreSQL clusters.
|
213
213
|
# @param [Hash] opts the optional parameters
|
214
|
+
# @option opts [Integer] :limit The maximum number of elements to return. Use together with 'offset' for pagination. (default to 100)
|
215
|
+
# @option opts [Integer] :offset The first element to return. Use together with 'limit' for pagination. (default to 0)
|
214
216
|
# @option opts [String] :filter_name Response filter to list only the PostgreSQL clusters that contain the specified name. The value is case insensitive and matched on the 'displayName' field.
|
215
217
|
# @return [ClusterList]
|
216
218
|
def clusters_get(opts = {})
|
@@ -221,17 +223,29 @@ module IonoscloudDbaasPostgres
|
|
221
223
|
# List clusters
|
222
224
|
# Retrieves a list of PostgreSQL clusters.
|
223
225
|
# @param [Hash] opts the optional parameters
|
226
|
+
# @option opts [Integer] :limit The maximum number of elements to return. Use together with 'offset' for pagination.
|
227
|
+
# @option opts [Integer] :offset The first element to return. Use together with 'limit' for pagination.
|
224
228
|
# @option opts [String] :filter_name Response filter to list only the PostgreSQL clusters that contain the specified name. The value is case insensitive and matched on the 'displayName' field.
|
225
229
|
# @return [Array<(ClusterList, Integer, Hash)>] ClusterList data, response status code and response headers
|
226
230
|
def clusters_get_with_http_info(opts = {})
|
227
231
|
if @api_client.config.debugging
|
228
232
|
@api_client.config.logger.debug 'Calling API: ClustersApi.clusters_get ...'
|
229
233
|
end
|
234
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000
|
235
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling ClustersApi.clusters_get, must be smaller than or equal to 1000.'
|
236
|
+
end
|
237
|
+
|
238
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
239
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling ClustersApi.clusters_get, must be greater than or equal to 1.'
|
240
|
+
end
|
241
|
+
|
230
242
|
# resource path
|
231
243
|
local_var_path = '/clusters'
|
232
244
|
|
233
245
|
# query parameters
|
234
246
|
query_params = opts[:query_params] || {}
|
247
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
248
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
235
249
|
query_params[:'filter.name'] = opts[:'filter_name'] if !opts[:'filter_name'].nil?
|
236
250
|
|
237
251
|
# header parameters
|
@@ -271,7 +285,7 @@ module IonoscloudDbaasPostgres
|
|
271
285
|
# Patch a cluster
|
272
286
|
# Patch attributes of a PostgreSQL cluster.
|
273
287
|
# @param cluster_id [String] The unique ID of the cluster.
|
274
|
-
# @param patch_cluster_request [PatchClusterRequest]
|
288
|
+
# @param patch_cluster_request [PatchClusterRequest] Part of the cluster which should be modified.
|
275
289
|
# @param [Hash] opts the optional parameters
|
276
290
|
# @return [ClusterResponse]
|
277
291
|
def clusters_patch(cluster_id, patch_cluster_request, opts = {})
|
@@ -282,7 +296,7 @@ module IonoscloudDbaasPostgres
|
|
282
296
|
# Patch a cluster
|
283
297
|
# Patch attributes of a PostgreSQL cluster.
|
284
298
|
# @param cluster_id [String] The unique ID of the cluster.
|
285
|
-
# @param patch_cluster_request [PatchClusterRequest]
|
299
|
+
# @param patch_cluster_request [PatchClusterRequest] Part of the cluster which should be modified.
|
286
300
|
# @param [Hash] opts the optional parameters
|
287
301
|
# @return [Array<(ClusterResponse, Integer, Hash)>] ClusterResponse data, response status code and response headers
|
288
302
|
def clusters_patch_with_http_info(cluster_id, patch_cluster_request, opts = {})
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
|
-
#IONOS DBaaS REST API
|
2
|
+
#IONOS DBaaS PostgreSQL REST API
|
3
3
|
|
4
|
-
#An enterprise-grade Database is provided as a Service (DBaaS) solution that can be managed through a browser-based \"Data Center Designer\" (DCD) tool or via an easy to use API. The API allows you to create additional database clusters or modify existing ones. It is designed to allow users to leverage the same power and flexibility found within the DCD visual tool. Both tools are consistent with their concepts and lend well to making the experience smooth and intuitive.
|
4
|
+
#An enterprise-grade Database is provided as a Service (DBaaS) solution that can be managed through a browser-based \"Data Center Designer\" (DCD) tool or via an easy to use API. The API allows you to create additional PostgreSQL database clusters or modify existing ones. It is designed to allow users to leverage the same power and flexibility found within the DCD visual tool. Both tools are consistent with their concepts and lend well to making the experience smooth and intuitive.
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
|
-
#IONOS DBaaS REST API
|
2
|
+
#IONOS DBaaS PostgreSQL REST API
|
3
3
|
|
4
|
-
#An enterprise-grade Database is provided as a Service (DBaaS) solution that can be managed through a browser-based \"Data Center Designer\" (DCD) tool or via an easy to use API. The API allows you to create additional database clusters or modify existing ones. It is designed to allow users to leverage the same power and flexibility found within the DCD visual tool. Both tools are consistent with their concepts and lend well to making the experience smooth and intuitive.
|
4
|
+
#An enterprise-grade Database is provided as a Service (DBaaS) solution that can be managed through a browser-based \"Data Center Designer\" (DCD) tool or via an easy to use API. The API allows you to create additional PostgreSQL database clusters or modify existing ones. It is designed to allow users to leverage the same power and flexibility found within the DCD visual tool. Both tools are consistent with their concepts and lend well to making the experience smooth and intuitive.
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
|
-
#IONOS DBaaS REST API
|
2
|
+
#IONOS DBaaS PostgreSQL REST API
|
3
3
|
|
4
|
-
#An enterprise-grade Database is provided as a Service (DBaaS) solution that can be managed through a browser-based \"Data Center Designer\" (DCD) tool or via an easy to use API. The API allows you to create additional database clusters or modify existing ones. It is designed to allow users to leverage the same power and flexibility found within the DCD visual tool. Both tools are consistent with their concepts and lend well to making the experience smooth and intuitive.
|
4
|
+
#An enterprise-grade Database is provided as a Service (DBaaS) solution that can be managed through a browser-based \"Data Center Designer\" (DCD) tool or via an easy to use API. The API allows you to create additional PostgreSQL database clusters or modify existing ones. It is designed to allow users to leverage the same power and flexibility found within the DCD visual tool. Both tools are consistent with their concepts and lend well to making the experience smooth and intuitive.
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
|
-
#IONOS DBaaS REST API
|
2
|
+
#IONOS DBaaS PostgreSQL REST API
|
3
3
|
|
4
|
-
#An enterprise-grade Database is provided as a Service (DBaaS) solution that can be managed through a browser-based \"Data Center Designer\" (DCD) tool or via an easy to use API. The API allows you to create additional database clusters or modify existing ones. It is designed to allow users to leverage the same power and flexibility found within the DCD visual tool. Both tools are consistent with their concepts and lend well to making the experience smooth and intuitive.
|
4
|
+
#An enterprise-grade Database is provided as a Service (DBaaS) solution that can be managed through a browser-based \"Data Center Designer\" (DCD) tool or via an easy to use API. The API allows you to create additional PostgreSQL database clusters or modify existing ones. It is designed to allow users to leverage the same power and flexibility found within the DCD visual tool. Both tools are consistent with their concepts and lend well to making the experience smooth and intuitive.
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
|
@@ -38,7 +38,7 @@ module IonoscloudDbaasPostgres
|
|
38
38
|
# @option config [Configuration] Configuration for initializing the object, default to Configuration.default
|
39
39
|
def initialize(config = Configuration.default)
|
40
40
|
@config = config
|
41
|
-
@user_agent = "sdk-ruby-dbaas-postgres/v1.
|
41
|
+
@user_agent = "sdk-ruby-dbaas-postgres/v1.1.1"
|
42
42
|
@default_headers = {
|
43
43
|
'Content-Type' => 'application/json',
|
44
44
|
'User-Agent' => @user_agent
|