autosde_openapi_client 1.0.43 → 1.0.47

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 (56) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +53 -46
  3. data/docs/AbstractCapabilityApi.md +4 -4
  4. data/docs/AccountApi.md +2 -2
  5. data/docs/AddressApi.md +2 -2
  6. data/docs/AutoSDEProjectApi.md +4 -4
  7. data/docs/AutoSDERoleApi.md +4 -4
  8. data/docs/CapabilityTranslationApi.md +2 -2
  9. data/docs/HostApi.md +2 -2
  10. data/docs/HostCluster.md +32 -0
  11. data/docs/HostClusterApi.md +276 -0
  12. data/docs/HostClusterCreate.md +28 -0
  13. data/docs/HostVolumeConnectionApi.md +2 -2
  14. data/docs/NativeCapabilityApi.md +2 -2
  15. data/docs/ProfileApi.md +4 -4
  16. data/docs/ProvisioningStrategyApi.md +2 -2
  17. data/docs/ServiceApi.md +2 -2
  18. data/docs/ServiceResourceAttachmentApi.md +2 -2
  19. data/docs/SnapshotApi.md +2 -2
  20. data/docs/StorageResourceApi.md +2 -2
  21. data/docs/StorageSystemApi.md +8 -8
  22. data/docs/StorageSystemUpdate.md +24 -0
  23. data/docs/SystemTypeApi.md +2 -2
  24. data/docs/VolumeApi.md +2 -2
  25. data/docs/VolumeSafeDeleteApi.md +2 -2
  26. data/lib/autosde_openapi_client.rb +4 -0
  27. data/lib/autosde_openapi_client/api/abstract_capability_api.rb +4 -4
  28. data/lib/autosde_openapi_client/api/account_api.rb +2 -2
  29. data/lib/autosde_openapi_client/api/address_api.rb +2 -2
  30. data/lib/autosde_openapi_client/api/auto_sde_project_api.rb +4 -4
  31. data/lib/autosde_openapi_client/api/auto_sde_role_api.rb +4 -4
  32. data/lib/autosde_openapi_client/api/capability_translation_api.rb +2 -2
  33. data/lib/autosde_openapi_client/api/host_api.rb +2 -2
  34. data/lib/autosde_openapi_client/api/host_cluster_api.rb +254 -0
  35. data/lib/autosde_openapi_client/api/host_volume_connection_api.rb +2 -2
  36. data/lib/autosde_openapi_client/api/native_capability_api.rb +2 -2
  37. data/lib/autosde_openapi_client/api/profile_api.rb +4 -4
  38. data/lib/autosde_openapi_client/api/provisioning_strategy_api.rb +2 -2
  39. data/lib/autosde_openapi_client/api/service_api.rb +2 -2
  40. data/lib/autosde_openapi_client/api/service_resource_attachment_api.rb +2 -2
  41. data/lib/autosde_openapi_client/api/snapshot_api.rb +2 -2
  42. data/lib/autosde_openapi_client/api/storage_resource_api.rb +2 -2
  43. data/lib/autosde_openapi_client/api/storage_system_api.rb +11 -11
  44. data/lib/autosde_openapi_client/api/system_type_api.rb +2 -2
  45. data/lib/autosde_openapi_client/api/volume_api.rb +2 -2
  46. data/lib/autosde_openapi_client/api/volume_safe_delete_api.rb +2 -2
  47. data/lib/autosde_openapi_client/models/host_cluster.rb +388 -0
  48. data/lib/autosde_openapi_client/models/host_cluster_create.rb +329 -0
  49. data/lib/autosde_openapi_client/models/storage_system_update.rb +265 -0
  50. data/lib/autosde_openapi_client/version.rb +2 -2
  51. data/spec/api/host_cluster_api_spec.rb +74 -0
  52. data/spec/api/storage_system_api_spec.rb +1 -1
  53. data/spec/models/host_cluster_create_spec.rb +64 -0
  54. data/spec/models/host_cluster_spec.rb +80 -0
  55. data/spec/models/storage_system_update_spec.rb +52 -0
  56. metadata +71 -55
@@ -0,0 +1,265 @@
1
+ =begin
2
+ #Site Manager API
3
+
4
+ #Site Manager API
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ Contact: autosde@il.ibm.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.0.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module AutosdeOpenapiClient
17
+ # TODO add description
18
+ class StorageSystemUpdate
19
+ # management_ip
20
+ attr_accessor :management_ip
21
+
22
+ # name
23
+ attr_accessor :name
24
+
25
+ # password
26
+ attr_accessor :password
27
+
28
+ # user
29
+ attr_accessor :user
30
+
31
+ # Attribute mapping from ruby-style variable name to JSON key.
32
+ def self.attribute_map
33
+ {
34
+ :'management_ip' => :'management_ip',
35
+ :'name' => :'name',
36
+ :'password' => :'password',
37
+ :'user' => :'user'
38
+ }
39
+ end
40
+
41
+ # Returns all the JSON keys this model knows about
42
+ def self.acceptable_attributes
43
+ attribute_map.values
44
+ end
45
+
46
+ # Attribute type mapping.
47
+ def self.openapi_types
48
+ {
49
+ :'management_ip' => :'String',
50
+ :'name' => :'String',
51
+ :'password' => :'String',
52
+ :'user' => :'String'
53
+ }
54
+ end
55
+
56
+ # List of attributes with nullable: true
57
+ def self.openapi_nullable
58
+ Set.new([
59
+ ])
60
+ end
61
+
62
+ # Initializes the object
63
+ # @param [Hash] attributes Model attributes in the form of hash
64
+ def initialize(attributes = {})
65
+ if (!attributes.is_a?(Hash))
66
+ fail ArgumentError, "The input argument (attributes) must be a hash in `AutosdeOpenapiClient::StorageSystemUpdate` initialize method"
67
+ end
68
+
69
+ # check to see if the attribute exists and convert string to symbol for hash key
70
+ attributes = attributes.each_with_object({}) { |(k, v), h|
71
+ if (!self.class.attribute_map.key?(k.to_sym))
72
+ fail ArgumentError, "`#{k}` is not a valid attribute in `AutosdeOpenapiClient::StorageSystemUpdate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
73
+ end
74
+ h[k.to_sym] = v
75
+ }
76
+
77
+ if attributes.key?(:'management_ip')
78
+ self.management_ip = attributes[:'management_ip']
79
+ end
80
+
81
+ if attributes.key?(:'name')
82
+ self.name = attributes[:'name']
83
+ end
84
+
85
+ if attributes.key?(:'password')
86
+ self.password = attributes[:'password']
87
+ end
88
+
89
+ if attributes.key?(:'user')
90
+ self.user = attributes[:'user']
91
+ end
92
+ end
93
+
94
+ # Show invalid properties with the reasons. Usually used together with valid?
95
+ # @return Array for valid properties with the reasons
96
+ def list_invalid_properties
97
+ invalid_properties = Array.new
98
+ if !@name.nil? && @name.to_s.length > 15
99
+ invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 15.')
100
+ end
101
+
102
+ invalid_properties
103
+ end
104
+
105
+ # Check to see if the all the properties in the model are valid
106
+ # @return true if the model is valid
107
+ def valid?
108
+ return false if !@name.nil? && @name.to_s.length > 15
109
+ true
110
+ end
111
+
112
+ # Custom attribute writer method with validation
113
+ # @param [Object] name Value to be assigned
114
+ def name=(name)
115
+ if !name.nil? && name.to_s.length > 15
116
+ fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 15.'
117
+ end
118
+
119
+ @name = name
120
+ end
121
+
122
+ # Checks equality by comparing each attribute.
123
+ # @param [Object] Object to be compared
124
+ def ==(o)
125
+ return true if self.equal?(o)
126
+ self.class == o.class &&
127
+ management_ip == o.management_ip &&
128
+ name == o.name &&
129
+ password == o.password &&
130
+ user == o.user
131
+ end
132
+
133
+ # @see the `==` method
134
+ # @param [Object] Object to be compared
135
+ def eql?(o)
136
+ self == o
137
+ end
138
+
139
+ # Calculates hash code according to all attributes.
140
+ # @return [Integer] Hash code
141
+ def hash
142
+ [management_ip, name, password, user].hash
143
+ end
144
+
145
+ # Builds the object from hash
146
+ # @param [Hash] attributes Model attributes in the form of hash
147
+ # @return [Object] Returns the model itself
148
+ def self.build_from_hash(attributes)
149
+ new.build_from_hash(attributes)
150
+ end
151
+
152
+ # Builds the object from hash
153
+ # @param [Hash] attributes Model attributes in the form of hash
154
+ # @return [Object] Returns the model itself
155
+ def build_from_hash(attributes)
156
+ return nil unless attributes.is_a?(Hash)
157
+ self.class.openapi_types.each_pair do |key, type|
158
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
159
+ self.send("#{key}=", nil)
160
+ elsif type =~ /\AArray<(.*)>/i
161
+ # check to ensure the input is an array given that the attribute
162
+ # is documented as an array but the input is not
163
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
164
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
165
+ end
166
+ elsif !attributes[self.class.attribute_map[key]].nil?
167
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
168
+ end
169
+ end
170
+
171
+ self
172
+ end
173
+
174
+ # Deserializes the data based on type
175
+ # @param string type Data type
176
+ # @param string value Value to be deserialized
177
+ # @return [Object] Deserialized data
178
+ def _deserialize(type, value)
179
+ case type.to_sym
180
+ when :Time
181
+ Time.parse(value)
182
+ when :Date
183
+ Date.parse(value)
184
+ when :String
185
+ value.to_s
186
+ when :Integer
187
+ value.to_i
188
+ when :Float
189
+ value.to_f
190
+ when :Boolean
191
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
192
+ true
193
+ else
194
+ false
195
+ end
196
+ when :Object
197
+ # generic object (usually a Hash), return directly
198
+ value
199
+ when /\AArray<(?<inner_type>.+)>\z/
200
+ inner_type = Regexp.last_match[:inner_type]
201
+ value.map { |v| _deserialize(inner_type, v) }
202
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
203
+ k_type = Regexp.last_match[:k_type]
204
+ v_type = Regexp.last_match[:v_type]
205
+ {}.tap do |hash|
206
+ value.each do |k, v|
207
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
208
+ end
209
+ end
210
+ else # model
211
+ # models (e.g. Pet) or oneOf
212
+ klass = AutosdeOpenapiClient.const_get(type)
213
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
214
+ end
215
+ end
216
+
217
+ # Returns the string representation of the object
218
+ # @return [String] String presentation of the object
219
+ def to_s
220
+ to_hash.to_s
221
+ end
222
+
223
+ # to_body is an alias to to_hash (backward compatibility)
224
+ # @return [Hash] Returns the object in the form of hash
225
+ def to_body
226
+ to_hash
227
+ end
228
+
229
+ # Returns the object in the form of hash
230
+ # @return [Hash] Returns the object in the form of hash
231
+ def to_hash
232
+ hash = {}
233
+ self.class.attribute_map.each_pair do |attr, param|
234
+ value = self.send(attr)
235
+ if value.nil?
236
+ is_nullable = self.class.openapi_nullable.include?(attr)
237
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
238
+ end
239
+
240
+ hash[param] = _to_hash(value)
241
+ end
242
+ hash
243
+ end
244
+
245
+ # Outputs non-array value in the form of hash
246
+ # For object, use to_hash. Otherwise, just return the value
247
+ # @param [Object] value Any valid value
248
+ # @return [Hash] Returns the value in the form of hash
249
+ def _to_hash(value)
250
+ if value.is_a?(Array)
251
+ value.compact.map { |v| _to_hash(v) }
252
+ elsif value.is_a?(Hash)
253
+ {}.tap do |hash|
254
+ value.each { |k, v| hash[k] = _to_hash(v) }
255
+ end
256
+ elsif value.respond_to? :to_hash
257
+ value.to_hash
258
+ else
259
+ value
260
+ end
261
+ end
262
+
263
+ end
264
+
265
+ end
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Site Manager API
5
5
 
6
- The version of the OpenAPI document: 1.0.43
6
+ The version of the OpenAPI document: 1.0.47
7
7
  Contact: autosde@il.ibm.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.0.0
@@ -11,5 +11,5 @@ OpenAPI Generator version: 5.0.0
11
11
  =end
12
12
 
13
13
  module AutosdeOpenapiClient
14
- VERSION = '1.0.43'
14
+ VERSION = '1.0.47'
15
15
  end
@@ -0,0 +1,74 @@
1
+ =begin
2
+ #Site Manager API
3
+
4
+ #Site Manager API
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ Contact: autosde@il.ibm.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.0.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for AutosdeOpenapiClient::HostClusterApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'HostClusterApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = AutosdeOpenapiClient::HostClusterApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of HostClusterApi' do
30
+ it 'should create an instance of HostClusterApi' do
31
+ expect(@api_instance).to be_instance_of(AutosdeOpenapiClient::HostClusterApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for host_clusters_get
36
+ # @param [Hash] opts the optional parameters
37
+ # @return [Array<HostCluster>]
38
+ describe 'host_clusters_get test' do
39
+ it 'should work' do
40
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
41
+ end
42
+ end
43
+
44
+ # unit tests for host_clusters_pk_delete
45
+ # @param pk
46
+ # @param [Hash] opts the optional parameters
47
+ # @return [Array<HostCluster>]
48
+ describe 'host_clusters_pk_delete test' do
49
+ it 'should work' do
50
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
51
+ end
52
+ end
53
+
54
+ # unit tests for host_clusters_pk_get
55
+ # @param pk
56
+ # @param [Hash] opts the optional parameters
57
+ # @return [Array<HostCluster>]
58
+ describe 'host_clusters_pk_get test' do
59
+ it 'should work' do
60
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
61
+ end
62
+ end
63
+
64
+ # unit tests for host_clusters_post
65
+ # @param host_cluster_create
66
+ # @param [Hash] opts the optional parameters
67
+ # @return [HostCluster]
68
+ describe 'host_clusters_post test' do
69
+ it 'should work' do
70
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
71
+ end
72
+ end
73
+
74
+ end
@@ -63,7 +63,7 @@ describe 'StorageSystemApi' do
63
63
 
64
64
  # unit tests for storage_systems_pk_put
65
65
  # @param pk
66
- # @param storage_system
66
+ # @param storage_system_update
67
67
  # @param [Hash] opts the optional parameters
68
68
  # @return [StorageSystem]
69
69
  describe 'storage_systems_pk_put test' do
@@ -0,0 +1,64 @@
1
+ =begin
2
+ #Site Manager API
3
+
4
+ #Site Manager API
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ Contact: autosde@il.ibm.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.0.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for AutosdeOpenapiClient::HostClusterCreate
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe AutosdeOpenapiClient::HostClusterCreate do
21
+ let(:instance) { AutosdeOpenapiClient::HostClusterCreate.new }
22
+
23
+ describe 'test an instance of HostClusterCreate' do
24
+ it 'should create an instance of HostClusterCreate' do
25
+ expect(instance).to be_instance_of(AutosdeOpenapiClient::HostClusterCreate)
26
+ end
27
+ end
28
+ describe 'test attribute "name"' do
29
+ it 'should work' do
30
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
31
+ end
32
+ end
33
+
34
+ describe 'test attribute "owner_id"' do
35
+ it 'should work' do
36
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
37
+ end
38
+ end
39
+
40
+ describe 'test attribute "owner_name"' do
41
+ it 'should work' do
42
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
43
+ end
44
+ end
45
+
46
+ describe 'test attribute "protocol"' do
47
+ it 'should work' do
48
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
49
+ end
50
+ end
51
+
52
+ describe 'test attribute "status"' do
53
+ it 'should work' do
54
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
55
+ end
56
+ end
57
+
58
+ describe 'test attribute "storage_system"' do
59
+ it 'should work' do
60
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
61
+ end
62
+ end
63
+
64
+ end
@@ -0,0 +1,80 @@
1
+ =begin
2
+ #Site Manager API
3
+
4
+ #Site Manager API
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ Contact: autosde@il.ibm.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.0.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for AutosdeOpenapiClient::HostCluster
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe AutosdeOpenapiClient::HostCluster do
21
+ let(:instance) { AutosdeOpenapiClient::HostCluster.new }
22
+
23
+ describe 'test an instance of HostCluster' do
24
+ it 'should create an instance of HostCluster' do
25
+ expect(instance).to be_instance_of(AutosdeOpenapiClient::HostCluster)
26
+ end
27
+ end
28
+ describe 'test attribute "component_state"' do
29
+ it 'should work' do
30
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
31
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["PENDING_CREATION", "CREATED", "DELETED", "PENDING_DELETION", "MODIFICATION", "PENDING_MODIFICATION"])
32
+ # validator.allowable_values.each do |value|
33
+ # expect { instance.component_state = value }.not_to raise_error
34
+ # end
35
+ end
36
+ end
37
+
38
+ describe 'test attribute "name"' do
39
+ it 'should work' do
40
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
41
+ end
42
+ end
43
+
44
+ describe 'test attribute "owner_id"' do
45
+ it 'should work' do
46
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
47
+ end
48
+ end
49
+
50
+ describe 'test attribute "owner_name"' do
51
+ it 'should work' do
52
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
53
+ end
54
+ end
55
+
56
+ describe 'test attribute "protocol"' do
57
+ it 'should work' do
58
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
59
+ end
60
+ end
61
+
62
+ describe 'test attribute "status"' do
63
+ it 'should work' do
64
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
65
+ end
66
+ end
67
+
68
+ describe 'test attribute "storage_system"' do
69
+ it 'should work' do
70
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
71
+ end
72
+ end
73
+
74
+ describe 'test attribute "uuid"' do
75
+ it 'should work' do
76
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
77
+ end
78
+ end
79
+
80
+ end