autosde_openapi_client 1.1.31 → 1.1.32

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 (38) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +0 -8
  3. data/docs/Event.md +0 -4
  4. data/docs/EventApi.md +16 -16
  5. data/docs/Job.md +0 -2
  6. data/docs/JobApi.md +0 -136
  7. data/docs/JobCreate.md +2 -2
  8. data/docs/StorageSystemCreate.md +0 -2
  9. data/lib/autosde_openapi_client/api/event_api.rb +12 -12
  10. data/lib/autosde_openapi_client/api/job_api.rb +0 -118
  11. data/lib/autosde_openapi_client/models/event.rb +2 -22
  12. data/lib/autosde_openapi_client/models/job.rb +1 -11
  13. data/lib/autosde_openapi_client/models/job_create.rb +8 -8
  14. data/lib/autosde_openapi_client/models/storage_system_create.rb +1 -13
  15. data/lib/autosde_openapi_client/version.rb +2 -2
  16. data/lib/autosde_openapi_client.rb +0 -5
  17. data/spec/api/event_api_spec.rb +4 -4
  18. data/spec/api/job_api_spec.rb +0 -20
  19. data/spec/models/event_spec.rb +0 -12
  20. data/spec/models/job_create_spec.rb +1 -1
  21. data/spec/models/job_spec.rb +0 -6
  22. data/spec/models/storage_system_create_spec.rb +0 -6
  23. metadata +73 -93
  24. data/docs/CeleryConfig.md +0 -20
  25. data/docs/CeleryConfigApi.md +0 -140
  26. data/docs/EventResponse.md +0 -36
  27. data/docs/RefreshSystem.md +0 -18
  28. data/docs/RefreshSystemApi.md +0 -75
  29. data/lib/autosde_openapi_client/api/celery_config_api.rb +0 -136
  30. data/lib/autosde_openapi_client/api/refresh_system_api.rb +0 -83
  31. data/lib/autosde_openapi_client/models/celery_config.rb +0 -230
  32. data/lib/autosde_openapi_client/models/event_response.rb +0 -310
  33. data/lib/autosde_openapi_client/models/refresh_system.rb +0 -220
  34. data/spec/api/celery_config_api_spec.rb +0 -54
  35. data/spec/api/refresh_system_api_spec.rb +0 -45
  36. data/spec/models/celery_config_spec.rb +0 -40
  37. data/spec/models/event_response_spec.rb +0 -88
  38. data/spec/models/refresh_system_spec.rb +0 -34
@@ -1,310 +0,0 @@
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 EventResponse
19
- # created_at
20
- attr_accessor :created_at
21
-
22
- # description
23
- attr_accessor :description
24
-
25
- # error_code
26
- attr_accessor :error_code
27
-
28
- # event_id
29
- attr_accessor :event_id
30
-
31
- # event_type
32
- attr_accessor :event_type
33
-
34
- # fixed
35
- attr_accessor :fixed
36
-
37
- # last_timestamp
38
- attr_accessor :last_timestamp
39
-
40
- # refresh_interval
41
- attr_accessor :refresh_interval
42
-
43
- # !!uuid of storage_system
44
- attr_accessor :storage_system
45
-
46
- # uuid
47
- attr_accessor :uuid
48
-
49
- # Attribute mapping from ruby-style variable name to JSON key.
50
- def self.attribute_map
51
- {
52
- :'created_at' => :'created_at',
53
- :'description' => :'description',
54
- :'error_code' => :'error_code',
55
- :'event_id' => :'event_id',
56
- :'event_type' => :'event_type',
57
- :'fixed' => :'fixed',
58
- :'last_timestamp' => :'last_timestamp',
59
- :'refresh_interval' => :'refresh_interval',
60
- :'storage_system' => :'storage_system',
61
- :'uuid' => :'uuid'
62
- }
63
- end
64
-
65
- # Returns all the JSON keys this model knows about
66
- def self.acceptable_attributes
67
- attribute_map.values
68
- end
69
-
70
- # Attribute type mapping.
71
- def self.openapi_types
72
- {
73
- :'created_at' => :'Time',
74
- :'description' => :'String',
75
- :'error_code' => :'String',
76
- :'event_id' => :'Integer',
77
- :'event_type' => :'String',
78
- :'fixed' => :'String',
79
- :'last_timestamp' => :'Time',
80
- :'refresh_interval' => :'Integer',
81
- :'storage_system' => :'String',
82
- :'uuid' => :'String'
83
- }
84
- end
85
-
86
- # List of attributes with nullable: true
87
- def self.openapi_nullable
88
- Set.new([
89
- ])
90
- end
91
-
92
- # Initializes the object
93
- # @param [Hash] attributes Model attributes in the form of hash
94
- def initialize(attributes = {})
95
- if (!attributes.is_a?(Hash))
96
- fail ArgumentError, "The input argument (attributes) must be a hash in `AutosdeOpenapiClient::EventResponse` initialize method"
97
- end
98
-
99
- # check to see if the attribute exists and convert string to symbol for hash key
100
- attributes = attributes.each_with_object({}) { |(k, v), h|
101
- if (!self.class.attribute_map.key?(k.to_sym))
102
- fail ArgumentError, "`#{k}` is not a valid attribute in `AutosdeOpenapiClient::EventResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
103
- end
104
- h[k.to_sym] = v
105
- }
106
-
107
- if attributes.key?(:'created_at')
108
- self.created_at = attributes[:'created_at']
109
- end
110
-
111
- if attributes.key?(:'description')
112
- self.description = attributes[:'description']
113
- end
114
-
115
- if attributes.key?(:'error_code')
116
- self.error_code = attributes[:'error_code']
117
- end
118
-
119
- if attributes.key?(:'event_id')
120
- self.event_id = attributes[:'event_id']
121
- end
122
-
123
- if attributes.key?(:'event_type')
124
- self.event_type = attributes[:'event_type']
125
- end
126
-
127
- if attributes.key?(:'fixed')
128
- self.fixed = attributes[:'fixed']
129
- end
130
-
131
- if attributes.key?(:'last_timestamp')
132
- self.last_timestamp = attributes[:'last_timestamp']
133
- end
134
-
135
- if attributes.key?(:'refresh_interval')
136
- self.refresh_interval = attributes[:'refresh_interval']
137
- end
138
-
139
- if attributes.key?(:'storage_system')
140
- self.storage_system = attributes[:'storage_system']
141
- end
142
-
143
- if attributes.key?(:'uuid')
144
- self.uuid = attributes[:'uuid']
145
- end
146
- end
147
-
148
- # Show invalid properties with the reasons. Usually used together with valid?
149
- # @return Array for valid properties with the reasons
150
- def list_invalid_properties
151
- invalid_properties = Array.new
152
- invalid_properties
153
- end
154
-
155
- # Check to see if the all the properties in the model are valid
156
- # @return true if the model is valid
157
- def valid?
158
- true
159
- end
160
-
161
- # Checks equality by comparing each attribute.
162
- # @param [Object] Object to be compared
163
- def ==(o)
164
- return true if self.equal?(o)
165
- self.class == o.class &&
166
- created_at == o.created_at &&
167
- description == o.description &&
168
- error_code == o.error_code &&
169
- event_id == o.event_id &&
170
- event_type == o.event_type &&
171
- fixed == o.fixed &&
172
- last_timestamp == o.last_timestamp &&
173
- refresh_interval == o.refresh_interval &&
174
- storage_system == o.storage_system &&
175
- uuid == o.uuid
176
- end
177
-
178
- # @see the `==` method
179
- # @param [Object] Object to be compared
180
- def eql?(o)
181
- self == o
182
- end
183
-
184
- # Calculates hash code according to all attributes.
185
- # @return [Integer] Hash code
186
- def hash
187
- [created_at, description, error_code, event_id, event_type, fixed, last_timestamp, refresh_interval, storage_system, uuid].hash
188
- end
189
-
190
- # Builds the object from hash
191
- # @param [Hash] attributes Model attributes in the form of hash
192
- # @return [Object] Returns the model itself
193
- def self.build_from_hash(attributes)
194
- new.build_from_hash(attributes)
195
- end
196
-
197
- # Builds the object from hash
198
- # @param [Hash] attributes Model attributes in the form of hash
199
- # @return [Object] Returns the model itself
200
- def build_from_hash(attributes)
201
- return nil unless attributes.is_a?(Hash)
202
- self.class.openapi_types.each_pair do |key, type|
203
- if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
204
- self.send("#{key}=", nil)
205
- elsif type =~ /\AArray<(.*)>/i
206
- # check to ensure the input is an array given that the attribute
207
- # is documented as an array but the input is not
208
- if attributes[self.class.attribute_map[key]].is_a?(Array)
209
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
210
- end
211
- elsif !attributes[self.class.attribute_map[key]].nil?
212
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
213
- end
214
- end
215
-
216
- self
217
- end
218
-
219
- # Deserializes the data based on type
220
- # @param string type Data type
221
- # @param string value Value to be deserialized
222
- # @return [Object] Deserialized data
223
- def _deserialize(type, value)
224
- case type.to_sym
225
- when :Time
226
- Time.parse(value)
227
- when :Date
228
- Date.parse(value)
229
- when :String
230
- value.to_s
231
- when :Integer
232
- value.to_i
233
- when :Float
234
- value.to_f
235
- when :Boolean
236
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
237
- true
238
- else
239
- false
240
- end
241
- when :Object
242
- # generic object (usually a Hash), return directly
243
- value
244
- when /\AArray<(?<inner_type>.+)>\z/
245
- inner_type = Regexp.last_match[:inner_type]
246
- value.map { |v| _deserialize(inner_type, v) }
247
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
248
- k_type = Regexp.last_match[:k_type]
249
- v_type = Regexp.last_match[:v_type]
250
- {}.tap do |hash|
251
- value.each do |k, v|
252
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
253
- end
254
- end
255
- else # model
256
- # models (e.g. Pet) or oneOf
257
- klass = AutosdeOpenapiClient.const_get(type)
258
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
259
- end
260
- end
261
-
262
- # Returns the string representation of the object
263
- # @return [String] String presentation of the object
264
- def to_s
265
- to_hash.to_s
266
- end
267
-
268
- # to_body is an alias to to_hash (backward compatibility)
269
- # @return [Hash] Returns the object in the form of hash
270
- def to_body
271
- to_hash
272
- end
273
-
274
- # Returns the object in the form of hash
275
- # @return [Hash] Returns the object in the form of hash
276
- def to_hash
277
- hash = {}
278
- self.class.attribute_map.each_pair do |attr, param|
279
- value = self.send(attr)
280
- if value.nil?
281
- is_nullable = self.class.openapi_nullable.include?(attr)
282
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
283
- end
284
-
285
- hash[param] = _to_hash(value)
286
- end
287
- hash
288
- end
289
-
290
- # Outputs non-array value in the form of hash
291
- # For object, use to_hash. Otherwise, just return the value
292
- # @param [Object] value Any valid value
293
- # @return [Hash] Returns the value in the form of hash
294
- def _to_hash(value)
295
- if value.is_a?(Array)
296
- value.compact.map { |v| _to_hash(v) }
297
- elsif value.is_a?(Hash)
298
- {}.tap do |hash|
299
- value.each { |k, v| hash[k] = _to_hash(v) }
300
- end
301
- elsif value.respond_to? :to_hash
302
- value.to_hash
303
- else
304
- value
305
- end
306
- end
307
-
308
- end
309
-
310
- end
@@ -1,220 +0,0 @@
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
- # RefreshSystem object represents refreshing of the storage system.
18
- class RefreshSystem
19
- # uuid
20
- attr_accessor :uuid
21
-
22
- # Attribute mapping from ruby-style variable name to JSON key.
23
- def self.attribute_map
24
- {
25
- :'uuid' => :'uuid'
26
- }
27
- end
28
-
29
- # Returns all the JSON keys this model knows about
30
- def self.acceptable_attributes
31
- attribute_map.values
32
- end
33
-
34
- # Attribute type mapping.
35
- def self.openapi_types
36
- {
37
- :'uuid' => :'String'
38
- }
39
- end
40
-
41
- # List of attributes with nullable: true
42
- def self.openapi_nullable
43
- Set.new([
44
- ])
45
- end
46
-
47
- # Initializes the object
48
- # @param [Hash] attributes Model attributes in the form of hash
49
- def initialize(attributes = {})
50
- if (!attributes.is_a?(Hash))
51
- fail ArgumentError, "The input argument (attributes) must be a hash in `AutosdeOpenapiClient::RefreshSystem` initialize method"
52
- end
53
-
54
- # check to see if the attribute exists and convert string to symbol for hash key
55
- attributes = attributes.each_with_object({}) { |(k, v), h|
56
- if (!self.class.attribute_map.key?(k.to_sym))
57
- fail ArgumentError, "`#{k}` is not a valid attribute in `AutosdeOpenapiClient::RefreshSystem`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
58
- end
59
- h[k.to_sym] = v
60
- }
61
-
62
- if attributes.key?(:'uuid')
63
- self.uuid = attributes[:'uuid']
64
- end
65
- end
66
-
67
- # Show invalid properties with the reasons. Usually used together with valid?
68
- # @return Array for valid properties with the reasons
69
- def list_invalid_properties
70
- invalid_properties = Array.new
71
- invalid_properties
72
- end
73
-
74
- # Check to see if the all the properties in the model are valid
75
- # @return true if the model is valid
76
- def valid?
77
- true
78
- end
79
-
80
- # Checks equality by comparing each attribute.
81
- # @param [Object] Object to be compared
82
- def ==(o)
83
- return true if self.equal?(o)
84
- self.class == o.class &&
85
- uuid == o.uuid
86
- end
87
-
88
- # @see the `==` method
89
- # @param [Object] Object to be compared
90
- def eql?(o)
91
- self == o
92
- end
93
-
94
- # Calculates hash code according to all attributes.
95
- # @return [Integer] Hash code
96
- def hash
97
- [uuid].hash
98
- end
99
-
100
- # Builds the object from hash
101
- # @param [Hash] attributes Model attributes in the form of hash
102
- # @return [Object] Returns the model itself
103
- def self.build_from_hash(attributes)
104
- new.build_from_hash(attributes)
105
- end
106
-
107
- # Builds the object from hash
108
- # @param [Hash] attributes Model attributes in the form of hash
109
- # @return [Object] Returns the model itself
110
- def build_from_hash(attributes)
111
- return nil unless attributes.is_a?(Hash)
112
- self.class.openapi_types.each_pair do |key, type|
113
- if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
114
- self.send("#{key}=", nil)
115
- elsif type =~ /\AArray<(.*)>/i
116
- # check to ensure the input is an array given that the attribute
117
- # is documented as an array but the input is not
118
- if attributes[self.class.attribute_map[key]].is_a?(Array)
119
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
120
- end
121
- elsif !attributes[self.class.attribute_map[key]].nil?
122
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
123
- end
124
- end
125
-
126
- self
127
- end
128
-
129
- # Deserializes the data based on type
130
- # @param string type Data type
131
- # @param string value Value to be deserialized
132
- # @return [Object] Deserialized data
133
- def _deserialize(type, value)
134
- case type.to_sym
135
- when :Time
136
- Time.parse(value)
137
- when :Date
138
- Date.parse(value)
139
- when :String
140
- value.to_s
141
- when :Integer
142
- value.to_i
143
- when :Float
144
- value.to_f
145
- when :Boolean
146
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
147
- true
148
- else
149
- false
150
- end
151
- when :Object
152
- # generic object (usually a Hash), return directly
153
- value
154
- when /\AArray<(?<inner_type>.+)>\z/
155
- inner_type = Regexp.last_match[:inner_type]
156
- value.map { |v| _deserialize(inner_type, v) }
157
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
158
- k_type = Regexp.last_match[:k_type]
159
- v_type = Regexp.last_match[:v_type]
160
- {}.tap do |hash|
161
- value.each do |k, v|
162
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
163
- end
164
- end
165
- else # model
166
- # models (e.g. Pet) or oneOf
167
- klass = AutosdeOpenapiClient.const_get(type)
168
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
169
- end
170
- end
171
-
172
- # Returns the string representation of the object
173
- # @return [String] String presentation of the object
174
- def to_s
175
- to_hash.to_s
176
- end
177
-
178
- # to_body is an alias to to_hash (backward compatibility)
179
- # @return [Hash] Returns the object in the form of hash
180
- def to_body
181
- to_hash
182
- end
183
-
184
- # Returns the object in the form of hash
185
- # @return [Hash] Returns the object in the form of hash
186
- def to_hash
187
- hash = {}
188
- self.class.attribute_map.each_pair do |attr, param|
189
- value = self.send(attr)
190
- if value.nil?
191
- is_nullable = self.class.openapi_nullable.include?(attr)
192
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
193
- end
194
-
195
- hash[param] = _to_hash(value)
196
- end
197
- hash
198
- end
199
-
200
- # Outputs non-array value in the form of hash
201
- # For object, use to_hash. Otherwise, just return the value
202
- # @param [Object] value Any valid value
203
- # @return [Hash] Returns the value in the form of hash
204
- def _to_hash(value)
205
- if value.is_a?(Array)
206
- value.compact.map { |v| _to_hash(v) }
207
- elsif value.is_a?(Hash)
208
- {}.tap do |hash|
209
- value.each { |k, v| hash[k] = _to_hash(v) }
210
- end
211
- elsif value.respond_to? :to_hash
212
- value.to_hash
213
- else
214
- value
215
- end
216
- end
217
-
218
- end
219
-
220
- end
@@ -1,54 +0,0 @@
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::CeleryConfigApi
17
- # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
- # Please update as you see appropriate
19
- describe 'CeleryConfigApi' do
20
- before do
21
- # run before each test
22
- @api_instance = AutosdeOpenapiClient::CeleryConfigApi.new
23
- end
24
-
25
- after do
26
- # run after each test
27
- end
28
-
29
- describe 'test an instance of CeleryConfigApi' do
30
- it 'should create an instance of CeleryConfigApi' do
31
- expect(@api_instance).to be_instance_of(AutosdeOpenapiClient::CeleryConfigApi)
32
- end
33
- end
34
-
35
- # unit tests for celery_config_get
36
- # @param [Hash] opts the optional parameters
37
- # @return [Array<CeleryConfig>]
38
- describe 'celery_config_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 celery_config_post
45
- # @param celery_config
46
- # @param [Hash] opts the optional parameters
47
- # @return [CeleryConfig]
48
- describe 'celery_config_post 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
- end
@@ -1,45 +0,0 @@
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::RefreshSystemApi
17
- # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
- # Please update as you see appropriate
19
- describe 'RefreshSystemApi' do
20
- before do
21
- # run before each test
22
- @api_instance = AutosdeOpenapiClient::RefreshSystemApi.new
23
- end
24
-
25
- after do
26
- # run after each test
27
- end
28
-
29
- describe 'test an instance of RefreshSystemApi' do
30
- it 'should create an instance of RefreshSystemApi' do
31
- expect(@api_instance).to be_instance_of(AutosdeOpenapiClient::RefreshSystemApi)
32
- end
33
- end
34
-
35
- # unit tests for refresh_system_post
36
- # @param refresh_system
37
- # @param [Hash] opts the optional parameters
38
- # @return [RefreshSystem]
39
- describe 'refresh_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
@@ -1,40 +0,0 @@
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::CeleryConfig
18
- # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
- # Please update as you see appropriate
20
- describe AutosdeOpenapiClient::CeleryConfig do
21
- let(:instance) { AutosdeOpenapiClient::CeleryConfig.new }
22
-
23
- describe 'test an instance of CeleryConfig' do
24
- it 'should create an instance of CeleryConfig' do
25
- expect(instance).to be_instance_of(AutosdeOpenapiClient::CeleryConfig)
26
- end
27
- end
28
- describe 'test attribute "celery_beat_enabled"' 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 "interval_sec"' 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
- end