ionoscloud-dbaas-mongo 1.1.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (75) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +2 -2
  3. data/docs/CHANGELOG.md +38 -0
  4. data/docs/api/ClustersApi.md +11 -7
  5. data/docs/api/LogsApi.md +1 -1
  6. data/docs/api/MetadataApi.md +2 -2
  7. data/docs/api/RestoresApi.md +1 -1
  8. data/docs/api/SnapshotsApi.md +11 -5
  9. data/docs/api/TemplatesApi.md +13 -6
  10. data/docs/api/UsersApi.md +37 -37
  11. data/docs/models/ClusterList.md +6 -6
  12. data/docs/models/ClusterResponse.md +1 -1
  13. data/docs/models/Health.md +15 -0
  14. data/docs/models/Metadata.md +3 -1
  15. data/docs/models/Pagination.md +6 -6
  16. data/docs/models/SnapshotList.md +6 -6
  17. data/docs/models/SnapshotResponse.md +1 -1
  18. data/docs/models/TemplateList.md +6 -6
  19. data/docs/models/User.md +1 -1
  20. data/docs/models/UserMetadata.md +1 -3
  21. data/ionoscloud-dbaas-mongo.gemspec +3 -3
  22. data/lib/ionoscloud-dbaas-mongo/api/clusters_api.rb +16 -2
  23. data/lib/ionoscloud-dbaas-mongo/api/logs_api.rb +2 -2
  24. data/lib/ionoscloud-dbaas-mongo/api/metadata_api.rb +2 -2
  25. data/lib/ionoscloud-dbaas-mongo/api/restores_api.rb +2 -2
  26. data/lib/ionoscloud-dbaas-mongo/api/snapshots_api.rb +16 -2
  27. data/lib/ionoscloud-dbaas-mongo/api/templates_api.rb +16 -2
  28. data/lib/ionoscloud-dbaas-mongo/api/users_api.rb +32 -36
  29. data/lib/ionoscloud-dbaas-mongo/api_client.rb +3 -3
  30. data/lib/ionoscloud-dbaas-mongo/api_error.rb +2 -2
  31. data/lib/ionoscloud-dbaas-mongo/configuration.rb +2 -2
  32. data/lib/ionoscloud-dbaas-mongo/models/api_version.rb +2 -2
  33. data/lib/ionoscloud-dbaas-mongo/models/cluster_list.rb +24 -11
  34. data/lib/ionoscloud-dbaas-mongo/models/cluster_list_all_of.rb +2 -2
  35. data/lib/ionoscloud-dbaas-mongo/models/cluster_logs.rb +2 -2
  36. data/lib/ionoscloud-dbaas-mongo/models/cluster_logs_instances.rb +2 -2
  37. data/lib/ionoscloud-dbaas-mongo/models/cluster_logs_messages.rb +2 -2
  38. data/lib/ionoscloud-dbaas-mongo/models/cluster_properties.rb +2 -2
  39. data/lib/ionoscloud-dbaas-mongo/models/cluster_response.rb +2 -2
  40. data/lib/ionoscloud-dbaas-mongo/models/connection.rb +2 -2
  41. data/lib/ionoscloud-dbaas-mongo/models/create_cluster_properties.rb +2 -2
  42. data/lib/ionoscloud-dbaas-mongo/models/create_cluster_request.rb +2 -2
  43. data/lib/ionoscloud-dbaas-mongo/models/create_restore_request.rb +2 -2
  44. data/lib/ionoscloud-dbaas-mongo/models/day_of_the_week.rb +2 -2
  45. data/lib/ionoscloud-dbaas-mongo/models/error_message.rb +2 -2
  46. data/lib/ionoscloud-dbaas-mongo/models/error_response.rb +2 -2
  47. data/lib/ionoscloud-dbaas-mongo/models/health.rb +39 -0
  48. data/lib/ionoscloud-dbaas-mongo/models/maintenance_window.rb +2 -2
  49. data/lib/ionoscloud-dbaas-mongo/models/metadata.rb +23 -6
  50. data/lib/ionoscloud-dbaas-mongo/models/pagination.rb +24 -11
  51. data/lib/ionoscloud-dbaas-mongo/models/pagination_links.rb +3 -3
  52. data/lib/ionoscloud-dbaas-mongo/models/patch_cluster_properties.rb +2 -2
  53. data/lib/ionoscloud-dbaas-mongo/models/patch_cluster_request.rb +2 -2
  54. data/lib/ionoscloud-dbaas-mongo/models/patch_user_properties.rb +2 -2
  55. data/lib/ionoscloud-dbaas-mongo/models/patch_user_request.rb +2 -2
  56. data/lib/ionoscloud-dbaas-mongo/models/resource_type.rb +2 -2
  57. data/lib/ionoscloud-dbaas-mongo/models/snapshot_list.rb +24 -11
  58. data/lib/ionoscloud-dbaas-mongo/models/snapshot_list_all_of.rb +2 -2
  59. data/lib/ionoscloud-dbaas-mongo/models/snapshot_properties.rb +2 -2
  60. data/lib/ionoscloud-dbaas-mongo/models/snapshot_response.rb +3 -3
  61. data/lib/ionoscloud-dbaas-mongo/models/state.rb +2 -2
  62. data/lib/ionoscloud-dbaas-mongo/models/template_list.rb +24 -11
  63. data/lib/ionoscloud-dbaas-mongo/models/template_list_all_of.rb +2 -2
  64. data/lib/ionoscloud-dbaas-mongo/models/template_response.rb +2 -2
  65. data/lib/ionoscloud-dbaas-mongo/models/user.rb +2 -2
  66. data/lib/ionoscloud-dbaas-mongo/models/user_metadata.rb +6 -58
  67. data/lib/ionoscloud-dbaas-mongo/models/user_properties.rb +2 -2
  68. data/lib/ionoscloud-dbaas-mongo/models/user_roles.rb +4 -4
  69. data/lib/ionoscloud-dbaas-mongo/models/users_list.rb +2 -2
  70. data/lib/ionoscloud-dbaas-mongo/version.rb +3 -3
  71. data/lib/ionoscloud-dbaas-mongo.rb +3 -2
  72. data/spec/api_client_spec.rb +2 -2
  73. data/spec/configuration_spec.rb +2 -2
  74. data/spec/spec_helper.rb +2 -2
  75. metadata +9 -6
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #IONOS DBaaS MongoDB REST API
3
3
 
4
- #With IONOS Cloud Database as a Service, you have the ability to quickly set up and manage a MongoDB database. You can also delete clusters, manage backups and users via the API. MongoDB is an open source, cross-platform, document-oriented database program. Classified as a NoSQL database program, it uses JSON-like documents with optional schemas. The MongoDB API allows you to create additional database clusters or modify existing ones. Both tools, the Data Center Designer (DCD) and the API use the same concepts consistently and are well suited for smooth and intuitive use.
4
+ #With IONOS Cloud Database as a Service, you have the ability to quickly set up and manage a MongoDB database. You can also delete clusters, manage backups and users via the API. MongoDB is an open source, cross-platform, document-oriented database program. Classified as a NoSQL database program, it uses JSON-like documents with optional schemas. The MongoDB API allows you to create additional database clusters or modify existing ones. Both tools, the Data Center Designer (DCD) and the API use the same concepts consistently and are well suited for smooth and intuitive use.
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
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #IONOS DBaaS MongoDB REST API
3
3
 
4
- #With IONOS Cloud Database as a Service, you have the ability to quickly set up and manage a MongoDB database. You can also delete clusters, manage backups and users via the API. MongoDB is an open source, cross-platform, document-oriented database program. Classified as a NoSQL database program, it uses JSON-like documents with optional schemas. The MongoDB API allows you to create additional database clusters or modify existing ones. Both tools, the Data Center Designer (DCD) and the API use the same concepts consistently and are well suited for smooth and intuitive use.
4
+ #With IONOS Cloud Database as a Service, you have the ability to quickly set up and manage a MongoDB database. You can also delete clusters, manage backups and users via the API. MongoDB is an open source, cross-platform, document-oriented database program. Classified as a NoSQL database program, it uses JSON-like documents with optional schemas. The MongoDB API allows you to create additional database clusters or modify existing ones. Both tools, the Data Center Designer (DCD) and the API use the same concepts consistently and are well suited for smooth and intuitive use.
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
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #IONOS DBaaS MongoDB REST API
3
3
 
4
- #With IONOS Cloud Database as a Service, you have the ability to quickly set up and manage a MongoDB database. You can also delete clusters, manage backups and users via the API. MongoDB is an open source, cross-platform, document-oriented database program. Classified as a NoSQL database program, it uses JSON-like documents with optional schemas. The MongoDB API allows you to create additional database clusters or modify existing ones. Both tools, the Data Center Designer (DCD) and the API use the same concepts consistently and are well suited for smooth and intuitive use.
4
+ #With IONOS Cloud Database as a Service, you have the ability to quickly set up and manage a MongoDB database. You can also delete clusters, manage backups and users via the API. MongoDB is an open source, cross-platform, document-oriented database program. Classified as a NoSQL database program, it uses JSON-like documents with optional schemas. The MongoDB API allows you to create additional database clusters or modify existing ones. Both tools, the Data Center Designer (DCD) and the API use the same concepts consistently and are well suited for smooth and intuitive use.
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
@@ -27,15 +27,15 @@ module IonoscloudDbaasMongo
27
27
  attr_accessor :items
28
28
 
29
29
 
30
- # The offset specified in the request (if none was specified, the default offset is 0) (not implemented yet).
30
+ # The offset specified in the request (if none was specified, the default offset is 0).
31
31
  attr_accessor :offset
32
32
 
33
33
 
34
- # The limit specified in the request (if none was specified, use the endpoint's default pagination limit) (not implemented yet, always return number of items).
34
+ # The limit specified in the request (if none was specified, the default limit is 100).
35
35
  attr_accessor :limit
36
36
 
37
37
 
38
- attr_accessor :_links
38
+ attr_accessor :links
39
39
 
40
40
  # Attribute mapping from ruby-style variable name to JSON key.
41
41
  def self.attribute_map
@@ -51,7 +51,7 @@ module IonoscloudDbaasMongo
51
51
 
52
52
  :'limit' => :'limit',
53
53
 
54
- :'_links' => :'_links'
54
+ :'links' => :'links'
55
55
  }
56
56
  end
57
57
 
@@ -74,7 +74,7 @@ module IonoscloudDbaasMongo
74
74
 
75
75
  :'limit' => :'Integer',
76
76
 
77
- :'_links' => :'PaginationLinks'
77
+ :'links' => :'PaginationLinks'
78
78
  }
79
79
  end
80
80
 
@@ -131,16 +131,20 @@ module IonoscloudDbaasMongo
131
131
 
132
132
  if attributes.key?(:'offset')
133
133
  self.offset = attributes[:'offset']
134
+ else
135
+ self.offset = 0
134
136
  end
135
137
 
136
138
 
137
139
  if attributes.key?(:'limit')
138
140
  self.limit = attributes[:'limit']
141
+ else
142
+ self.limit = 100
139
143
  end
140
144
 
141
145
 
142
- if attributes.key?(:'_links')
143
- self._links = attributes[:'_links']
146
+ if attributes.key?(:'links')
147
+ self.links = attributes[:'links']
144
148
  end
145
149
  end
146
150
 
@@ -157,6 +161,10 @@ module IonoscloudDbaasMongo
157
161
  end
158
162
 
159
163
 
164
+ if !@limit.nil? && @limit > 1000
165
+ invalid_properties.push('invalid value for "limit", must be smaller than or equal to 1000.')
166
+ end
167
+
160
168
  if !@limit.nil? && @limit < 0
161
169
  invalid_properties.push('invalid value for "limit", must be greater than or equal to 0.')
162
170
  end
@@ -174,6 +182,7 @@ module IonoscloudDbaasMongo
174
182
 
175
183
  return false if !@offset.nil? && @offset < 0
176
184
 
185
+ return false if !@limit.nil? && @limit > 1000
177
186
  return false if !@limit.nil? && @limit < 0
178
187
 
179
188
  true
@@ -197,6 +206,10 @@ module IonoscloudDbaasMongo
197
206
  # Custom attribute writer method with validation
198
207
  # @param [Object] limit Value to be assigned
199
208
  def limit=(limit)
209
+ if !limit.nil? && limit > 1000
210
+ fail ArgumentError, 'invalid value for "limit", must be smaller than or equal to 1000.'
211
+ end
212
+
200
213
  if !limit.nil? && limit < 0
201
214
  fail ArgumentError, 'invalid value for "limit", must be greater than or equal to 0.'
202
215
  end
@@ -215,7 +228,7 @@ module IonoscloudDbaasMongo
215
228
  items == o.items &&
216
229
  offset == o.offset &&
217
230
  limit == o.limit &&
218
- _links == o._links
231
+ links == o.links
219
232
  end
220
233
 
221
234
  # @see the `==` method
@@ -227,7 +240,7 @@ module IonoscloudDbaasMongo
227
240
  # Calculates hash code according to all attributes.
228
241
  # @return [Integer] Hash code
229
242
  def hash
230
- [type, id, items, offset, limit, _links].hash
243
+ [type, id, items, offset, limit, links].hash
231
244
  end
232
245
 
233
246
  # Builds the object from hash
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #IONOS DBaaS MongoDB REST API
3
3
 
4
- #With IONOS Cloud Database as a Service, you have the ability to quickly set up and manage a MongoDB database. You can also delete clusters, manage backups and users via the API. MongoDB is an open source, cross-platform, document-oriented database program. Classified as a NoSQL database program, it uses JSON-like documents with optional schemas. The MongoDB API allows you to create additional database clusters or modify existing ones. Both tools, the Data Center Designer (DCD) and the API use the same concepts consistently and are well suited for smooth and intuitive use.
4
+ #With IONOS Cloud Database as a Service, you have the ability to quickly set up and manage a MongoDB database. You can also delete clusters, manage backups and users via the API. MongoDB is an open source, cross-platform, document-oriented database program. Classified as a NoSQL database program, it uses JSON-like documents with optional schemas. The MongoDB API allows you to create additional database clusters or modify existing ones. Both tools, the Data Center Designer (DCD) and the API use the same concepts consistently and are well suited for smooth and intuitive use.
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
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #IONOS DBaaS MongoDB REST API
3
3
 
4
- #With IONOS Cloud Database as a Service, you have the ability to quickly set up and manage a MongoDB database. You can also delete clusters, manage backups and users via the API. MongoDB is an open source, cross-platform, document-oriented database program. Classified as a NoSQL database program, it uses JSON-like documents with optional schemas. The MongoDB API allows you to create additional database clusters or modify existing ones. Both tools, the Data Center Designer (DCD) and the API use the same concepts consistently and are well suited for smooth and intuitive use.
4
+ #With IONOS Cloud Database as a Service, you have the ability to quickly set up and manage a MongoDB database. You can also delete clusters, manage backups and users via the API. MongoDB is an open source, cross-platform, document-oriented database program. Classified as a NoSQL database program, it uses JSON-like documents with optional schemas. The MongoDB API allows you to create additional database clusters or modify existing ones. Both tools, the Data Center Designer (DCD) and the API use the same concepts consistently and are well suited for smooth and intuitive use.
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
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #IONOS DBaaS MongoDB REST API
3
3
 
4
- #With IONOS Cloud Database as a Service, you have the ability to quickly set up and manage a MongoDB database. You can also delete clusters, manage backups and users via the API. MongoDB is an open source, cross-platform, document-oriented database program. Classified as a NoSQL database program, it uses JSON-like documents with optional schemas. The MongoDB API allows you to create additional database clusters or modify existing ones. Both tools, the Data Center Designer (DCD) and the API use the same concepts consistently and are well suited for smooth and intuitive use.
4
+ #With IONOS Cloud Database as a Service, you have the ability to quickly set up and manage a MongoDB database. You can also delete clusters, manage backups and users via the API. MongoDB is an open source, cross-platform, document-oriented database program. Classified as a NoSQL database program, it uses JSON-like documents with optional schemas. The MongoDB API allows you to create additional database clusters or modify existing ones. Both tools, the Data Center Designer (DCD) and the API use the same concepts consistently and are well suited for smooth and intuitive use.
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,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module IonoscloudDbaasMongo
17
- # A database snapshost.
17
+ # A database snapshot.
18
18
  class SnapshotResponse
19
19
 
20
20
  attr_accessor :type
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #IONOS DBaaS MongoDB REST API
3
3
 
4
- #With IONOS Cloud Database as a Service, you have the ability to quickly set up and manage a MongoDB database. You can also delete clusters, manage backups and users via the API. MongoDB is an open source, cross-platform, document-oriented database program. Classified as a NoSQL database program, it uses JSON-like documents with optional schemas. The MongoDB API allows you to create additional database clusters or modify existing ones. Both tools, the Data Center Designer (DCD) and the API use the same concepts consistently and are well suited for smooth and intuitive use.
4
+ #With IONOS Cloud Database as a Service, you have the ability to quickly set up and manage a MongoDB database. You can also delete clusters, manage backups and users via the API. MongoDB is an open source, cross-platform, document-oriented database program. Classified as a NoSQL database program, it uses JSON-like documents with optional schemas. The MongoDB API allows you to create additional database clusters or modify existing ones. Both tools, the Data Center Designer (DCD) and the API use the same concepts consistently and are well suited for smooth and intuitive use.
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
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #IONOS DBaaS MongoDB REST API
3
3
 
4
- #With IONOS Cloud Database as a Service, you have the ability to quickly set up and manage a MongoDB database. You can also delete clusters, manage backups and users via the API. MongoDB is an open source, cross-platform, document-oriented database program. Classified as a NoSQL database program, it uses JSON-like documents with optional schemas. The MongoDB API allows you to create additional database clusters or modify existing ones. Both tools, the Data Center Designer (DCD) and the API use the same concepts consistently and are well suited for smooth and intuitive use.
4
+ #With IONOS Cloud Database as a Service, you have the ability to quickly set up and manage a MongoDB database. You can also delete clusters, manage backups and users via the API. MongoDB is an open source, cross-platform, document-oriented database program. Classified as a NoSQL database program, it uses JSON-like documents with optional schemas. The MongoDB API allows you to create additional database clusters or modify existing ones. Both tools, the Data Center Designer (DCD) and the API use the same concepts consistently and are well suited for smooth and intuitive use.
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
@@ -27,15 +27,15 @@ module IonoscloudDbaasMongo
27
27
  attr_accessor :items
28
28
 
29
29
 
30
- # The offset specified in the request (if none was specified, the default offset is 0) (not implemented yet).
30
+ # The offset specified in the request (if none was specified, the default offset is 0).
31
31
  attr_accessor :offset
32
32
 
33
33
 
34
- # The limit specified in the request (if none was specified, use the endpoint's default pagination limit) (not implemented yet, always return number of items).
34
+ # The limit specified in the request (if none was specified, the default limit is 100).
35
35
  attr_accessor :limit
36
36
 
37
37
 
38
- attr_accessor :_links
38
+ attr_accessor :links
39
39
 
40
40
  # Attribute mapping from ruby-style variable name to JSON key.
41
41
  def self.attribute_map
@@ -51,7 +51,7 @@ module IonoscloudDbaasMongo
51
51
 
52
52
  :'limit' => :'limit',
53
53
 
54
- :'_links' => :'_links'
54
+ :'links' => :'links'
55
55
  }
56
56
  end
57
57
 
@@ -74,7 +74,7 @@ module IonoscloudDbaasMongo
74
74
 
75
75
  :'limit' => :'Integer',
76
76
 
77
- :'_links' => :'PaginationLinks'
77
+ :'links' => :'PaginationLinks'
78
78
  }
79
79
  end
80
80
 
@@ -131,16 +131,20 @@ module IonoscloudDbaasMongo
131
131
 
132
132
  if attributes.key?(:'offset')
133
133
  self.offset = attributes[:'offset']
134
+ else
135
+ self.offset = 0
134
136
  end
135
137
 
136
138
 
137
139
  if attributes.key?(:'limit')
138
140
  self.limit = attributes[:'limit']
141
+ else
142
+ self.limit = 100
139
143
  end
140
144
 
141
145
 
142
- if attributes.key?(:'_links')
143
- self._links = attributes[:'_links']
146
+ if attributes.key?(:'links')
147
+ self.links = attributes[:'links']
144
148
  end
145
149
  end
146
150
 
@@ -157,6 +161,10 @@ module IonoscloudDbaasMongo
157
161
  end
158
162
 
159
163
 
164
+ if !@limit.nil? && @limit > 1000
165
+ invalid_properties.push('invalid value for "limit", must be smaller than or equal to 1000.')
166
+ end
167
+
160
168
  if !@limit.nil? && @limit < 0
161
169
  invalid_properties.push('invalid value for "limit", must be greater than or equal to 0.')
162
170
  end
@@ -174,6 +182,7 @@ module IonoscloudDbaasMongo
174
182
 
175
183
  return false if !@offset.nil? && @offset < 0
176
184
 
185
+ return false if !@limit.nil? && @limit > 1000
177
186
  return false if !@limit.nil? && @limit < 0
178
187
 
179
188
  true
@@ -197,6 +206,10 @@ module IonoscloudDbaasMongo
197
206
  # Custom attribute writer method with validation
198
207
  # @param [Object] limit Value to be assigned
199
208
  def limit=(limit)
209
+ if !limit.nil? && limit > 1000
210
+ fail ArgumentError, 'invalid value for "limit", must be smaller than or equal to 1000.'
211
+ end
212
+
200
213
  if !limit.nil? && limit < 0
201
214
  fail ArgumentError, 'invalid value for "limit", must be greater than or equal to 0.'
202
215
  end
@@ -215,7 +228,7 @@ module IonoscloudDbaasMongo
215
228
  items == o.items &&
216
229
  offset == o.offset &&
217
230
  limit == o.limit &&
218
- _links == o._links
231
+ links == o.links
219
232
  end
220
233
 
221
234
  # @see the `==` method
@@ -227,7 +240,7 @@ module IonoscloudDbaasMongo
227
240
  # Calculates hash code according to all attributes.
228
241
  # @return [Integer] Hash code
229
242
  def hash
230
- [type, id, items, offset, limit, _links].hash
243
+ [type, id, items, offset, limit, links].hash
231
244
  end
232
245
 
233
246
  # Builds the object from hash
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #IONOS DBaaS MongoDB REST API
3
3
 
4
- #With IONOS Cloud Database as a Service, you have the ability to quickly set up and manage a MongoDB database. You can also delete clusters, manage backups and users via the API. MongoDB is an open source, cross-platform, document-oriented database program. Classified as a NoSQL database program, it uses JSON-like documents with optional schemas. The MongoDB API allows you to create additional database clusters or modify existing ones. Both tools, the Data Center Designer (DCD) and the API use the same concepts consistently and are well suited for smooth and intuitive use.
4
+ #With IONOS Cloud Database as a Service, you have the ability to quickly set up and manage a MongoDB database. You can also delete clusters, manage backups and users via the API. MongoDB is an open source, cross-platform, document-oriented database program. Classified as a NoSQL database program, it uses JSON-like documents with optional schemas. The MongoDB API allows you to create additional database clusters or modify existing ones. Both tools, the Data Center Designer (DCD) and the API use the same concepts consistently and are well suited for smooth and intuitive use.
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
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #IONOS DBaaS MongoDB REST API
3
3
 
4
- #With IONOS Cloud Database as a Service, you have the ability to quickly set up and manage a MongoDB database. You can also delete clusters, manage backups and users via the API. MongoDB is an open source, cross-platform, document-oriented database program. Classified as a NoSQL database program, it uses JSON-like documents with optional schemas. The MongoDB API allows you to create additional database clusters or modify existing ones. Both tools, the Data Center Designer (DCD) and the API use the same concepts consistently and are well suited for smooth and intuitive use.
4
+ #With IONOS Cloud Database as a Service, you have the ability to quickly set up and manage a MongoDB database. You can also delete clusters, manage backups and users via the API. MongoDB is an open source, cross-platform, document-oriented database program. Classified as a NoSQL database program, it uses JSON-like documents with optional schemas. The MongoDB API allows you to create additional database clusters or modify existing ones. Both tools, the Data Center Designer (DCD) and the API use the same concepts consistently and are well suited for smooth and intuitive use.
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
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #IONOS DBaaS MongoDB REST API
3
3
 
4
- #With IONOS Cloud Database as a Service, you have the ability to quickly set up and manage a MongoDB database. You can also delete clusters, manage backups and users via the API. MongoDB is an open source, cross-platform, document-oriented database program. Classified as a NoSQL database program, it uses JSON-like documents with optional schemas. The MongoDB API allows you to create additional database clusters or modify existing ones. Both tools, the Data Center Designer (DCD) and the API use the same concepts consistently and are well suited for smooth and intuitive use.
4
+ #With IONOS Cloud Database as a Service, you have the ability to quickly set up and manage a MongoDB database. You can also delete clusters, manage backups and users via the API. MongoDB is an open source, cross-platform, document-oriented database program. Classified as a NoSQL database program, it uses JSON-like documents with optional schemas. The MongoDB API allows you to create additional database clusters or modify existing ones. Both tools, the Data Center Designer (DCD) and the API use the same concepts consistently and are well suited for smooth and intuitive use.
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
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #IONOS DBaaS MongoDB REST API
3
3
 
4
- #With IONOS Cloud Database as a Service, you have the ability to quickly set up and manage a MongoDB database. You can also delete clusters, manage backups and users via the API. MongoDB is an open source, cross-platform, document-oriented database program. Classified as a NoSQL database program, it uses JSON-like documents with optional schemas. The MongoDB API allows you to create additional database clusters or modify existing ones. Both tools, the Data Center Designer (DCD) and the API use the same concepts consistently and are well suited for smooth and intuitive use.
4
+ #With IONOS Cloud Database as a Service, you have the ability to quickly set up and manage a MongoDB database. You can also delete clusters, manage backups and users via the API. MongoDB is an open source, cross-platform, document-oriented database program. Classified as a NoSQL database program, it uses JSON-like documents with optional schemas. The MongoDB API allows you to create additional database clusters or modify existing ones. Both tools, the Data Center Designer (DCD) and the API use the same concepts consistently and are well suited for smooth and intuitive use.
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
@@ -28,32 +28,6 @@ module IonoscloudDbaasMongo
28
28
  # The ID of the user who created the resource.
29
29
  attr_accessor :created_by_user_id
30
30
 
31
-
32
- # The user state.
33
- attr_accessor :state
34
-
35
- class EnumAttributeValidator
36
- attr_reader :datatype
37
- attr_reader :allowable_values
38
-
39
- def initialize(datatype, allowable_values)
40
- @allowable_values = allowable_values.map do |value|
41
- case datatype.to_s
42
- when /Integer/i
43
- value.to_i
44
- when /Float/i
45
- value.to_f
46
- else
47
- value
48
- end
49
- end
50
- end
51
-
52
- def valid?(value)
53
- !value || allowable_values.include?(value)
54
- end
55
- end
56
-
57
31
  # Attribute mapping from ruby-style variable name to JSON key.
58
32
  def self.attribute_map
59
33
  {
@@ -62,9 +36,7 @@ module IonoscloudDbaasMongo
62
36
 
63
37
  :'created_by' => :'createdBy',
64
38
 
65
- :'created_by_user_id' => :'createdByUserId',
66
-
67
- :'state' => :'state'
39
+ :'created_by_user_id' => :'createdByUserId'
68
40
  }
69
41
  end
70
42
 
@@ -81,9 +53,7 @@ module IonoscloudDbaasMongo
81
53
 
82
54
  :'created_by' => :'String',
83
55
 
84
- :'created_by_user_id' => :'String',
85
-
86
- :'state' => :'String'
56
+ :'created_by_user_id' => :'String'
87
57
  }
88
58
  end
89
59
 
@@ -93,7 +63,6 @@ module IonoscloudDbaasMongo
93
63
 
94
64
 
95
65
 
96
-
97
66
  ])
98
67
  end
99
68
 
@@ -126,11 +95,6 @@ module IonoscloudDbaasMongo
126
95
  if attributes.key?(:'created_by_user_id')
127
96
  self.created_by_user_id = attributes[:'created_by_user_id']
128
97
  end
129
-
130
-
131
- if attributes.key?(:'state')
132
- self.state = attributes[:'state']
133
- end
134
98
  end
135
99
 
136
100
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -140,7 +104,6 @@ module IonoscloudDbaasMongo
140
104
 
141
105
 
142
106
 
143
-
144
107
  invalid_properties
145
108
  end
146
109
 
@@ -150,26 +113,12 @@ module IonoscloudDbaasMongo
150
113
 
151
114
 
152
115
 
153
-
154
- state_validator = EnumAttributeValidator.new('String', ["AVAILABLE", "CREATING", "DESTROYING"])
155
- return false unless state_validator.valid?(@state)
156
116
  true
157
117
  end
158
118
 
159
119
 
160
120
 
161
121
 
162
-
163
- # Custom attribute writer method checking allowed values (enum).
164
- # @param [Object] state Object to be assigned
165
- def state=(state)
166
- validator = EnumAttributeValidator.new('String', ["AVAILABLE", "CREATING", "DESTROYING"])
167
- unless validator.valid?(state)
168
- fail ArgumentError, "invalid value for \"state\", must be one of #{validator.allowable_values}."
169
- end
170
- @state = state
171
- end
172
-
173
122
  # Checks equality by comparing each attribute.
174
123
  # @param [Object] Object to be compared
175
124
  def ==(o)
@@ -177,8 +126,7 @@ module IonoscloudDbaasMongo
177
126
  self.class == o.class &&
178
127
  created_date == o.created_date &&
179
128
  created_by == o.created_by &&
180
- created_by_user_id == o.created_by_user_id &&
181
- state == o.state
129
+ created_by_user_id == o.created_by_user_id
182
130
  end
183
131
 
184
132
  # @see the `==` method
@@ -190,7 +138,7 @@ module IonoscloudDbaasMongo
190
138
  # Calculates hash code according to all attributes.
191
139
  # @return [Integer] Hash code
192
140
  def hash
193
- [created_date, created_by, created_by_user_id, state].hash
141
+ [created_date, created_by, created_by_user_id].hash
194
142
  end
195
143
 
196
144
  # Builds the object from hash
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #IONOS DBaaS MongoDB REST API
3
3
 
4
- #With IONOS Cloud Database as a Service, you have the ability to quickly set up and manage a MongoDB database. You can also delete clusters, manage backups and users via the API. MongoDB is an open source, cross-platform, document-oriented database program. Classified as a NoSQL database program, it uses JSON-like documents with optional schemas. The MongoDB API allows you to create additional database clusters or modify existing ones. Both tools, the Data Center Designer (DCD) and the API use the same concepts consistently and are well suited for smooth and intuitive use.
4
+ #With IONOS Cloud Database as a Service, you have the ability to quickly set up and manage a MongoDB database. You can also delete clusters, manage backups and users via the API. MongoDB is an open source, cross-platform, document-oriented database program. Classified as a NoSQL database program, it uses JSON-like documents with optional schemas. The MongoDB API allows you to create additional database clusters or modify existing ones. Both tools, the Data Center Designer (DCD) and the API use the same concepts consistently and are well suited for smooth and intuitive use.
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
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #IONOS DBaaS MongoDB REST API
3
3
 
4
- #With IONOS Cloud Database as a Service, you have the ability to quickly set up and manage a MongoDB database. You can also delete clusters, manage backups and users via the API. MongoDB is an open source, cross-platform, document-oriented database program. Classified as a NoSQL database program, it uses JSON-like documents with optional schemas. The MongoDB API allows you to create additional database clusters or modify existing ones. Both tools, the Data Center Designer (DCD) and the API use the same concepts consistently and are well suited for smooth and intuitive use.
4
+ #With IONOS Cloud Database as a Service, you have the ability to quickly set up and manage a MongoDB database. You can also delete clusters, manage backups and users via the API. MongoDB is an open source, cross-platform, document-oriented database program. Classified as a NoSQL database program, it uses JSON-like documents with optional schemas. The MongoDB API allows you to create additional database clusters or modify existing ones. Both tools, the Data Center Designer (DCD) and the API use the same concepts consistently and are well suited for smooth and intuitive use.
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
@@ -116,7 +116,7 @@ module IonoscloudDbaasMongo
116
116
  # @return true if the model is valid
117
117
  def valid?
118
118
 
119
- role_validator = EnumAttributeValidator.new('String', ["read", "readWrite", "readAnyDatabase"])
119
+ role_validator = EnumAttributeValidator.new('String', ["read", "readWrite", "dbAdmin", "clusterMonitor", "readAnyDatabase", "readWriteAnyDatabase", "dbAdminAnyDatabase"])
120
120
  return false unless role_validator.valid?(@role)
121
121
 
122
122
  true
@@ -126,7 +126,7 @@ module IonoscloudDbaasMongo
126
126
  # Custom attribute writer method checking allowed values (enum).
127
127
  # @param [Object] role Object to be assigned
128
128
  def role=(role)
129
- validator = EnumAttributeValidator.new('String', ["read", "readWrite", "readAnyDatabase"])
129
+ validator = EnumAttributeValidator.new('String', ["read", "readWrite", "dbAdmin", "clusterMonitor", "readAnyDatabase", "readWriteAnyDatabase", "dbAdminAnyDatabase"])
130
130
  unless validator.valid?(role)
131
131
  fail ArgumentError, "invalid value for \"role\", must be one of #{validator.allowable_values}."
132
132
  end
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #IONOS DBaaS MongoDB REST API
3
3
 
4
- #With IONOS Cloud Database as a Service, you have the ability to quickly set up and manage a MongoDB database. You can also delete clusters, manage backups and users via the API. MongoDB is an open source, cross-platform, document-oriented database program. Classified as a NoSQL database program, it uses JSON-like documents with optional schemas. The MongoDB API allows you to create additional database clusters or modify existing ones. Both tools, the Data Center Designer (DCD) and the API use the same concepts consistently and are well suited for smooth and intuitive use.
4
+ #With IONOS Cloud Database as a Service, you have the ability to quickly set up and manage a MongoDB database. You can also delete clusters, manage backups and users via the API. MongoDB is an open source, cross-platform, document-oriented database program. Classified as a NoSQL database program, it uses JSON-like documents with optional schemas. The MongoDB API allows you to create additional database clusters or modify existing ones. Both tools, the Data Center Designer (DCD) and the API use the same concepts consistently and are well suited for smooth and intuitive use.
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
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #IONOS DBaaS MongoDB REST API
3
3
 
4
- #With IONOS Cloud Database as a Service, you have the ability to quickly set up and manage a MongoDB database. You can also delete clusters, manage backups and users via the API. MongoDB is an open source, cross-platform, document-oriented database program. Classified as a NoSQL database program, it uses JSON-like documents with optional schemas. The MongoDB API allows you to create additional database clusters or modify existing ones. Both tools, the Data Center Designer (DCD) and the API use the same concepts consistently and are well suited for smooth and intuitive use.
4
+ #With IONOS Cloud Database as a Service, you have the ability to quickly set up and manage a MongoDB database. You can also delete clusters, manage backups and users via the API. MongoDB is an open source, cross-platform, document-oriented database program. Classified as a NoSQL database program, it uses JSON-like documents with optional schemas. The MongoDB API allows you to create additional database clusters or modify existing ones. Both tools, the Data Center Designer (DCD) and the API use the same concepts consistently and are well suited for smooth and intuitive use.
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
@@ -11,5 +11,5 @@ OpenAPI Generator version: 5.2.1-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module IonoscloudDbaasMongo
14
- VERSION = '1.1.0'
14
+ VERSION = '1.2.1'
15
15
  end
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #IONOS DBaaS MongoDB REST API
3
3
 
4
- #With IONOS Cloud Database as a Service, you have the ability to quickly set up and manage a MongoDB database. You can also delete clusters, manage backups and users via the API. MongoDB is an open source, cross-platform, document-oriented database program. Classified as a NoSQL database program, it uses JSON-like documents with optional schemas. The MongoDB API allows you to create additional database clusters or modify existing ones. Both tools, the Data Center Designer (DCD) and the API use the same concepts consistently and are well suited for smooth and intuitive use.
4
+ #With IONOS Cloud Database as a Service, you have the ability to quickly set up and manage a MongoDB database. You can also delete clusters, manage backups and users via the API. MongoDB is an open source, cross-platform, document-oriented database program. Classified as a NoSQL database program, it uses JSON-like documents with optional schemas. The MongoDB API allows you to create additional database clusters or modify existing ones. Both tools, the Data Center Designer (DCD) and the API use the same concepts consistently and are well suited for smooth and intuitive use.
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
@@ -32,6 +32,7 @@ require 'ionoscloud-dbaas-mongo/models/create_restore_request'
32
32
  require 'ionoscloud-dbaas-mongo/models/day_of_the_week'
33
33
  require 'ionoscloud-dbaas-mongo/models/error_message'
34
34
  require 'ionoscloud-dbaas-mongo/models/error_response'
35
+ require 'ionoscloud-dbaas-mongo/models/health'
35
36
  require 'ionoscloud-dbaas-mongo/models/maintenance_window'
36
37
  require 'ionoscloud-dbaas-mongo/models/metadata'
37
38
  require 'ionoscloud-dbaas-mongo/models/pagination'
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #IONOS DBaaS MongoDB REST API
3
3
 
4
- #With IONOS Cloud Database as a Service, you have the ability to quickly set up and manage a MongoDB database. You can also delete clusters, manage backups and users via the API. MongoDB is an open source, cross-platform, document-oriented database program. Classified as a NoSQL database program, it uses JSON-like documents with optional schemas. The MongoDB API allows you to create additional database clusters or modify existing ones. Both tools, the Data Center Designer (DCD) and the API use the same concepts consistently and are well suited for smooth and intuitive use.
4
+ #With IONOS Cloud Database as a Service, you have the ability to quickly set up and manage a MongoDB database. You can also delete clusters, manage backups and users via the API. MongoDB is an open source, cross-platform, document-oriented database program. Classified as a NoSQL database program, it uses JSON-like documents with optional schemas. The MongoDB API allows you to create additional database clusters or modify existing ones. Both tools, the Data Center Designer (DCD) and the API use the same concepts consistently and are well suited for smooth and intuitive use.
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
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #IONOS DBaaS MongoDB REST API
3
3
 
4
- #With IONOS Cloud Database as a Service, you have the ability to quickly set up and manage a MongoDB database. You can also delete clusters, manage backups and users via the API. MongoDB is an open source, cross-platform, document-oriented database program. Classified as a NoSQL database program, it uses JSON-like documents with optional schemas. The MongoDB API allows you to create additional database clusters or modify existing ones. Both tools, the Data Center Designer (DCD) and the API use the same concepts consistently and are well suited for smooth and intuitive use.
4
+ #With IONOS Cloud Database as a Service, you have the ability to quickly set up and manage a MongoDB database. You can also delete clusters, manage backups and users via the API. MongoDB is an open source, cross-platform, document-oriented database program. Classified as a NoSQL database program, it uses JSON-like documents with optional schemas. The MongoDB API allows you to create additional database clusters or modify existing ones. Both tools, the Data Center Designer (DCD) and the API use the same concepts consistently and are well suited for smooth and intuitive use.
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