autosde_openapi_client 1.0.40 → 1.0.41

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: fdeb6b5d48eb1d9546baa7864eeb3792c6365f851c77e93b95fc80fc9a63030b
4
+ data.tar.gz: 22d8205c9df759f9ba36472a04d9226b00a754b26c32545228bef064c106c1d8
5
5
  SHA512:
6
- metadata.gz: e842f50efa9d6be9be4aaeeac01bfb08b5e12af2dc2b941ac124530db35facb6da79be824469a159e923c76799f5a7585cc7033d2aa75a94ab8402aa7e499cd1
7
- data.tar.gz: e4a68eabd993aadc8249ae64877af882fc1e14d983a8b53535d80f9ac3e9518b9f0fcb7c6c74cfa429e5a26616161d88725bd085c6e1873d994eaf9a0ff2f295
6
+ metadata.gz: a1b62f89fc13641d69df2a292a9054675dd7e368023ca97fdf4e524a17c8f9b510e0c06355702c8f90be238acc9fbaa8afb4a0414e589600b168da1910263ada
7
+ data.tar.gz: 9de7ff9f916928ff63187f78d9e0115719bddc27d1631ce4cb39d762b443f503f8633e733f391db672fca16e056c9c6e1107ba55adae40c4305f38add6a7b953
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.40
6
+ The version of the OpenAPI document: 1.0.41
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.41'
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.41
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator