ionoscloud-dbaas-mongo 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/Gemfile.lock +70 -0
  4. data/LICENSE +201 -0
  5. data/README.md +58 -0
  6. data/Rakefile +10 -0
  7. data/docs/api/ClustersApi.md +313 -0
  8. data/docs/api/LogsApi.md +93 -0
  9. data/docs/api/MetadataApi.md +153 -0
  10. data/docs/api/RestoresApi.md +84 -0
  11. data/docs/api/SnapshotsApi.md +83 -0
  12. data/docs/api/TemplatesApi.md +80 -0
  13. data/docs/api/UsersApi.md +321 -0
  14. data/docs/models/APIVersion.md +20 -0
  15. data/docs/models/ClusterList.md +28 -0
  16. data/docs/models/ClusterListAllOf.md +22 -0
  17. data/docs/models/ClusterLogs.md +18 -0
  18. data/docs/models/ClusterLogsInstances.md +20 -0
  19. data/docs/models/ClusterLogsMessages.md +20 -0
  20. data/docs/models/ClusterProperties.md +32 -0
  21. data/docs/models/ClusterResponse.md +24 -0
  22. data/docs/models/Connection.md +22 -0
  23. data/docs/models/CreateClusterProperties.md +30 -0
  24. data/docs/models/CreateClusterRequest.md +20 -0
  25. data/docs/models/CreateRestoreRequest.md +18 -0
  26. data/docs/models/DayOfTheWeek.md +15 -0
  27. data/docs/models/ErrorMessage.md +20 -0
  28. data/docs/models/ErrorResponse.md +20 -0
  29. data/docs/models/MaintenanceWindow.md +20 -0
  30. data/docs/models/Metadata.md +30 -0
  31. data/docs/models/Pagination.md +22 -0
  32. data/docs/models/PaginationLinks.md +22 -0
  33. data/docs/models/ResourceType.md +15 -0
  34. data/docs/models/SnapshotList.md +28 -0
  35. data/docs/models/SnapshotListAllOf.md +22 -0
  36. data/docs/models/SnapshotProperties.md +22 -0
  37. data/docs/models/SnapshotResponse.md +22 -0
  38. data/docs/models/State.md +15 -0
  39. data/docs/models/TemplateList.md +18 -0
  40. data/docs/models/TemplateListAllOf.md +18 -0
  41. data/docs/models/TemplateResponse.md +24 -0
  42. data/docs/models/User.md +22 -0
  43. data/docs/models/UserMetadata.md +24 -0
  44. data/docs/models/UserProperties.md +24 -0
  45. data/docs/models/UserRoles.md +20 -0
  46. data/docs/models/UsersList.md +22 -0
  47. data/docs/summary.md +50 -0
  48. data/git_push.sh +56 -0
  49. data/ionoscloud-dbaas-mongo.gemspec +38 -0
  50. data/lib/ionoscloud-dbaas-mongo/api/clusters_api.rb +273 -0
  51. data/lib/ionoscloud-dbaas-mongo/api/logs_api.rb +109 -0
  52. data/lib/ionoscloud-dbaas-mongo/api/metadata_api.rb +136 -0
  53. data/lib/ionoscloud-dbaas-mongo/api/restores_api.rb +93 -0
  54. data/lib/ionoscloud-dbaas-mongo/api/snapshots_api.rb +85 -0
  55. data/lib/ionoscloud-dbaas-mongo/api/templates_api.rb +79 -0
  56. data/lib/ionoscloud-dbaas-mongo/api/users_api.rb +306 -0
  57. data/lib/ionoscloud-dbaas-mongo/api_client.rb +471 -0
  58. data/lib/ionoscloud-dbaas-mongo/api_error.rb +57 -0
  59. data/lib/ionoscloud-dbaas-mongo/configuration.rb +276 -0
  60. data/lib/ionoscloud-dbaas-mongo/models/api_version.rb +243 -0
  61. data/lib/ionoscloud-dbaas-mongo/models/cluster_list.rb +353 -0
  62. data/lib/ionoscloud-dbaas-mongo/models/cluster_list_all_of.rb +261 -0
  63. data/lib/ionoscloud-dbaas-mongo/models/cluster_logs.rb +227 -0
  64. data/lib/ionoscloud-dbaas-mongo/models/cluster_logs_instances.rb +244 -0
  65. data/lib/ionoscloud-dbaas-mongo/models/cluster_logs_messages.rb +243 -0
  66. data/lib/ionoscloud-dbaas-mongo/models/cluster_properties.rb +376 -0
  67. data/lib/ionoscloud-dbaas-mongo/models/cluster_response.rb +279 -0
  68. data/lib/ionoscloud-dbaas-mongo/models/connection.rb +279 -0
  69. data/lib/ionoscloud-dbaas-mongo/models/create_cluster_properties.rb +387 -0
  70. data/lib/ionoscloud-dbaas-mongo/models/create_cluster_request.rb +244 -0
  71. data/lib/ionoscloud-dbaas-mongo/models/create_restore_request.rb +233 -0
  72. data/lib/ionoscloud-dbaas-mongo/models/day_of_the_week.rb +42 -0
  73. data/lib/ionoscloud-dbaas-mongo/models/error_message.rb +245 -0
  74. data/lib/ionoscloud-dbaas-mongo/models/error_response.rb +244 -0
  75. data/lib/ionoscloud-dbaas-mongo/models/maintenance_window.rb +254 -0
  76. data/lib/ionoscloud-dbaas-mongo/models/metadata.rb +335 -0
  77. data/lib/ionoscloud-dbaas-mongo/models/pagination.rb +292 -0
  78. data/lib/ionoscloud-dbaas-mongo/models/pagination_links.rb +264 -0
  79. data/lib/ionoscloud-dbaas-mongo/models/resource_type.rb +38 -0
  80. data/lib/ionoscloud-dbaas-mongo/models/snapshot_list.rb +353 -0
  81. data/lib/ionoscloud-dbaas-mongo/models/snapshot_list_all_of.rb +261 -0
  82. data/lib/ionoscloud-dbaas-mongo/models/snapshot_properties.rb +264 -0
  83. data/lib/ionoscloud-dbaas-mongo/models/snapshot_response.rb +262 -0
  84. data/lib/ionoscloud-dbaas-mongo/models/state.rb +40 -0
  85. data/lib/ionoscloud-dbaas-mongo/models/template_list.rb +234 -0
  86. data/lib/ionoscloud-dbaas-mongo/models/template_list_all_of.rb +226 -0
  87. data/lib/ionoscloud-dbaas-mongo/models/template_response.rb +282 -0
  88. data/lib/ionoscloud-dbaas-mongo/models/user.rb +261 -0
  89. data/lib/ionoscloud-dbaas-mongo/models/user_metadata.rb +316 -0
  90. data/lib/ionoscloud-dbaas-mongo/models/user_properties.rb +294 -0
  91. data/lib/ionoscloud-dbaas-mongo/models/user_roles.rb +278 -0
  92. data/lib/ionoscloud-dbaas-mongo/models/users_list.rb +262 -0
  93. data/lib/ionoscloud-dbaas-mongo/version.rb +15 -0
  94. data/lib/ionoscloud-dbaas-mongo.rb +79 -0
  95. data/spec/api_client_spec.rb +226 -0
  96. data/spec/configuration_spec.rb +42 -0
  97. data/spec/spec_helper.rb +111 -0
  98. metadata +189 -0
@@ -0,0 +1,321 @@
1
+ # UsersApi
2
+
3
+ All URIs are relative to *https://api.ionos.com/databases/mongodb*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**clusters_users_delete**](UsersApi.md#clusters_users_delete) | **DELETE** /clusters/{clusterId}/users/{database}/{username} | Delete a MongoDB User by ID |
8
+ | [**clusters_users_find_by_id**](UsersApi.md#clusters_users_find_by_id) | **GET** /clusters/{clusterId}/users/{database}/{username} | Get a MongoDB User by ID |
9
+ | [**clusters_users_get**](UsersApi.md#clusters_users_get) | **GET** /clusters/{clusterId}/users | Get a Cluster Users |
10
+ | [**clusters_users_post**](UsersApi.md#clusters_users_post) | **POST** /clusters/{clusterId}/users | Create MongoDB User |
11
+
12
+
13
+ ## clusters_users_delete
14
+
15
+ > <User> clusters_users_delete(cluster_id, database, username)
16
+
17
+ Delete a MongoDB User by ID
18
+
19
+ Deletes a MongoDB user specified by its ID.
20
+
21
+ ### Examples
22
+
23
+ ```ruby
24
+ require 'time'
25
+ require 'ionoscloud-dbaas-mongo'
26
+ # setup authorization
27
+ IonoscloudDbaasMongo.configure do |config|
28
+ # Configure HTTP basic authorization: basicAuth
29
+ config.username = 'YOUR USERNAME'
30
+ config.password = 'YOUR PASSWORD'
31
+
32
+ # Configure API key authorization: tokenAuth
33
+ config.api_key['Authorization'] = 'YOUR API KEY'
34
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
35
+ # config.api_key_prefix['Authorization'] = 'Bearer'
36
+ end
37
+
38
+ api_instance = IonoscloudDbaasMongo::UsersApi.new
39
+ cluster_id = 'cluster_id_example' # String | The unique ID of the cluster.
40
+ database = 'database_example' # String | The authentication database.
41
+ username = 'username_example' # String | The authentication username.
42
+
43
+ begin
44
+ # Delete a MongoDB User by ID
45
+ result = api_instance.clusters_users_delete(cluster_id, database, username)
46
+ p result
47
+ rescue IonoscloudDbaasMongo::ApiError => e
48
+ puts "Error when calling UsersApi->clusters_users_delete: #{e}"
49
+ end
50
+ ```
51
+
52
+ #### Using the clusters_users_delete_with_http_info variant
53
+
54
+ This returns an Array which contains the response data, status code and headers.
55
+
56
+ > <Array(<User>, Integer, Hash)> clusters_users_delete_with_http_info(cluster_id, database, username)
57
+
58
+ ```ruby
59
+ begin
60
+ # Delete a MongoDB User by ID
61
+ data, status_code, headers = api_instance.clusters_users_delete_with_http_info(cluster_id, database, username)
62
+ p status_code # => 2xx
63
+ p headers # => { ... }
64
+ p data # => <User>
65
+ rescue IonoscloudDbaasMongo::ApiError => e
66
+ puts "Error when calling UsersApi->clusters_users_delete_with_http_info: #{e}"
67
+ end
68
+ ```
69
+
70
+ ### Parameters
71
+
72
+ | Name | Type | Description | Notes |
73
+ | ---- | ---- | ----------- | ----- |
74
+ | **cluster_id** | **String** | The unique ID of the cluster. | |
75
+ | **database** | **String** | The authentication database. | |
76
+ | **username** | **String** | The authentication username. | |
77
+
78
+ ### Return type
79
+
80
+ [**User**](User.md)
81
+
82
+ ### Authorization
83
+
84
+ basicAuth, tokenAuth
85
+
86
+ ### HTTP request headers
87
+
88
+ - **Content-Type**: Not defined
89
+ - **Accept**: application/json
90
+
91
+
92
+ ## clusters_users_find_by_id
93
+
94
+ > <User> clusters_users_find_by_id(cluster_id, database, username)
95
+
96
+ Get a MongoDB User by ID
97
+
98
+ Retrieves the MongoDB user identified by the username and database parameters.
99
+
100
+ ### Examples
101
+
102
+ ```ruby
103
+ require 'time'
104
+ require 'ionoscloud-dbaas-mongo'
105
+ # setup authorization
106
+ IonoscloudDbaasMongo.configure do |config|
107
+ # Configure HTTP basic authorization: basicAuth
108
+ config.username = 'YOUR USERNAME'
109
+ config.password = 'YOUR PASSWORD'
110
+
111
+ # Configure API key authorization: tokenAuth
112
+ config.api_key['Authorization'] = 'YOUR API KEY'
113
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
114
+ # config.api_key_prefix['Authorization'] = 'Bearer'
115
+ end
116
+
117
+ api_instance = IonoscloudDbaasMongo::UsersApi.new
118
+ cluster_id = 'cluster_id_example' # String | The unique ID of the cluster.
119
+ database = 'database_example' # String | The authentication database.
120
+ username = 'username_example' # String | The authentication username.
121
+
122
+ begin
123
+ # Get a MongoDB User by ID
124
+ result = api_instance.clusters_users_find_by_id(cluster_id, database, username)
125
+ p result
126
+ rescue IonoscloudDbaasMongo::ApiError => e
127
+ puts "Error when calling UsersApi->clusters_users_find_by_id: #{e}"
128
+ end
129
+ ```
130
+
131
+ #### Using the clusters_users_find_by_id_with_http_info variant
132
+
133
+ This returns an Array which contains the response data, status code and headers.
134
+
135
+ > <Array(<User>, Integer, Hash)> clusters_users_find_by_id_with_http_info(cluster_id, database, username)
136
+
137
+ ```ruby
138
+ begin
139
+ # Get a MongoDB User by ID
140
+ data, status_code, headers = api_instance.clusters_users_find_by_id_with_http_info(cluster_id, database, username)
141
+ p status_code # => 2xx
142
+ p headers # => { ... }
143
+ p data # => <User>
144
+ rescue IonoscloudDbaasMongo::ApiError => e
145
+ puts "Error when calling UsersApi->clusters_users_find_by_id_with_http_info: #{e}"
146
+ end
147
+ ```
148
+
149
+ ### Parameters
150
+
151
+ | Name | Type | Description | Notes |
152
+ | ---- | ---- | ----------- | ----- |
153
+ | **cluster_id** | **String** | The unique ID of the cluster. | |
154
+ | **database** | **String** | The authentication database. | |
155
+ | **username** | **String** | The authentication username. | |
156
+
157
+ ### Return type
158
+
159
+ [**User**](User.md)
160
+
161
+ ### Authorization
162
+
163
+ basicAuth, tokenAuth
164
+
165
+ ### HTTP request headers
166
+
167
+ - **Content-Type**: Not defined
168
+ - **Accept**: application/json
169
+
170
+
171
+ ## clusters_users_get
172
+
173
+ > <UsersList> clusters_users_get(cluster_id)
174
+
175
+ Get a Cluster Users
176
+
177
+ Retrieves a list of MongoDB users.
178
+
179
+ ### Examples
180
+
181
+ ```ruby
182
+ require 'time'
183
+ require 'ionoscloud-dbaas-mongo'
184
+ # setup authorization
185
+ IonoscloudDbaasMongo.configure do |config|
186
+ # Configure HTTP basic authorization: basicAuth
187
+ config.username = 'YOUR USERNAME'
188
+ config.password = 'YOUR PASSWORD'
189
+
190
+ # Configure API key authorization: tokenAuth
191
+ config.api_key['Authorization'] = 'YOUR API KEY'
192
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
193
+ # config.api_key_prefix['Authorization'] = 'Bearer'
194
+ end
195
+
196
+ api_instance = IonoscloudDbaasMongo::UsersApi.new
197
+ cluster_id = 'cluster_id_example' # String | The unique ID of the cluster.
198
+
199
+ begin
200
+ # Get a Cluster Users
201
+ result = api_instance.clusters_users_get(cluster_id)
202
+ p result
203
+ rescue IonoscloudDbaasMongo::ApiError => e
204
+ puts "Error when calling UsersApi->clusters_users_get: #{e}"
205
+ end
206
+ ```
207
+
208
+ #### Using the clusters_users_get_with_http_info variant
209
+
210
+ This returns an Array which contains the response data, status code and headers.
211
+
212
+ > <Array(<UsersList>, Integer, Hash)> clusters_users_get_with_http_info(cluster_id)
213
+
214
+ ```ruby
215
+ begin
216
+ # Get a Cluster Users
217
+ data, status_code, headers = api_instance.clusters_users_get_with_http_info(cluster_id)
218
+ p status_code # => 2xx
219
+ p headers # => { ... }
220
+ p data # => <UsersList>
221
+ rescue IonoscloudDbaasMongo::ApiError => e
222
+ puts "Error when calling UsersApi->clusters_users_get_with_http_info: #{e}"
223
+ end
224
+ ```
225
+
226
+ ### Parameters
227
+
228
+ | Name | Type | Description | Notes |
229
+ | ---- | ---- | ----------- | ----- |
230
+ | **cluster_id** | **String** | The unique ID of the cluster. | |
231
+
232
+ ### Return type
233
+
234
+ [**UsersList**](UsersList.md)
235
+
236
+ ### Authorization
237
+
238
+ basicAuth, tokenAuth
239
+
240
+ ### HTTP request headers
241
+
242
+ - **Content-Type**: Not defined
243
+ - **Accept**: application/json
244
+
245
+
246
+ ## clusters_users_post
247
+
248
+ > <User> clusters_users_post(cluster_id, user)
249
+
250
+ Create MongoDB User
251
+
252
+ Creates a MongoDB user.
253
+
254
+ ### Examples
255
+
256
+ ```ruby
257
+ require 'time'
258
+ require 'ionoscloud-dbaas-mongo'
259
+ # setup authorization
260
+ IonoscloudDbaasMongo.configure do |config|
261
+ # Configure HTTP basic authorization: basicAuth
262
+ config.username = 'YOUR USERNAME'
263
+ config.password = 'YOUR PASSWORD'
264
+
265
+ # Configure API key authorization: tokenAuth
266
+ config.api_key['Authorization'] = 'YOUR API KEY'
267
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
268
+ # config.api_key_prefix['Authorization'] = 'Bearer'
269
+ end
270
+
271
+ api_instance = IonoscloudDbaasMongo::UsersApi.new
272
+ cluster_id = 'cluster_id_example' # String | The unique ID of the cluster.
273
+ user = IonoscloudDbaasMongo::User.new # User | The user to be created.
274
+
275
+ begin
276
+ # Create MongoDB User
277
+ result = api_instance.clusters_users_post(cluster_id, user)
278
+ p result
279
+ rescue IonoscloudDbaasMongo::ApiError => e
280
+ puts "Error when calling UsersApi->clusters_users_post: #{e}"
281
+ end
282
+ ```
283
+
284
+ #### Using the clusters_users_post_with_http_info variant
285
+
286
+ This returns an Array which contains the response data, status code and headers.
287
+
288
+ > <Array(<User>, Integer, Hash)> clusters_users_post_with_http_info(cluster_id, user)
289
+
290
+ ```ruby
291
+ begin
292
+ # Create MongoDB User
293
+ data, status_code, headers = api_instance.clusters_users_post_with_http_info(cluster_id, user)
294
+ p status_code # => 2xx
295
+ p headers # => { ... }
296
+ p data # => <User>
297
+ rescue IonoscloudDbaasMongo::ApiError => e
298
+ puts "Error when calling UsersApi->clusters_users_post_with_http_info: #{e}"
299
+ end
300
+ ```
301
+
302
+ ### Parameters
303
+
304
+ | Name | Type | Description | Notes |
305
+ | ---- | ---- | ----------- | ----- |
306
+ | **cluster_id** | **String** | The unique ID of the cluster. | |
307
+ | **user** | [**User**](User.md) | The user to be created. | |
308
+
309
+ ### Return type
310
+
311
+ [**User**](User.md)
312
+
313
+ ### Authorization
314
+
315
+ basicAuth, tokenAuth
316
+
317
+ ### HTTP request headers
318
+
319
+ - **Content-Type**: application/json
320
+ - **Accept**: application/json
321
+
@@ -0,0 +1,20 @@
1
+ # APIVersion
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **name** | **String** | | [optional] |
8
+ | **swagger_url** | **String** | | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'ionoscloud-dbaas-mongo'
14
+
15
+ instance = IonoscloudDbaasMongo::APIVersion.new(
16
+ name: v2.1,
17
+ swagger_url: https://api.ionos.com/databases/mongodb/infos/assets/swagger-v2.1.yml
18
+ )
19
+ ```
20
+
@@ -0,0 +1,28 @@
1
+ # ClusterList
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **type** | [**ResourceType**](ResourceType.md) | | [optional] |
8
+ | **id** | **String** | The unique ID of the resource. | [optional] |
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] |
13
+
14
+ ## Example
15
+
16
+ ```ruby
17
+ require 'ionoscloud-dbaas-mongo'
18
+
19
+ instance = IonoscloudDbaasMongo::ClusterList.new(
20
+ type: null,
21
+ id: 498ae72f-411f-11eb-9d07-046c59cc737e,
22
+ items: null,
23
+ offset: 0,
24
+ limit: 42,
25
+ _links: null
26
+ )
27
+ ```
28
+
@@ -0,0 +1,22 @@
1
+ # ClusterListAllOf
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **type** | [**ResourceType**](ResourceType.md) | | [optional] |
8
+ | **id** | **String** | The unique ID of the resource. | [optional] |
9
+ | **items** | [**Array&lt;ClusterResponse&gt;**](ClusterResponse.md) | | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'ionoscloud-dbaas-mongo'
15
+
16
+ instance = IonoscloudDbaasMongo::ClusterListAllOf.new(
17
+ type: null,
18
+ id: 498ae72f-411f-11eb-9d07-046c59cc737e,
19
+ items: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,18 @@
1
+ # ClusterLogs
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **instances** | [**Array&lt;ClusterLogsInstances&gt;**](ClusterLogsInstances.md) | | [optional] |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'ionoscloud-dbaas-mongo'
13
+
14
+ instance = IonoscloudDbaasMongo::ClusterLogs.new(
15
+ instances: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,20 @@
1
+ # ClusterLogsInstances
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **name** | **String** | The name of the MongoDB instance. | [optional] |
8
+ | **messages** | [**Array&lt;ClusterLogsMessages&gt;**](ClusterLogsMessages.md) | | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'ionoscloud-dbaas-mongo'
14
+
15
+ instance = IonoscloudDbaasMongo::ClusterLogsInstances.new(
16
+ name: mongodb-cluster-0,
17
+ messages: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,20 @@
1
+ # ClusterLogsMessages
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **time** | **Time** | | [optional] |
8
+ | **message** | **String** | | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'ionoscloud-dbaas-mongo'
14
+
15
+ instance = IonoscloudDbaasMongo::ClusterLogsMessages.new(
16
+ time: 2021-09-06T10:00:38.253+02:00,
17
+ message: Hello World
18
+ )
19
+ ```
20
+
@@ -0,0 +1,32 @@
1
+ # ClusterProperties
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **display_name** | **String** | The name of your cluster. | [optional] |
8
+ | **mongo_db_version** | **String** | The MongoDB version of your cluster. | [optional] |
9
+ | **location** | **String** | The physical location where the cluster will be created. This is the location where all your instances will be located. This property is immutable. | [optional] |
10
+ | **instances** | **Integer** | The total number of instances in the cluster (one primary and n-1 secondaries). | [optional] |
11
+ | **connections** | [**Array&lt;Connection&gt;**](Connection.md) | | [optional] |
12
+ | **maintenance_window** | [**MaintenanceWindow**](MaintenanceWindow.md) | | [optional] |
13
+ | **template_id** | **String** | The unique ID of the template, which specifies the number of cores, storage size, and memory. | [optional] |
14
+ | **connection_string** | **String** | The connection string for your cluster. | [optional] |
15
+
16
+ ## Example
17
+
18
+ ```ruby
19
+ require 'ionoscloud-dbaas-mongo'
20
+
21
+ instance = IonoscloudDbaasMongo::ClusterProperties.new(
22
+ display_name: MongoDB cluster,
23
+ mongo_db_version: 5.0,
24
+ location: de/txl,
25
+ instances: 3,
26
+ connections: null,
27
+ maintenance_window: null,
28
+ template_id: 498ae72f-411f-11eb-9d07-046c59cc737e,
29
+ connection_string: mongo+srv://m-498ae72f-411f-11eb-9d07-046c59cc737e.mongodb.de-txl.ionos.com
30
+ )
31
+ ```
32
+
@@ -0,0 +1,24 @@
1
+ # ClusterResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **type** | [**ResourceType**](ResourceType.md) | | [optional] |
8
+ | **id** | **String** | The unique ID of the resource. | [optional] |
9
+ | **metadata** | [**Metadata**](Metadata.md) | | [optional] |
10
+ | **properties** | [**ClusterProperties**](ClusterProperties.md) | | [optional] |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'ionoscloud-dbaas-mongo'
16
+
17
+ instance = IonoscloudDbaasMongo::ClusterResponse.new(
18
+ type: null,
19
+ id: 498ae72f-411f-11eb-9d07-046c59cc737e,
20
+ metadata: null,
21
+ properties: null
22
+ )
23
+ ```
24
+
@@ -0,0 +1,22 @@
1
+ # Connection
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **datacenter_id** | **String** | The datacenter to which your cluster will be connected. | |
8
+ | **lan_id** | **String** | The numeric LAN ID with which you connect your cluster. | |
9
+ | **cidr_list** | **Array&lt;String&gt;** | The list of IPs and subnet for your cluster. Note the following unavailable IP ranges: 10.233.64.0/18 10.233.0.0/18 10.233.114.0/24 | |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'ionoscloud-dbaas-mongo'
15
+
16
+ instance = IonoscloudDbaasMongo::Connection.new(
17
+ datacenter_id: 5a029f4a-72e5-11ec-90d6-0242ac120003,
18
+ lan_id: 2,
19
+ cidr_list: ["192.168.1.100/24","192.168.1.101/24"]
20
+ )
21
+ ```
22
+
@@ -0,0 +1,30 @@
1
+ # CreateClusterProperties
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **template_id** | **String** | The unique ID of the template, which specifies the number of cores, storage size, and memory. | |
8
+ | **mongo_db_version** | **String** | The MongoDB version of your cluster. | [optional] |
9
+ | **instances** | **Integer** | The total number of instances in the cluster (one primary and n-1 secondaries). | |
10
+ | **connections** | [**Array&lt;Connection&gt;**](Connection.md) | | |
11
+ | **location** | **String** | The physical location where the cluster will be created. This is the location where all your instances will be located. This property is immutable. | |
12
+ | **display_name** | **String** | The name of your cluster. | |
13
+ | **maintenance_window** | [**MaintenanceWindow**](MaintenanceWindow.md) | | [optional] |
14
+
15
+ ## Example
16
+
17
+ ```ruby
18
+ require 'ionoscloud-dbaas-mongo'
19
+
20
+ instance = IonoscloudDbaasMongo::CreateClusterProperties.new(
21
+ template_id: 498ae72f-411f-11eb-9d07-046c59cc737e,
22
+ mongo_db_version: 5.0,
23
+ instances: 3,
24
+ connections: null,
25
+ location: de/txl,
26
+ display_name: MongoDB cluster,
27
+ maintenance_window: null
28
+ )
29
+ ```
30
+
@@ -0,0 +1,20 @@
1
+ # CreateClusterRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **metadata** | [**Metadata**](Metadata.md) | | [optional] |
8
+ | **properties** | [**CreateClusterProperties**](CreateClusterProperties.md) | | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'ionoscloud-dbaas-mongo'
14
+
15
+ instance = IonoscloudDbaasMongo::CreateClusterRequest.new(
16
+ metadata: null,
17
+ properties: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,18 @@
1
+ # CreateRestoreRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **snapshot_id** | **String** | The unique ID of the snapshot you want to restore. | |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'ionoscloud-dbaas-mongo'
13
+
14
+ instance = IonoscloudDbaasMongo::CreateRestoreRequest.new(
15
+ snapshot_id: dcd31531-3ac8-11eb-9feb-046c59cc737e
16
+ )
17
+ ```
18
+
@@ -0,0 +1,15 @@
1
+ # DayOfTheWeek
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+
8
+ ## Example
9
+
10
+ ```ruby
11
+ require 'ionoscloud-dbaas-mongo'
12
+
13
+ instance = IonoscloudDbaasMongo::DayOfTheWeek.new()
14
+ ```
15
+
@@ -0,0 +1,20 @@
1
+ # ErrorMessage
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **error_code** | **String** | Application internal error code. | [optional] |
8
+ | **message** | **String** | A human readable explanation specific to this occurrence of the problem. | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'ionoscloud-dbaas-mongo'
14
+
15
+ instance = IonoscloudDbaasMongo::ErrorMessage.new(
16
+ error_code: dbaas-err-api-123,
17
+ message: Error message example
18
+ )
19
+ ```
20
+
@@ -0,0 +1,20 @@
1
+ # ErrorResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **http_status** | **Integer** | The HTTP status code of the operation. | [optional] |
8
+ | **messages** | [**Array&lt;ErrorMessage&gt;**](ErrorMessage.md) | | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'ionoscloud-dbaas-mongo'
14
+
15
+ instance = IonoscloudDbaasMongo::ErrorResponse.new(
16
+ http_status: 400,
17
+ messages: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,20 @@
1
+ # MaintenanceWindow
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **time** | **String** | | |
8
+ | **day_of_the_week** | [**DayOfTheWeek**](DayOfTheWeek.md) | | |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'ionoscloud-dbaas-mongo'
14
+
15
+ instance = IonoscloudDbaasMongo::MaintenanceWindow.new(
16
+ time: 16:30:59,
17
+ day_of_the_week: null
18
+ )
19
+ ```
20
+