autosde_openapi_client 2.4.0 → 2.4.1
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/SnapshotApi.md +8 -8
- data/docs/SnapshotResponse.md +24 -0
- data/lib/autosde_openapi_client/api/snapshot_api.rb +6 -6
- data/lib/autosde_openapi_client/models/snapshot_response.rb +289 -0
- data/lib/autosde_openapi_client/version.rb +2 -2
- data/lib/autosde_openapi_client.rb +1 -0
- data/spec/api/snapshot_api_spec.rb +2 -2
- data/spec/models/snapshot_response_spec.rb +56 -0
- metadata +90 -86
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3f0b763d3a50965b5c69089ecf4f95469325f101fd802b398e6877d6e72e21ce
|
4
|
+
data.tar.gz: 7f0a1e2b26d8a219d5876b8e9d85364fdb0afe5476218b1e51f7cc2896c37b69
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: baa1c00b9065921f55207e0e23f784c572f0a143a6276b6fb5aca49b8dd6f1980302b7b4fd6839a2bc1df62cb46f72d04623207d12a97d18c6e48bf776b350ca
|
7
|
+
data.tar.gz: 2e3667f1132ae8fcb51af37c5e3de4d49dfd14c0f1d746db0abb36d31445c76a40a74eb9c28c3533a20a7beb62a5fea91ed8800dc9a2e9be189218bff6e77789
|
data/README.md
CHANGED
@@ -248,6 +248,7 @@ Class | Method | HTTP request | Description
|
|
248
248
|
- [AutosdeOpenapiClient::ServiceResponse](docs/ServiceResponse.md)
|
249
249
|
- [AutosdeOpenapiClient::Snapshot](docs/Snapshot.md)
|
250
250
|
- [AutosdeOpenapiClient::SnapshotCreate](docs/SnapshotCreate.md)
|
251
|
+
- [AutosdeOpenapiClient::SnapshotResponse](docs/SnapshotResponse.md)
|
251
252
|
- [AutosdeOpenapiClient::StorageHost](docs/StorageHost.md)
|
252
253
|
- [AutosdeOpenapiClient::StorageHostCreate](docs/StorageHostCreate.md)
|
253
254
|
- [AutosdeOpenapiClient::StorageHostResponse](docs/StorageHostResponse.md)
|
data/docs/SnapshotApi.md
CHANGED
@@ -12,7 +12,7 @@ All URIs are relative to *http://localhost:9000/site-manager/api/v1/engine*
|
|
12
12
|
|
13
13
|
## snapshots_get
|
14
14
|
|
15
|
-
> <Array<
|
15
|
+
> <Array<SnapshotResponse>> snapshots_get
|
16
16
|
|
17
17
|
|
18
18
|
|
@@ -42,7 +42,7 @@ end
|
|
42
42
|
|
43
43
|
This returns an Array which contains the response data, status code and headers.
|
44
44
|
|
45
|
-
> <Array(<Array<
|
45
|
+
> <Array(<Array<SnapshotResponse>>, Integer, Hash)> snapshots_get_with_http_info
|
46
46
|
|
47
47
|
```ruby
|
48
48
|
begin
|
@@ -50,7 +50,7 @@ begin
|
|
50
50
|
data, status_code, headers = api_instance.snapshots_get_with_http_info
|
51
51
|
p status_code # => 2xx
|
52
52
|
p headers # => { ... }
|
53
|
-
p data # => <Array<
|
53
|
+
p data # => <Array<SnapshotResponse>>
|
54
54
|
rescue AutosdeOpenapiClient::ApiError => e
|
55
55
|
puts "Error when calling SnapshotApi->snapshots_get_with_http_info: #{e}"
|
56
56
|
end
|
@@ -62,7 +62,7 @@ This endpoint does not need any parameter.
|
|
62
62
|
|
63
63
|
### Return type
|
64
64
|
|
65
|
-
[**Array<
|
65
|
+
[**Array<SnapshotResponse>**](SnapshotResponse.md)
|
66
66
|
|
67
67
|
### Authorization
|
68
68
|
|
@@ -143,7 +143,7 @@ end
|
|
143
143
|
|
144
144
|
## snapshots_pk_get
|
145
145
|
|
146
|
-
> <
|
146
|
+
> <SnapshotResponse> snapshots_pk_get(pk)
|
147
147
|
|
148
148
|
|
149
149
|
|
@@ -174,7 +174,7 @@ end
|
|
174
174
|
|
175
175
|
This returns an Array which contains the response data, status code and headers.
|
176
176
|
|
177
|
-
> <Array(<
|
177
|
+
> <Array(<SnapshotResponse>, Integer, Hash)> snapshots_pk_get_with_http_info(pk)
|
178
178
|
|
179
179
|
```ruby
|
180
180
|
begin
|
@@ -182,7 +182,7 @@ begin
|
|
182
182
|
data, status_code, headers = api_instance.snapshots_pk_get_with_http_info(pk)
|
183
183
|
p status_code # => 2xx
|
184
184
|
p headers # => { ... }
|
185
|
-
p data # => <
|
185
|
+
p data # => <SnapshotResponse>
|
186
186
|
rescue AutosdeOpenapiClient::ApiError => e
|
187
187
|
puts "Error when calling SnapshotApi->snapshots_pk_get_with_http_info: #{e}"
|
188
188
|
end
|
@@ -196,7 +196,7 @@ end
|
|
196
196
|
|
197
197
|
### Return type
|
198
198
|
|
199
|
-
[**
|
199
|
+
[**SnapshotResponse**](SnapshotResponse.md)
|
200
200
|
|
201
201
|
### Authorization
|
202
202
|
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# AutosdeOpenapiClient::SnapshotResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **component_state** | **String** | component_state | [optional] |
|
8
|
+
| **description** | **String** | description | [optional] |
|
9
|
+
| **name** | **String** | name | [optional] |
|
10
|
+
| **volume** | **String** | !!uuid of volume | [optional] |
|
11
|
+
|
12
|
+
## Example
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'autosde_openapi_client'
|
16
|
+
|
17
|
+
instance = AutosdeOpenapiClient::SnapshotResponse.new(
|
18
|
+
component_state: null,
|
19
|
+
description: null,
|
20
|
+
name: null,
|
21
|
+
volume: null
|
22
|
+
)
|
23
|
+
```
|
24
|
+
|
@@ -20,14 +20,14 @@ module AutosdeOpenapiClient
|
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
22
|
# @param [Hash] opts the optional parameters
|
23
|
-
# @return [Array<
|
23
|
+
# @return [Array<SnapshotResponse>]
|
24
24
|
def snapshots_get(opts = {})
|
25
25
|
data, _status_code, _headers = snapshots_get_with_http_info(opts)
|
26
26
|
data
|
27
27
|
end
|
28
28
|
|
29
29
|
# @param [Hash] opts the optional parameters
|
30
|
-
# @return [Array<(Array<
|
30
|
+
# @return [Array<(Array<SnapshotResponse>, Integer, Hash)>] Array<SnapshotResponse> data, response status code and response headers
|
31
31
|
def snapshots_get_with_http_info(opts = {})
|
32
32
|
if @api_client.config.debugging
|
33
33
|
@api_client.config.logger.debug 'Calling API: SnapshotApi.snapshots_get ...'
|
@@ -50,7 +50,7 @@ module AutosdeOpenapiClient
|
|
50
50
|
post_body = opts[:debug_body]
|
51
51
|
|
52
52
|
# return_type
|
53
|
-
return_type = opts[:debug_return_type] || 'Array<
|
53
|
+
return_type = opts[:debug_return_type] || 'Array<SnapshotResponse>'
|
54
54
|
|
55
55
|
# auth_names
|
56
56
|
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
@@ -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 [SnapshotResponse]
|
137
137
|
def snapshots_pk_get(pk, opts = {})
|
138
138
|
data, _status_code, _headers = snapshots_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<(SnapshotResponse, Integer, Hash)>] SnapshotResponse data, response status code and response headers
|
145
145
|
def snapshots_pk_get_with_http_info(pk, opts = {})
|
146
146
|
if @api_client.config.debugging
|
147
147
|
@api_client.config.logger.debug 'Calling API: SnapshotApi.snapshots_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] || 'SnapshotResponse'
|
172
172
|
|
173
173
|
# auth_names
|
174
174
|
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
@@ -0,0 +1,289 @@
|
|
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 SnapshotResponse
|
19
|
+
# component_state
|
20
|
+
attr_accessor :component_state
|
21
|
+
|
22
|
+
# description
|
23
|
+
attr_accessor :description
|
24
|
+
|
25
|
+
# name
|
26
|
+
attr_accessor :name
|
27
|
+
|
28
|
+
# !!uuid of volume
|
29
|
+
attr_accessor :volume
|
30
|
+
|
31
|
+
class EnumAttributeValidator
|
32
|
+
attr_reader :datatype
|
33
|
+
attr_reader :allowable_values
|
34
|
+
|
35
|
+
def initialize(datatype, allowable_values)
|
36
|
+
@allowable_values = allowable_values.map do |value|
|
37
|
+
case datatype.to_s
|
38
|
+
when /Integer/i
|
39
|
+
value.to_i
|
40
|
+
when /Float/i
|
41
|
+
value.to_f
|
42
|
+
else
|
43
|
+
value
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
def valid?(value)
|
49
|
+
!value || allowable_values.include?(value)
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
54
|
+
def self.attribute_map
|
55
|
+
{
|
56
|
+
:'component_state' => :'component_state',
|
57
|
+
:'description' => :'description',
|
58
|
+
:'name' => :'name',
|
59
|
+
:'volume' => :'volume'
|
60
|
+
}
|
61
|
+
end
|
62
|
+
|
63
|
+
# Returns all the JSON keys this model knows about
|
64
|
+
def self.acceptable_attributes
|
65
|
+
attribute_map.values
|
66
|
+
end
|
67
|
+
|
68
|
+
# Attribute type mapping.
|
69
|
+
def self.openapi_types
|
70
|
+
{
|
71
|
+
:'component_state' => :'String',
|
72
|
+
:'description' => :'String',
|
73
|
+
:'name' => :'String',
|
74
|
+
:'volume' => :'String'
|
75
|
+
}
|
76
|
+
end
|
77
|
+
|
78
|
+
# List of attributes with nullable: true
|
79
|
+
def self.openapi_nullable
|
80
|
+
Set.new([
|
81
|
+
])
|
82
|
+
end
|
83
|
+
|
84
|
+
# Initializes the object
|
85
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
86
|
+
def initialize(attributes = {})
|
87
|
+
if (!attributes.is_a?(Hash))
|
88
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `AutosdeOpenapiClient::SnapshotResponse` initialize method"
|
89
|
+
end
|
90
|
+
|
91
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
92
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
93
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
94
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `AutosdeOpenapiClient::SnapshotResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
95
|
+
end
|
96
|
+
h[k.to_sym] = v
|
97
|
+
}
|
98
|
+
|
99
|
+
if attributes.key?(:'component_state')
|
100
|
+
self.component_state = attributes[:'component_state']
|
101
|
+
end
|
102
|
+
|
103
|
+
if attributes.key?(:'description')
|
104
|
+
self.description = attributes[:'description']
|
105
|
+
end
|
106
|
+
|
107
|
+
if attributes.key?(:'name')
|
108
|
+
self.name = attributes[:'name']
|
109
|
+
end
|
110
|
+
|
111
|
+
if attributes.key?(:'volume')
|
112
|
+
self.volume = attributes[:'volume']
|
113
|
+
end
|
114
|
+
end
|
115
|
+
|
116
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
117
|
+
# @return Array for valid properties with the reasons
|
118
|
+
def list_invalid_properties
|
119
|
+
invalid_properties = Array.new
|
120
|
+
if !@component_state.nil? && @component_state.to_s.length > 32
|
121
|
+
invalid_properties.push('invalid value for "component_state", the character length must be smaller than or equal to 32.')
|
122
|
+
end
|
123
|
+
|
124
|
+
invalid_properties
|
125
|
+
end
|
126
|
+
|
127
|
+
# Check to see if the all the properties in the model are valid
|
128
|
+
# @return true if the model is valid
|
129
|
+
def valid?
|
130
|
+
component_state_validator = EnumAttributeValidator.new('String', ["PENDING_CREATION", "CREATED", "DELETED", "PENDING_DELETION", "MODIFICATION", "PENDING_MODIFICATION"])
|
131
|
+
return false unless component_state_validator.valid?(@component_state)
|
132
|
+
return false if !@component_state.nil? && @component_state.to_s.length > 32
|
133
|
+
true
|
134
|
+
end
|
135
|
+
|
136
|
+
# Custom attribute writer method checking allowed values (enum).
|
137
|
+
# @param [Object] component_state Object to be assigned
|
138
|
+
def component_state=(component_state)
|
139
|
+
validator = EnumAttributeValidator.new('String', ["PENDING_CREATION", "CREATED", "DELETED", "PENDING_DELETION", "MODIFICATION", "PENDING_MODIFICATION"])
|
140
|
+
unless validator.valid?(component_state)
|
141
|
+
fail ArgumentError, "invalid value for \"component_state\", must be one of #{validator.allowable_values}."
|
142
|
+
end
|
143
|
+
@component_state = component_state
|
144
|
+
end
|
145
|
+
|
146
|
+
# Checks equality by comparing each attribute.
|
147
|
+
# @param [Object] Object to be compared
|
148
|
+
def ==(o)
|
149
|
+
return true if self.equal?(o)
|
150
|
+
self.class == o.class &&
|
151
|
+
component_state == o.component_state &&
|
152
|
+
description == o.description &&
|
153
|
+
name == o.name &&
|
154
|
+
volume == o.volume
|
155
|
+
end
|
156
|
+
|
157
|
+
# @see the `==` method
|
158
|
+
# @param [Object] Object to be compared
|
159
|
+
def eql?(o)
|
160
|
+
self == o
|
161
|
+
end
|
162
|
+
|
163
|
+
# Calculates hash code according to all attributes.
|
164
|
+
# @return [Integer] Hash code
|
165
|
+
def hash
|
166
|
+
[component_state, description, name, volume].hash
|
167
|
+
end
|
168
|
+
|
169
|
+
# Builds the object from hash
|
170
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
171
|
+
# @return [Object] Returns the model itself
|
172
|
+
def self.build_from_hash(attributes)
|
173
|
+
new.build_from_hash(attributes)
|
174
|
+
end
|
175
|
+
|
176
|
+
# Builds the object from hash
|
177
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
178
|
+
# @return [Object] Returns the model itself
|
179
|
+
def build_from_hash(attributes)
|
180
|
+
return nil unless attributes.is_a?(Hash)
|
181
|
+
self.class.openapi_types.each_pair do |key, type|
|
182
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
183
|
+
self.send("#{key}=", nil)
|
184
|
+
elsif type =~ /\AArray<(.*)>/i
|
185
|
+
# check to ensure the input is an array given that the attribute
|
186
|
+
# is documented as an array but the input is not
|
187
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
188
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
189
|
+
end
|
190
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
191
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
192
|
+
end
|
193
|
+
end
|
194
|
+
|
195
|
+
self
|
196
|
+
end
|
197
|
+
|
198
|
+
# Deserializes the data based on type
|
199
|
+
# @param string type Data type
|
200
|
+
# @param string value Value to be deserialized
|
201
|
+
# @return [Object] Deserialized data
|
202
|
+
def _deserialize(type, value)
|
203
|
+
case type.to_sym
|
204
|
+
when :Time
|
205
|
+
Time.parse(value)
|
206
|
+
when :Date
|
207
|
+
Date.parse(value)
|
208
|
+
when :String
|
209
|
+
value.to_s
|
210
|
+
when :Integer
|
211
|
+
value.to_i
|
212
|
+
when :Float
|
213
|
+
value.to_f
|
214
|
+
when :Boolean
|
215
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
216
|
+
true
|
217
|
+
else
|
218
|
+
false
|
219
|
+
end
|
220
|
+
when :Object
|
221
|
+
# generic object (usually a Hash), return directly
|
222
|
+
value
|
223
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
224
|
+
inner_type = Regexp.last_match[:inner_type]
|
225
|
+
value.map { |v| _deserialize(inner_type, v) }
|
226
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
227
|
+
k_type = Regexp.last_match[:k_type]
|
228
|
+
v_type = Regexp.last_match[:v_type]
|
229
|
+
{}.tap do |hash|
|
230
|
+
value.each do |k, v|
|
231
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
232
|
+
end
|
233
|
+
end
|
234
|
+
else # model
|
235
|
+
# models (e.g. Pet) or oneOf
|
236
|
+
klass = AutosdeOpenapiClient.const_get(type)
|
237
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
238
|
+
end
|
239
|
+
end
|
240
|
+
|
241
|
+
# Returns the string representation of the object
|
242
|
+
# @return [String] String presentation of the object
|
243
|
+
def to_s
|
244
|
+
to_hash.to_s
|
245
|
+
end
|
246
|
+
|
247
|
+
# to_body is an alias to to_hash (backward compatibility)
|
248
|
+
# @return [Hash] Returns the object in the form of hash
|
249
|
+
def to_body
|
250
|
+
to_hash
|
251
|
+
end
|
252
|
+
|
253
|
+
# Returns the object in the form of hash
|
254
|
+
# @return [Hash] Returns the object in the form of hash
|
255
|
+
def to_hash
|
256
|
+
hash = {}
|
257
|
+
self.class.attribute_map.each_pair do |attr, param|
|
258
|
+
value = self.send(attr)
|
259
|
+
if value.nil?
|
260
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
261
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
262
|
+
end
|
263
|
+
|
264
|
+
hash[param] = _to_hash(value)
|
265
|
+
end
|
266
|
+
hash
|
267
|
+
end
|
268
|
+
|
269
|
+
# Outputs non-array value in the form of hash
|
270
|
+
# For object, use to_hash. Otherwise, just return the value
|
271
|
+
# @param [Object] value Any valid value
|
272
|
+
# @return [Hash] Returns the value in the form of hash
|
273
|
+
def _to_hash(value)
|
274
|
+
if value.is_a?(Array)
|
275
|
+
value.compact.map { |v| _to_hash(v) }
|
276
|
+
elsif value.is_a?(Hash)
|
277
|
+
{}.tap do |hash|
|
278
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
279
|
+
end
|
280
|
+
elsif value.respond_to? :to_hash
|
281
|
+
value.to_hash
|
282
|
+
else
|
283
|
+
value
|
284
|
+
end
|
285
|
+
end
|
286
|
+
|
287
|
+
end
|
288
|
+
|
289
|
+
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Site Manager API
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 2.4.
|
6
|
+
The version of the OpenAPI document: 2.4.1
|
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.4.
|
14
|
+
VERSION = '2.4.1'
|
15
15
|
end
|
@@ -60,6 +60,7 @@ require 'autosde_openapi_client/models/service_resource_attachment_response'
|
|
60
60
|
require 'autosde_openapi_client/models/service_response'
|
61
61
|
require 'autosde_openapi_client/models/snapshot'
|
62
62
|
require 'autosde_openapi_client/models/snapshot_create'
|
63
|
+
require 'autosde_openapi_client/models/snapshot_response'
|
63
64
|
require 'autosde_openapi_client/models/storage_host'
|
64
65
|
require 'autosde_openapi_client/models/storage_host_create'
|
65
66
|
require 'autosde_openapi_client/models/storage_host_response'
|
@@ -34,7 +34,7 @@ describe 'SnapshotApi' do
|
|
34
34
|
|
35
35
|
# unit tests for snapshots_get
|
36
36
|
# @param [Hash] opts the optional parameters
|
37
|
-
# @return [Array<
|
37
|
+
# @return [Array<SnapshotResponse>]
|
38
38
|
describe 'snapshots_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 'SnapshotApi' do
|
|
54
54
|
# unit tests for snapshots_pk_get
|
55
55
|
# @param pk
|
56
56
|
# @param [Hash] opts the optional parameters
|
57
|
-
# @return [
|
57
|
+
# @return [SnapshotResponse]
|
58
58
|
describe 'snapshots_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,56 @@
|
|
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::SnapshotResponse
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe AutosdeOpenapiClient::SnapshotResponse do
|
21
|
+
let(:instance) { AutosdeOpenapiClient::SnapshotResponse.new }
|
22
|
+
|
23
|
+
describe 'test an instance of SnapshotResponse' do
|
24
|
+
it 'should create an instance of SnapshotResponse' do
|
25
|
+
expect(instance).to be_instance_of(AutosdeOpenapiClient::SnapshotResponse)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "component_state"' 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', ["PENDING_CREATION", "CREATED", "DELETED", "PENDING_DELETION", "MODIFICATION", "PENDING_MODIFICATION"])
|
32
|
+
# validator.allowable_values.each do |value|
|
33
|
+
# expect { instance.component_state = value }.not_to raise_error
|
34
|
+
# end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
describe 'test attribute "description"' 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
|
+
describe 'test attribute "name"' 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 "volume"' 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
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: autosde_openapi_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.4.
|
4
|
+
version: 2.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenAPI-Generator
|
@@ -128,6 +128,7 @@ files:
|
|
128
128
|
- docs/Snapshot.md
|
129
129
|
- docs/SnapshotApi.md
|
130
130
|
- docs/SnapshotCreate.md
|
131
|
+
- docs/SnapshotResponse.md
|
131
132
|
- docs/StorageHost.md
|
132
133
|
- docs/StorageHostApi.md
|
133
134
|
- docs/StorageHostCreate.md
|
@@ -247,6 +248,7 @@ files:
|
|
247
248
|
- lib/autosde_openapi_client/models/service_response.rb
|
248
249
|
- lib/autosde_openapi_client/models/snapshot.rb
|
249
250
|
- lib/autosde_openapi_client/models/snapshot_create.rb
|
251
|
+
- lib/autosde_openapi_client/models/snapshot_response.rb
|
250
252
|
- lib/autosde_openapi_client/models/storage_host.rb
|
251
253
|
- lib/autosde_openapi_client/models/storage_host_create.rb
|
252
254
|
- lib/autosde_openapi_client/models/storage_host_response.rb
|
@@ -353,6 +355,7 @@ files:
|
|
353
355
|
- spec/models/service_response_spec.rb
|
354
356
|
- spec/models/service_spec.rb
|
355
357
|
- spec/models/snapshot_create_spec.rb
|
358
|
+
- spec/models/snapshot_response_spec.rb
|
356
359
|
- spec/models/snapshot_spec.rb
|
357
360
|
- spec/models/storage_host_create_spec.rb
|
358
361
|
- spec/models/storage_host_response_spec.rb
|
@@ -407,110 +410,111 @@ signing_key:
|
|
407
410
|
specification_version: 4
|
408
411
|
summary: Site Manager API Ruby Gem
|
409
412
|
test_files:
|
410
|
-
- spec/api/
|
411
|
-
- spec/api/
|
412
|
-
- spec/api/
|
413
|
-
- spec/api/
|
414
|
-
- spec/api/
|
413
|
+
- spec/api/volume_api_spec.rb
|
414
|
+
- spec/api/host_api_spec.rb
|
415
|
+
- spec/api/profile_api_spec.rb
|
416
|
+
- spec/api/service_abstract_capability_value_api_spec.rb
|
417
|
+
- spec/api/storage_hosts_mapping_api_spec.rb
|
418
|
+
- spec/api/celery_config_api_spec.rb
|
415
419
|
- spec/api/auto_sde_project_api_spec.rb
|
416
|
-
- spec/api/
|
417
|
-
- spec/api/service_resource_attachment_api_spec.rb
|
420
|
+
- spec/api/storage_host_wwpn_candidates_api_spec.rb
|
418
421
|
- spec/api/snapshot_api_spec.rb
|
419
|
-
- spec/api/
|
422
|
+
- spec/api/refresh_system_api_spec.rb
|
423
|
+
- spec/api/event_api_spec.rb
|
424
|
+
- spec/api/storage_host_api_spec.rb
|
425
|
+
- spec/api/auto_sde_role_api_spec.rb
|
426
|
+
- spec/api/validate_system_api_spec.rb
|
427
|
+
- spec/api/user_api_spec.rb
|
420
428
|
- spec/api/abstract_capability_api_spec.rb
|
421
|
-
- spec/api/host_cluster_volume_mapping_api_spec.rb
|
422
|
-
- spec/api/job_api_spec.rb
|
423
|
-
- spec/api/native_capability_api_spec.rb
|
424
429
|
- spec/api/storage_system_api_spec.rb
|
425
|
-
- spec/api/
|
426
|
-
- spec/api/host_cluster_api_spec.rb
|
427
|
-
- spec/api/provisioning_strategy_api_spec.rb
|
428
|
-
- spec/api/storage_resource_api_spec.rb
|
429
|
-
- spec/api/storage_host_wwpn_candidates_api_spec.rb
|
430
|
-
- spec/api/system_type_api_spec.rb
|
431
|
-
- spec/api/account_api_spec.rb
|
432
|
-
- spec/api/service_abstract_capability_value_api_spec.rb
|
433
|
-
- spec/api/profile_api_spec.rb
|
434
|
-
- spec/api/refresh_system_api_spec.rb
|
430
|
+
- spec/api/capability_translation_api_spec.rb
|
435
431
|
- spec/api/host_cluster_membership_api_spec.rb
|
436
|
-
- spec/api/validate_system_api_spec.rb
|
437
|
-
- spec/api/volume_clone_api_spec.rb
|
438
|
-
- spec/api/volume_api_spec.rb
|
439
432
|
- spec/api/authentication_api_spec.rb
|
440
|
-
- spec/api/storage_hosts_mapping_api_spec.rb
|
441
|
-
- spec/api/host_api_spec.rb
|
442
433
|
- spec/api/service_api_spec.rb
|
434
|
+
- spec/api/volume_clone_api_spec.rb
|
435
|
+
- spec/api/host_cluster_api_spec.rb
|
436
|
+
- spec/api/native_capability_api_spec.rb
|
437
|
+
- spec/api/system_type_api_spec.rb
|
438
|
+
- spec/api/address_api_spec.rb
|
439
|
+
- spec/api/service_resource_attachment_api_spec.rb
|
440
|
+
- spec/api/host_volume_connection_api_spec.rb
|
441
|
+
- spec/api/provisioning_strategy_api_spec.rb
|
442
|
+
- spec/api/job_api_spec.rb
|
443
|
+
- spec/api/account_api_spec.rb
|
444
|
+
- spec/api/host_cluster_volume_mapping_api_spec.rb
|
445
|
+
- spec/api/storage_resource_api_spec.rb
|
443
446
|
- spec/api_client_spec.rb
|
444
447
|
- spec/configuration_spec.rb
|
448
|
+
- spec/models/storage_hosts_mapping_create_spec.rb
|
449
|
+
- spec/models/volume_clone_spec.rb
|
450
|
+
- spec/models/event_response_spec.rb
|
451
|
+
- spec/models/account_spec.rb
|
452
|
+
- spec/models/volume_update_spec.rb
|
453
|
+
- spec/models/storage_system_create_spec.rb
|
454
|
+
- spec/models/system_type_create_spec.rb
|
445
455
|
- spec/models/storage_hosts_mapping_response_spec.rb
|
446
|
-
- spec/models/
|
447
|
-
- spec/models/snapshot_spec.rb
|
448
|
-
- spec/models/celery_config_spec.rb
|
449
|
-
- spec/models/account_post_response_spec.rb
|
450
|
-
- spec/models/storage_host_spec.rb
|
451
|
-
- spec/models/host_cluster_volume_mapping_create_spec.rb
|
452
|
-
- spec/models/service_spec.rb
|
453
|
-
- spec/models/async_response_spec.rb
|
454
|
-
- spec/models/system_type_spec.rb
|
455
|
-
- spec/models/host_cluster_membership_spec.rb
|
456
|
-
- spec/models/service_create_spec.rb
|
456
|
+
- spec/models/user_spec.rb
|
457
457
|
- spec/models/storage_resource_spec.rb
|
458
|
-
- spec/models/
|
459
|
-
- spec/models/
|
460
|
-
- spec/models/
|
458
|
+
- spec/models/storage_system_update_spec.rb
|
459
|
+
- spec/models/service_resource_attachment_spec.rb
|
460
|
+
- spec/models/service_resource_attachment_response_spec.rb
|
461
|
+
- spec/models/host_cluster_spec.rb
|
462
|
+
- spec/models/storage_hosts_mapping_spec.rb
|
463
|
+
- spec/models/storage_resource_create_spec.rb
|
464
|
+
- spec/models/host_cluster_volume_mapping_create_spec.rb
|
465
|
+
- spec/models/user_create_spec.rb
|
466
|
+
- spec/models/host_volume_connection_create_spec.rb
|
467
|
+
- spec/models/refresh_system_spec.rb
|
468
|
+
- spec/models/volume_spec.rb
|
469
|
+
- spec/models/auth_response_spec.rb
|
470
|
+
- spec/models/storage_host_create_spec.rb
|
471
|
+
- spec/models/auto_sde_role_spec.rb
|
461
472
|
- spec/models/authentication_spec.rb
|
462
|
-
- spec/models/
|
463
|
-
- spec/models/
|
464
|
-
- spec/models/
|
465
|
-
- spec/models/
|
473
|
+
- spec/models/address_spec.rb
|
474
|
+
- spec/models/celery_config_spec.rb
|
475
|
+
- spec/models/account_post_request_spec.rb
|
476
|
+
- spec/models/host_cluster_response_spec.rb
|
477
|
+
- spec/models/host_cluster_membership_spec.rb
|
466
478
|
- spec/models/system_type_response_spec.rb
|
467
|
-
- spec/models/
|
468
|
-
- spec/models/
|
479
|
+
- spec/models/storage_host_update_spec.rb
|
480
|
+
- spec/models/snapshot_response_spec.rb
|
469
481
|
- spec/models/event_spec.rb
|
470
|
-
- spec/models/
|
482
|
+
- spec/models/host_cluster_create_spec.rb
|
471
483
|
- spec/models/abstract_capability_spec.rb
|
472
|
-
- spec/models/
|
473
|
-
- spec/models/
|
474
|
-
- spec/models/storage_host_create_spec.rb
|
475
|
-
- spec/models/service_abstract_capability_value_response_spec.rb
|
476
|
-
- spec/models/host_spec.rb
|
477
|
-
- spec/models/profile_spec.rb
|
478
|
-
- spec/models/volume_clone_spec.rb
|
479
|
-
- spec/models/storage_hosts_mapping_spec.rb
|
480
|
-
- spec/models/auth_response_spec.rb
|
481
|
-
- spec/models/volume_spec.rb
|
482
|
-
- spec/models/capability_translation_create_spec.rb
|
484
|
+
- spec/models/account_post_response_spec.rb
|
485
|
+
- spec/models/capability_translation_spec.rb
|
483
486
|
- spec/models/service_response_spec.rb
|
484
|
-
- spec/models/
|
485
|
-
- spec/models/
|
487
|
+
- spec/models/storage_host_response_spec.rb
|
488
|
+
- spec/models/user_update_spec.rb
|
489
|
+
- spec/models/profile_spec.rb
|
490
|
+
- spec/models/job_create_spec.rb
|
491
|
+
- spec/models/host_volume_connection_spec.rb
|
492
|
+
- spec/models/snapshot_create_spec.rb
|
493
|
+
- spec/models/service_abstract_capability_value_response_spec.rb
|
494
|
+
- spec/models/snapshot_spec.rb
|
495
|
+
- spec/models/auto_sde_project_spec.rb
|
496
|
+
- spec/models/async_response_spec.rb
|
497
|
+
- spec/models/service_create_spec.rb
|
486
498
|
- spec/models/validate_system_spec.rb
|
499
|
+
- spec/models/service_spec.rb
|
500
|
+
- spec/models/host_cluster_volume_mapping_response_spec.rb
|
487
501
|
- spec/models/storage_host_wwpn_candidates_spec.rb
|
488
|
-
- spec/models/
|
489
|
-
- spec/models/storage_host_update_spec.rb
|
490
|
-
- spec/models/storage_resource_create_spec.rb
|
491
|
-
- spec/models/address_create_spec.rb
|
492
|
-
- spec/models/storage_system_create_spec.rb
|
502
|
+
- spec/models/storage_resource_update_spec.rb
|
493
503
|
- spec/models/volume_create_spec.rb
|
494
|
-
- spec/models/
|
495
|
-
- spec/models/
|
496
|
-
- spec/models/
|
497
|
-
- spec/models/host_cluster_spec.rb
|
498
|
-
- spec/models/storage_system_spec.rb
|
499
|
-
- spec/models/auto_sde_role_spec.rb
|
500
|
-
- spec/models/storage_system_update_spec.rb
|
501
|
-
- spec/models/service_resource_attachment_response_spec.rb
|
502
|
-
- spec/models/host_cluster_response_spec.rb
|
503
|
-
- spec/models/host_cluster_create_spec.rb
|
504
|
-
- spec/models/service_abstract_capability_value_spec.rb
|
505
|
-
- spec/models/host_cluster_volume_mapping_response_spec.rb
|
504
|
+
- spec/models/volume_response_spec.rb
|
505
|
+
- spec/models/storage_host_spec.rb
|
506
|
+
- spec/models/storage_system_response_spec.rb
|
506
507
|
- spec/models/storage_resource_response_spec.rb
|
507
508
|
- spec/models/provisioning_strategy_spec.rb
|
508
|
-
- spec/models/
|
509
|
-
- spec/models/
|
510
|
-
- spec/models/
|
511
|
-
- spec/models/
|
512
|
-
- spec/models/
|
513
|
-
- spec/models/
|
514
|
-
- spec/models/
|
515
|
-
- spec/models/
|
509
|
+
- spec/models/storage_system_spec.rb
|
510
|
+
- spec/models/abstract_capability_response_spec.rb
|
511
|
+
- spec/models/capability_translation_create_spec.rb
|
512
|
+
- spec/models/host_cluster_volume_mapping_spec.rb
|
513
|
+
- spec/models/host_create_spec.rb
|
514
|
+
- spec/models/address_create_spec.rb
|
515
|
+
- spec/models/job_spec.rb
|
516
|
+
- spec/models/host_spec.rb
|
517
|
+
- spec/models/system_type_spec.rb
|
518
|
+
- spec/models/service_abstract_capability_value_spec.rb
|
519
|
+
- spec/models/native_capability_spec.rb
|
516
520
|
- spec/spec_helper.rb
|