autosde_openapi_client 1.0.39 → 1.0.43

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: 3366f5d30a7672612c38c9c7e7c0d99437865d31ad127b3519cea9a2fa732c73
4
- data.tar.gz: 05a5ae38d8a5fb6e423a504ec55b31bab122a7195b9a7ac6ffbe1141a852e59f
3
+ metadata.gz: 327a37fe6eb7241c58c941f5c20266e776093890ac607c4bfef2f19f1337e3e5
4
+ data.tar.gz: 1581d149e9d9b49bc778f42aa911ec47bc184115fbe67baa4a457b5b39818b45
5
5
  SHA512:
6
- metadata.gz: 7ccc30a009e604cd5ddc8954609e150d0d96d4da4470e7ed1a133bc27067e0b410f0ecdbd5bd62a2f8564f455aa8487975796066b6dd462d32fe7d43d6a1e534
7
- data.tar.gz: 003a27be0c0b5e600b9e187d308490e4b2abfa953e2824b56ed2b1b5e755b121a72a78865995ba2e76a0409c9f530af938385f2095d9a83887a9367eaeb2e35a
6
+ metadata.gz: 17b9751c03aaddd9ff5a4b401ace49183bfd188206e3b02cff7bf9f0a7f75c5f73078a2d1cfaba01336978e6d8bf1e5ed40a2394971a5fe7575ae221a8e6f8e6
7
+ data.tar.gz: 107220fefee6206d8cb28e18d08a3181f01659716de7986ba4bd972f4d72925c2e38d8ff02ed1ff8565b2dac6fcd6294bb4920d111b7ec600e704f19cfe458a2
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]
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Site Manager API
5
5
 
6
- The version of the OpenAPI document: 1.0.39
6
+ The version of the OpenAPI document: 1.0.43
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.39'
14
+ VERSION = '1.0.43'
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,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: autosde_openapi_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.39
4
+ version: 1.0.43
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-04 00:00:00.000000000 Z
11
+ date: 2021-08-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -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/snapshot_api_spec.rb
314
- - spec/api/auto_sde_role_api_spec.rb
315
- - spec/api/service_api_spec.rb
316
- - spec/api/volume_api_spec.rb
317
- - spec/api/provisioning_strategy_api_spec.rb
318
- - spec/api/system_type_api_spec.rb
313
+ - spec/api/storage_system_api_spec.rb
314
+ - spec/api/host_volume_connection_api_spec.rb
315
+ - spec/api/service_resource_attachment_api_spec.rb
319
316
  - spec/api/native_capability_api_spec.rb
320
- - spec/api/capability_translation_api_spec.rb
321
- - spec/api/volume_safe_delete_api_spec.rb
322
317
  - spec/api/storage_host_volume_mapping_api_spec.rb
318
+ - spec/api/snapshot_api_spec.rb
319
+ - spec/api/authentication_api_spec.rb
323
320
  - spec/api/profile_api_spec.rb
324
- - spec/api/abstract_capability_api_spec.rb
325
- - spec/api/service_resource_attachment_api_spec.rb
326
- - spec/api/job_api_spec.rb
327
- - spec/api/host_volume_connection_api_spec.rb
328
- - spec/api/host_api_spec.rb
321
+ - spec/api/storage_resource_api_spec.rb
322
+ - spec/api/capability_translation_api_spec.rb
323
+ - spec/api/storage_host_api_spec.rb
324
+ - spec/api/volume_safe_delete_api_spec.rb
329
325
  - spec/api/address_api_spec.rb
330
- - spec/api/authentication_api_spec.rb
331
- - spec/api/auto_sde_project_api_spec.rb
326
+ - spec/api/auto_sde_role_api_spec.rb
327
+ - spec/api/host_api_spec.rb
332
328
  - spec/api/account_api_spec.rb
333
- - spec/api/storage_system_api_spec.rb
334
- - spec/api/storage_host_api_spec.rb
335
- - spec/api/storage_resource_api_spec.rb
329
+ - spec/api/system_type_api_spec.rb
336
330
  - spec/api/storage_host_wwpn_candidates_api_spec.rb
331
+ - spec/api/provisioning_strategy_api_spec.rb
332
+ - spec/api/job_api_spec.rb
333
+ - spec/api/auto_sde_project_api_spec.rb
334
+ - spec/api/volume_api_spec.rb
335
+ - spec/api/service_api_spec.rb
336
+ - spec/api/abstract_capability_api_spec.rb
337
337
  - spec/api_client_spec.rb
338
338
  - spec/configuration_spec.rb
339
- - spec/models/auth_response_spec.rb
340
- - spec/models/storage_system_spec.rb
341
- - spec/models/capability_translation_create_spec.rb
342
- - spec/models/service_resource_attachment_spec.rb
343
- - spec/models/storage_host_wwpn_candidates_spec.rb
344
- - spec/models/storage_host_create_spec.rb
339
+ - spec/models/authentication_spec.rb
340
+ - spec/models/storage_host_response_spec.rb
341
+ - spec/models/service_create_spec.rb
345
342
  - spec/models/abstract_capability_spec.rb
346
- - spec/models/storage_host_update_spec.rb
347
- - spec/models/storage_host_spec.rb
348
- - spec/models/host_volume_connection_spec.rb
349
- - spec/models/service_abstract_capability_value_spec.rb
350
- - spec/models/job_spec.rb
351
- - spec/models/profile_spec.rb
352
- - spec/models/volume_safe_delete_create_spec.rb
353
- - spec/models/capability_translation_spec.rb
354
- - spec/models/job_create_spec.rb
355
- - spec/models/volume_response_spec.rb
356
343
  - spec/models/storage_resource_create_spec.rb
357
- - spec/models/volume_safe_delete_spec.rb
344
+ - spec/models/snapshot_create_spec.rb
345
+ - spec/models/job_spec.rb
358
346
  - spec/models/host_create_spec.rb
359
- - spec/models/storage_resource_spec.rb
360
- - spec/models/address_spec.rb
361
- - spec/models/auto_sde_project_spec.rb
362
- - spec/models/service_spec.rb
363
- - spec/models/storage_host_response_spec.rb
364
- - spec/models/authentication_spec.rb
365
- - spec/models/account_post_request_spec.rb
366
- - spec/models/volume_create_spec.rb
367
- - spec/models/account_post_response_spec.rb
368
- - spec/models/storage_host_volume_mapping_response_spec.rb
369
- - spec/models/storage_host_volume_mapping_create_spec.rb
347
+ - spec/models/volume_update_spec.rb
348
+ - spec/models/volume_spec.rb
349
+ - spec/models/volume_safe_delete_spec.rb
370
350
  - spec/models/storage_resource_response_spec.rb
371
- - spec/models/provisioning_strategy_spec.rb
351
+ - spec/models/volume_response_spec.rb
352
+ - spec/models/system_type_create_spec.rb
353
+ - spec/models/profile_spec.rb
354
+ - spec/models/capability_translation_create_spec.rb
372
355
  - spec/models/snapshot_spec.rb
356
+ - spec/models/provisioning_strategy_spec.rb
357
+ - spec/models/service_spec.rb
358
+ - spec/models/host_volume_connection_spec.rb
373
359
  - spec/models/auto_sde_role_spec.rb
374
- - spec/models/address_create_spec.rb
375
- - spec/models/service_create_spec.rb
376
- - spec/models/storage_host_volume_mapping_spec.rb
377
- - spec/models/snapshot_create_spec.rb
360
+ - spec/models/host_spec.rb
378
361
  - spec/models/host_volume_connection_create_spec.rb
362
+ - spec/models/account_post_request_spec.rb
379
363
  - spec/models/storage_system_create_spec.rb
380
- - spec/models/system_type_create_spec.rb
364
+ - spec/models/auto_sde_project_spec.rb
365
+ - spec/models/job_create_spec.rb
366
+ - spec/models/storage_host_volume_mapping_create_spec.rb
367
+ - spec/models/service_resource_attachment_spec.rb
368
+ - spec/models/storage_host_wwpn_candidates_spec.rb
369
+ - spec/models/storage_resource_spec.rb
370
+ - spec/models/storage_host_spec.rb
371
+ - spec/models/storage_host_volume_mapping_response_spec.rb
372
+ - spec/models/volume_safe_delete_create_spec.rb
381
373
  - spec/models/native_capability_spec.rb
382
- - spec/models/host_spec.rb
383
- - spec/models/volume_spec.rb
384
- - spec/models/account_spec.rb
385
- - spec/models/volume_update_spec.rb
374
+ - spec/models/storage_host_update_spec.rb
375
+ - spec/models/address_create_spec.rb
386
376
  - spec/models/system_type_spec.rb
377
+ - spec/models/account_post_response_spec.rb
378
+ - spec/models/service_abstract_capability_value_spec.rb
379
+ - spec/models/address_spec.rb
380
+ - spec/models/storage_system_spec.rb
381
+ - spec/models/storage_host_volume_mapping_spec.rb
382
+ - spec/models/auth_response_spec.rb
383
+ - spec/models/storage_host_create_spec.rb
384
+ - spec/models/volume_create_spec.rb
385
+ - spec/models/capability_translation_spec.rb
386
+ - spec/models/account_spec.rb
387
387
  - spec/spec_helper.rb