Class: EjabberdHttpClient::MnesiaApi

Inherits:
Object
  • Object
show all
Defined in:
lib/ejabberd_http_client/api/mnesia_api.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_client = ApiClient.default) ⇒ MnesiaApi

Returns a new instance of MnesiaApi.



19
20
21
# File 'lib/ejabberd_http_client/api/mnesia_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/ejabberd_http_client/api/mnesia_api.rb', line 17

def api_client
  @api_client
end

Instance Method Details

#backup(backup_request, opts = {}) ⇒ nil

Backup the Mnesia database to a binary file.

Parameters:

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

    the optional parameters

Returns:

  • (nil)


26
27
28
29
# File 'lib/ejabberd_http_client/api/mnesia_api.rb', line 26

def backup(backup_request, opts = {})
  backup_with_http_info(backup_request, opts)
  nil
end

#backup_with_http_info(backup_request, opts = {}) ⇒ Array<(nil, Integer, Hash)>

Backup the Mnesia database to a binary file.

Parameters:

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

    the optional parameters

Returns:

  • (Array<(nil, Integer, Hash)>)

    nil, 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
74
75
76
77
78
79
80
81
82
83
84
85
86
# File 'lib/ejabberd_http_client/api/mnesia_api.rb', line 35

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

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['text/plain'])
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
      header_params['Content-Type'] = content_type
  end

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(backup_request)

  # return_type
  return_type = opts[:debug_return_type]

  # auth_names
  auth_names = opts[:debug_auth_names] || []

  new_options = opts.merge(
    :operation => :"MnesiaApi.backup",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: MnesiaApi#backup\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#change_node_name(change_node_name_request, opts = {}) ⇒ nil

Change the erlang node name in a backup file.

Parameters:

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

    the optional parameters

Returns:

  • (nil)


92
93
94
95
# File 'lib/ejabberd_http_client/api/mnesia_api.rb', line 92

def change_node_name(change_node_name_request, opts = {})
  change_node_name_with_http_info(change_node_name_request, opts)
  nil
end

#change_node_name_with_http_info(change_node_name_request, opts = {}) ⇒ Array<(nil, Integer, Hash)>

Change the erlang node name in a backup file.

Parameters:

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

    the optional parameters

Returns:

  • (Array<(nil, Integer, Hash)>)

    nil, response status code and response headers



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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
# File 'lib/ejabberd_http_client/api/mnesia_api.rb', line 101

def change_node_name_with_http_info(change_node_name_request, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: MnesiaApi.change_node_name ...'
  end
  # verify the required parameter 'change_node_name_request' is set
  if @api_client.config.client_side_validation && change_node_name_request.nil?
    fail ArgumentError, "Missing the required parameter 'change_node_name_request' when calling MnesiaApi.change_node_name"
  end
  # resource path
  local_var_path = '/api/mnesia_change_nodename'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
      header_params['Content-Type'] = content_type
  end

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(change_node_name_request)

  # return_type
  return_type = opts[:debug_return_type]

  # auth_names
  auth_names = opts[:debug_auth_names] || []

  new_options = opts.merge(
    :operation => :"MnesiaApi.change_node_name",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: MnesiaApi#change_node_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#delete_mnesia(delete_mnesia_request, opts = {}) ⇒ nil

Delete elements in Mnesia database for a given vhost.

Parameters:

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

    the optional parameters

Returns:

  • (nil)


156
157
158
159
# File 'lib/ejabberd_http_client/api/mnesia_api.rb', line 156

def delete_mnesia(delete_mnesia_request, opts = {})
  delete_mnesia_with_http_info(delete_mnesia_request, opts)
  nil
end

#delete_mnesia_with_http_info(delete_mnesia_request, opts = {}) ⇒ Array<(nil, Integer, Hash)>

Delete elements in Mnesia database for a given vhost.

Parameters:

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

    the optional parameters

Returns:

  • (Array<(nil, Integer, Hash)>)

    nil, response status code and response headers



165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
# File 'lib/ejabberd_http_client/api/mnesia_api.rb', line 165

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

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
      header_params['Content-Type'] = content_type
  end

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(delete_mnesia_request)

  # return_type
  return_type = opts[:debug_return_type]

  # auth_names
  auth_names = opts[:debug_auth_names] || []

  new_options = opts.merge(
    :operation => :"MnesiaApi.delete_mnesia",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: MnesiaApi#delete_mnesia\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#dump(dump_request, opts = {}) ⇒ String

Dump the Mnesia database to a text file.

Parameters:

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

    the optional parameters

Returns:

  • (String)


220
221
222
223
# File 'lib/ejabberd_http_client/api/mnesia_api.rb', line 220

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

#dump_table(dump_table_request, opts = {}) ⇒ String

Dump a Mnesia table to a text file.

Parameters:

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

    the optional parameters

Returns:

  • (String)


286
287
288
289
# File 'lib/ejabberd_http_client/api/mnesia_api.rb', line 286

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

#dump_table_with_http_info(dump_table_request, opts = {}) ⇒ Array<(String, Integer, Hash)>

Dump a Mnesia table to a text file.

Parameters:

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

    the optional parameters

Returns:

  • (Array<(String, Integer, Hash)>)

    String data, response status code and response headers



295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
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
# File 'lib/ejabberd_http_client/api/mnesia_api.rb', line 295

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

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
      header_params['Content-Type'] = content_type
  end

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(dump_table_request)

  # return_type
  return_type = opts[:debug_return_type] || 'String'

  # auth_names
  auth_names = opts[:debug_auth_names] || []

  new_options = opts.merge(
    :operation => :"MnesiaApi.dump_table",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: MnesiaApi#dump_table\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#dump_with_http_info(dump_request, opts = {}) ⇒ Array<(String, Integer, Hash)>

Dump the Mnesia database to a text file.

Parameters:

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

    the optional parameters

Returns:

  • (Array<(String, Integer, Hash)>)

    String data, response status code and response headers



229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
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
# File 'lib/ejabberd_http_client/api/mnesia_api.rb', line 229

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

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
      header_params['Content-Type'] = content_type
  end

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(dump_request)

  # return_type
  return_type = opts[:debug_return_type] || 'String'

  # auth_names
  auth_names = opts[:debug_auth_names] || []

  new_options = opts.merge(
    :operation => :"MnesiaApi.dump",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: MnesiaApi#dump\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#export2sql(export2sql_request, opts = {}) ⇒ Integer

Export virtual host information from Mnesia tables to SQL file.

Parameters:

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

    the optional parameters

Returns:

  • (Integer)


352
353
354
355
# File 'lib/ejabberd_http_client/api/mnesia_api.rb', line 352

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

#export2sql_with_http_info(export2sql_request, opts = {}) ⇒ Array<(Integer, Integer, Hash)>

Export virtual host information from Mnesia tables to SQL file.

Parameters:

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

    the optional parameters

Returns:

  • (Array<(Integer, Integer, Hash)>)

    Integer data, response status code and response headers



361
362
363
364
365
366
367
368
369
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
409
410
411
412
# File 'lib/ejabberd_http_client/api/mnesia_api.rb', line 361

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

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
      header_params['Content-Type'] = content_type
  end

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(export2sql_request)

  # return_type
  return_type = opts[:debug_return_type] || 'Integer'

  # auth_names
  auth_names = opts[:debug_auth_names] || []

  new_options = opts.merge(
    :operation => :"MnesiaApi.export2sql",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: MnesiaApi#export2sql\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#export_piefxis(export_piefxis_request, opts = {}) ⇒ Integer

Export data of all users in the server to PIEFXIS files (XEP-0227).

Parameters:

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

    the optional parameters

Returns:

  • (Integer)


418
419
420
421
# File 'lib/ejabberd_http_client/api/mnesia_api.rb', line 418

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

#export_piefxis_host(export_piefxis_host_request, opts = {}) ⇒ Integer

Export data of users in a host to PIEFXIS files (XEP-0227).

Parameters:

Returns:

  • (Integer)


484
485
486
487
# File 'lib/ejabberd_http_client/api/mnesia_api.rb', line 484

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

#export_piefxis_host_with_http_info(export_piefxis_host_request, opts = {}) ⇒ Array<(Integer, Integer, Hash)>

Export data of users in a host to PIEFXIS files (XEP-0227).

Parameters:

Returns:

  • (Array<(Integer, Integer, Hash)>)

    Integer data, response status code and response headers



493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
# File 'lib/ejabberd_http_client/api/mnesia_api.rb', line 493

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

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
      header_params['Content-Type'] = content_type
  end

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(export_piefxis_host_request)

  # return_type
  return_type = opts[:debug_return_type] || 'Integer'

  # auth_names
  auth_names = opts[:debug_auth_names] || []

  new_options = opts.merge(
    :operation => :"MnesiaApi.export_piefxis_host",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: MnesiaApi#export_piefxis_host\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#export_piefxis_with_http_info(export_piefxis_request, opts = {}) ⇒ Array<(Integer, Integer, Hash)>

Export data of all users in the server to PIEFXIS files (XEP-0227).

Parameters:

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

    the optional parameters

Returns:

  • (Array<(Integer, Integer, Hash)>)

    Integer data, response status code and response headers



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
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
# File 'lib/ejabberd_http_client/api/mnesia_api.rb', line 427

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

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
      header_params['Content-Type'] = content_type
  end

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(export_piefxis_request)

  # return_type
  return_type = opts[:debug_return_type] || 'Integer'

  # auth_names
  auth_names = opts[:debug_auth_names] || []

  new_options = opts.merge(
    :operation => :"MnesiaApi.export_piefxis",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: MnesiaApi#export_piefxis\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#global_mnesia_info(opts = {}) ⇒ ImportDir200Response

Dump info on global Mnesia state.

Parameters:

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

    the optional parameters

Returns:



549
550
551
552
# File 'lib/ejabberd_http_client/api/mnesia_api.rb', line 549

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

#global_mnesia_info_with_http_info(opts = {}) ⇒ Array<(ImportDir200Response, Integer, Hash)>

Dump info on global Mnesia state.

Parameters:

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

    the optional parameters

Returns:

  • (Array<(ImportDir200Response, Integer, Hash)>)

    ImportDir200Response data, response status code and response headers



557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
# File 'lib/ejabberd_http_client/api/mnesia_api.rb', line 557

def global_mnesia_info_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: MnesiaApi.global_mnesia_info ...'
  end
  # resource path
  local_var_path = '/api/mnesia_info'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'ImportDir200Response'

  # auth_names
  auth_names = opts[:debug_auth_names] || []

  new_options = opts.merge(
    :operation => :"MnesiaApi.global_mnesia_info",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: MnesiaApi#global_mnesia_info\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#import_dir(import_dir_request, opts = {}) ⇒ ImportDir200Response

Import users data from jabberd14 spool dir.

Parameters:

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

    the optional parameters

Returns:



605
606
607
608
# File 'lib/ejabberd_http_client/api/mnesia_api.rb', line 605

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

#import_dir_with_http_info(import_dir_request, opts = {}) ⇒ Array<(ImportDir200Response, Integer, Hash)>

Import users data from jabberd14 spool dir.

Parameters:

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

    the optional parameters

Returns:

  • (Array<(ImportDir200Response, Integer, Hash)>)

    ImportDir200Response data, response status code and response headers



614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
# File 'lib/ejabberd_http_client/api/mnesia_api.rb', line 614

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

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
      header_params['Content-Type'] = content_type
  end

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(import_dir_request)

  # return_type
  return_type = opts[:debug_return_type] || 'ImportDir200Response'

  # auth_names
  auth_names = opts[:debug_auth_names] || []

  new_options = opts.merge(
    :operation => :"MnesiaApi.import_dir",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: MnesiaApi#import_dir\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#import_file(import_file_request, opts = {}) ⇒ ImportDir200Response

Import user data from jabberd14 spool file.

Parameters:

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

    the optional parameters

Returns:



671
672
673
674
# File 'lib/ejabberd_http_client/api/mnesia_api.rb', line 671

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

#import_file_with_http_info(import_file_request, opts = {}) ⇒ Array<(ImportDir200Response, Integer, Hash)>

Import user data from jabberd14 spool file.

Parameters:

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

    the optional parameters

Returns:

  • (Array<(ImportDir200Response, Integer, Hash)>)

    ImportDir200Response data, response status code and response headers



680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
# File 'lib/ejabberd_http_client/api/mnesia_api.rb', line 680

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

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
      header_params['Content-Type'] = content_type
  end

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(import_file_request)

  # return_type
  return_type = opts[:debug_return_type] || 'ImportDir200Response'

  # auth_names
  auth_names = opts[:debug_auth_names] || []

  new_options = opts.merge(
    :operation => :"MnesiaApi.import_file",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: MnesiaApi#import_file\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#import_piefxis(import_piefxis_request, opts = {}) ⇒ nil

Import users data from a PIEFXIS file (XEP-0227).

Parameters:

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

    the optional parameters

Returns:

  • (nil)


737
738
739
740
# File 'lib/ejabberd_http_client/api/mnesia_api.rb', line 737

def import_piefxis(import_piefxis_request, opts = {})
  import_piefxis_with_http_info(import_piefxis_request, opts)
  nil
end

#import_piefxis_with_http_info(import_piefxis_request, opts = {}) ⇒ Array<(nil, Integer, Hash)>

Import users data from a PIEFXIS file (XEP-0227).

Parameters:

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

    the optional parameters

Returns:

  • (Array<(nil, Integer, Hash)>)

    nil, response status code and response headers



746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
# File 'lib/ejabberd_http_client/api/mnesia_api.rb', line 746

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

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
      header_params['Content-Type'] = content_type
  end

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(import_piefxis_request)

  # return_type
  return_type = opts[:debug_return_type]

  # auth_names
  auth_names = opts[:debug_auth_names] || []

  new_options = opts.merge(
    :operation => :"MnesiaApi.import_piefxis",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: MnesiaApi#import_piefxis\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#import_prosody(import_prosody_request, opts = {}) ⇒ nil

Import data from Prosody.

Parameters:

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

    the optional parameters

Returns:

  • (nil)


801
802
803
804
# File 'lib/ejabberd_http_client/api/mnesia_api.rb', line 801

def import_prosody(import_prosody_request, opts = {})
  import_prosody_with_http_info(import_prosody_request, opts)
  nil
end

#import_prosody_with_http_info(import_prosody_request, opts = {}) ⇒ Array<(nil, Integer, Hash)>

Import data from Prosody.

Parameters:

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

    the optional parameters

Returns:

  • (Array<(nil, Integer, Hash)>)

    nil, response status code and response headers



810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
# File 'lib/ejabberd_http_client/api/mnesia_api.rb', line 810

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

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
      header_params['Content-Type'] = content_type
  end

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(import_prosody_request)

  # return_type
  return_type = opts[:debug_return_type]

  # auth_names
  auth_names = opts[:debug_auth_names] || []

  new_options = opts.merge(
    :operation => :"MnesiaApi.import_prosody",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: MnesiaApi#import_prosody\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#install_fallback(install_fallback_request, opts = {}) ⇒ ImportDir200Response

Install Mnesia database from a binary backup file.

Parameters:

Returns:



865
866
867
868
# File 'lib/ejabberd_http_client/api/mnesia_api.rb', line 865

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

#install_fallback_with_http_info(install_fallback_request, opts = {}) ⇒ Array<(ImportDir200Response, Integer, Hash)>

Install Mnesia database from a binary backup file.

Parameters:

Returns:

  • (Array<(ImportDir200Response, Integer, Hash)>)

    ImportDir200Response data, response status code and response headers



874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
# File 'lib/ejabberd_http_client/api/mnesia_api.rb', line 874

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

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
      header_params['Content-Type'] = content_type
  end

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(install_fallback_request)

  # return_type
  return_type = opts[:debug_return_type] || 'ImportDir200Response'

  # auth_names
  auth_names = opts[:debug_auth_names] || []

  new_options = opts.merge(
    :operation => :"MnesiaApi.install_fallback",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: MnesiaApi#install_fallback\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#load_database(load_database_request, opts = {}) ⇒ nil

Restore Mnesia database from a text dump file.

Parameters:

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

    the optional parameters

Returns:

  • (nil)


931
932
933
934
# File 'lib/ejabberd_http_client/api/mnesia_api.rb', line 931

def load_database(load_database_request, opts = {})
  load_database_with_http_info(load_database_request, opts)
  nil
end

#load_database_with_http_info(load_database_request, opts = {}) ⇒ Array<(nil, Integer, Hash)>

Restore Mnesia database from a text dump file.

Parameters:

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

    the optional parameters

Returns:

  • (Array<(nil, Integer, Hash)>)

    nil, response status code and response headers



940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
# File 'lib/ejabberd_http_client/api/mnesia_api.rb', line 940

def load_database_with_http_info(load_database_request, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: MnesiaApi.load_database ...'
  end
  # verify the required parameter 'load_database_request' is set
  if @api_client.config.client_side_validation && load_database_request.nil?
    fail ArgumentError, "Missing the required parameter 'load_database_request' when calling MnesiaApi.load_database"
  end
  # resource path
  local_var_path = '/api/load'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
      header_params['Content-Type'] = content_type
  end

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(load_database_request)

  # return_type
  return_type = opts[:debug_return_type]

  # auth_names
  auth_names = opts[:debug_auth_names] || []

  new_options = opts.merge(
    :operation => :"MnesiaApi.load_database",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: MnesiaApi#load_database\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#restore(opts = {}) ⇒ String

Restore the Mnesia database from a binary backup file.

Parameters:

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

    the optional parameters

Options Hash (opts):

Returns:

  • (String)


995
996
997
998
# File 'lib/ejabberd_http_client/api/mnesia_api.rb', line 995

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

#restore_with_http_info(opts = {}) ⇒ Array<(String, Integer, Hash)>

Restore the Mnesia database from a binary backup file.

Parameters:

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

    the optional parameters

Options Hash (opts):

Returns:

  • (Array<(String, Integer, Hash)>)

    String data, response status code and response headers



1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
# File 'lib/ejabberd_http_client/api/mnesia_api.rb', line 1004

def restore_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: MnesiaApi.restore ...'
  end
  # resource path
  local_var_path = '/api/restore'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
      header_params['Content-Type'] = content_type
  end

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'restore_request'])

  # return_type
  return_type = opts[:debug_return_type] || 'String'

  # auth_names
  auth_names = opts[:debug_auth_names] || []

  new_options = opts.merge(
    :operation => :"MnesiaApi.restore",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: MnesiaApi#restore\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#table_mnesia_info(table_mnesia_info_request, opts = {}) ⇒ ImportDir200Response

Dump info on Mnesia table state.

Parameters:

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

    the optional parameters

Returns:



1057
1058
1059
1060
# File 'lib/ejabberd_http_client/api/mnesia_api.rb', line 1057

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

#table_mnesia_info_with_http_info(table_mnesia_info_request, opts = {}) ⇒ Array<(ImportDir200Response, Integer, Hash)>

Dump info on Mnesia table state.

Parameters:

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

    the optional parameters

Returns:

  • (Array<(ImportDir200Response, Integer, Hash)>)

    ImportDir200Response data, response status code and response headers



1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
# File 'lib/ejabberd_http_client/api/mnesia_api.rb', line 1066

def table_mnesia_info_with_http_info(table_mnesia_info_request, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: MnesiaApi.table_mnesia_info ...'
  end
  # verify the required parameter 'table_mnesia_info_request' is set
  if @api_client.config.client_side_validation && table_mnesia_info_request.nil?
    fail ArgumentError, "Missing the required parameter 'table_mnesia_info_request' when calling MnesiaApi.table_mnesia_info"
  end
  # resource path
  local_var_path = '/api/mnesia_table_info'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
      header_params['Content-Type'] = content_type
  end

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(table_mnesia_info_request)

  # return_type
  return_type = opts[:debug_return_type] || 'ImportDir200Response'

  # auth_names
  auth_names = opts[:debug_auth_names] || []

  new_options = opts.merge(
    :operation => :"MnesiaApi.table_mnesia_info",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: MnesiaApi#table_mnesia_info\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end