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.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/docs/CHANGELOG.md +38 -0
- data/docs/api/ClustersApi.md +11 -7
- data/docs/api/LogsApi.md +1 -1
- data/docs/api/MetadataApi.md +2 -2
- data/docs/api/RestoresApi.md +1 -1
- data/docs/api/SnapshotsApi.md +11 -5
- data/docs/api/TemplatesApi.md +13 -6
- data/docs/api/UsersApi.md +37 -37
- data/docs/models/ClusterList.md +6 -6
- data/docs/models/ClusterResponse.md +1 -1
- data/docs/models/Health.md +15 -0
- data/docs/models/Metadata.md +3 -1
- data/docs/models/Pagination.md +6 -6
- data/docs/models/SnapshotList.md +6 -6
- data/docs/models/SnapshotResponse.md +1 -1
- data/docs/models/TemplateList.md +6 -6
- data/docs/models/User.md +1 -1
- data/docs/models/UserMetadata.md +1 -3
- data/ionoscloud-dbaas-mongo.gemspec +3 -3
- data/lib/ionoscloud-dbaas-mongo/api/clusters_api.rb +16 -2
- data/lib/ionoscloud-dbaas-mongo/api/logs_api.rb +2 -2
- data/lib/ionoscloud-dbaas-mongo/api/metadata_api.rb +2 -2
- data/lib/ionoscloud-dbaas-mongo/api/restores_api.rb +2 -2
- data/lib/ionoscloud-dbaas-mongo/api/snapshots_api.rb +16 -2
- data/lib/ionoscloud-dbaas-mongo/api/templates_api.rb +16 -2
- data/lib/ionoscloud-dbaas-mongo/api/users_api.rb +32 -36
- data/lib/ionoscloud-dbaas-mongo/api_client.rb +3 -3
- data/lib/ionoscloud-dbaas-mongo/api_error.rb +2 -2
- data/lib/ionoscloud-dbaas-mongo/configuration.rb +2 -2
- data/lib/ionoscloud-dbaas-mongo/models/api_version.rb +2 -2
- data/lib/ionoscloud-dbaas-mongo/models/cluster_list.rb +24 -11
- data/lib/ionoscloud-dbaas-mongo/models/cluster_list_all_of.rb +2 -2
- data/lib/ionoscloud-dbaas-mongo/models/cluster_logs.rb +2 -2
- data/lib/ionoscloud-dbaas-mongo/models/cluster_logs_instances.rb +2 -2
- data/lib/ionoscloud-dbaas-mongo/models/cluster_logs_messages.rb +2 -2
- data/lib/ionoscloud-dbaas-mongo/models/cluster_properties.rb +2 -2
- data/lib/ionoscloud-dbaas-mongo/models/cluster_response.rb +2 -2
- data/lib/ionoscloud-dbaas-mongo/models/connection.rb +2 -2
- data/lib/ionoscloud-dbaas-mongo/models/create_cluster_properties.rb +2 -2
- data/lib/ionoscloud-dbaas-mongo/models/create_cluster_request.rb +2 -2
- data/lib/ionoscloud-dbaas-mongo/models/create_restore_request.rb +2 -2
- data/lib/ionoscloud-dbaas-mongo/models/day_of_the_week.rb +2 -2
- data/lib/ionoscloud-dbaas-mongo/models/error_message.rb +2 -2
- data/lib/ionoscloud-dbaas-mongo/models/error_response.rb +2 -2
- data/lib/ionoscloud-dbaas-mongo/models/health.rb +39 -0
- data/lib/ionoscloud-dbaas-mongo/models/maintenance_window.rb +2 -2
- data/lib/ionoscloud-dbaas-mongo/models/metadata.rb +23 -6
- data/lib/ionoscloud-dbaas-mongo/models/pagination.rb +24 -11
- data/lib/ionoscloud-dbaas-mongo/models/pagination_links.rb +3 -3
- data/lib/ionoscloud-dbaas-mongo/models/patch_cluster_properties.rb +2 -2
- data/lib/ionoscloud-dbaas-mongo/models/patch_cluster_request.rb +2 -2
- data/lib/ionoscloud-dbaas-mongo/models/patch_user_properties.rb +2 -2
- data/lib/ionoscloud-dbaas-mongo/models/patch_user_request.rb +2 -2
- data/lib/ionoscloud-dbaas-mongo/models/resource_type.rb +2 -2
- data/lib/ionoscloud-dbaas-mongo/models/snapshot_list.rb +24 -11
- data/lib/ionoscloud-dbaas-mongo/models/snapshot_list_all_of.rb +2 -2
- data/lib/ionoscloud-dbaas-mongo/models/snapshot_properties.rb +2 -2
- data/lib/ionoscloud-dbaas-mongo/models/snapshot_response.rb +3 -3
- data/lib/ionoscloud-dbaas-mongo/models/state.rb +2 -2
- data/lib/ionoscloud-dbaas-mongo/models/template_list.rb +24 -11
- data/lib/ionoscloud-dbaas-mongo/models/template_list_all_of.rb +2 -2
- data/lib/ionoscloud-dbaas-mongo/models/template_response.rb +2 -2
- data/lib/ionoscloud-dbaas-mongo/models/user.rb +2 -2
- data/lib/ionoscloud-dbaas-mongo/models/user_metadata.rb +6 -58
- data/lib/ionoscloud-dbaas-mongo/models/user_properties.rb +2 -2
- data/lib/ionoscloud-dbaas-mongo/models/user_roles.rb +4 -4
- data/lib/ionoscloud-dbaas-mongo/models/users_list.rb +2 -2
- data/lib/ionoscloud-dbaas-mongo/version.rb +3 -3
- data/lib/ionoscloud-dbaas-mongo.rb +3 -2
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +2 -2
- data/spec/spec_helper.rb +2 -2
- 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.
|
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:
|
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)
|
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,
|
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 :
|
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
|
-
:'
|
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
|
-
:'
|
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?(:'
|
143
|
-
self.
|
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
|
-
|
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,
|
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.
|
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:
|
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.
|
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:
|
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.
|
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:
|
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.
|
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:
|
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.
|
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:
|
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.
|
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:
|
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.
|
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:
|
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.
|
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:
|
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.
|
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:
|
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.
|
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:
|
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.
|
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:
|
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.
|
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:
|
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.
|
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:
|
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
|
@@ -0,0 +1,39 @@
|
|
1
|
+
=begin
|
2
|
+
#IONOS DBaaS MongoDB REST API
|
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.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.2.1-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module IonoscloudDbaasMongo
|
17
|
+
class Health
|
18
|
+
HEALTHY = "HEALTHY".freeze
|
19
|
+
UNHEALTHY = "UNHEALTHY".freeze
|
20
|
+
DEGRADED = "DEGRADED".freeze
|
21
|
+
UNKNOWN = "UNKNOWN".freeze
|
22
|
+
|
23
|
+
# Builds the enum from string
|
24
|
+
# @param [String] The enum value in the form of the string
|
25
|
+
# @return [String] The enum value
|
26
|
+
def self.build_from_hash(value)
|
27
|
+
new.build_from_hash(value)
|
28
|
+
end
|
29
|
+
|
30
|
+
# Builds the enum from string
|
31
|
+
# @param [String] The enum value in the form of the string
|
32
|
+
# @return [String] The enum value
|
33
|
+
def build_from_hash(value)
|
34
|
+
constantValues = Health.constants.select { |c| Health::const_get(c) == value }
|
35
|
+
raise "Invalid ENUM value #{value} for class #Health" if constantValues.empty?
|
36
|
+
value
|
37
|
+
end
|
38
|
+
end
|
39
|
+
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.
|
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:
|
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.
|
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:
|
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
|
@@ -43,6 +43,9 @@ module IonoscloudDbaasMongo
|
|
43
43
|
|
44
44
|
attr_accessor :state
|
45
45
|
|
46
|
+
|
47
|
+
attr_accessor :health
|
48
|
+
|
46
49
|
# Attribute mapping from ruby-style variable name to JSON key.
|
47
50
|
def self.attribute_map
|
48
51
|
{
|
@@ -59,7 +62,9 @@ module IonoscloudDbaasMongo
|
|
59
62
|
|
60
63
|
:'last_modified_by_user_id' => :'lastModifiedByUserId',
|
61
64
|
|
62
|
-
:'state' => :'state'
|
65
|
+
:'state' => :'state',
|
66
|
+
|
67
|
+
:'health' => :'health'
|
63
68
|
}
|
64
69
|
end
|
65
70
|
|
@@ -84,7 +89,9 @@ module IonoscloudDbaasMongo
|
|
84
89
|
|
85
90
|
:'last_modified_by_user_id' => :'String',
|
86
91
|
|
87
|
-
:'state' => :'State'
|
92
|
+
:'state' => :'State',
|
93
|
+
|
94
|
+
:'health' => :'Health'
|
88
95
|
}
|
89
96
|
end
|
90
97
|
|
@@ -98,6 +105,7 @@ module IonoscloudDbaasMongo
|
|
98
105
|
|
99
106
|
|
100
107
|
|
108
|
+
|
101
109
|
])
|
102
110
|
end
|
103
111
|
|
@@ -150,6 +158,11 @@ module IonoscloudDbaasMongo
|
|
150
158
|
if attributes.key?(:'state')
|
151
159
|
self.state = attributes[:'state']
|
152
160
|
end
|
161
|
+
|
162
|
+
|
163
|
+
if attributes.key?(:'health')
|
164
|
+
self.health = attributes[:'health']
|
165
|
+
end
|
153
166
|
end
|
154
167
|
|
155
168
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -163,6 +176,7 @@ module IonoscloudDbaasMongo
|
|
163
176
|
|
164
177
|
|
165
178
|
|
179
|
+
|
166
180
|
invalid_properties
|
167
181
|
end
|
168
182
|
|
@@ -176,6 +190,7 @@ module IonoscloudDbaasMongo
|
|
176
190
|
|
177
191
|
|
178
192
|
|
193
|
+
|
179
194
|
true
|
180
195
|
end
|
181
196
|
|
@@ -186,6 +201,7 @@ module IonoscloudDbaasMongo
|
|
186
201
|
|
187
202
|
|
188
203
|
|
204
|
+
|
189
205
|
# Checks equality by comparing each attribute.
|
190
206
|
# @param [Object] Object to be compared
|
191
207
|
def ==(o)
|
@@ -197,7 +213,8 @@ module IonoscloudDbaasMongo
|
|
197
213
|
last_modified_date == o.last_modified_date &&
|
198
214
|
last_modified_by == o.last_modified_by &&
|
199
215
|
last_modified_by_user_id == o.last_modified_by_user_id &&
|
200
|
-
state == o.state
|
216
|
+
state == o.state &&
|
217
|
+
health == o.health
|
201
218
|
end
|
202
219
|
|
203
220
|
# @see the `==` method
|
@@ -209,7 +226,7 @@ module IonoscloudDbaasMongo
|
|
209
226
|
# Calculates hash code according to all attributes.
|
210
227
|
# @return [Integer] Hash code
|
211
228
|
def hash
|
212
|
-
[created_date, created_by, created_by_user_id, last_modified_date, last_modified_by, last_modified_by_user_id, state].hash
|
229
|
+
[created_date, created_by, created_by_user_id, last_modified_date, last_modified_by, last_modified_by_user_id, state, health].hash
|
213
230
|
end
|
214
231
|
|
215
232
|
# 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.
|
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:
|
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,15 +16,15 @@ require 'time'
|
|
16
16
|
module IonoscloudDbaasMongo
|
17
17
|
class Pagination
|
18
18
|
|
19
|
-
# The offset specified in the request (if none was specified, the default offset is 0)
|
19
|
+
# The offset specified in the request (if none was specified, the default offset is 0).
|
20
20
|
attr_accessor :offset
|
21
21
|
|
22
22
|
|
23
|
-
# The limit specified in the request (if none was specified,
|
23
|
+
# The limit specified in the request (if none was specified, the default limit is 100).
|
24
24
|
attr_accessor :limit
|
25
25
|
|
26
26
|
|
27
|
-
attr_accessor :
|
27
|
+
attr_accessor :links
|
28
28
|
|
29
29
|
# Attribute mapping from ruby-style variable name to JSON key.
|
30
30
|
def self.attribute_map
|
@@ -34,7 +34,7 @@ module IonoscloudDbaasMongo
|
|
34
34
|
|
35
35
|
:'limit' => :'limit',
|
36
36
|
|
37
|
-
:'
|
37
|
+
:'links' => :'links'
|
38
38
|
}
|
39
39
|
end
|
40
40
|
|
@@ -51,7 +51,7 @@ module IonoscloudDbaasMongo
|
|
51
51
|
|
52
52
|
:'limit' => :'Integer',
|
53
53
|
|
54
|
-
:'
|
54
|
+
:'links' => :'PaginationLinks'
|
55
55
|
}
|
56
56
|
end
|
57
57
|
|
@@ -82,16 +82,20 @@ module IonoscloudDbaasMongo
|
|
82
82
|
|
83
83
|
if attributes.key?(:'offset')
|
84
84
|
self.offset = attributes[:'offset']
|
85
|
+
else
|
86
|
+
self.offset = 0
|
85
87
|
end
|
86
88
|
|
87
89
|
|
88
90
|
if attributes.key?(:'limit')
|
89
91
|
self.limit = attributes[:'limit']
|
92
|
+
else
|
93
|
+
self.limit = 100
|
90
94
|
end
|
91
95
|
|
92
96
|
|
93
|
-
if attributes.key?(:'
|
94
|
-
self.
|
97
|
+
if attributes.key?(:'links')
|
98
|
+
self.links = attributes[:'links']
|
95
99
|
end
|
96
100
|
end
|
97
101
|
|
@@ -105,6 +109,10 @@ module IonoscloudDbaasMongo
|
|
105
109
|
end
|
106
110
|
|
107
111
|
|
112
|
+
if !@limit.nil? && @limit > 1000
|
113
|
+
invalid_properties.push('invalid value for "limit", must be smaller than or equal to 1000.')
|
114
|
+
end
|
115
|
+
|
108
116
|
if !@limit.nil? && @limit < 0
|
109
117
|
invalid_properties.push('invalid value for "limit", must be greater than or equal to 0.')
|
110
118
|
end
|
@@ -119,6 +127,7 @@ module IonoscloudDbaasMongo
|
|
119
127
|
|
120
128
|
return false if !@offset.nil? && @offset < 0
|
121
129
|
|
130
|
+
return false if !@limit.nil? && @limit > 1000
|
122
131
|
return false if !@limit.nil? && @limit < 0
|
123
132
|
|
124
133
|
true
|
@@ -139,6 +148,10 @@ module IonoscloudDbaasMongo
|
|
139
148
|
# Custom attribute writer method with validation
|
140
149
|
# @param [Object] limit Value to be assigned
|
141
150
|
def limit=(limit)
|
151
|
+
if !limit.nil? && limit > 1000
|
152
|
+
fail ArgumentError, 'invalid value for "limit", must be smaller than or equal to 1000.'
|
153
|
+
end
|
154
|
+
|
142
155
|
if !limit.nil? && limit < 0
|
143
156
|
fail ArgumentError, 'invalid value for "limit", must be greater than or equal to 0.'
|
144
157
|
end
|
@@ -154,7 +167,7 @@ module IonoscloudDbaasMongo
|
|
154
167
|
self.class == o.class &&
|
155
168
|
offset == o.offset &&
|
156
169
|
limit == o.limit &&
|
157
|
-
|
170
|
+
links == o.links
|
158
171
|
end
|
159
172
|
|
160
173
|
# @see the `==` method
|
@@ -166,7 +179,7 @@ module IonoscloudDbaasMongo
|
|
166
179
|
# Calculates hash code according to all attributes.
|
167
180
|
# @return [Integer] Hash code
|
168
181
|
def hash
|
169
|
-
[offset, limit,
|
182
|
+
[offset, limit, links].hash
|
170
183
|
end
|
171
184
|
|
172
185
|
# 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.
|
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:
|
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
|
-
# The URLs to navigate the different pages.
|
17
|
+
# The URLs to navigate the different pages.
|
18
18
|
class PaginationLinks
|
19
19
|
|
20
20
|
# The URL (with offset and limit parameters) of the previous page; only present if the offset is greater than 0.
|
@@ -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.
|
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:
|
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.
|
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:
|
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.
|
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:
|
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
|