autosde_openapi_client 2.4.0 → 2.4.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 61c3b43f250d339bd319f427e3d6e6d1caed66bb7fefd99425cddf8e78c28dfe
4
- data.tar.gz: 9a6b0a8a4c49ce187a806e438e71cdd243399fa325acc8d53c548ebc45a8f1bf
3
+ metadata.gz: 7f82cbf09b45bfc300554e39a3e013f32d3aebac2dff95a0974600b6e47f355c
4
+ data.tar.gz: '039bc7727a0eceeaec4d1bd07bd2caaf809e77b7feffd01672e2168572cd690f'
5
5
  SHA512:
6
- metadata.gz: 30b13cb5bab332bee384fb36e161b56f74588f8d2e11c097cbe68b492b62523d4b448ffb2a645a62c52fa0498e07e1e23a7b66590a4b1f5289ab529f7f638021
7
- data.tar.gz: cbc94ded40007034676ca8ee6b4a856bcc215709feca289c526fa12317b7e17395b778a120a07b089f52d9ae750008813d06ccb1fd32f3d1b0187985cf42ab8b
6
+ metadata.gz: c7ed6c1fa8ad25aa5a52ceb5d891f0782a124f31cec11aaac3ae6f3c1d56f43f3d184420158b42df4a5a2736d298f99ef31c7abbe535d8afe79ea2d42854ccee
7
+ data.tar.gz: c70879f74cc2c547a3b4a652478677212edf7a7a0ca2cc44a93417c1b6b609c9e91feec4840be86d8ac3404c162a6e5ff788739f2e8e5ac60afc44ac11e22180
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<Snapshot>> snapshots_get
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<Snapshot>>, Integer, Hash)> snapshots_get_with_http_info
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<Snapshot>>
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&lt;Snapshot&gt;**](Snapshot.md)
65
+ [**Array&lt;SnapshotResponse&gt;**](SnapshotResponse.md)
66
66
 
67
67
  ### Authorization
68
68
 
@@ -143,7 +143,7 @@ end
143
143
 
144
144
  ## snapshots_pk_get
145
145
 
146
- > <Snapshot> snapshots_pk_get(pk)
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(<Snapshot>, Integer, Hash)> snapshots_pk_get_with_http_info(pk)
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 # => <Snapshot>
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
- [**Snapshot**](Snapshot.md)
199
+ [**SnapshotResponse**](SnapshotResponse.md)
200
200
 
201
201
  ### Authorization
202
202
 
@@ -7,6 +7,7 @@
7
7
  | **component_state** | **String** | component_state | [optional] |
8
8
  | **description** | **String** | description | [optional] |
9
9
  | **name** | **String** | name | [optional] |
10
+ | **uuid** | **String** | uuid | [optional] |
10
11
  | **volume** | [**Volume**](Volume.md) | | [optional] |
11
12
 
12
13
  ## Example
@@ -18,6 +19,7 @@ instance = AutosdeOpenapiClient::SnapshotCreate.new(
18
19
  component_state: null,
19
20
  description: null,
20
21
  name: null,
22
+ uuid: null,
21
23
  volume: null
22
24
  )
23
25
  ```
@@ -0,0 +1,26 @@
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
+ | **uuid** | **String** | uuid | [optional] |
11
+ | **volume** | **String** | !!uuid of volume | [optional] |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'autosde_openapi_client'
17
+
18
+ instance = AutosdeOpenapiClient::SnapshotResponse.new(
19
+ component_state: null,
20
+ description: null,
21
+ name: null,
22
+ uuid: null,
23
+ volume: null
24
+ )
25
+ ```
26
+
@@ -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<Snapshot>]
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<Snapshot>, Integer, Hash)>] Array<Snapshot> data, response status code and response headers
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<Snapshot>'
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 [Snapshot]
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<(Snapshot, Integer, Hash)>] Snapshot data, response status code and response headers
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] || 'Snapshot'
171
+ return_type = opts[:debug_return_type] || 'SnapshotResponse'
172
172
 
173
173
  # auth_names
174
174
  auth_names = opts[:debug_auth_names] || ['bearerAuth']
@@ -25,6 +25,9 @@ module AutosdeOpenapiClient
25
25
  # name
26
26
  attr_accessor :name
27
27
 
28
+ # uuid
29
+ attr_accessor :uuid
30
+
28
31
  attr_accessor :volume
29
32
 
30
33
  class EnumAttributeValidator
@@ -55,6 +58,7 @@ module AutosdeOpenapiClient
55
58
  :'component_state' => :'component_state',
56
59
  :'description' => :'description',
57
60
  :'name' => :'name',
61
+ :'uuid' => :'uuid',
58
62
  :'volume' => :'volume'
59
63
  }
60
64
  end
@@ -70,6 +74,7 @@ module AutosdeOpenapiClient
70
74
  :'component_state' => :'String',
71
75
  :'description' => :'String',
72
76
  :'name' => :'String',
77
+ :'uuid' => :'String',
73
78
  :'volume' => :'Volume'
74
79
  }
75
80
  end
@@ -107,6 +112,10 @@ module AutosdeOpenapiClient
107
112
  self.name = attributes[:'name']
108
113
  end
109
114
 
115
+ if attributes.key?(:'uuid')
116
+ self.uuid = attributes[:'uuid']
117
+ end
118
+
110
119
  if attributes.key?(:'volume')
111
120
  self.volume = attributes[:'volume']
112
121
  end
@@ -150,6 +159,7 @@ module AutosdeOpenapiClient
150
159
  component_state == o.component_state &&
151
160
  description == o.description &&
152
161
  name == o.name &&
162
+ uuid == o.uuid &&
153
163
  volume == o.volume
154
164
  end
155
165
 
@@ -162,7 +172,7 @@ module AutosdeOpenapiClient
162
172
  # Calculates hash code according to all attributes.
163
173
  # @return [Integer] Hash code
164
174
  def hash
165
- [component_state, description, name, volume].hash
175
+ [component_state, description, name, uuid, volume].hash
166
176
  end
167
177
 
168
178
  # Builds the object from hash
@@ -0,0 +1,299 @@
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
29
+ attr_accessor :uuid
30
+
31
+ # !!uuid of volume
32
+ attr_accessor :volume
33
+
34
+ class EnumAttributeValidator
35
+ attr_reader :datatype
36
+ attr_reader :allowable_values
37
+
38
+ def initialize(datatype, allowable_values)
39
+ @allowable_values = allowable_values.map do |value|
40
+ case datatype.to_s
41
+ when /Integer/i
42
+ value.to_i
43
+ when /Float/i
44
+ value.to_f
45
+ else
46
+ value
47
+ end
48
+ end
49
+ end
50
+
51
+ def valid?(value)
52
+ !value || allowable_values.include?(value)
53
+ end
54
+ end
55
+
56
+ # Attribute mapping from ruby-style variable name to JSON key.
57
+ def self.attribute_map
58
+ {
59
+ :'component_state' => :'component_state',
60
+ :'description' => :'description',
61
+ :'name' => :'name',
62
+ :'uuid' => :'uuid',
63
+ :'volume' => :'volume'
64
+ }
65
+ end
66
+
67
+ # Returns all the JSON keys this model knows about
68
+ def self.acceptable_attributes
69
+ attribute_map.values
70
+ end
71
+
72
+ # Attribute type mapping.
73
+ def self.openapi_types
74
+ {
75
+ :'component_state' => :'String',
76
+ :'description' => :'String',
77
+ :'name' => :'String',
78
+ :'uuid' => :'String',
79
+ :'volume' => :'String'
80
+ }
81
+ end
82
+
83
+ # List of attributes with nullable: true
84
+ def self.openapi_nullable
85
+ Set.new([
86
+ ])
87
+ end
88
+
89
+ # Initializes the object
90
+ # @param [Hash] attributes Model attributes in the form of hash
91
+ def initialize(attributes = {})
92
+ if (!attributes.is_a?(Hash))
93
+ fail ArgumentError, "The input argument (attributes) must be a hash in `AutosdeOpenapiClient::SnapshotResponse` initialize method"
94
+ end
95
+
96
+ # check to see if the attribute exists and convert string to symbol for hash key
97
+ attributes = attributes.each_with_object({}) { |(k, v), h|
98
+ if (!self.class.attribute_map.key?(k.to_sym))
99
+ 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
100
+ end
101
+ h[k.to_sym] = v
102
+ }
103
+
104
+ if attributes.key?(:'component_state')
105
+ self.component_state = attributes[:'component_state']
106
+ end
107
+
108
+ if attributes.key?(:'description')
109
+ self.description = attributes[:'description']
110
+ end
111
+
112
+ if attributes.key?(:'name')
113
+ self.name = attributes[:'name']
114
+ end
115
+
116
+ if attributes.key?(:'uuid')
117
+ self.uuid = attributes[:'uuid']
118
+ end
119
+
120
+ if attributes.key?(:'volume')
121
+ self.volume = attributes[:'volume']
122
+ end
123
+ end
124
+
125
+ # Show invalid properties with the reasons. Usually used together with valid?
126
+ # @return Array for valid properties with the reasons
127
+ def list_invalid_properties
128
+ invalid_properties = Array.new
129
+ if !@component_state.nil? && @component_state.to_s.length > 32
130
+ invalid_properties.push('invalid value for "component_state", the character length must be smaller than or equal to 32.')
131
+ end
132
+
133
+ invalid_properties
134
+ end
135
+
136
+ # Check to see if the all the properties in the model are valid
137
+ # @return true if the model is valid
138
+ def valid?
139
+ component_state_validator = EnumAttributeValidator.new('String', ["PENDING_CREATION", "CREATED", "DELETED", "PENDING_DELETION", "MODIFICATION", "PENDING_MODIFICATION"])
140
+ return false unless component_state_validator.valid?(@component_state)
141
+ return false if !@component_state.nil? && @component_state.to_s.length > 32
142
+ true
143
+ end
144
+
145
+ # Custom attribute writer method checking allowed values (enum).
146
+ # @param [Object] component_state Object to be assigned
147
+ def component_state=(component_state)
148
+ validator = EnumAttributeValidator.new('String', ["PENDING_CREATION", "CREATED", "DELETED", "PENDING_DELETION", "MODIFICATION", "PENDING_MODIFICATION"])
149
+ unless validator.valid?(component_state)
150
+ fail ArgumentError, "invalid value for \"component_state\", must be one of #{validator.allowable_values}."
151
+ end
152
+ @component_state = component_state
153
+ end
154
+
155
+ # Checks equality by comparing each attribute.
156
+ # @param [Object] Object to be compared
157
+ def ==(o)
158
+ return true if self.equal?(o)
159
+ self.class == o.class &&
160
+ component_state == o.component_state &&
161
+ description == o.description &&
162
+ name == o.name &&
163
+ uuid == o.uuid &&
164
+ volume == o.volume
165
+ end
166
+
167
+ # @see the `==` method
168
+ # @param [Object] Object to be compared
169
+ def eql?(o)
170
+ self == o
171
+ end
172
+
173
+ # Calculates hash code according to all attributes.
174
+ # @return [Integer] Hash code
175
+ def hash
176
+ [component_state, description, name, uuid, volume].hash
177
+ end
178
+
179
+ # Builds the object from hash
180
+ # @param [Hash] attributes Model attributes in the form of hash
181
+ # @return [Object] Returns the model itself
182
+ def self.build_from_hash(attributes)
183
+ new.build_from_hash(attributes)
184
+ end
185
+
186
+ # Builds the object from hash
187
+ # @param [Hash] attributes Model attributes in the form of hash
188
+ # @return [Object] Returns the model itself
189
+ def build_from_hash(attributes)
190
+ return nil unless attributes.is_a?(Hash)
191
+ self.class.openapi_types.each_pair do |key, type|
192
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
193
+ self.send("#{key}=", nil)
194
+ elsif type =~ /\AArray<(.*)>/i
195
+ # check to ensure the input is an array given that the attribute
196
+ # is documented as an array but the input is not
197
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
198
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
199
+ end
200
+ elsif !attributes[self.class.attribute_map[key]].nil?
201
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
202
+ end
203
+ end
204
+
205
+ self
206
+ end
207
+
208
+ # Deserializes the data based on type
209
+ # @param string type Data type
210
+ # @param string value Value to be deserialized
211
+ # @return [Object] Deserialized data
212
+ def _deserialize(type, value)
213
+ case type.to_sym
214
+ when :Time
215
+ Time.parse(value)
216
+ when :Date
217
+ Date.parse(value)
218
+ when :String
219
+ value.to_s
220
+ when :Integer
221
+ value.to_i
222
+ when :Float
223
+ value.to_f
224
+ when :Boolean
225
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
226
+ true
227
+ else
228
+ false
229
+ end
230
+ when :Object
231
+ # generic object (usually a Hash), return directly
232
+ value
233
+ when /\AArray<(?<inner_type>.+)>\z/
234
+ inner_type = Regexp.last_match[:inner_type]
235
+ value.map { |v| _deserialize(inner_type, v) }
236
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
237
+ k_type = Regexp.last_match[:k_type]
238
+ v_type = Regexp.last_match[:v_type]
239
+ {}.tap do |hash|
240
+ value.each do |k, v|
241
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
242
+ end
243
+ end
244
+ else # model
245
+ # models (e.g. Pet) or oneOf
246
+ klass = AutosdeOpenapiClient.const_get(type)
247
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
248
+ end
249
+ end
250
+
251
+ # Returns the string representation of the object
252
+ # @return [String] String presentation of the object
253
+ def to_s
254
+ to_hash.to_s
255
+ end
256
+
257
+ # to_body is an alias to to_hash (backward compatibility)
258
+ # @return [Hash] Returns the object in the form of hash
259
+ def to_body
260
+ to_hash
261
+ end
262
+
263
+ # Returns the object in the form of hash
264
+ # @return [Hash] Returns the object in the form of hash
265
+ def to_hash
266
+ hash = {}
267
+ self.class.attribute_map.each_pair do |attr, param|
268
+ value = self.send(attr)
269
+ if value.nil?
270
+ is_nullable = self.class.openapi_nullable.include?(attr)
271
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
272
+ end
273
+
274
+ hash[param] = _to_hash(value)
275
+ end
276
+ hash
277
+ end
278
+
279
+ # Outputs non-array value in the form of hash
280
+ # For object, use to_hash. Otherwise, just return the value
281
+ # @param [Object] value Any valid value
282
+ # @return [Hash] Returns the value in the form of hash
283
+ def _to_hash(value)
284
+ if value.is_a?(Array)
285
+ value.compact.map { |v| _to_hash(v) }
286
+ elsif value.is_a?(Hash)
287
+ {}.tap do |hash|
288
+ value.each { |k, v| hash[k] = _to_hash(v) }
289
+ end
290
+ elsif value.respond_to? :to_hash
291
+ value.to_hash
292
+ else
293
+ value
294
+ end
295
+ end
296
+
297
+ end
298
+
299
+ end
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Site Manager API
5
5
 
6
- The version of the OpenAPI document: 2.4.0
6
+ The version of the OpenAPI document: 2.4.2
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.0'
14
+ VERSION = '2.4.2'
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<Snapshot>]
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 [Snapshot]
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
@@ -47,6 +47,12 @@ describe AutosdeOpenapiClient::SnapshotCreate do
47
47
  end
48
48
  end
49
49
 
50
+ describe 'test attribute "uuid"' 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
+
50
56
  describe 'test attribute "volume"' do
51
57
  it 'should work' do
52
58
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -0,0 +1,62 @@
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 "uuid"' 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 "volume"' 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
+ 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: 2.4.0
4
+ version: 2.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-02-14 00:00:00.000000000 Z
11
+ date: 2023-02-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -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
@@ -469,6 +472,7 @@ test_files:
469
472
  - spec/models/event_spec.rb
470
473
  - spec/models/storage_hosts_mapping_create_spec.rb
471
474
  - spec/models/abstract_capability_spec.rb
475
+ - spec/models/snapshot_response_spec.rb
472
476
  - spec/models/host_volume_connection_create_spec.rb
473
477
  - spec/models/job_spec.rb
474
478
  - spec/models/storage_host_create_spec.rb