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.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/Gemfile.lock +70 -0
- data/LICENSE +201 -0
- data/README.md +58 -0
- data/Rakefile +10 -0
- data/docs/api/ClustersApi.md +313 -0
- data/docs/api/LogsApi.md +93 -0
- data/docs/api/MetadataApi.md +153 -0
- data/docs/api/RestoresApi.md +84 -0
- data/docs/api/SnapshotsApi.md +83 -0
- data/docs/api/TemplatesApi.md +80 -0
- data/docs/api/UsersApi.md +321 -0
- data/docs/models/APIVersion.md +20 -0
- data/docs/models/ClusterList.md +28 -0
- data/docs/models/ClusterListAllOf.md +22 -0
- data/docs/models/ClusterLogs.md +18 -0
- data/docs/models/ClusterLogsInstances.md +20 -0
- data/docs/models/ClusterLogsMessages.md +20 -0
- data/docs/models/ClusterProperties.md +32 -0
- data/docs/models/ClusterResponse.md +24 -0
- data/docs/models/Connection.md +22 -0
- data/docs/models/CreateClusterProperties.md +30 -0
- data/docs/models/CreateClusterRequest.md +20 -0
- data/docs/models/CreateRestoreRequest.md +18 -0
- data/docs/models/DayOfTheWeek.md +15 -0
- data/docs/models/ErrorMessage.md +20 -0
- data/docs/models/ErrorResponse.md +20 -0
- data/docs/models/MaintenanceWindow.md +20 -0
- data/docs/models/Metadata.md +30 -0
- data/docs/models/Pagination.md +22 -0
- data/docs/models/PaginationLinks.md +22 -0
- data/docs/models/ResourceType.md +15 -0
- data/docs/models/SnapshotList.md +28 -0
- data/docs/models/SnapshotListAllOf.md +22 -0
- data/docs/models/SnapshotProperties.md +22 -0
- data/docs/models/SnapshotResponse.md +22 -0
- data/docs/models/State.md +15 -0
- data/docs/models/TemplateList.md +18 -0
- data/docs/models/TemplateListAllOf.md +18 -0
- data/docs/models/TemplateResponse.md +24 -0
- data/docs/models/User.md +22 -0
- data/docs/models/UserMetadata.md +24 -0
- data/docs/models/UserProperties.md +24 -0
- data/docs/models/UserRoles.md +20 -0
- data/docs/models/UsersList.md +22 -0
- data/docs/summary.md +50 -0
- data/git_push.sh +56 -0
- data/ionoscloud-dbaas-mongo.gemspec +38 -0
- data/lib/ionoscloud-dbaas-mongo/api/clusters_api.rb +273 -0
- data/lib/ionoscloud-dbaas-mongo/api/logs_api.rb +109 -0
- data/lib/ionoscloud-dbaas-mongo/api/metadata_api.rb +136 -0
- data/lib/ionoscloud-dbaas-mongo/api/restores_api.rb +93 -0
- data/lib/ionoscloud-dbaas-mongo/api/snapshots_api.rb +85 -0
- data/lib/ionoscloud-dbaas-mongo/api/templates_api.rb +79 -0
- data/lib/ionoscloud-dbaas-mongo/api/users_api.rb +306 -0
- data/lib/ionoscloud-dbaas-mongo/api_client.rb +471 -0
- data/lib/ionoscloud-dbaas-mongo/api_error.rb +57 -0
- data/lib/ionoscloud-dbaas-mongo/configuration.rb +276 -0
- data/lib/ionoscloud-dbaas-mongo/models/api_version.rb +243 -0
- data/lib/ionoscloud-dbaas-mongo/models/cluster_list.rb +353 -0
- data/lib/ionoscloud-dbaas-mongo/models/cluster_list_all_of.rb +261 -0
- data/lib/ionoscloud-dbaas-mongo/models/cluster_logs.rb +227 -0
- data/lib/ionoscloud-dbaas-mongo/models/cluster_logs_instances.rb +244 -0
- data/lib/ionoscloud-dbaas-mongo/models/cluster_logs_messages.rb +243 -0
- data/lib/ionoscloud-dbaas-mongo/models/cluster_properties.rb +376 -0
- data/lib/ionoscloud-dbaas-mongo/models/cluster_response.rb +279 -0
- data/lib/ionoscloud-dbaas-mongo/models/connection.rb +279 -0
- data/lib/ionoscloud-dbaas-mongo/models/create_cluster_properties.rb +387 -0
- data/lib/ionoscloud-dbaas-mongo/models/create_cluster_request.rb +244 -0
- data/lib/ionoscloud-dbaas-mongo/models/create_restore_request.rb +233 -0
- data/lib/ionoscloud-dbaas-mongo/models/day_of_the_week.rb +42 -0
- data/lib/ionoscloud-dbaas-mongo/models/error_message.rb +245 -0
- data/lib/ionoscloud-dbaas-mongo/models/error_response.rb +244 -0
- data/lib/ionoscloud-dbaas-mongo/models/maintenance_window.rb +254 -0
- data/lib/ionoscloud-dbaas-mongo/models/metadata.rb +335 -0
- data/lib/ionoscloud-dbaas-mongo/models/pagination.rb +292 -0
- data/lib/ionoscloud-dbaas-mongo/models/pagination_links.rb +264 -0
- data/lib/ionoscloud-dbaas-mongo/models/resource_type.rb +38 -0
- data/lib/ionoscloud-dbaas-mongo/models/snapshot_list.rb +353 -0
- data/lib/ionoscloud-dbaas-mongo/models/snapshot_list_all_of.rb +261 -0
- data/lib/ionoscloud-dbaas-mongo/models/snapshot_properties.rb +264 -0
- data/lib/ionoscloud-dbaas-mongo/models/snapshot_response.rb +262 -0
- data/lib/ionoscloud-dbaas-mongo/models/state.rb +40 -0
- data/lib/ionoscloud-dbaas-mongo/models/template_list.rb +234 -0
- data/lib/ionoscloud-dbaas-mongo/models/template_list_all_of.rb +226 -0
- data/lib/ionoscloud-dbaas-mongo/models/template_response.rb +282 -0
- data/lib/ionoscloud-dbaas-mongo/models/user.rb +261 -0
- data/lib/ionoscloud-dbaas-mongo/models/user_metadata.rb +316 -0
- data/lib/ionoscloud-dbaas-mongo/models/user_properties.rb +294 -0
- data/lib/ionoscloud-dbaas-mongo/models/user_roles.rb +278 -0
- data/lib/ionoscloud-dbaas-mongo/models/users_list.rb +262 -0
- data/lib/ionoscloud-dbaas-mongo/version.rb +15 -0
- data/lib/ionoscloud-dbaas-mongo.rb +79 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/spec_helper.rb +111 -0
- metadata +189 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# Metadata
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **created_date** | **Time** | The date the resource was created. | [optional] |
|
|
8
|
+
| **created_by** | **String** | The user who created the resource. | [optional] |
|
|
9
|
+
| **created_by_user_id** | **String** | The ID of the user who created the resource. | [optional] |
|
|
10
|
+
| **last_modified_date** | **Time** | The date the resource was last modified. | [optional] |
|
|
11
|
+
| **last_modified_by** | **String** | The last user who modified the resource. | [optional] |
|
|
12
|
+
| **last_modified_by_user_id** | **String** | The ID of the user who last modified the resource. | [optional] |
|
|
13
|
+
| **state** | [**State**](State.md) | | [optional] |
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```ruby
|
|
18
|
+
require 'ionoscloud-dbaas-mongo'
|
|
19
|
+
|
|
20
|
+
instance = IonoscloudDbaasMongo::Metadata.new(
|
|
21
|
+
created_date: 2020-12-10T13:37:50+01:00,
|
|
22
|
+
created_by: john.doe@example.com,
|
|
23
|
+
created_by_user_id: 87f9a82e-b28d-49ed-9d04-fba2c0459cd3,
|
|
24
|
+
last_modified_date: 2020-12-11T13:37:50+01:00,
|
|
25
|
+
last_modified_by: jane.doe@example.com,
|
|
26
|
+
last_modified_by_user_id: 87f9a82e-b28d-49ed-9d04-fba2c0459cd3,
|
|
27
|
+
state: null
|
|
28
|
+
)
|
|
29
|
+
```
|
|
30
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Pagination
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **offset** | **Integer** | The offset specified in the request (if none was specified, the default offset is 0) (not implemented yet). | [optional][readonly] |
|
|
8
|
+
| **limit** | **Integer** | The limit specified in the request (if none was specified, use the endpoint's default pagination limit) (not implemented yet, always return number of items). | [optional][readonly] |
|
|
9
|
+
| **_links** | [**PaginationLinks**](PaginationLinks.md) | | [optional] |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'ionoscloud-dbaas-mongo'
|
|
15
|
+
|
|
16
|
+
instance = IonoscloudDbaasMongo::Pagination.new(
|
|
17
|
+
offset: 0,
|
|
18
|
+
limit: 42,
|
|
19
|
+
_links: null
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# PaginationLinks
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **prev** | **String** | The URL (with offset and limit parameters) of the previous page; only present if the offset is greater than 0. | [optional][readonly] |
|
|
8
|
+
| **_self** | **String** | The URL (with offset and limit parameters) of the current page. | [optional][readonly] |
|
|
9
|
+
| **_next** | **String** | The URL (with offset and limit parameters) of the next page; only present if the offset and limit is less than the total number of elements. | [optional][readonly] |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'ionoscloud-dbaas-mongo'
|
|
15
|
+
|
|
16
|
+
instance = IonoscloudDbaasMongo::PaginationLinks.new(
|
|
17
|
+
prev: <PREVIOUS-PAGE-URI>,
|
|
18
|
+
_self: <THIS-PAGE-URI>,
|
|
19
|
+
_next: <NEXT-PAGE-URI>
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# SnapshotList
|
|
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<SnapshotResponse>**](SnapshotResponse.md) | | [optional] |
|
|
10
|
+
| **offset** | **Integer** | The offset specified in the request (if none was specified, the default offset is 0) (not implemented yet). | [optional][readonly] |
|
|
11
|
+
| **limit** | **Integer** | The limit specified in the request (if none was specified, use the endpoint'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::SnapshotList.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
|
+
# SnapshotListAllOf
|
|
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<SnapshotResponse>**](SnapshotResponse.md) | | [optional] |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'ionoscloud-dbaas-mongo'
|
|
15
|
+
|
|
16
|
+
instance = IonoscloudDbaasMongo::SnapshotListAllOf.new(
|
|
17
|
+
type: null,
|
|
18
|
+
id: 498ae72f-411f-11eb-9d07-046c59cc737e,
|
|
19
|
+
items: null
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# SnapshotProperties
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **version** | **String** | The MongoDB version this backup was created from. | [optional] |
|
|
8
|
+
| **size** | **Integer** | The size of the snapshot in Mebibytes. | [optional] |
|
|
9
|
+
| **creation_time** | **Time** | The date the resource was created. | [optional] |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'ionoscloud-dbaas-mongo'
|
|
15
|
+
|
|
16
|
+
instance = IonoscloudDbaasMongo::SnapshotProperties.new(
|
|
17
|
+
version: 5.0,
|
|
18
|
+
size: 150,
|
|
19
|
+
creation_time: 2020-12-10T13:37:50+01:00
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# SnapshotResponse
|
|
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
|
+
| **properties** | [**SnapshotProperties**](SnapshotProperties.md) | | [optional] |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'ionoscloud-dbaas-mongo'
|
|
15
|
+
|
|
16
|
+
instance = IonoscloudDbaasMongo::SnapshotResponse.new(
|
|
17
|
+
type: null,
|
|
18
|
+
id: 498ae72f-411f-11eb-9d07-046c59cc737e,
|
|
19
|
+
properties: null
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# TemplateList
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **items** | [**Array<TemplateResponse>**](TemplateResponse.md) | | [optional] |
|
|
8
|
+
|
|
9
|
+
## Example
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
require 'ionoscloud-dbaas-mongo'
|
|
13
|
+
|
|
14
|
+
instance = IonoscloudDbaasMongo::TemplateList.new(
|
|
15
|
+
items: null
|
|
16
|
+
)
|
|
17
|
+
```
|
|
18
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# TemplateListAllOf
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **items** | [**Array<TemplateResponse>**](TemplateResponse.md) | | [optional] |
|
|
8
|
+
|
|
9
|
+
## Example
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
require 'ionoscloud-dbaas-mongo'
|
|
13
|
+
|
|
14
|
+
instance = IonoscloudDbaasMongo::TemplateListAllOf.new(
|
|
15
|
+
items: null
|
|
16
|
+
)
|
|
17
|
+
```
|
|
18
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# TemplateResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **id** | **String** | The unique template ID. | [optional] |
|
|
8
|
+
| **cores** | **Integer** | The number of CPU cores. | [optional] |
|
|
9
|
+
| **ram** | **Integer** | The amount of memory in GB. | [optional] |
|
|
10
|
+
| **storage_size** | **Integer** | The amount of storage size in GB. | [optional] |
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```ruby
|
|
15
|
+
require 'ionoscloud-dbaas-mongo'
|
|
16
|
+
|
|
17
|
+
instance = IonoscloudDbaasMongo::TemplateResponse.new(
|
|
18
|
+
id: 15c6dd2f-02d2-4987-b439-9a58dd59ecc3,
|
|
19
|
+
cores: 1,
|
|
20
|
+
ram: 4,
|
|
21
|
+
storage_size: 30
|
|
22
|
+
)
|
|
23
|
+
```
|
|
24
|
+
|
data/docs/models/User.md
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# User
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **type** | [**ResourceType**](ResourceType.md) | | [optional] |
|
|
8
|
+
| **metadata** | [**UserMetadata**](UserMetadata.md) | | [optional] |
|
|
9
|
+
| **properties** | [**UserProperties**](UserProperties.md) | | [optional] |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'ionoscloud-dbaas-mongo'
|
|
15
|
+
|
|
16
|
+
instance = IonoscloudDbaasMongo::User.new(
|
|
17
|
+
type: null,
|
|
18
|
+
metadata: null,
|
|
19
|
+
properties: null
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# UserMetadata
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **created_date** | **Time** | The date the resource was created. | [optional] |
|
|
8
|
+
| **created_by** | **String** | The user who created the resource. | [optional] |
|
|
9
|
+
| **created_by_user_id** | **String** | The ID of the user who created the resource. | [optional] |
|
|
10
|
+
| **state** | **String** | The user state. | [optional] |
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```ruby
|
|
15
|
+
require 'ionoscloud-dbaas-mongo'
|
|
16
|
+
|
|
17
|
+
instance = IonoscloudDbaasMongo::UserMetadata.new(
|
|
18
|
+
created_date: 2020-12-10T13:37:50+01:00,
|
|
19
|
+
created_by: john.doe@example.com,
|
|
20
|
+
created_by_user_id: 87f9a82e-b28d-49ed-9d04-fba2c0459cd3,
|
|
21
|
+
state: CREATING
|
|
22
|
+
)
|
|
23
|
+
```
|
|
24
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# UserProperties
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **username** | **String** | | |
|
|
8
|
+
| **database** | **String** | The user database to use for authentication. | |
|
|
9
|
+
| **password** | **String** | | |
|
|
10
|
+
| **roles** | [**Array<UserRoles>**](UserRoles.md) | | [optional] |
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```ruby
|
|
15
|
+
require 'ionoscloud-dbaas-mongo'
|
|
16
|
+
|
|
17
|
+
instance = IonoscloudDbaasMongo::UserProperties.new(
|
|
18
|
+
username: null,
|
|
19
|
+
database: admin,
|
|
20
|
+
password: null,
|
|
21
|
+
roles: null
|
|
22
|
+
)
|
|
23
|
+
```
|
|
24
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# UserRoles
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **role** | **String** | | [optional] |
|
|
8
|
+
| **database** | **String** | | [optional] |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'ionoscloud-dbaas-mongo'
|
|
14
|
+
|
|
15
|
+
instance = IonoscloudDbaasMongo::UserRoles.new(
|
|
16
|
+
role: read,
|
|
17
|
+
database: null
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# UsersList
|
|
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<User>**](User.md) | | [optional] |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'ionoscloud-dbaas-mongo'
|
|
15
|
+
|
|
16
|
+
instance = IonoscloudDbaasMongo::UsersList.new(
|
|
17
|
+
type: null,
|
|
18
|
+
id: 498ae72f-411f-11eb-9d07-046c59cc737e,
|
|
19
|
+
items: null
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|
data/docs/summary.md
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# Table of contents
|
|
2
|
+
|
|
3
|
+
* [Introduction](README.md)
|
|
4
|
+
* [Changelog](CHANGELOG.md)
|
|
5
|
+
|
|
6
|
+
## API
|
|
7
|
+
|
|
8
|
+
* [ClustersApi](api/ClustersApi.md)
|
|
9
|
+
* [LogsApi](api/LogsApi.md)
|
|
10
|
+
* [MetadataApi](api/MetadataApi.md)
|
|
11
|
+
* [RestoresApi](api/RestoresApi.md)
|
|
12
|
+
* [SnapshotsApi](api/SnapshotsApi.md)
|
|
13
|
+
* [TemplatesApi](api/TemplatesApi.md)
|
|
14
|
+
* [UsersApi](api/UsersApi.md)
|
|
15
|
+
|
|
16
|
+
## Models
|
|
17
|
+
|
|
18
|
+
* [APIVersion](models/APIVersion.md)
|
|
19
|
+
* [ClusterList](models/ClusterList.md)
|
|
20
|
+
* [ClusterListAllOf](models/ClusterListAllOf.md)
|
|
21
|
+
* [ClusterLogs](models/ClusterLogs.md)
|
|
22
|
+
* [ClusterLogsInstances](models/ClusterLogsInstances.md)
|
|
23
|
+
* [ClusterLogsMessages](models/ClusterLogsMessages.md)
|
|
24
|
+
* [ClusterProperties](models/ClusterProperties.md)
|
|
25
|
+
* [ClusterResponse](models/ClusterResponse.md)
|
|
26
|
+
* [Connection](models/Connection.md)
|
|
27
|
+
* [CreateClusterProperties](models/CreateClusterProperties.md)
|
|
28
|
+
* [CreateClusterRequest](models/CreateClusterRequest.md)
|
|
29
|
+
* [CreateRestoreRequest](models/CreateRestoreRequest.md)
|
|
30
|
+
* [DayOfTheWeek](models/DayOfTheWeek.md)
|
|
31
|
+
* [ErrorMessage](models/ErrorMessage.md)
|
|
32
|
+
* [ErrorResponse](models/ErrorResponse.md)
|
|
33
|
+
* [MaintenanceWindow](models/MaintenanceWindow.md)
|
|
34
|
+
* [Metadata](models/Metadata.md)
|
|
35
|
+
* [Pagination](models/Pagination.md)
|
|
36
|
+
* [PaginationLinks](models/PaginationLinks.md)
|
|
37
|
+
* [ResourceType](models/ResourceType.md)
|
|
38
|
+
* [SnapshotList](models/SnapshotList.md)
|
|
39
|
+
* [SnapshotListAllOf](models/SnapshotListAllOf.md)
|
|
40
|
+
* [SnapshotProperties](models/SnapshotProperties.md)
|
|
41
|
+
* [SnapshotResponse](models/SnapshotResponse.md)
|
|
42
|
+
* [State](models/State.md)
|
|
43
|
+
* [TemplateList](models/TemplateList.md)
|
|
44
|
+
* [TemplateListAllOf](models/TemplateListAllOf.md)
|
|
45
|
+
* [TemplateResponse](models/TemplateResponse.md)
|
|
46
|
+
* [User](models/User.md)
|
|
47
|
+
* [UserMetadata](models/UserMetadata.md)
|
|
48
|
+
* [UserProperties](models/UserProperties.md)
|
|
49
|
+
* [UserRoles](models/UserRoles.md)
|
|
50
|
+
* [UsersList](models/UsersList.md)
|
data/git_push.sh
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
git_user_id=$1
|
|
5
|
+
git_repo_id=$2
|
|
6
|
+
release_note=$3
|
|
7
|
+
git_host=$4
|
|
8
|
+
|
|
9
|
+
if [ "$git_host" = "" ]; then
|
|
10
|
+
git_host="github.com"
|
|
11
|
+
echo "[INFO] No command line input provided. Set \$git_host to $git_host"
|
|
12
|
+
fi
|
|
13
|
+
|
|
14
|
+
if [ "$git_user_id" = "" ]; then
|
|
15
|
+
git_user_id="ionos-cloud"
|
|
16
|
+
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
|
17
|
+
fi
|
|
18
|
+
|
|
19
|
+
if [ "$git_repo_id" = "" ]; then
|
|
20
|
+
git_repo_id="sdk-ruby-dbaas-mongo"
|
|
21
|
+
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
|
22
|
+
fi
|
|
23
|
+
|
|
24
|
+
if [ "$release_note" = "" ]; then
|
|
25
|
+
release_note="Minor update"
|
|
26
|
+
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
|
27
|
+
fi
|
|
28
|
+
|
|
29
|
+
# Initialize the local directory as a Git repository
|
|
30
|
+
git init
|
|
31
|
+
|
|
32
|
+
# Adds the files in the local repository and stages them for commit.
|
|
33
|
+
git add .
|
|
34
|
+
|
|
35
|
+
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
|
36
|
+
git commit -m "$release_note"
|
|
37
|
+
|
|
38
|
+
# Sets the new remote
|
|
39
|
+
git_remote=`git remote`
|
|
40
|
+
if [ "$git_remote" = "" ]; then # git remote not defined
|
|
41
|
+
|
|
42
|
+
if [ "$GIT_TOKEN" = "" ]; then
|
|
43
|
+
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
|
44
|
+
git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
|
|
45
|
+
else
|
|
46
|
+
git remote add origin https://${git_user_id}:${GIT_TOKEN}@${git_host}/${git_user_id}/${git_repo_id}.git
|
|
47
|
+
fi
|
|
48
|
+
|
|
49
|
+
fi
|
|
50
|
+
|
|
51
|
+
git pull origin master
|
|
52
|
+
|
|
53
|
+
# Pushes (Forces) the changes in the local repository up to the remote repository
|
|
54
|
+
echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
|
|
55
|
+
git push origin master 2>&1 | grep -v 'To https'
|
|
56
|
+
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
|
2
|
+
|
|
3
|
+
=begin
|
|
4
|
+
#IONOS DBaaS MongoDB REST API
|
|
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.
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 0.1.0
|
|
9
|
+
|
|
10
|
+
Generated by: https://openapi-generator.tech
|
|
11
|
+
OpenAPI Generator version: 5.2.1-SNAPSHOT
|
|
12
|
+
|
|
13
|
+
=end
|
|
14
|
+
|
|
15
|
+
$:.push File.expand_path("../lib", __FILE__)
|
|
16
|
+
require "ionoscloud-dbaas-mongo/version"
|
|
17
|
+
|
|
18
|
+
Gem::Specification.new do |s|
|
|
19
|
+
s.name = "ionoscloud-dbaas-mongo"
|
|
20
|
+
s.version = IonoscloudDbaasMongo::VERSION
|
|
21
|
+
s.platform = Gem::Platform::RUBY
|
|
22
|
+
s.authors = ["OpenAPI-Generator"]
|
|
23
|
+
s.email = [""]
|
|
24
|
+
s.homepage = "https://openapi-generator.tech"
|
|
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. "
|
|
27
|
+
s.license = "Unlicense"
|
|
28
|
+
s.required_ruby_version = ">= 2.4"
|
|
29
|
+
|
|
30
|
+
s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
|
|
31
|
+
|
|
32
|
+
s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
|
|
33
|
+
|
|
34
|
+
s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
|
|
35
|
+
s.test_files = `find spec/*`.split("\n")
|
|
36
|
+
s.executables = []
|
|
37
|
+
s.require_paths = ["lib"]
|
|
38
|
+
end
|