ionoscloud-dbaas-postgres 1.0.0 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/docs/CHANGELOG.md +21 -0
- data/docs/api/LogsApi.md +8 -6
- data/docs/models/ClusterBackup.md +5 -1
- data/docs/models/ClusterProperties.md +4 -4
- data/docs/models/Connection.md +1 -1
- data/docs/models/CreateClusterProperties.md +4 -2
- data/docs/models/DBUser.md +1 -1
- data/docs/models/ErrorResponse.md +1 -1
- data/docs/models/MaintenanceWindow.md +1 -1
- data/git_push.sh +1 -3
- data/ionoscloud-dbaas-postgres.gemspec +1 -1
- data/lib/ionoscloud-dbaas-postgres/api/backups_api.rb +1 -1
- data/lib/ionoscloud-dbaas-postgres/api/clusters_api.rb +1 -1
- data/lib/ionoscloud-dbaas-postgres/api/logs_api.rb +15 -8
- data/lib/ionoscloud-dbaas-postgres/api/metadata_api.rb +1 -1
- data/lib/ionoscloud-dbaas-postgres/api/restores_api.rb +1 -1
- data/lib/ionoscloud-dbaas-postgres/api_client.rb +2 -2
- data/lib/ionoscloud-dbaas-postgres/api_error.rb +1 -1
- data/lib/ionoscloud-dbaas-postgres/configuration.rb +12 -27
- data/lib/ionoscloud-dbaas-postgres/models/api_version.rb +19 -3
- data/lib/ionoscloud-dbaas-postgres/models/backup_metadata.rb +19 -3
- data/lib/ionoscloud-dbaas-postgres/models/backup_response.rb +38 -6
- data/lib/ionoscloud-dbaas-postgres/models/cluster_backup.rb +86 -10
- data/lib/ionoscloud-dbaas-postgres/models/cluster_backup_list.rb +56 -8
- data/lib/ionoscloud-dbaas-postgres/models/cluster_backup_list_all_of.rb +28 -4
- data/lib/ionoscloud-dbaas-postgres/models/cluster_list.rb +56 -8
- data/lib/ionoscloud-dbaas-postgres/models/cluster_list_all_of.rb +28 -4
- data/lib/ionoscloud-dbaas-postgres/models/cluster_logs.rb +10 -2
- data/lib/ionoscloud-dbaas-postgres/models/cluster_logs_instances.rb +19 -3
- data/lib/ionoscloud-dbaas-postgres/models/cluster_logs_messages.rb +19 -3
- data/lib/ionoscloud-dbaas-postgres/models/cluster_properties.rb +123 -16
- data/lib/ionoscloud-dbaas-postgres/models/cluster_response.rb +38 -6
- data/lib/ionoscloud-dbaas-postgres/models/connection.rb +28 -4
- data/lib/ionoscloud-dbaas-postgres/models/create_cluster_properties.rb +148 -16
- data/lib/ionoscloud-dbaas-postgres/models/create_cluster_request.rb +19 -3
- data/lib/ionoscloud-dbaas-postgres/models/create_restore_request.rb +19 -3
- data/lib/ionoscloud-dbaas-postgres/models/day_of_the_week.rb +1 -1
- data/lib/ionoscloud-dbaas-postgres/models/db_user.rb +20 -4
- data/lib/ionoscloud-dbaas-postgres/models/error_message.rb +19 -3
- data/lib/ionoscloud-dbaas-postgres/models/error_response.rb +20 -4
- data/lib/ionoscloud-dbaas-postgres/models/maintenance_window.rb +21 -4
- data/lib/ionoscloud-dbaas-postgres/models/metadata.rb +65 -9
- data/lib/ionoscloud-dbaas-postgres/models/pagination.rb +28 -4
- data/lib/ionoscloud-dbaas-postgres/models/pagination_links.rb +28 -4
- data/lib/ionoscloud-dbaas-postgres/models/patch_cluster_properties.rb +83 -10
- data/lib/ionoscloud-dbaas-postgres/models/patch_cluster_request.rb +20 -4
- data/lib/ionoscloud-dbaas-postgres/models/postgres_version_list.rb +11 -3
- data/lib/ionoscloud-dbaas-postgres/models/postgres_version_list_data.rb +10 -2
- data/lib/ionoscloud-dbaas-postgres/models/resource_type.rb +1 -1
- data/lib/ionoscloud-dbaas-postgres/models/state.rb +1 -1
- data/lib/ionoscloud-dbaas-postgres/models/storage_type.rb +3 -1
- data/lib/ionoscloud-dbaas-postgres/models/synchronization_mode.rb +1 -1
- data/lib/ionoscloud-dbaas-postgres/version.rb +2 -2
- data/lib/ionoscloud-dbaas-postgres.rb +1 -3
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +3 -7
- data/docs/models/BackupLocation.md +0 -15
- data/docs/models/Location.md +0 -15
- data/lib/ionoscloud-dbaas-postgres/models/backup_location.rb +0 -36
- data/lib/ionoscloud-dbaas-postgres/models/location.rb +0 -41
- data/lib/test_driver.rb +0 -119
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 20e1b3de34dcb423084b1e635c220cde3858e29676f21e1304e2ade4b15c19df
|
4
|
+
data.tar.gz: 9f6b287adb518e0d887390fd7dee79a636bf2c1042b1975416b272099444dab4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 27430843c4abe7066074ae15ac3fefa3b287719813da59a84b4b0caf53fc5c84d09895b743c719c738dfe4bb87fd5f5b31d1fa79088f758c33bb648dadc314ec
|
7
|
+
data.tar.gz: cd4b165404f5c4978dd4bd809980c9f2c4fa922efb79fbba12b970b826f67d86f65251fe99275d665b74ef6d504d7bdc620636d52baefee1f616febd64797681
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
ionoscloud-dbaas-postgres (1.0.
|
4
|
+
ionoscloud-dbaas-postgres (1.0.3)
|
5
5
|
typhoeus (~> 1.0, >= 1.0.1)
|
6
6
|
|
7
7
|
GEM
|
@@ -13,7 +13,7 @@ GEM
|
|
13
13
|
diff-lcs (1.5.0)
|
14
14
|
ethon (0.15.0)
|
15
15
|
ffi (>= 1.15.0)
|
16
|
-
ffi (1.15.
|
16
|
+
ffi (1.15.5)
|
17
17
|
jaro_winkler (1.5.4)
|
18
18
|
method_source (1.0.0)
|
19
19
|
parallel (1.21.0)
|
@@ -67,4 +67,4 @@ DEPENDENCIES
|
|
67
67
|
rubocop (~> 0.66.0)
|
68
68
|
|
69
69
|
BUNDLED WITH
|
70
|
-
2.3.
|
70
|
+
2.3.17
|
data/docs/CHANGELOG.md
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
# CHANGELOG
|
2
|
+
|
3
|
+
## 1.0.2 \(May 12th, 2022\)
|
4
|
+
|
5
|
+
### Enhancements:
|
6
|
+
|
7
|
+
* added Storage Types 'SSD_STANDARD' and 'SSD_PREMIUM'
|
8
|
+
* backup_location and location are now strings, descriptions updated
|
9
|
+
|
10
|
+
|
11
|
+
## 1.0.1 \(March 28th, 2022\)
|
12
|
+
|
13
|
+
### Enhancements:
|
14
|
+
|
15
|
+
* added **new property** `backup_location` on `CreateClusterProperties` structure
|
16
|
+
* added **new query parameter** `direction` for `cluster_logs_get` method
|
17
|
+
|
18
|
+
|
19
|
+
## 1.0.0 \(January 12th, 2022\)
|
20
|
+
|
21
|
+
* First stable release
|
data/docs/api/LogsApi.md
CHANGED
@@ -35,9 +35,10 @@ end
|
|
35
35
|
api_instance = IonoscloudDbaasPostgres::LogsApi.new
|
36
36
|
cluster_id = 'cluster_id_example' # String | The unique ID of the cluster.
|
37
37
|
opts = {
|
38
|
-
|
39
|
-
|
40
|
-
|
38
|
+
start: Time.parse('2013-10-20T19:20:30+01:00'), # Time | The start time for the query in RFC3339 format. Must not be more than 30 days ago but before the end parameter. The default is 30 days ago.
|
39
|
+
_end: Time.parse('2013-10-20T19:20:30+01:00'), # Time | The end time for the query in RFC3339 format. Must not be greater than now. The default is the current timestamp.
|
40
|
+
direction: 'BACKWARD', # String | The direction in which to scan through the logs. The logs are returned in order of the direction.
|
41
|
+
limit: 56 # Integer | The maximal number of log lines to return. If the limit is reached then log lines will be cut at the end (respecting the scan direction).
|
41
42
|
}
|
42
43
|
|
43
44
|
begin
|
@@ -72,9 +73,10 @@ end
|
|
72
73
|
| Name | Type | Description | Notes |
|
73
74
|
| ---- | ---- | ----------- | ----- |
|
74
75
|
| **cluster_id** | **String** | The unique ID of the cluster. | |
|
75
|
-
| **
|
76
|
-
| **
|
77
|
-
| **
|
76
|
+
| **start** | **Time** | The start time for the query in RFC3339 format. Must not be more than 30 days ago but before the end parameter. The default is 30 days ago. | [optional] |
|
77
|
+
| **_end** | **Time** | The end time for the query in RFC3339 format. Must not be greater than now. The default is the current timestamp. | [optional] |
|
78
|
+
| **direction** | **String** | The direction in which to scan through the logs. The logs are returned in order of the direction. | [optional][default to 'BACKWARD'] |
|
79
|
+
| **limit** | **Integer** | The maximal number of log lines to return. If the limit is reached then log lines will be cut at the end (respecting the scan direction). | [optional][default to 100] |
|
78
80
|
|
79
81
|
### Return type
|
80
82
|
|
@@ -9,6 +9,8 @@
|
|
9
9
|
| **version** | **String** | The PostgreSQL version this backup was created from. | [optional] |
|
10
10
|
| **is_active** | **Boolean** | Whether a cluster currently backs up data to this backup. | [optional] |
|
11
11
|
| **earliest_recovery_target_time** | **Time** | The oldest available timestamp to which you can restore. | [optional] |
|
12
|
+
| **size** | **Integer** | Size of all base backups including the wal size in MB. | [optional] |
|
13
|
+
| **location** | **String** | The S3 location where the backups will be stored. | [optional] |
|
12
14
|
|
13
15
|
## Example
|
14
16
|
|
@@ -20,7 +22,9 @@ instance = IonoscloudDbaasPostgres::ClusterBackup.new(
|
|
20
22
|
cluster_id: 498ae72f-411f-11eb-9d07-046c59cc737e,
|
21
23
|
version: 12,
|
22
24
|
is_active: true,
|
23
|
-
earliest_recovery_target_time: 2021-10-23T01:21:10Z
|
25
|
+
earliest_recovery_target_time: 2021-10-23T01:21:10Z,
|
26
|
+
size: 2052,
|
27
|
+
location: de
|
24
28
|
)
|
25
29
|
```
|
26
30
|
|
@@ -6,8 +6,8 @@
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **display_name** | **String** | The friendly name of your cluster. | [optional] |
|
8
8
|
| **postgres_version** | **String** | The PostgreSQL version of your cluster. | [optional] |
|
9
|
-
| **location** |
|
10
|
-
| **backup_location** |
|
9
|
+
| **location** | **String** | The physical location where the cluster will be created. This will be where all of your instances live. Property cannot be modified after datacenter creation. | [optional] |
|
10
|
+
| **backup_location** | **String** | The S3 location where the backups will be stored. | [optional] |
|
11
11
|
| **instances** | **Integer** | The total number of instances in the cluster (one master and n-1 standbys). | [optional] |
|
12
12
|
| **ram** | **Integer** | The amount of memory per instance in megabytes. Has to be a multiple of 1024. | [optional] |
|
13
13
|
| **cores** | **Integer** | The number of CPU cores per instance. | [optional] |
|
@@ -25,8 +25,8 @@ require 'ionoscloud-dbaas-postgres'
|
|
25
25
|
instance = IonoscloudDbaasPostgres::ClusterProperties.new(
|
26
26
|
display_name: PostgreSQL cluster,
|
27
27
|
postgres_version: 13,
|
28
|
-
location:
|
29
|
-
backup_location:
|
28
|
+
location: de/fra,
|
29
|
+
backup_location: de,
|
30
30
|
instances: 2,
|
31
31
|
ram: 2048,
|
32
32
|
cores: 4,
|
data/docs/models/Connection.md
CHANGED
@@ -11,7 +11,8 @@
|
|
11
11
|
| **storage_size** | **Integer** | The amount of storage per instance in megabytes. | |
|
12
12
|
| **storage_type** | [**StorageType**](StorageType.md) | | |
|
13
13
|
| **connections** | [**Array<Connection>**](Connection.md) | | |
|
14
|
-
| **location** |
|
14
|
+
| **location** | **String** | The physical location where the cluster will be created. This will be where all of your instances live. Property cannot be modified after datacenter creation. | |
|
15
|
+
| **backup_location** | **String** | The S3 location where the backups will be stored. | [optional] |
|
15
16
|
| **display_name** | **String** | The friendly name of your cluster. | |
|
16
17
|
| **maintenance_window** | [**MaintenanceWindow**](MaintenanceWindow.md) | | [optional] |
|
17
18
|
| **credentials** | [**DBUser**](DBUser.md) | | |
|
@@ -31,7 +32,8 @@ instance = IonoscloudDbaasPostgres::CreateClusterProperties.new(
|
|
31
32
|
storage_size: 5000,
|
32
33
|
storage_type: null,
|
33
34
|
connections: null,
|
34
|
-
location:
|
35
|
+
location: de/fra,
|
36
|
+
backup_location: de,
|
35
37
|
display_name: PostgreSQL cluster,
|
36
38
|
maintenance_window: null,
|
37
39
|
credentials: null,
|
data/docs/models/DBUser.md
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **username** | **String** | The username for the initial
|
7
|
+
| **username** | **String** | The username for the initial PostgreSQL user. Some system usernames are restricted (e.g. \"postgres\", \"admin\", \"standby\"). | |
|
8
8
|
| **password** | **String** | | |
|
9
9
|
|
10
10
|
## Example
|
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **http_status** | **Integer** | HTTP status code of the operation | [optional] |
|
7
|
+
| **http_status** | **Integer** | The HTTP status code of the operation. | [optional] |
|
8
8
|
| **messages** | [**Array<ErrorMessage>**](ErrorMessage.md) | | [optional] |
|
9
9
|
|
10
10
|
## Example
|
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **time** | **String** |
|
7
|
+
| **time** | **String** | Start of the maintenance window in UTC time. | |
|
8
8
|
| **day_of_the_week** | [**DayOfTheWeek**](DayOfTheWeek.md) | | |
|
9
9
|
|
10
10
|
## Example
|
data/git_push.sh
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
#An enterprise-grade Database is provided as a Service (DBaaS) solution that can be managed through a browser-based \"Data Center Designer\" (DCD) tool or via an easy to use API. The API allows you to create additional database clusters or modify existing ones. It is designed to allow users to leverage the same power and flexibility found within the DCD visual tool. Both tools are consistent with their concepts and lend well to making the experience smooth and intuitive.
|
7
7
|
|
8
|
-
The version of the OpenAPI document: 0.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
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#An enterprise-grade Database is provided as a Service (DBaaS) solution that can be managed through a browser-based \"Data Center Designer\" (DCD) tool or via an easy to use API. The API allows you to create additional database clusters or modify existing ones. It is designed to allow users to leverage the same power and flexibility found within the DCD visual tool. Both tools are consistent with their concepts and lend well to making the experience smooth and intuitive.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.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
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#An enterprise-grade Database is provided as a Service (DBaaS) solution that can be managed through a browser-based \"Data Center Designer\" (DCD) tool or via an easy to use API. The API allows you to create additional database clusters or modify existing ones. It is designed to allow users to leverage the same power and flexibility found within the DCD visual tool. Both tools are consistent with their concepts and lend well to making the experience smooth and intuitive.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.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
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#An enterprise-grade Database is provided as a Service (DBaaS) solution that can be managed through a browser-based \"Data Center Designer\" (DCD) tool or via an easy to use API. The API allows you to create additional database clusters or modify existing ones. It is designed to allow users to leverage the same power and flexibility found within the DCD visual tool. Both tools are consistent with their concepts and lend well to making the experience smooth and intuitive.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.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,9 +23,10 @@ module IonoscloudDbaasPostgres
|
|
23
23
|
# Retrieves PostgreSQL logs based on the given parameters.
|
24
24
|
# @param cluster_id [String] The unique ID of the cluster.
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
|
-
# @option opts [
|
27
|
-
# @option opts [Time] :
|
28
|
-
# @option opts [
|
26
|
+
# @option opts [Time] :start The start time for the query in RFC3339 format. Must not be more than 30 days ago but before the end parameter. The default is 30 days ago.
|
27
|
+
# @option opts [Time] :_end The end time for the query in RFC3339 format. Must not be greater than now. The default is the current timestamp.
|
28
|
+
# @option opts [String] :direction The direction in which to scan through the logs. The logs are returned in order of the direction. (default to 'BACKWARD')
|
29
|
+
# @option opts [Integer] :limit The maximal number of log lines to return. If the limit is reached then log lines will be cut at the end (respecting the scan direction). (default to 100)
|
29
30
|
# @return [ClusterLogs]
|
30
31
|
def cluster_logs_get(cluster_id, opts = {})
|
31
32
|
data, _status_code, _headers = cluster_logs_get_with_http_info(cluster_id, opts)
|
@@ -36,9 +37,10 @@ module IonoscloudDbaasPostgres
|
|
36
37
|
# Retrieves PostgreSQL logs based on the given parameters.
|
37
38
|
# @param cluster_id [String] The unique ID of the cluster.
|
38
39
|
# @param [Hash] opts the optional parameters
|
39
|
-
# @option opts [
|
40
|
-
# @option opts [Time] :
|
41
|
-
# @option opts [
|
40
|
+
# @option opts [Time] :start The start time for the query in RFC3339 format. Must not be more than 30 days ago but before the end parameter. The default is 30 days ago.
|
41
|
+
# @option opts [Time] :_end The end time for the query in RFC3339 format. Must not be greater than now. The default is the current timestamp.
|
42
|
+
# @option opts [String] :direction The direction in which to scan through the logs. The logs are returned in order of the direction.
|
43
|
+
# @option opts [Integer] :limit The maximal number of log lines to return. If the limit is reached then log lines will be cut at the end (respecting the scan direction).
|
42
44
|
# @return [Array<(ClusterLogs, Integer, Hash)>] ClusterLogs data, response status code and response headers
|
43
45
|
def cluster_logs_get_with_http_info(cluster_id, opts = {})
|
44
46
|
if @api_client.config.debugging
|
@@ -48,6 +50,10 @@ module IonoscloudDbaasPostgres
|
|
48
50
|
if @api_client.config.client_side_validation && cluster_id.nil?
|
49
51
|
fail ArgumentError, "Missing the required parameter 'cluster_id' when calling LogsApi.cluster_logs_get"
|
50
52
|
end
|
53
|
+
allowable_values = ["BACKWARD", "FORWARD"]
|
54
|
+
if @api_client.config.client_side_validation && opts[:'direction'] && !allowable_values.include?(opts[:'direction'])
|
55
|
+
fail ArgumentError, "invalid value for \"direction\", must be one of #{allowable_values}"
|
56
|
+
end
|
51
57
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 5000
|
52
58
|
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LogsApi.cluster_logs_get, must be smaller than or equal to 5000.'
|
53
59
|
end
|
@@ -61,9 +67,10 @@ module IonoscloudDbaasPostgres
|
|
61
67
|
|
62
68
|
# query parameters
|
63
69
|
query_params = opts[:query_params] || {}
|
64
|
-
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
65
70
|
query_params[:'start'] = opts[:'start'] if !opts[:'start'].nil?
|
66
71
|
query_params[:'end'] = opts[:'_end'] if !opts[:'_end'].nil?
|
72
|
+
query_params[:'direction'] = opts[:'direction'] if !opts[:'direction'].nil?
|
73
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
67
74
|
|
68
75
|
# header parameters
|
69
76
|
header_params = opts[:header_params] || {}
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#An enterprise-grade Database is provided as a Service (DBaaS) solution that can be managed through a browser-based \"Data Center Designer\" (DCD) tool or via an easy to use API. The API allows you to create additional database clusters or modify existing ones. It is designed to allow users to leverage the same power and flexibility found within the DCD visual tool. Both tools are consistent with their concepts and lend well to making the experience smooth and intuitive.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.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
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#An enterprise-grade Database is provided as a Service (DBaaS) solution that can be managed through a browser-based \"Data Center Designer\" (DCD) tool or via an easy to use API. The API allows you to create additional database clusters or modify existing ones. It is designed to allow users to leverage the same power and flexibility found within the DCD visual tool. Both tools are consistent with their concepts and lend well to making the experience smooth and intuitive.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.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
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#An enterprise-grade Database is provided as a Service (DBaaS) solution that can be managed through a browser-based \"Data Center Designer\" (DCD) tool or via an easy to use API. The API allows you to create additional database clusters or modify existing ones. It is designed to allow users to leverage the same power and flexibility found within the DCD visual tool. Both tools are consistent with their concepts and lend well to making the experience smooth and intuitive.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.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 IonoscloudDbaasPostgres
|
|
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-postgres/
|
41
|
+
@user_agent = "sdk-ruby-dbaas-postgres/v1.0.3"
|
42
42
|
@default_headers = {
|
43
43
|
'Content-Type' => 'application/json',
|
44
44
|
'User-Agent' => @user_agent
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#An enterprise-grade Database is provided as a Service (DBaaS) solution that can be managed through a browser-based \"Data Center Designer\" (DCD) tool or via an easy to use API. The API allows you to create additional database clusters or modify existing ones. It is designed to allow users to leverage the same power and flexibility found within the DCD visual tool. Both tools are consistent with their concepts and lend well to making the experience smooth and intuitive.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.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
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#An enterprise-grade Database is provided as a Service (DBaaS) solution that can be managed through a browser-based \"Data Center Designer\" (DCD) tool or via an easy to use API. The API allows you to create additional database clusters or modify existing ones. It is designed to allow users to leverage the same power and flexibility found within the DCD visual tool. Both tools are consistent with their concepts and lend well to making the experience smooth and intuitive.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.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
|
@@ -33,21 +33,16 @@ module IonoscloudDbaasPostgres
|
|
33
33
|
# Default server operation variables
|
34
34
|
attr_accessor :server_operation_variables
|
35
35
|
|
36
|
-
# Defines
|
36
|
+
# Defines Tokens used with Token authentications.
|
37
37
|
#
|
38
|
-
# @return [
|
39
|
-
|
40
|
-
# @example parameter name is "api_key", API key is "xxx" (e.g. "api_key=xxx" in query string)
|
41
|
-
# config.api_key['api_key'] = 'xxx'
|
42
|
-
attr_accessor :api_key
|
38
|
+
# @return [String]
|
39
|
+
attr_accessor :token
|
43
40
|
|
44
|
-
# Defines
|
41
|
+
# Defines Token prefixes used with Token authentications.
|
42
|
+
# Default to 'Bearer'.
|
45
43
|
#
|
46
|
-
# @return [
|
47
|
-
|
48
|
-
# @example parameter name is "Authorization", API key prefix is "Token" (e.g. "Authorization: Token xxx" in headers)
|
49
|
-
# config.api_key_prefix['api_key'] = 'Token'
|
50
|
-
attr_accessor :api_key_prefix
|
44
|
+
# @return [String]
|
45
|
+
attr_accessor :token_prefix
|
51
46
|
|
52
47
|
# Defines the username used with HTTP basic authentication.
|
53
48
|
#
|
@@ -151,8 +146,8 @@ module IonoscloudDbaasPostgres
|
|
151
146
|
@server_operation_index = {}
|
152
147
|
@server_variables = {}
|
153
148
|
@server_operation_variables = {}
|
154
|
-
@
|
155
|
-
@
|
149
|
+
@token = nil
|
150
|
+
@token_prefix = 'Bearer'
|
156
151
|
@timeout = 0
|
157
152
|
@client_side_validation = true
|
158
153
|
@verify_ssl = true
|
@@ -204,16 +199,6 @@ module IonoscloudDbaasPostgres
|
|
204
199
|
server_url(index, server_operation_variables.fetch(operation, server_variables), operation_server_settings[operation])
|
205
200
|
end
|
206
201
|
|
207
|
-
# Gets API key (with prefix if set).
|
208
|
-
# @param [String] param_name the parameter name of API key auth
|
209
|
-
def api_key_with_prefix(param_name)
|
210
|
-
if @api_key_prefix[param_name]
|
211
|
-
"#{@api_key_prefix[param_name]} #{@api_key[param_name]}"
|
212
|
-
else
|
213
|
-
@api_key[param_name]
|
214
|
-
end
|
215
|
-
end
|
216
|
-
|
217
202
|
# Gets Basic Auth token string
|
218
203
|
def basic_auth_token
|
219
204
|
'Basic ' + ["#{username}:#{password}"].pack('m').delete("\r\n")
|
@@ -231,10 +216,10 @@ module IonoscloudDbaasPostgres
|
|
231
216
|
},
|
232
217
|
'tokenAuth' =>
|
233
218
|
{
|
234
|
-
type: '
|
219
|
+
type: 'token',
|
235
220
|
in: 'header',
|
236
221
|
key: 'Authorization',
|
237
|
-
value:
|
222
|
+
value: token.nil? ? nil : "#{token_prefix} #{token}"
|
238
223
|
},
|
239
224
|
}
|
240
225
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#An enterprise-grade Database is provided as a Service (DBaaS) solution that can be managed through a browser-based \"Data Center Designer\" (DCD) tool or via an easy to use API. The API allows you to create additional database clusters or modify existing ones. It is designed to allow users to leverage the same power and flexibility found within the DCD visual tool. Both tools are consistent with their concepts and lend well to making the experience smooth and intuitive.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.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
|
@@ -15,14 +15,18 @@ require 'time'
|
|
15
15
|
|
16
16
|
module IonoscloudDbaasPostgres
|
17
17
|
class APIVersion
|
18
|
+
|
18
19
|
attr_accessor :name
|
19
20
|
|
21
|
+
|
20
22
|
attr_accessor :swagger_url
|
21
23
|
|
22
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
23
25
|
def self.attribute_map
|
24
26
|
{
|
27
|
+
|
25
28
|
:'name' => :'name',
|
29
|
+
|
26
30
|
:'swagger_url' => :'swaggerUrl'
|
27
31
|
}
|
28
32
|
end
|
@@ -35,7 +39,9 @@ module IonoscloudDbaasPostgres
|
|
35
39
|
# Attribute type mapping.
|
36
40
|
def self.openapi_types
|
37
41
|
{
|
42
|
+
|
38
43
|
:'name' => :'String',
|
44
|
+
|
39
45
|
:'swagger_url' => :'String'
|
40
46
|
}
|
41
47
|
end
|
@@ -43,6 +49,8 @@ module IonoscloudDbaasPostgres
|
|
43
49
|
# List of attributes with nullable: true
|
44
50
|
def self.openapi_nullable
|
45
51
|
Set.new([
|
52
|
+
|
53
|
+
|
46
54
|
])
|
47
55
|
end
|
48
56
|
|
@@ -60,11 +68,13 @@ module IonoscloudDbaasPostgres
|
|
60
68
|
end
|
61
69
|
h[k.to_sym] = v
|
62
70
|
}
|
71
|
+
|
63
72
|
|
64
73
|
if attributes.key?(:'name')
|
65
74
|
self.name = attributes[:'name']
|
66
75
|
end
|
67
76
|
|
77
|
+
|
68
78
|
if attributes.key?(:'swagger_url')
|
69
79
|
self.swagger_url = attributes[:'swagger_url']
|
70
80
|
end
|
@@ -74,22 +84,28 @@ module IonoscloudDbaasPostgres
|
|
74
84
|
# @return Array for valid properties with the reasons
|
75
85
|
def list_invalid_properties
|
76
86
|
invalid_properties = Array.new
|
87
|
+
|
88
|
+
|
77
89
|
invalid_properties
|
78
90
|
end
|
79
91
|
|
80
92
|
# Check to see if the all the properties in the model are valid
|
81
93
|
# @return true if the model is valid
|
82
94
|
def valid?
|
95
|
+
|
96
|
+
|
83
97
|
true
|
84
98
|
end
|
85
99
|
|
100
|
+
|
101
|
+
|
86
102
|
# Checks equality by comparing each attribute.
|
87
103
|
# @param [Object] Object to be compared
|
88
104
|
def ==(o)
|
89
105
|
return true if self.equal?(o)
|
90
106
|
self.class == o.class &&
|
91
|
-
|
92
|
-
|
107
|
+
name == o.name &&
|
108
|
+
swagger_url == o.swagger_url
|
93
109
|
end
|
94
110
|
|
95
111
|
# @see the `==` method
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#An enterprise-grade Database is provided as a Service (DBaaS) solution that can be managed through a browser-based \"Data Center Designer\" (DCD) tool or via an easy to use API. The API allows you to create additional database clusters or modify existing ones. It is designed to allow users to leverage the same power and flexibility found within the DCD visual tool. Both tools are consistent with their concepts and lend well to making the experience smooth and intuitive.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.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
|
@@ -16,15 +16,19 @@ require 'time'
|
|
16
16
|
module IonoscloudDbaasPostgres
|
17
17
|
# Metadata of the backup resource.
|
18
18
|
class BackupMetadata
|
19
|
+
|
19
20
|
# The ISO 8601 creation timestamp.
|
20
21
|
attr_accessor :created_date
|
21
22
|
|
23
|
+
|
22
24
|
attr_accessor :state
|
23
25
|
|
24
26
|
# Attribute mapping from ruby-style variable name to JSON key.
|
25
27
|
def self.attribute_map
|
26
28
|
{
|
29
|
+
|
27
30
|
:'created_date' => :'createdDate',
|
31
|
+
|
28
32
|
:'state' => :'state'
|
29
33
|
}
|
30
34
|
end
|
@@ -37,7 +41,9 @@ module IonoscloudDbaasPostgres
|
|
37
41
|
# Attribute type mapping.
|
38
42
|
def self.openapi_types
|
39
43
|
{
|
44
|
+
|
40
45
|
:'created_date' => :'Time',
|
46
|
+
|
41
47
|
:'state' => :'State'
|
42
48
|
}
|
43
49
|
end
|
@@ -45,6 +51,8 @@ module IonoscloudDbaasPostgres
|
|
45
51
|
# List of attributes with nullable: true
|
46
52
|
def self.openapi_nullable
|
47
53
|
Set.new([
|
54
|
+
|
55
|
+
|
48
56
|
])
|
49
57
|
end
|
50
58
|
|
@@ -62,11 +70,13 @@ module IonoscloudDbaasPostgres
|
|
62
70
|
end
|
63
71
|
h[k.to_sym] = v
|
64
72
|
}
|
73
|
+
|
65
74
|
|
66
75
|
if attributes.key?(:'created_date')
|
67
76
|
self.created_date = attributes[:'created_date']
|
68
77
|
end
|
69
78
|
|
79
|
+
|
70
80
|
if attributes.key?(:'state')
|
71
81
|
self.state = attributes[:'state']
|
72
82
|
end
|
@@ -76,22 +86,28 @@ module IonoscloudDbaasPostgres
|
|
76
86
|
# @return Array for valid properties with the reasons
|
77
87
|
def list_invalid_properties
|
78
88
|
invalid_properties = Array.new
|
89
|
+
|
90
|
+
|
79
91
|
invalid_properties
|
80
92
|
end
|
81
93
|
|
82
94
|
# Check to see if the all the properties in the model are valid
|
83
95
|
# @return true if the model is valid
|
84
96
|
def valid?
|
97
|
+
|
98
|
+
|
85
99
|
true
|
86
100
|
end
|
87
101
|
|
102
|
+
|
103
|
+
|
88
104
|
# Checks equality by comparing each attribute.
|
89
105
|
# @param [Object] Object to be compared
|
90
106
|
def ==(o)
|
91
107
|
return true if self.equal?(o)
|
92
108
|
self.class == o.class &&
|
93
|
-
|
94
|
-
|
109
|
+
created_date == o.created_date &&
|
110
|
+
state == o.state
|
95
111
|
end
|
96
112
|
|
97
113
|
# @see the `==` method
|