ionoscloud-dbaas-mongo 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (73) 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 +17 -11
  11. data/docs/models/ClusterList.md +6 -6
  12. data/docs/models/ClusterResponse.md +1 -1
  13. data/docs/models/Pagination.md +6 -6
  14. data/docs/models/SnapshotList.md +6 -6
  15. data/docs/models/SnapshotResponse.md +1 -1
  16. data/docs/models/TemplateList.md +6 -6
  17. data/docs/models/User.md +1 -1
  18. data/docs/models/UserMetadata.md +1 -3
  19. data/ionoscloud-dbaas-mongo.gemspec +2 -2
  20. data/lib/ionoscloud-dbaas-mongo/api/clusters_api.rb +15 -1
  21. data/lib/ionoscloud-dbaas-mongo/api/logs_api.rb +1 -1
  22. data/lib/ionoscloud-dbaas-mongo/api/metadata_api.rb +1 -1
  23. data/lib/ionoscloud-dbaas-mongo/api/restores_api.rb +1 -1
  24. data/lib/ionoscloud-dbaas-mongo/api/snapshots_api.rb +15 -1
  25. data/lib/ionoscloud-dbaas-mongo/api/templates_api.rb +15 -1
  26. data/lib/ionoscloud-dbaas-mongo/api/users_api.rb +15 -1
  27. data/lib/ionoscloud-dbaas-mongo/api_client.rb +2 -2
  28. data/lib/ionoscloud-dbaas-mongo/api_error.rb +1 -1
  29. data/lib/ionoscloud-dbaas-mongo/configuration.rb +1 -1
  30. data/lib/ionoscloud-dbaas-mongo/models/api_version.rb +1 -1
  31. data/lib/ionoscloud-dbaas-mongo/models/cluster_list.rb +23 -10
  32. data/lib/ionoscloud-dbaas-mongo/models/cluster_list_all_of.rb +1 -1
  33. data/lib/ionoscloud-dbaas-mongo/models/cluster_logs.rb +1 -1
  34. data/lib/ionoscloud-dbaas-mongo/models/cluster_logs_instances.rb +1 -1
  35. data/lib/ionoscloud-dbaas-mongo/models/cluster_logs_messages.rb +1 -1
  36. data/lib/ionoscloud-dbaas-mongo/models/cluster_properties.rb +1 -1
  37. data/lib/ionoscloud-dbaas-mongo/models/cluster_response.rb +1 -1
  38. data/lib/ionoscloud-dbaas-mongo/models/connection.rb +1 -1
  39. data/lib/ionoscloud-dbaas-mongo/models/create_cluster_properties.rb +1 -1
  40. data/lib/ionoscloud-dbaas-mongo/models/create_cluster_request.rb +1 -1
  41. data/lib/ionoscloud-dbaas-mongo/models/create_restore_request.rb +1 -1
  42. data/lib/ionoscloud-dbaas-mongo/models/day_of_the_week.rb +1 -1
  43. data/lib/ionoscloud-dbaas-mongo/models/error_message.rb +1 -1
  44. data/lib/ionoscloud-dbaas-mongo/models/error_response.rb +1 -1
  45. data/lib/ionoscloud-dbaas-mongo/models/health.rb +1 -1
  46. data/lib/ionoscloud-dbaas-mongo/models/maintenance_window.rb +1 -1
  47. data/lib/ionoscloud-dbaas-mongo/models/metadata.rb +1 -1
  48. data/lib/ionoscloud-dbaas-mongo/models/pagination.rb +23 -10
  49. data/lib/ionoscloud-dbaas-mongo/models/pagination_links.rb +2 -2
  50. data/lib/ionoscloud-dbaas-mongo/models/patch_cluster_properties.rb +1 -1
  51. data/lib/ionoscloud-dbaas-mongo/models/patch_cluster_request.rb +1 -1
  52. data/lib/ionoscloud-dbaas-mongo/models/patch_user_properties.rb +1 -1
  53. data/lib/ionoscloud-dbaas-mongo/models/patch_user_request.rb +1 -1
  54. data/lib/ionoscloud-dbaas-mongo/models/resource_type.rb +1 -1
  55. data/lib/ionoscloud-dbaas-mongo/models/snapshot_list.rb +23 -10
  56. data/lib/ionoscloud-dbaas-mongo/models/snapshot_list_all_of.rb +1 -1
  57. data/lib/ionoscloud-dbaas-mongo/models/snapshot_properties.rb +1 -1
  58. data/lib/ionoscloud-dbaas-mongo/models/snapshot_response.rb +1 -1
  59. data/lib/ionoscloud-dbaas-mongo/models/state.rb +1 -1
  60. data/lib/ionoscloud-dbaas-mongo/models/template_list.rb +23 -10
  61. data/lib/ionoscloud-dbaas-mongo/models/template_list_all_of.rb +1 -1
  62. data/lib/ionoscloud-dbaas-mongo/models/template_response.rb +1 -1
  63. data/lib/ionoscloud-dbaas-mongo/models/user.rb +1 -1
  64. data/lib/ionoscloud-dbaas-mongo/models/user_metadata.rb +5 -57
  65. data/lib/ionoscloud-dbaas-mongo/models/user_properties.rb +1 -1
  66. data/lib/ionoscloud-dbaas-mongo/models/user_roles.rb +1 -1
  67. data/lib/ionoscloud-dbaas-mongo/models/users_list.rb +1 -1
  68. data/lib/ionoscloud-dbaas-mongo/version.rb +2 -2
  69. data/lib/ionoscloud-dbaas-mongo.rb +1 -1
  70. data/spec/api_client_spec.rb +1 -1
  71. data/spec/configuration_spec.rb +1 -1
  72. data/spec/spec_helper.rb +1 -1
  73. metadata +7 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 514775f01e733267e867006a0322db445f7bb163bf04d64f06602b07244e0196
4
- data.tar.gz: 4c284713d69447af04ea8e6b6c18bbbde3bc07aa0eff3cb9b5def94b84f91438
3
+ metadata.gz: e3871043094af505bb616a1f6db7948aab0fe7f3c56903ec3145c0be606c2065
4
+ data.tar.gz: 94138a14a2b150fbc6ec933766682c74effdbc4bc75c4c42ba1f567d52b4464f
5
5
  SHA512:
6
- metadata.gz: f0f78b1fb3a18a6a16ef19620bcbcb5c81a5f25f009438654c00cda5bb5ef9f07fd5f16a96d540435adc5014235b456dfc21a64a2dfa3ac9e955cbf3c1b4274d
7
- data.tar.gz: '081558656ae0043f2206d1099b4ae2cc197f59fcb13aed08fd09652c136abb077aba107371b4ec3bd16d4274f2364a7b8fd465ba19605fcf5caa72e8e6117610'
6
+ metadata.gz: e8968325fc1694be369d26ed3d646430914de39cf824854052574863548dd7e21a0f8c8c45a09a24bd1e13071580d2e51f3c74a259e0b1bf9db1a5ae482f7155
7
+ data.tar.gz: b07e919e58fe0505b218851b22d070b72183ea6d7b72b5d6142fde73b750b4c36fefab20bc8112f6de82e5100c9c3eb70fbd1deb250234b2efdaa8598258aa6e
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ionoscloud-dbaas-mongo (1.2.0)
4
+ ionoscloud-dbaas-mongo (1.2.1)
5
5
  typhoeus (~> 1.0, >= 1.0.1)
6
6
 
7
7
  GEM
@@ -67,4 +67,4 @@ DEPENDENCIES
67
67
  rubocop (~> 0.66.0)
68
68
 
69
69
  BUNDLED WITH
70
- 2.3.26
70
+ 2.4.7
data/docs/CHANGELOG.md ADDED
@@ -0,0 +1,38 @@
1
+ # SDK Ruby DBaaS Mongo
2
+
3
+ ## v1.2.1
4
+
5
+ ### Added
6
+ - Added PaginationLimit, PaginationOffset query params
7
+
8
+ ### Removed
9
+ - Removed User state enum
10
+
11
+ ## v1.2.0
12
+
13
+ ### Added
14
+ - Added `Health` model that indicates the current health status reported by the cluster
15
+
16
+ ### Removed
17
+
18
+ - Removed `database` field for `clusters_users_delete`, `clusters_users_find_by_id`, `clusters_users_patch` method in `UsersApi`
19
+
20
+
21
+ ## v1.1.0
22
+
23
+ ### Added
24
+
25
+ - Added `ClustersPatch` and its underlying data types, requests and execution functions
26
+ - Added `ClustersUsersPatch` and its underlying data types, requests and execution functions
27
+ - Added `Name`, `Edition` for templates
28
+ - Added `Id` for TemplateList
29
+ - Added `Snapshot` as a ResourceType
30
+ - Added `Pagination`: Offset, Limit, Links
31
+
32
+ ### Removed
33
+
34
+ - Removed `database` field for `UserProperties`
35
+
36
+ ## v1.0.0
37
+ ### Overview
38
+ This is the first release of the SDK Ruby DBaaS Mongo. With IONOS Cloud Database as a service, you can quickly setup and manage MongoDB database clusters
@@ -74,7 +74,7 @@ end
74
74
 
75
75
  ### Return type
76
76
 
77
- [**ClusterResponse**](ClusterResponse.md)
77
+ [**ClusterResponse**](../models/ClusterResponse.md)
78
78
 
79
79
  ### Authorization
80
80
 
@@ -149,7 +149,7 @@ end
149
149
 
150
150
  ### Return type
151
151
 
152
- [**ClusterResponse**](ClusterResponse.md)
152
+ [**ClusterResponse**](../models/ClusterResponse.md)
153
153
 
154
154
  ### Authorization
155
155
 
@@ -188,6 +188,8 @@ end
188
188
 
189
189
  api_instance = IonoscloudDbaasMongo::ClustersApi.new
190
190
  opts = {
191
+ limit: 100, # Integer | The maximum number of elements to return. Use together with 'offset' for pagination.
192
+ offset: 200, # Integer | The first element to return. Use together with 'limit' for pagination.
191
193
  filter_name: 'filter_name_example' # String | Response filter to list only the MongoDB clusters that contain the specified name. The value is case insensitive and matched on the 'displayName' field.
192
194
  }
193
195
 
@@ -222,11 +224,13 @@ end
222
224
 
223
225
  | Name | Type | Description | Notes |
224
226
  | ---- | ---- | ----------- | ----- |
227
+ | **limit** | **Integer** | The maximum number of elements to return. Use together with 'offset' for pagination. | [optional][default to 100] |
228
+ | **offset** | **Integer** | The first element to return. Use together with 'limit' for pagination. | [optional][default to 0] |
225
229
  | **filter_name** | **String** | Response filter to list only the MongoDB clusters that contain the specified name. The value is case insensitive and matched on the 'displayName' field. | [optional] |
226
230
 
227
231
  ### Return type
228
232
 
229
- [**ClusterList**](ClusterList.md)
233
+ [**ClusterList**](../models/ClusterList.md)
230
234
 
231
235
  ### Authorization
232
236
 
@@ -299,11 +303,11 @@ end
299
303
  | Name | Type | Description | Notes |
300
304
  | ---- | ---- | ----------- | ----- |
301
305
  | **cluster_id** | **String** | The unique ID of the cluster. | |
302
- | **patch_cluster_request** | [**PatchClusterRequest**](PatchClusterRequest.md) | Part of the cluster which should be modified. | |
306
+ | **patch_cluster_request** | [**PatchClusterRequest**](../models/PatchClusterRequest.md) | Part of the cluster which should be modified. | |
303
307
 
304
308
  ### Return type
305
309
 
306
- [**ClusterResponse**](ClusterResponse.md)
310
+ [**ClusterResponse**](../models/ClusterResponse.md)
307
311
 
308
312
  ### Authorization
309
313
 
@@ -374,11 +378,11 @@ end
374
378
 
375
379
  | Name | Type | Description | Notes |
376
380
  | ---- | ---- | ----------- | ----- |
377
- | **create_cluster_request** | [**CreateClusterRequest**](CreateClusterRequest.md) | The cluster to be created. | |
381
+ | **create_cluster_request** | [**CreateClusterRequest**](../models/CreateClusterRequest.md) | The cluster to be created. | |
378
382
 
379
383
  ### Return type
380
384
 
381
- [**ClusterResponse**](ClusterResponse.md)
385
+ [**ClusterResponse**](../models/ClusterResponse.md)
382
386
 
383
387
  ### Authorization
384
388
 
data/docs/api/LogsApi.md CHANGED
@@ -80,7 +80,7 @@ end
80
80
 
81
81
  ### Return type
82
82
 
83
- [**ClusterLogs**](ClusterLogs.md)
83
+ [**ClusterLogs**](../models/ClusterLogs.md)
84
84
 
85
85
  ### Authorization
86
86
 
@@ -68,7 +68,7 @@ This endpoint does not need any parameter.
68
68
 
69
69
  ### Return type
70
70
 
71
- [**APIVersion**](APIVersion.md)
71
+ [**APIVersion**](../models/APIVersion.md)
72
72
 
73
73
  ### Authorization
74
74
 
@@ -140,7 +140,7 @@ This endpoint does not need any parameter.
140
140
 
141
141
  ### Return type
142
142
 
143
- [**Array<APIVersion>**](APIVersion.md)
143
+ [**Array<APIVersion>**](../models/APIVersion.md)
144
144
 
145
145
  ### Authorization
146
146
 
@@ -67,7 +67,7 @@ end
67
67
  | Name | Type | Description | Notes |
68
68
  | ---- | ---- | ----------- | ----- |
69
69
  | **cluster_id** | **String** | The unique ID of the cluster. | |
70
- | **create_restore_request** | [**CreateRestoreRequest**](CreateRestoreRequest.md) | The restore request to create. | |
70
+ | **create_restore_request** | [**CreateRestoreRequest**](../models/CreateRestoreRequest.md) | The restore request to create. | |
71
71
 
72
72
  ### Return type
73
73
 
@@ -9,7 +9,7 @@ All URIs are relative to *https://api.ionos.com/databases/mongodb*
9
9
 
10
10
  ## clusters_snapshots_get
11
11
 
12
- > <SnapshotList> clusters_snapshots_get(cluster_id)
12
+ > <SnapshotList> clusters_snapshots_get(cluster_id, opts)
13
13
 
14
14
  Get the snapshots of your cluster
15
15
 
@@ -34,10 +34,14 @@ end
34
34
 
35
35
  api_instance = IonoscloudDbaasMongo::SnapshotsApi.new
36
36
  cluster_id = 'cluster_id_example' # String | The unique ID of the cluster.
37
+ opts = {
38
+ limit: 100, # Integer | The maximum number of elements to return. Use together with 'offset' for pagination.
39
+ offset: 200 # Integer | The first element to return. Use together with 'limit' for pagination.
40
+ }
37
41
 
38
42
  begin
39
43
  # Get the snapshots of your cluster
40
- result = api_instance.clusters_snapshots_get(cluster_id)
44
+ result = api_instance.clusters_snapshots_get(cluster_id, opts)
41
45
  p result
42
46
  rescue IonoscloudDbaasMongo::ApiError => e
43
47
  puts "Error when calling SnapshotsApi->clusters_snapshots_get: #{e}"
@@ -48,12 +52,12 @@ end
48
52
 
49
53
  This returns an Array which contains the response data, status code and headers.
50
54
 
51
- > <Array(<SnapshotList>, Integer, Hash)> clusters_snapshots_get_with_http_info(cluster_id)
55
+ > <Array(<SnapshotList>, Integer, Hash)> clusters_snapshots_get_with_http_info(cluster_id, opts)
52
56
 
53
57
  ```ruby
54
58
  begin
55
59
  # Get the snapshots of your cluster
56
- data, status_code, headers = api_instance.clusters_snapshots_get_with_http_info(cluster_id)
60
+ data, status_code, headers = api_instance.clusters_snapshots_get_with_http_info(cluster_id, opts)
57
61
  p status_code # => 2xx
58
62
  p headers # => { ... }
59
63
  p data # => <SnapshotList>
@@ -67,10 +71,12 @@ end
67
71
  | Name | Type | Description | Notes |
68
72
  | ---- | ---- | ----------- | ----- |
69
73
  | **cluster_id** | **String** | The unique ID of the cluster. | |
74
+ | **limit** | **Integer** | The maximum number of elements to return. Use together with &#39;offset&#39; for pagination. | [optional][default to 100] |
75
+ | **offset** | **Integer** | The first element to return. Use together with &#39;limit&#39; for pagination. | [optional][default to 0] |
70
76
 
71
77
  ### Return type
72
78
 
73
- [**SnapshotList**](SnapshotList.md)
79
+ [**SnapshotList**](../models/SnapshotList.md)
74
80
 
75
81
  ### Authorization
76
82
 
@@ -9,7 +9,7 @@ All URIs are relative to *https://api.ionos.com/databases/mongodb*
9
9
 
10
10
  ## templates_get
11
11
 
12
- > <TemplateList> templates_get
12
+ > <TemplateList> templates_get(opts)
13
13
 
14
14
  Get Templates
15
15
 
@@ -33,10 +33,14 @@ IonoscloudDbaasMongo.configure do |config|
33
33
  end
34
34
 
35
35
  api_instance = IonoscloudDbaasMongo::TemplatesApi.new
36
+ opts = {
37
+ limit: 100, # Integer | The maximum number of elements to return. Use together with 'offset' for pagination.
38
+ offset: 200 # Integer | The first element to return. Use together with 'limit' for pagination.
39
+ }
36
40
 
37
41
  begin
38
42
  # Get Templates
39
- result = api_instance.templates_get
43
+ result = api_instance.templates_get(opts)
40
44
  p result
41
45
  rescue IonoscloudDbaasMongo::ApiError => e
42
46
  puts "Error when calling TemplatesApi->templates_get: #{e}"
@@ -47,12 +51,12 @@ end
47
51
 
48
52
  This returns an Array which contains the response data, status code and headers.
49
53
 
50
- > <Array(<TemplateList>, Integer, Hash)> templates_get_with_http_info
54
+ > <Array(<TemplateList>, Integer, Hash)> templates_get_with_http_info(opts)
51
55
 
52
56
  ```ruby
53
57
  begin
54
58
  # Get Templates
55
- data, status_code, headers = api_instance.templates_get_with_http_info
59
+ data, status_code, headers = api_instance.templates_get_with_http_info(opts)
56
60
  p status_code # => 2xx
57
61
  p headers # => { ... }
58
62
  p data # => <TemplateList>
@@ -63,11 +67,14 @@ end
63
67
 
64
68
  ### Parameters
65
69
 
66
- This endpoint does not need any parameter.
70
+ | Name | Type | Description | Notes |
71
+ | ---- | ---- | ----------- | ----- |
72
+ | **limit** | **Integer** | The maximum number of elements to return. Use together with &#39;offset&#39; for pagination. | [optional][default to 100] |
73
+ | **offset** | **Integer** | The first element to return. Use together with &#39;limit&#39; for pagination. | [optional][default to 0] |
67
74
 
68
75
  ### Return type
69
76
 
70
- [**TemplateList**](TemplateList.md)
77
+ [**TemplateList**](../models/TemplateList.md)
71
78
 
72
79
  ### Authorization
73
80
 
data/docs/api/UsersApi.md CHANGED
@@ -76,7 +76,7 @@ end
76
76
 
77
77
  ### Return type
78
78
 
79
- [**User**](User.md)
79
+ [**User**](../models/User.md)
80
80
 
81
81
  ### Authorization
82
82
 
@@ -153,7 +153,7 @@ end
153
153
 
154
154
  ### Return type
155
155
 
156
- [**User**](User.md)
156
+ [**User**](../models/User.md)
157
157
 
158
158
  ### Authorization
159
159
 
@@ -167,7 +167,7 @@ basicAuth, tokenAuth
167
167
 
168
168
  ## clusters_users_get
169
169
 
170
- > <UsersList> clusters_users_get(cluster_id)
170
+ > <UsersList> clusters_users_get(cluster_id, opts)
171
171
 
172
172
  Get all Cluster Users
173
173
 
@@ -192,10 +192,14 @@ end
192
192
 
193
193
  api_instance = IonoscloudDbaasMongo::UsersApi.new
194
194
  cluster_id = 'cluster_id_example' # String | The unique ID of the cluster.
195
+ opts = {
196
+ limit: 100, # Integer | The maximum number of elements to return. Use together with 'offset' for pagination.
197
+ offset: 200 # Integer | The first element to return. Use together with 'limit' for pagination.
198
+ }
195
199
 
196
200
  begin
197
201
  # Get all Cluster Users
198
- result = api_instance.clusters_users_get(cluster_id)
202
+ result = api_instance.clusters_users_get(cluster_id, opts)
199
203
  p result
200
204
  rescue IonoscloudDbaasMongo::ApiError => e
201
205
  puts "Error when calling UsersApi->clusters_users_get: #{e}"
@@ -206,12 +210,12 @@ end
206
210
 
207
211
  This returns an Array which contains the response data, status code and headers.
208
212
 
209
- > <Array(<UsersList>, Integer, Hash)> clusters_users_get_with_http_info(cluster_id)
213
+ > <Array(<UsersList>, Integer, Hash)> clusters_users_get_with_http_info(cluster_id, opts)
210
214
 
211
215
  ```ruby
212
216
  begin
213
217
  # Get all Cluster Users
214
- data, status_code, headers = api_instance.clusters_users_get_with_http_info(cluster_id)
218
+ data, status_code, headers = api_instance.clusters_users_get_with_http_info(cluster_id, opts)
215
219
  p status_code # => 2xx
216
220
  p headers # => { ... }
217
221
  p data # => <UsersList>
@@ -225,10 +229,12 @@ end
225
229
  | Name | Type | Description | Notes |
226
230
  | ---- | ---- | ----------- | ----- |
227
231
  | **cluster_id** | **String** | The unique ID of the cluster. | |
232
+ | **limit** | **Integer** | The maximum number of elements to return. Use together with &#39;offset&#39; for pagination. | [optional][default to 100] |
233
+ | **offset** | **Integer** | The first element to return. Use together with &#39;limit&#39; for pagination. | [optional][default to 0] |
228
234
 
229
235
  ### Return type
230
236
 
231
- [**UsersList**](UsersList.md)
237
+ [**UsersList**](../models/UsersList.md)
232
238
 
233
239
  ### Authorization
234
240
 
@@ -303,11 +309,11 @@ end
303
309
  | ---- | ---- | ----------- | ----- |
304
310
  | **cluster_id** | **String** | The unique ID of the cluster. | |
305
311
  | **username** | **String** | The authentication username. | |
306
- | **patch_user_request** | [**PatchUserRequest**](PatchUserRequest.md) | Part of the MongoDB user which should be modified. | |
312
+ | **patch_user_request** | [**PatchUserRequest**](../models/PatchUserRequest.md) | Part of the MongoDB user which should be modified. | |
307
313
 
308
314
  ### Return type
309
315
 
310
- [**User**](User.md)
316
+ [**User**](../models/User.md)
311
317
 
312
318
  ### Authorization
313
319
 
@@ -380,11 +386,11 @@ end
380
386
  | Name | Type | Description | Notes |
381
387
  | ---- | ---- | ----------- | ----- |
382
388
  | **cluster_id** | **String** | The unique ID of the cluster. | |
383
- | **user** | [**User**](User.md) | The user to be created. | |
389
+ | **user** | [**User**](../models/User.md) | The user to be created. | |
384
390
 
385
391
  ### Return type
386
392
 
387
- [**User**](User.md)
393
+ [**User**](../models/User.md)
388
394
 
389
395
  ### Authorization
390
396
 
@@ -7,9 +7,9 @@
7
7
  | **type** | [**ResourceType**](ResourceType.md) | | [optional] |
8
8
  | **id** | **String** | The unique ID of the resource. | [optional] |
9
9
  | **items** | [**Array&lt;ClusterResponse&gt;**](ClusterResponse.md) | | [optional] |
10
- | **offset** | **Integer** | The offset specified in the request (if none was specified, the default offset is 0) (not implemented yet). | [optional][readonly] |
11
- | **limit** | **Integer** | The limit specified in the request (if none was specified, use the endpoint&#39;s default pagination limit) (not implemented yet, always return number of items). | [optional][readonly] |
12
- | **_links** | [**PaginationLinks**](PaginationLinks.md) | | [optional] |
10
+ | **offset** | **Integer** | The offset specified in the request (if none was specified, the default offset is 0). | [optional][default to 0] |
11
+ | **limit** | **Integer** | The limit specified in the request (if none was specified, the default limit is 100). | [optional][default to 100] |
12
+ | **links** | [**PaginationLinks**](PaginationLinks.md) | | [optional] |
13
13
 
14
14
  ## Example
15
15
 
@@ -20,9 +20,9 @@ instance = IonoscloudDbaasMongo::ClusterList.new(
20
20
  type: null,
21
21
  id: 498ae72f-411f-11eb-9d07-046c59cc737e,
22
22
  items: null,
23
- offset: 0,
24
- limit: 42,
25
- _links: null
23
+ offset: 200,
24
+ limit: 100,
25
+ links: null
26
26
  )
27
27
  ```
28
28
 
@@ -15,7 +15,7 @@
15
15
  require 'ionoscloud-dbaas-mongo'
16
16
 
17
17
  instance = IonoscloudDbaasMongo::ClusterResponse.new(
18
- type: null,
18
+ type: cluster,
19
19
  id: 498ae72f-411f-11eb-9d07-046c59cc737e,
20
20
  metadata: null,
21
21
  properties: null
@@ -4,9 +4,9 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **offset** | **Integer** | The offset specified in the request (if none was specified, the default offset is 0) (not implemented yet). | [optional][readonly] |
8
- | **limit** | **Integer** | The limit specified in the request (if none was specified, use the endpoint&#39;s default pagination limit) (not implemented yet, always return number of items). | [optional][readonly] |
9
- | **_links** | [**PaginationLinks**](PaginationLinks.md) | | [optional] |
7
+ | **offset** | **Integer** | The offset specified in the request (if none was specified, the default offset is 0). | [optional][default to 0] |
8
+ | **limit** | **Integer** | The limit specified in the request (if none was specified, the default limit is 100). | [optional][default to 100] |
9
+ | **links** | [**PaginationLinks**](PaginationLinks.md) | | [optional] |
10
10
 
11
11
  ## Example
12
12
 
@@ -14,9 +14,9 @@
14
14
  require 'ionoscloud-dbaas-mongo'
15
15
 
16
16
  instance = IonoscloudDbaasMongo::Pagination.new(
17
- offset: 0,
18
- limit: 42,
19
- _links: null
17
+ offset: 200,
18
+ limit: 100,
19
+ links: null
20
20
  )
21
21
  ```
22
22
 
@@ -7,9 +7,9 @@
7
7
  | **type** | [**ResourceType**](ResourceType.md) | | [optional] |
8
8
  | **id** | **String** | The unique ID of the resource. | [optional] |
9
9
  | **items** | [**Array&lt;SnapshotResponse&gt;**](SnapshotResponse.md) | | [optional] |
10
- | **offset** | **Integer** | The offset specified in the request (if none was specified, the default offset is 0) (not implemented yet). | [optional][readonly] |
11
- | **limit** | **Integer** | The limit specified in the request (if none was specified, use the endpoint&#39;s default pagination limit) (not implemented yet, always return number of items). | [optional][readonly] |
12
- | **_links** | [**PaginationLinks**](PaginationLinks.md) | | [optional] |
10
+ | **offset** | **Integer** | The offset specified in the request (if none was specified, the default offset is 0). | [optional][default to 0] |
11
+ | **limit** | **Integer** | The limit specified in the request (if none was specified, the default limit is 100). | [optional][default to 100] |
12
+ | **links** | [**PaginationLinks**](PaginationLinks.md) | | [optional] |
13
13
 
14
14
  ## Example
15
15
 
@@ -20,9 +20,9 @@ instance = IonoscloudDbaasMongo::SnapshotList.new(
20
20
  type: null,
21
21
  id: 498ae72f-411f-11eb-9d07-046c59cc737e,
22
22
  items: null,
23
- offset: 0,
24
- limit: 42,
25
- _links: null
23
+ offset: 200,
24
+ limit: 100,
25
+ links: null
26
26
  )
27
27
  ```
28
28
 
@@ -14,7 +14,7 @@
14
14
  require 'ionoscloud-dbaas-mongo'
15
15
 
16
16
  instance = IonoscloudDbaasMongo::SnapshotResponse.new(
17
- type: null,
17
+ type: snapshot,
18
18
  id: 498ae72f-411f-11eb-9d07-046c59cc737e,
19
19
  properties: null
20
20
  )
@@ -7,9 +7,9 @@
7
7
  | **type** | [**ResourceType**](ResourceType.md) | | [optional] |
8
8
  | **id** | **String** | The unique ID of the resource. | [optional] |
9
9
  | **items** | [**Array&lt;TemplateResponse&gt;**](TemplateResponse.md) | | [optional] |
10
- | **offset** | **Integer** | The offset specified in the request (if none was specified, the default offset is 0) (not implemented yet). | [optional][readonly] |
11
- | **limit** | **Integer** | The limit specified in the request (if none was specified, use the endpoint&#39;s default pagination limit) (not implemented yet, always return number of items). | [optional][readonly] |
12
- | **_links** | [**PaginationLinks**](PaginationLinks.md) | | [optional] |
10
+ | **offset** | **Integer** | The offset specified in the request (if none was specified, the default offset is 0). | [optional][default to 0] |
11
+ | **limit** | **Integer** | The limit specified in the request (if none was specified, the default limit is 100). | [optional][default to 100] |
12
+ | **links** | [**PaginationLinks**](PaginationLinks.md) | | [optional] |
13
13
 
14
14
  ## Example
15
15
 
@@ -20,9 +20,9 @@ instance = IonoscloudDbaasMongo::TemplateList.new(
20
20
  type: null,
21
21
  id: 498ae72f-411f-11eb-9d07-046c59cc737e,
22
22
  items: null,
23
- offset: 0,
24
- limit: 42,
25
- _links: null
23
+ offset: 200,
24
+ limit: 100,
25
+ links: null
26
26
  )
27
27
  ```
28
28
 
data/docs/models/User.md CHANGED
@@ -14,7 +14,7 @@
14
14
  require 'ionoscloud-dbaas-mongo'
15
15
 
16
16
  instance = IonoscloudDbaasMongo::User.new(
17
- type: null,
17
+ type: user,
18
18
  metadata: null,
19
19
  properties: null
20
20
  )
@@ -7,7 +7,6 @@
7
7
  | **created_date** | **Time** | The date the resource was created. | [optional] |
8
8
  | **created_by** | **String** | The user who created the resource. | [optional] |
9
9
  | **created_by_user_id** | **String** | The ID of the user who created the resource. | [optional] |
10
- | **state** | **String** | The user state. | [optional] |
11
10
 
12
11
  ## Example
13
12
 
@@ -17,8 +16,7 @@ require 'ionoscloud-dbaas-mongo'
17
16
  instance = IonoscloudDbaasMongo::UserMetadata.new(
18
17
  created_date: 2020-12-10T13:37:50+01:00,
19
18
  created_by: john.doe@example.com,
20
- created_by_user_id: 87f9a82e-b28d-49ed-9d04-fba2c0459cd3,
21
- state: CREATING
19
+ created_by_user_id: 87f9a82e-b28d-49ed-9d04-fba2c0459cd3
22
20
  )
23
21
  ```
24
22
 
@@ -3,7 +3,7 @@
3
3
  =begin
4
4
  #IONOS DBaaS MongoDB REST API
5
5
 
6
- #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.
6
+ #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.
7
7
 
8
8
  The version of the OpenAPI document: 1.0.0
9
9
 
@@ -23,7 +23,7 @@ Gem::Specification.new do |s|
23
23
  s.email = [""]
24
24
  s.homepage = "https://openapi-generator.tech"
25
25
  s.summary = "IONOS DBaaS MongoDB REST API Ruby Gem"
26
- s.description = "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. "
26
+ s.description = "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. "
27
27
  s.license = "Unlicense"
28
28
  s.required_ruby_version = ">= 2.4"
29
29
 
@@ -1,7 +1,7 @@
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
6
  The version of the OpenAPI document: 1.0.0
7
7
 
@@ -148,6 +148,8 @@ module IonoscloudDbaasMongo
148
148
  # Get Clusters
149
149
  # Retrieves a list of MongoDB clusters.
150
150
  # @param [Hash] opts the optional parameters
151
+ # @option opts [Integer] :limit The maximum number of elements to return. Use together with &#39;offset&#39; for pagination. (default to 100)
152
+ # @option opts [Integer] :offset The first element to return. Use together with &#39;limit&#39; for pagination. (default to 0)
151
153
  # @option opts [String] :filter_name Response filter to list only the MongoDB clusters that contain the specified name. The value is case insensitive and matched on the &#39;displayName&#39; field.
152
154
  # @return [ClusterList]
153
155
  def clusters_get(opts = {})
@@ -158,17 +160,29 @@ module IonoscloudDbaasMongo
158
160
  # Get Clusters
159
161
  # Retrieves a list of MongoDB clusters.
160
162
  # @param [Hash] opts the optional parameters
163
+ # @option opts [Integer] :limit The maximum number of elements to return. Use together with &#39;offset&#39; for pagination.
164
+ # @option opts [Integer] :offset The first element to return. Use together with &#39;limit&#39; for pagination.
161
165
  # @option opts [String] :filter_name Response filter to list only the MongoDB clusters that contain the specified name. The value is case insensitive and matched on the &#39;displayName&#39; field.
162
166
  # @return [Array<(ClusterList, Integer, Hash)>] ClusterList data, response status code and response headers
163
167
  def clusters_get_with_http_info(opts = {})
164
168
  if @api_client.config.debugging
165
169
  @api_client.config.logger.debug 'Calling API: ClustersApi.clusters_get ...'
166
170
  end
171
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000
172
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling ClustersApi.clusters_get, must be smaller than or equal to 1000.'
173
+ end
174
+
175
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
176
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling ClustersApi.clusters_get, must be greater than or equal to 1.'
177
+ end
178
+
167
179
  # resource path
168
180
  local_var_path = '/clusters'
169
181
 
170
182
  # query parameters
171
183
  query_params = opts[:query_params] || {}
184
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
185
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
172
186
  query_params[:'filter.name'] = opts[:'filter_name'] if !opts[:'filter_name'].nil?
173
187
 
174
188
  # header parameters
@@ -1,7 +1,7 @@
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
6
  The version of the OpenAPI document: 1.0.0
7
7
 
@@ -1,7 +1,7 @@
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
6
  The version of the OpenAPI document: 1.0.0
7
7
 
@@ -1,7 +1,7 @@
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
6
  The version of the OpenAPI document: 1.0.0
7
7