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.
Files changed (61) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +2 -2
  3. data/docs/CHANGELOG.md +26 -0
  4. data/docs/api/BackupsApi.md +3 -3
  5. data/docs/api/ClustersApi.md +10 -10
  6. data/docs/api/LogsApi.md +1 -1
  7. data/docs/api/MetadataApi.md +2 -2
  8. data/docs/api/RestoresApi.md +1 -1
  9. data/docs/models/ClusterBackup.md +5 -1
  10. data/docs/models/ClusterProperties.md +2 -0
  11. data/docs/models/DBUser.md +2 -2
  12. data/docs/models/ErrorResponse.md +1 -1
  13. data/docs/models/MaintenanceWindow.md +1 -1
  14. data/ionoscloud-dbaas-postgres.gemspec +5 -5
  15. data/lib/ionoscloud-dbaas-postgres/api/backups_api.rb +3 -3
  16. data/lib/ionoscloud-dbaas-postgres/api/clusters_api.rb +5 -5
  17. data/lib/ionoscloud-dbaas-postgres/api/logs_api.rb +3 -3
  18. data/lib/ionoscloud-dbaas-postgres/api/metadata_api.rb +3 -3
  19. data/lib/ionoscloud-dbaas-postgres/api/restores_api.rb +3 -3
  20. data/lib/ionoscloud-dbaas-postgres/api_client.rb +4 -4
  21. data/lib/ionoscloud-dbaas-postgres/api_error.rb +3 -3
  22. data/lib/ionoscloud-dbaas-postgres/configuration.rb +3 -3
  23. data/lib/ionoscloud-dbaas-postgres/models/api_version.rb +21 -5
  24. data/lib/ionoscloud-dbaas-postgres/models/backup_metadata.rb +21 -5
  25. data/lib/ionoscloud-dbaas-postgres/models/backup_response.rb +40 -8
  26. data/lib/ionoscloud-dbaas-postgres/models/cluster_backup.rb +88 -12
  27. data/lib/ionoscloud-dbaas-postgres/models/cluster_backup_list.rb +58 -10
  28. data/lib/ionoscloud-dbaas-postgres/models/cluster_backup_list_all_of.rb +30 -6
  29. data/lib/ionoscloud-dbaas-postgres/models/cluster_list.rb +58 -10
  30. data/lib/ionoscloud-dbaas-postgres/models/cluster_list_all_of.rb +30 -6
  31. data/lib/ionoscloud-dbaas-postgres/models/cluster_logs.rb +12 -4
  32. data/lib/ionoscloud-dbaas-postgres/models/cluster_logs_instances.rb +21 -5
  33. data/lib/ionoscloud-dbaas-postgres/models/cluster_logs_messages.rb +21 -5
  34. data/lib/ionoscloud-dbaas-postgres/models/cluster_properties.rb +131 -17
  35. data/lib/ionoscloud-dbaas-postgres/models/cluster_response.rb +40 -8
  36. data/lib/ionoscloud-dbaas-postgres/models/connection.rb +30 -6
  37. data/lib/ionoscloud-dbaas-postgres/models/create_cluster_properties.rb +129 -17
  38. data/lib/ionoscloud-dbaas-postgres/models/create_cluster_request.rb +21 -5
  39. data/lib/ionoscloud-dbaas-postgres/models/create_restore_request.rb +21 -5
  40. data/lib/ionoscloud-dbaas-postgres/models/day_of_the_week.rb +3 -3
  41. data/lib/ionoscloud-dbaas-postgres/models/db_user.rb +41 -6
  42. data/lib/ionoscloud-dbaas-postgres/models/error_message.rb +21 -5
  43. data/lib/ionoscloud-dbaas-postgres/models/error_response.rb +22 -6
  44. data/lib/ionoscloud-dbaas-postgres/models/maintenance_window.rb +23 -6
  45. data/lib/ionoscloud-dbaas-postgres/models/metadata.rb +67 -11
  46. data/lib/ionoscloud-dbaas-postgres/models/pagination.rb +30 -6
  47. data/lib/ionoscloud-dbaas-postgres/models/pagination_links.rb +30 -6
  48. data/lib/ionoscloud-dbaas-postgres/models/patch_cluster_properties.rb +76 -12
  49. data/lib/ionoscloud-dbaas-postgres/models/patch_cluster_request.rb +22 -6
  50. data/lib/ionoscloud-dbaas-postgres/models/postgres_version_list.rb +13 -5
  51. data/lib/ionoscloud-dbaas-postgres/models/postgres_version_list_data.rb +12 -4
  52. data/lib/ionoscloud-dbaas-postgres/models/resource_type.rb +3 -3
  53. data/lib/ionoscloud-dbaas-postgres/models/state.rb +3 -3
  54. data/lib/ionoscloud-dbaas-postgres/models/storage_type.rb +3 -3
  55. data/lib/ionoscloud-dbaas-postgres/models/synchronization_mode.rb +3 -3
  56. data/lib/ionoscloud-dbaas-postgres/version.rb +4 -4
  57. data/lib/ionoscloud-dbaas-postgres.rb +3 -3
  58. data/spec/api_client_spec.rb +3 -3
  59. data/spec/configuration_spec.rb +3 -3
  60. data/spec/spec_helper.rb +3 -3
  61. 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: 0.1.0
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
@@ -14,54 +14,84 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module IonoscloudDbaasPostgres
17
- # Properties of a database cluster
17
+ # Properties of a database cluster.
18
18
  class ClusterProperties
19
+
19
20
  # The friendly name of your cluster.
20
21
  attr_accessor :display_name
21
22
 
23
+
22
24
  # The PostgreSQL version of your cluster.
23
25
  attr_accessor :postgres_version
24
26
 
27
+
25
28
  # 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.
26
29
  attr_accessor :location
27
30
 
31
+
32
+ # The DNS name pointing to your cluster.
33
+ attr_accessor :dns_name
34
+
35
+
28
36
  # The S3 location where the backups will be stored.
29
37
  attr_accessor :backup_location
30
38
 
39
+
31
40
  # The total number of instances in the cluster (one master and n-1 standbys).
32
41
  attr_accessor :instances
33
42
 
43
+
34
44
  # The amount of memory per instance in megabytes. Has to be a multiple of 1024.
35
45
  attr_accessor :ram
36
46
 
47
+
37
48
  # The number of CPU cores per instance.
38
49
  attr_accessor :cores
39
50
 
51
+
40
52
  # The amount of storage per instance in megabytes.
41
53
  attr_accessor :storage_size
42
54
 
55
+
43
56
  attr_accessor :storage_type
44
57
 
58
+
45
59
  attr_accessor :connections
46
60
 
61
+
47
62
  attr_accessor :maintenance_window
48
63
 
64
+
49
65
  attr_accessor :synchronization_mode
50
66
 
51
67
  # Attribute mapping from ruby-style variable name to JSON key.
52
68
  def self.attribute_map
53
69
  {
70
+
54
71
  :'display_name' => :'displayName',
72
+
55
73
  :'postgres_version' => :'postgresVersion',
74
+
56
75
  :'location' => :'location',
76
+
77
+ :'dns_name' => :'dnsName',
78
+
57
79
  :'backup_location' => :'backupLocation',
80
+
58
81
  :'instances' => :'instances',
82
+
59
83
  :'ram' => :'ram',
84
+
60
85
  :'cores' => :'cores',
86
+
61
87
  :'storage_size' => :'storageSize',
88
+
62
89
  :'storage_type' => :'storageType',
90
+
63
91
  :'connections' => :'connections',
92
+
64
93
  :'maintenance_window' => :'maintenanceWindow',
94
+
65
95
  :'synchronization_mode' => :'synchronizationMode'
66
96
  }
67
97
  end
@@ -74,17 +104,31 @@ module IonoscloudDbaasPostgres
74
104
  # Attribute type mapping.
75
105
  def self.openapi_types
76
106
  {
107
+
77
108
  :'display_name' => :'String',
109
+
78
110
  :'postgres_version' => :'String',
111
+
79
112
  :'location' => :'String',
113
+
114
+ :'dns_name' => :'String',
115
+
80
116
  :'backup_location' => :'String',
117
+
81
118
  :'instances' => :'Integer',
119
+
82
120
  :'ram' => :'Integer',
121
+
83
122
  :'cores' => :'Integer',
123
+
84
124
  :'storage_size' => :'Integer',
125
+
85
126
  :'storage_type' => :'StorageType',
127
+
86
128
  :'connections' => :'Array<Connection>',
129
+
87
130
  :'maintenance_window' => :'MaintenanceWindow',
131
+
88
132
  :'synchronization_mode' => :'SynchronizationMode'
89
133
  }
90
134
  end
@@ -92,6 +136,19 @@ module IonoscloudDbaasPostgres
92
136
  # List of attributes with nullable: true
93
137
  def self.openapi_nullable
94
138
  Set.new([
139
+
140
+
141
+
142
+
143
+
144
+
145
+
146
+
147
+
148
+
149
+
150
+
151
+
95
152
  ])
96
153
  end
97
154
 
@@ -109,51 +166,68 @@ module IonoscloudDbaasPostgres
109
166
  end
110
167
  h[k.to_sym] = v
111
168
  }
169
+
112
170
 
113
171
  if attributes.key?(:'display_name')
114
172
  self.display_name = attributes[:'display_name']
115
173
  end
116
174
 
175
+
117
176
  if attributes.key?(:'postgres_version')
118
177
  self.postgres_version = attributes[:'postgres_version']
119
178
  end
120
179
 
180
+
121
181
  if attributes.key?(:'location')
122
182
  self.location = attributes[:'location']
123
183
  end
124
184
 
185
+
186
+ if attributes.key?(:'dns_name')
187
+ self.dns_name = attributes[:'dns_name']
188
+ end
189
+
190
+
125
191
  if attributes.key?(:'backup_location')
126
192
  self.backup_location = attributes[:'backup_location']
127
193
  end
128
194
 
195
+
129
196
  if attributes.key?(:'instances')
130
197
  self.instances = attributes[:'instances']
131
198
  end
132
199
 
200
+
133
201
  if attributes.key?(:'ram')
134
202
  self.ram = attributes[:'ram']
135
203
  end
136
204
 
205
+
137
206
  if attributes.key?(:'cores')
138
207
  self.cores = attributes[:'cores']
139
208
  end
140
209
 
210
+
141
211
  if attributes.key?(:'storage_size')
142
212
  self.storage_size = attributes[:'storage_size']
143
213
  end
144
214
 
215
+
145
216
  if attributes.key?(:'storage_type')
146
217
  self.storage_type = attributes[:'storage_type']
147
218
  end
148
219
 
220
+
149
221
  if attributes.key?(:'connections') && (value = attributes[:'connections']).is_a?(Array)
150
222
  self.connections = value
151
223
  end
152
224
 
225
+
153
226
  if attributes.key?(:'maintenance_window')
154
227
  self.maintenance_window = attributes[:'maintenance_window']
155
228
  end
156
229
 
230
+
157
231
  if attributes.key?(:'synchronization_mode')
158
232
  self.synchronization_mode = attributes[:'synchronization_mode']
159
233
  end
@@ -163,6 +237,12 @@ module IonoscloudDbaasPostgres
163
237
  # @return Array for valid properties with the reasons
164
238
  def list_invalid_properties
165
239
  invalid_properties = Array.new
240
+
241
+
242
+
243
+
244
+
245
+
166
246
  if !@instances.nil? && @instances > 5
167
247
  invalid_properties.push('invalid value for "instances", must be smaller than or equal to 5.')
168
248
  end
@@ -171,14 +251,17 @@ module IonoscloudDbaasPostgres
171
251
  invalid_properties.push('invalid value for "instances", must be greater than or equal to 1.')
172
252
  end
173
253
 
254
+
174
255
  if !@ram.nil? && @ram < 2048
175
256
  invalid_properties.push('invalid value for "ram", must be greater than or equal to 2048.')
176
257
  end
177
258
 
259
+
178
260
  if !@cores.nil? && @cores < 1
179
261
  invalid_properties.push('invalid value for "cores", must be greater than or equal to 1.')
180
262
  end
181
263
 
264
+
182
265
  if !@storage_size.nil? && @storage_size > 2097152
183
266
  invalid_properties.push('invalid value for "storage_size", must be smaller than or equal to 2097152.')
184
267
  end
@@ -187,6 +270,8 @@ module IonoscloudDbaasPostgres
187
270
  invalid_properties.push('invalid value for "storage_size", must be greater than or equal to 2048.')
188
271
  end
189
272
 
273
+
274
+
190
275
  if !@connections.nil? && @connections.length > 1
191
276
  invalid_properties.push('invalid value for "connections", number of items must be less than or equal to 1.')
192
277
  end
@@ -195,23 +280,44 @@ module IonoscloudDbaasPostgres
195
280
  invalid_properties.push('invalid value for "connections", number of items must be greater than or equal to 1.')
196
281
  end
197
282
 
283
+
284
+
198
285
  invalid_properties
199
286
  end
200
287
 
201
288
  # Check to see if the all the properties in the model are valid
202
289
  # @return true if the model is valid
203
290
  def valid?
291
+
292
+
293
+
294
+
295
+
296
+
204
297
  return false if !@instances.nil? && @instances > 5
205
298
  return false if !@instances.nil? && @instances < 1
299
+
206
300
  return false if !@ram.nil? && @ram < 2048
301
+
207
302
  return false if !@cores.nil? && @cores < 1
303
+
208
304
  return false if !@storage_size.nil? && @storage_size > 2097152
209
305
  return false if !@storage_size.nil? && @storage_size < 2048
306
+
307
+
210
308
  return false if !@connections.nil? && @connections.length > 1
211
309
  return false if !@connections.nil? && @connections.length < 1
310
+
311
+
212
312
  true
213
313
  end
214
314
 
315
+
316
+
317
+
318
+
319
+
320
+
215
321
  # Custom attribute writer method with validation
216
322
  # @param [Object] instances Value to be assigned
217
323
  def instances=(instances)
@@ -226,6 +332,7 @@ module IonoscloudDbaasPostgres
226
332
  @instances = instances
227
333
  end
228
334
 
335
+
229
336
  # Custom attribute writer method with validation
230
337
  # @param [Object] ram Value to be assigned
231
338
  def ram=(ram)
@@ -236,6 +343,7 @@ module IonoscloudDbaasPostgres
236
343
  @ram = ram
237
344
  end
238
345
 
346
+
239
347
  # Custom attribute writer method with validation
240
348
  # @param [Object] cores Value to be assigned
241
349
  def cores=(cores)
@@ -246,6 +354,7 @@ module IonoscloudDbaasPostgres
246
354
  @cores = cores
247
355
  end
248
356
 
357
+
249
358
  # Custom attribute writer method with validation
250
359
  # @param [Object] storage_size Value to be assigned
251
360
  def storage_size=(storage_size)
@@ -260,6 +369,8 @@ module IonoscloudDbaasPostgres
260
369
  @storage_size = storage_size
261
370
  end
262
371
 
372
+
373
+
263
374
  # Custom attribute writer method with validation
264
375
  # @param [Object] connections Value to be assigned
265
376
  def connections=(connections)
@@ -274,23 +385,26 @@ module IonoscloudDbaasPostgres
274
385
  @connections = connections
275
386
  end
276
387
 
388
+
389
+
277
390
  # Checks equality by comparing each attribute.
278
391
  # @param [Object] Object to be compared
279
392
  def ==(o)
280
393
  return true if self.equal?(o)
281
394
  self.class == o.class &&
282
- display_name == o.display_name &&
283
- postgres_version == o.postgres_version &&
284
- location == o.location &&
285
- backup_location == o.backup_location &&
286
- instances == o.instances &&
287
- ram == o.ram &&
288
- cores == o.cores &&
289
- storage_size == o.storage_size &&
290
- storage_type == o.storage_type &&
291
- connections == o.connections &&
292
- maintenance_window == o.maintenance_window &&
293
- synchronization_mode == o.synchronization_mode
395
+ display_name == o.display_name &&
396
+ postgres_version == o.postgres_version &&
397
+ location == o.location &&
398
+ dns_name == o.dns_name &&
399
+ backup_location == o.backup_location &&
400
+ instances == o.instances &&
401
+ ram == o.ram &&
402
+ cores == o.cores &&
403
+ storage_size == o.storage_size &&
404
+ storage_type == o.storage_type &&
405
+ connections == o.connections &&
406
+ maintenance_window == o.maintenance_window &&
407
+ synchronization_mode == o.synchronization_mode
294
408
  end
295
409
 
296
410
  # @see the `==` method
@@ -302,7 +416,7 @@ module IonoscloudDbaasPostgres
302
416
  # Calculates hash code according to all attributes.
303
417
  # @return [Integer] Hash code
304
418
  def hash
305
- [display_name, postgres_version, location, backup_location, instances, ram, cores, storage_size, storage_type, connections, maintenance_window, synchronization_mode].hash
419
+ [display_name, postgres_version, location, dns_name, backup_location, instances, ram, cores, storage_size, storage_type, connections, maintenance_window, synchronization_mode].hash
306
420
  end
307
421
 
308
422
  # Builds the object from hash
@@ -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: 0.1.0
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
@@ -14,23 +14,31 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module IonoscloudDbaasPostgres
17
- # A database cluster
17
+ # A database cluster.
18
18
  class ClusterResponse
19
+
19
20
  attr_accessor :type
20
21
 
22
+
21
23
  # The unique ID of the resource.
22
24
  attr_accessor :id
23
25
 
26
+
24
27
  attr_accessor :metadata
25
28
 
29
+
26
30
  attr_accessor :properties
27
31
 
28
32
  # Attribute mapping from ruby-style variable name to JSON key.
29
33
  def self.attribute_map
30
34
  {
35
+
31
36
  :'type' => :'type',
37
+
32
38
  :'id' => :'id',
39
+
33
40
  :'metadata' => :'metadata',
41
+
34
42
  :'properties' => :'properties'
35
43
  }
36
44
  end
@@ -43,9 +51,13 @@ module IonoscloudDbaasPostgres
43
51
  # Attribute type mapping.
44
52
  def self.openapi_types
45
53
  {
54
+
46
55
  :'type' => :'ResourceType',
56
+
47
57
  :'id' => :'String',
58
+
48
59
  :'metadata' => :'Metadata',
60
+
49
61
  :'properties' => :'ClusterProperties'
50
62
  }
51
63
  end
@@ -53,6 +65,10 @@ module IonoscloudDbaasPostgres
53
65
  # List of attributes with nullable: true
54
66
  def self.openapi_nullable
55
67
  Set.new([
68
+
69
+
70
+
71
+
56
72
  ])
57
73
  end
58
74
 
@@ -70,19 +86,23 @@ module IonoscloudDbaasPostgres
70
86
  end
71
87
  h[k.to_sym] = v
72
88
  }
89
+
73
90
 
74
91
  if attributes.key?(:'type')
75
92
  self.type = attributes[:'type']
76
93
  end
77
94
 
95
+
78
96
  if attributes.key?(:'id')
79
97
  self.id = attributes[:'id']
80
98
  end
81
99
 
100
+
82
101
  if attributes.key?(:'metadata')
83
102
  self.metadata = attributes[:'metadata']
84
103
  end
85
104
 
105
+
86
106
  if attributes.key?(:'properties')
87
107
  self.properties = attributes[:'properties']
88
108
  end
@@ -92,24 +112,36 @@ module IonoscloudDbaasPostgres
92
112
  # @return Array for valid properties with the reasons
93
113
  def list_invalid_properties
94
114
  invalid_properties = Array.new
115
+
116
+
117
+
118
+
95
119
  invalid_properties
96
120
  end
97
121
 
98
122
  # Check to see if the all the properties in the model are valid
99
123
  # @return true if the model is valid
100
124
  def valid?
125
+
126
+
127
+
128
+
101
129
  true
102
130
  end
103
131
 
132
+
133
+
134
+
135
+
104
136
  # Checks equality by comparing each attribute.
105
137
  # @param [Object] Object to be compared
106
138
  def ==(o)
107
139
  return true if self.equal?(o)
108
140
  self.class == o.class &&
109
- type == o.type &&
110
- id == o.id &&
111
- metadata == o.metadata &&
112
- properties == o.properties
141
+ type == o.type &&
142
+ id == o.id &&
143
+ metadata == o.metadata &&
144
+ properties == o.properties
113
145
  end
114
146
 
115
147
  # @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: 0.1.0
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,20 +16,26 @@ require 'time'
16
16
  module IonoscloudDbaasPostgres
17
17
  # Details about the network connection for your cluster.
18
18
  class Connection
19
+
19
20
  # The datacenter to connect your cluster to.
20
21
  attr_accessor :datacenter_id
21
22
 
23
+
22
24
  # The numeric LAN ID to connect your cluster to.
23
25
  attr_accessor :lan_id
24
26
 
27
+
25
28
  # The IP and subnet for your cluster. Note the following unavailable IP ranges: 10.233.64.0/18 10.233.0.0/18 10.233.114.0/24
26
29
  attr_accessor :cidr
27
30
 
28
31
  # Attribute mapping from ruby-style variable name to JSON key.
29
32
  def self.attribute_map
30
33
  {
34
+
31
35
  :'datacenter_id' => :'datacenterId',
36
+
32
37
  :'lan_id' => :'lanId',
38
+
33
39
  :'cidr' => :'cidr'
34
40
  }
35
41
  end
@@ -42,8 +48,11 @@ module IonoscloudDbaasPostgres
42
48
  # Attribute type mapping.
43
49
  def self.openapi_types
44
50
  {
51
+
45
52
  :'datacenter_id' => :'String',
53
+
46
54
  :'lan_id' => :'String',
55
+
47
56
  :'cidr' => :'String'
48
57
  }
49
58
  end
@@ -51,6 +60,9 @@ module IonoscloudDbaasPostgres
51
60
  # List of attributes with nullable: true
52
61
  def self.openapi_nullable
53
62
  Set.new([
63
+
64
+
65
+
54
66
  ])
55
67
  end
56
68
 
@@ -68,15 +80,18 @@ module IonoscloudDbaasPostgres
68
80
  end
69
81
  h[k.to_sym] = v
70
82
  }
83
+
71
84
 
72
85
  if attributes.key?(:'datacenter_id')
73
86
  self.datacenter_id = attributes[:'datacenter_id']
74
87
  end
75
88
 
89
+
76
90
  if attributes.key?(:'lan_id')
77
91
  self.lan_id = attributes[:'lan_id']
78
92
  end
79
93
 
94
+
80
95
  if attributes.key?(:'cidr')
81
96
  self.cidr = attributes[:'cidr']
82
97
  end
@@ -86,14 +101,17 @@ module IonoscloudDbaasPostgres
86
101
  # @return Array for valid properties with the reasons
87
102
  def list_invalid_properties
88
103
  invalid_properties = Array.new
104
+
89
105
  if @datacenter_id.nil?
90
106
  invalid_properties.push('invalid value for "datacenter_id", datacenter_id cannot be nil.')
91
107
  end
92
108
 
109
+
93
110
  if @lan_id.nil?
94
111
  invalid_properties.push('invalid value for "lan_id", lan_id cannot be nil.')
95
112
  end
96
113
 
114
+
97
115
  if @cidr.nil?
98
116
  invalid_properties.push('invalid value for "cidr", cidr cannot be nil.')
99
117
  end
@@ -104,20 +122,26 @@ module IonoscloudDbaasPostgres
104
122
  # Check to see if the all the properties in the model are valid
105
123
  # @return true if the model is valid
106
124
  def valid?
125
+
107
126
  return false if @datacenter_id.nil?
127
+
108
128
  return false if @lan_id.nil?
129
+
109
130
  return false if @cidr.nil?
110
131
  true
111
132
  end
112
133
 
134
+
135
+
136
+
113
137
  # Checks equality by comparing each attribute.
114
138
  # @param [Object] Object to be compared
115
139
  def ==(o)
116
140
  return true if self.equal?(o)
117
141
  self.class == o.class &&
118
- datacenter_id == o.datacenter_id &&
119
- lan_id == o.lan_id &&
120
- cidr == o.cidr
142
+ datacenter_id == o.datacenter_id &&
143
+ lan_id == o.lan_id &&
144
+ cidr == o.cidr
121
145
  end
122
146
 
123
147
  # @see the `==` method