eilam_test 1.1.12 → 1.1.13

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,260 @@
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 EilamTest
17
+ # ValidateSystem object represents the validation of the storage system credentials.
18
+ class ValidateSystem
19
+ # management_ip
20
+ attr_accessor :management_ip
21
+
22
+ # name
23
+ attr_accessor :name
24
+
25
+ # password
26
+ attr_accessor :password
27
+
28
+ # system_type
29
+ attr_accessor :system_type
30
+
31
+ # user
32
+ attr_accessor :user
33
+
34
+ # Attribute mapping from ruby-style variable name to JSON key.
35
+ def self.attribute_map
36
+ {
37
+ :'management_ip' => :'management_ip',
38
+ :'name' => :'name',
39
+ :'password' => :'password',
40
+ :'system_type' => :'system_type',
41
+ :'user' => :'user'
42
+ }
43
+ end
44
+
45
+ # Returns all the JSON keys this model knows about
46
+ def self.acceptable_attributes
47
+ attribute_map.values
48
+ end
49
+
50
+ # Attribute type mapping.
51
+ def self.openapi_types
52
+ {
53
+ :'management_ip' => :'String',
54
+ :'name' => :'String',
55
+ :'password' => :'String',
56
+ :'system_type' => :'String',
57
+ :'user' => :'String'
58
+ }
59
+ end
60
+
61
+ # List of attributes with nullable: true
62
+ def self.openapi_nullable
63
+ Set.new([
64
+ ])
65
+ end
66
+
67
+ # Initializes the object
68
+ # @param [Hash] attributes Model attributes in the form of hash
69
+ def initialize(attributes = {})
70
+ if (!attributes.is_a?(Hash))
71
+ fail ArgumentError, "The input argument (attributes) must be a hash in `EilamTest::ValidateSystem` initialize method"
72
+ end
73
+
74
+ # check to see if the attribute exists and convert string to symbol for hash key
75
+ attributes = attributes.each_with_object({}) { |(k, v), h|
76
+ if (!self.class.attribute_map.key?(k.to_sym))
77
+ fail ArgumentError, "`#{k}` is not a valid attribute in `EilamTest::ValidateSystem`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
78
+ end
79
+ h[k.to_sym] = v
80
+ }
81
+
82
+ if attributes.key?(:'management_ip')
83
+ self.management_ip = attributes[:'management_ip']
84
+ end
85
+
86
+ if attributes.key?(:'name')
87
+ self.name = attributes[:'name']
88
+ end
89
+
90
+ if attributes.key?(:'password')
91
+ self.password = attributes[:'password']
92
+ end
93
+
94
+ if attributes.key?(:'system_type')
95
+ self.system_type = attributes[:'system_type']
96
+ end
97
+
98
+ if attributes.key?(:'user')
99
+ self.user = attributes[:'user']
100
+ end
101
+ end
102
+
103
+ # Show invalid properties with the reasons. Usually used together with valid?
104
+ # @return Array for valid properties with the reasons
105
+ def list_invalid_properties
106
+ invalid_properties = Array.new
107
+ invalid_properties
108
+ end
109
+
110
+ # Check to see if the all the properties in the model are valid
111
+ # @return true if the model is valid
112
+ def valid?
113
+ true
114
+ end
115
+
116
+ # Checks equality by comparing each attribute.
117
+ # @param [Object] Object to be compared
118
+ def ==(o)
119
+ return true if self.equal?(o)
120
+ self.class == o.class &&
121
+ management_ip == o.management_ip &&
122
+ name == o.name &&
123
+ password == o.password &&
124
+ system_type == o.system_type &&
125
+ user == o.user
126
+ end
127
+
128
+ # @see the `==` method
129
+ # @param [Object] Object to be compared
130
+ def eql?(o)
131
+ self == o
132
+ end
133
+
134
+ # Calculates hash code according to all attributes.
135
+ # @return [Integer] Hash code
136
+ def hash
137
+ [management_ip, name, password, system_type, user].hash
138
+ end
139
+
140
+ # Builds the object from hash
141
+ # @param [Hash] attributes Model attributes in the form of hash
142
+ # @return [Object] Returns the model itself
143
+ def self.build_from_hash(attributes)
144
+ new.build_from_hash(attributes)
145
+ end
146
+
147
+ # Builds the object from hash
148
+ # @param [Hash] attributes Model attributes in the form of hash
149
+ # @return [Object] Returns the model itself
150
+ def build_from_hash(attributes)
151
+ return nil unless attributes.is_a?(Hash)
152
+ self.class.openapi_types.each_pair do |key, type|
153
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
154
+ self.send("#{key}=", nil)
155
+ elsif type =~ /\AArray<(.*)>/i
156
+ # check to ensure the input is an array given that the attribute
157
+ # is documented as an array but the input is not
158
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
159
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
160
+ end
161
+ elsif !attributes[self.class.attribute_map[key]].nil?
162
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
163
+ end
164
+ end
165
+
166
+ self
167
+ end
168
+
169
+ # Deserializes the data based on type
170
+ # @param string type Data type
171
+ # @param string value Value to be deserialized
172
+ # @return [Object] Deserialized data
173
+ def _deserialize(type, value)
174
+ case type.to_sym
175
+ when :Time
176
+ Time.parse(value)
177
+ when :Date
178
+ Date.parse(value)
179
+ when :String
180
+ value.to_s
181
+ when :Integer
182
+ value.to_i
183
+ when :Float
184
+ value.to_f
185
+ when :Boolean
186
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
187
+ true
188
+ else
189
+ false
190
+ end
191
+ when :Object
192
+ # generic object (usually a Hash), return directly
193
+ value
194
+ when /\AArray<(?<inner_type>.+)>\z/
195
+ inner_type = Regexp.last_match[:inner_type]
196
+ value.map { |v| _deserialize(inner_type, v) }
197
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
198
+ k_type = Regexp.last_match[:k_type]
199
+ v_type = Regexp.last_match[:v_type]
200
+ {}.tap do |hash|
201
+ value.each do |k, v|
202
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
203
+ end
204
+ end
205
+ else # model
206
+ # models (e.g. Pet) or oneOf
207
+ klass = EilamTest.const_get(type)
208
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
209
+ end
210
+ end
211
+
212
+ # Returns the string representation of the object
213
+ # @return [String] String presentation of the object
214
+ def to_s
215
+ to_hash.to_s
216
+ end
217
+
218
+ # to_body is an alias to to_hash (backward compatibility)
219
+ # @return [Hash] Returns the object in the form of hash
220
+ def to_body
221
+ to_hash
222
+ end
223
+
224
+ # Returns the object in the form of hash
225
+ # @return [Hash] Returns the object in the form of hash
226
+ def to_hash
227
+ hash = {}
228
+ self.class.attribute_map.each_pair do |attr, param|
229
+ value = self.send(attr)
230
+ if value.nil?
231
+ is_nullable = self.class.openapi_nullable.include?(attr)
232
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
233
+ end
234
+
235
+ hash[param] = _to_hash(value)
236
+ end
237
+ hash
238
+ end
239
+
240
+ # Outputs non-array value in the form of hash
241
+ # For object, use to_hash. Otherwise, just return the value
242
+ # @param [Object] value Any valid value
243
+ # @return [Hash] Returns the value in the form of hash
244
+ def _to_hash(value)
245
+ if value.is_a?(Array)
246
+ value.compact.map { |v| _to_hash(v) }
247
+ elsif value.is_a?(Hash)
248
+ {}.tap do |hash|
249
+ value.each { |k, v| hash[k] = _to_hash(v) }
250
+ end
251
+ elsif value.respond_to? :to_hash
252
+ value.to_hash
253
+ else
254
+ value
255
+ end
256
+ end
257
+
258
+ end
259
+
260
+ end
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Site Manager API
5
5
 
6
- The version of the OpenAPI document: 1.1.12
6
+ The version of the OpenAPI document: 1.1.13
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 EilamTest
14
- VERSION = '1.1.12'
14
+ VERSION = '1.1.13'
15
15
  end
data/lib/eilam_test.rb CHANGED
@@ -29,6 +29,7 @@ require 'eilam_test/models/auto_sde_project'
29
29
  require 'eilam_test/models/auto_sde_role'
30
30
  require 'eilam_test/models/capability_translation'
31
31
  require 'eilam_test/models/capability_translation_create'
32
+ require 'eilam_test/models/event'
32
33
  require 'eilam_test/models/host'
33
34
  require 'eilam_test/models/host_cluster'
34
35
  require 'eilam_test/models/host_cluster_create'
@@ -67,6 +68,10 @@ require 'eilam_test/models/storage_system_create'
67
68
  require 'eilam_test/models/storage_system_update'
68
69
  require 'eilam_test/models/system_type'
69
70
  require 'eilam_test/models/system_type_create'
71
+ require 'eilam_test/models/user'
72
+ require 'eilam_test/models/user_create'
73
+ require 'eilam_test/models/user_update'
74
+ require 'eilam_test/models/validate_system'
70
75
  require 'eilam_test/models/volume'
71
76
  require 'eilam_test/models/volume_create'
72
77
  require 'eilam_test/models/volume_response'
@@ -82,6 +87,7 @@ require 'eilam_test/api/authentication_api'
82
87
  require 'eilam_test/api/auto_sde_project_api'
83
88
  require 'eilam_test/api/auto_sde_role_api'
84
89
  require 'eilam_test/api/capability_translation_api'
90
+ require 'eilam_test/api/event_api'
85
91
  require 'eilam_test/api/host_api'
86
92
  require 'eilam_test/api/host_cluster_api'
87
93
  require 'eilam_test/api/host_cluster_membership_api'
@@ -100,6 +106,8 @@ require 'eilam_test/api/storage_host_wwpn_candidates_api'
100
106
  require 'eilam_test/api/storage_resource_api'
101
107
  require 'eilam_test/api/storage_system_api'
102
108
  require 'eilam_test/api/system_type_api'
109
+ require 'eilam_test/api/user_api'
110
+ require 'eilam_test/api/validate_system_api'
103
111
  require 'eilam_test/api/volume_api'
104
112
  require 'eilam_test/api/volume_safe_delete_api'
105
113
 
@@ -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 EilamTest::EventApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'EventApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = EilamTest::EventApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of EventApi' do
30
+ it 'should create an instance of EventApi' do
31
+ expect(@api_instance).to be_instance_of(EilamTest::EventApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for events_get
36
+ # @param [Hash] opts the optional parameters
37
+ # @return [Array<Event>]
38
+ describe 'events_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 events_pk_delete
45
+ # @param pk
46
+ # @param [Hash] opts the optional parameters
47
+ # @return [Array<Event>]
48
+ describe 'events_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 events_pk_get
55
+ # @param pk
56
+ # @param [Hash] opts the optional parameters
57
+ # @return [Array<Event>]
58
+ describe 'events_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 events_post
65
+ # @param event
66
+ # @param [Hash] opts the optional parameters
67
+ # @return [Event]
68
+ describe 'events_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
@@ -0,0 +1,85 @@
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 EilamTest::UserApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'UserApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = EilamTest::UserApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of UserApi' do
30
+ it 'should create an instance of UserApi' do
31
+ expect(@api_instance).to be_instance_of(EilamTest::UserApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for autosde_users_get
36
+ # @param [Hash] opts the optional parameters
37
+ # @return [Array<UserCreate>]
38
+ describe 'autosde_users_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 autosde_users_pk_delete
45
+ # @param pk
46
+ # @param [Hash] opts the optional parameters
47
+ # @return [Array<User>]
48
+ describe 'autosde_users_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 autosde_users_pk_get
55
+ # @param pk
56
+ # @param [Hash] opts the optional parameters
57
+ # @return [Array<UserCreate>]
58
+ describe 'autosde_users_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 autosde_users_pk_put
65
+ # @param pk
66
+ # @param user_update
67
+ # @param [Hash] opts the optional parameters
68
+ # @return [UserCreate]
69
+ describe 'autosde_users_pk_put test' do
70
+ it 'should work' do
71
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
72
+ end
73
+ end
74
+
75
+ # unit tests for autosde_users_post
76
+ # @param user_create
77
+ # @param [Hash] opts the optional parameters
78
+ # @return [UserCreate]
79
+ describe 'autosde_users_post test' do
80
+ it 'should work' do
81
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
82
+ end
83
+ end
84
+
85
+ end
@@ -0,0 +1,45 @@
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 EilamTest::ValidateSystemApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'ValidateSystemApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = EilamTest::ValidateSystemApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of ValidateSystemApi' do
30
+ it 'should create an instance of ValidateSystemApi' do
31
+ expect(@api_instance).to be_instance_of(EilamTest::ValidateSystemApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for validate_system_post
36
+ # @param storage_system_create
37
+ # @param [Hash] opts the optional parameters
38
+ # @return [ValidateSystem]
39
+ describe 'validate_system_post test' do
40
+ it 'should work' do
41
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
42
+ end
43
+ end
44
+
45
+ end
@@ -0,0 +1,76 @@
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 EilamTest::Event
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe EilamTest::Event do
21
+ let(:instance) { EilamTest::Event.new }
22
+
23
+ describe 'test an instance of Event' do
24
+ it 'should create an instance of Event' do
25
+ expect(instance).to be_instance_of(EilamTest::Event)
26
+ end
27
+ end
28
+ describe 'test attribute "description"' 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 "error_code"' 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 "event_id"' 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 "event_type"' 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 "fixed"' 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 "last_timestamp"' 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
+ describe 'test attribute "storage_system"' do
65
+ it 'should work' do
66
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
67
+ end
68
+ end
69
+
70
+ describe 'test attribute "uuid"' do
71
+ it 'should work' do
72
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
73
+ end
74
+ end
75
+
76
+ end
@@ -38,7 +38,7 @@ describe EilamTest::SystemTypeCreate do
38
38
  describe 'test attribute "name"' do
39
39
  it 'should work' do
40
40
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
41
- # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["a_line", "xiv", "ds8000", "vmax", "netapp", "ds8x00", "FlashSystems/SVC"])
41
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["IBM_FlashSystems", "a_line", "xiv", "ds8000", "vmax", "netapp", "ds8x00"])
42
42
  # validator.allowable_values.each do |value|
43
43
  # expect { instance.name = value }.not_to raise_error
44
44
  # end
@@ -38,7 +38,7 @@ describe EilamTest::SystemType do
38
38
  describe 'test attribute "name"' do
39
39
  it 'should work' do
40
40
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
41
- # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["a_line", "xiv", "ds8000", "vmax", "netapp", "ds8x00", "FlashSystems/SVC"])
41
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["IBM_FlashSystems", "a_line", "xiv", "ds8000", "vmax", "netapp", "ds8x00"])
42
42
  # validator.allowable_values.each do |value|
43
43
  # expect { instance.name = value }.not_to raise_error
44
44
  # end