ionoscloud-dbaas-postgres 1.0.0 → 1.0.1
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/api/LogsApi.md +8 -6
- data/docs/models/Connection.md +1 -1
- data/docs/models/CreateClusterProperties.md +2 -0
- 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 +1 -1
- data/lib/ionoscloud-dbaas-postgres/models/backup_location.rb +3 -1
- data/lib/ionoscloud-dbaas-postgres/models/backup_metadata.rb +1 -1
- data/lib/ionoscloud-dbaas-postgres/models/backup_response.rb +1 -1
- data/lib/ionoscloud-dbaas-postgres/models/cluster_backup.rb +1 -1
- data/lib/ionoscloud-dbaas-postgres/models/cluster_backup_list.rb +1 -1
- data/lib/ionoscloud-dbaas-postgres/models/cluster_backup_list_all_of.rb +1 -1
- data/lib/ionoscloud-dbaas-postgres/models/cluster_list.rb +1 -1
- data/lib/ionoscloud-dbaas-postgres/models/cluster_list_all_of.rb +1 -1
- data/lib/ionoscloud-dbaas-postgres/models/cluster_logs.rb +1 -1
- data/lib/ionoscloud-dbaas-postgres/models/cluster_logs_instances.rb +1 -1
- data/lib/ionoscloud-dbaas-postgres/models/cluster_logs_messages.rb +1 -1
- data/lib/ionoscloud-dbaas-postgres/models/cluster_properties.rb +10 -1
- data/lib/ionoscloud-dbaas-postgres/models/cluster_response.rb +1 -1
- data/lib/ionoscloud-dbaas-postgres/models/connection.rb +1 -1
- data/lib/ionoscloud-dbaas-postgres/models/create_cluster_properties.rb +20 -2
- data/lib/ionoscloud-dbaas-postgres/models/create_cluster_request.rb +1 -1
- data/lib/ionoscloud-dbaas-postgres/models/create_restore_request.rb +1 -1
- data/lib/ionoscloud-dbaas-postgres/models/day_of_the_week.rb +1 -1
- data/lib/ionoscloud-dbaas-postgres/models/db_user.rb +1 -1
- data/lib/ionoscloud-dbaas-postgres/models/error_message.rb +1 -1
- data/lib/ionoscloud-dbaas-postgres/models/error_response.rb +1 -1
- data/lib/ionoscloud-dbaas-postgres/models/location.rb +1 -1
- data/lib/ionoscloud-dbaas-postgres/models/maintenance_window.rb +1 -1
- data/lib/ionoscloud-dbaas-postgres/models/metadata.rb +1 -1
- data/lib/ionoscloud-dbaas-postgres/models/pagination.rb +1 -1
- data/lib/ionoscloud-dbaas-postgres/models/pagination_links.rb +1 -1
- data/lib/ionoscloud-dbaas-postgres/models/patch_cluster_properties.rb +10 -1
- data/lib/ionoscloud-dbaas-postgres/models/patch_cluster_request.rb +1 -1
- data/lib/ionoscloud-dbaas-postgres/models/postgres_version_list.rb +1 -1
- data/lib/ionoscloud-dbaas-postgres/models/postgres_version_list_data.rb +1 -1
- 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 +1 -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 -1
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +2 -3
- 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: 2e37d9612241b0a233cf84514af2f746e6f1b784bfd7f81fe4e4bbadfa6fca7c
|
4
|
+
data.tar.gz: 60a714fa5a56d371083b0244bb517395e123b5dd1900a16851341704a06630a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f1e02d49a2a98ca76450dc40a8f9105feb404fa4fa2d783a275fd66293df6b4020063bacc1a32d63ef43cfd3e13a88370f4cc4d1fe6f4fd12665c88e37e95dcf
|
7
|
+
data.tar.gz: ef17584c8d21973b4569fcd21109c56f47d9c1320fec2c36ec57d03485695afd249f6706332fd94bb66218c0c2dddb7816c6beaaac913aa2142762031d4f82ed
|
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.1)
|
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.10
|
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
|
|
data/docs/models/Connection.md
CHANGED
@@ -12,6 +12,7 @@
|
|
12
12
|
| **storage_type** | [**StorageType**](StorageType.md) | | |
|
13
13
|
| **connections** | [**Array<Connection>**](Connection.md) | | |
|
14
14
|
| **location** | [**Location**](Location.md) | | |
|
15
|
+
| **backup_location** | [**BackupLocation**](BackupLocation.md) | | [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) | | |
|
@@ -32,6 +33,7 @@ instance = IonoscloudDbaasPostgres::CreateClusterProperties.new(
|
|
32
33
|
storage_type: null,
|
33
34
|
connections: null,
|
34
35
|
location: null,
|
36
|
+
backup_location: null,
|
35
37
|
display_name: PostgreSQL cluster,
|
36
38
|
maintenance_window: null,
|
37
39
|
credentials: null,
|
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: 0.1.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: 0.1.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: 0.1.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: 0.1.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: 0.1.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: 0.1.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: 0.1.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/1.0.
|
41
|
+
@user_agent = "sdk-ruby-dbaas-postgres/1.0.1"
|
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: 0.1.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: 0.1.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: 0.1.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: 0.1.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.2.1-SNAPSHOT
|
@@ -16,6 +16,8 @@ require 'time'
|
|
16
16
|
module IonoscloudDbaasPostgres
|
17
17
|
class BackupLocation
|
18
18
|
DE = "de".freeze
|
19
|
+
EU_SOUTH_2 = "eu-south-2".freeze
|
20
|
+
EU_CENTRAL_2 = "eu-central-2".freeze
|
19
21
|
|
20
22
|
# Builds the enum from string
|
21
23
|
# @param [String] The enum value in the form of the string
|
@@ -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: 0.1.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: 0.1.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: 0.1.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: 0.1.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: 0.1.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: 0.1.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: 0.1.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: 0.1.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: 0.1.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: 0.1.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: 0.1.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.2.1-SNAPSHOT
|
@@ -177,6 +177,10 @@ module IonoscloudDbaasPostgres
|
|
177
177
|
invalid_properties.push('invalid value for "cores", must be greater than or equal to 1.')
|
178
178
|
end
|
179
179
|
|
180
|
+
if !@storage_size.nil? && @storage_size > 2097152
|
181
|
+
invalid_properties.push('invalid value for "storage_size", must be smaller than or equal to 2097152.')
|
182
|
+
end
|
183
|
+
|
180
184
|
if !@storage_size.nil? && @storage_size < 2048
|
181
185
|
invalid_properties.push('invalid value for "storage_size", must be greater than or equal to 2048.')
|
182
186
|
end
|
@@ -199,6 +203,7 @@ module IonoscloudDbaasPostgres
|
|
199
203
|
return false if !@instances.nil? && @instances < 1
|
200
204
|
return false if !@ram.nil? && @ram < 2048
|
201
205
|
return false if !@cores.nil? && @cores < 1
|
206
|
+
return false if !@storage_size.nil? && @storage_size > 2097152
|
202
207
|
return false if !@storage_size.nil? && @storage_size < 2048
|
203
208
|
return false if !@connections.nil? && @connections.length > 1
|
204
209
|
return false if !@connections.nil? && @connections.length < 1
|
@@ -242,6 +247,10 @@ module IonoscloudDbaasPostgres
|
|
242
247
|
# Custom attribute writer method with validation
|
243
248
|
# @param [Object] storage_size Value to be assigned
|
244
249
|
def storage_size=(storage_size)
|
250
|
+
if !storage_size.nil? && storage_size > 2097152
|
251
|
+
fail ArgumentError, 'invalid value for "storage_size", must be smaller than or equal to 2097152.'
|
252
|
+
end
|
253
|
+
|
245
254
|
if !storage_size.nil? && storage_size < 2048
|
246
255
|
fail ArgumentError, 'invalid value for "storage_size", must be greater than or equal to 2048.'
|
247
256
|
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: 0.1.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: 0.1.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: 0.1.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.2.1-SNAPSHOT
|
@@ -37,6 +37,8 @@ module IonoscloudDbaasPostgres
|
|
37
37
|
|
38
38
|
attr_accessor :location
|
39
39
|
|
40
|
+
attr_accessor :backup_location
|
41
|
+
|
40
42
|
# The friendly name of your cluster.
|
41
43
|
attr_accessor :display_name
|
42
44
|
|
@@ -59,6 +61,7 @@ module IonoscloudDbaasPostgres
|
|
59
61
|
:'storage_type' => :'storageType',
|
60
62
|
:'connections' => :'connections',
|
61
63
|
:'location' => :'location',
|
64
|
+
:'backup_location' => :'backupLocation',
|
62
65
|
:'display_name' => :'displayName',
|
63
66
|
:'maintenance_window' => :'maintenanceWindow',
|
64
67
|
:'credentials' => :'credentials',
|
@@ -83,6 +86,7 @@ module IonoscloudDbaasPostgres
|
|
83
86
|
:'storage_type' => :'StorageType',
|
84
87
|
:'connections' => :'Array<Connection>',
|
85
88
|
:'location' => :'Location',
|
89
|
+
:'backup_location' => :'BackupLocation',
|
86
90
|
:'display_name' => :'String',
|
87
91
|
:'maintenance_window' => :'MaintenanceWindow',
|
88
92
|
:'credentials' => :'DBUser',
|
@@ -144,6 +148,10 @@ module IonoscloudDbaasPostgres
|
|
144
148
|
self.location = attributes[:'location']
|
145
149
|
end
|
146
150
|
|
151
|
+
if attributes.key?(:'backup_location')
|
152
|
+
self.backup_location = attributes[:'backup_location']
|
153
|
+
end
|
154
|
+
|
147
155
|
if attributes.key?(:'display_name')
|
148
156
|
self.display_name = attributes[:'display_name']
|
149
157
|
end
|
@@ -205,6 +213,10 @@ module IonoscloudDbaasPostgres
|
|
205
213
|
invalid_properties.push('invalid value for "storage_size", storage_size cannot be nil.')
|
206
214
|
end
|
207
215
|
|
216
|
+
if @storage_size > 2097152
|
217
|
+
invalid_properties.push('invalid value for "storage_size", must be smaller than or equal to 2097152.')
|
218
|
+
end
|
219
|
+
|
208
220
|
if @storage_size < 2048
|
209
221
|
invalid_properties.push('invalid value for "storage_size", must be greater than or equal to 2048.')
|
210
222
|
end
|
@@ -256,6 +268,7 @@ module IonoscloudDbaasPostgres
|
|
256
268
|
return false if @ram.nil?
|
257
269
|
return false if @ram < 2048
|
258
270
|
return false if @storage_size.nil?
|
271
|
+
return false if @storage_size > 2097152
|
259
272
|
return false if @storage_size < 2048
|
260
273
|
return false if @storage_type.nil?
|
261
274
|
return false if @connections.nil?
|
@@ -321,6 +334,10 @@ module IonoscloudDbaasPostgres
|
|
321
334
|
fail ArgumentError, 'storage_size cannot be nil'
|
322
335
|
end
|
323
336
|
|
337
|
+
if storage_size > 2097152
|
338
|
+
fail ArgumentError, 'invalid value for "storage_size", must be smaller than or equal to 2097152.'
|
339
|
+
end
|
340
|
+
|
324
341
|
if storage_size < 2048
|
325
342
|
fail ArgumentError, 'invalid value for "storage_size", must be greater than or equal to 2048.'
|
326
343
|
end
|
@@ -359,6 +376,7 @@ module IonoscloudDbaasPostgres
|
|
359
376
|
storage_type == o.storage_type &&
|
360
377
|
connections == o.connections &&
|
361
378
|
location == o.location &&
|
379
|
+
backup_location == o.backup_location &&
|
362
380
|
display_name == o.display_name &&
|
363
381
|
maintenance_window == o.maintenance_window &&
|
364
382
|
credentials == o.credentials &&
|
@@ -375,7 +393,7 @@ module IonoscloudDbaasPostgres
|
|
375
393
|
# Calculates hash code according to all attributes.
|
376
394
|
# @return [Integer] Hash code
|
377
395
|
def hash
|
378
|
-
[postgres_version, instances, cores, ram, storage_size, storage_type, connections, location, display_name, maintenance_window, credentials, synchronization_mode, from_backup].hash
|
396
|
+
[postgres_version, instances, cores, ram, storage_size, storage_type, connections, location, backup_location, display_name, maintenance_window, credentials, synchronization_mode, from_backup].hash
|
379
397
|
end
|
380
398
|
|
381
399
|
# Builds the object from hash
|
@@ -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: 0.1.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: 0.1.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: 0.1.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: 0.1.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: 0.1.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: 0.1.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: 0.1.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: 0.1.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: 0.1.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: 0.1.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: 0.1.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: 0.1.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.2.1-SNAPSHOT
|
@@ -137,6 +137,10 @@ module IonoscloudDbaasPostgres
|
|
137
137
|
invalid_properties.push('invalid value for "ram", must be greater than or equal to 2048.')
|
138
138
|
end
|
139
139
|
|
140
|
+
if !@storage_size.nil? && @storage_size > 2097152
|
141
|
+
invalid_properties.push('invalid value for "storage_size", must be smaller than or equal to 2097152.')
|
142
|
+
end
|
143
|
+
|
140
144
|
if !@storage_size.nil? && @storage_size < 2048
|
141
145
|
invalid_properties.push('invalid value for "storage_size", must be greater than or equal to 2048.')
|
142
146
|
end
|
@@ -165,6 +169,7 @@ module IonoscloudDbaasPostgres
|
|
165
169
|
def valid?
|
166
170
|
return false if !@cores.nil? && @cores < 1
|
167
171
|
return false if !@ram.nil? && @ram < 2048
|
172
|
+
return false if !@storage_size.nil? && @storage_size > 2097152
|
168
173
|
return false if !@storage_size.nil? && @storage_size < 2048
|
169
174
|
return false if !@connections.nil? && @connections.length > 1
|
170
175
|
return false if !@connections.nil? && @connections.length < 0
|
@@ -196,6 +201,10 @@ module IonoscloudDbaasPostgres
|
|
196
201
|
# Custom attribute writer method with validation
|
197
202
|
# @param [Object] storage_size Value to be assigned
|
198
203
|
def storage_size=(storage_size)
|
204
|
+
if !storage_size.nil? && storage_size > 2097152
|
205
|
+
fail ArgumentError, 'invalid value for "storage_size", must be smaller than or equal to 2097152.'
|
206
|
+
end
|
207
|
+
|
199
208
|
if !storage_size.nil? && storage_size < 2048
|
200
209
|
fail ArgumentError, 'invalid value for "storage_size", must be greater than or equal to 2048.'
|
201
210
|
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: 0.1.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: 0.1.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: 0.1.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: 0.1.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: 0.1.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: 0.1.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: 0.1.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: 0.1.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.2.1-SNAPSHOT
|
@@ -11,5 +11,5 @@ OpenAPI Generator version: 5.2.1-SNAPSHOT
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
module IonoscloudDbaasPostgres
|
14
|
-
VERSION = '1.0.
|
14
|
+
VERSION = '1.0.1'
|
15
15
|
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: 0.1.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.2.1-SNAPSHOT
|
data/spec/api_client_spec.rb
CHANGED
@@ -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: 0.1.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.2.1-SNAPSHOT
|
data/spec/configuration_spec.rb
CHANGED
@@ -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: 0.1.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.2.1-SNAPSHOT
|
data/spec/spec_helper.rb
CHANGED
@@ -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: 0.1.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.2.1-SNAPSHOT
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ionoscloud-dbaas-postgres
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenAPI-Generator
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-03-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -156,7 +156,6 @@ files:
|
|
156
156
|
- lib/ionoscloud-dbaas-postgres/models/storage_type.rb
|
157
157
|
- lib/ionoscloud-dbaas-postgres/models/synchronization_mode.rb
|
158
158
|
- lib/ionoscloud-dbaas-postgres/version.rb
|
159
|
-
- lib/test_driver.rb
|
160
159
|
- sonar-project.properties
|
161
160
|
- spec/api_client_spec.rb
|
162
161
|
- spec/configuration_spec.rb
|
data/lib/test_driver.rb
DELETED
@@ -1,119 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
$LOAD_PATH << '.'
|
4
|
-
|
5
|
-
require 'json'
|
6
|
-
|
7
|
-
{
|
8
|
-
'ionoscloud' => 'Ionoscloud',
|
9
|
-
'ionoscloud-autoscaling' => 'IonoscloudAutoscaling',
|
10
|
-
'ionoscloud-dbaas-postgres' => 'IonoscloudDbaasPostgres',
|
11
|
-
}.each do |module_name, namespace|
|
12
|
-
begin
|
13
|
-
require module_name
|
14
|
-
Ionoscloud = Object.const_get(namespace)
|
15
|
-
break
|
16
|
-
rescue LoadError
|
17
|
-
end
|
18
|
-
end
|
19
|
-
|
20
|
-
config = Ionoscloud::Configuration.new
|
21
|
-
|
22
|
-
config.username = ENV['IONOS_USERNAME']
|
23
|
-
config.password = ENV['IONOS_PASSWORD']
|
24
|
-
|
25
|
-
api_client = Ionoscloud::ApiClient.new(config)
|
26
|
-
|
27
|
-
def underscore_string(str)
|
28
|
-
str.gsub(/::/, '/')
|
29
|
-
.gsub(/([A-Z]+)([A-Z][a-z])/, '\1_\2')
|
30
|
-
.gsub(/([a-z\d])([A-Z])/, '\1_\2')
|
31
|
-
.tr('-', '_')
|
32
|
-
.downcase
|
33
|
-
end
|
34
|
-
|
35
|
-
def get_class(operation)
|
36
|
-
Ionoscloud.constants.select do |c|
|
37
|
-
Ionoscloud.const_get(c).is_a? Class and Ionoscloud.const_get(c).name.end_with? 'Api'
|
38
|
-
end.each do |class_symbol|
|
39
|
-
class_name = class_symbol.to_s
|
40
|
-
methods = Ionoscloud.const_get(class_name).new.methods - Object.methods
|
41
|
-
return Ionoscloud.const_get(class_name) if methods.map(&:to_s).include? operation
|
42
|
-
end
|
43
|
-
nil
|
44
|
-
end
|
45
|
-
|
46
|
-
input = gets.chomp
|
47
|
-
testing_data = JSON.parse(input.gsub('\"', '"'))
|
48
|
-
|
49
|
-
operation = testing_data['operation']
|
50
|
-
|
51
|
-
begin
|
52
|
-
if operation == 'waitForRequest'
|
53
|
-
request_id = testing_data['params'][0]['value'].scan(%r{/requests/(\b[0-9a-f]{8}\b-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-\b[0-9a-f]{12}\b)}).last.first
|
54
|
-
api_client.wait_for_completion(request_id)
|
55
|
-
puts JSON[{}]
|
56
|
-
else
|
57
|
-
method_name = "#{underscore_string(operation)}_with_http_info"
|
58
|
-
|
59
|
-
cls = get_class method_name
|
60
|
-
|
61
|
-
special_params_names = %w[pretty depth XContractNumber contractNumber offset limit start end]
|
62
|
-
|
63
|
-
normal_params, special_params = (testing_data['params'].nil? ? [] : testing_data['params']).partition do |el|
|
64
|
-
special_params_names.none? do |special_param_name|
|
65
|
-
special_param_name == el['name']
|
66
|
-
end
|
67
|
-
end
|
68
|
-
|
69
|
-
normal_params = normal_params.map { |el| el['value'] }
|
70
|
-
|
71
|
-
special_params = special_params.each_with_object({}) do |current, total|
|
72
|
-
total[current['name'].to_sym] = current['value']
|
73
|
-
end
|
74
|
-
|
75
|
-
response, status_code, headers = cls.new(api_client).public_send(
|
76
|
-
method_name.to_sym,
|
77
|
-
*normal_params,
|
78
|
-
special_params
|
79
|
-
)
|
80
|
-
|
81
|
-
begin
|
82
|
-
response = response.to_hash
|
83
|
-
rescue NoMethodError
|
84
|
-
end
|
85
|
-
|
86
|
-
headers = headers.transform_values do |value|
|
87
|
-
value.split(',', -1)
|
88
|
-
end
|
89
|
-
|
90
|
-
puts JSON[{
|
91
|
-
'result' => response,
|
92
|
-
'httpResponse' => {
|
93
|
-
'statusCode' => status_code,
|
94
|
-
'headers' => headers,
|
95
|
-
'body' => response
|
96
|
-
}
|
97
|
-
}]
|
98
|
-
end
|
99
|
-
rescue Ionoscloud::ApiError => e
|
100
|
-
puts JSON[{
|
101
|
-
'result' => 'ApiException occured',
|
102
|
-
'httpResponse' => {
|
103
|
-
'statusCode' => e.code,
|
104
|
-
'headers' => e.response_headers,
|
105
|
-
'body' => JSON.parse(e.response_body)
|
106
|
-
},
|
107
|
-
'error' => JSON.parse(e.response_body)
|
108
|
-
}]
|
109
|
-
rescue StandardError => e
|
110
|
-
puts JSON[{
|
111
|
-
'result' => 'GeneralException occured',
|
112
|
-
'httpResponse' => {
|
113
|
-
'statusCode' => nil,
|
114
|
-
'headers' => nil,
|
115
|
-
'body' => nil
|
116
|
-
},
|
117
|
-
'error' => e.inspect
|
118
|
-
}]
|
119
|
-
end
|