ionoscloud-dbaas-mongo 1.0.0 → 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.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +3 -3
  3. data/README.md +6 -2
  4. data/docs/README.md +56 -0
  5. data/docs/api/ClustersApi.md +78 -0
  6. data/docs/api/UsersApi.md +82 -0
  7. data/docs/models/ClusterProperties.md +1 -1
  8. data/docs/models/Connection.md +1 -1
  9. data/docs/models/CreateClusterProperties.md +1 -1
  10. data/docs/models/PatchClusterProperties.md +26 -0
  11. data/docs/models/PatchClusterRequest.md +20 -0
  12. data/docs/models/PatchUserProperties.md +20 -0
  13. data/docs/models/PatchUserRequest.md +20 -0
  14. data/docs/models/TemplateList.md +11 -1
  15. data/docs/models/TemplateListAllOf.md +4 -0
  16. data/docs/models/TemplateResponse.md +4 -0
  17. data/docs/models/UserProperties.md +0 -2
  18. data/lib/ionoscloud-dbaas-mongo/api/clusters_api.rb +71 -0
  19. data/lib/ionoscloud-dbaas-mongo/api/users_api.rb +83 -0
  20. data/lib/ionoscloud-dbaas-mongo/api_client.rb +1 -1
  21. data/lib/ionoscloud-dbaas-mongo/models/cluster_properties.rb +1 -1
  22. data/lib/ionoscloud-dbaas-mongo/models/connection.rb +1 -1
  23. data/lib/ionoscloud-dbaas-mongo/models/create_cluster_properties.rb +1 -1
  24. data/lib/ionoscloud-dbaas-mongo/models/patch_cluster_properties.rb +322 -0
  25. data/lib/ionoscloud-dbaas-mongo/models/patch_cluster_request.rb +244 -0
  26. data/lib/ionoscloud-dbaas-mongo/models/patch_user_properties.rb +259 -0
  27. data/lib/ionoscloud-dbaas-mongo/models/patch_user_request.rb +244 -0
  28. data/lib/ionoscloud-dbaas-mongo/models/resource_type.rb +1 -0
  29. data/lib/ionoscloud-dbaas-mongo/models/template_list.rb +123 -4
  30. data/lib/ionoscloud-dbaas-mongo/models/template_list_all_of.rb +36 -1
  31. data/lib/ionoscloud-dbaas-mongo/models/template_response.rb +37 -1
  32. data/lib/ionoscloud-dbaas-mongo/models/user_properties.rb +19 -23
  33. data/lib/ionoscloud-dbaas-mongo/version.rb +1 -1
  34. data/lib/ionoscloud-dbaas-mongo.rb +4 -0
  35. data/sonar-project.properties +12 -0
  36. metadata +12 -2
@@ -16,12 +16,23 @@ require 'time'
16
16
  module IonoscloudDbaasMongo
17
17
  class TemplateListAllOf
18
18
 
19
+ attr_accessor :type
20
+
21
+
22
+ # The unique ID of the resource.
23
+ attr_accessor :id
24
+
25
+
19
26
  attr_accessor :items
20
27
 
21
28
  # Attribute mapping from ruby-style variable name to JSON key.
22
29
  def self.attribute_map
23
30
  {
24
31
 
32
+ :'type' => :'type',
33
+
34
+ :'id' => :'id',
35
+
25
36
  :'items' => :'items'
26
37
  }
27
38
  end
@@ -35,6 +46,10 @@ module IonoscloudDbaasMongo
35
46
  def self.openapi_types
36
47
  {
37
48
 
49
+ :'type' => :'ResourceType',
50
+
51
+ :'id' => :'String',
52
+
38
53
  :'items' => :'Array<TemplateResponse>'
39
54
  }
40
55
  end
@@ -43,6 +58,8 @@ module IonoscloudDbaasMongo
43
58
  def self.openapi_nullable
44
59
  Set.new([
45
60
 
61
+
62
+
46
63
  ])
47
64
  end
48
65
 
@@ -62,6 +79,16 @@ module IonoscloudDbaasMongo
62
79
  }
63
80
 
64
81
 
82
+ if attributes.key?(:'type')
83
+ self.type = attributes[:'type']
84
+ end
85
+
86
+
87
+ if attributes.key?(:'id')
88
+ self.id = attributes[:'id']
89
+ end
90
+
91
+
65
92
  if attributes.key?(:'items') && (value = attributes[:'items']).is_a?(Array)
66
93
  self.items = value
67
94
  end
@@ -72,6 +99,8 @@ module IonoscloudDbaasMongo
72
99
  def list_invalid_properties
73
100
  invalid_properties = Array.new
74
101
 
102
+
103
+
75
104
  invalid_properties
76
105
  end
77
106
 
@@ -79,15 +108,21 @@ module IonoscloudDbaasMongo
79
108
  # @return true if the model is valid
80
109
  def valid?
81
110
 
111
+
112
+
82
113
  true
83
114
  end
84
115
 
85
116
 
117
+
118
+
86
119
  # Checks equality by comparing each attribute.
87
120
  # @param [Object] Object to be compared
88
121
  def ==(o)
89
122
  return true if self.equal?(o)
90
123
  self.class == o.class &&
124
+ type == o.type &&
125
+ id == o.id &&
91
126
  items == o.items
92
127
  end
93
128
 
@@ -100,7 +135,7 @@ module IonoscloudDbaasMongo
100
135
  # Calculates hash code according to all attributes.
101
136
  # @return [Integer] Hash code
102
137
  def hash
103
- [items].hash
138
+ [type, id, items].hash
104
139
  end
105
140
 
106
141
  # Builds the object from hash
@@ -21,6 +21,14 @@ module IonoscloudDbaasMongo
21
21
  attr_accessor :id
22
22
 
23
23
 
24
+ # The name of the template.
25
+ attr_accessor :name
26
+
27
+
28
+ # The edition of the template (e.g. enterprise)
29
+ attr_accessor :edition
30
+
31
+
24
32
  # The number of CPU cores.
25
33
  attr_accessor :cores
26
34
 
@@ -38,6 +46,10 @@ module IonoscloudDbaasMongo
38
46
 
39
47
  :'id' => :'id',
40
48
 
49
+ :'name' => :'name',
50
+
51
+ :'edition' => :'edition',
52
+
41
53
  :'cores' => :'cores',
42
54
 
43
55
  :'ram' => :'ram',
@@ -57,6 +69,10 @@ module IonoscloudDbaasMongo
57
69
 
58
70
  :'id' => :'String',
59
71
 
72
+ :'name' => :'String',
73
+
74
+ :'edition' => :'String',
75
+
60
76
  :'cores' => :'Integer',
61
77
 
62
78
  :'ram' => :'Integer',
@@ -72,6 +88,8 @@ module IonoscloudDbaasMongo
72
88
 
73
89
 
74
90
 
91
+
92
+
75
93
  ])
76
94
  end
77
95
 
@@ -96,6 +114,16 @@ module IonoscloudDbaasMongo
96
114
  end
97
115
 
98
116
 
117
+ if attributes.key?(:'name')
118
+ self.name = attributes[:'name']
119
+ end
120
+
121
+
122
+ if attributes.key?(:'edition')
123
+ self.edition = attributes[:'edition']
124
+ end
125
+
126
+
99
127
  if attributes.key?(:'cores')
100
128
  self.cores = attributes[:'cores']
101
129
  end
@@ -119,6 +147,8 @@ module IonoscloudDbaasMongo
119
147
 
120
148
 
121
149
 
150
+
151
+
122
152
  invalid_properties
123
153
  end
124
154
 
@@ -129,6 +159,8 @@ module IonoscloudDbaasMongo
129
159
 
130
160
 
131
161
 
162
+
163
+
132
164
  true
133
165
  end
134
166
 
@@ -136,12 +168,16 @@ module IonoscloudDbaasMongo
136
168
 
137
169
 
138
170
 
171
+
172
+
139
173
  # Checks equality by comparing each attribute.
140
174
  # @param [Object] Object to be compared
141
175
  def ==(o)
142
176
  return true if self.equal?(o)
143
177
  self.class == o.class &&
144
178
  id == o.id &&
179
+ name == o.name &&
180
+ edition == o.edition &&
145
181
  cores == o.cores &&
146
182
  ram == o.ram &&
147
183
  storage_size == o.storage_size
@@ -156,7 +192,7 @@ module IonoscloudDbaasMongo
156
192
  # Calculates hash code according to all attributes.
157
193
  # @return [Integer] Hash code
158
194
  def hash
159
- [id, cores, ram, storage_size].hash
195
+ [id, name, edition, cores, ram, storage_size].hash
160
196
  end
161
197
 
162
198
  # Builds the object from hash
@@ -20,10 +20,6 @@ module IonoscloudDbaasMongo
20
20
  attr_accessor :username
21
21
 
22
22
 
23
- # The user database to use for authentication.
24
- attr_accessor :database
25
-
26
-
27
23
  attr_accessor :password
28
24
 
29
25
 
@@ -35,8 +31,6 @@ module IonoscloudDbaasMongo
35
31
 
36
32
  :'username' => :'username',
37
33
 
38
- :'database' => :'database',
39
-
40
34
  :'password' => :'password',
41
35
 
42
36
  :'roles' => :'roles'
@@ -54,8 +48,6 @@ module IonoscloudDbaasMongo
54
48
 
55
49
  :'username' => :'String',
56
50
 
57
- :'database' => :'String',
58
-
59
51
  :'password' => :'String',
60
52
 
61
53
  :'roles' => :'Array<UserRoles>'
@@ -68,7 +60,6 @@ module IonoscloudDbaasMongo
68
60
 
69
61
 
70
62
 
71
-
72
63
  ])
73
64
  end
74
65
 
@@ -93,11 +84,6 @@ module IonoscloudDbaasMongo
93
84
  end
94
85
 
95
86
 
96
- if attributes.key?(:'database')
97
- self.database = attributes[:'database']
98
- end
99
-
100
-
101
87
  if attributes.key?(:'password')
102
88
  self.password = attributes[:'password']
103
89
  end
@@ -118,15 +104,14 @@ module IonoscloudDbaasMongo
118
104
  end
119
105
 
120
106
 
121
- if @database.nil?
122
- invalid_properties.push('invalid value for "database", database cannot be nil.')
123
- end
124
-
125
-
126
107
  if @password.nil?
127
108
  invalid_properties.push('invalid value for "password", password cannot be nil.')
128
109
  end
129
110
 
111
+ if @password.to_s.length < 10
112
+ invalid_properties.push('invalid value for "password", the character length must be great than or equal to 10.')
113
+ end
114
+
130
115
 
131
116
  invalid_properties
132
117
  end
@@ -137,15 +122,27 @@ module IonoscloudDbaasMongo
137
122
 
138
123
  return false if @username.nil?
139
124
 
140
- return false if @database.nil?
141
-
142
125
  return false if @password.nil?
126
+ return false if @password.to_s.length < 10
143
127
 
144
128
  true
145
129
  end
146
130
 
147
131
 
148
132
 
133
+ # Custom attribute writer method with validation
134
+ # @param [Object] password Value to be assigned
135
+ def password=(password)
136
+ if password.nil?
137
+ fail ArgumentError, 'password cannot be nil'
138
+ end
139
+
140
+ if password.to_s.length < 10
141
+ fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 10.'
142
+ end
143
+
144
+ @password = password
145
+ end
149
146
 
150
147
 
151
148
  # Checks equality by comparing each attribute.
@@ -154,7 +151,6 @@ module IonoscloudDbaasMongo
154
151
  return true if self.equal?(o)
155
152
  self.class == o.class &&
156
153
  username == o.username &&
157
- database == o.database &&
158
154
  password == o.password &&
159
155
  roles == o.roles
160
156
  end
@@ -168,7 +164,7 @@ module IonoscloudDbaasMongo
168
164
  # Calculates hash code according to all attributes.
169
165
  # @return [Integer] Hash code
170
166
  def hash
171
- [username, database, password, roles].hash
167
+ [username, password, roles].hash
172
168
  end
173
169
 
174
170
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 5.2.1-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module IonoscloudDbaasMongo
14
- VERSION = '1.0.0'
14
+ VERSION = '1.1.0'
15
15
  end
@@ -36,6 +36,10 @@ require 'ionoscloud-dbaas-mongo/models/maintenance_window'
36
36
  require 'ionoscloud-dbaas-mongo/models/metadata'
37
37
  require 'ionoscloud-dbaas-mongo/models/pagination'
38
38
  require 'ionoscloud-dbaas-mongo/models/pagination_links'
39
+ require 'ionoscloud-dbaas-mongo/models/patch_cluster_properties'
40
+ require 'ionoscloud-dbaas-mongo/models/patch_cluster_request'
41
+ require 'ionoscloud-dbaas-mongo/models/patch_user_properties'
42
+ require 'ionoscloud-dbaas-mongo/models/patch_user_request'
39
43
  require 'ionoscloud-dbaas-mongo/models/resource_type'
40
44
  require 'ionoscloud-dbaas-mongo/models/snapshot_list'
41
45
  require 'ionoscloud-dbaas-mongo/models/snapshot_list_all_of'
@@ -0,0 +1,12 @@
1
+ sonar.projectKey=ionos-cloud_sdk-ruby-dbaas-mongo
2
+ sonar.organization=ionos-cloud
3
+
4
+ # This is the name and version displayed in the SonarCloud UI.
5
+ #sonar.projectName=sdk-ruby-dbaas-mongo
6
+ #sonar.projectVersion=1.0
7
+
8
+ # Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
9
+ #sonar.sources=.
10
+
11
+ # Encoding of the source code. Default is default system encoding
12
+ #sonar.sourceEncoding=UTF-8
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ionoscloud-dbaas-mongo
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
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-10-04 00:00:00.000000000 Z
11
+ date: 2022-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -69,6 +69,7 @@ files:
69
69
  - LICENSE
70
70
  - README.md
71
71
  - Rakefile
72
+ - docs/README.md
72
73
  - docs/api/ClustersApi.md
73
74
  - docs/api/LogsApi.md
74
75
  - docs/api/MetadataApi.md
@@ -95,6 +96,10 @@ files:
95
96
  - docs/models/Metadata.md
96
97
  - docs/models/Pagination.md
97
98
  - docs/models/PaginationLinks.md
99
+ - docs/models/PatchClusterProperties.md
100
+ - docs/models/PatchClusterRequest.md
101
+ - docs/models/PatchUserProperties.md
102
+ - docs/models/PatchUserRequest.md
98
103
  - docs/models/ResourceType.md
99
104
  - docs/models/SnapshotList.md
100
105
  - docs/models/SnapshotListAllOf.md
@@ -142,6 +147,10 @@ files:
142
147
  - lib/ionoscloud-dbaas-mongo/models/metadata.rb
143
148
  - lib/ionoscloud-dbaas-mongo/models/pagination.rb
144
149
  - lib/ionoscloud-dbaas-mongo/models/pagination_links.rb
150
+ - lib/ionoscloud-dbaas-mongo/models/patch_cluster_properties.rb
151
+ - lib/ionoscloud-dbaas-mongo/models/patch_cluster_request.rb
152
+ - lib/ionoscloud-dbaas-mongo/models/patch_user_properties.rb
153
+ - lib/ionoscloud-dbaas-mongo/models/patch_user_request.rb
145
154
  - lib/ionoscloud-dbaas-mongo/models/resource_type.rb
146
155
  - lib/ionoscloud-dbaas-mongo/models/snapshot_list.rb
147
156
  - lib/ionoscloud-dbaas-mongo/models/snapshot_list_all_of.rb
@@ -157,6 +166,7 @@ files:
157
166
  - lib/ionoscloud-dbaas-mongo/models/user_roles.rb
158
167
  - lib/ionoscloud-dbaas-mongo/models/users_list.rb
159
168
  - lib/ionoscloud-dbaas-mongo/version.rb
169
+ - sonar-project.properties
160
170
  - spec/api_client_spec.rb
161
171
  - spec/configuration_spec.rb
162
172
  - spec/spec_helper.rb