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