ionoscloud-dbaas-postgres 1.0.2 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/docs/CHANGELOG.md +26 -0
- data/docs/api/BackupsApi.md +3 -3
- data/docs/api/ClustersApi.md +10 -10
- data/docs/api/LogsApi.md +1 -1
- data/docs/api/MetadataApi.md +2 -2
- data/docs/api/RestoresApi.md +1 -1
- data/docs/models/ClusterBackup.md +5 -1
- data/docs/models/ClusterProperties.md +2 -0
- data/docs/models/DBUser.md +2 -2
- data/docs/models/ErrorResponse.md +1 -1
- data/docs/models/MaintenanceWindow.md +1 -1
- data/ionoscloud-dbaas-postgres.gemspec +5 -5
- data/lib/ionoscloud-dbaas-postgres/api/backups_api.rb +3 -3
- data/lib/ionoscloud-dbaas-postgres/api/clusters_api.rb +5 -5
- data/lib/ionoscloud-dbaas-postgres/api/logs_api.rb +3 -3
- data/lib/ionoscloud-dbaas-postgres/api/metadata_api.rb +3 -3
- data/lib/ionoscloud-dbaas-postgres/api/restores_api.rb +3 -3
- data/lib/ionoscloud-dbaas-postgres/api_client.rb +4 -4
- data/lib/ionoscloud-dbaas-postgres/api_error.rb +3 -3
- data/lib/ionoscloud-dbaas-postgres/configuration.rb +3 -3
- data/lib/ionoscloud-dbaas-postgres/models/api_version.rb +21 -5
- data/lib/ionoscloud-dbaas-postgres/models/backup_metadata.rb +21 -5
- data/lib/ionoscloud-dbaas-postgres/models/backup_response.rb +40 -8
- data/lib/ionoscloud-dbaas-postgres/models/cluster_backup.rb +88 -12
- data/lib/ionoscloud-dbaas-postgres/models/cluster_backup_list.rb +58 -10
- data/lib/ionoscloud-dbaas-postgres/models/cluster_backup_list_all_of.rb +30 -6
- data/lib/ionoscloud-dbaas-postgres/models/cluster_list.rb +58 -10
- data/lib/ionoscloud-dbaas-postgres/models/cluster_list_all_of.rb +30 -6
- data/lib/ionoscloud-dbaas-postgres/models/cluster_logs.rb +12 -4
- data/lib/ionoscloud-dbaas-postgres/models/cluster_logs_instances.rb +21 -5
- data/lib/ionoscloud-dbaas-postgres/models/cluster_logs_messages.rb +21 -5
- data/lib/ionoscloud-dbaas-postgres/models/cluster_properties.rb +131 -17
- data/lib/ionoscloud-dbaas-postgres/models/cluster_response.rb +40 -8
- data/lib/ionoscloud-dbaas-postgres/models/connection.rb +30 -6
- data/lib/ionoscloud-dbaas-postgres/models/create_cluster_properties.rb +129 -17
- data/lib/ionoscloud-dbaas-postgres/models/create_cluster_request.rb +21 -5
- data/lib/ionoscloud-dbaas-postgres/models/create_restore_request.rb +21 -5
- data/lib/ionoscloud-dbaas-postgres/models/day_of_the_week.rb +3 -3
- data/lib/ionoscloud-dbaas-postgres/models/db_user.rb +41 -6
- data/lib/ionoscloud-dbaas-postgres/models/error_message.rb +21 -5
- data/lib/ionoscloud-dbaas-postgres/models/error_response.rb +22 -6
- data/lib/ionoscloud-dbaas-postgres/models/maintenance_window.rb +23 -6
- data/lib/ionoscloud-dbaas-postgres/models/metadata.rb +67 -11
- data/lib/ionoscloud-dbaas-postgres/models/pagination.rb +30 -6
- data/lib/ionoscloud-dbaas-postgres/models/pagination_links.rb +30 -6
- data/lib/ionoscloud-dbaas-postgres/models/patch_cluster_properties.rb +76 -12
- data/lib/ionoscloud-dbaas-postgres/models/patch_cluster_request.rb +22 -6
- data/lib/ionoscloud-dbaas-postgres/models/postgres_version_list.rb +13 -5
- data/lib/ionoscloud-dbaas-postgres/models/postgres_version_list_data.rb +12 -4
- data/lib/ionoscloud-dbaas-postgres/models/resource_type.rb +3 -3
- data/lib/ionoscloud-dbaas-postgres/models/state.rb +3 -3
- data/lib/ionoscloud-dbaas-postgres/models/storage_type.rb +3 -3
- data/lib/ionoscloud-dbaas-postgres/models/synchronization_mode.rb +3 -3
- data/lib/ionoscloud-dbaas-postgres/version.rb +4 -4
- data/lib/ionoscloud-dbaas-postgres.rb +3 -3
- data/spec/api_client_spec.rb +3 -3
- data/spec/configuration_spec.rb +3 -3
- data/spec/spec_helper.rb +3 -3
- metadata +11 -10
@@ -1,9 +1,9 @@
|
|
1
1
|
=begin
|
2
|
-
#IONOS DBaaS REST API
|
2
|
+
#IONOS DBaaS PostgreSQL REST API
|
3
3
|
|
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.
|
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 PostgreSQL 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:
|
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
|
# Credentials for the database user to be created.
|
18
18
|
class DBUser
|
19
|
-
|
19
|
+
|
20
|
+
# The username for the initial PostgreSQL user. Some system usernames are restricted (e.g. \"postgres\", \"admin\", \"standby\").
|
20
21
|
attr_accessor :username
|
21
22
|
|
23
|
+
|
22
24
|
attr_accessor :password
|
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
|
:'username' => :'username',
|
31
|
+
|
28
32
|
:'password' => :'password'
|
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
|
:'username' => :'String',
|
46
|
+
|
41
47
|
:'password' => :'String'
|
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?(:'username')
|
67
76
|
self.username = attributes[:'username']
|
68
77
|
end
|
69
78
|
|
79
|
+
|
70
80
|
if attributes.key?(:'password')
|
71
81
|
self.password = attributes[:'password']
|
72
82
|
end
|
@@ -76,32 +86,57 @@ 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
|
+
|
79
90
|
if @username.nil?
|
80
91
|
invalid_properties.push('invalid value for "username", username cannot be nil.')
|
81
92
|
end
|
82
93
|
|
94
|
+
|
83
95
|
if @password.nil?
|
84
96
|
invalid_properties.push('invalid value for "password", password cannot be nil.')
|
85
97
|
end
|
86
98
|
|
99
|
+
if @password.to_s.length < 10
|
100
|
+
invalid_properties.push('invalid value for "password", the character length must be great than or equal to 10.')
|
101
|
+
end
|
102
|
+
|
87
103
|
invalid_properties
|
88
104
|
end
|
89
105
|
|
90
106
|
# Check to see if the all the properties in the model are valid
|
91
107
|
# @return true if the model is valid
|
92
108
|
def valid?
|
109
|
+
|
93
110
|
return false if @username.nil?
|
111
|
+
|
94
112
|
return false if @password.nil?
|
113
|
+
return false if @password.to_s.length < 10
|
95
114
|
true
|
96
115
|
end
|
97
116
|
|
117
|
+
|
118
|
+
|
119
|
+
# Custom attribute writer method with validation
|
120
|
+
# @param [Object] password Value to be assigned
|
121
|
+
def password=(password)
|
122
|
+
if password.nil?
|
123
|
+
fail ArgumentError, 'password cannot be nil'
|
124
|
+
end
|
125
|
+
|
126
|
+
if password.to_s.length < 10
|
127
|
+
fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 10.'
|
128
|
+
end
|
129
|
+
|
130
|
+
@password = password
|
131
|
+
end
|
132
|
+
|
98
133
|
# Checks equality by comparing each attribute.
|
99
134
|
# @param [Object] Object to be compared
|
100
135
|
def ==(o)
|
101
136
|
return true if self.equal?(o)
|
102
137
|
self.class == o.class &&
|
103
|
-
|
104
|
-
|
138
|
+
username == o.username &&
|
139
|
+
password == o.password
|
105
140
|
end
|
106
141
|
|
107
142
|
# @see the `==` method
|
@@ -1,9 +1,9 @@
|
|
1
1
|
=begin
|
2
|
-
#IONOS DBaaS REST API
|
2
|
+
#IONOS DBaaS PostgreSQL REST API
|
3
3
|
|
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.
|
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 PostgreSQL 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:
|
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,16 +15,20 @@ require 'time'
|
|
15
15
|
|
16
16
|
module IonoscloudDbaasPostgres
|
17
17
|
class ErrorMessage
|
18
|
+
|
18
19
|
# Application internal error code
|
19
20
|
attr_accessor :error_code
|
20
21
|
|
22
|
+
|
21
23
|
# A human readable explanation specific to this occurrence of the problem.
|
22
24
|
attr_accessor :message
|
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
|
:'error_code' => :'errorCode',
|
31
|
+
|
28
32
|
:'message' => :'message'
|
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
|
:'error_code' => :'String',
|
46
|
+
|
41
47
|
:'message' => :'String'
|
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?(:'error_code')
|
67
76
|
self.error_code = attributes[:'error_code']
|
68
77
|
end
|
69
78
|
|
79
|
+
|
70
80
|
if attributes.key?(:'message')
|
71
81
|
self.message = attributes[:'message']
|
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
|
+
error_code == o.error_code &&
|
110
|
+
message == o.message
|
95
111
|
end
|
96
112
|
|
97
113
|
# @see the `==` method
|
@@ -1,9 +1,9 @@
|
|
1
1
|
=begin
|
2
|
-
#IONOS DBaaS REST API
|
2
|
+
#IONOS DBaaS PostgreSQL REST API
|
3
3
|
|
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.
|
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 PostgreSQL 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:
|
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,15 +15,19 @@ require 'time'
|
|
15
15
|
|
16
16
|
module IonoscloudDbaasPostgres
|
17
17
|
class ErrorResponse
|
18
|
-
|
18
|
+
|
19
|
+
# The HTTP status code of the operation.
|
19
20
|
attr_accessor :http_status
|
20
21
|
|
22
|
+
|
21
23
|
attr_accessor :messages
|
22
24
|
|
23
25
|
# Attribute mapping from ruby-style variable name to JSON key.
|
24
26
|
def self.attribute_map
|
25
27
|
{
|
28
|
+
|
26
29
|
:'http_status' => :'httpStatus',
|
30
|
+
|
27
31
|
:'messages' => :'messages'
|
28
32
|
}
|
29
33
|
end
|
@@ -36,7 +40,9 @@ module IonoscloudDbaasPostgres
|
|
36
40
|
# Attribute type mapping.
|
37
41
|
def self.openapi_types
|
38
42
|
{
|
43
|
+
|
39
44
|
:'http_status' => :'Integer',
|
45
|
+
|
40
46
|
:'messages' => :'Array<ErrorMessage>'
|
41
47
|
}
|
42
48
|
end
|
@@ -44,6 +50,8 @@ module IonoscloudDbaasPostgres
|
|
44
50
|
# List of attributes with nullable: true
|
45
51
|
def self.openapi_nullable
|
46
52
|
Set.new([
|
53
|
+
|
54
|
+
|
47
55
|
])
|
48
56
|
end
|
49
57
|
|
@@ -61,11 +69,13 @@ module IonoscloudDbaasPostgres
|
|
61
69
|
end
|
62
70
|
h[k.to_sym] = v
|
63
71
|
}
|
72
|
+
|
64
73
|
|
65
74
|
if attributes.key?(:'http_status')
|
66
75
|
self.http_status = attributes[:'http_status']
|
67
76
|
end
|
68
77
|
|
78
|
+
|
69
79
|
if attributes.key?(:'messages') && (value = attributes[:'messages']).is_a?(Array)
|
70
80
|
self.messages = value
|
71
81
|
end
|
@@ -75,22 +85,28 @@ module IonoscloudDbaasPostgres
|
|
75
85
|
# @return Array for valid properties with the reasons
|
76
86
|
def list_invalid_properties
|
77
87
|
invalid_properties = Array.new
|
88
|
+
|
89
|
+
|
78
90
|
invalid_properties
|
79
91
|
end
|
80
92
|
|
81
93
|
# Check to see if the all the properties in the model are valid
|
82
94
|
# @return true if the model is valid
|
83
95
|
def valid?
|
96
|
+
|
97
|
+
|
84
98
|
true
|
85
99
|
end
|
86
100
|
|
101
|
+
|
102
|
+
|
87
103
|
# Checks equality by comparing each attribute.
|
88
104
|
# @param [Object] Object to be compared
|
89
105
|
def ==(o)
|
90
106
|
return true if self.equal?(o)
|
91
107
|
self.class == o.class &&
|
92
|
-
|
93
|
-
|
108
|
+
http_status == o.http_status &&
|
109
|
+
messages == o.messages
|
94
110
|
end
|
95
111
|
|
96
112
|
# @see the `==` method
|
@@ -1,9 +1,9 @@
|
|
1
1
|
=begin
|
2
|
-
#IONOS DBaaS REST API
|
2
|
+
#IONOS DBaaS PostgreSQL REST API
|
3
3
|
|
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.
|
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 PostgreSQL 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:
|
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
|
@@ -14,16 +14,21 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module IonoscloudDbaasPostgres
|
17
|
-
# A weekly 4 hour-long window, during which maintenance might occur
|
17
|
+
# A weekly 4 hour-long window, during which maintenance might occur.
|
18
18
|
class MaintenanceWindow
|
19
|
+
|
20
|
+
# Start of the maintenance window in UTC time.
|
19
21
|
attr_accessor :time
|
20
22
|
|
23
|
+
|
21
24
|
attr_accessor :day_of_the_week
|
22
25
|
|
23
26
|
# Attribute mapping from ruby-style variable name to JSON key.
|
24
27
|
def self.attribute_map
|
25
28
|
{
|
29
|
+
|
26
30
|
:'time' => :'time',
|
31
|
+
|
27
32
|
:'day_of_the_week' => :'dayOfTheWeek'
|
28
33
|
}
|
29
34
|
end
|
@@ -36,7 +41,9 @@ module IonoscloudDbaasPostgres
|
|
36
41
|
# Attribute type mapping.
|
37
42
|
def self.openapi_types
|
38
43
|
{
|
44
|
+
|
39
45
|
:'time' => :'String',
|
46
|
+
|
40
47
|
:'day_of_the_week' => :'DayOfTheWeek'
|
41
48
|
}
|
42
49
|
end
|
@@ -44,6 +51,8 @@ module IonoscloudDbaasPostgres
|
|
44
51
|
# List of attributes with nullable: true
|
45
52
|
def self.openapi_nullable
|
46
53
|
Set.new([
|
54
|
+
|
55
|
+
|
47
56
|
])
|
48
57
|
end
|
49
58
|
|
@@ -61,11 +70,13 @@ module IonoscloudDbaasPostgres
|
|
61
70
|
end
|
62
71
|
h[k.to_sym] = v
|
63
72
|
}
|
73
|
+
|
64
74
|
|
65
75
|
if attributes.key?(:'time')
|
66
76
|
self.time = attributes[:'time']
|
67
77
|
end
|
68
78
|
|
79
|
+
|
69
80
|
if attributes.key?(:'day_of_the_week')
|
70
81
|
self.day_of_the_week = attributes[:'day_of_the_week']
|
71
82
|
end
|
@@ -75,10 +86,12 @@ module IonoscloudDbaasPostgres
|
|
75
86
|
# @return Array for valid properties with the reasons
|
76
87
|
def list_invalid_properties
|
77
88
|
invalid_properties = Array.new
|
89
|
+
|
78
90
|
if @time.nil?
|
79
91
|
invalid_properties.push('invalid value for "time", time cannot be nil.')
|
80
92
|
end
|
81
93
|
|
94
|
+
|
82
95
|
if @day_of_the_week.nil?
|
83
96
|
invalid_properties.push('invalid value for "day_of_the_week", day_of_the_week cannot be nil.')
|
84
97
|
end
|
@@ -89,18 +102,22 @@ module IonoscloudDbaasPostgres
|
|
89
102
|
# Check to see if the all the properties in the model are valid
|
90
103
|
# @return true if the model is valid
|
91
104
|
def valid?
|
105
|
+
|
92
106
|
return false if @time.nil?
|
107
|
+
|
93
108
|
return false if @day_of_the_week.nil?
|
94
109
|
true
|
95
110
|
end
|
96
111
|
|
112
|
+
|
113
|
+
|
97
114
|
# Checks equality by comparing each attribute.
|
98
115
|
# @param [Object] Object to be compared
|
99
116
|
def ==(o)
|
100
117
|
return true if self.equal?(o)
|
101
118
|
self.class == o.class &&
|
102
|
-
|
103
|
-
|
119
|
+
time == o.time &&
|
120
|
+
day_of_the_week == o.day_of_the_week
|
104
121
|
end
|
105
122
|
|
106
123
|
# @see the `==` method
|
@@ -1,9 +1,9 @@
|
|
1
1
|
=begin
|
2
|
-
#IONOS DBaaS REST API
|
2
|
+
#IONOS DBaaS PostgreSQL REST API
|
3
3
|
|
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.
|
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 PostgreSQL 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:
|
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
|
@@ -14,33 +14,47 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module IonoscloudDbaasPostgres
|
17
|
-
# Metadata of the resource
|
17
|
+
# Metadata of the resource.
|
18
18
|
class Metadata
|
19
|
+
|
19
20
|
# The ISO 8601 creation timestamp.
|
20
21
|
attr_accessor :created_date
|
21
22
|
|
23
|
+
|
22
24
|
attr_accessor :created_by
|
23
25
|
|
26
|
+
|
24
27
|
attr_accessor :created_by_user_id
|
25
28
|
|
29
|
+
|
26
30
|
# The ISO 8601 modified timestamp.
|
27
31
|
attr_accessor :last_modified_date
|
28
32
|
|
33
|
+
|
29
34
|
attr_accessor :last_modified_by
|
30
35
|
|
36
|
+
|
31
37
|
attr_accessor :last_modified_by_user_id
|
32
38
|
|
39
|
+
|
33
40
|
attr_accessor :state
|
34
41
|
|
35
42
|
# Attribute mapping from ruby-style variable name to JSON key.
|
36
43
|
def self.attribute_map
|
37
44
|
{
|
45
|
+
|
38
46
|
:'created_date' => :'createdDate',
|
47
|
+
|
39
48
|
:'created_by' => :'createdBy',
|
49
|
+
|
40
50
|
:'created_by_user_id' => :'createdByUserId',
|
51
|
+
|
41
52
|
:'last_modified_date' => :'lastModifiedDate',
|
53
|
+
|
42
54
|
:'last_modified_by' => :'lastModifiedBy',
|
55
|
+
|
43
56
|
:'last_modified_by_user_id' => :'lastModifiedByUserId',
|
57
|
+
|
44
58
|
:'state' => :'state'
|
45
59
|
}
|
46
60
|
end
|
@@ -53,12 +67,19 @@ module IonoscloudDbaasPostgres
|
|
53
67
|
# Attribute type mapping.
|
54
68
|
def self.openapi_types
|
55
69
|
{
|
70
|
+
|
56
71
|
:'created_date' => :'Time',
|
72
|
+
|
57
73
|
:'created_by' => :'String',
|
74
|
+
|
58
75
|
:'created_by_user_id' => :'String',
|
76
|
+
|
59
77
|
:'last_modified_date' => :'Time',
|
78
|
+
|
60
79
|
:'last_modified_by' => :'String',
|
80
|
+
|
61
81
|
:'last_modified_by_user_id' => :'String',
|
82
|
+
|
62
83
|
:'state' => :'State'
|
63
84
|
}
|
64
85
|
end
|
@@ -66,6 +87,13 @@ module IonoscloudDbaasPostgres
|
|
66
87
|
# List of attributes with nullable: true
|
67
88
|
def self.openapi_nullable
|
68
89
|
Set.new([
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
69
97
|
])
|
70
98
|
end
|
71
99
|
|
@@ -83,31 +111,38 @@ module IonoscloudDbaasPostgres
|
|
83
111
|
end
|
84
112
|
h[k.to_sym] = v
|
85
113
|
}
|
114
|
+
|
86
115
|
|
87
116
|
if attributes.key?(:'created_date')
|
88
117
|
self.created_date = attributes[:'created_date']
|
89
118
|
end
|
90
119
|
|
120
|
+
|
91
121
|
if attributes.key?(:'created_by')
|
92
122
|
self.created_by = attributes[:'created_by']
|
93
123
|
end
|
94
124
|
|
125
|
+
|
95
126
|
if attributes.key?(:'created_by_user_id')
|
96
127
|
self.created_by_user_id = attributes[:'created_by_user_id']
|
97
128
|
end
|
98
129
|
|
130
|
+
|
99
131
|
if attributes.key?(:'last_modified_date')
|
100
132
|
self.last_modified_date = attributes[:'last_modified_date']
|
101
133
|
end
|
102
134
|
|
135
|
+
|
103
136
|
if attributes.key?(:'last_modified_by')
|
104
137
|
self.last_modified_by = attributes[:'last_modified_by']
|
105
138
|
end
|
106
139
|
|
140
|
+
|
107
141
|
if attributes.key?(:'last_modified_by_user_id')
|
108
142
|
self.last_modified_by_user_id = attributes[:'last_modified_by_user_id']
|
109
143
|
end
|
110
144
|
|
145
|
+
|
111
146
|
if attributes.key?(:'state')
|
112
147
|
self.state = attributes[:'state']
|
113
148
|
end
|
@@ -117,27 +152,48 @@ module IonoscloudDbaasPostgres
|
|
117
152
|
# @return Array for valid properties with the reasons
|
118
153
|
def list_invalid_properties
|
119
154
|
invalid_properties = Array.new
|
155
|
+
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
|
120
162
|
invalid_properties
|
121
163
|
end
|
122
164
|
|
123
165
|
# Check to see if the all the properties in the model are valid
|
124
166
|
# @return true if the model is valid
|
125
167
|
def valid?
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
|
174
|
+
|
126
175
|
true
|
127
176
|
end
|
128
177
|
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
|
184
|
+
|
129
185
|
# Checks equality by comparing each attribute.
|
130
186
|
# @param [Object] Object to be compared
|
131
187
|
def ==(o)
|
132
188
|
return true if self.equal?(o)
|
133
189
|
self.class == o.class &&
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
190
|
+
created_date == o.created_date &&
|
191
|
+
created_by == o.created_by &&
|
192
|
+
created_by_user_id == o.created_by_user_id &&
|
193
|
+
last_modified_date == o.last_modified_date &&
|
194
|
+
last_modified_by == o.last_modified_by &&
|
195
|
+
last_modified_by_user_id == o.last_modified_by_user_id &&
|
196
|
+
state == o.state
|
141
197
|
end
|
142
198
|
|
143
199
|
# @see the `==` method
|