autosde_openapi_client 1.2.13 → 1.2.14
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/StorageSystemApi.md +4 -4
- data/docs/StorageSystemResponse.md +36 -0
- data/lib/autosde_openapi_client/api/storage_system_api.rb +3 -3
- data/lib/autosde_openapi_client/models/storage_system_response.rb +364 -0
- data/lib/autosde_openapi_client/version.rb +2 -2
- data/lib/autosde_openapi_client.rb +1 -0
- data/spec/api/storage_system_api_spec.rb +1 -1
- data/spec/models/storage_system_response_spec.rb +96 -0
- metadata +84 -80
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b49fa070586d09082ce17e858b15750f4359881c3565c66e813bdaaba8c2cf44
|
4
|
+
data.tar.gz: 3eb06cec21ea2a32e9aeaadc6f1f325264571f0a4ad57590d52afb2ee4f890c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a84c2901ffd291834e47dbe9d0b736b40cee601d63571a9e810277418cf0484737e37a1b0fbd41dd592b65f74c643894e6d1262e84e3249b4f83057e13ba984
|
7
|
+
data.tar.gz: 41b06ca03f8f112a3c5427ecc1d5599e6d4100c4da26a001970716609b1b6fa09ae4e9c8ea78aa1dfd75910b2a4a94780e25904b270e456bb47d244e98df7e9c
|
data/README.md
CHANGED
@@ -263,6 +263,7 @@ Class | Method | HTTP request | Description
|
|
263
263
|
- [AutosdeOpenapiClient::StorageResourceUpdate](docs/StorageResourceUpdate.md)
|
264
264
|
- [AutosdeOpenapiClient::StorageSystem](docs/StorageSystem.md)
|
265
265
|
- [AutosdeOpenapiClient::StorageSystemCreate](docs/StorageSystemCreate.md)
|
266
|
+
- [AutosdeOpenapiClient::StorageSystemResponse](docs/StorageSystemResponse.md)
|
266
267
|
- [AutosdeOpenapiClient::StorageSystemUpdate](docs/StorageSystemUpdate.md)
|
267
268
|
- [AutosdeOpenapiClient::SystemType](docs/SystemType.md)
|
268
269
|
- [AutosdeOpenapiClient::SystemTypeCreate](docs/SystemTypeCreate.md)
|
data/docs/StorageSystemApi.md
CHANGED
@@ -144,7 +144,7 @@ end
|
|
144
144
|
|
145
145
|
## storage_systems_pk_get
|
146
146
|
|
147
|
-
> <
|
147
|
+
> <StorageSystemResponse> storage_systems_pk_get(pk)
|
148
148
|
|
149
149
|
|
150
150
|
|
@@ -175,7 +175,7 @@ end
|
|
175
175
|
|
176
176
|
This returns an Array which contains the response data, status code and headers.
|
177
177
|
|
178
|
-
> <Array(<
|
178
|
+
> <Array(<StorageSystemResponse>, Integer, Hash)> storage_systems_pk_get_with_http_info(pk)
|
179
179
|
|
180
180
|
```ruby
|
181
181
|
begin
|
@@ -183,7 +183,7 @@ begin
|
|
183
183
|
data, status_code, headers = api_instance.storage_systems_pk_get_with_http_info(pk)
|
184
184
|
p status_code # => 2xx
|
185
185
|
p headers # => { ... }
|
186
|
-
p data # => <
|
186
|
+
p data # => <StorageSystemResponse>
|
187
187
|
rescue AutosdeOpenapiClient::ApiError => e
|
188
188
|
puts "Error when calling StorageSystemApi->storage_systems_pk_get_with_http_info: #{e}"
|
189
189
|
end
|
@@ -197,7 +197,7 @@ end
|
|
197
197
|
|
198
198
|
### Return type
|
199
199
|
|
200
|
-
[**
|
200
|
+
[**StorageSystemResponse**](StorageSystemResponse.md)
|
201
201
|
|
202
202
|
### Authorization
|
203
203
|
|
@@ -0,0 +1,36 @@
|
|
1
|
+
# AutosdeOpenapiClient::StorageSystemResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **auto_refresh** | **Boolean** | auto_refresh | [optional][default to true] |
|
8
|
+
| **component_state** | **String** | component_state | [optional] |
|
9
|
+
| **enabled_capability_values** | [**Array<ServiceAbstractCapabilityValue>**](ServiceAbstractCapabilityValue.md) | enabled_capability_values | [optional] |
|
10
|
+
| **management_ip** | **String** | management_ip | [optional] |
|
11
|
+
| **name** | **String** | name | [optional] |
|
12
|
+
| **status** | **String** | status | [optional] |
|
13
|
+
| **storage_array** | **String** | storage_array | [optional] |
|
14
|
+
| **storage_family** | **String** | storage_family | [optional] |
|
15
|
+
| **system_type** | [**SystemType**](SystemType.md) | | [optional] |
|
16
|
+
| **uuid** | **String** | uuid | [optional] |
|
17
|
+
|
18
|
+
## Example
|
19
|
+
|
20
|
+
```ruby
|
21
|
+
require 'autosde_openapi_client'
|
22
|
+
|
23
|
+
instance = AutosdeOpenapiClient::StorageSystemResponse.new(
|
24
|
+
auto_refresh: null,
|
25
|
+
component_state: null,
|
26
|
+
enabled_capability_values: null,
|
27
|
+
management_ip: null,
|
28
|
+
name: null,
|
29
|
+
status: null,
|
30
|
+
storage_array: null,
|
31
|
+
storage_family: null,
|
32
|
+
system_type: null,
|
33
|
+
uuid: null
|
34
|
+
)
|
35
|
+
```
|
36
|
+
|
@@ -133,7 +133,7 @@ module AutosdeOpenapiClient
|
|
133
133
|
|
134
134
|
# @param pk [Integer]
|
135
135
|
# @param [Hash] opts the optional parameters
|
136
|
-
# @return [
|
136
|
+
# @return [StorageSystemResponse]
|
137
137
|
def storage_systems_pk_get(pk, opts = {})
|
138
138
|
data, _status_code, _headers = storage_systems_pk_get_with_http_info(pk, opts)
|
139
139
|
data
|
@@ -141,7 +141,7 @@ module AutosdeOpenapiClient
|
|
141
141
|
|
142
142
|
# @param pk [Integer]
|
143
143
|
# @param [Hash] opts the optional parameters
|
144
|
-
# @return [Array<(
|
144
|
+
# @return [Array<(StorageSystemResponse, Integer, Hash)>] StorageSystemResponse data, response status code and response headers
|
145
145
|
def storage_systems_pk_get_with_http_info(pk, opts = {})
|
146
146
|
if @api_client.config.debugging
|
147
147
|
@api_client.config.logger.debug 'Calling API: StorageSystemApi.storage_systems_pk_get ...'
|
@@ -168,7 +168,7 @@ module AutosdeOpenapiClient
|
|
168
168
|
post_body = opts[:debug_body]
|
169
169
|
|
170
170
|
# return_type
|
171
|
-
return_type = opts[:debug_return_type] || '
|
171
|
+
return_type = opts[:debug_return_type] || 'StorageSystemResponse'
|
172
172
|
|
173
173
|
# auth_names
|
174
174
|
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
@@ -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 StorageSystemResponse
|
19
|
+
# auto_refresh
|
20
|
+
attr_accessor :auto_refresh
|
21
|
+
|
22
|
+
# component_state
|
23
|
+
attr_accessor :component_state
|
24
|
+
|
25
|
+
# enabled_capability_values
|
26
|
+
attr_accessor :enabled_capability_values
|
27
|
+
|
28
|
+
# management_ip
|
29
|
+
attr_accessor :management_ip
|
30
|
+
|
31
|
+
# name
|
32
|
+
attr_accessor :name
|
33
|
+
|
34
|
+
# status
|
35
|
+
attr_accessor :status
|
36
|
+
|
37
|
+
# storage_array
|
38
|
+
attr_accessor :storage_array
|
39
|
+
|
40
|
+
# storage_family
|
41
|
+
attr_accessor :storage_family
|
42
|
+
|
43
|
+
attr_accessor :system_type
|
44
|
+
|
45
|
+
# uuid
|
46
|
+
attr_accessor :uuid
|
47
|
+
|
48
|
+
class EnumAttributeValidator
|
49
|
+
attr_reader :datatype
|
50
|
+
attr_reader :allowable_values
|
51
|
+
|
52
|
+
def initialize(datatype, allowable_values)
|
53
|
+
@allowable_values = allowable_values.map do |value|
|
54
|
+
case datatype.to_s
|
55
|
+
when /Integer/i
|
56
|
+
value.to_i
|
57
|
+
when /Float/i
|
58
|
+
value.to_f
|
59
|
+
else
|
60
|
+
value
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
def valid?(value)
|
66
|
+
!value || allowable_values.include?(value)
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
71
|
+
def self.attribute_map
|
72
|
+
{
|
73
|
+
:'auto_refresh' => :'auto_refresh',
|
74
|
+
:'component_state' => :'component_state',
|
75
|
+
:'enabled_capability_values' => :'enabled_capability_values',
|
76
|
+
:'management_ip' => :'management_ip',
|
77
|
+
:'name' => :'name',
|
78
|
+
:'status' => :'status',
|
79
|
+
:'storage_array' => :'storage_array',
|
80
|
+
:'storage_family' => :'storage_family',
|
81
|
+
:'system_type' => :'system_type',
|
82
|
+
:'uuid' => :'uuid'
|
83
|
+
}
|
84
|
+
end
|
85
|
+
|
86
|
+
# Returns all the JSON keys this model knows about
|
87
|
+
def self.acceptable_attributes
|
88
|
+
attribute_map.values
|
89
|
+
end
|
90
|
+
|
91
|
+
# Attribute type mapping.
|
92
|
+
def self.openapi_types
|
93
|
+
{
|
94
|
+
:'auto_refresh' => :'Boolean',
|
95
|
+
:'component_state' => :'String',
|
96
|
+
:'enabled_capability_values' => :'Array<ServiceAbstractCapabilityValue>',
|
97
|
+
:'management_ip' => :'String',
|
98
|
+
:'name' => :'String',
|
99
|
+
:'status' => :'String',
|
100
|
+
:'storage_array' => :'String',
|
101
|
+
:'storage_family' => :'String',
|
102
|
+
:'system_type' => :'SystemType',
|
103
|
+
:'uuid' => :'String'
|
104
|
+
}
|
105
|
+
end
|
106
|
+
|
107
|
+
# List of attributes with nullable: true
|
108
|
+
def self.openapi_nullable
|
109
|
+
Set.new([
|
110
|
+
])
|
111
|
+
end
|
112
|
+
|
113
|
+
# Initializes the object
|
114
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
115
|
+
def initialize(attributes = {})
|
116
|
+
if (!attributes.is_a?(Hash))
|
117
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `AutosdeOpenapiClient::StorageSystemResponse` initialize method"
|
118
|
+
end
|
119
|
+
|
120
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
121
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
122
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
123
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `AutosdeOpenapiClient::StorageSystemResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
124
|
+
end
|
125
|
+
h[k.to_sym] = v
|
126
|
+
}
|
127
|
+
|
128
|
+
if attributes.key?(:'auto_refresh')
|
129
|
+
self.auto_refresh = attributes[:'auto_refresh']
|
130
|
+
else
|
131
|
+
self.auto_refresh = true
|
132
|
+
end
|
133
|
+
|
134
|
+
if attributes.key?(:'component_state')
|
135
|
+
self.component_state = attributes[:'component_state']
|
136
|
+
end
|
137
|
+
|
138
|
+
if attributes.key?(:'enabled_capability_values')
|
139
|
+
if (value = attributes[:'enabled_capability_values']).is_a?(Array)
|
140
|
+
self.enabled_capability_values = value
|
141
|
+
end
|
142
|
+
end
|
143
|
+
|
144
|
+
if attributes.key?(:'management_ip')
|
145
|
+
self.management_ip = attributes[:'management_ip']
|
146
|
+
end
|
147
|
+
|
148
|
+
if attributes.key?(:'name')
|
149
|
+
self.name = attributes[:'name']
|
150
|
+
end
|
151
|
+
|
152
|
+
if attributes.key?(:'status')
|
153
|
+
self.status = attributes[:'status']
|
154
|
+
end
|
155
|
+
|
156
|
+
if attributes.key?(:'storage_array')
|
157
|
+
self.storage_array = attributes[:'storage_array']
|
158
|
+
end
|
159
|
+
|
160
|
+
if attributes.key?(:'storage_family')
|
161
|
+
self.storage_family = attributes[:'storage_family']
|
162
|
+
end
|
163
|
+
|
164
|
+
if attributes.key?(:'system_type')
|
165
|
+
self.system_type = attributes[:'system_type']
|
166
|
+
end
|
167
|
+
|
168
|
+
if attributes.key?(:'uuid')
|
169
|
+
self.uuid = attributes[:'uuid']
|
170
|
+
end
|
171
|
+
end
|
172
|
+
|
173
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
174
|
+
# @return Array for valid properties with the reasons
|
175
|
+
def list_invalid_properties
|
176
|
+
invalid_properties = Array.new
|
177
|
+
if !@component_state.nil? && @component_state.to_s.length > 32
|
178
|
+
invalid_properties.push('invalid value for "component_state", the character length must be smaller than or equal to 32.')
|
179
|
+
end
|
180
|
+
|
181
|
+
invalid_properties
|
182
|
+
end
|
183
|
+
|
184
|
+
# Check to see if the all the properties in the model are valid
|
185
|
+
# @return true if the model is valid
|
186
|
+
def valid?
|
187
|
+
component_state_validator = EnumAttributeValidator.new('String', ["PENDING_CREATION", "CREATED", "DELETED", "PENDING_DELETION", "MODIFICATION", "PENDING_MODIFICATION"])
|
188
|
+
return false unless component_state_validator.valid?(@component_state)
|
189
|
+
return false if !@component_state.nil? && @component_state.to_s.length > 32
|
190
|
+
storage_family_validator = EnumAttributeValidator.new('String', ["", "ontap_7mode", "ontap_cluster"])
|
191
|
+
return false unless storage_family_validator.valid?(@storage_family)
|
192
|
+
true
|
193
|
+
end
|
194
|
+
|
195
|
+
# Custom attribute writer method checking allowed values (enum).
|
196
|
+
# @param [Object] component_state Object to be assigned
|
197
|
+
def component_state=(component_state)
|
198
|
+
validator = EnumAttributeValidator.new('String', ["PENDING_CREATION", "CREATED", "DELETED", "PENDING_DELETION", "MODIFICATION", "PENDING_MODIFICATION"])
|
199
|
+
unless validator.valid?(component_state)
|
200
|
+
fail ArgumentError, "invalid value for \"component_state\", must be one of #{validator.allowable_values}."
|
201
|
+
end
|
202
|
+
@component_state = component_state
|
203
|
+
end
|
204
|
+
|
205
|
+
# Custom attribute writer method checking allowed values (enum).
|
206
|
+
# @param [Object] storage_family Object to be assigned
|
207
|
+
def storage_family=(storage_family)
|
208
|
+
validator = EnumAttributeValidator.new('String', ["", "ontap_7mode", "ontap_cluster"])
|
209
|
+
unless validator.valid?(storage_family)
|
210
|
+
fail ArgumentError, "invalid value for \"storage_family\", must be one of #{validator.allowable_values}."
|
211
|
+
end
|
212
|
+
@storage_family = storage_family
|
213
|
+
end
|
214
|
+
|
215
|
+
# Checks equality by comparing each attribute.
|
216
|
+
# @param [Object] Object to be compared
|
217
|
+
def ==(o)
|
218
|
+
return true if self.equal?(o)
|
219
|
+
self.class == o.class &&
|
220
|
+
auto_refresh == o.auto_refresh &&
|
221
|
+
component_state == o.component_state &&
|
222
|
+
enabled_capability_values == o.enabled_capability_values &&
|
223
|
+
management_ip == o.management_ip &&
|
224
|
+
name == o.name &&
|
225
|
+
status == o.status &&
|
226
|
+
storage_array == o.storage_array &&
|
227
|
+
storage_family == o.storage_family &&
|
228
|
+
system_type == o.system_type &&
|
229
|
+
uuid == o.uuid
|
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
|
+
[auto_refresh, component_state, enabled_capability_values, management_ip, name, status, storage_array, storage_family, system_type, uuid].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
|
@@ -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.14
|
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.14'
|
15
15
|
end
|
@@ -72,6 +72,7 @@ require 'autosde_openapi_client/models/storage_resource_response'
|
|
72
72
|
require 'autosde_openapi_client/models/storage_resource_update'
|
73
73
|
require 'autosde_openapi_client/models/storage_system'
|
74
74
|
require 'autosde_openapi_client/models/storage_system_create'
|
75
|
+
require 'autosde_openapi_client/models/storage_system_response'
|
75
76
|
require 'autosde_openapi_client/models/storage_system_update'
|
76
77
|
require 'autosde_openapi_client/models/system_type'
|
77
78
|
require 'autosde_openapi_client/models/system_type_create'
|
@@ -54,7 +54,7 @@ describe 'StorageSystemApi' do
|
|
54
54
|
# unit tests for storage_systems_pk_get
|
55
55
|
# @param pk
|
56
56
|
# @param [Hash] opts the optional parameters
|
57
|
-
# @return [
|
57
|
+
# @return [StorageSystemResponse]
|
58
58
|
describe 'storage_systems_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,96 @@
|
|
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::StorageSystemResponse
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe AutosdeOpenapiClient::StorageSystemResponse do
|
21
|
+
let(:instance) { AutosdeOpenapiClient::StorageSystemResponse.new }
|
22
|
+
|
23
|
+
describe 'test an instance of StorageSystemResponse' do
|
24
|
+
it 'should create an instance of StorageSystemResponse' do
|
25
|
+
expect(instance).to be_instance_of(AutosdeOpenapiClient::StorageSystemResponse)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "auto_refresh"' 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 "component_state"' do
|
35
|
+
it 'should work' do
|
36
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
37
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["PENDING_CREATION", "CREATED", "DELETED", "PENDING_DELETION", "MODIFICATION", "PENDING_MODIFICATION"])
|
38
|
+
# validator.allowable_values.each do |value|
|
39
|
+
# expect { instance.component_state = value }.not_to raise_error
|
40
|
+
# end
|
41
|
+
end
|
42
|
+
end
|
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
|
+
|
50
|
+
describe 'test attribute "management_ip"' 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 "status"' do
|
63
|
+
it 'should work' do
|
64
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
describe 'test attribute "storage_array"' 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 "storage_family"' do
|
75
|
+
it 'should work' do
|
76
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
77
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["", "ontap_7mode", "ontap_cluster"])
|
78
|
+
# validator.allowable_values.each do |value|
|
79
|
+
# expect { instance.storage_family = value }.not_to raise_error
|
80
|
+
# end
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
describe 'test attribute "system_type"' do
|
85
|
+
it 'should work' do
|
86
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
90
|
+
describe 'test attribute "uuid"' do
|
91
|
+
it 'should work' do
|
92
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
93
|
+
end
|
94
|
+
end
|
95
|
+
|
96
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: autosde_openapi_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenAPI-Generator
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-10-
|
11
|
+
date: 2022-10-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -145,6 +145,7 @@ files:
|
|
145
145
|
- docs/StorageSystem.md
|
146
146
|
- docs/StorageSystemApi.md
|
147
147
|
- docs/StorageSystemCreate.md
|
148
|
+
- docs/StorageSystemResponse.md
|
148
149
|
- docs/StorageSystemUpdate.md
|
149
150
|
- docs/SystemType.md
|
150
151
|
- docs/SystemTypeApi.md
|
@@ -256,6 +257,7 @@ files:
|
|
256
257
|
- lib/autosde_openapi_client/models/storage_resource_update.rb
|
257
258
|
- lib/autosde_openapi_client/models/storage_system.rb
|
258
259
|
- lib/autosde_openapi_client/models/storage_system_create.rb
|
260
|
+
- lib/autosde_openapi_client/models/storage_system_response.rb
|
259
261
|
- lib/autosde_openapi_client/models/storage_system_update.rb
|
260
262
|
- lib/autosde_openapi_client/models/system_type.rb
|
261
263
|
- lib/autosde_openapi_client/models/system_type_create.rb
|
@@ -359,6 +361,7 @@ files:
|
|
359
361
|
- spec/models/storage_resource_spec.rb
|
360
362
|
- spec/models/storage_resource_update_spec.rb
|
361
363
|
- spec/models/storage_system_create_spec.rb
|
364
|
+
- spec/models/storage_system_response_spec.rb
|
362
365
|
- spec/models/storage_system_spec.rb
|
363
366
|
- spec/models/storage_system_update_spec.rb
|
364
367
|
- spec/models/system_type_create_spec.rb
|
@@ -398,107 +401,108 @@ signing_key:
|
|
398
401
|
specification_version: 4
|
399
402
|
summary: Site Manager API Ruby Gem
|
400
403
|
test_files:
|
401
|
-
- spec/api/
|
402
|
-
- spec/api/
|
403
|
-
- spec/api/
|
404
|
+
- spec/api/volume_safe_delete_api_spec.rb
|
405
|
+
- spec/api/authentication_api_spec.rb
|
406
|
+
- spec/api/storage_resource_api_spec.rb
|
407
|
+
- spec/api/abstract_capability_api_spec.rb
|
408
|
+
- spec/api/snapshot_api_spec.rb
|
409
|
+
- spec/api/service_abstract_capability_value_api_spec.rb
|
410
|
+
- spec/api/storage_hosts_mapping_api_spec.rb
|
404
411
|
- spec/api/native_capability_api_spec.rb
|
405
|
-
- spec/api/
|
412
|
+
- spec/api/host_cluster_volume_mapping_api_spec.rb
|
406
413
|
- spec/api/profile_api_spec.rb
|
407
|
-
- spec/api/
|
408
|
-
- spec/api/host_volume_connection_api_spec.rb
|
409
|
-
- spec/api/storage_system_api_spec.rb
|
414
|
+
- spec/api/capability_translation_api_spec.rb
|
410
415
|
- spec/api/service_api_spec.rb
|
411
416
|
- spec/api/auto_sde_role_api_spec.rb
|
412
|
-
- spec/api/
|
417
|
+
- spec/api/host_cluster_membership_api_spec.rb
|
418
|
+
- spec/api/service_resource_attachment_api_spec.rb
|
419
|
+
- spec/api/user_api_spec.rb
|
413
420
|
- spec/api/job_api_spec.rb
|
414
421
|
- spec/api/volume_api_spec.rb
|
415
|
-
- spec/api/host_cluster_membership_api_spec.rb
|
416
|
-
- spec/api/storage_host_wwpn_candidates_api_spec.rb
|
417
|
-
- spec/api/account_api_spec.rb
|
418
|
-
- spec/api/storage_host_api_spec.rb
|
419
|
-
- spec/api/host_api_spec.rb
|
420
|
-
- spec/api/host_cluster_api_spec.rb
|
421
|
-
- spec/api/event_api_spec.rb
|
422
|
-
- spec/api/authentication_api_spec.rb
|
423
|
-
- spec/api/provisioning_strategy_api_spec.rb
|
424
|
-
- spec/api/snapshot_api_spec.rb
|
425
|
-
- spec/api/host_cluster_volume_mapping_api_spec.rb
|
426
422
|
- spec/api/auto_sde_project_api_spec.rb
|
427
423
|
- spec/api/validate_system_api_spec.rb
|
428
|
-
- spec/api/
|
429
|
-
- spec/api/
|
424
|
+
- spec/api/provisioning_strategy_api_spec.rb
|
425
|
+
- spec/api/system_type_api_spec.rb
|
426
|
+
- spec/api/storage_host_api_spec.rb
|
427
|
+
- spec/api/storage_host_wwpn_candidates_api_spec.rb
|
430
428
|
- spec/api/refresh_system_api_spec.rb
|
431
|
-
- spec/api/
|
432
|
-
- spec/api/
|
433
|
-
- spec/api/
|
429
|
+
- spec/api/host_api_spec.rb
|
430
|
+
- spec/api/address_api_spec.rb
|
431
|
+
- spec/api/account_api_spec.rb
|
432
|
+
- spec/api/event_api_spec.rb
|
433
|
+
- spec/api/celery_config_api_spec.rb
|
434
|
+
- spec/api/storage_system_api_spec.rb
|
435
|
+
- spec/api/host_cluster_api_spec.rb
|
436
|
+
- spec/api/host_volume_connection_api_spec.rb
|
434
437
|
- spec/api_client_spec.rb
|
435
438
|
- spec/configuration_spec.rb
|
436
|
-
- spec/models/
|
439
|
+
- spec/models/abstract_capability_response_spec.rb
|
440
|
+
- spec/models/native_capability_spec.rb
|
441
|
+
- spec/models/storage_system_update_spec.rb
|
442
|
+
- spec/models/storage_resource_spec.rb
|
443
|
+
- spec/models/async_response_spec.rb
|
444
|
+
- spec/models/host_cluster_volume_mapping_create_spec.rb
|
445
|
+
- spec/models/storage_resource_update_spec.rb
|
446
|
+
- spec/models/service_resource_attachment_spec.rb
|
447
|
+
- spec/models/storage_hosts_mapping_spec.rb
|
437
448
|
- spec/models/host_cluster_spec.rb
|
438
|
-
- spec/models/
|
449
|
+
- spec/models/service_abstract_capability_value_response_spec.rb
|
450
|
+
- spec/models/storage_host_wwpn_candidates_spec.rb
|
439
451
|
- spec/models/account_post_response_spec.rb
|
440
|
-
- spec/models/
|
441
|
-
- spec/models/
|
442
|
-
- spec/models/
|
452
|
+
- spec/models/user_create_spec.rb
|
453
|
+
- spec/models/storage_host_spec.rb
|
454
|
+
- spec/models/storage_system_response_spec.rb
|
455
|
+
- spec/models/service_abstract_capability_value_spec.rb
|
443
456
|
- spec/models/volume_spec.rb
|
457
|
+
- spec/models/auto_sde_role_spec.rb
|
458
|
+
- spec/models/host_cluster_volume_mapping_response_spec.rb
|
444
459
|
- spec/models/event_response_spec.rb
|
445
|
-
- spec/models/
|
460
|
+
- spec/models/user_spec.rb
|
461
|
+
- spec/models/host_create_spec.rb
|
462
|
+
- spec/models/event_spec.rb
|
463
|
+
- spec/models/storage_system_create_spec.rb
|
464
|
+
- spec/models/authentication_spec.rb
|
465
|
+
- spec/models/provisioning_strategy_spec.rb
|
466
|
+
- spec/models/job_spec.rb
|
467
|
+
- spec/models/storage_resource_response_spec.rb
|
468
|
+
- spec/models/host_volume_connection_create_spec.rb
|
469
|
+
- spec/models/auto_sde_project_spec.rb
|
470
|
+
- spec/models/system_type_spec.rb
|
471
|
+
- spec/models/storage_resource_create_spec.rb
|
472
|
+
- spec/models/auth_response_spec.rb
|
473
|
+
- spec/models/capability_translation_spec.rb
|
474
|
+
- spec/models/abstract_capability_spec.rb
|
475
|
+
- spec/models/host_cluster_response_spec.rb
|
446
476
|
- spec/models/storage_host_response_spec.rb
|
477
|
+
- spec/models/storage_host_create_spec.rb
|
478
|
+
- spec/models/validate_system_spec.rb
|
479
|
+
- spec/models/storage_hosts_mapping_response_spec.rb
|
480
|
+
- spec/models/host_volume_connection_spec.rb
|
481
|
+
- spec/models/host_spec.rb
|
482
|
+
- spec/models/storage_hosts_mapping_create_spec.rb
|
483
|
+
- spec/models/profile_spec.rb
|
484
|
+
- spec/models/service_spec.rb
|
485
|
+
- spec/models/user_update_spec.rb
|
447
486
|
- spec/models/volume_update_spec.rb
|
487
|
+
- spec/models/celery_config_spec.rb
|
488
|
+
- spec/models/volume_create_spec.rb
|
448
489
|
- spec/models/address_spec.rb
|
449
|
-
- spec/models/storage_resource_create_spec.rb
|
450
|
-
- spec/models/host_cluster_membership_spec.rb
|
451
|
-
- spec/models/storage_host_spec.rb
|
452
490
|
- spec/models/system_type_create_spec.rb
|
453
|
-
- spec/models/service_abstract_capability_value_spec.rb
|
454
|
-
- spec/models/storage_system_create_spec.rb
|
455
|
-
- spec/models/storage_resource_spec.rb
|
456
|
-
- spec/models/user_update_spec.rb
|
457
|
-
- spec/models/async_response_spec.rb
|
458
|
-
- spec/models/volume_safe_delete_create_spec.rb
|
459
|
-
- spec/models/job_create_spec.rb
|
460
|
-
- spec/models/host_create_spec.rb
|
461
491
|
- spec/models/host_cluster_volume_mapping_spec.rb
|
462
|
-
- spec/models/
|
492
|
+
- spec/models/snapshot_spec.rb
|
493
|
+
- spec/models/storage_host_update_spec.rb
|
463
494
|
- spec/models/account_spec.rb
|
464
|
-
- spec/models/storage_resource_response_spec.rb
|
465
|
-
- spec/models/account_post_request_spec.rb
|
466
|
-
- spec/models/host_volume_connection_spec.rb
|
467
|
-
- spec/models/host_cluster_create_spec.rb
|
468
|
-
- spec/models/validate_system_spec.rb
|
469
|
-
- spec/models/system_type_spec.rb
|
470
|
-
- spec/models/refresh_system_spec.rb
|
471
495
|
- spec/models/volume_safe_delete_spec.rb
|
472
|
-
- spec/models/
|
473
|
-
- spec/models/
|
474
|
-
- spec/models/
|
475
|
-
- spec/models/
|
476
|
-
- spec/models/
|
477
|
-
- spec/models/celery_config_spec.rb
|
478
|
-
- spec/models/profile_spec.rb
|
479
|
-
- spec/models/auto_sde_role_spec.rb
|
480
|
-
- spec/models/storage_resource_update_spec.rb
|
496
|
+
- spec/models/address_create_spec.rb
|
497
|
+
- spec/models/volume_safe_delete_create_spec.rb
|
498
|
+
- spec/models/capability_translation_create_spec.rb
|
499
|
+
- spec/models/host_cluster_membership_spec.rb
|
500
|
+
- spec/models/job_create_spec.rb
|
481
501
|
- spec/models/volume_response_spec.rb
|
482
|
-
- spec/models/
|
483
|
-
- spec/models/
|
502
|
+
- spec/models/host_cluster_create_spec.rb
|
503
|
+
- spec/models/refresh_system_spec.rb
|
484
504
|
- spec/models/snapshot_create_spec.rb
|
485
|
-
- spec/models/
|
486
|
-
- spec/models/service_abstract_capability_value_response_spec.rb
|
487
|
-
- spec/models/abstract_capability_spec.rb
|
488
|
-
- spec/models/user_spec.rb
|
489
|
-
- spec/models/authentication_spec.rb
|
490
|
-
- spec/models/service_resource_attachment_spec.rb
|
491
|
-
- spec/models/capability_translation_create_spec.rb
|
505
|
+
- spec/models/service_create_spec.rb
|
492
506
|
- spec/models/storage_system_spec.rb
|
493
|
-
- spec/models/
|
494
|
-
- spec/models/auto_sde_project_spec.rb
|
495
|
-
- spec/models/job_spec.rb
|
496
|
-
- spec/models/volume_create_spec.rb
|
497
|
-
- spec/models/service_spec.rb
|
498
|
-
- spec/models/host_spec.rb
|
499
|
-
- spec/models/storage_system_update_spec.rb
|
500
|
-
- spec/models/provisioning_strategy_spec.rb
|
501
|
-
- spec/models/abstract_capability_response_spec.rb
|
502
|
-
- spec/models/snapshot_spec.rb
|
503
|
-
- spec/models/user_create_spec.rb
|
507
|
+
- spec/models/account_post_request_spec.rb
|
504
508
|
- spec/spec_helper.rb
|