ionoscloud-dbaas-mongo 1.1.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (75) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +2 -2
  3. data/docs/CHANGELOG.md +38 -0
  4. data/docs/api/ClustersApi.md +11 -7
  5. data/docs/api/LogsApi.md +1 -1
  6. data/docs/api/MetadataApi.md +2 -2
  7. data/docs/api/RestoresApi.md +1 -1
  8. data/docs/api/SnapshotsApi.md +11 -5
  9. data/docs/api/TemplatesApi.md +13 -6
  10. data/docs/api/UsersApi.md +37 -37
  11. data/docs/models/ClusterList.md +6 -6
  12. data/docs/models/ClusterResponse.md +1 -1
  13. data/docs/models/Health.md +15 -0
  14. data/docs/models/Metadata.md +3 -1
  15. data/docs/models/Pagination.md +6 -6
  16. data/docs/models/SnapshotList.md +6 -6
  17. data/docs/models/SnapshotResponse.md +1 -1
  18. data/docs/models/TemplateList.md +6 -6
  19. data/docs/models/User.md +1 -1
  20. data/docs/models/UserMetadata.md +1 -3
  21. data/ionoscloud-dbaas-mongo.gemspec +3 -3
  22. data/lib/ionoscloud-dbaas-mongo/api/clusters_api.rb +16 -2
  23. data/lib/ionoscloud-dbaas-mongo/api/logs_api.rb +2 -2
  24. data/lib/ionoscloud-dbaas-mongo/api/metadata_api.rb +2 -2
  25. data/lib/ionoscloud-dbaas-mongo/api/restores_api.rb +2 -2
  26. data/lib/ionoscloud-dbaas-mongo/api/snapshots_api.rb +16 -2
  27. data/lib/ionoscloud-dbaas-mongo/api/templates_api.rb +16 -2
  28. data/lib/ionoscloud-dbaas-mongo/api/users_api.rb +32 -36
  29. data/lib/ionoscloud-dbaas-mongo/api_client.rb +3 -3
  30. data/lib/ionoscloud-dbaas-mongo/api_error.rb +2 -2
  31. data/lib/ionoscloud-dbaas-mongo/configuration.rb +2 -2
  32. data/lib/ionoscloud-dbaas-mongo/models/api_version.rb +2 -2
  33. data/lib/ionoscloud-dbaas-mongo/models/cluster_list.rb +24 -11
  34. data/lib/ionoscloud-dbaas-mongo/models/cluster_list_all_of.rb +2 -2
  35. data/lib/ionoscloud-dbaas-mongo/models/cluster_logs.rb +2 -2
  36. data/lib/ionoscloud-dbaas-mongo/models/cluster_logs_instances.rb +2 -2
  37. data/lib/ionoscloud-dbaas-mongo/models/cluster_logs_messages.rb +2 -2
  38. data/lib/ionoscloud-dbaas-mongo/models/cluster_properties.rb +2 -2
  39. data/lib/ionoscloud-dbaas-mongo/models/cluster_response.rb +2 -2
  40. data/lib/ionoscloud-dbaas-mongo/models/connection.rb +2 -2
  41. data/lib/ionoscloud-dbaas-mongo/models/create_cluster_properties.rb +2 -2
  42. data/lib/ionoscloud-dbaas-mongo/models/create_cluster_request.rb +2 -2
  43. data/lib/ionoscloud-dbaas-mongo/models/create_restore_request.rb +2 -2
  44. data/lib/ionoscloud-dbaas-mongo/models/day_of_the_week.rb +2 -2
  45. data/lib/ionoscloud-dbaas-mongo/models/error_message.rb +2 -2
  46. data/lib/ionoscloud-dbaas-mongo/models/error_response.rb +2 -2
  47. data/lib/ionoscloud-dbaas-mongo/models/health.rb +39 -0
  48. data/lib/ionoscloud-dbaas-mongo/models/maintenance_window.rb +2 -2
  49. data/lib/ionoscloud-dbaas-mongo/models/metadata.rb +23 -6
  50. data/lib/ionoscloud-dbaas-mongo/models/pagination.rb +24 -11
  51. data/lib/ionoscloud-dbaas-mongo/models/pagination_links.rb +3 -3
  52. data/lib/ionoscloud-dbaas-mongo/models/patch_cluster_properties.rb +2 -2
  53. data/lib/ionoscloud-dbaas-mongo/models/patch_cluster_request.rb +2 -2
  54. data/lib/ionoscloud-dbaas-mongo/models/patch_user_properties.rb +2 -2
  55. data/lib/ionoscloud-dbaas-mongo/models/patch_user_request.rb +2 -2
  56. data/lib/ionoscloud-dbaas-mongo/models/resource_type.rb +2 -2
  57. data/lib/ionoscloud-dbaas-mongo/models/snapshot_list.rb +24 -11
  58. data/lib/ionoscloud-dbaas-mongo/models/snapshot_list_all_of.rb +2 -2
  59. data/lib/ionoscloud-dbaas-mongo/models/snapshot_properties.rb +2 -2
  60. data/lib/ionoscloud-dbaas-mongo/models/snapshot_response.rb +3 -3
  61. data/lib/ionoscloud-dbaas-mongo/models/state.rb +2 -2
  62. data/lib/ionoscloud-dbaas-mongo/models/template_list.rb +24 -11
  63. data/lib/ionoscloud-dbaas-mongo/models/template_list_all_of.rb +2 -2
  64. data/lib/ionoscloud-dbaas-mongo/models/template_response.rb +2 -2
  65. data/lib/ionoscloud-dbaas-mongo/models/user.rb +2 -2
  66. data/lib/ionoscloud-dbaas-mongo/models/user_metadata.rb +6 -58
  67. data/lib/ionoscloud-dbaas-mongo/models/user_properties.rb +2 -2
  68. data/lib/ionoscloud-dbaas-mongo/models/user_roles.rb +4 -4
  69. data/lib/ionoscloud-dbaas-mongo/models/users_list.rb +2 -2
  70. data/lib/ionoscloud-dbaas-mongo/version.rb +3 -3
  71. data/lib/ionoscloud-dbaas-mongo.rb +3 -2
  72. data/spec/api_client_spec.rb +2 -2
  73. data/spec/configuration_spec.rb +2 -2
  74. data/spec/spec_helper.rb +2 -2
  75. metadata +9 -6
@@ -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<TemplateResponse>**](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'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,9 +3,9 @@
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
- The version of the OpenAPI document: 0.1.0
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
@@ -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,9 +1,9 @@
1
1
  =begin
2
2
  #IONOS DBaaS MongoDB REST API
3
3
 
4
- #With IONOS Cloud Database as a Service, you have the ability to quickly set up and manage a MongoDB database. You can also delete clusters, manage backups and users via the API. MongoDB is an open source, cross-platform, document-oriented database program. Classified as a NoSQL database program, it uses JSON-like documents with optional schemas. The MongoDB API allows you to create additional database clusters or modify existing ones. Both tools, the Data Center Designer (DCD) and the API use the same concepts consistently and are well suited for smooth and intuitive use.
4
+ #With IONOS Cloud Database as a Service, you have the ability to quickly set up and manage a MongoDB database. You can also delete clusters, manage backups and users via the API. MongoDB is an open source, cross-platform, document-oriented database program. Classified as a NoSQL database program, it uses JSON-like documents with optional schemas. The MongoDB API allows you to create additional database clusters or modify existing ones. Both tools, the Data Center Designer (DCD) and the API use the same concepts consistently and are well suited for smooth and intuitive use.
5
5
 
6
- The version of the OpenAPI document: 0.1.0
6
+ The version of the OpenAPI document: 1.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.2.1-SNAPSHOT
@@ -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 'offset' for pagination. (default to 100)
152
+ # @option opts [Integer] :offset The first element to return. Use together with 'limit' 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 'displayName' 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 'offset' for pagination.
164
+ # @option opts [Integer] :offset The first element to return. Use together with 'limit' 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 'displayName' 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,9 +1,9 @@
1
1
  =begin
2
2
  #IONOS DBaaS MongoDB REST API
3
3
 
4
- #With IONOS Cloud Database as a Service, you have the ability to quickly set up and manage a MongoDB database. You can also delete clusters, manage backups and users via the API. MongoDB is an open source, cross-platform, document-oriented database program. Classified as a NoSQL database program, it uses JSON-like documents with optional schemas. The MongoDB API allows you to create additional database clusters or modify existing ones. Both tools, the Data Center Designer (DCD) and the API use the same concepts consistently and are well suited for smooth and intuitive use.
4
+ #With IONOS Cloud Database as a Service, you have the ability to quickly set up and manage a MongoDB database. You can also delete clusters, manage backups and users via the API. MongoDB is an open source, cross-platform, document-oriented database program. Classified as a NoSQL database program, it uses JSON-like documents with optional schemas. The MongoDB API allows you to create additional database clusters or modify existing ones. Both tools, the Data Center Designer (DCD) and the API use the same concepts consistently and are well suited for smooth and intuitive use.
5
5
 
6
- The version of the OpenAPI document: 0.1.0
6
+ The version of the OpenAPI document: 1.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.2.1-SNAPSHOT
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #IONOS DBaaS MongoDB REST API
3
3
 
4
- #With IONOS Cloud Database as a Service, you have the ability to quickly set up and manage a MongoDB database. You can also delete clusters, manage backups and users via the API. MongoDB is an open source, cross-platform, document-oriented database program. Classified as a NoSQL database program, it uses JSON-like documents with optional schemas. The MongoDB API allows you to create additional database clusters or modify existing ones. Both tools, the Data Center Designer (DCD) and the API use the same concepts consistently and are well suited for smooth and intuitive use.
4
+ #With IONOS Cloud Database as a Service, you have the ability to quickly set up and manage a MongoDB database. You can also delete clusters, manage backups and users via the API. MongoDB is an open source, cross-platform, document-oriented database program. Classified as a NoSQL database program, it uses JSON-like documents with optional schemas. The MongoDB API allows you to create additional database clusters or modify existing ones. Both tools, the Data Center Designer (DCD) and the API use the same concepts consistently and are well suited for smooth and intuitive use.
5
5
 
6
- The version of the OpenAPI document: 0.1.0
6
+ The version of the OpenAPI document: 1.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.2.1-SNAPSHOT
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #IONOS DBaaS MongoDB REST API
3
3
 
4
- #With IONOS Cloud Database as a Service, you have the ability to quickly set up and manage a MongoDB database. You can also delete clusters, manage backups and users via the API. MongoDB is an open source, cross-platform, document-oriented database program. Classified as a NoSQL database program, it uses JSON-like documents with optional schemas. The MongoDB API allows you to create additional database clusters or modify existing ones. Both tools, the Data Center Designer (DCD) and the API use the same concepts consistently and are well suited for smooth and intuitive use.
4
+ #With IONOS Cloud Database as a Service, you have the ability to quickly set up and manage a MongoDB database. You can also delete clusters, manage backups and users via the API. MongoDB is an open source, cross-platform, document-oriented database program. Classified as a NoSQL database program, it uses JSON-like documents with optional schemas. The MongoDB API allows you to create additional database clusters or modify existing ones. Both tools, the Data Center Designer (DCD) and the API use the same concepts consistently and are well suited for smooth and intuitive use.
5
5
 
6
- The version of the OpenAPI document: 0.1.0
6
+ The version of the OpenAPI document: 1.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.2.1-SNAPSHOT
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #IONOS DBaaS MongoDB REST API
3
3
 
4
- #With IONOS Cloud Database as a Service, you have the ability to quickly set up and manage a MongoDB database. You can also delete clusters, manage backups and users via the API. MongoDB is an open source, cross-platform, document-oriented database program. Classified as a NoSQL database program, it uses JSON-like documents with optional schemas. The MongoDB API allows you to create additional database clusters or modify existing ones. Both tools, the Data Center Designer (DCD) and the API use the same concepts consistently and are well suited for smooth and intuitive use.
4
+ #With IONOS Cloud Database as a Service, you have the ability to quickly set up and manage a MongoDB database. You can also delete clusters, manage backups and users via the API. MongoDB is an open source, cross-platform, document-oriented database program. Classified as a NoSQL database program, it uses JSON-like documents with optional schemas. The MongoDB API allows you to create additional database clusters or modify existing ones. Both tools, the Data Center Designer (DCD) and the API use the same concepts consistently and are well suited for smooth and intuitive use.
5
5
 
6
- The version of the OpenAPI document: 0.1.0
6
+ The version of the OpenAPI document: 1.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.2.1-SNAPSHOT
@@ -23,6 +23,8 @@ module IonoscloudDbaasMongo
23
23
  # Retrieves MongoDB snapshots.
24
24
  # @param cluster_id [String] The unique ID of the cluster.
25
25
  # @param [Hash] opts the optional parameters
26
+ # @option opts [Integer] :limit The maximum number of elements to return. Use together with &#39;offset&#39; for pagination. (default to 100)
27
+ # @option opts [Integer] :offset The first element to return. Use together with &#39;limit&#39; for pagination. (default to 0)
26
28
  # @return [SnapshotList]
27
29
  def clusters_snapshots_get(cluster_id, opts = {})
28
30
  data, _status_code, _headers = clusters_snapshots_get_with_http_info(cluster_id, opts)
@@ -33,6 +35,8 @@ module IonoscloudDbaasMongo
33
35
  # Retrieves MongoDB snapshots.
34
36
  # @param cluster_id [String] The unique ID of the cluster.
35
37
  # @param [Hash] opts the optional parameters
38
+ # @option opts [Integer] :limit The maximum number of elements to return. Use together with &#39;offset&#39; for pagination.
39
+ # @option opts [Integer] :offset The first element to return. Use together with &#39;limit&#39; for pagination.
36
40
  # @return [Array<(SnapshotList, Integer, Hash)>] SnapshotList data, response status code and response headers
37
41
  def clusters_snapshots_get_with_http_info(cluster_id, opts = {})
38
42
  if @api_client.config.debugging
@@ -42,11 +46,21 @@ module IonoscloudDbaasMongo
42
46
  if @api_client.config.client_side_validation && cluster_id.nil?
43
47
  fail ArgumentError, "Missing the required parameter 'cluster_id' when calling SnapshotsApi.clusters_snapshots_get"
44
48
  end
49
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000
50
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling SnapshotsApi.clusters_snapshots_get, must be smaller than or equal to 1000.'
51
+ end
52
+
53
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
54
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling SnapshotsApi.clusters_snapshots_get, must be greater than or equal to 1.'
55
+ end
56
+
45
57
  # resource path
46
58
  local_var_path = '/clusters/{clusterId}/snapshots'.sub('{' + 'clusterId' + '}', CGI.escape(cluster_id.to_s))
47
59
 
48
60
  # query parameters
49
61
  query_params = opts[:query_params] || {}
62
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
63
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
50
64
 
51
65
  # header parameters
52
66
  header_params = opts[:header_params] || {}
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #IONOS DBaaS MongoDB REST API
3
3
 
4
- #With IONOS Cloud Database as a Service, you have the ability to quickly set up and manage a MongoDB database. You can also delete clusters, manage backups and users via the API. MongoDB is an open source, cross-platform, document-oriented database program. Classified as a NoSQL database program, it uses JSON-like documents with optional schemas. The MongoDB API allows you to create additional database clusters or modify existing ones. Both tools, the Data Center Designer (DCD) and the API use the same concepts consistently and are well suited for smooth and intuitive use.
4
+ #With IONOS Cloud Database as a Service, you have the ability to quickly set up and manage a MongoDB database. You can also delete clusters, manage backups and users via the API. MongoDB is an open source, cross-platform, document-oriented database program. Classified as a NoSQL database program, it uses JSON-like documents with optional schemas. The MongoDB API allows you to create additional database clusters or modify existing ones. Both tools, the Data Center Designer (DCD) and the API use the same concepts consistently and are well suited for smooth and intuitive use.
5
5
 
6
- The version of the OpenAPI document: 0.1.0
6
+ The version of the OpenAPI document: 1.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.2.1-SNAPSHOT
@@ -22,6 +22,8 @@ module IonoscloudDbaasMongo
22
22
  # Get Templates
23
23
  # Retrieves a list of valid templates. These templates can be used to create MongoDB clusters; they contain properties, such as number of cores, RAM, and the storage size.
24
24
  # @param [Hash] opts the optional parameters
25
+ # @option opts [Integer] :limit The maximum number of elements to return. Use together with &#39;offset&#39; for pagination. (default to 100)
26
+ # @option opts [Integer] :offset The first element to return. Use together with &#39;limit&#39; for pagination. (default to 0)
25
27
  # @return [TemplateList]
26
28
  def templates_get(opts = {})
27
29
  data, _status_code, _headers = templates_get_with_http_info(opts)
@@ -31,16 +33,28 @@ module IonoscloudDbaasMongo
31
33
  # Get Templates
32
34
  # Retrieves a list of valid templates. These templates can be used to create MongoDB clusters; they contain properties, such as number of cores, RAM, and the storage size.
33
35
  # @param [Hash] opts the optional parameters
36
+ # @option opts [Integer] :limit The maximum number of elements to return. Use together with &#39;offset&#39; for pagination.
37
+ # @option opts [Integer] :offset The first element to return. Use together with &#39;limit&#39; for pagination.
34
38
  # @return [Array<(TemplateList, Integer, Hash)>] TemplateList data, response status code and response headers
35
39
  def templates_get_with_http_info(opts = {})
36
40
  if @api_client.config.debugging
37
41
  @api_client.config.logger.debug 'Calling API: TemplatesApi.templates_get ...'
38
42
  end
43
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000
44
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling TemplatesApi.templates_get, must be smaller than or equal to 1000.'
45
+ end
46
+
47
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
48
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling TemplatesApi.templates_get, must be greater than or equal to 1.'
49
+ end
50
+
39
51
  # resource path
40
52
  local_var_path = '/templates'
41
53
 
42
54
  # query parameters
43
55
  query_params = opts[:query_params] || {}
56
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
57
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
44
58
 
45
59
  # header parameters
46
60
  header_params = opts[:header_params] || {}
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #IONOS DBaaS MongoDB REST API
3
3
 
4
- #With IONOS Cloud Database as a Service, you have the ability to quickly set up and manage a MongoDB database. You can also delete clusters, manage backups and users via the API. MongoDB is an open source, cross-platform, document-oriented database program. Classified as a NoSQL database program, it uses JSON-like documents with optional schemas. The MongoDB API allows you to create additional database clusters or modify existing ones. Both tools, the Data Center Designer (DCD) and the API use the same concepts consistently and are well suited for smooth and intuitive use.
4
+ #With IONOS Cloud Database as a Service, you have the ability to quickly set up and manage a MongoDB database. You can also delete clusters, manage backups and users via the API. MongoDB is an open source, cross-platform, document-oriented database program. Classified as a NoSQL database program, it uses JSON-like documents with optional schemas. The MongoDB API allows you to create additional database clusters or modify existing ones. Both tools, the Data Center Designer (DCD) and the API use the same concepts consistently and are well suited for smooth and intuitive use.
5
5
 
6
- The version of the OpenAPI document: 0.1.0
6
+ The version of the OpenAPI document: 1.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.2.1-SNAPSHOT
@@ -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, database, username, opts = {})
30
- data, _status_code, _headers = clusters_users_delete_with_http_info(cluster_id, database, username, opts)
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, database, username, opts = {})
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/{database}/{username}'.sub('{' + 'clusterId' + '}', CGI.escape(cluster_id.to_s)).sub('{' + 'database' + '}', CGI.escape(database.to_s)).sub('{' + 'username' + '}', CGI.escape(username.to_s))
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 and database parameters.
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, database, username, opts = {})
105
- data, _status_code, _headers = clusters_users_find_by_id_with_http_info(cluster_id, database, username, opts)
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 and database parameters.
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, database, username, opts = {})
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/{database}/{username}'.sub('{' + 'clusterId' + '}', CGI.escape(cluster_id.to_s)).sub('{' + 'database' + '}', CGI.escape(database.to_s)).sub('{' + 'username' + '}', CGI.escape(username.to_s))
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,20 +157,24 @@ module IonoscloudDbaasMongo
169
157
  return data, status_code, headers
170
158
  end
171
159
 
172
- # Get a Cluster Users
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
164
+ # @option opts [Integer] :limit The maximum number of elements to return. Use together with &#39;offset&#39; for pagination. (default to 100)
165
+ # @option opts [Integer] :offset The first element to return. Use together with &#39;limit&#39; for pagination. (default to 0)
176
166
  # @return [UsersList]
177
167
  def clusters_users_get(cluster_id, opts = {})
178
168
  data, _status_code, _headers = clusters_users_get_with_http_info(cluster_id, opts)
179
169
  data
180
170
  end
181
171
 
182
- # Get a Cluster Users
172
+ # Get all Cluster Users
183
173
  # Retrieves a list of MongoDB users.
184
174
  # @param cluster_id [String] The unique ID of the cluster.
185
175
  # @param [Hash] opts the optional parameters
176
+ # @option opts [Integer] :limit The maximum number of elements to return. Use together with &#39;offset&#39; for pagination.
177
+ # @option opts [Integer] :offset The first element to return. Use together with &#39;limit&#39; for pagination.
186
178
  # @return [Array<(UsersList, Integer, Hash)>] UsersList data, response status code and response headers
187
179
  def clusters_users_get_with_http_info(cluster_id, opts = {})
188
180
  if @api_client.config.debugging
@@ -192,11 +184,21 @@ module IonoscloudDbaasMongo
192
184
  if @api_client.config.client_side_validation && cluster_id.nil?
193
185
  fail ArgumentError, "Missing the required parameter 'cluster_id' when calling UsersApi.clusters_users_get"
194
186
  end
187
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000
188
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling UsersApi.clusters_users_get, must be smaller than or equal to 1000.'
189
+ end
190
+
191
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
192
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling UsersApi.clusters_users_get, must be greater than or equal to 1.'
193
+ end
194
+
195
195
  # resource path
196
196
  local_var_path = '/clusters/{clusterId}/users'.sub('{' + 'clusterId' + '}', CGI.escape(cluster_id.to_s))
197
197
 
198
198
  # query parameters
199
199
  query_params = opts[:query_params] || {}
200
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
201
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
200
202
 
201
203
  # header parameters
202
204
  header_params = opts[:header_params] || {}
@@ -235,25 +237,23 @@ module IonoscloudDbaasMongo
235
237
  # Patch a MongoDB User by ID
236
238
  # Patches a MongoDB user specified by its ID.
237
239
  # @param cluster_id [String] The unique ID of the cluster.
238
- # @param database [String] The authentication database.
239
240
  # @param username [String] The authentication username.
240
241
  # @param patch_user_request [PatchUserRequest] Part of the MongoDB user which should be modified.
241
242
  # @param [Hash] opts the optional parameters
242
243
  # @return [User]
243
- def clusters_users_patch(cluster_id, database, username, patch_user_request, opts = {})
244
- data, _status_code, _headers = clusters_users_patch_with_http_info(cluster_id, database, username, patch_user_request, opts)
244
+ def clusters_users_patch(cluster_id, username, patch_user_request, opts = {})
245
+ data, _status_code, _headers = clusters_users_patch_with_http_info(cluster_id, username, patch_user_request, opts)
245
246
  data
246
247
  end
247
248
 
248
249
  # Patch a MongoDB User by ID
249
250
  # Patches a MongoDB user specified by its ID.
250
251
  # @param cluster_id [String] The unique ID of the cluster.
251
- # @param database [String] The authentication database.
252
252
  # @param username [String] The authentication username.
253
253
  # @param patch_user_request [PatchUserRequest] Part of the MongoDB user which should be modified.
254
254
  # @param [Hash] opts the optional parameters
255
255
  # @return [Array<(User, Integer, Hash)>] User data, response status code and response headers
256
- def clusters_users_patch_with_http_info(cluster_id, database, username, patch_user_request, opts = {})
256
+ def clusters_users_patch_with_http_info(cluster_id, username, patch_user_request, opts = {})
257
257
  if @api_client.config.debugging
258
258
  @api_client.config.logger.debug 'Calling API: UsersApi.clusters_users_patch ...'
259
259
  end
@@ -261,10 +261,6 @@ module IonoscloudDbaasMongo
261
261
  if @api_client.config.client_side_validation && cluster_id.nil?
262
262
  fail ArgumentError, "Missing the required parameter 'cluster_id' when calling UsersApi.clusters_users_patch"
263
263
  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
264
  # verify the required parameter 'username' is set
269
265
  if @api_client.config.client_side_validation && username.nil?
270
266
  fail ArgumentError, "Missing the required parameter 'username' when calling UsersApi.clusters_users_patch"
@@ -274,7 +270,7 @@ module IonoscloudDbaasMongo
274
270
  fail ArgumentError, "Missing the required parameter 'patch_user_request' when calling UsersApi.clusters_users_patch"
275
271
  end
276
272
  # resource path
277
- local_var_path = '/clusters/{clusterId}/users/{database}/{username}'.sub('{' + 'clusterId' + '}', CGI.escape(cluster_id.to_s)).sub('{' + 'database' + '}', CGI.escape(database.to_s)).sub('{' + 'username' + '}', CGI.escape(username.to_s))
273
+ local_var_path = '/clusters/{clusterId}/users/{username}'.sub('{' + 'clusterId' + '}', CGI.escape(cluster_id.to_s)).sub('{' + 'username' + '}', CGI.escape(username.to_s))
278
274
 
279
275
  # query parameters
280
276
  query_params = opts[:query_params] || {}
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #IONOS DBaaS MongoDB REST API
3
3
 
4
- #With IONOS Cloud Database as a Service, you have the ability to quickly set up and manage a MongoDB database. You can also delete clusters, manage backups and users via the API. MongoDB is an open source, cross-platform, document-oriented database program. Classified as a NoSQL database program, it uses JSON-like documents with optional schemas. The MongoDB API allows you to create additional database clusters or modify existing ones. Both tools, the Data Center Designer (DCD) and the API use the same concepts consistently and are well suited for smooth and intuitive use.
4
+ #With IONOS Cloud Database as a Service, you have the ability to quickly set up and manage a MongoDB database. You can also delete clusters, manage backups and users via the API. MongoDB is an open source, cross-platform, document-oriented database program. Classified as a NoSQL database program, it uses JSON-like documents with optional schemas. The MongoDB API allows you to create additional database clusters or modify existing ones. Both tools, the Data Center Designer (DCD) and the API use the same concepts consistently and are well suited for smooth and intuitive use.
5
5
 
6
- The version of the OpenAPI document: 0.1.0
6
+ The version of the OpenAPI document: 1.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.2.1-SNAPSHOT
@@ -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.1.0"
41
+ @user_agent = "sdk-ruby-dbaas-mongo/v1.2.1"
42
42
  @default_headers = {
43
43
  'Content-Type' => 'application/json',
44
44
  'User-Agent' => @user_agent
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #IONOS DBaaS MongoDB REST API
3
3
 
4
- #With IONOS Cloud Database as a Service, you have the ability to quickly set up and manage a MongoDB database. You can also delete clusters, manage backups and users via the API. MongoDB is an open source, cross-platform, document-oriented database program. Classified as a NoSQL database program, it uses JSON-like documents with optional schemas. The MongoDB API allows you to create additional database clusters or modify existing ones. Both tools, the Data Center Designer (DCD) and the API use the same concepts consistently and are well suited for smooth and intuitive use.
4
+ #With IONOS Cloud Database as a Service, you have the ability to quickly set up and manage a MongoDB database. You can also delete clusters, manage backups and users via the API. MongoDB is an open source, cross-platform, document-oriented database program. Classified as a NoSQL database program, it uses JSON-like documents with optional schemas. The MongoDB API allows you to create additional database clusters or modify existing ones. Both tools, the Data Center Designer (DCD) and the API use the same concepts consistently and are well suited for smooth and intuitive use.
5
5
 
6
- The version of the OpenAPI document: 0.1.0
6
+ The version of the OpenAPI document: 1.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.2.1-SNAPSHOT
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #IONOS DBaaS MongoDB REST API
3
3
 
4
- #With IONOS Cloud Database as a Service, you have the ability to quickly set up and manage a MongoDB database. You can also delete clusters, manage backups and users via the API. MongoDB is an open source, cross-platform, document-oriented database program. Classified as a NoSQL database program, it uses JSON-like documents with optional schemas. The MongoDB API allows you to create additional database clusters or modify existing ones. Both tools, the Data Center Designer (DCD) and the API use the same concepts consistently and are well suited for smooth and intuitive use.
4
+ #With IONOS Cloud Database as a Service, you have the ability to quickly set up and manage a MongoDB database. You can also delete clusters, manage backups and users via the API. MongoDB is an open source, cross-platform, document-oriented database program. Classified as a NoSQL database program, it uses JSON-like documents with optional schemas. The MongoDB API allows you to create additional database clusters or modify existing ones. Both tools, the Data Center Designer (DCD) and the API use the same concepts consistently and are well suited for smooth and intuitive use.
5
5
 
6
- The version of the OpenAPI document: 0.1.0
6
+ The version of the OpenAPI document: 1.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.2.1-SNAPSHOT
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #IONOS DBaaS MongoDB REST API
3
3
 
4
- #With IONOS Cloud Database as a Service, you have the ability to quickly set up and manage a MongoDB database. You can also delete clusters, manage backups and users via the API. MongoDB is an open source, cross-platform, document-oriented database program. Classified as a NoSQL database program, it uses JSON-like documents with optional schemas. The MongoDB API allows you to create additional database clusters or modify existing ones. Both tools, the Data Center Designer (DCD) and the API use the same concepts consistently and are well suited for smooth and intuitive use.
4
+ #With IONOS Cloud Database as a Service, you have the ability to quickly set up and manage a MongoDB database. You can also delete clusters, manage backups and users via the API. MongoDB is an open source, cross-platform, document-oriented database program. Classified as a NoSQL database program, it uses JSON-like documents with optional schemas. The MongoDB API allows you to create additional database clusters or modify existing ones. Both tools, the Data Center Designer (DCD) and the API use the same concepts consistently and are well suited for smooth and intuitive use.
5
5
 
6
- The version of the OpenAPI document: 0.1.0
6
+ The version of the OpenAPI document: 1.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.2.1-SNAPSHOT