autosde_openapi_client 3.0.1 → 3.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8da3f568fed60b5f620097c773d405e0fa9074fe7f6a9b70bfd4ebbddf96bc4f
4
- data.tar.gz: 32cb0c6f52e84c0a9fd83bd83256aa49a8db8ca7d31f40cafa9143e531364de1
3
+ metadata.gz: b1d2218fb3bed0806cf73ceb77730c92e1370f7ff0db9c6ba7856a391f33f055
4
+ data.tar.gz: ffc214f88eb27b2ada9cb18a3ae61af00ab601a1edff61b848ccacb40cec289e
5
5
  SHA512:
6
- metadata.gz: 20be810647826f91dbd071c88c05f513fe43258b22cbe04c2a6b4cf5e538c0b8004260993cf60f07b1eeda66d87409a53862271d1beedefb802332f68ca59245
7
- data.tar.gz: 95ede7b958cdb8092adb8296ce385efbd6e06b61d191c23f95f57d05386e883baf967a180a2ea4a718e1119b4082e374df360cb741e558e99e8b08bcae8a94c9
6
+ metadata.gz: b20865aa9f6bc82d34d63fb9f41a61f5bb674c9423c5b4e9c67f45de50620ed4827917ba7d622081e62b31de2a6092fc14a7c141d19461116837c0154ec0e004
7
+ data.tar.gz: e3553f0f7f106783c03ed43f824a8cb372921cc7381871b1e06db709a46bca23c8af3ed7e2c9e255264ab4908e4750118443a172d2599d3f356f36f5ccc24b01
data/README.md CHANGED
@@ -248,6 +248,7 @@ Class | Method | HTTP request | Description
248
248
  - [AutosdeOpenapiClient::ServiceResourceAttachment](docs/ServiceResourceAttachment.md)
249
249
  - [AutosdeOpenapiClient::ServiceResourceAttachmentResponse](docs/ServiceResourceAttachmentResponse.md)
250
250
  - [AutosdeOpenapiClient::ServiceResponse](docs/ServiceResponse.md)
251
+ - [AutosdeOpenapiClient::ServiceUpdate](docs/ServiceUpdate.md)
251
252
  - [AutosdeOpenapiClient::Snapshot](docs/Snapshot.md)
252
253
  - [AutosdeOpenapiClient::SnapshotCreate](docs/SnapshotCreate.md)
253
254
  - [AutosdeOpenapiClient::SnapshotResponse](docs/SnapshotResponse.md)
data/docs/ServiceApi.md CHANGED
@@ -211,7 +211,7 @@ end
211
211
 
212
212
  ## services_pk_put
213
213
 
214
- > <Service> services_pk_put(pk, service)
214
+ > <AsyncResponse> services_pk_put(pk, service_update)
215
215
 
216
216
 
217
217
 
@@ -228,11 +228,11 @@ end
228
228
 
229
229
  api_instance = AutosdeOpenapiClient::ServiceApi.new
230
230
  pk = 56 # Integer |
231
- service = AutosdeOpenapiClient::Service.new # Service |
231
+ service_update = AutosdeOpenapiClient::ServiceUpdate.new # ServiceUpdate |
232
232
 
233
233
  begin
234
234
 
235
- result = api_instance.services_pk_put(pk, service)
235
+ result = api_instance.services_pk_put(pk, service_update)
236
236
  p result
237
237
  rescue AutosdeOpenapiClient::ApiError => e
238
238
  puts "Error when calling ServiceApi->services_pk_put: #{e}"
@@ -243,15 +243,15 @@ end
243
243
 
244
244
  This returns an Array which contains the response data, status code and headers.
245
245
 
246
- > <Array(<Service>, Integer, Hash)> services_pk_put_with_http_info(pk, service)
246
+ > <Array(<AsyncResponse>, Integer, Hash)> services_pk_put_with_http_info(pk, service_update)
247
247
 
248
248
  ```ruby
249
249
  begin
250
250
 
251
- data, status_code, headers = api_instance.services_pk_put_with_http_info(pk, service)
251
+ data, status_code, headers = api_instance.services_pk_put_with_http_info(pk, service_update)
252
252
  p status_code # => 2xx
253
253
  p headers # => { ... }
254
- p data # => <Service>
254
+ p data # => <AsyncResponse>
255
255
  rescue AutosdeOpenapiClient::ApiError => e
256
256
  puts "Error when calling ServiceApi->services_pk_put_with_http_info: #{e}"
257
257
  end
@@ -262,11 +262,11 @@ end
262
262
  | Name | Type | Description | Notes |
263
263
  | ---- | ---- | ----------- | ----- |
264
264
  | **pk** | **Integer** | | |
265
- | **service** | [**Service**](Service.md) | | |
265
+ | **service_update** | [**ServiceUpdate**](ServiceUpdate.md) | | |
266
266
 
267
267
  ### Return type
268
268
 
269
- [**Service**](Service.md)
269
+ [**AsyncResponse**](AsyncResponse.md)
270
270
 
271
271
  ### Authorization
272
272
 
@@ -0,0 +1,34 @@
1
+ # AutosdeOpenapiClient::ServiceUpdate
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **capability_value_list** | **Array&lt;String&gt;** | capability_value_list | [optional] |
8
+ | **component_state** | **String** | component_state | [optional] |
9
+ | **description** | **String** | description | [optional][default to &#39;&#39;] |
10
+ | **name** | **String** | name | [optional] |
11
+ | **profile** | [**Profile**](Profile.md) | | [optional] |
12
+ | **project** | [**AutoSDEProject**](AutoSDEProject.md) | | [optional] |
13
+ | **provisioning_strategy** | [**ProvisioningStrategy**](ProvisioningStrategy.md) | | [optional] |
14
+ | **uuid** | **String** | uuid | [optional] |
15
+ | **version** | **Integer** | The version of the service | [optional][default to 1] |
16
+
17
+ ## Example
18
+
19
+ ```ruby
20
+ require 'autosde_openapi_client'
21
+
22
+ instance = AutosdeOpenapiClient::ServiceUpdate.new(
23
+ capability_value_list: null,
24
+ component_state: null,
25
+ description: null,
26
+ name: null,
27
+ profile: null,
28
+ project: null,
29
+ provisioning_strategy: null,
30
+ uuid: null,
31
+ version: null
32
+ )
33
+ ```
34
+
@@ -191,19 +191,19 @@ module AutosdeOpenapiClient
191
191
  end
192
192
 
193
193
  # @param pk [Integer]
194
- # @param service [Service]
194
+ # @param service_update [ServiceUpdate]
195
195
  # @param [Hash] opts the optional parameters
196
- # @return [Service]
197
- def services_pk_put(pk, service, opts = {})
198
- data, _status_code, _headers = services_pk_put_with_http_info(pk, service, opts)
196
+ # @return [AsyncResponse]
197
+ def services_pk_put(pk, service_update, opts = {})
198
+ data, _status_code, _headers = services_pk_put_with_http_info(pk, service_update, opts)
199
199
  data
200
200
  end
201
201
 
202
202
  # @param pk [Integer]
203
- # @param service [Service]
203
+ # @param service_update [ServiceUpdate]
204
204
  # @param [Hash] opts the optional parameters
205
- # @return [Array<(Service, Integer, Hash)>] Service data, response status code and response headers
206
- def services_pk_put_with_http_info(pk, service, opts = {})
205
+ # @return [Array<(AsyncResponse, Integer, Hash)>] AsyncResponse data, response status code and response headers
206
+ def services_pk_put_with_http_info(pk, service_update, opts = {})
207
207
  if @api_client.config.debugging
208
208
  @api_client.config.logger.debug 'Calling API: ServiceApi.services_pk_put ...'
209
209
  end
@@ -211,9 +211,9 @@ module AutosdeOpenapiClient
211
211
  if @api_client.config.client_side_validation && pk.nil?
212
212
  fail ArgumentError, "Missing the required parameter 'pk' when calling ServiceApi.services_pk_put"
213
213
  end
214
- # verify the required parameter 'service' is set
215
- if @api_client.config.client_side_validation && service.nil?
216
- fail ArgumentError, "Missing the required parameter 'service' when calling ServiceApi.services_pk_put"
214
+ # verify the required parameter 'service_update' is set
215
+ if @api_client.config.client_side_validation && service_update.nil?
216
+ fail ArgumentError, "Missing the required parameter 'service_update' when calling ServiceApi.services_pk_put"
217
217
  end
218
218
  # resource path
219
219
  local_var_path = '/services/{pk}'.sub('{' + 'pk' + '}', CGI.escape(pk.to_s))
@@ -232,10 +232,10 @@ module AutosdeOpenapiClient
232
232
  form_params = opts[:form_params] || {}
233
233
 
234
234
  # http body (model)
235
- post_body = opts[:debug_body] || @api_client.object_to_http_body(service)
235
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(service_update)
236
236
 
237
237
  # return_type
238
- return_type = opts[:debug_return_type] || 'Service'
238
+ return_type = opts[:debug_return_type] || 'AsyncResponse'
239
239
 
240
240
  # auth_names
241
241
  auth_names = opts[:debug_auth_names] || ['bearerAuth']
@@ -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.1
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.1'
14
+ VERSION = '3.0.2'
15
15
  end
@@ -59,6 +59,7 @@ require 'autosde_openapi_client/models/service_create'
59
59
  require 'autosde_openapi_client/models/service_resource_attachment'
60
60
  require 'autosde_openapi_client/models/service_resource_attachment_response'
61
61
  require 'autosde_openapi_client/models/service_response'
62
+ require 'autosde_openapi_client/models/service_update'
62
63
  require 'autosde_openapi_client/models/snapshot'
63
64
  require 'autosde_openapi_client/models/snapshot_create'
64
65
  require 'autosde_openapi_client/models/snapshot_response'
@@ -63,9 +63,9 @@ describe 'ServiceApi' do
63
63
 
64
64
  # unit tests for services_pk_put
65
65
  # @param pk
66
- # @param service
66
+ # @param service_update
67
67
  # @param [Hash] opts the optional parameters
68
- # @return [Service]
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,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
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: 3.0.1
4
+ version: 3.0.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-21 00:00:00.000000000 Z
11
+ date: 2023-02-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -126,6 +126,7 @@ files:
126
126
  - docs/ServiceResourceAttachmentApi.md
127
127
  - docs/ServiceResourceAttachmentResponse.md
128
128
  - docs/ServiceResponse.md
129
+ - docs/ServiceUpdate.md
129
130
  - docs/Snapshot.md
130
131
  - docs/SnapshotApi.md
131
132
  - docs/SnapshotCreate.md
@@ -251,6 +252,7 @@ files:
251
252
  - lib/autosde_openapi_client/models/service_resource_attachment.rb
252
253
  - lib/autosde_openapi_client/models/service_resource_attachment_response.rb
253
254
  - lib/autosde_openapi_client/models/service_response.rb
255
+ - lib/autosde_openapi_client/models/service_update.rb
254
256
  - lib/autosde_openapi_client/models/snapshot.rb
255
257
  - lib/autosde_openapi_client/models/snapshot_create.rb
256
258
  - lib/autosde_openapi_client/models/snapshot_response.rb
@@ -362,6 +364,7 @@ files:
362
364
  - spec/models/service_resource_attachment_spec.rb
363
365
  - spec/models/service_response_spec.rb
364
366
  - spec/models/service_spec.rb
367
+ - spec/models/service_update_spec.rb
365
368
  - spec/models/snapshot_create_spec.rb
366
369
  - spec/models/snapshot_response_spec.rb
367
370
  - spec/models/snapshot_spec.rb
@@ -419,114 +422,115 @@ signing_key:
419
422
  specification_version: 4
420
423
  summary: Site Manager API Ruby Gem
421
424
  test_files:
422
- - spec/api/host_cluster_api_spec.rb
423
- - spec/api/host_api_spec.rb
424
- - spec/api/storage_resource_api_spec.rb
425
- - spec/api/validate_system_api_spec.rb
426
- - spec/api/service_resource_attachment_api_spec.rb
427
- - spec/api/address_api_spec.rb
428
- - spec/api/system_type_api_spec.rb
429
- - spec/api/volume_clone_api_spec.rb
430
- - spec/api/auto_sde_project_api_spec.rb
431
- - spec/api/snapshot_api_spec.rb
425
+ - spec/api/capability_translation_api_spec.rb
432
426
  - spec/api/celery_config_api_spec.rb
433
- - spec/api/abstract_capability_api_spec.rb
434
- - spec/api/volume_migration_api_spec.rb
427
+ - spec/api/refresh_system_api_spec.rb
428
+ - spec/api/snapshot_api_spec.rb
429
+ - spec/api/system_type_api_spec.rb
435
430
  - spec/api/storage_host_wwpn_candidates_api_spec.rb
436
- - spec/api/host_volume_connection_api_spec.rb
437
- - spec/api/profile_api_spec.rb
438
- - spec/api/job_api_spec.rb
439
- - spec/api/volume_api_spec.rb
440
- - spec/api/service_api_spec.rb
441
- - spec/api/provisioning_strategy_api_spec.rb
442
431
  - spec/api/auto_sde_role_api_spec.rb
432
+ - spec/api/host_api_spec.rb
443
433
  - spec/api/account_api_spec.rb
444
- - spec/api/native_capability_api_spec.rb
445
- - spec/api/capability_translation_api_spec.rb
446
- - spec/api/service_abstract_capability_value_api_spec.rb
434
+ - spec/api/volume_api_spec.rb
435
+ - spec/api/abstract_capability_api_spec.rb
436
+ - spec/api/auto_sde_project_api_spec.rb
437
+ - spec/api/storage_resource_api_spec.rb
447
438
  - spec/api/host_cluster_volume_mapping_api_spec.rb
448
- - spec/api/refresh_system_api_spec.rb
439
+ - spec/api/service_api_spec.rb
440
+ - spec/api/volume_migration_api_spec.rb
449
441
  - spec/api/authentication_api_spec.rb
450
- - spec/api/storage_system_api_spec.rb
451
- - spec/api/host_cluster_membership_api_spec.rb
442
+ - spec/api/job_api_spec.rb
452
443
  - spec/api/user_api_spec.rb
444
+ - spec/api/storage_host_api_spec.rb
445
+ - spec/api/service_resource_attachment_api_spec.rb
446
+ - spec/api/native_capability_api_spec.rb
447
+ - spec/api/profile_api_spec.rb
453
448
  - spec/api/storage_hosts_mapping_api_spec.rb
449
+ - spec/api/volume_clone_api_spec.rb
450
+ - spec/api/host_cluster_membership_api_spec.rb
451
+ - spec/api/provisioning_strategy_api_spec.rb
452
+ - spec/api/storage_system_api_spec.rb
453
+ - spec/api/service_abstract_capability_value_api_spec.rb
454
+ - spec/api/host_volume_connection_api_spec.rb
455
+ - spec/api/host_cluster_api_spec.rb
454
456
  - spec/api/event_api_spec.rb
455
- - spec/api/storage_host_api_spec.rb
457
+ - spec/api/address_api_spec.rb
458
+ - spec/api/validate_system_api_spec.rb
456
459
  - spec/api_client_spec.rb
457
460
  - spec/configuration_spec.rb
461
+ - spec/models/capability_translation_create_spec.rb
462
+ - spec/models/host_create_spec.rb
458
463
  - spec/models/account_post_request_spec.rb
459
- - spec/models/host_cluster_volume_mapping_spec.rb
464
+ - spec/models/authentication_spec.rb
460
465
  - spec/models/native_capability_spec.rb
461
- - spec/models/validate_system_spec.rb
462
- - spec/models/auth_response_spec.rb
463
- - spec/models/storage_system_create_spec.rb
464
- - spec/models/storage_hosts_mapping_create_spec.rb
466
+ - spec/models/storage_hosts_mapping_response_spec.rb
467
+ - spec/models/storage_hosts_mapping_spec.rb
468
+ - spec/models/refresh_system_spec.rb
469
+ - spec/models/service_resource_attachment_spec.rb
470
+ - spec/models/system_type_create_spec.rb
471
+ - spec/models/event_spec.rb
472
+ - spec/models/address_create_spec.rb
473
+ - spec/models/service_update_spec.rb
474
+ - spec/models/host_cluster_response_spec.rb
475
+ - spec/models/storage_system_update_spec.rb
465
476
  - spec/models/storage_resource_create_spec.rb
466
- - spec/models/storage_host_spec.rb
477
+ - spec/models/service_abstract_capability_value_response_spec.rb
467
478
  - spec/models/snapshot_spec.rb
468
- - spec/models/abstract_capability_spec.rb
469
- - spec/models/address_create_spec.rb
470
- - spec/models/host_volume_connection_create_spec.rb
471
- - spec/models/volume_create_spec.rb
472
- - spec/models/event_response_spec.rb
473
- - spec/models/storage_resource_update_spec.rb
474
- - spec/models/profile_spec.rb
475
- - spec/models/storage_system_spec.rb
476
- - spec/models/volume_clone_spec.rb
477
- - spec/models/user_spec.rb
478
- - spec/models/celery_config_spec.rb
479
+ - spec/models/address_spec.rb
480
+ - spec/models/service_resource_attachment_response_spec.rb
479
481
  - spec/models/host_cluster_volume_mapping_create_spec.rb
480
- - spec/models/service_resource_attachment_spec.rb
481
- - spec/models/host_cluster_create_spec.rb
482
- - spec/models/system_type_spec.rb
483
- - spec/models/auto_sde_role_spec.rb
484
- - spec/models/volume_response_spec.rb
485
- - spec/models/async_response_spec.rb
486
- - spec/models/storage_host_response_spec.rb
487
482
  - spec/models/storage_host_wwpn_candidates_spec.rb
488
483
  - spec/models/host_cluster_volume_mapping_response_spec.rb
484
+ - spec/models/storage_system_response_spec.rb
485
+ - spec/models/job_response_spec.rb
486
+ - spec/models/storage_system_spec.rb
487
+ - spec/models/volume_clone_spec.rb
488
+ - spec/models/storage_host_response_spec.rb
489
+ - spec/models/storage_resource_spec.rb
490
+ - spec/models/service_abstract_capability_value_spec.rb
491
+ - spec/models/storage_host_update_spec.rb
492
+ - spec/models/host_cluster_create_spec.rb
493
+ - spec/models/auth_response_spec.rb
494
+ - spec/models/service_response_spec.rb
495
+ - spec/models/validate_system_spec.rb
489
496
  - spec/models/job_create_spec.rb
490
- - spec/models/service_abstract_capability_value_response_spec.rb
491
- - spec/models/host_spec.rb
492
- - spec/models/host_cluster_response_spec.rb
493
- - spec/models/provisioning_strategy_spec.rb
494
- - spec/models/account_spec.rb
495
- - spec/models/capability_translation_create_spec.rb
496
- - spec/models/host_cluster_membership_spec.rb
497
- - spec/models/service_spec.rb
498
- - spec/models/account_post_response_spec.rb
499
497
  - spec/models/service_create_spec.rb
500
- - spec/models/storage_hosts_mapping_response_spec.rb
501
- - spec/models/authentication_spec.rb
502
- - spec/models/volume_migration_spec.rb
503
- - spec/models/address_spec.rb
504
- - spec/models/snapshot_create_spec.rb
505
- - spec/models/refresh_system_spec.rb
506
- - spec/models/service_abstract_capability_value_spec.rb
507
- - spec/models/storage_system_update_spec.rb
508
- - spec/models/user_create_spec.rb
509
- - spec/models/job_response_spec.rb
510
- - spec/models/storage_system_response_spec.rb
511
- - spec/models/event_spec.rb
512
- - spec/models/capability_translation_spec.rb
498
+ - spec/models/storage_hosts_mapping_create_spec.rb
513
499
  - spec/models/volume_spec.rb
500
+ - spec/models/account_post_response_spec.rb
501
+ - spec/models/system_type_response_spec.rb
502
+ - spec/models/volume_response_spec.rb
503
+ - spec/models/volume_migration_spec.rb
504
+ - spec/models/host_cluster_membership_spec.rb
505
+ - spec/models/abstract_capability_spec.rb
514
506
  - spec/models/storage_resource_response_spec.rb
515
- - spec/models/user_update_spec.rb
516
- - spec/models/auto_sde_project_spec.rb
507
+ - spec/models/capability_translation_spec.rb
508
+ - spec/models/snapshot_response_spec.rb
509
+ - spec/models/user_create_spec.rb
510
+ - spec/models/profile_spec.rb
511
+ - spec/models/user_spec.rb
517
512
  - spec/models/abstract_capability_response_spec.rb
518
- - spec/models/storage_host_update_spec.rb
519
- - spec/models/system_type_create_spec.rb
513
+ - spec/models/host_cluster_volume_mapping_spec.rb
520
514
  - spec/models/host_volume_connection_spec.rb
521
- - spec/models/storage_hosts_mapping_spec.rb
522
- - spec/models/storage_host_create_spec.rb
515
+ - spec/models/snapshot_create_spec.rb
516
+ - spec/models/volume_create_spec.rb
517
+ - spec/models/host_spec.rb
518
+ - spec/models/host_volume_connection_create_spec.rb
519
+ - spec/models/account_spec.rb
520
+ - spec/models/event_response_spec.rb
521
+ - spec/models/storage_resource_update_spec.rb
523
522
  - spec/models/job_spec.rb
524
- - spec/models/host_cluster_spec.rb
525
- - spec/models/system_type_response_spec.rb
526
- - spec/models/service_resource_attachment_response_spec.rb
527
- - spec/models/storage_resource_spec.rb
528
- - spec/models/service_response_spec.rb
529
- - spec/models/snapshot_response_spec.rb
530
- - spec/models/host_create_spec.rb
531
523
  - spec/models/volume_update_spec.rb
524
+ - spec/models/user_update_spec.rb
525
+ - spec/models/auto_sde_project_spec.rb
526
+ - spec/models/storage_host_create_spec.rb
527
+ - spec/models/celery_config_spec.rb
528
+ - spec/models/system_type_spec.rb
529
+ - spec/models/storage_host_spec.rb
530
+ - spec/models/storage_system_create_spec.rb
531
+ - spec/models/async_response_spec.rb
532
+ - spec/models/host_cluster_spec.rb
533
+ - spec/models/provisioning_strategy_spec.rb
534
+ - spec/models/auto_sde_role_spec.rb
535
+ - spec/models/service_spec.rb
532
536
  - spec/spec_helper.rb