autosde_openapi_client 1.0.40 → 1.0.44

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: 7854a5359a5c9c224ec6d7d99d11460184a4debc05f07717bdc6b81ad6877dca
4
- data.tar.gz: 7f9e7cf58ff12c7348e678c095b2d24f4833b224920b36f5990cb71099fdcb8e
3
+ metadata.gz: e7b80c31013881a1f3433d62c6ebb76eb95c7e3aaf5ac6660aa60e4871a1cc63
4
+ data.tar.gz: e43327e7888fccf79da3d9d4fee3f5364b1f2973967940e5c6e4f037d9dd42f3
5
5
  SHA512:
6
- metadata.gz: e842f50efa9d6be9be4aaeeac01bfb08b5e12af2dc2b941ac124530db35facb6da79be824469a159e923c76799f5a7585cc7033d2aa75a94ab8402aa7e499cd1
7
- data.tar.gz: e4a68eabd993aadc8249ae64877af882fc1e14d983a8b53535d80f9ac3e9518b9f0fcb7c6c74cfa429e5a26616161d88725bd085c6e1873d994eaf9a0ff2f295
6
+ metadata.gz: '089e7db4d7890a06981bdd1da62023c1c1e26b6a374ca81a1f5aee2a2f150ed6ecaca80749a67f0acf4f50615eb591f2bc8c324a6d8bd089ef9f99a91b2f2a17'
7
+ data.tar.gz: 4e1080af993118596e5641174da209c0febfc0acb9c5d8b04144d6d0caf7734aaa6728035b04f5fda94460e341bef25b465eb28f65c6362aea29bc205afd659b
data/README.md CHANGED
@@ -158,6 +158,7 @@ Class | Method | HTTP request | Description
158
158
  *AutosdeOpenapiClient::StorageSystemApi* | [**storage_systems_get**](docs/StorageSystemApi.md#storage_systems_get) | **GET** /storage-systems/ |
159
159
  *AutosdeOpenapiClient::StorageSystemApi* | [**storage_systems_pk_delete**](docs/StorageSystemApi.md#storage_systems_pk_delete) | **DELETE** /storage-systems/{pk} |
160
160
  *AutosdeOpenapiClient::StorageSystemApi* | [**storage_systems_pk_get**](docs/StorageSystemApi.md#storage_systems_pk_get) | **GET** /storage-systems/{pk} |
161
+ *AutosdeOpenapiClient::StorageSystemApi* | [**storage_systems_pk_put**](docs/StorageSystemApi.md#storage_systems_pk_put) | **PUT** /storage-systems/{pk} |
161
162
  *AutosdeOpenapiClient::StorageSystemApi* | [**storage_systems_post**](docs/StorageSystemApi.md#storage_systems_post) | **POST** /storage-systems/ |
162
163
  *AutosdeOpenapiClient::SystemTypeApi* | [**system_types_get**](docs/SystemTypeApi.md#system_types_get) | **GET** /system-types/ |
163
164
  *AutosdeOpenapiClient::SystemTypeApi* | [**system_types_pk_delete**](docs/SystemTypeApi.md#system_types_pk_delete) | **DELETE** /system-types/{pk} |
@@ -7,6 +7,7 @@ All URIs are relative to *http://localhost:9000/site-manager/api/v1/engine*
7
7
  | [**storage_systems_get**](StorageSystemApi.md#storage_systems_get) | **GET** /storage-systems/ | |
8
8
  | [**storage_systems_pk_delete**](StorageSystemApi.md#storage_systems_pk_delete) | **DELETE** /storage-systems/{pk} | |
9
9
  | [**storage_systems_pk_get**](StorageSystemApi.md#storage_systems_pk_get) | **GET** /storage-systems/{pk} | |
10
+ | [**storage_systems_pk_put**](StorageSystemApi.md#storage_systems_pk_put) | **PUT** /storage-systems/{pk} | |
10
11
  | [**storage_systems_post**](StorageSystemApi.md#storage_systems_post) | **POST** /storage-systems/ | |
11
12
 
12
13
 
@@ -208,6 +209,75 @@ end
208
209
  - **Accept**: */*
209
210
 
210
211
 
212
+ ## storage_systems_pk_put
213
+
214
+ > <StorageSystem> storage_systems_pk_put(pk, storage_system)
215
+
216
+
217
+
218
+ ### Examples
219
+
220
+ ```ruby
221
+ require 'time'
222
+ require 'autosde_openapi_client'
223
+ # setup authorization
224
+ AutosdeOpenapiClient.configure do |config|
225
+ # Configure Bearer authorization: bearerAuth
226
+ config.access_token = 'YOUR_BEARER_TOKEN'
227
+ end
228
+
229
+ api_instance = AutosdeOpenapiClient::StorageSystemApi.new
230
+ pk = 56 # Integer |
231
+ storage_system = AutosdeOpenapiClient::StorageSystem.new # StorageSystem |
232
+
233
+ begin
234
+
235
+ result = api_instance.storage_systems_pk_put(pk, storage_system)
236
+ p result
237
+ rescue AutosdeOpenapiClient::ApiError => e
238
+ puts "Error when calling StorageSystemApi->storage_systems_pk_put: #{e}"
239
+ end
240
+ ```
241
+
242
+ #### Using the storage_systems_pk_put_with_http_info variant
243
+
244
+ This returns an Array which contains the response data, status code and headers.
245
+
246
+ > <Array(<StorageSystem>, Integer, Hash)> storage_systems_pk_put_with_http_info(pk, storage_system)
247
+
248
+ ```ruby
249
+ begin
250
+
251
+ data, status_code, headers = api_instance.storage_systems_pk_put_with_http_info(pk, storage_system)
252
+ p status_code # => 2xx
253
+ p headers # => { ... }
254
+ p data # => <StorageSystem>
255
+ rescue AutosdeOpenapiClient::ApiError => e
256
+ puts "Error when calling StorageSystemApi->storage_systems_pk_put_with_http_info: #{e}"
257
+ end
258
+ ```
259
+
260
+ ### Parameters
261
+
262
+ | Name | Type | Description | Notes |
263
+ | ---- | ---- | ----------- | ----- |
264
+ | **pk** | **Integer** | | |
265
+ | **storage_system** | [**StorageSystem**](StorageSystem.md) | | |
266
+
267
+ ### Return type
268
+
269
+ [**StorageSystem**](StorageSystem.md)
270
+
271
+ ### Authorization
272
+
273
+ [bearerAuth](../README.md#bearerAuth)
274
+
275
+ ### HTTP request headers
276
+
277
+ - **Content-Type**: application/json
278
+ - **Accept**: */*
279
+
280
+
211
281
  ## storage_systems_post
212
282
 
213
283
  > <StorageSystem> storage_systems_post(storage_system_create)
@@ -190,6 +190,73 @@ module AutosdeOpenapiClient
190
190
  return data, status_code, headers
191
191
  end
192
192
 
193
+ # @param pk [Integer]
194
+ # @param storage_system [StorageSystem]
195
+ # @param [Hash] opts the optional parameters
196
+ # @return [StorageSystem]
197
+ def storage_systems_pk_put(pk, storage_system, opts = {})
198
+ data, _status_code, _headers = storage_systems_pk_put_with_http_info(pk, storage_system, opts)
199
+ data
200
+ end
201
+
202
+ # @param pk [Integer]
203
+ # @param storage_system [StorageSystem]
204
+ # @param [Hash] opts the optional parameters
205
+ # @return [Array<(StorageSystem, Integer, Hash)>] StorageSystem data, response status code and response headers
206
+ def storage_systems_pk_put_with_http_info(pk, storage_system, opts = {})
207
+ if @api_client.config.debugging
208
+ @api_client.config.logger.debug 'Calling API: StorageSystemApi.storage_systems_pk_put ...'
209
+ end
210
+ # verify the required parameter 'pk' is set
211
+ if @api_client.config.client_side_validation && pk.nil?
212
+ fail ArgumentError, "Missing the required parameter 'pk' when calling StorageSystemApi.storage_systems_pk_put"
213
+ end
214
+ # verify the required parameter 'storage_system' is set
215
+ if @api_client.config.client_side_validation && storage_system.nil?
216
+ fail ArgumentError, "Missing the required parameter 'storage_system' when calling StorageSystemApi.storage_systems_pk_put"
217
+ end
218
+ # resource path
219
+ local_var_path = '/storage-systems/{pk}'.sub('{' + 'pk' + '}', CGI.escape(pk.to_s))
220
+
221
+ # query parameters
222
+ query_params = opts[:query_params] || {}
223
+
224
+ # header parameters
225
+ header_params = opts[:header_params] || {}
226
+ # HTTP header 'Accept' (if needed)
227
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
228
+ # HTTP header 'Content-Type'
229
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
230
+
231
+ # form parameters
232
+ form_params = opts[:form_params] || {}
233
+
234
+ # http body (model)
235
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(storage_system)
236
+
237
+ # return_type
238
+ return_type = opts[:debug_return_type] || 'StorageSystem'
239
+
240
+ # auth_names
241
+ auth_names = opts[:debug_auth_names] || ['bearerAuth']
242
+
243
+ new_options = opts.merge(
244
+ :operation => :"StorageSystemApi.storage_systems_pk_put",
245
+ :header_params => header_params,
246
+ :query_params => query_params,
247
+ :form_params => form_params,
248
+ :body => post_body,
249
+ :auth_names => auth_names,
250
+ :return_type => return_type
251
+ )
252
+
253
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
254
+ if @api_client.config.debugging
255
+ @api_client.config.logger.debug "API called: StorageSystemApi#storage_systems_pk_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
256
+ end
257
+ return data, status_code, headers
258
+ end
259
+
193
260
  # @param storage_system_create [StorageSystemCreate]
194
261
  # @param [Hash] opts the optional parameters
195
262
  # @return [StorageSystem]
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module AutosdeOpenapiClient
17
- # Abstract capabilities are the storage system feature capabilities, in general terminology.
17
+ # Bk-Abstract capabilities are the storage system feature capabilities, in general terminology.
18
18
  class AbstractCapability
19
19
  # name
20
20
  attr_accessor :name
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Site Manager API
5
5
 
6
- The version of the OpenAPI document: 1.0.40
6
+ The version of the OpenAPI document: 1.0.44
7
7
  Contact: autosde@il.ibm.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.0.0
@@ -11,5 +11,5 @@ OpenAPI Generator version: 5.0.0
11
11
  =end
12
12
 
13
13
  module AutosdeOpenapiClient
14
- VERSION = '1.0.40'
14
+ VERSION = '1.0.44'
15
15
  end
@@ -61,6 +61,17 @@ describe 'StorageSystemApi' do
61
61
  end
62
62
  end
63
63
 
64
+ # unit tests for storage_systems_pk_put
65
+ # @param pk
66
+ # @param storage_system
67
+ # @param [Hash] opts the optional parameters
68
+ # @return [StorageSystem]
69
+ describe 'storage_systems_pk_put test' do
70
+ it 'should work' do
71
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
72
+ end
73
+ end
74
+
64
75
  # unit tests for storage_systems_post
65
76
  # @param storage_system_create
66
77
  # @param [Hash] opts the optional parameters
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: 1.0.40
4
+ version: 1.0.44
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
@@ -310,78 +310,78 @@ signing_key:
310
310
  specification_version: 4
311
311
  summary: Site Manager API Ruby Gem
312
312
  test_files:
313
- - spec/api/address_api_spec.rb
314
- - spec/api/storage_host_volume_mapping_api_spec.rb
315
- - spec/api/native_capability_api_spec.rb
316
- - spec/api/abstract_capability_api_spec.rb
313
+ - spec/api/storage_resource_api_spec.rb
314
+ - spec/api/system_type_api_spec.rb
317
315
  - spec/api/storage_host_api_spec.rb
318
- - spec/api/volume_safe_delete_api_spec.rb
319
316
  - spec/api/authentication_api_spec.rb
320
- - spec/api/account_api_spec.rb
321
- - spec/api/system_type_api_spec.rb
322
- - spec/api/auto_sde_role_api_spec.rb
323
- - spec/api/storage_system_api_spec.rb
324
- - spec/api/snapshot_api_spec.rb
325
- - spec/api/provisioning_strategy_api_spec.rb
317
+ - spec/api/volume_api_spec.rb
318
+ - spec/api/volume_safe_delete_api_spec.rb
326
319
  - spec/api/service_api_spec.rb
327
- - spec/api/job_api_spec.rb
328
- - spec/api/storage_host_wwpn_candidates_api_spec.rb
329
- - spec/api/host_api_spec.rb
330
- - spec/api/capability_translation_api_spec.rb
331
- - spec/api/storage_resource_api_spec.rb
332
320
  - spec/api/auto_sde_project_api_spec.rb
333
- - spec/api/host_volume_connection_api_spec.rb
334
321
  - spec/api/profile_api_spec.rb
322
+ - spec/api/snapshot_api_spec.rb
323
+ - spec/api/host_volume_connection_api_spec.rb
324
+ - spec/api/storage_host_volume_mapping_api_spec.rb
335
325
  - spec/api/service_resource_attachment_api_spec.rb
336
- - spec/api/volume_api_spec.rb
326
+ - spec/api/storage_host_wwpn_candidates_api_spec.rb
327
+ - spec/api/storage_system_api_spec.rb
328
+ - spec/api/native_capability_api_spec.rb
329
+ - spec/api/host_api_spec.rb
330
+ - spec/api/auto_sde_role_api_spec.rb
331
+ - spec/api/address_api_spec.rb
332
+ - spec/api/provisioning_strategy_api_spec.rb
333
+ - spec/api/account_api_spec.rb
334
+ - spec/api/abstract_capability_api_spec.rb
335
+ - spec/api/capability_translation_api_spec.rb
336
+ - spec/api/job_api_spec.rb
337
337
  - spec/api_client_spec.rb
338
338
  - spec/configuration_spec.rb
339
- - spec/models/volume_create_spec.rb
340
- - spec/models/host_volume_connection_create_spec.rb
341
- - spec/models/address_spec.rb
342
- - spec/models/host_create_spec.rb
343
- - spec/models/address_create_spec.rb
344
- - spec/models/storage_resource_response_spec.rb
345
- - spec/models/snapshot_spec.rb
346
339
  - spec/models/native_capability_spec.rb
347
- - spec/models/authentication_spec.rb
348
- - spec/models/system_type_create_spec.rb
340
+ - spec/models/auto_sde_project_spec.rb
341
+ - spec/models/storage_resource_response_spec.rb
342
+ - spec/models/account_spec.rb
343
+ - spec/models/volume_response_spec.rb
344
+ - spec/models/storage_host_response_spec.rb
345
+ - spec/models/address_create_spec.rb
346
+ - spec/models/service_resource_attachment_spec.rb
347
+ - spec/models/volume_safe_delete_create_spec.rb
348
+ - spec/models/volume_spec.rb
349
+ - spec/models/host_volume_connection_create_spec.rb
349
350
  - spec/models/storage_resource_spec.rb
351
+ - spec/models/storage_host_create_spec.rb
352
+ - spec/models/host_spec.rb
353
+ - spec/models/service_spec.rb
354
+ - spec/models/authentication_spec.rb
355
+ - spec/models/storage_system_spec.rb
350
356
  - spec/models/storage_host_update_spec.rb
351
- - spec/models/provisioning_strategy_spec.rb
357
+ - spec/models/storage_host_volume_mapping_spec.rb
358
+ - spec/models/service_abstract_capability_value_spec.rb
359
+ - spec/models/storage_host_wwpn_candidates_spec.rb
360
+ - spec/models/capability_translation_create_spec.rb
361
+ - spec/models/snapshot_create_spec.rb
362
+ - spec/models/auto_sde_role_spec.rb
363
+ - spec/models/system_type_create_spec.rb
352
364
  - spec/models/account_post_request_spec.rb
353
- - spec/models/volume_spec.rb
354
- - spec/models/account_spec.rb
355
- - spec/models/storage_host_volume_mapping_create_spec.rb
356
- - spec/models/service_create_spec.rb
357
- - spec/models/capability_translation_spec.rb
358
- - spec/models/host_volume_connection_spec.rb
365
+ - spec/models/storage_system_create_spec.rb
359
366
  - spec/models/volume_safe_delete_spec.rb
360
- - spec/models/auth_response_spec.rb
361
- - spec/models/system_type_spec.rb
362
- - spec/models/storage_system_spec.rb
363
- - spec/models/snapshot_create_spec.rb
364
- - spec/models/storage_host_response_spec.rb
365
- - spec/models/job_create_spec.rb
366
- - spec/models/service_abstract_capability_value_spec.rb
367
- - spec/models/storage_resource_create_spec.rb
367
+ - spec/models/provisioning_strategy_spec.rb
368
368
  - spec/models/job_spec.rb
369
- - spec/models/storage_host_spec.rb
370
- - spec/models/storage_host_create_spec.rb
371
- - spec/models/host_spec.rb
369
+ - spec/models/snapshot_spec.rb
370
+ - spec/models/service_create_spec.rb
371
+ - spec/models/storage_resource_create_spec.rb
372
+ - spec/models/storage_host_volume_mapping_create_spec.rb
373
+ - spec/models/volume_create_spec.rb
374
+ - spec/models/system_type_spec.rb
375
+ - spec/models/capability_translation_spec.rb
372
376
  - spec/models/abstract_capability_spec.rb
373
- - spec/models/volume_safe_delete_create_spec.rb
374
- - spec/models/service_spec.rb
375
- - spec/models/volume_response_spec.rb
376
- - spec/models/service_resource_attachment_spec.rb
377
377
  - spec/models/storage_host_volume_mapping_response_spec.rb
378
- - spec/models/account_post_response_spec.rb
378
+ - spec/models/storage_host_spec.rb
379
379
  - spec/models/volume_update_spec.rb
380
- - spec/models/auto_sde_role_spec.rb
381
- - spec/models/capability_translation_create_spec.rb
382
- - spec/models/storage_host_volume_mapping_spec.rb
383
- - spec/models/storage_host_wwpn_candidates_spec.rb
380
+ - spec/models/host_volume_connection_spec.rb
381
+ - spec/models/account_post_response_spec.rb
382
+ - spec/models/host_create_spec.rb
383
+ - spec/models/address_spec.rb
384
384
  - spec/models/profile_spec.rb
385
- - spec/models/storage_system_create_spec.rb
386
- - spec/models/auto_sde_project_spec.rb
385
+ - spec/models/job_create_spec.rb
386
+ - spec/models/auth_response_spec.rb
387
387
  - spec/spec_helper.rb