autosde_openapi_client 2.0.4 → 2.0.6
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/README.md +1 -0
- data/docs/Event.md +2 -0
- data/docs/EventResponse.md +2 -0
- data/docs/RefreshSystem.md +4 -2
- data/docs/ServiceApi.md +12 -12
- data/docs/ServiceResponse.md +38 -0
- data/docs/StorageResourceResponse.md +2 -0
- data/docs/VolumeCreate.md +5 -1
- data/lib/autosde_openapi_client/api/service_api.rb +9 -9
- data/lib/autosde_openapi_client/models/event.rb +11 -1
- data/lib/autosde_openapi_client/models/event_response.rb +11 -1
- data/lib/autosde_openapi_client/models/refresh_system.rb +51 -7
- data/lib/autosde_openapi_client/models/service_response.rb +364 -0
- data/lib/autosde_openapi_client/models/storage_resource_response.rb +11 -1
- data/lib/autosde_openapi_client/models/volume_create.rb +26 -3
- data/lib/autosde_openapi_client/version.rb +2 -2
- data/lib/autosde_openapi_client.rb +1 -0
- data/spec/api/service_api_spec.rb +3 -3
- data/spec/models/event_response_spec.rb +6 -0
- data/spec/models/event_spec.rb +6 -0
- data/spec/models/refresh_system_spec.rb +11 -1
- data/spec/models/service_response_spec.rb +98 -0
- data/spec/models/storage_resource_response_spec.rb +6 -0
- data/spec/models/volume_create_spec.rb +12 -0
- metadata +83 -79
@@ -0,0 +1,364 @@
|
|
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 ServiceResponse
|
19
|
+
attr_accessor :capability_values
|
20
|
+
|
21
|
+
# capability_values_json
|
22
|
+
attr_accessor :capability_values_json
|
23
|
+
|
24
|
+
# component_state
|
25
|
+
attr_accessor :component_state
|
26
|
+
|
27
|
+
# description
|
28
|
+
attr_accessor :description
|
29
|
+
|
30
|
+
# name
|
31
|
+
attr_accessor :name
|
32
|
+
|
33
|
+
# !!uuid of profile
|
34
|
+
attr_accessor :profile
|
35
|
+
|
36
|
+
# !!uuid of project
|
37
|
+
attr_accessor :project
|
38
|
+
|
39
|
+
# !!uuid of provisioning_strategy
|
40
|
+
attr_accessor :provisioning_strategy
|
41
|
+
|
42
|
+
# resource_service
|
43
|
+
attr_accessor :resource_service
|
44
|
+
|
45
|
+
# uuid
|
46
|
+
attr_accessor :uuid
|
47
|
+
|
48
|
+
# The version of the service
|
49
|
+
attr_accessor :version
|
50
|
+
|
51
|
+
class EnumAttributeValidator
|
52
|
+
attr_reader :datatype
|
53
|
+
attr_reader :allowable_values
|
54
|
+
|
55
|
+
def initialize(datatype, allowable_values)
|
56
|
+
@allowable_values = allowable_values.map do |value|
|
57
|
+
case datatype.to_s
|
58
|
+
when /Integer/i
|
59
|
+
value.to_i
|
60
|
+
when /Float/i
|
61
|
+
value.to_f
|
62
|
+
else
|
63
|
+
value
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
def valid?(value)
|
69
|
+
!value || allowable_values.include?(value)
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
74
|
+
def self.attribute_map
|
75
|
+
{
|
76
|
+
:'capability_values' => :'capability_values',
|
77
|
+
:'capability_values_json' => :'capability_values_json',
|
78
|
+
:'component_state' => :'component_state',
|
79
|
+
:'description' => :'description',
|
80
|
+
:'name' => :'name',
|
81
|
+
:'profile' => :'profile',
|
82
|
+
:'project' => :'project',
|
83
|
+
:'provisioning_strategy' => :'provisioning_strategy',
|
84
|
+
:'resource_service' => :'resource_service',
|
85
|
+
:'uuid' => :'uuid',
|
86
|
+
:'version' => :'version'
|
87
|
+
}
|
88
|
+
end
|
89
|
+
|
90
|
+
# Returns all the JSON keys this model knows about
|
91
|
+
def self.acceptable_attributes
|
92
|
+
attribute_map.values
|
93
|
+
end
|
94
|
+
|
95
|
+
# Attribute type mapping.
|
96
|
+
def self.openapi_types
|
97
|
+
{
|
98
|
+
:'capability_values' => :'ServiceAbstractCapabilityValue',
|
99
|
+
:'capability_values_json' => :'String',
|
100
|
+
:'component_state' => :'String',
|
101
|
+
:'description' => :'String',
|
102
|
+
:'name' => :'String',
|
103
|
+
:'profile' => :'String',
|
104
|
+
:'project' => :'String',
|
105
|
+
:'provisioning_strategy' => :'String',
|
106
|
+
:'resource_service' => :'Boolean',
|
107
|
+
:'uuid' => :'String',
|
108
|
+
:'version' => :'Integer'
|
109
|
+
}
|
110
|
+
end
|
111
|
+
|
112
|
+
# List of attributes with nullable: true
|
113
|
+
def self.openapi_nullable
|
114
|
+
Set.new([
|
115
|
+
])
|
116
|
+
end
|
117
|
+
|
118
|
+
# Initializes the object
|
119
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
120
|
+
def initialize(attributes = {})
|
121
|
+
if (!attributes.is_a?(Hash))
|
122
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `AutosdeOpenapiClient::ServiceResponse` initialize method"
|
123
|
+
end
|
124
|
+
|
125
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
126
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
127
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
128
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `AutosdeOpenapiClient::ServiceResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
129
|
+
end
|
130
|
+
h[k.to_sym] = v
|
131
|
+
}
|
132
|
+
|
133
|
+
if attributes.key?(:'capability_values')
|
134
|
+
self.capability_values = attributes[:'capability_values']
|
135
|
+
end
|
136
|
+
|
137
|
+
if attributes.key?(:'capability_values_json')
|
138
|
+
self.capability_values_json = attributes[:'capability_values_json']
|
139
|
+
end
|
140
|
+
|
141
|
+
if attributes.key?(:'component_state')
|
142
|
+
self.component_state = attributes[:'component_state']
|
143
|
+
end
|
144
|
+
|
145
|
+
if attributes.key?(:'description')
|
146
|
+
self.description = attributes[:'description']
|
147
|
+
else
|
148
|
+
self.description = ''
|
149
|
+
end
|
150
|
+
|
151
|
+
if attributes.key?(:'name')
|
152
|
+
self.name = attributes[:'name']
|
153
|
+
end
|
154
|
+
|
155
|
+
if attributes.key?(:'profile')
|
156
|
+
self.profile = attributes[:'profile']
|
157
|
+
end
|
158
|
+
|
159
|
+
if attributes.key?(:'project')
|
160
|
+
self.project = attributes[:'project']
|
161
|
+
end
|
162
|
+
|
163
|
+
if attributes.key?(:'provisioning_strategy')
|
164
|
+
self.provisioning_strategy = attributes[:'provisioning_strategy']
|
165
|
+
end
|
166
|
+
|
167
|
+
if attributes.key?(:'resource_service')
|
168
|
+
self.resource_service = attributes[:'resource_service']
|
169
|
+
else
|
170
|
+
self.resource_service = false
|
171
|
+
end
|
172
|
+
|
173
|
+
if attributes.key?(:'uuid')
|
174
|
+
self.uuid = attributes[:'uuid']
|
175
|
+
end
|
176
|
+
|
177
|
+
if attributes.key?(:'version')
|
178
|
+
self.version = attributes[:'version']
|
179
|
+
else
|
180
|
+
self.version = 1
|
181
|
+
end
|
182
|
+
end
|
183
|
+
|
184
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
185
|
+
# @return Array for valid properties with the reasons
|
186
|
+
def list_invalid_properties
|
187
|
+
invalid_properties = Array.new
|
188
|
+
if !@component_state.nil? && @component_state.to_s.length > 32
|
189
|
+
invalid_properties.push('invalid value for "component_state", the character length must be smaller than or equal to 32.')
|
190
|
+
end
|
191
|
+
|
192
|
+
invalid_properties
|
193
|
+
end
|
194
|
+
|
195
|
+
# Check to see if the all the properties in the model are valid
|
196
|
+
# @return true if the model is valid
|
197
|
+
def valid?
|
198
|
+
component_state_validator = EnumAttributeValidator.new('String', ["PENDING_CREATION", "CREATED", "DELETED", "PENDING_DELETION", "MODIFICATION", "PENDING_MODIFICATION"])
|
199
|
+
return false unless component_state_validator.valid?(@component_state)
|
200
|
+
return false if !@component_state.nil? && @component_state.to_s.length > 32
|
201
|
+
true
|
202
|
+
end
|
203
|
+
|
204
|
+
# Custom attribute writer method checking allowed values (enum).
|
205
|
+
# @param [Object] component_state Object to be assigned
|
206
|
+
def component_state=(component_state)
|
207
|
+
validator = EnumAttributeValidator.new('String', ["PENDING_CREATION", "CREATED", "DELETED", "PENDING_DELETION", "MODIFICATION", "PENDING_MODIFICATION"])
|
208
|
+
unless validator.valid?(component_state)
|
209
|
+
fail ArgumentError, "invalid value for \"component_state\", must be one of #{validator.allowable_values}."
|
210
|
+
end
|
211
|
+
@component_state = component_state
|
212
|
+
end
|
213
|
+
|
214
|
+
# Checks equality by comparing each attribute.
|
215
|
+
# @param [Object] Object to be compared
|
216
|
+
def ==(o)
|
217
|
+
return true if self.equal?(o)
|
218
|
+
self.class == o.class &&
|
219
|
+
capability_values == o.capability_values &&
|
220
|
+
capability_values_json == o.capability_values_json &&
|
221
|
+
component_state == o.component_state &&
|
222
|
+
description == o.description &&
|
223
|
+
name == o.name &&
|
224
|
+
profile == o.profile &&
|
225
|
+
project == o.project &&
|
226
|
+
provisioning_strategy == o.provisioning_strategy &&
|
227
|
+
resource_service == o.resource_service &&
|
228
|
+
uuid == o.uuid &&
|
229
|
+
version == o.version
|
230
|
+
end
|
231
|
+
|
232
|
+
# @see the `==` method
|
233
|
+
# @param [Object] Object to be compared
|
234
|
+
def eql?(o)
|
235
|
+
self == o
|
236
|
+
end
|
237
|
+
|
238
|
+
# Calculates hash code according to all attributes.
|
239
|
+
# @return [Integer] Hash code
|
240
|
+
def hash
|
241
|
+
[capability_values, capability_values_json, component_state, description, name, profile, project, provisioning_strategy, resource_service, uuid, version].hash
|
242
|
+
end
|
243
|
+
|
244
|
+
# Builds the object from hash
|
245
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
246
|
+
# @return [Object] Returns the model itself
|
247
|
+
def self.build_from_hash(attributes)
|
248
|
+
new.build_from_hash(attributes)
|
249
|
+
end
|
250
|
+
|
251
|
+
# Builds the object from hash
|
252
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
253
|
+
# @return [Object] Returns the model itself
|
254
|
+
def build_from_hash(attributes)
|
255
|
+
return nil unless attributes.is_a?(Hash)
|
256
|
+
self.class.openapi_types.each_pair do |key, type|
|
257
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
258
|
+
self.send("#{key}=", nil)
|
259
|
+
elsif type =~ /\AArray<(.*)>/i
|
260
|
+
# check to ensure the input is an array given that the attribute
|
261
|
+
# is documented as an array but the input is not
|
262
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
263
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
264
|
+
end
|
265
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
266
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
267
|
+
end
|
268
|
+
end
|
269
|
+
|
270
|
+
self
|
271
|
+
end
|
272
|
+
|
273
|
+
# Deserializes the data based on type
|
274
|
+
# @param string type Data type
|
275
|
+
# @param string value Value to be deserialized
|
276
|
+
# @return [Object] Deserialized data
|
277
|
+
def _deserialize(type, value)
|
278
|
+
case type.to_sym
|
279
|
+
when :Time
|
280
|
+
Time.parse(value)
|
281
|
+
when :Date
|
282
|
+
Date.parse(value)
|
283
|
+
when :String
|
284
|
+
value.to_s
|
285
|
+
when :Integer
|
286
|
+
value.to_i
|
287
|
+
when :Float
|
288
|
+
value.to_f
|
289
|
+
when :Boolean
|
290
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
291
|
+
true
|
292
|
+
else
|
293
|
+
false
|
294
|
+
end
|
295
|
+
when :Object
|
296
|
+
# generic object (usually a Hash), return directly
|
297
|
+
value
|
298
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
299
|
+
inner_type = Regexp.last_match[:inner_type]
|
300
|
+
value.map { |v| _deserialize(inner_type, v) }
|
301
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
302
|
+
k_type = Regexp.last_match[:k_type]
|
303
|
+
v_type = Regexp.last_match[:v_type]
|
304
|
+
{}.tap do |hash|
|
305
|
+
value.each do |k, v|
|
306
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
307
|
+
end
|
308
|
+
end
|
309
|
+
else # model
|
310
|
+
# models (e.g. Pet) or oneOf
|
311
|
+
klass = AutosdeOpenapiClient.const_get(type)
|
312
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
313
|
+
end
|
314
|
+
end
|
315
|
+
|
316
|
+
# Returns the string representation of the object
|
317
|
+
# @return [String] String presentation of the object
|
318
|
+
def to_s
|
319
|
+
to_hash.to_s
|
320
|
+
end
|
321
|
+
|
322
|
+
# to_body is an alias to to_hash (backward compatibility)
|
323
|
+
# @return [Hash] Returns the object in the form of hash
|
324
|
+
def to_body
|
325
|
+
to_hash
|
326
|
+
end
|
327
|
+
|
328
|
+
# Returns the object in the form of hash
|
329
|
+
# @return [Hash] Returns the object in the form of hash
|
330
|
+
def to_hash
|
331
|
+
hash = {}
|
332
|
+
self.class.attribute_map.each_pair do |attr, param|
|
333
|
+
value = self.send(attr)
|
334
|
+
if value.nil?
|
335
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
336
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
337
|
+
end
|
338
|
+
|
339
|
+
hash[param] = _to_hash(value)
|
340
|
+
end
|
341
|
+
hash
|
342
|
+
end
|
343
|
+
|
344
|
+
# Outputs non-array value in the form of hash
|
345
|
+
# For object, use to_hash. Otherwise, just return the value
|
346
|
+
# @param [Object] value Any valid value
|
347
|
+
# @return [Hash] Returns the value in the form of hash
|
348
|
+
def _to_hash(value)
|
349
|
+
if value.is_a?(Array)
|
350
|
+
value.compact.map { |v| _to_hash(v) }
|
351
|
+
elsif value.is_a?(Hash)
|
352
|
+
{}.tap do |hash|
|
353
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
354
|
+
end
|
355
|
+
elsif value.respond_to? :to_hash
|
356
|
+
value.to_hash
|
357
|
+
else
|
358
|
+
value
|
359
|
+
end
|
360
|
+
end
|
361
|
+
|
362
|
+
end
|
363
|
+
|
364
|
+
end
|
@@ -19,6 +19,9 @@ module AutosdeOpenapiClient
|
|
19
19
|
# advanced_attributes_map
|
20
20
|
attr_accessor :advanced_attributes_map
|
21
21
|
|
22
|
+
# capability_values_json
|
23
|
+
attr_accessor :capability_values_json
|
24
|
+
|
22
25
|
# component_state
|
23
26
|
attr_accessor :component_state
|
24
27
|
|
@@ -69,6 +72,7 @@ module AutosdeOpenapiClient
|
|
69
72
|
def self.attribute_map
|
70
73
|
{
|
71
74
|
:'advanced_attributes_map' => :'advanced_attributes_map',
|
75
|
+
:'capability_values_json' => :'capability_values_json',
|
72
76
|
:'component_state' => :'component_state',
|
73
77
|
:'logical_free' => :'logical_free',
|
74
78
|
:'logical_total' => :'logical_total',
|
@@ -89,6 +93,7 @@ module AutosdeOpenapiClient
|
|
89
93
|
def self.openapi_types
|
90
94
|
{
|
91
95
|
:'advanced_attributes_map' => :'String',
|
96
|
+
:'capability_values_json' => :'String',
|
92
97
|
:'component_state' => :'String',
|
93
98
|
:'logical_free' => :'Integer',
|
94
99
|
:'logical_total' => :'Integer',
|
@@ -125,6 +130,10 @@ module AutosdeOpenapiClient
|
|
125
130
|
self.advanced_attributes_map = attributes[:'advanced_attributes_map']
|
126
131
|
end
|
127
132
|
|
133
|
+
if attributes.key?(:'capability_values_json')
|
134
|
+
self.capability_values_json = attributes[:'capability_values_json']
|
135
|
+
end
|
136
|
+
|
128
137
|
if attributes.key?(:'component_state')
|
129
138
|
self.component_state = attributes[:'component_state']
|
130
139
|
end
|
@@ -210,6 +219,7 @@ module AutosdeOpenapiClient
|
|
210
219
|
return true if self.equal?(o)
|
211
220
|
self.class == o.class &&
|
212
221
|
advanced_attributes_map == o.advanced_attributes_map &&
|
222
|
+
capability_values_json == o.capability_values_json &&
|
213
223
|
component_state == o.component_state &&
|
214
224
|
logical_free == o.logical_free &&
|
215
225
|
logical_total == o.logical_total &&
|
@@ -229,7 +239,7 @@ module AutosdeOpenapiClient
|
|
229
239
|
# Calculates hash code according to all attributes.
|
230
240
|
# @return [Integer] Hash code
|
231
241
|
def hash
|
232
|
-
[advanced_attributes_map, component_state, logical_free, logical_total, name, pool_name, protocol, storage_system, uuid].hash
|
242
|
+
[advanced_attributes_map, capability_values_json, component_state, logical_free, logical_total, name, pool_name, protocol, storage_system, uuid].hash
|
233
243
|
end
|
234
244
|
|
235
245
|
# Builds the object from hash
|
@@ -28,9 +28,14 @@ module AutosdeOpenapiClient
|
|
28
28
|
# name
|
29
29
|
attr_accessor :name
|
30
30
|
|
31
|
-
#
|
31
|
+
# resources
|
32
|
+
attr_accessor :resources
|
33
|
+
|
32
34
|
attr_accessor :service
|
33
35
|
|
36
|
+
# service_name
|
37
|
+
attr_accessor :service_name
|
38
|
+
|
34
39
|
# size
|
35
40
|
attr_accessor :size
|
36
41
|
|
@@ -75,7 +80,9 @@ module AutosdeOpenapiClient
|
|
75
80
|
:'component_state' => :'component_state',
|
76
81
|
:'count' => :'count',
|
77
82
|
:'name' => :'name',
|
83
|
+
:'resources' => :'resources',
|
78
84
|
:'service' => :'service',
|
85
|
+
:'service_name' => :'service_name',
|
79
86
|
:'size' => :'size',
|
80
87
|
:'status' => :'status',
|
81
88
|
:'unmapped_since' => :'unmapped_since',
|
@@ -96,7 +103,9 @@ module AutosdeOpenapiClient
|
|
96
103
|
:'component_state' => :'String',
|
97
104
|
:'count' => :'Integer',
|
98
105
|
:'name' => :'String',
|
99
|
-
:'
|
106
|
+
:'resources' => :'Array<String>',
|
107
|
+
:'service' => :'Service',
|
108
|
+
:'service_name' => :'String',
|
100
109
|
:'size' => :'Integer',
|
101
110
|
:'status' => :'String',
|
102
111
|
:'unmapped_since' => :'Time',
|
@@ -146,10 +155,22 @@ module AutosdeOpenapiClient
|
|
146
155
|
self.name = attributes[:'name']
|
147
156
|
end
|
148
157
|
|
158
|
+
if attributes.key?(:'resources')
|
159
|
+
if (value = attributes[:'resources']).is_a?(Array)
|
160
|
+
self.resources = value
|
161
|
+
end
|
162
|
+
end
|
163
|
+
|
149
164
|
if attributes.key?(:'service')
|
150
165
|
self.service = attributes[:'service']
|
151
166
|
end
|
152
167
|
|
168
|
+
if attributes.key?(:'service_name')
|
169
|
+
self.service_name = attributes[:'service_name']
|
170
|
+
else
|
171
|
+
self.service_name = 'null'
|
172
|
+
end
|
173
|
+
|
153
174
|
if attributes.key?(:'size')
|
154
175
|
self.size = attributes[:'size']
|
155
176
|
end
|
@@ -210,7 +231,9 @@ module AutosdeOpenapiClient
|
|
210
231
|
component_state == o.component_state &&
|
211
232
|
count == o.count &&
|
212
233
|
name == o.name &&
|
234
|
+
resources == o.resources &&
|
213
235
|
service == o.service &&
|
236
|
+
service_name == o.service_name &&
|
214
237
|
size == o.size &&
|
215
238
|
status == o.status &&
|
216
239
|
unmapped_since == o.unmapped_since &&
|
@@ -227,7 +250,7 @@ module AutosdeOpenapiClient
|
|
227
250
|
# Calculates hash code according to all attributes.
|
228
251
|
# @return [Integer] Hash code
|
229
252
|
def hash
|
230
|
-
[compliant, component_state, count, name, service, size, status, unmapped_since, uuid, volume_name].hash
|
253
|
+
[compliant, component_state, count, name, resources, service, service_name, size, status, unmapped_since, uuid, volume_name].hash
|
231
254
|
end
|
232
255
|
|
233
256
|
# Builds the object from hash
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Site Manager API
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 2.0.
|
6
|
+
The version of the OpenAPI document: 2.0.6
|
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 = '2.0.
|
14
|
+
VERSION = '2.0.6'
|
15
15
|
end
|
@@ -56,6 +56,7 @@ require 'autosde_openapi_client/models/service_abstract_capability_value'
|
|
56
56
|
require 'autosde_openapi_client/models/service_abstract_capability_value_response'
|
57
57
|
require 'autosde_openapi_client/models/service_create'
|
58
58
|
require 'autosde_openapi_client/models/service_resource_attachment'
|
59
|
+
require 'autosde_openapi_client/models/service_response'
|
59
60
|
require 'autosde_openapi_client/models/snapshot'
|
60
61
|
require 'autosde_openapi_client/models/snapshot_create'
|
61
62
|
require 'autosde_openapi_client/models/storage_host'
|
@@ -34,7 +34,7 @@ describe 'ServiceApi' do
|
|
34
34
|
|
35
35
|
# unit tests for services_get
|
36
36
|
# @param [Hash] opts the optional parameters
|
37
|
-
# @return [Array<
|
37
|
+
# @return [Array<ServiceResponse>]
|
38
38
|
describe 'services_get test' do
|
39
39
|
it 'should work' do
|
40
40
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -44,7 +44,7 @@ describe 'ServiceApi' do
|
|
44
44
|
# unit tests for services_pk_delete
|
45
45
|
# @param pk
|
46
46
|
# @param [Hash] opts the optional parameters
|
47
|
-
# @return [
|
47
|
+
# @return [Service]
|
48
48
|
describe 'services_pk_delete test' do
|
49
49
|
it 'should work' do
|
50
50
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -75,7 +75,7 @@ describe 'ServiceApi' do
|
|
75
75
|
# unit tests for services_post
|
76
76
|
# @param service_create
|
77
77
|
# @param [Hash] opts the optional parameters
|
78
|
-
# @return [
|
78
|
+
# @return [ServiceResponse]
|
79
79
|
describe 'services_post test' do
|
80
80
|
it 'should work' do
|
81
81
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -67,6 +67,12 @@ describe AutosdeOpenapiClient::EventResponse do
|
|
67
67
|
end
|
68
68
|
end
|
69
69
|
|
70
|
+
describe 'test attribute "sequence_number"' 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
|
+
|
70
76
|
describe 'test attribute "storage_system"' do
|
71
77
|
it 'should work' do
|
72
78
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
data/spec/models/event_spec.rb
CHANGED
@@ -67,6 +67,12 @@ describe AutosdeOpenapiClient::Event do
|
|
67
67
|
end
|
68
68
|
end
|
69
69
|
|
70
|
+
describe 'test attribute "sequence_number"' 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
|
+
|
70
76
|
describe 'test attribute "storage_system"' do
|
71
77
|
it 'should work' do
|
72
78
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -25,7 +25,17 @@ describe AutosdeOpenapiClient::RefreshSystem do
|
|
25
25
|
expect(instance).to be_instance_of(AutosdeOpenapiClient::RefreshSystem)
|
26
26
|
end
|
27
27
|
end
|
28
|
-
describe 'test attribute "
|
28
|
+
describe 'test attribute "resource_type"' 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', ["system_resources", "volumes", "hosts", "events"])
|
32
|
+
# validator.allowable_values.each do |value|
|
33
|
+
# expect { instance.resource_type = value }.not_to raise_error
|
34
|
+
# end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
describe 'test attribute "storage_system"' do
|
29
39
|
it 'should work' do
|
30
40
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
31
41
|
end
|
@@ -0,0 +1,98 @@
|
|
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::ServiceResponse
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe AutosdeOpenapiClient::ServiceResponse do
|
21
|
+
let(:instance) { AutosdeOpenapiClient::ServiceResponse.new }
|
22
|
+
|
23
|
+
describe 'test an instance of ServiceResponse' do
|
24
|
+
it 'should create an instance of ServiceResponse' do
|
25
|
+
expect(instance).to be_instance_of(AutosdeOpenapiClient::ServiceResponse)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "capability_values"' 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 "capability_values_json"' 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 "component_state"' do
|
41
|
+
it 'should work' do
|
42
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
43
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["PENDING_CREATION", "CREATED", "DELETED", "PENDING_DELETION", "MODIFICATION", "PENDING_MODIFICATION"])
|
44
|
+
# validator.allowable_values.each do |value|
|
45
|
+
# expect { instance.component_state = value }.not_to raise_error
|
46
|
+
# end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
describe 'test attribute "description"' 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 "name"' 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 "profile"' 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 "project"' 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 "provisioning_strategy"' 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
|
+
describe 'test attribute "resource_service"' do
|
81
|
+
it 'should work' do
|
82
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
83
|
+
end
|
84
|
+
end
|
85
|
+
|
86
|
+
describe 'test attribute "uuid"' do
|
87
|
+
it 'should work' do
|
88
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
89
|
+
end
|
90
|
+
end
|
91
|
+
|
92
|
+
describe 'test attribute "version"' do
|
93
|
+
it 'should work' do
|
94
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
95
|
+
end
|
96
|
+
end
|
97
|
+
|
98
|
+
end
|