smplkit 3.0.29 → 3.0.30

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: 3caa1fdc3056dd0625206623a067731a0189589f436973e60d4f0cbf6724c199
4
- data.tar.gz: 3b28c7f9bd92b8bfaeacb22928bb00719b2862d7479a1e5f161d104f17bb34d9
3
+ metadata.gz: 2525023986218faca8b2c9120bc728b5d3b3522387b25a7278f47985491bd474
4
+ data.tar.gz: 1e29788adcb15dbe4c5f2b8a5a4cf038a6823cb88163d8bb8675a65a52b27270
5
5
  SHA512:
6
- metadata.gz: 878bd46c416b0562c2c018d3b884d544a792bb5eb007be0945e3eb07abc8da82471be258161af6887e3c2d71933427c2b091e54e7c43bad1e21417b56ae3b0f7
7
- data.tar.gz: 5c3c5d10ef3d2ee6c7c1cf1752f693cbdab68246c0fd90bf4d984e1ef2debbdd9374ad06ab6c777ac240d3911c019d67c7cacc3f6c0d567364c0aa3dd3f397a3
6
+ metadata.gz: 3b6ea094b4fd72a8dfd650932d4481edf6469d68b10baddb081329f152e223fb04afc241dd53cf18b5db2cedbe0fabc80668b6169088aa6caef6d1038d55c0ae
7
+ data.tar.gz: '0483b27f3a10f7a3c449dd3d8af1a75c6f489af8a008c002f84346256bc7e735a4be100b9704345a1c8a7546cc4322a661a28c4e76c12fb217b559e7b6dde5a4'
@@ -192,21 +192,27 @@ module SmplkitGeneratedClient::App
192
192
 
193
193
  # Update Account Settings
194
194
  # Replace the current account's settings with the provided JSON object. Requires admin role.
195
+ # @param request_body [Hash<String, Object>]
195
196
  # @param [Hash] opts the optional parameters
196
197
  # @return [Hash<String, Object>]
197
- def put_account_settings(opts = {})
198
- data, _status_code, _headers = put_account_settings_with_http_info(opts)
198
+ def put_account_settings(request_body, opts = {})
199
+ data, _status_code, _headers = put_account_settings_with_http_info(request_body, opts)
199
200
  data
200
201
  end
201
202
 
202
203
  # Update Account Settings
203
204
  # Replace the current account&#39;s settings with the provided JSON object. Requires admin role.
205
+ # @param request_body [Hash<String, Object>]
204
206
  # @param [Hash] opts the optional parameters
205
207
  # @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
206
- def put_account_settings_with_http_info(opts = {})
208
+ def put_account_settings_with_http_info(request_body, opts = {})
207
209
  if @api_client.config.debugging
208
210
  @api_client.config.logger.debug 'Calling API: AccountApi.put_account_settings ...'
209
211
  end
212
+ # verify the required parameter 'request_body' is set
213
+ if @api_client.config.client_side_validation && request_body.nil?
214
+ fail ArgumentError, "Missing the required parameter 'request_body' when calling AccountApi.put_account_settings"
215
+ end
210
216
  # resource path
211
217
  local_var_path = '/api/v1/accounts/current/settings'
212
218
 
@@ -217,12 +223,17 @@ module SmplkitGeneratedClient::App
217
223
  header_params = opts[:header_params] || {}
218
224
  # HTTP header 'Accept' (if needed)
219
225
  header_params['Accept'] = @api_client.select_header_accept(['application/vnd.api+json']) unless header_params['Accept']
226
+ # HTTP header 'Content-Type'
227
+ content_type = @api_client.select_header_content_type(['application/vnd.api+json'])
228
+ if !content_type.nil?
229
+ header_params['Content-Type'] = content_type
230
+ end
220
231
 
221
232
  # form parameters
222
233
  form_params = opts[:form_params] || {}
223
234
 
224
235
  # http body (model)
225
- post_body = opts[:debug_body]
236
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(request_body)
226
237
 
227
238
  # return_type
228
239
  return_type = opts[:debug_return_type] || 'Hash<String, Object>'
@@ -280,21 +280,27 @@ module SmplkitGeneratedClient::App
280
280
 
281
281
  # Update User Settings
282
282
  # Replace the current user's settings with the provided JSON object.
283
+ # @param request_body [Hash<String, Object>]
283
284
  # @param [Hash] opts the optional parameters
284
285
  # @return [Hash<String, Object>]
285
- def put_user_settings(opts = {})
286
- data, _status_code, _headers = put_user_settings_with_http_info(opts)
286
+ def put_user_settings(request_body, opts = {})
287
+ data, _status_code, _headers = put_user_settings_with_http_info(request_body, opts)
287
288
  data
288
289
  end
289
290
 
290
291
  # Update User Settings
291
292
  # Replace the current user&#39;s settings with the provided JSON object.
293
+ # @param request_body [Hash<String, Object>]
292
294
  # @param [Hash] opts the optional parameters
293
295
  # @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
294
- def put_user_settings_with_http_info(opts = {})
296
+ def put_user_settings_with_http_info(request_body, opts = {})
295
297
  if @api_client.config.debugging
296
298
  @api_client.config.logger.debug 'Calling API: UsersApi.put_user_settings ...'
297
299
  end
300
+ # verify the required parameter 'request_body' is set
301
+ if @api_client.config.client_side_validation && request_body.nil?
302
+ fail ArgumentError, "Missing the required parameter 'request_body' when calling UsersApi.put_user_settings"
303
+ end
298
304
  # resource path
299
305
  local_var_path = '/api/v1/users/current/settings'
300
306
 
@@ -305,12 +311,17 @@ module SmplkitGeneratedClient::App
305
311
  header_params = opts[:header_params] || {}
306
312
  # HTTP header 'Accept' (if needed)
307
313
  header_params['Accept'] = @api_client.select_header_accept(['application/vnd.api+json']) unless header_params['Accept']
314
+ # HTTP header 'Content-Type'
315
+ content_type = @api_client.select_header_content_type(['application/vnd.api+json'])
316
+ if !content_type.nil?
317
+ header_params['Content-Type'] = content_type
318
+ end
308
319
 
309
320
  # form parameters
310
321
  form_params = opts[:form_params] || {}
311
322
 
312
323
  # http body (model)
313
- post_body = opts[:debug_body]
324
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(request_body)
314
325
 
315
326
  # return_type
316
327
  return_type = opts[:debug_return_type] || 'Hash<String, Object>'
@@ -338,19 +349,21 @@ module SmplkitGeneratedClient::App
338
349
  # Update User Setting by Key
339
350
  # Set a single key in the current user's settings. The key is stored as a flat literal key (dot-notation is NOT expanded to nested paths). Returns the full updated settings object.
340
351
  # @param key [String]
352
+ # @param request_body [Hash<String, Object>]
341
353
  # @param [Hash] opts the optional parameters
342
354
  # @return [Hash<String, Object>]
343
- def put_user_settings_key(key, opts = {})
344
- data, _status_code, _headers = put_user_settings_key_with_http_info(key, opts)
355
+ def put_user_settings_key(key, request_body, opts = {})
356
+ data, _status_code, _headers = put_user_settings_key_with_http_info(key, request_body, opts)
345
357
  data
346
358
  end
347
359
 
348
360
  # Update User Setting by Key
349
361
  # Set a single key in the current user&#39;s settings. The key is stored as a flat literal key (dot-notation is NOT expanded to nested paths). Returns the full updated settings object.
350
362
  # @param key [String]
363
+ # @param request_body [Hash<String, Object>]
351
364
  # @param [Hash] opts the optional parameters
352
365
  # @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
353
- def put_user_settings_key_with_http_info(key, opts = {})
366
+ def put_user_settings_key_with_http_info(key, request_body, opts = {})
354
367
  if @api_client.config.debugging
355
368
  @api_client.config.logger.debug 'Calling API: UsersApi.put_user_settings_key ...'
356
369
  end
@@ -358,6 +371,10 @@ module SmplkitGeneratedClient::App
358
371
  if @api_client.config.client_side_validation && key.nil?
359
372
  fail ArgumentError, "Missing the required parameter 'key' when calling UsersApi.put_user_settings_key"
360
373
  end
374
+ # verify the required parameter 'request_body' is set
375
+ if @api_client.config.client_side_validation && request_body.nil?
376
+ fail ArgumentError, "Missing the required parameter 'request_body' when calling UsersApi.put_user_settings_key"
377
+ end
361
378
  # resource path
362
379
  local_var_path = '/api/v1/users/current/settings/{key}'.sub('{key}', CGI.escape(key.to_s))
363
380
 
@@ -368,12 +385,17 @@ module SmplkitGeneratedClient::App
368
385
  header_params = opts[:header_params] || {}
369
386
  # HTTP header 'Accept' (if needed)
370
387
  header_params['Accept'] = @api_client.select_header_accept(['application/vnd.api+json']) unless header_params['Accept']
388
+ # HTTP header 'Content-Type'
389
+ content_type = @api_client.select_header_content_type(['application/vnd.api+json'])
390
+ if !content_type.nil?
391
+ header_params['Content-Type'] = content_type
392
+ end
371
393
 
372
394
  # form parameters
373
395
  form_params = opts[:form_params] || {}
374
396
 
375
397
  # http body (model)
376
- post_body = opts[:debug_body]
398
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(request_body)
377
399
 
378
400
  # return_type
379
401
  return_type = opts[:debug_return_type] || 'Hash<String, Object>'
@@ -68,6 +68,7 @@ describe 'AccountApi' do
68
68
  # unit tests for put_account_settings
69
69
  # Update Account Settings
70
70
  # Replace the current account&#39;s settings with the provided JSON object. Requires admin role.
71
+ # @param request_body
71
72
  # @param [Hash] opts the optional parameters
72
73
  # @return [Hash<String, Object>]
73
74
  describe 'put_account_settings test' do
@@ -87,6 +87,7 @@ describe 'UsersApi' do
87
87
  # unit tests for put_user_settings
88
88
  # Update User Settings
89
89
  # Replace the current user&#39;s settings with the provided JSON object.
90
+ # @param request_body
90
91
  # @param [Hash] opts the optional parameters
91
92
  # @return [Hash<String, Object>]
92
93
  describe 'put_user_settings test' do
@@ -99,6 +100,7 @@ describe 'UsersApi' do
99
100
  # Update User Setting by Key
100
101
  # Set a single key in the current user&#39;s settings. The key is stored as a flat literal key (dot-notation is NOT expanded to nested paths). Returns the full updated settings object.
101
102
  # @param key
103
+ # @param request_body
102
104
  # @param [Hash] opts the optional parameters
103
105
  # @return [Hash<String, Object>]
104
106
  describe 'put_user_settings_key test' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smplkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.29
4
+ version: 3.0.30
5
5
  platform: ruby
6
6
  authors:
7
7
  - Smpl Solutions LLC