Class: IntegrationApi::BaasApi

Inherits:
Object
  • Object
show all
Defined in:
lib/integration_api/api/baas_api.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_client = ApiClient.default) ⇒ BaasApi

Returns a new instance of BaasApi.



19
20
21
# File 'lib/integration_api/api/baas_api.rb', line 19

def initialize(api_client = ApiClient.default)
  @api_client = api_client
end

Instance Attribute Details

#api_clientObject

Returns the value of attribute api_client.



17
18
19
# File 'lib/integration_api/api/baas_api.rb', line 17

def api_client
  @api_client
end

Instance Method Details

#create_baas_account_using_post(baas_account_co, opts = {}) ⇒ BaasAccountVO

create a Baas account

Parameters:

  • baas_account_co

    baasAccountCO

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



26
27
28
29
# File 'lib/integration_api/api/baas_api.rb', line 26

def (, opts = {})
  data, _status_code, _headers = (, opts)
  data
end

#create_baas_account_using_post_with_http_info(baas_account_co, opts = {}) ⇒ Array<(BaasAccountVO, Fixnum, Hash)>

create a Baas account

Parameters:

  • baas_account_co

    baasAccountCO

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(BaasAccountVO, Fixnum, Hash)>)

    BaasAccountVO data, response status code and response headers



35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# File 'lib/integration_api/api/baas_api.rb', line 35

def (, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: BaasApi.create_baas_account_using_post ...'
  end
  # verify the required parameter 'baas_account_co' is set
  if @api_client.config.client_side_validation && .nil?
    fail ArgumentError, "Missing the required parameter 'baas_account_co' when calling BaasApi.create_baas_account_using_post"
  end
  # resource path
  local_var_path = '/baas/account'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['*/*'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body()
  auth_names = ['oauth2']
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'BaasAccountVO')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: BaasApi#create_baas_account_using_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#create_baas_business_using_post(baas_business_co, opts = {}) ⇒ BaasBusinessVO

Create a Baas Business

Parameters:

  • baas_business_co

    baasBusinessCO

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



78
79
80
81
# File 'lib/integration_api/api/baas_api.rb', line 78

def create_baas_business_using_post(baas_business_co, opts = {})
  data, _status_code, _headers = create_baas_business_using_post_with_http_info(baas_business_co, opts)
  data
end

#create_baas_business_using_post_with_http_info(baas_business_co, opts = {}) ⇒ Array<(BaasBusinessVO, Fixnum, Hash)>

Create a Baas Business

Parameters:

  • baas_business_co

    baasBusinessCO

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(BaasBusinessVO, Fixnum, Hash)>)

    BaasBusinessVO data, response status code and response headers



87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
# File 'lib/integration_api/api/baas_api.rb', line 87

def create_baas_business_using_post_with_http_info(baas_business_co, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: BaasApi.create_baas_business_using_post ...'
  end
  # verify the required parameter 'baas_business_co' is set
  if @api_client.config.client_side_validation && baas_business_co.nil?
    fail ArgumentError, "Missing the required parameter 'baas_business_co' when calling BaasApi.create_baas_business_using_post"
  end
  # resource path
  local_var_path = '/baas/business'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['*/*'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(baas_business_co)
  auth_names = ['oauth2']
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'BaasBusinessVO')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: BaasApi#create_baas_business_using_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#create_baas_client_using_post(baas_client_co, opts = {}) ⇒ BaasClientVO

Create a Baas Client

Parameters:

  • baas_client_co

    baasClientCO

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



130
131
132
133
# File 'lib/integration_api/api/baas_api.rb', line 130

def create_baas_client_using_post(baas_client_co, opts = {})
  data, _status_code, _headers = create_baas_client_using_post_with_http_info(baas_client_co, opts)
  data
end

#create_baas_client_using_post_with_http_info(baas_client_co, opts = {}) ⇒ Array<(BaasClientVO, Fixnum, Hash)>

Create a Baas Client

Parameters:

  • baas_client_co

    baasClientCO

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(BaasClientVO, Fixnum, Hash)>)

    BaasClientVO data, response status code and response headers



139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
# File 'lib/integration_api/api/baas_api.rb', line 139

def create_baas_client_using_post_with_http_info(baas_client_co, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: BaasApi.create_baas_client_using_post ...'
  end
  # verify the required parameter 'baas_client_co' is set
  if @api_client.config.client_side_validation && baas_client_co.nil?
    fail ArgumentError, "Missing the required parameter 'baas_client_co' when calling BaasApi.create_baas_client_using_post"
  end
  # resource path
  local_var_path = '/baas/client'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['*/*'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(baas_client_co)
  auth_names = ['oauth2']
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'BaasClientVO')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: BaasApi#create_baas_client_using_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#create_baas_sub_account_using_post(baas_sub_account_co, opts = {}) ⇒ BaasSubAccountVO

create a Baas subaccount

Parameters:

  • baas_sub_account_co

    baasSubAccountCO

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



182
183
184
185
# File 'lib/integration_api/api/baas_api.rb', line 182

def (, opts = {})
  data, _status_code, _headers = (, opts)
  data
end

#create_baas_sub_account_using_post_with_http_info(baas_sub_account_co, opts = {}) ⇒ Array<(BaasSubAccountVO, Fixnum, Hash)>

create a Baas subaccount

Parameters:

  • baas_sub_account_co

    baasSubAccountCO

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(BaasSubAccountVO, Fixnum, Hash)>)

    BaasSubAccountVO data, response status code and response headers



191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
# File 'lib/integration_api/api/baas_api.rb', line 191

def (, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: BaasApi.create_baas_sub_account_using_post ...'
  end
  # verify the required parameter 'baas_sub_account_co' is set
  if @api_client.config.client_side_validation && .nil?
    fail ArgumentError, "Missing the required parameter 'baas_sub_account_co' when calling BaasApi.create_baas_sub_account_using_post"
  end
  # resource path
  local_var_path = '/baas/subaccount'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['*/*'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body()
  auth_names = ['oauth2']
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'BaasSubAccountVO')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: BaasApi#create_baas_sub_account_using_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_baas_account_statement_using_get(end_date, nucleus_account_id, start_date, opts = {}) ⇒ BaasStatementsVO

Get a Baas account statement

Parameters:

  • end_date

    end_date

  • nucleus_account_id

    nucleus_account_id

  • start_date

    start_date

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :statement_type (String)

    statement_type

Returns:



237
238
239
240
# File 'lib/integration_api/api/baas_api.rb', line 237

def (end_date, , start_date, opts = {})
  data, _status_code, _headers = (end_date, , start_date, opts)
  data
end

#get_baas_account_statement_using_get_with_http_info(end_date, nucleus_account_id, start_date, opts = {}) ⇒ Array<(BaasStatementsVO, Fixnum, Hash)>

Get a Baas account statement

Parameters:

  • end_date

    end_date

  • nucleus_account_id

    nucleus_account_id

  • start_date

    start_date

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :statement_type (String)

    statement_type

Returns:

  • (Array<(BaasStatementsVO, Fixnum, Hash)>)

    BaasStatementsVO data, response status code and response headers



249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
# File 'lib/integration_api/api/baas_api.rb', line 249

def (end_date, , start_date, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: BaasApi.get_baas_account_statement_using_get ...'
  end
  # verify the required parameter 'end_date' is set
  if @api_client.config.client_side_validation && end_date.nil?
    fail ArgumentError, "Missing the required parameter 'end_date' when calling BaasApi.get_baas_account_statement_using_get"
  end
  # verify the required parameter 'nucleus_account_id' is set
  if @api_client.config.client_side_validation && .nil?
    fail ArgumentError, "Missing the required parameter 'nucleus_account_id' when calling BaasApi.get_baas_account_statement_using_get"
  end
  # verify the required parameter 'start_date' is set
  if @api_client.config.client_side_validation && start_date.nil?
    fail ArgumentError, "Missing the required parameter 'start_date' when calling BaasApi.get_baas_account_statement_using_get"
  end
  # resource path
  local_var_path = '/baas/statement/{nucleus_account_id}'.sub('{' + 'nucleus_account_id' + '}', .to_s)

  # query parameters
  query_params = {}
  query_params[:'end_date'] = end_date
  query_params[:'start_date'] = start_date
  query_params[:'statement_type'] = opts[:'statement_type'] if !opts[:'statement_type'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['*/*'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['oauth2']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'BaasStatementsVO')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: BaasApi#get_baas_account_statement_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_baas_portfolio_balance_using_get(nucleus_portfolio_id, opts = {}) ⇒ BaasBalanceVO

Get a Baas portfolio balance

Parameters:

  • nucleus_portfolio_id

    nucleus_portfolio_id

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :end_date (Date)

    end_date

  • :start_date (Date)

    start_date

Returns:



303
304
305
306
# File 'lib/integration_api/api/baas_api.rb', line 303

def get_baas_portfolio_balance_using_get(nucleus_portfolio_id, opts = {})
  data, _status_code, _headers = get_baas_portfolio_balance_using_get_with_http_info(nucleus_portfolio_id, opts)
  data
end

#get_baas_portfolio_balance_using_get_with_http_info(nucleus_portfolio_id, opts = {}) ⇒ Array<(BaasBalanceVO, Fixnum, Hash)>

Get a Baas portfolio balance

Parameters:

  • nucleus_portfolio_id

    nucleus_portfolio_id

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :end_date (Date)

    end_date

  • :start_date (Date)

    start_date

Returns:

  • (Array<(BaasBalanceVO, Fixnum, Hash)>)

    BaasBalanceVO data, response status code and response headers



314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
# File 'lib/integration_api/api/baas_api.rb', line 314

def get_baas_portfolio_balance_using_get_with_http_info(nucleus_portfolio_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: BaasApi.get_baas_portfolio_balance_using_get ...'
  end
  # verify the required parameter 'nucleus_portfolio_id' is set
  if @api_client.config.client_side_validation && nucleus_portfolio_id.nil?
    fail ArgumentError, "Missing the required parameter 'nucleus_portfolio_id' when calling BaasApi.get_baas_portfolio_balance_using_get"
  end
  # resource path
  local_var_path = '/baas/balance/{nucleus_portfolio_id}'.sub('{' + 'nucleus_portfolio_id' + '}', nucleus_portfolio_id.to_s)

  # query parameters
  query_params = {}
  query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
  query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['*/*'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['oauth2']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'BaasBalanceVO')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: BaasApi#get_baas_portfolio_balance_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_baas_portfolio_transaction_using_get(nucleus_portfolio_id, opts = {}) ⇒ BaasTransactionsVO

Get a Baas portfolio transaction

Parameters:

  • nucleus_portfolio_id

    nucleus_portfolio_id

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :end_date (Date)

    end_date

  • :start_date (Date)

    start_date

Returns:



359
360
361
362
# File 'lib/integration_api/api/baas_api.rb', line 359

def get_baas_portfolio_transaction_using_get(nucleus_portfolio_id, opts = {})
  data, _status_code, _headers = get_baas_portfolio_transaction_using_get_with_http_info(nucleus_portfolio_id, opts)
  data
end

#get_baas_portfolio_transaction_using_get_with_http_info(nucleus_portfolio_id, opts = {}) ⇒ Array<(BaasTransactionsVO, Fixnum, Hash)>

Get a Baas portfolio transaction

Parameters:

  • nucleus_portfolio_id

    nucleus_portfolio_id

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :end_date (Date)

    end_date

  • :start_date (Date)

    start_date

Returns:

  • (Array<(BaasTransactionsVO, Fixnum, Hash)>)

    BaasTransactionsVO data, response status code and response headers



370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
# File 'lib/integration_api/api/baas_api.rb', line 370

def get_baas_portfolio_transaction_using_get_with_http_info(nucleus_portfolio_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: BaasApi.get_baas_portfolio_transaction_using_get ...'
  end
  # verify the required parameter 'nucleus_portfolio_id' is set
  if @api_client.config.client_side_validation && nucleus_portfolio_id.nil?
    fail ArgumentError, "Missing the required parameter 'nucleus_portfolio_id' when calling BaasApi.get_baas_portfolio_transaction_using_get"
  end
  # resource path
  local_var_path = '/baas/transaction/{nucleus_portfolio_id}'.sub('{' + 'nucleus_portfolio_id' + '}', nucleus_portfolio_id.to_s)

  # query parameters
  query_params = {}
  query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
  query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['*/*'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['oauth2']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'BaasTransactionsVO')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: BaasApi#get_baas_portfolio_transaction_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#update_baas_business_using_put(nucleus_business_id, opts = {}) ⇒ BaasBusinessVO

Update a Baas business

Parameters:

  • nucleus_business_id

    nucleus_business_id

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:



414
415
416
417
# File 'lib/integration_api/api/baas_api.rb', line 414

def update_baas_business_using_put(nucleus_business_id, opts = {})
  data, _status_code, _headers = update_baas_business_using_put_with_http_info(nucleus_business_id, opts)
  data
end

#update_baas_business_using_put_with_http_info(nucleus_business_id, opts = {}) ⇒ Array<(BaasBusinessVO, Fixnum, Hash)>

Update a Baas business

Parameters:

  • nucleus_business_id

    nucleus_business_id

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:

  • (Array<(BaasBusinessVO, Fixnum, Hash)>)

    BaasBusinessVO data, response status code and response headers



424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
# File 'lib/integration_api/api/baas_api.rb', line 424

def update_baas_business_using_put_with_http_info(nucleus_business_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: BaasApi.update_baas_business_using_put ...'
  end
  # verify the required parameter 'nucleus_business_id' is set
  if @api_client.config.client_side_validation && nucleus_business_id.nil?
    fail ArgumentError, "Missing the required parameter 'nucleus_business_id' when calling BaasApi.update_baas_business_using_put"
  end
  # resource path
  local_var_path = '/baas/business/{nucleus_business_id}'.sub('{' + 'nucleus_business_id' + '}', nucleus_business_id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['*/*'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(opts[:'baas_business_co'])
  auth_names = ['oauth2']
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'BaasBusinessVO')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: BaasApi#update_baas_business_using_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#update_baas_client_using_put(nucleus_client_id, opts = {}) ⇒ BaasClientVO

Update a Baas client

Parameters:

  • nucleus_client_id

    nucleus_client_id

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:



468
469
470
471
# File 'lib/integration_api/api/baas_api.rb', line 468

def update_baas_client_using_put(nucleus_client_id, opts = {})
  data, _status_code, _headers = update_baas_client_using_put_with_http_info(nucleus_client_id, opts)
  data
end

#update_baas_client_using_put_with_http_info(nucleus_client_id, opts = {}) ⇒ Array<(BaasClientVO, Fixnum, Hash)>

Update a Baas client

Parameters:

  • nucleus_client_id

    nucleus_client_id

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:

  • (Array<(BaasClientVO, Fixnum, Hash)>)

    BaasClientVO data, response status code and response headers



478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
# File 'lib/integration_api/api/baas_api.rb', line 478

def update_baas_client_using_put_with_http_info(nucleus_client_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: BaasApi.update_baas_client_using_put ...'
  end
  # verify the required parameter 'nucleus_client_id' is set
  if @api_client.config.client_side_validation && nucleus_client_id.nil?
    fail ArgumentError, "Missing the required parameter 'nucleus_client_id' when calling BaasApi.update_baas_client_using_put"
  end
  # resource path
  local_var_path = '/baas/client/{nucleus_client_id}'.sub('{' + 'nucleus_client_id' + '}', nucleus_client_id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['*/*'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(opts[:'baas_client_co'])
  auth_names = ['oauth2']
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'BaasClientVO')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: BaasApi#update_baas_client_using_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end