autosde_openapi_client 1.2.12 → 1.2.13
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 +6 -0
- data/docs/AbstractCapabilityApi.md +8 -8
- data/docs/AbstractCapabilityResponse.md +20 -0
- data/docs/ServiceAbstractCapabilityValueApi.md +276 -0
- data/docs/ServiceAbstractCapabilityValueResponse.md +22 -0
- data/docs/StorageSystem.md +2 -0
- data/docs/StorageSystemCreate.md +2 -0
- data/docs/StorageSystemUpdate.md +2 -0
- data/lib/autosde_openapi_client/api/abstract_capability_api.rb +6 -6
- data/lib/autosde_openapi_client/api/service_abstract_capability_value_api.rb +254 -0
- data/lib/autosde_openapi_client/models/abstract_capability_response.rb +230 -0
- data/lib/autosde_openapi_client/models/service_abstract_capability_value_response.rb +240 -0
- data/lib/autosde_openapi_client/models/storage_system.rb +10 -1
- data/lib/autosde_openapi_client/models/storage_system_create.rb +10 -1
- data/lib/autosde_openapi_client/models/storage_system_update.rb +10 -1
- data/lib/autosde_openapi_client/version.rb +2 -2
- data/lib/autosde_openapi_client.rb +3 -0
- data/spec/api/abstract_capability_api_spec.rb +2 -2
- data/spec/api/service_abstract_capability_value_api_spec.rb +74 -0
- data/spec/models/abstract_capability_response_spec.rb +40 -0
- data/spec/models/service_abstract_capability_value_response_spec.rb +46 -0
- data/spec/models/storage_system_create_spec.rb +6 -0
- data/spec/models/storage_system_spec.rb +6 -0
- data/spec/models/storage_system_update_spec.rb +6 -0
- metadata +89 -77
@@ -0,0 +1,240 @@
|
|
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 ServiceAbstractCapabilityValueResponse
|
19
|
+
# !!uuid of abstract_capability
|
20
|
+
attr_accessor :abstract_capability
|
21
|
+
|
22
|
+
# uuid
|
23
|
+
attr_accessor :uuid
|
24
|
+
|
25
|
+
# value
|
26
|
+
attr_accessor :value
|
27
|
+
|
28
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
29
|
+
def self.attribute_map
|
30
|
+
{
|
31
|
+
:'abstract_capability' => :'abstract_capability',
|
32
|
+
:'uuid' => :'uuid',
|
33
|
+
:'value' => :'value'
|
34
|
+
}
|
35
|
+
end
|
36
|
+
|
37
|
+
# Returns all the JSON keys this model knows about
|
38
|
+
def self.acceptable_attributes
|
39
|
+
attribute_map.values
|
40
|
+
end
|
41
|
+
|
42
|
+
# Attribute type mapping.
|
43
|
+
def self.openapi_types
|
44
|
+
{
|
45
|
+
:'abstract_capability' => :'String',
|
46
|
+
:'uuid' => :'String',
|
47
|
+
:'value' => :'String'
|
48
|
+
}
|
49
|
+
end
|
50
|
+
|
51
|
+
# List of attributes with nullable: true
|
52
|
+
def self.openapi_nullable
|
53
|
+
Set.new([
|
54
|
+
])
|
55
|
+
end
|
56
|
+
|
57
|
+
# Initializes the object
|
58
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
59
|
+
def initialize(attributes = {})
|
60
|
+
if (!attributes.is_a?(Hash))
|
61
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `AutosdeOpenapiClient::ServiceAbstractCapabilityValueResponse` initialize method"
|
62
|
+
end
|
63
|
+
|
64
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
65
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
66
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
67
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `AutosdeOpenapiClient::ServiceAbstractCapabilityValueResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
68
|
+
end
|
69
|
+
h[k.to_sym] = v
|
70
|
+
}
|
71
|
+
|
72
|
+
if attributes.key?(:'abstract_capability')
|
73
|
+
self.abstract_capability = attributes[:'abstract_capability']
|
74
|
+
end
|
75
|
+
|
76
|
+
if attributes.key?(:'uuid')
|
77
|
+
self.uuid = attributes[:'uuid']
|
78
|
+
end
|
79
|
+
|
80
|
+
if attributes.key?(:'value')
|
81
|
+
self.value = attributes[:'value']
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
85
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
86
|
+
# @return Array for valid properties with the reasons
|
87
|
+
def list_invalid_properties
|
88
|
+
invalid_properties = Array.new
|
89
|
+
invalid_properties
|
90
|
+
end
|
91
|
+
|
92
|
+
# Check to see if the all the properties in the model are valid
|
93
|
+
# @return true if the model is valid
|
94
|
+
def valid?
|
95
|
+
true
|
96
|
+
end
|
97
|
+
|
98
|
+
# Checks equality by comparing each attribute.
|
99
|
+
# @param [Object] Object to be compared
|
100
|
+
def ==(o)
|
101
|
+
return true if self.equal?(o)
|
102
|
+
self.class == o.class &&
|
103
|
+
abstract_capability == o.abstract_capability &&
|
104
|
+
uuid == o.uuid &&
|
105
|
+
value == o.value
|
106
|
+
end
|
107
|
+
|
108
|
+
# @see the `==` method
|
109
|
+
# @param [Object] Object to be compared
|
110
|
+
def eql?(o)
|
111
|
+
self == o
|
112
|
+
end
|
113
|
+
|
114
|
+
# Calculates hash code according to all attributes.
|
115
|
+
# @return [Integer] Hash code
|
116
|
+
def hash
|
117
|
+
[abstract_capability, uuid, value].hash
|
118
|
+
end
|
119
|
+
|
120
|
+
# Builds the object from hash
|
121
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
122
|
+
# @return [Object] Returns the model itself
|
123
|
+
def self.build_from_hash(attributes)
|
124
|
+
new.build_from_hash(attributes)
|
125
|
+
end
|
126
|
+
|
127
|
+
# Builds the object from hash
|
128
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
129
|
+
# @return [Object] Returns the model itself
|
130
|
+
def build_from_hash(attributes)
|
131
|
+
return nil unless attributes.is_a?(Hash)
|
132
|
+
self.class.openapi_types.each_pair do |key, type|
|
133
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
134
|
+
self.send("#{key}=", nil)
|
135
|
+
elsif type =~ /\AArray<(.*)>/i
|
136
|
+
# check to ensure the input is an array given that the attribute
|
137
|
+
# is documented as an array but the input is not
|
138
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
139
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
140
|
+
end
|
141
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
142
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
143
|
+
end
|
144
|
+
end
|
145
|
+
|
146
|
+
self
|
147
|
+
end
|
148
|
+
|
149
|
+
# Deserializes the data based on type
|
150
|
+
# @param string type Data type
|
151
|
+
# @param string value Value to be deserialized
|
152
|
+
# @return [Object] Deserialized data
|
153
|
+
def _deserialize(type, value)
|
154
|
+
case type.to_sym
|
155
|
+
when :Time
|
156
|
+
Time.parse(value)
|
157
|
+
when :Date
|
158
|
+
Date.parse(value)
|
159
|
+
when :String
|
160
|
+
value.to_s
|
161
|
+
when :Integer
|
162
|
+
value.to_i
|
163
|
+
when :Float
|
164
|
+
value.to_f
|
165
|
+
when :Boolean
|
166
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
167
|
+
true
|
168
|
+
else
|
169
|
+
false
|
170
|
+
end
|
171
|
+
when :Object
|
172
|
+
# generic object (usually a Hash), return directly
|
173
|
+
value
|
174
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
175
|
+
inner_type = Regexp.last_match[:inner_type]
|
176
|
+
value.map { |v| _deserialize(inner_type, v) }
|
177
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
178
|
+
k_type = Regexp.last_match[:k_type]
|
179
|
+
v_type = Regexp.last_match[:v_type]
|
180
|
+
{}.tap do |hash|
|
181
|
+
value.each do |k, v|
|
182
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
183
|
+
end
|
184
|
+
end
|
185
|
+
else # model
|
186
|
+
# models (e.g. Pet) or oneOf
|
187
|
+
klass = AutosdeOpenapiClient.const_get(type)
|
188
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
189
|
+
end
|
190
|
+
end
|
191
|
+
|
192
|
+
# Returns the string representation of the object
|
193
|
+
# @return [String] String presentation of the object
|
194
|
+
def to_s
|
195
|
+
to_hash.to_s
|
196
|
+
end
|
197
|
+
|
198
|
+
# to_body is an alias to to_hash (backward compatibility)
|
199
|
+
# @return [Hash] Returns the object in the form of hash
|
200
|
+
def to_body
|
201
|
+
to_hash
|
202
|
+
end
|
203
|
+
|
204
|
+
# Returns the object in the form of hash
|
205
|
+
# @return [Hash] Returns the object in the form of hash
|
206
|
+
def to_hash
|
207
|
+
hash = {}
|
208
|
+
self.class.attribute_map.each_pair do |attr, param|
|
209
|
+
value = self.send(attr)
|
210
|
+
if value.nil?
|
211
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
212
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
213
|
+
end
|
214
|
+
|
215
|
+
hash[param] = _to_hash(value)
|
216
|
+
end
|
217
|
+
hash
|
218
|
+
end
|
219
|
+
|
220
|
+
# Outputs non-array value in the form of hash
|
221
|
+
# For object, use to_hash. Otherwise, just return the value
|
222
|
+
# @param [Object] value Any valid value
|
223
|
+
# @return [Hash] Returns the value in the form of hash
|
224
|
+
def _to_hash(value)
|
225
|
+
if value.is_a?(Array)
|
226
|
+
value.compact.map { |v| _to_hash(v) }
|
227
|
+
elsif value.is_a?(Hash)
|
228
|
+
{}.tap do |hash|
|
229
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
230
|
+
end
|
231
|
+
elsif value.respond_to? :to_hash
|
232
|
+
value.to_hash
|
233
|
+
else
|
234
|
+
value
|
235
|
+
end
|
236
|
+
end
|
237
|
+
|
238
|
+
end
|
239
|
+
|
240
|
+
end
|
@@ -22,6 +22,8 @@ module AutosdeOpenapiClient
|
|
22
22
|
# component_state
|
23
23
|
attr_accessor :component_state
|
24
24
|
|
25
|
+
attr_accessor :enabled_capability_values
|
26
|
+
|
25
27
|
# management_ip
|
26
28
|
attr_accessor :management_ip
|
27
29
|
|
@@ -69,6 +71,7 @@ module AutosdeOpenapiClient
|
|
69
71
|
{
|
70
72
|
:'auto_refresh' => :'auto_refresh',
|
71
73
|
:'component_state' => :'component_state',
|
74
|
+
:'enabled_capability_values' => :'enabled_capability_values',
|
72
75
|
:'management_ip' => :'management_ip',
|
73
76
|
:'name' => :'name',
|
74
77
|
:'status' => :'status',
|
@@ -89,6 +92,7 @@ module AutosdeOpenapiClient
|
|
89
92
|
{
|
90
93
|
:'auto_refresh' => :'Boolean',
|
91
94
|
:'component_state' => :'String',
|
95
|
+
:'enabled_capability_values' => :'ServiceAbstractCapabilityValue',
|
92
96
|
:'management_ip' => :'String',
|
93
97
|
:'name' => :'String',
|
94
98
|
:'status' => :'String',
|
@@ -130,6 +134,10 @@ module AutosdeOpenapiClient
|
|
130
134
|
self.component_state = attributes[:'component_state']
|
131
135
|
end
|
132
136
|
|
137
|
+
if attributes.key?(:'enabled_capability_values')
|
138
|
+
self.enabled_capability_values = attributes[:'enabled_capability_values']
|
139
|
+
end
|
140
|
+
|
133
141
|
if attributes.key?(:'management_ip')
|
134
142
|
self.management_ip = attributes[:'management_ip']
|
135
143
|
end
|
@@ -208,6 +216,7 @@ module AutosdeOpenapiClient
|
|
208
216
|
self.class == o.class &&
|
209
217
|
auto_refresh == o.auto_refresh &&
|
210
218
|
component_state == o.component_state &&
|
219
|
+
enabled_capability_values == o.enabled_capability_values &&
|
211
220
|
management_ip == o.management_ip &&
|
212
221
|
name == o.name &&
|
213
222
|
status == o.status &&
|
@@ -226,7 +235,7 @@ module AutosdeOpenapiClient
|
|
226
235
|
# Calculates hash code according to all attributes.
|
227
236
|
# @return [Integer] Hash code
|
228
237
|
def hash
|
229
|
-
[auto_refresh, component_state, management_ip, name, status, storage_array, storage_family, system_type, uuid].hash
|
238
|
+
[auto_refresh, component_state, enabled_capability_values, management_ip, name, status, storage_array, storage_family, system_type, uuid].hash
|
230
239
|
end
|
231
240
|
|
232
241
|
# Builds the object from hash
|
@@ -28,6 +28,8 @@ module AutosdeOpenapiClient
|
|
28
28
|
# component_state
|
29
29
|
attr_accessor :component_state
|
30
30
|
|
31
|
+
attr_accessor :enabled_capability_values
|
32
|
+
|
31
33
|
# initial_refresh
|
32
34
|
attr_accessor :initial_refresh
|
33
35
|
|
@@ -97,6 +99,7 @@ module AutosdeOpenapiClient
|
|
97
99
|
:'chap_name' => :'chap_name',
|
98
100
|
:'chap_secret' => :'chap_secret',
|
99
101
|
:'component_state' => :'component_state',
|
102
|
+
:'enabled_capability_values' => :'enabled_capability_values',
|
100
103
|
:'initial_refresh' => :'initial_refresh',
|
101
104
|
:'iqn' => :'iqn',
|
102
105
|
:'management_ip' => :'management_ip',
|
@@ -126,6 +129,7 @@ module AutosdeOpenapiClient
|
|
126
129
|
:'chap_name' => :'String',
|
127
130
|
:'chap_secret' => :'String',
|
128
131
|
:'component_state' => :'String',
|
132
|
+
:'enabled_capability_values' => :'ServiceAbstractCapabilityValue',
|
129
133
|
:'initial_refresh' => :'Boolean',
|
130
134
|
:'iqn' => :'String',
|
131
135
|
:'management_ip' => :'String',
|
@@ -182,6 +186,10 @@ module AutosdeOpenapiClient
|
|
182
186
|
self.component_state = attributes[:'component_state']
|
183
187
|
end
|
184
188
|
|
189
|
+
if attributes.key?(:'enabled_capability_values')
|
190
|
+
self.enabled_capability_values = attributes[:'enabled_capability_values']
|
191
|
+
end
|
192
|
+
|
185
193
|
if attributes.key?(:'initial_refresh')
|
186
194
|
self.initial_refresh = attributes[:'initial_refresh']
|
187
195
|
else
|
@@ -304,6 +312,7 @@ module AutosdeOpenapiClient
|
|
304
312
|
chap_name == o.chap_name &&
|
305
313
|
chap_secret == o.chap_secret &&
|
306
314
|
component_state == o.component_state &&
|
315
|
+
enabled_capability_values == o.enabled_capability_values &&
|
307
316
|
initial_refresh == o.initial_refresh &&
|
308
317
|
iqn == o.iqn &&
|
309
318
|
management_ip == o.management_ip &&
|
@@ -329,7 +338,7 @@ module AutosdeOpenapiClient
|
|
329
338
|
# Calculates hash code according to all attributes.
|
330
339
|
# @return [Integer] Hash code
|
331
340
|
def hash
|
332
|
-
[auto_refresh, chap_name, chap_secret, component_state, initial_refresh, iqn, management_ip, name, password, port_type, secondary_ip, status, storage_array, storage_driver, storage_family, system_type, user, wwpn].hash
|
341
|
+
[auto_refresh, chap_name, chap_secret, component_state, enabled_capability_values, initial_refresh, iqn, management_ip, name, password, port_type, secondary_ip, status, storage_array, storage_driver, storage_family, system_type, user, wwpn].hash
|
333
342
|
end
|
334
343
|
|
335
344
|
# Builds the object from hash
|
@@ -16,6 +16,8 @@ require 'time'
|
|
16
16
|
module AutosdeOpenapiClient
|
17
17
|
# TODO add description
|
18
18
|
class StorageSystemUpdate
|
19
|
+
attr_accessor :enabled_capability_values
|
20
|
+
|
19
21
|
# management_ip
|
20
22
|
attr_accessor :management_ip
|
21
23
|
|
@@ -31,6 +33,7 @@ module AutosdeOpenapiClient
|
|
31
33
|
# Attribute mapping from ruby-style variable name to JSON key.
|
32
34
|
def self.attribute_map
|
33
35
|
{
|
36
|
+
:'enabled_capability_values' => :'enabled_capability_values',
|
34
37
|
:'management_ip' => :'management_ip',
|
35
38
|
:'name' => :'name',
|
36
39
|
:'password' => :'password',
|
@@ -46,6 +49,7 @@ module AutosdeOpenapiClient
|
|
46
49
|
# Attribute type mapping.
|
47
50
|
def self.openapi_types
|
48
51
|
{
|
52
|
+
:'enabled_capability_values' => :'ServiceAbstractCapabilityValue',
|
49
53
|
:'management_ip' => :'String',
|
50
54
|
:'name' => :'String',
|
51
55
|
:'password' => :'String',
|
@@ -74,6 +78,10 @@ module AutosdeOpenapiClient
|
|
74
78
|
h[k.to_sym] = v
|
75
79
|
}
|
76
80
|
|
81
|
+
if attributes.key?(:'enabled_capability_values')
|
82
|
+
self.enabled_capability_values = attributes[:'enabled_capability_values']
|
83
|
+
end
|
84
|
+
|
77
85
|
if attributes.key?(:'management_ip')
|
78
86
|
self.management_ip = attributes[:'management_ip']
|
79
87
|
end
|
@@ -124,6 +132,7 @@ module AutosdeOpenapiClient
|
|
124
132
|
def ==(o)
|
125
133
|
return true if self.equal?(o)
|
126
134
|
self.class == o.class &&
|
135
|
+
enabled_capability_values == o.enabled_capability_values &&
|
127
136
|
management_ip == o.management_ip &&
|
128
137
|
name == o.name &&
|
129
138
|
password == o.password &&
|
@@ -139,7 +148,7 @@ module AutosdeOpenapiClient
|
|
139
148
|
# Calculates hash code according to all attributes.
|
140
149
|
# @return [Integer] Hash code
|
141
150
|
def hash
|
142
|
-
[management_ip, name, password, user].hash
|
151
|
+
[enabled_capability_values, management_ip, name, password, user].hash
|
143
152
|
end
|
144
153
|
|
145
154
|
# 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: 1.2.
|
6
|
+
The version of the OpenAPI document: 1.2.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 AutosdeOpenapiClient
|
14
|
-
VERSION = '1.2.
|
14
|
+
VERSION = '1.2.13'
|
15
15
|
end
|
@@ -18,6 +18,7 @@ require 'autosde_openapi_client/configuration'
|
|
18
18
|
|
19
19
|
# Models
|
20
20
|
require 'autosde_openapi_client/models/abstract_capability'
|
21
|
+
require 'autosde_openapi_client/models/abstract_capability_response'
|
21
22
|
require 'autosde_openapi_client/models/account'
|
22
23
|
require 'autosde_openapi_client/models/account_post_request'
|
23
24
|
require 'autosde_openapi_client/models/account_post_response'
|
@@ -52,6 +53,7 @@ require 'autosde_openapi_client/models/provisioning_strategy'
|
|
52
53
|
require 'autosde_openapi_client/models/refresh_system'
|
53
54
|
require 'autosde_openapi_client/models/service'
|
54
55
|
require 'autosde_openapi_client/models/service_abstract_capability_value'
|
56
|
+
require 'autosde_openapi_client/models/service_abstract_capability_value_response'
|
55
57
|
require 'autosde_openapi_client/models/service_create'
|
56
58
|
require 'autosde_openapi_client/models/service_resource_attachment'
|
57
59
|
require 'autosde_openapi_client/models/snapshot'
|
@@ -105,6 +107,7 @@ require 'autosde_openapi_client/api/profile_api'
|
|
105
107
|
require 'autosde_openapi_client/api/provisioning_strategy_api'
|
106
108
|
require 'autosde_openapi_client/api/refresh_system_api'
|
107
109
|
require 'autosde_openapi_client/api/service_api'
|
110
|
+
require 'autosde_openapi_client/api/service_abstract_capability_value_api'
|
108
111
|
require 'autosde_openapi_client/api/service_resource_attachment_api'
|
109
112
|
require 'autosde_openapi_client/api/snapshot_api'
|
110
113
|
require 'autosde_openapi_client/api/storage_host_api'
|
@@ -34,7 +34,7 @@ describe 'AbstractCapabilityApi' do
|
|
34
34
|
|
35
35
|
# unit tests for abstract_capabilities_get
|
36
36
|
# @param [Hash] opts the optional parameters
|
37
|
-
# @return [Array<
|
37
|
+
# @return [Array<AbstractCapabilityResponse>]
|
38
38
|
describe 'abstract_capabilities_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
|
@@ -54,7 +54,7 @@ describe 'AbstractCapabilityApi' do
|
|
54
54
|
# unit tests for abstract_capabilities_pk_get
|
55
55
|
# @param pk
|
56
56
|
# @param [Hash] opts the optional parameters
|
57
|
-
# @return [
|
57
|
+
# @return [AbstractCapabilityResponse]
|
58
58
|
describe 'abstract_capabilities_pk_get test' do
|
59
59
|
it 'should work' do
|
60
60
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -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::ServiceAbstractCapabilityValueApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'ServiceAbstractCapabilityValueApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = AutosdeOpenapiClient::ServiceAbstractCapabilityValueApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of ServiceAbstractCapabilityValueApi' do
|
30
|
+
it 'should create an instance of ServiceAbstractCapabilityValueApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(AutosdeOpenapiClient::ServiceAbstractCapabilityValueApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for service_abstract_capability_values_get
|
36
|
+
# @param [Hash] opts the optional parameters
|
37
|
+
# @return [Array<ServiceAbstractCapabilityValueResponse>]
|
38
|
+
describe 'service_abstract_capability_values_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 service_abstract_capability_values_pk_delete
|
45
|
+
# @param pk
|
46
|
+
# @param [Hash] opts the optional parameters
|
47
|
+
# @return [ServiceAbstractCapabilityValue]
|
48
|
+
describe 'service_abstract_capability_values_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 service_abstract_capability_values_pk_get
|
55
|
+
# @param pk
|
56
|
+
# @param [Hash] opts the optional parameters
|
57
|
+
# @return [ServiceAbstractCapabilityValueResponse]
|
58
|
+
describe 'service_abstract_capability_values_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 service_abstract_capability_values_post
|
65
|
+
# @param service_abstract_capability_value
|
66
|
+
# @param [Hash] opts the optional parameters
|
67
|
+
# @return [ServiceAbstractCapabilityValue]
|
68
|
+
describe 'service_abstract_capability_values_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,40 @@
|
|
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::AbstractCapabilityResponse
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe AutosdeOpenapiClient::AbstractCapabilityResponse do
|
21
|
+
let(:instance) { AutosdeOpenapiClient::AbstractCapabilityResponse.new }
|
22
|
+
|
23
|
+
describe 'test an instance of AbstractCapabilityResponse' do
|
24
|
+
it 'should create an instance of AbstractCapabilityResponse' do
|
25
|
+
expect(instance).to be_instance_of(AutosdeOpenapiClient::AbstractCapabilityResponse)
|
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 "uuid"' 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
|
@@ -0,0 +1,46 @@
|
|
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::ServiceAbstractCapabilityValueResponse
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe AutosdeOpenapiClient::ServiceAbstractCapabilityValueResponse do
|
21
|
+
let(:instance) { AutosdeOpenapiClient::ServiceAbstractCapabilityValueResponse.new }
|
22
|
+
|
23
|
+
describe 'test an instance of ServiceAbstractCapabilityValueResponse' do
|
24
|
+
it 'should create an instance of ServiceAbstractCapabilityValueResponse' do
|
25
|
+
expect(instance).to be_instance_of(AutosdeOpenapiClient::ServiceAbstractCapabilityValueResponse)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "abstract_capability"' 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 "uuid"' 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 "value"' 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
|
+
end
|
@@ -53,6 +53,12 @@ describe AutosdeOpenapiClient::StorageSystemCreate do
|
|
53
53
|
end
|
54
54
|
end
|
55
55
|
|
56
|
+
describe 'test attribute "enabled_capability_values"' 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
|
+
|
56
62
|
describe 'test attribute "initial_refresh"' do
|
57
63
|
it 'should work' do
|
58
64
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -41,6 +41,12 @@ describe AutosdeOpenapiClient::StorageSystem do
|
|
41
41
|
end
|
42
42
|
end
|
43
43
|
|
44
|
+
describe 'test attribute "enabled_capability_values"' 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
|
+
|
44
50
|
describe 'test attribute "management_ip"' do
|
45
51
|
it 'should work' do
|
46
52
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -25,6 +25,12 @@ describe AutosdeOpenapiClient::StorageSystemUpdate do
|
|
25
25
|
expect(instance).to be_instance_of(AutosdeOpenapiClient::StorageSystemUpdate)
|
26
26
|
end
|
27
27
|
end
|
28
|
+
describe 'test attribute "enabled_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
|
+
|
28
34
|
describe 'test attribute "management_ip"' do
|
29
35
|
it 'should work' do
|
30
36
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|