ionoscloud-dbaas-postgres 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +2 -2
  3. data/docs/CHANGELOG.md +21 -0
  4. data/docs/models/ClusterBackup.md +5 -1
  5. data/docs/models/DBUser.md +1 -1
  6. data/docs/models/ErrorResponse.md +1 -1
  7. data/docs/models/MaintenanceWindow.md +1 -1
  8. data/ionoscloud-dbaas-postgres.gemspec +1 -1
  9. data/lib/ionoscloud-dbaas-postgres/api/backups_api.rb +1 -1
  10. data/lib/ionoscloud-dbaas-postgres/api/clusters_api.rb +1 -1
  11. data/lib/ionoscloud-dbaas-postgres/api/logs_api.rb +1 -1
  12. data/lib/ionoscloud-dbaas-postgres/api/metadata_api.rb +1 -1
  13. data/lib/ionoscloud-dbaas-postgres/api/restores_api.rb +1 -1
  14. data/lib/ionoscloud-dbaas-postgres/api_client.rb +2 -2
  15. data/lib/ionoscloud-dbaas-postgres/api_error.rb +1 -1
  16. data/lib/ionoscloud-dbaas-postgres/configuration.rb +1 -1
  17. data/lib/ionoscloud-dbaas-postgres/models/api_version.rb +19 -3
  18. data/lib/ionoscloud-dbaas-postgres/models/backup_metadata.rb +19 -3
  19. data/lib/ionoscloud-dbaas-postgres/models/backup_response.rb +38 -6
  20. data/lib/ionoscloud-dbaas-postgres/models/cluster_backup.rb +86 -10
  21. data/lib/ionoscloud-dbaas-postgres/models/cluster_backup_list.rb +56 -8
  22. data/lib/ionoscloud-dbaas-postgres/models/cluster_backup_list_all_of.rb +28 -4
  23. data/lib/ionoscloud-dbaas-postgres/models/cluster_list.rb +56 -8
  24. data/lib/ionoscloud-dbaas-postgres/models/cluster_list_all_of.rb +28 -4
  25. data/lib/ionoscloud-dbaas-postgres/models/cluster_logs.rb +10 -2
  26. data/lib/ionoscloud-dbaas-postgres/models/cluster_logs_instances.rb +19 -3
  27. data/lib/ionoscloud-dbaas-postgres/models/cluster_logs_messages.rb +19 -3
  28. data/lib/ionoscloud-dbaas-postgres/models/cluster_properties.rb +110 -14
  29. data/lib/ionoscloud-dbaas-postgres/models/cluster_response.rb +38 -6
  30. data/lib/ionoscloud-dbaas-postgres/models/connection.rb +28 -4
  31. data/lib/ionoscloud-dbaas-postgres/models/create_cluster_properties.rb +127 -15
  32. data/lib/ionoscloud-dbaas-postgres/models/create_cluster_request.rb +19 -3
  33. data/lib/ionoscloud-dbaas-postgres/models/create_restore_request.rb +19 -3
  34. data/lib/ionoscloud-dbaas-postgres/models/day_of_the_week.rb +1 -1
  35. data/lib/ionoscloud-dbaas-postgres/models/db_user.rb +20 -4
  36. data/lib/ionoscloud-dbaas-postgres/models/error_message.rb +19 -3
  37. data/lib/ionoscloud-dbaas-postgres/models/error_response.rb +20 -4
  38. data/lib/ionoscloud-dbaas-postgres/models/maintenance_window.rb +21 -4
  39. data/lib/ionoscloud-dbaas-postgres/models/metadata.rb +65 -9
  40. data/lib/ionoscloud-dbaas-postgres/models/pagination.rb +28 -4
  41. data/lib/ionoscloud-dbaas-postgres/models/pagination_links.rb +28 -4
  42. data/lib/ionoscloud-dbaas-postgres/models/patch_cluster_properties.rb +74 -10
  43. data/lib/ionoscloud-dbaas-postgres/models/patch_cluster_request.rb +20 -4
  44. data/lib/ionoscloud-dbaas-postgres/models/postgres_version_list.rb +11 -3
  45. data/lib/ionoscloud-dbaas-postgres/models/postgres_version_list_data.rb +10 -2
  46. data/lib/ionoscloud-dbaas-postgres/models/resource_type.rb +1 -1
  47. data/lib/ionoscloud-dbaas-postgres/models/state.rb +1 -1
  48. data/lib/ionoscloud-dbaas-postgres/models/storage_type.rb +1 -1
  49. data/lib/ionoscloud-dbaas-postgres/models/synchronization_mode.rb +1 -1
  50. data/lib/ionoscloud-dbaas-postgres/version.rb +2 -2
  51. data/lib/ionoscloud-dbaas-postgres.rb +1 -1
  52. data/spec/api_client_spec.rb +1 -1
  53. data/spec/configuration_spec.rb +1 -1
  54. data/spec/spec_helper.rb +1 -1
  55. metadata +3 -2
@@ -3,7 +3,7 @@
3
3
 
4
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.
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,78 @@ 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
+
28
32
  # The S3 location where the backups will be stored.
29
33
  attr_accessor :backup_location
30
34
 
35
+
31
36
  # The total number of instances in the cluster (one master and n-1 standbys).
32
37
  attr_accessor :instances
33
38
 
39
+
34
40
  # The amount of memory per instance in megabytes. Has to be a multiple of 1024.
35
41
  attr_accessor :ram
36
42
 
43
+
37
44
  # The number of CPU cores per instance.
38
45
  attr_accessor :cores
39
46
 
47
+
40
48
  # The amount of storage per instance in megabytes.
41
49
  attr_accessor :storage_size
42
50
 
51
+
43
52
  attr_accessor :storage_type
44
53
 
54
+
45
55
  attr_accessor :connections
46
56
 
57
+
47
58
  attr_accessor :maintenance_window
48
59
 
60
+
49
61
  attr_accessor :synchronization_mode
50
62
 
51
63
  # Attribute mapping from ruby-style variable name to JSON key.
52
64
  def self.attribute_map
53
65
  {
66
+
54
67
  :'display_name' => :'displayName',
68
+
55
69
  :'postgres_version' => :'postgresVersion',
70
+
56
71
  :'location' => :'location',
72
+
57
73
  :'backup_location' => :'backupLocation',
74
+
58
75
  :'instances' => :'instances',
76
+
59
77
  :'ram' => :'ram',
78
+
60
79
  :'cores' => :'cores',
80
+
61
81
  :'storage_size' => :'storageSize',
82
+
62
83
  :'storage_type' => :'storageType',
84
+
63
85
  :'connections' => :'connections',
86
+
64
87
  :'maintenance_window' => :'maintenanceWindow',
88
+
65
89
  :'synchronization_mode' => :'synchronizationMode'
66
90
  }
67
91
  end
@@ -74,17 +98,29 @@ module IonoscloudDbaasPostgres
74
98
  # Attribute type mapping.
75
99
  def self.openapi_types
76
100
  {
101
+
77
102
  :'display_name' => :'String',
103
+
78
104
  :'postgres_version' => :'String',
105
+
79
106
  :'location' => :'String',
107
+
80
108
  :'backup_location' => :'String',
109
+
81
110
  :'instances' => :'Integer',
111
+
82
112
  :'ram' => :'Integer',
113
+
83
114
  :'cores' => :'Integer',
115
+
84
116
  :'storage_size' => :'Integer',
117
+
85
118
  :'storage_type' => :'StorageType',
119
+
86
120
  :'connections' => :'Array<Connection>',
121
+
87
122
  :'maintenance_window' => :'MaintenanceWindow',
123
+
88
124
  :'synchronization_mode' => :'SynchronizationMode'
89
125
  }
90
126
  end
@@ -92,6 +128,18 @@ module IonoscloudDbaasPostgres
92
128
  # List of attributes with nullable: true
93
129
  def self.openapi_nullable
94
130
  Set.new([
131
+
132
+
133
+
134
+
135
+
136
+
137
+
138
+
139
+
140
+
141
+
142
+
95
143
  ])
96
144
  end
97
145
 
@@ -109,51 +157,63 @@ module IonoscloudDbaasPostgres
109
157
  end
110
158
  h[k.to_sym] = v
111
159
  }
160
+
112
161
 
113
162
  if attributes.key?(:'display_name')
114
163
  self.display_name = attributes[:'display_name']
115
164
  end
116
165
 
166
+
117
167
  if attributes.key?(:'postgres_version')
118
168
  self.postgres_version = attributes[:'postgres_version']
119
169
  end
120
170
 
171
+
121
172
  if attributes.key?(:'location')
122
173
  self.location = attributes[:'location']
123
174
  end
124
175
 
176
+
125
177
  if attributes.key?(:'backup_location')
126
178
  self.backup_location = attributes[:'backup_location']
127
179
  end
128
180
 
181
+
129
182
  if attributes.key?(:'instances')
130
183
  self.instances = attributes[:'instances']
131
184
  end
132
185
 
186
+
133
187
  if attributes.key?(:'ram')
134
188
  self.ram = attributes[:'ram']
135
189
  end
136
190
 
191
+
137
192
  if attributes.key?(:'cores')
138
193
  self.cores = attributes[:'cores']
139
194
  end
140
195
 
196
+
141
197
  if attributes.key?(:'storage_size')
142
198
  self.storage_size = attributes[:'storage_size']
143
199
  end
144
200
 
201
+
145
202
  if attributes.key?(:'storage_type')
146
203
  self.storage_type = attributes[:'storage_type']
147
204
  end
148
205
 
206
+
149
207
  if attributes.key?(:'connections') && (value = attributes[:'connections']).is_a?(Array)
150
208
  self.connections = value
151
209
  end
152
210
 
211
+
153
212
  if attributes.key?(:'maintenance_window')
154
213
  self.maintenance_window = attributes[:'maintenance_window']
155
214
  end
156
215
 
216
+
157
217
  if attributes.key?(:'synchronization_mode')
158
218
  self.synchronization_mode = attributes[:'synchronization_mode']
159
219
  end
@@ -163,6 +223,11 @@ module IonoscloudDbaasPostgres
163
223
  # @return Array for valid properties with the reasons
164
224
  def list_invalid_properties
165
225
  invalid_properties = Array.new
226
+
227
+
228
+
229
+
230
+
166
231
  if !@instances.nil? && @instances > 5
167
232
  invalid_properties.push('invalid value for "instances", must be smaller than or equal to 5.')
168
233
  end
@@ -171,14 +236,17 @@ module IonoscloudDbaasPostgres
171
236
  invalid_properties.push('invalid value for "instances", must be greater than or equal to 1.')
172
237
  end
173
238
 
239
+
174
240
  if !@ram.nil? && @ram < 2048
175
241
  invalid_properties.push('invalid value for "ram", must be greater than or equal to 2048.')
176
242
  end
177
243
 
244
+
178
245
  if !@cores.nil? && @cores < 1
179
246
  invalid_properties.push('invalid value for "cores", must be greater than or equal to 1.')
180
247
  end
181
248
 
249
+
182
250
  if !@storage_size.nil? && @storage_size > 2097152
183
251
  invalid_properties.push('invalid value for "storage_size", must be smaller than or equal to 2097152.')
184
252
  end
@@ -187,6 +255,8 @@ module IonoscloudDbaasPostgres
187
255
  invalid_properties.push('invalid value for "storage_size", must be greater than or equal to 2048.')
188
256
  end
189
257
 
258
+
259
+
190
260
  if !@connections.nil? && @connections.length > 1
191
261
  invalid_properties.push('invalid value for "connections", number of items must be less than or equal to 1.')
192
262
  end
@@ -195,23 +265,42 @@ module IonoscloudDbaasPostgres
195
265
  invalid_properties.push('invalid value for "connections", number of items must be greater than or equal to 1.')
196
266
  end
197
267
 
268
+
269
+
198
270
  invalid_properties
199
271
  end
200
272
 
201
273
  # Check to see if the all the properties in the model are valid
202
274
  # @return true if the model is valid
203
275
  def valid?
276
+
277
+
278
+
279
+
280
+
204
281
  return false if !@instances.nil? && @instances > 5
205
282
  return false if !@instances.nil? && @instances < 1
283
+
206
284
  return false if !@ram.nil? && @ram < 2048
285
+
207
286
  return false if !@cores.nil? && @cores < 1
287
+
208
288
  return false if !@storage_size.nil? && @storage_size > 2097152
209
289
  return false if !@storage_size.nil? && @storage_size < 2048
290
+
291
+
210
292
  return false if !@connections.nil? && @connections.length > 1
211
293
  return false if !@connections.nil? && @connections.length < 1
294
+
295
+
212
296
  true
213
297
  end
214
298
 
299
+
300
+
301
+
302
+
303
+
215
304
  # Custom attribute writer method with validation
216
305
  # @param [Object] instances Value to be assigned
217
306
  def instances=(instances)
@@ -226,6 +315,7 @@ module IonoscloudDbaasPostgres
226
315
  @instances = instances
227
316
  end
228
317
 
318
+
229
319
  # Custom attribute writer method with validation
230
320
  # @param [Object] ram Value to be assigned
231
321
  def ram=(ram)
@@ -236,6 +326,7 @@ module IonoscloudDbaasPostgres
236
326
  @ram = ram
237
327
  end
238
328
 
329
+
239
330
  # Custom attribute writer method with validation
240
331
  # @param [Object] cores Value to be assigned
241
332
  def cores=(cores)
@@ -246,6 +337,7 @@ module IonoscloudDbaasPostgres
246
337
  @cores = cores
247
338
  end
248
339
 
340
+
249
341
  # Custom attribute writer method with validation
250
342
  # @param [Object] storage_size Value to be assigned
251
343
  def storage_size=(storage_size)
@@ -260,6 +352,8 @@ module IonoscloudDbaasPostgres
260
352
  @storage_size = storage_size
261
353
  end
262
354
 
355
+
356
+
263
357
  # Custom attribute writer method with validation
264
358
  # @param [Object] connections Value to be assigned
265
359
  def connections=(connections)
@@ -274,23 +368,25 @@ module IonoscloudDbaasPostgres
274
368
  @connections = connections
275
369
  end
276
370
 
371
+
372
+
277
373
  # Checks equality by comparing each attribute.
278
374
  # @param [Object] Object to be compared
279
375
  def ==(o)
280
376
  return true if self.equal?(o)
281
377
  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
378
+ display_name == o.display_name &&
379
+ postgres_version == o.postgres_version &&
380
+ location == o.location &&
381
+ backup_location == o.backup_location &&
382
+ instances == o.instances &&
383
+ ram == o.ram &&
384
+ cores == o.cores &&
385
+ storage_size == o.storage_size &&
386
+ storage_type == o.storage_type &&
387
+ connections == o.connections &&
388
+ maintenance_window == o.maintenance_window &&
389
+ synchronization_mode == o.synchronization_mode
294
390
  end
295
391
 
296
392
  # @see the `==` method
@@ -3,7 +3,7 @@
3
3
 
4
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.
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
@@ -3,7 +3,7 @@
3
3
 
4
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.
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