ionoscloud-dbaas-mongo 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/docs/api/UsersApi.md +20 -26
- data/docs/models/Health.md +15 -0
- data/docs/models/Metadata.md +3 -1
- data/ionoscloud-dbaas-mongo.gemspec +1 -1
- data/lib/ionoscloud-dbaas-mongo/api/clusters_api.rb +1 -1
- data/lib/ionoscloud-dbaas-mongo/api/logs_api.rb +1 -1
- data/lib/ionoscloud-dbaas-mongo/api/metadata_api.rb +1 -1
- data/lib/ionoscloud-dbaas-mongo/api/restores_api.rb +1 -1
- data/lib/ionoscloud-dbaas-mongo/api/snapshots_api.rb +1 -1
- data/lib/ionoscloud-dbaas-mongo/api/templates_api.rb +1 -1
- data/lib/ionoscloud-dbaas-mongo/api/users_api.rb +17 -35
- data/lib/ionoscloud-dbaas-mongo/api_client.rb +2 -2
- data/lib/ionoscloud-dbaas-mongo/api_error.rb +1 -1
- data/lib/ionoscloud-dbaas-mongo/configuration.rb +1 -1
- data/lib/ionoscloud-dbaas-mongo/models/api_version.rb +1 -1
- data/lib/ionoscloud-dbaas-mongo/models/cluster_list.rb +1 -1
- data/lib/ionoscloud-dbaas-mongo/models/cluster_list_all_of.rb +1 -1
- data/lib/ionoscloud-dbaas-mongo/models/cluster_logs.rb +1 -1
- data/lib/ionoscloud-dbaas-mongo/models/cluster_logs_instances.rb +1 -1
- data/lib/ionoscloud-dbaas-mongo/models/cluster_logs_messages.rb +1 -1
- data/lib/ionoscloud-dbaas-mongo/models/cluster_properties.rb +1 -1
- data/lib/ionoscloud-dbaas-mongo/models/cluster_response.rb +1 -1
- data/lib/ionoscloud-dbaas-mongo/models/connection.rb +1 -1
- data/lib/ionoscloud-dbaas-mongo/models/create_cluster_properties.rb +1 -1
- data/lib/ionoscloud-dbaas-mongo/models/create_cluster_request.rb +1 -1
- data/lib/ionoscloud-dbaas-mongo/models/create_restore_request.rb +1 -1
- data/lib/ionoscloud-dbaas-mongo/models/day_of_the_week.rb +1 -1
- data/lib/ionoscloud-dbaas-mongo/models/error_message.rb +1 -1
- data/lib/ionoscloud-dbaas-mongo/models/error_response.rb +1 -1
- data/lib/ionoscloud-dbaas-mongo/models/health.rb +39 -0
- data/lib/ionoscloud-dbaas-mongo/models/maintenance_window.rb +1 -1
- data/lib/ionoscloud-dbaas-mongo/models/metadata.rb +22 -5
- data/lib/ionoscloud-dbaas-mongo/models/pagination.rb +1 -1
- data/lib/ionoscloud-dbaas-mongo/models/pagination_links.rb +1 -1
- data/lib/ionoscloud-dbaas-mongo/models/patch_cluster_properties.rb +1 -1
- data/lib/ionoscloud-dbaas-mongo/models/patch_cluster_request.rb +1 -1
- data/lib/ionoscloud-dbaas-mongo/models/patch_user_properties.rb +1 -1
- data/lib/ionoscloud-dbaas-mongo/models/patch_user_request.rb +1 -1
- data/lib/ionoscloud-dbaas-mongo/models/resource_type.rb +1 -1
- data/lib/ionoscloud-dbaas-mongo/models/snapshot_list.rb +1 -1
- data/lib/ionoscloud-dbaas-mongo/models/snapshot_list_all_of.rb +1 -1
- data/lib/ionoscloud-dbaas-mongo/models/snapshot_properties.rb +1 -1
- data/lib/ionoscloud-dbaas-mongo/models/snapshot_response.rb +2 -2
- data/lib/ionoscloud-dbaas-mongo/models/state.rb +1 -1
- data/lib/ionoscloud-dbaas-mongo/models/template_list.rb +1 -1
- data/lib/ionoscloud-dbaas-mongo/models/template_list_all_of.rb +1 -1
- data/lib/ionoscloud-dbaas-mongo/models/template_response.rb +1 -1
- data/lib/ionoscloud-dbaas-mongo/models/user.rb +1 -1
- data/lib/ionoscloud-dbaas-mongo/models/user_metadata.rb +1 -1
- data/lib/ionoscloud-dbaas-mongo/models/user_properties.rb +1 -1
- data/lib/ionoscloud-dbaas-mongo/models/user_roles.rb +3 -3
- data/lib/ionoscloud-dbaas-mongo/models/users_list.rb +1 -1
- data/lib/ionoscloud-dbaas-mongo/version.rb +2 -2
- data/lib/ionoscloud-dbaas-mongo.rb +2 -1
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 514775f01e733267e867006a0322db445f7bb163bf04d64f06602b07244e0196
|
4
|
+
data.tar.gz: 4c284713d69447af04ea8e6b6c18bbbde3bc07aa0eff3cb9b5def94b84f91438
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f0f78b1fb3a18a6a16ef19620bcbcb5c81a5f25f009438654c00cda5bb5ef9f07fd5f16a96d540435adc5014235b456dfc21a64a2dfa3ac9e955cbf3c1b4274d
|
7
|
+
data.tar.gz: '081558656ae0043f2206d1099b4ae2cc197f59fcb13aed08fd09652c136abb077aba107371b4ec3bd16d4274f2364a7b8fd465ba19605fcf5caa72e8e6117610'
|
data/Gemfile.lock
CHANGED
data/docs/api/UsersApi.md
CHANGED
@@ -4,16 +4,16 @@ All URIs are relative to *https://api.ionos.com/databases/mongodb*
|
|
4
4
|
|
5
5
|
| Method | HTTP request | Description |
|
6
6
|
| ------ | ------------ | ----------- |
|
7
|
-
| [**clusters_users_delete**](UsersApi.md#clusters_users_delete) | **DELETE** /clusters/{clusterId}/users/{
|
8
|
-
| [**clusters_users_find_by_id**](UsersApi.md#clusters_users_find_by_id) | **GET** /clusters/{clusterId}/users/{
|
9
|
-
| [**clusters_users_get**](UsersApi.md#clusters_users_get) | **GET** /clusters/{clusterId}/users | Get
|
10
|
-
| [**clusters_users_patch**](UsersApi.md#clusters_users_patch) | **PATCH** /clusters/{clusterId}/users/{
|
7
|
+
| [**clusters_users_delete**](UsersApi.md#clusters_users_delete) | **DELETE** /clusters/{clusterId}/users/{username} | Delete a MongoDB User by ID |
|
8
|
+
| [**clusters_users_find_by_id**](UsersApi.md#clusters_users_find_by_id) | **GET** /clusters/{clusterId}/users/{username} | Get a MongoDB User by ID |
|
9
|
+
| [**clusters_users_get**](UsersApi.md#clusters_users_get) | **GET** /clusters/{clusterId}/users | Get all Cluster Users |
|
10
|
+
| [**clusters_users_patch**](UsersApi.md#clusters_users_patch) | **PATCH** /clusters/{clusterId}/users/{username} | Patch a MongoDB User by ID |
|
11
11
|
| [**clusters_users_post**](UsersApi.md#clusters_users_post) | **POST** /clusters/{clusterId}/users | Create MongoDB User |
|
12
12
|
|
13
13
|
|
14
14
|
## clusters_users_delete
|
15
15
|
|
16
|
-
> <User> clusters_users_delete(cluster_id,
|
16
|
+
> <User> clusters_users_delete(cluster_id, username)
|
17
17
|
|
18
18
|
Delete a MongoDB User by ID
|
19
19
|
|
@@ -38,12 +38,11 @@ end
|
|
38
38
|
|
39
39
|
api_instance = IonoscloudDbaasMongo::UsersApi.new
|
40
40
|
cluster_id = 'cluster_id_example' # String | The unique ID of the cluster.
|
41
|
-
database = 'database_example' # String | The authentication database.
|
42
41
|
username = 'username_example' # String | The authentication username.
|
43
42
|
|
44
43
|
begin
|
45
44
|
# Delete a MongoDB User by ID
|
46
|
-
result = api_instance.clusters_users_delete(cluster_id,
|
45
|
+
result = api_instance.clusters_users_delete(cluster_id, username)
|
47
46
|
p result
|
48
47
|
rescue IonoscloudDbaasMongo::ApiError => e
|
49
48
|
puts "Error when calling UsersApi->clusters_users_delete: #{e}"
|
@@ -54,12 +53,12 @@ end
|
|
54
53
|
|
55
54
|
This returns an Array which contains the response data, status code and headers.
|
56
55
|
|
57
|
-
> <Array(<User>, Integer, Hash)> clusters_users_delete_with_http_info(cluster_id,
|
56
|
+
> <Array(<User>, Integer, Hash)> clusters_users_delete_with_http_info(cluster_id, username)
|
58
57
|
|
59
58
|
```ruby
|
60
59
|
begin
|
61
60
|
# Delete a MongoDB User by ID
|
62
|
-
data, status_code, headers = api_instance.clusters_users_delete_with_http_info(cluster_id,
|
61
|
+
data, status_code, headers = api_instance.clusters_users_delete_with_http_info(cluster_id, username)
|
63
62
|
p status_code # => 2xx
|
64
63
|
p headers # => { ... }
|
65
64
|
p data # => <User>
|
@@ -73,7 +72,6 @@ end
|
|
73
72
|
| Name | Type | Description | Notes |
|
74
73
|
| ---- | ---- | ----------- | ----- |
|
75
74
|
| **cluster_id** | **String** | The unique ID of the cluster. | |
|
76
|
-
| **database** | **String** | The authentication database. | |
|
77
75
|
| **username** | **String** | The authentication username. | |
|
78
76
|
|
79
77
|
### Return type
|
@@ -92,11 +90,11 @@ basicAuth, tokenAuth
|
|
92
90
|
|
93
91
|
## clusters_users_find_by_id
|
94
92
|
|
95
|
-
> <User> clusters_users_find_by_id(cluster_id,
|
93
|
+
> <User> clusters_users_find_by_id(cluster_id, username)
|
96
94
|
|
97
95
|
Get a MongoDB User by ID
|
98
96
|
|
99
|
-
Retrieves the MongoDB user identified by the username
|
97
|
+
Retrieves the MongoDB user identified by the username.
|
100
98
|
|
101
99
|
### Examples
|
102
100
|
|
@@ -117,12 +115,11 @@ end
|
|
117
115
|
|
118
116
|
api_instance = IonoscloudDbaasMongo::UsersApi.new
|
119
117
|
cluster_id = 'cluster_id_example' # String | The unique ID of the cluster.
|
120
|
-
database = 'database_example' # String | The authentication database.
|
121
118
|
username = 'username_example' # String | The authentication username.
|
122
119
|
|
123
120
|
begin
|
124
121
|
# Get a MongoDB User by ID
|
125
|
-
result = api_instance.clusters_users_find_by_id(cluster_id,
|
122
|
+
result = api_instance.clusters_users_find_by_id(cluster_id, username)
|
126
123
|
p result
|
127
124
|
rescue IonoscloudDbaasMongo::ApiError => e
|
128
125
|
puts "Error when calling UsersApi->clusters_users_find_by_id: #{e}"
|
@@ -133,12 +130,12 @@ end
|
|
133
130
|
|
134
131
|
This returns an Array which contains the response data, status code and headers.
|
135
132
|
|
136
|
-
> <Array(<User>, Integer, Hash)> clusters_users_find_by_id_with_http_info(cluster_id,
|
133
|
+
> <Array(<User>, Integer, Hash)> clusters_users_find_by_id_with_http_info(cluster_id, username)
|
137
134
|
|
138
135
|
```ruby
|
139
136
|
begin
|
140
137
|
# Get a MongoDB User by ID
|
141
|
-
data, status_code, headers = api_instance.clusters_users_find_by_id_with_http_info(cluster_id,
|
138
|
+
data, status_code, headers = api_instance.clusters_users_find_by_id_with_http_info(cluster_id, username)
|
142
139
|
p status_code # => 2xx
|
143
140
|
p headers # => { ... }
|
144
141
|
p data # => <User>
|
@@ -152,7 +149,6 @@ end
|
|
152
149
|
| Name | Type | Description | Notes |
|
153
150
|
| ---- | ---- | ----------- | ----- |
|
154
151
|
| **cluster_id** | **String** | The unique ID of the cluster. | |
|
155
|
-
| **database** | **String** | The authentication database. | |
|
156
152
|
| **username** | **String** | The authentication username. | |
|
157
153
|
|
158
154
|
### Return type
|
@@ -173,7 +169,7 @@ basicAuth, tokenAuth
|
|
173
169
|
|
174
170
|
> <UsersList> clusters_users_get(cluster_id)
|
175
171
|
|
176
|
-
Get
|
172
|
+
Get all Cluster Users
|
177
173
|
|
178
174
|
Retrieves a list of MongoDB users.
|
179
175
|
|
@@ -198,7 +194,7 @@ api_instance = IonoscloudDbaasMongo::UsersApi.new
|
|
198
194
|
cluster_id = 'cluster_id_example' # String | The unique ID of the cluster.
|
199
195
|
|
200
196
|
begin
|
201
|
-
# Get
|
197
|
+
# Get all Cluster Users
|
202
198
|
result = api_instance.clusters_users_get(cluster_id)
|
203
199
|
p result
|
204
200
|
rescue IonoscloudDbaasMongo::ApiError => e
|
@@ -214,7 +210,7 @@ This returns an Array which contains the response data, status code and headers.
|
|
214
210
|
|
215
211
|
```ruby
|
216
212
|
begin
|
217
|
-
# Get
|
213
|
+
# Get all Cluster Users
|
218
214
|
data, status_code, headers = api_instance.clusters_users_get_with_http_info(cluster_id)
|
219
215
|
p status_code # => 2xx
|
220
216
|
p headers # => { ... }
|
@@ -246,7 +242,7 @@ basicAuth, tokenAuth
|
|
246
242
|
|
247
243
|
## clusters_users_patch
|
248
244
|
|
249
|
-
> <User> clusters_users_patch(cluster_id,
|
245
|
+
> <User> clusters_users_patch(cluster_id, username, patch_user_request)
|
250
246
|
|
251
247
|
Patch a MongoDB User by ID
|
252
248
|
|
@@ -271,13 +267,12 @@ end
|
|
271
267
|
|
272
268
|
api_instance = IonoscloudDbaasMongo::UsersApi.new
|
273
269
|
cluster_id = 'cluster_id_example' # String | The unique ID of the cluster.
|
274
|
-
database = 'database_example' # String | The authentication database.
|
275
270
|
username = 'username_example' # String | The authentication username.
|
276
271
|
patch_user_request = IonoscloudDbaasMongo::PatchUserRequest.new # PatchUserRequest | Part of the MongoDB user which should be modified.
|
277
272
|
|
278
273
|
begin
|
279
274
|
# Patch a MongoDB User by ID
|
280
|
-
result = api_instance.clusters_users_patch(cluster_id,
|
275
|
+
result = api_instance.clusters_users_patch(cluster_id, username, patch_user_request)
|
281
276
|
p result
|
282
277
|
rescue IonoscloudDbaasMongo::ApiError => e
|
283
278
|
puts "Error when calling UsersApi->clusters_users_patch: #{e}"
|
@@ -288,12 +283,12 @@ end
|
|
288
283
|
|
289
284
|
This returns an Array which contains the response data, status code and headers.
|
290
285
|
|
291
|
-
> <Array(<User>, Integer, Hash)> clusters_users_patch_with_http_info(cluster_id,
|
286
|
+
> <Array(<User>, Integer, Hash)> clusters_users_patch_with_http_info(cluster_id, username, patch_user_request)
|
292
287
|
|
293
288
|
```ruby
|
294
289
|
begin
|
295
290
|
# Patch a MongoDB User by ID
|
296
|
-
data, status_code, headers = api_instance.clusters_users_patch_with_http_info(cluster_id,
|
291
|
+
data, status_code, headers = api_instance.clusters_users_patch_with_http_info(cluster_id, username, patch_user_request)
|
297
292
|
p status_code # => 2xx
|
298
293
|
p headers # => { ... }
|
299
294
|
p data # => <User>
|
@@ -307,7 +302,6 @@ end
|
|
307
302
|
| Name | Type | Description | Notes |
|
308
303
|
| ---- | ---- | ----------- | ----- |
|
309
304
|
| **cluster_id** | **String** | The unique ID of the cluster. | |
|
310
|
-
| **database** | **String** | The authentication database. | |
|
311
305
|
| **username** | **String** | The authentication username. | |
|
312
306
|
| **patch_user_request** | [**PatchUserRequest**](PatchUserRequest.md) | Part of the MongoDB user which should be modified. | |
|
313
307
|
|
data/docs/models/Metadata.md
CHANGED
@@ -11,6 +11,7 @@
|
|
11
11
|
| **last_modified_by** | **String** | The last user who modified the resource. | [optional] |
|
12
12
|
| **last_modified_by_user_id** | **String** | The ID of the user who last modified the resource. | [optional] |
|
13
13
|
| **state** | [**State**](State.md) | | [optional] |
|
14
|
+
| **health** | [**Health**](Health.md) | | [optional] |
|
14
15
|
|
15
16
|
## Example
|
16
17
|
|
@@ -24,7 +25,8 @@ instance = IonoscloudDbaasMongo::Metadata.new(
|
|
24
25
|
last_modified_date: 2020-12-11T13:37:50+01:00,
|
25
26
|
last_modified_by: jane.doe@example.com,
|
26
27
|
last_modified_by_user_id: 87f9a82e-b28d-49ed-9d04-fba2c0459cd3,
|
27
|
-
state: null
|
28
|
+
state: null,
|
29
|
+
health: null
|
28
30
|
)
|
29
31
|
```
|
30
32
|
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
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
|
-
The version of the OpenAPI document:
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
9
9
|
|
10
10
|
Generated by: https://openapi-generator.tech
|
11
11
|
OpenAPI Generator version: 5.2.1-SNAPSHOT
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
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
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
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
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
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
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
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
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
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
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
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
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
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
|
@@ -22,23 +22,21 @@ module IonoscloudDbaasMongo
|
|
22
22
|
# Delete a MongoDB User by ID
|
23
23
|
# Deletes a MongoDB user specified by its ID.
|
24
24
|
# @param cluster_id [String] The unique ID of the cluster.
|
25
|
-
# @param database [String] The authentication database.
|
26
25
|
# @param username [String] The authentication username.
|
27
26
|
# @param [Hash] opts the optional parameters
|
28
27
|
# @return [User]
|
29
|
-
def clusters_users_delete(cluster_id,
|
30
|
-
data, _status_code, _headers = clusters_users_delete_with_http_info(cluster_id,
|
28
|
+
def clusters_users_delete(cluster_id, username, opts = {})
|
29
|
+
data, _status_code, _headers = clusters_users_delete_with_http_info(cluster_id, username, opts)
|
31
30
|
data
|
32
31
|
end
|
33
32
|
|
34
33
|
# Delete a MongoDB User by ID
|
35
34
|
# Deletes a MongoDB user specified by its ID.
|
36
35
|
# @param cluster_id [String] The unique ID of the cluster.
|
37
|
-
# @param database [String] The authentication database.
|
38
36
|
# @param username [String] The authentication username.
|
39
37
|
# @param [Hash] opts the optional parameters
|
40
38
|
# @return [Array<(User, Integer, Hash)>] User data, response status code and response headers
|
41
|
-
def clusters_users_delete_with_http_info(cluster_id,
|
39
|
+
def clusters_users_delete_with_http_info(cluster_id, username, opts = {})
|
42
40
|
if @api_client.config.debugging
|
43
41
|
@api_client.config.logger.debug 'Calling API: UsersApi.clusters_users_delete ...'
|
44
42
|
end
|
@@ -46,16 +44,12 @@ module IonoscloudDbaasMongo
|
|
46
44
|
if @api_client.config.client_side_validation && cluster_id.nil?
|
47
45
|
fail ArgumentError, "Missing the required parameter 'cluster_id' when calling UsersApi.clusters_users_delete"
|
48
46
|
end
|
49
|
-
# verify the required parameter 'database' is set
|
50
|
-
if @api_client.config.client_side_validation && database.nil?
|
51
|
-
fail ArgumentError, "Missing the required parameter 'database' when calling UsersApi.clusters_users_delete"
|
52
|
-
end
|
53
47
|
# verify the required parameter 'username' is set
|
54
48
|
if @api_client.config.client_side_validation && username.nil?
|
55
49
|
fail ArgumentError, "Missing the required parameter 'username' when calling UsersApi.clusters_users_delete"
|
56
50
|
end
|
57
51
|
# resource path
|
58
|
-
local_var_path = '/clusters/{clusterId}/users/{
|
52
|
+
local_var_path = '/clusters/{clusterId}/users/{username}'.sub('{' + 'clusterId' + '}', CGI.escape(cluster_id.to_s)).sub('{' + 'username' + '}', CGI.escape(username.to_s))
|
59
53
|
|
60
54
|
# query parameters
|
61
55
|
query_params = opts[:query_params] || {}
|
@@ -95,25 +89,23 @@ module IonoscloudDbaasMongo
|
|
95
89
|
end
|
96
90
|
|
97
91
|
# Get a MongoDB User by ID
|
98
|
-
# Retrieves the MongoDB user identified by the username
|
92
|
+
# Retrieves the MongoDB user identified by the username.
|
99
93
|
# @param cluster_id [String] The unique ID of the cluster.
|
100
|
-
# @param database [String] The authentication database.
|
101
94
|
# @param username [String] The authentication username.
|
102
95
|
# @param [Hash] opts the optional parameters
|
103
96
|
# @return [User]
|
104
|
-
def clusters_users_find_by_id(cluster_id,
|
105
|
-
data, _status_code, _headers = clusters_users_find_by_id_with_http_info(cluster_id,
|
97
|
+
def clusters_users_find_by_id(cluster_id, username, opts = {})
|
98
|
+
data, _status_code, _headers = clusters_users_find_by_id_with_http_info(cluster_id, username, opts)
|
106
99
|
data
|
107
100
|
end
|
108
101
|
|
109
102
|
# Get a MongoDB User by ID
|
110
|
-
# Retrieves the MongoDB user identified by the username
|
103
|
+
# Retrieves the MongoDB user identified by the username.
|
111
104
|
# @param cluster_id [String] The unique ID of the cluster.
|
112
|
-
# @param database [String] The authentication database.
|
113
105
|
# @param username [String] The authentication username.
|
114
106
|
# @param [Hash] opts the optional parameters
|
115
107
|
# @return [Array<(User, Integer, Hash)>] User data, response status code and response headers
|
116
|
-
def clusters_users_find_by_id_with_http_info(cluster_id,
|
108
|
+
def clusters_users_find_by_id_with_http_info(cluster_id, username, opts = {})
|
117
109
|
if @api_client.config.debugging
|
118
110
|
@api_client.config.logger.debug 'Calling API: UsersApi.clusters_users_find_by_id ...'
|
119
111
|
end
|
@@ -121,16 +113,12 @@ module IonoscloudDbaasMongo
|
|
121
113
|
if @api_client.config.client_side_validation && cluster_id.nil?
|
122
114
|
fail ArgumentError, "Missing the required parameter 'cluster_id' when calling UsersApi.clusters_users_find_by_id"
|
123
115
|
end
|
124
|
-
# verify the required parameter 'database' is set
|
125
|
-
if @api_client.config.client_side_validation && database.nil?
|
126
|
-
fail ArgumentError, "Missing the required parameter 'database' when calling UsersApi.clusters_users_find_by_id"
|
127
|
-
end
|
128
116
|
# verify the required parameter 'username' is set
|
129
117
|
if @api_client.config.client_side_validation && username.nil?
|
130
118
|
fail ArgumentError, "Missing the required parameter 'username' when calling UsersApi.clusters_users_find_by_id"
|
131
119
|
end
|
132
120
|
# resource path
|
133
|
-
local_var_path = '/clusters/{clusterId}/users/{
|
121
|
+
local_var_path = '/clusters/{clusterId}/users/{username}'.sub('{' + 'clusterId' + '}', CGI.escape(cluster_id.to_s)).sub('{' + 'username' + '}', CGI.escape(username.to_s))
|
134
122
|
|
135
123
|
# query parameters
|
136
124
|
query_params = opts[:query_params] || {}
|
@@ -169,7 +157,7 @@ module IonoscloudDbaasMongo
|
|
169
157
|
return data, status_code, headers
|
170
158
|
end
|
171
159
|
|
172
|
-
# Get
|
160
|
+
# Get all Cluster Users
|
173
161
|
# Retrieves a list of MongoDB users.
|
174
162
|
# @param cluster_id [String] The unique ID of the cluster.
|
175
163
|
# @param [Hash] opts the optional parameters
|
@@ -179,7 +167,7 @@ module IonoscloudDbaasMongo
|
|
179
167
|
data
|
180
168
|
end
|
181
169
|
|
182
|
-
# Get
|
170
|
+
# Get all Cluster Users
|
183
171
|
# Retrieves a list of MongoDB users.
|
184
172
|
# @param cluster_id [String] The unique ID of the cluster.
|
185
173
|
# @param [Hash] opts the optional parameters
|
@@ -235,25 +223,23 @@ module IonoscloudDbaasMongo
|
|
235
223
|
# Patch a MongoDB User by ID
|
236
224
|
# Patches a MongoDB user specified by its ID.
|
237
225
|
# @param cluster_id [String] The unique ID of the cluster.
|
238
|
-
# @param database [String] The authentication database.
|
239
226
|
# @param username [String] The authentication username.
|
240
227
|
# @param patch_user_request [PatchUserRequest] Part of the MongoDB user which should be modified.
|
241
228
|
# @param [Hash] opts the optional parameters
|
242
229
|
# @return [User]
|
243
|
-
def clusters_users_patch(cluster_id,
|
244
|
-
data, _status_code, _headers = clusters_users_patch_with_http_info(cluster_id,
|
230
|
+
def clusters_users_patch(cluster_id, username, patch_user_request, opts = {})
|
231
|
+
data, _status_code, _headers = clusters_users_patch_with_http_info(cluster_id, username, patch_user_request, opts)
|
245
232
|
data
|
246
233
|
end
|
247
234
|
|
248
235
|
# Patch a MongoDB User by ID
|
249
236
|
# Patches a MongoDB user specified by its ID.
|
250
237
|
# @param cluster_id [String] The unique ID of the cluster.
|
251
|
-
# @param database [String] The authentication database.
|
252
238
|
# @param username [String] The authentication username.
|
253
239
|
# @param patch_user_request [PatchUserRequest] Part of the MongoDB user which should be modified.
|
254
240
|
# @param [Hash] opts the optional parameters
|
255
241
|
# @return [Array<(User, Integer, Hash)>] User data, response status code and response headers
|
256
|
-
def clusters_users_patch_with_http_info(cluster_id,
|
242
|
+
def clusters_users_patch_with_http_info(cluster_id, username, patch_user_request, opts = {})
|
257
243
|
if @api_client.config.debugging
|
258
244
|
@api_client.config.logger.debug 'Calling API: UsersApi.clusters_users_patch ...'
|
259
245
|
end
|
@@ -261,10 +247,6 @@ module IonoscloudDbaasMongo
|
|
261
247
|
if @api_client.config.client_side_validation && cluster_id.nil?
|
262
248
|
fail ArgumentError, "Missing the required parameter 'cluster_id' when calling UsersApi.clusters_users_patch"
|
263
249
|
end
|
264
|
-
# verify the required parameter 'database' is set
|
265
|
-
if @api_client.config.client_side_validation && database.nil?
|
266
|
-
fail ArgumentError, "Missing the required parameter 'database' when calling UsersApi.clusters_users_patch"
|
267
|
-
end
|
268
250
|
# verify the required parameter 'username' is set
|
269
251
|
if @api_client.config.client_side_validation && username.nil?
|
270
252
|
fail ArgumentError, "Missing the required parameter 'username' when calling UsersApi.clusters_users_patch"
|
@@ -274,7 +256,7 @@ module IonoscloudDbaasMongo
|
|
274
256
|
fail ArgumentError, "Missing the required parameter 'patch_user_request' when calling UsersApi.clusters_users_patch"
|
275
257
|
end
|
276
258
|
# resource path
|
277
|
-
local_var_path = '/clusters/{clusterId}/users/{
|
259
|
+
local_var_path = '/clusters/{clusterId}/users/{username}'.sub('{' + 'clusterId' + '}', CGI.escape(cluster_id.to_s)).sub('{' + 'username' + '}', CGI.escape(username.to_s))
|
278
260
|
|
279
261
|
# query parameters
|
280
262
|
query_params = opts[:query_params] || {}
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
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
|
@@ -38,7 +38,7 @@ module IonoscloudDbaasMongo
|
|
38
38
|
# @option config [Configuration] Configuration for initializing the object, default to Configuration.default
|
39
39
|
def initialize(config = Configuration.default)
|
40
40
|
@config = config
|
41
|
-
@user_agent = "sdk-ruby-dbaas-mongo/v1.
|
41
|
+
@user_agent = "sdk-ruby-dbaas-mongo/v1.2.0"
|
42
42
|
@default_headers = {
|
43
43
|
'Content-Type' => 'application/json',
|
44
44
|
'User-Agent' => @user_agent
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
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
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
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
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
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
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
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
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
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
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
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
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
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
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
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
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
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
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
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
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
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
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
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
|