ionoscloud-dbaas-postgres 1.0.2 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/docs/CHANGELOG.md +26 -0
- data/docs/api/BackupsApi.md +3 -3
- data/docs/api/ClustersApi.md +10 -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/ClusterBackup.md +5 -1
- data/docs/models/ClusterProperties.md +2 -0
- data/docs/models/DBUser.md +2 -2
- data/docs/models/ErrorResponse.md +1 -1
- data/docs/models/MaintenanceWindow.md +1 -1
- data/ionoscloud-dbaas-postgres.gemspec +5 -5
- data/lib/ionoscloud-dbaas-postgres/api/backups_api.rb +3 -3
- data/lib/ionoscloud-dbaas-postgres/api/clusters_api.rb +5 -5
- data/lib/ionoscloud-dbaas-postgres/api/logs_api.rb +3 -3
- data/lib/ionoscloud-dbaas-postgres/api/metadata_api.rb +3 -3
- data/lib/ionoscloud-dbaas-postgres/api/restores_api.rb +3 -3
- data/lib/ionoscloud-dbaas-postgres/api_client.rb +4 -4
- data/lib/ionoscloud-dbaas-postgres/api_error.rb +3 -3
- data/lib/ionoscloud-dbaas-postgres/configuration.rb +3 -3
- data/lib/ionoscloud-dbaas-postgres/models/api_version.rb +21 -5
- data/lib/ionoscloud-dbaas-postgres/models/backup_metadata.rb +21 -5
- data/lib/ionoscloud-dbaas-postgres/models/backup_response.rb +40 -8
- data/lib/ionoscloud-dbaas-postgres/models/cluster_backup.rb +88 -12
- data/lib/ionoscloud-dbaas-postgres/models/cluster_backup_list.rb +58 -10
- data/lib/ionoscloud-dbaas-postgres/models/cluster_backup_list_all_of.rb +30 -6
- data/lib/ionoscloud-dbaas-postgres/models/cluster_list.rb +58 -10
- data/lib/ionoscloud-dbaas-postgres/models/cluster_list_all_of.rb +30 -6
- data/lib/ionoscloud-dbaas-postgres/models/cluster_logs.rb +12 -4
- data/lib/ionoscloud-dbaas-postgres/models/cluster_logs_instances.rb +21 -5
- data/lib/ionoscloud-dbaas-postgres/models/cluster_logs_messages.rb +21 -5
- data/lib/ionoscloud-dbaas-postgres/models/cluster_properties.rb +131 -17
- data/lib/ionoscloud-dbaas-postgres/models/cluster_response.rb +40 -8
- data/lib/ionoscloud-dbaas-postgres/models/connection.rb +30 -6
- data/lib/ionoscloud-dbaas-postgres/models/create_cluster_properties.rb +129 -17
- data/lib/ionoscloud-dbaas-postgres/models/create_cluster_request.rb +21 -5
- data/lib/ionoscloud-dbaas-postgres/models/create_restore_request.rb +21 -5
- data/lib/ionoscloud-dbaas-postgres/models/day_of_the_week.rb +3 -3
- data/lib/ionoscloud-dbaas-postgres/models/db_user.rb +41 -6
- data/lib/ionoscloud-dbaas-postgres/models/error_message.rb +21 -5
- data/lib/ionoscloud-dbaas-postgres/models/error_response.rb +22 -6
- data/lib/ionoscloud-dbaas-postgres/models/maintenance_window.rb +23 -6
- data/lib/ionoscloud-dbaas-postgres/models/metadata.rb +67 -11
- data/lib/ionoscloud-dbaas-postgres/models/pagination.rb +30 -6
- data/lib/ionoscloud-dbaas-postgres/models/pagination_links.rb +30 -6
- data/lib/ionoscloud-dbaas-postgres/models/patch_cluster_properties.rb +76 -12
- data/lib/ionoscloud-dbaas-postgres/models/patch_cluster_request.rb +22 -6
- data/lib/ionoscloud-dbaas-postgres/models/postgres_version_list.rb +13 -5
- data/lib/ionoscloud-dbaas-postgres/models/postgres_version_list_data.rb +12 -4
- data/lib/ionoscloud-dbaas-postgres/models/resource_type.rb +3 -3
- data/lib/ionoscloud-dbaas-postgres/models/state.rb +3 -3
- data/lib/ionoscloud-dbaas-postgres/models/storage_type.rb +3 -3
- data/lib/ionoscloud-dbaas-postgres/models/synchronization_mode.rb +3 -3
- data/lib/ionoscloud-dbaas-postgres/version.rb +4 -4
- data/lib/ionoscloud-dbaas-postgres.rb +3 -3
- data/spec/api_client_spec.rb +3 -3
- data/spec/configuration_spec.rb +3 -3
- data/spec/spec_helper.rb +3 -3
- metadata +11 -10
@@ -1,9 +1,9 @@
|
|
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
|
-
The version of the OpenAPI document:
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.2.1-SNAPSHOT
|
@@ -16,58 +16,86 @@ require 'time'
|
|
16
16
|
module IonoscloudDbaasPostgres
|
17
17
|
# Properties with all data needed to create a new PostgreSQL cluster.
|
18
18
|
class CreateClusterProperties
|
19
|
+
|
19
20
|
# The PostgreSQL version of your cluster.
|
20
21
|
attr_accessor :postgres_version
|
21
22
|
|
23
|
+
|
22
24
|
# The total number of instances in the cluster (one master and n-1 standbys).
|
23
25
|
attr_accessor :instances
|
24
26
|
|
27
|
+
|
25
28
|
# The number of CPU cores per instance.
|
26
29
|
attr_accessor :cores
|
27
30
|
|
31
|
+
|
28
32
|
# The amount of memory per instance in megabytes. Has to be a multiple of 1024.
|
29
33
|
attr_accessor :ram
|
30
34
|
|
35
|
+
|
31
36
|
# The amount of storage per instance in megabytes.
|
32
37
|
attr_accessor :storage_size
|
33
38
|
|
39
|
+
|
34
40
|
attr_accessor :storage_type
|
35
41
|
|
42
|
+
|
36
43
|
attr_accessor :connections
|
37
44
|
|
45
|
+
|
38
46
|
# 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.
|
39
47
|
attr_accessor :location
|
40
48
|
|
49
|
+
|
41
50
|
# The S3 location where the backups will be stored.
|
42
51
|
attr_accessor :backup_location
|
43
52
|
|
53
|
+
|
44
54
|
# The friendly name of your cluster.
|
45
55
|
attr_accessor :display_name
|
46
56
|
|
57
|
+
|
47
58
|
attr_accessor :maintenance_window
|
48
59
|
|
60
|
+
|
49
61
|
attr_accessor :credentials
|
50
62
|
|
63
|
+
|
51
64
|
attr_accessor :synchronization_mode
|
52
65
|
|
66
|
+
|
53
67
|
attr_accessor :from_backup
|
54
68
|
|
55
69
|
# Attribute mapping from ruby-style variable name to JSON key.
|
56
70
|
def self.attribute_map
|
57
71
|
{
|
72
|
+
|
58
73
|
:'postgres_version' => :'postgresVersion',
|
74
|
+
|
59
75
|
:'instances' => :'instances',
|
76
|
+
|
60
77
|
:'cores' => :'cores',
|
78
|
+
|
61
79
|
:'ram' => :'ram',
|
80
|
+
|
62
81
|
:'storage_size' => :'storageSize',
|
82
|
+
|
63
83
|
:'storage_type' => :'storageType',
|
84
|
+
|
64
85
|
:'connections' => :'connections',
|
86
|
+
|
65
87
|
:'location' => :'location',
|
88
|
+
|
66
89
|
:'backup_location' => :'backupLocation',
|
90
|
+
|
67
91
|
:'display_name' => :'displayName',
|
92
|
+
|
68
93
|
:'maintenance_window' => :'maintenanceWindow',
|
94
|
+
|
69
95
|
:'credentials' => :'credentials',
|
96
|
+
|
70
97
|
:'synchronization_mode' => :'synchronizationMode',
|
98
|
+
|
71
99
|
:'from_backup' => :'fromBackup'
|
72
100
|
}
|
73
101
|
end
|
@@ -80,19 +108,33 @@ module IonoscloudDbaasPostgres
|
|
80
108
|
# Attribute type mapping.
|
81
109
|
def self.openapi_types
|
82
110
|
{
|
111
|
+
|
83
112
|
:'postgres_version' => :'String',
|
113
|
+
|
84
114
|
:'instances' => :'Integer',
|
115
|
+
|
85
116
|
:'cores' => :'Integer',
|
117
|
+
|
86
118
|
:'ram' => :'Integer',
|
119
|
+
|
87
120
|
:'storage_size' => :'Integer',
|
121
|
+
|
88
122
|
:'storage_type' => :'StorageType',
|
123
|
+
|
89
124
|
:'connections' => :'Array<Connection>',
|
125
|
+
|
90
126
|
:'location' => :'String',
|
127
|
+
|
91
128
|
:'backup_location' => :'String',
|
129
|
+
|
92
130
|
:'display_name' => :'String',
|
131
|
+
|
93
132
|
:'maintenance_window' => :'MaintenanceWindow',
|
133
|
+
|
94
134
|
:'credentials' => :'DBUser',
|
135
|
+
|
95
136
|
:'synchronization_mode' => :'SynchronizationMode',
|
137
|
+
|
96
138
|
:'from_backup' => :'CreateRestoreRequest'
|
97
139
|
}
|
98
140
|
end
|
@@ -100,6 +142,20 @@ module IonoscloudDbaasPostgres
|
|
100
142
|
# List of attributes with nullable: true
|
101
143
|
def self.openapi_nullable
|
102
144
|
Set.new([
|
145
|
+
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
|
158
|
+
|
103
159
|
])
|
104
160
|
end
|
105
161
|
|
@@ -117,59 +173,73 @@ module IonoscloudDbaasPostgres
|
|
117
173
|
end
|
118
174
|
h[k.to_sym] = v
|
119
175
|
}
|
176
|
+
|
120
177
|
|
121
178
|
if attributes.key?(:'postgres_version')
|
122
179
|
self.postgres_version = attributes[:'postgres_version']
|
123
180
|
end
|
124
181
|
|
182
|
+
|
125
183
|
if attributes.key?(:'instances')
|
126
184
|
self.instances = attributes[:'instances']
|
127
185
|
end
|
128
186
|
|
187
|
+
|
129
188
|
if attributes.key?(:'cores')
|
130
189
|
self.cores = attributes[:'cores']
|
131
190
|
end
|
132
191
|
|
192
|
+
|
133
193
|
if attributes.key?(:'ram')
|
134
194
|
self.ram = attributes[:'ram']
|
135
195
|
end
|
136
196
|
|
197
|
+
|
137
198
|
if attributes.key?(:'storage_size')
|
138
199
|
self.storage_size = attributes[:'storage_size']
|
139
200
|
end
|
140
201
|
|
202
|
+
|
141
203
|
if attributes.key?(:'storage_type')
|
142
204
|
self.storage_type = attributes[:'storage_type']
|
143
205
|
end
|
144
206
|
|
207
|
+
|
145
208
|
if attributes.key?(:'connections') && (value = attributes[:'connections']).is_a?(Array)
|
146
209
|
self.connections = value
|
147
210
|
end
|
148
211
|
|
212
|
+
|
149
213
|
if attributes.key?(:'location')
|
150
214
|
self.location = attributes[:'location']
|
151
215
|
end
|
152
216
|
|
217
|
+
|
153
218
|
if attributes.key?(:'backup_location')
|
154
219
|
self.backup_location = attributes[:'backup_location']
|
155
220
|
end
|
156
221
|
|
222
|
+
|
157
223
|
if attributes.key?(:'display_name')
|
158
224
|
self.display_name = attributes[:'display_name']
|
159
225
|
end
|
160
226
|
|
227
|
+
|
161
228
|
if attributes.key?(:'maintenance_window')
|
162
229
|
self.maintenance_window = attributes[:'maintenance_window']
|
163
230
|
end
|
164
231
|
|
232
|
+
|
165
233
|
if attributes.key?(:'credentials')
|
166
234
|
self.credentials = attributes[:'credentials']
|
167
235
|
end
|
168
236
|
|
237
|
+
|
169
238
|
if attributes.key?(:'synchronization_mode')
|
170
239
|
self.synchronization_mode = attributes[:'synchronization_mode']
|
171
240
|
end
|
172
241
|
|
242
|
+
|
173
243
|
if attributes.key?(:'from_backup')
|
174
244
|
self.from_backup = attributes[:'from_backup']
|
175
245
|
end
|
@@ -179,10 +249,12 @@ module IonoscloudDbaasPostgres
|
|
179
249
|
# @return Array for valid properties with the reasons
|
180
250
|
def list_invalid_properties
|
181
251
|
invalid_properties = Array.new
|
252
|
+
|
182
253
|
if @postgres_version.nil?
|
183
254
|
invalid_properties.push('invalid value for "postgres_version", postgres_version cannot be nil.')
|
184
255
|
end
|
185
256
|
|
257
|
+
|
186
258
|
if @instances.nil?
|
187
259
|
invalid_properties.push('invalid value for "instances", instances cannot be nil.')
|
188
260
|
end
|
@@ -195,6 +267,7 @@ module IonoscloudDbaasPostgres
|
|
195
267
|
invalid_properties.push('invalid value for "instances", must be greater than or equal to 1.')
|
196
268
|
end
|
197
269
|
|
270
|
+
|
198
271
|
if @cores.nil?
|
199
272
|
invalid_properties.push('invalid value for "cores", cores cannot be nil.')
|
200
273
|
end
|
@@ -203,6 +276,7 @@ module IonoscloudDbaasPostgres
|
|
203
276
|
invalid_properties.push('invalid value for "cores", must be greater than or equal to 1.')
|
204
277
|
end
|
205
278
|
|
279
|
+
|
206
280
|
if @ram.nil?
|
207
281
|
invalid_properties.push('invalid value for "ram", ram cannot be nil.')
|
208
282
|
end
|
@@ -211,6 +285,7 @@ module IonoscloudDbaasPostgres
|
|
211
285
|
invalid_properties.push('invalid value for "ram", must be greater than or equal to 2048.')
|
212
286
|
end
|
213
287
|
|
288
|
+
|
214
289
|
if @storage_size.nil?
|
215
290
|
invalid_properties.push('invalid value for "storage_size", storage_size cannot be nil.')
|
216
291
|
end
|
@@ -223,10 +298,12 @@ module IonoscloudDbaasPostgres
|
|
223
298
|
invalid_properties.push('invalid value for "storage_size", must be greater than or equal to 2048.')
|
224
299
|
end
|
225
300
|
|
301
|
+
|
226
302
|
if @storage_type.nil?
|
227
303
|
invalid_properties.push('invalid value for "storage_type", storage_type cannot be nil.')
|
228
304
|
end
|
229
305
|
|
306
|
+
|
230
307
|
if @connections.nil?
|
231
308
|
invalid_properties.push('invalid value for "connections", connections cannot be nil.')
|
232
309
|
end
|
@@ -239,50 +316,73 @@ module IonoscloudDbaasPostgres
|
|
239
316
|
invalid_properties.push('invalid value for "connections", number of items must be greater than or equal to 1.')
|
240
317
|
end
|
241
318
|
|
319
|
+
|
242
320
|
if @location.nil?
|
243
321
|
invalid_properties.push('invalid value for "location", location cannot be nil.')
|
244
322
|
end
|
245
323
|
|
324
|
+
|
325
|
+
|
246
326
|
if @display_name.nil?
|
247
327
|
invalid_properties.push('invalid value for "display_name", display_name cannot be nil.')
|
248
328
|
end
|
249
329
|
|
330
|
+
|
331
|
+
|
250
332
|
if @credentials.nil?
|
251
333
|
invalid_properties.push('invalid value for "credentials", credentials cannot be nil.')
|
252
334
|
end
|
253
335
|
|
336
|
+
|
254
337
|
if @synchronization_mode.nil?
|
255
338
|
invalid_properties.push('invalid value for "synchronization_mode", synchronization_mode cannot be nil.')
|
256
339
|
end
|
257
340
|
|
341
|
+
|
258
342
|
invalid_properties
|
259
343
|
end
|
260
344
|
|
261
345
|
# Check to see if the all the properties in the model are valid
|
262
346
|
# @return true if the model is valid
|
263
347
|
def valid?
|
348
|
+
|
264
349
|
return false if @postgres_version.nil?
|
350
|
+
|
265
351
|
return false if @instances.nil?
|
266
352
|
return false if @instances > 5
|
267
353
|
return false if @instances < 1
|
354
|
+
|
268
355
|
return false if @cores.nil?
|
269
356
|
return false if @cores < 1
|
357
|
+
|
270
358
|
return false if @ram.nil?
|
271
359
|
return false if @ram < 2048
|
360
|
+
|
272
361
|
return false if @storage_size.nil?
|
273
362
|
return false if @storage_size > 2097152
|
274
363
|
return false if @storage_size < 2048
|
364
|
+
|
275
365
|
return false if @storage_type.nil?
|
366
|
+
|
276
367
|
return false if @connections.nil?
|
277
368
|
return false if @connections.length > 1
|
278
369
|
return false if @connections.length < 1
|
370
|
+
|
279
371
|
return false if @location.nil?
|
372
|
+
|
373
|
+
|
280
374
|
return false if @display_name.nil?
|
375
|
+
|
376
|
+
|
281
377
|
return false if @credentials.nil?
|
378
|
+
|
282
379
|
return false if @synchronization_mode.nil?
|
380
|
+
|
283
381
|
true
|
284
382
|
end
|
285
383
|
|
384
|
+
|
385
|
+
|
286
386
|
# Custom attribute writer method with validation
|
287
387
|
# @param [Object] instances Value to be assigned
|
288
388
|
def instances=(instances)
|
@@ -301,6 +401,7 @@ module IonoscloudDbaasPostgres
|
|
301
401
|
@instances = instances
|
302
402
|
end
|
303
403
|
|
404
|
+
|
304
405
|
# Custom attribute writer method with validation
|
305
406
|
# @param [Object] cores Value to be assigned
|
306
407
|
def cores=(cores)
|
@@ -315,6 +416,7 @@ module IonoscloudDbaasPostgres
|
|
315
416
|
@cores = cores
|
316
417
|
end
|
317
418
|
|
419
|
+
|
318
420
|
# Custom attribute writer method with validation
|
319
421
|
# @param [Object] ram Value to be assigned
|
320
422
|
def ram=(ram)
|
@@ -329,6 +431,7 @@ module IonoscloudDbaasPostgres
|
|
329
431
|
@ram = ram
|
330
432
|
end
|
331
433
|
|
434
|
+
|
332
435
|
# Custom attribute writer method with validation
|
333
436
|
# @param [Object] storage_size Value to be assigned
|
334
437
|
def storage_size=(storage_size)
|
@@ -347,6 +450,8 @@ module IonoscloudDbaasPostgres
|
|
347
450
|
@storage_size = storage_size
|
348
451
|
end
|
349
452
|
|
453
|
+
|
454
|
+
|
350
455
|
# Custom attribute writer method with validation
|
351
456
|
# @param [Object] connections Value to be assigned
|
352
457
|
def connections=(connections)
|
@@ -365,25 +470,32 @@ module IonoscloudDbaasPostgres
|
|
365
470
|
@connections = connections
|
366
471
|
end
|
367
472
|
|
473
|
+
|
474
|
+
|
475
|
+
|
476
|
+
|
477
|
+
|
478
|
+
|
479
|
+
|
368
480
|
# Checks equality by comparing each attribute.
|
369
481
|
# @param [Object] Object to be compared
|
370
482
|
def ==(o)
|
371
483
|
return true if self.equal?(o)
|
372
484
|
self.class == o.class &&
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
485
|
+
postgres_version == o.postgres_version &&
|
486
|
+
instances == o.instances &&
|
487
|
+
cores == o.cores &&
|
488
|
+
ram == o.ram &&
|
489
|
+
storage_size == o.storage_size &&
|
490
|
+
storage_type == o.storage_type &&
|
491
|
+
connections == o.connections &&
|
492
|
+
location == o.location &&
|
493
|
+
backup_location == o.backup_location &&
|
494
|
+
display_name == o.display_name &&
|
495
|
+
maintenance_window == o.maintenance_window &&
|
496
|
+
credentials == o.credentials &&
|
497
|
+
synchronization_mode == o.synchronization_mode &&
|
498
|
+
from_backup == o.from_backup
|
387
499
|
end
|
388
500
|
|
389
501
|
# @see the `==` method
|
@@ -1,9 +1,9 @@
|
|
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
|
-
The version of the OpenAPI document:
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.2.1-SNAPSHOT
|
@@ -16,14 +16,18 @@ require 'time'
|
|
16
16
|
module IonoscloudDbaasPostgres
|
17
17
|
# Request payload with all data needed to create a new PostgreSQL cluster.
|
18
18
|
class CreateClusterRequest
|
19
|
+
|
19
20
|
attr_accessor :metadata
|
20
21
|
|
22
|
+
|
21
23
|
attr_accessor :properties
|
22
24
|
|
23
25
|
# Attribute mapping from ruby-style variable name to JSON key.
|
24
26
|
def self.attribute_map
|
25
27
|
{
|
28
|
+
|
26
29
|
:'metadata' => :'metadata',
|
30
|
+
|
27
31
|
:'properties' => :'properties'
|
28
32
|
}
|
29
33
|
end
|
@@ -36,7 +40,9 @@ module IonoscloudDbaasPostgres
|
|
36
40
|
# Attribute type mapping.
|
37
41
|
def self.openapi_types
|
38
42
|
{
|
43
|
+
|
39
44
|
:'metadata' => :'Metadata',
|
45
|
+
|
40
46
|
:'properties' => :'CreateClusterProperties'
|
41
47
|
}
|
42
48
|
end
|
@@ -44,6 +50,8 @@ module IonoscloudDbaasPostgres
|
|
44
50
|
# List of attributes with nullable: true
|
45
51
|
def self.openapi_nullable
|
46
52
|
Set.new([
|
53
|
+
|
54
|
+
|
47
55
|
])
|
48
56
|
end
|
49
57
|
|
@@ -61,11 +69,13 @@ module IonoscloudDbaasPostgres
|
|
61
69
|
end
|
62
70
|
h[k.to_sym] = v
|
63
71
|
}
|
72
|
+
|
64
73
|
|
65
74
|
if attributes.key?(:'metadata')
|
66
75
|
self.metadata = attributes[:'metadata']
|
67
76
|
end
|
68
77
|
|
78
|
+
|
69
79
|
if attributes.key?(:'properties')
|
70
80
|
self.properties = attributes[:'properties']
|
71
81
|
end
|
@@ -75,22 +85,28 @@ module IonoscloudDbaasPostgres
|
|
75
85
|
# @return Array for valid properties with the reasons
|
76
86
|
def list_invalid_properties
|
77
87
|
invalid_properties = Array.new
|
88
|
+
|
89
|
+
|
78
90
|
invalid_properties
|
79
91
|
end
|
80
92
|
|
81
93
|
# Check to see if the all the properties in the model are valid
|
82
94
|
# @return true if the model is valid
|
83
95
|
def valid?
|
96
|
+
|
97
|
+
|
84
98
|
true
|
85
99
|
end
|
86
100
|
|
101
|
+
|
102
|
+
|
87
103
|
# Checks equality by comparing each attribute.
|
88
104
|
# @param [Object] Object to be compared
|
89
105
|
def ==(o)
|
90
106
|
return true if self.equal?(o)
|
91
107
|
self.class == o.class &&
|
92
|
-
|
93
|
-
|
108
|
+
metadata == o.metadata &&
|
109
|
+
properties == o.properties
|
94
110
|
end
|
95
111
|
|
96
112
|
# @see the `==` method
|
@@ -1,9 +1,9 @@
|
|
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
|
-
The version of the OpenAPI document:
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.2.1-SNAPSHOT
|
@@ -16,16 +16,20 @@ require 'time'
|
|
16
16
|
module IonoscloudDbaasPostgres
|
17
17
|
# The restore request.
|
18
18
|
class CreateRestoreRequest
|
19
|
+
|
19
20
|
# The unique ID of the backup you want to restore.
|
20
21
|
attr_accessor :backup_id
|
21
22
|
|
23
|
+
|
22
24
|
# If this value is supplied as ISO 8601 timestamp, the backup will be replayed up until the given timestamp. If empty, the backup will be applied completely.
|
23
25
|
attr_accessor :recovery_target_time
|
24
26
|
|
25
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
26
28
|
def self.attribute_map
|
27
29
|
{
|
30
|
+
|
28
31
|
:'backup_id' => :'backupId',
|
32
|
+
|
29
33
|
:'recovery_target_time' => :'recoveryTargetTime'
|
30
34
|
}
|
31
35
|
end
|
@@ -38,7 +42,9 @@ module IonoscloudDbaasPostgres
|
|
38
42
|
# Attribute type mapping.
|
39
43
|
def self.openapi_types
|
40
44
|
{
|
45
|
+
|
41
46
|
:'backup_id' => :'String',
|
47
|
+
|
42
48
|
:'recovery_target_time' => :'Time'
|
43
49
|
}
|
44
50
|
end
|
@@ -46,6 +52,8 @@ module IonoscloudDbaasPostgres
|
|
46
52
|
# List of attributes with nullable: true
|
47
53
|
def self.openapi_nullable
|
48
54
|
Set.new([
|
55
|
+
|
56
|
+
|
49
57
|
])
|
50
58
|
end
|
51
59
|
|
@@ -63,11 +71,13 @@ module IonoscloudDbaasPostgres
|
|
63
71
|
end
|
64
72
|
h[k.to_sym] = v
|
65
73
|
}
|
74
|
+
|
66
75
|
|
67
76
|
if attributes.key?(:'backup_id')
|
68
77
|
self.backup_id = attributes[:'backup_id']
|
69
78
|
end
|
70
79
|
|
80
|
+
|
71
81
|
if attributes.key?(:'recovery_target_time')
|
72
82
|
self.recovery_target_time = attributes[:'recovery_target_time']
|
73
83
|
end
|
@@ -77,27 +87,33 @@ module IonoscloudDbaasPostgres
|
|
77
87
|
# @return Array for valid properties with the reasons
|
78
88
|
def list_invalid_properties
|
79
89
|
invalid_properties = Array.new
|
90
|
+
|
80
91
|
if @backup_id.nil?
|
81
92
|
invalid_properties.push('invalid value for "backup_id", backup_id cannot be nil.')
|
82
93
|
end
|
83
94
|
|
95
|
+
|
84
96
|
invalid_properties
|
85
97
|
end
|
86
98
|
|
87
99
|
# Check to see if the all the properties in the model are valid
|
88
100
|
# @return true if the model is valid
|
89
101
|
def valid?
|
102
|
+
|
90
103
|
return false if @backup_id.nil?
|
104
|
+
|
91
105
|
true
|
92
106
|
end
|
93
107
|
|
108
|
+
|
109
|
+
|
94
110
|
# Checks equality by comparing each attribute.
|
95
111
|
# @param [Object] Object to be compared
|
96
112
|
def ==(o)
|
97
113
|
return true if self.equal?(o)
|
98
114
|
self.class == o.class &&
|
99
|
-
|
100
|
-
|
115
|
+
backup_id == o.backup_id &&
|
116
|
+
recovery_target_time == o.recovery_target_time
|
101
117
|
end
|
102
118
|
|
103
119
|
# @see the `==` method
|
@@ -1,9 +1,9 @@
|
|
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
|
-
The version of the OpenAPI document:
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.2.1-SNAPSHOT
|