ejabberd_http_client 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (520) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +13 -0
  3. data/Gemfile.lock +72 -0
  4. data/README.md +411 -0
  5. data/Rakefile +10 -0
  6. data/docs/AbortDeleteOldMamMessages200Response.md +18 -0
  7. data/docs/AbortDeleteOldMamMessagesRequest.md +18 -0
  8. data/docs/AccountsApi.md +640 -0
  9. data/docs/AcmeApi.md +197 -0
  10. data/docs/AddOAuthClientImplicitRequest.md +22 -0
  11. data/docs/AddOAuthClientPasswordRequest.md +22 -0
  12. data/docs/AddRosterItemRequest.md +30 -0
  13. data/docs/BackupRequest.md +18 -0
  14. data/docs/BanAccountRequest.md +22 -0
  15. data/docs/BookmarksToPepRequest.md +20 -0
  16. data/docs/ChangeNodeNameRequest.md +24 -0
  17. data/docs/ChangePasswordRequest.md +22 -0
  18. data/docs/ChangeRoomOptionRequest.md +24 -0
  19. data/docs/CheckAccountRequest.md +20 -0
  20. data/docs/CheckModuleRequest.md +18 -0
  21. data/docs/CheckPasswordHashRequest.md +24 -0
  22. data/docs/CheckPasswordRequest.md +22 -0
  23. data/docs/ClusterApi.md +256 -0
  24. data/docs/CompileRequest.md +18 -0
  25. data/docs/ConfigApi.md +192 -0
  26. data/docs/ConnectedUsersInfo200ResponseInner.md +36 -0
  27. data/docs/ConnectedUsersNumber200Response.md +18 -0
  28. data/docs/ConnectedUsersVHostRequest.md +18 -0
  29. data/docs/ConvertToScramRequest.md +18 -0
  30. data/docs/ConvertToYamlRequest.md +20 -0
  31. data/docs/CreateRoomRequest.md +22 -0
  32. data/docs/CreateRoomWithOptionsRequest.md +24 -0
  33. data/docs/CreateRoomWithOptionsRequestOptionsInner.md +20 -0
  34. data/docs/CreateRoomsFileRequest.md +18 -0
  35. data/docs/DeleteMnesiaRequest.md +18 -0
  36. data/docs/DeleteOldMAMMessagesBatchRequest.md +26 -0
  37. data/docs/DeleteOldMAMMessagesRequest.md +20 -0
  38. data/docs/DeleteOldMAMMessagesStatusRequest.md +18 -0
  39. data/docs/DeleteOldMessagesBatchRequest.md +24 -0
  40. data/docs/DeleteOldMessagesRequest.md +18 -0
  41. data/docs/DeleteOldPubsubItemsRequest.md +18 -0
  42. data/docs/DeleteOldUsersRequest.md +18 -0
  43. data/docs/DocumentationApi.md +255 -0
  44. data/docs/DumpConfigRequest.md +18 -0
  45. data/docs/DumpRequest.md +18 -0
  46. data/docs/DumpTableRequest.md +20 -0
  47. data/docs/ErlangApi.md +194 -0
  48. data/docs/Export2sqlRequest.md +20 -0
  49. data/docs/ExportPiefxisHostRequest.md +20 -0
  50. data/docs/ExportPiefxisRequest.md +18 -0
  51. data/docs/GenHtmlDocForCommandsRequest.md +22 -0
  52. data/docs/GenMarkdownDocForTagsRequest.md +18 -0
  53. data/docs/GetCookie200Response.md +18 -0
  54. data/docs/GetLast200Response.md +20 -0
  55. data/docs/GetLastRequest.md +20 -0
  56. data/docs/GetLoglevel200Response.md +18 -0
  57. data/docs/GetNumResources200Response.md +18 -0
  58. data/docs/GetOfflineCount200Response.md +18 -0
  59. data/docs/GetOfflineCountRequest.md +20 -0
  60. data/docs/GetOutgoingS2sNumber200Response.md +18 -0
  61. data/docs/GetPresence200Response.md +22 -0
  62. data/docs/GetRoomAffiliation200Response.md +18 -0
  63. data/docs/GetRoomAffiliationRequest.md +22 -0
  64. data/docs/GetRoomAffiliations200ResponseInner.md +24 -0
  65. data/docs/GetRoomAffiliationsRequest.md +20 -0
  66. data/docs/GetRoomHistory200ResponseInner.md +20 -0
  67. data/docs/GetRoomOccupants200ResponseInner.md +22 -0
  68. data/docs/GetRoomOccupantsNumber200Response.md +18 -0
  69. data/docs/GetRoomOptions200ResponseInner.md +20 -0
  70. data/docs/GetRoster200ResponseInner.md +26 -0
  71. data/docs/GetStats200Response.md +18 -0
  72. data/docs/GetStatsHostRequest.md +20 -0
  73. data/docs/GetStatsRequest.md +18 -0
  74. data/docs/GetStatusList200ResponseInner.md +26 -0
  75. data/docs/GetStatusListHostRequest.md +20 -0
  76. data/docs/GetStatusListRequest.md +18 -0
  77. data/docs/GetStatusNum200Response.md +18 -0
  78. data/docs/GetUserRoomsRequest.md +20 -0
  79. data/docs/GetUserSessionsInfo200ResponseInner.md +34 -0
  80. data/docs/GetUserSubscriptions200ResponseInner.md +22 -0
  81. data/docs/GetVcard200Response.md +18 -0
  82. data/docs/GetVcard2MultiRequest.md +24 -0
  83. data/docs/GetVcard2Request.md +24 -0
  84. data/docs/GetVcardRequest.md +22 -0
  85. data/docs/ImportDir200Response.md +18 -0
  86. data/docs/ImportDirRequest.md +18 -0
  87. data/docs/ImportFileRequest.md +18 -0
  88. data/docs/ImportPiefxisRequest.md +18 -0
  89. data/docs/ImportProsodyRequest.md +18 -0
  90. data/docs/IncomingS2sNumber200Response.md +18 -0
  91. data/docs/InstallFallbackRequest.md +18 -0
  92. data/docs/IssueOAuthToken200Response.md +22 -0
  93. data/docs/IssueOAuthTokenRequest.md +22 -0
  94. data/docs/JoinClusterRequest.md +18 -0
  95. data/docs/KickSessionRequest.md +24 -0
  96. data/docs/KickUser200Response.md +18 -0
  97. data/docs/LastApi.md +135 -0
  98. data/docs/LeaveClusterRequest.md +18 -0
  99. data/docs/ListCertificates200ResponseInner.md +22 -0
  100. data/docs/ListMucOnlineRoomsByRegex200ResponseInner.md +22 -0
  101. data/docs/ListMucOnlineRoomsByRegexRequest.md +20 -0
  102. data/docs/ListMucOnlineRoomsRequest.md +18 -0
  103. data/docs/ListOAuthTokens200ResponseInner.md +24 -0
  104. data/docs/LoadDatabaseRequest.md +18 -0
  105. data/docs/LogsApi.md +252 -0
  106. data/docs/MamApi.md +137 -0
  107. data/docs/MnesiaApi.md +1071 -0
  108. data/docs/ModulesApi.md +434 -0
  109. data/docs/MucApi.md +705 -0
  110. data/docs/MucRoomApi.md +959 -0
  111. data/docs/OauthApi.md +378 -0
  112. data/docs/OfflineApi.md +70 -0
  113. data/docs/PrivacySetRequest.md +22 -0
  114. data/docs/PrivateApi.md +199 -0
  115. data/docs/PrivateGetRequest.md +24 -0
  116. data/docs/PrivateSetRequest.md +22 -0
  117. data/docs/ProcessRosterItems200ResponseInner.md +20 -0
  118. data/docs/ProcessRosterItemsRequest.md +26 -0
  119. data/docs/PurgeApi.md +815 -0
  120. data/docs/PushAllToAllRequest.md +20 -0
  121. data/docs/PushRosterAllRequest.md +18 -0
  122. data/docs/PushRosterRequest.md +22 -0
  123. data/docs/RegisterMucNickRequest.md +22 -0
  124. data/docs/RegisterRequest.md +22 -0
  125. data/docs/RegisteredUsersRequest.md +18 -0
  126. data/docs/RemoveMamForUserWithPeerRequest.md +22 -0
  127. data/docs/RemoveOAuthClientRequest.md +18 -0
  128. data/docs/RequestCertificateRequest.md +18 -0
  129. data/docs/ResourceNum200Response.md +18 -0
  130. data/docs/ResourceNumRequest.md +22 -0
  131. data/docs/RestartModule200Response.md +18 -0
  132. data/docs/RestartModuleRequest.md +20 -0
  133. data/docs/RestoreRequest.md +18 -0
  134. data/docs/RevokeCertificateRequest.md +18 -0
  135. data/docs/RevokeOAuthTokenRequest.md +18 -0
  136. data/docs/RoomsEmptyDestroyRequest.md +18 -0
  137. data/docs/RoomsUnusedDestroyRequest.md +20 -0
  138. data/docs/RosterApi.md +392 -0
  139. data/docs/S2sApi.md +187 -0
  140. data/docs/SendDirectInvitationRequest.md +26 -0
  141. data/docs/SendMessageRequest.md +26 -0
  142. data/docs/SendStanzaC2SRequest.md +24 -0
  143. data/docs/SendStanzaRequest.md +22 -0
  144. data/docs/ServerApi.md +615 -0
  145. data/docs/SessionApi.md +1021 -0
  146. data/docs/SetLastRequest.md +24 -0
  147. data/docs/SetLoglevelRequest.md +18 -0
  148. data/docs/SetMasterRequest.md +18 -0
  149. data/docs/SetNicknameRequest.md +22 -0
  150. data/docs/SetPresenceRequest.md +30 -0
  151. data/docs/SetRoomAffiliationRequest.md +24 -0
  152. data/docs/SetVcard2MultiRequest.md +26 -0
  153. data/docs/SetVcard2Request.md +26 -0
  154. data/docs/SetVcardRequest.md +24 -0
  155. data/docs/SharedRosterGroupApi.md +462 -0
  156. data/docs/SqlApi.md +191 -0
  157. data/docs/SrgCreateRequest.md +26 -0
  158. data/docs/SrgDeleteRequest.md +20 -0
  159. data/docs/SrgGetInfo200ResponseInner.md +20 -0
  160. data/docs/SrgUserAddRequest.md +24 -0
  161. data/docs/StanzaApi.md +267 -0
  162. data/docs/StatisticsApi.md +447 -0
  163. data/docs/StopKindlyRequest.md +20 -0
  164. data/docs/SubscribeToRoomManyRequest.md +22 -0
  165. data/docs/SubscribeToRoomManyRequestUsersInner.md +20 -0
  166. data/docs/SubscribeToRoomRequest.md +24 -0
  167. data/docs/TableMnesiaInfoRequest.md +18 -0
  168. data/docs/UnbanIp200Response.md +18 -0
  169. data/docs/UnbanIpRequest.md +18 -0
  170. data/docs/UnregisterMucNickRequest.md +20 -0
  171. data/docs/UnregisterUserRequest.md +20 -0
  172. data/docs/UnsubscribeFromRoomRequest.md +20 -0
  173. data/docs/VcardApi.md +456 -0
  174. data/ejabberd_http_client.gemspec +37 -0
  175. data/git_push.sh +57 -0
  176. data/lib/ejabberd_http_client/api/accounts_api.rb +656 -0
  177. data/lib/ejabberd_http_client/api/acme_api.rb +201 -0
  178. data/lib/ejabberd_http_client/api/cluster_api.rb +267 -0
  179. data/lib/ejabberd_http_client/api/config_api.rb +207 -0
  180. data/lib/ejabberd_http_client/api/documentation_api.rb +273 -0
  181. data/lib/ejabberd_http_client/api/erlang_api.rb +203 -0
  182. data/lib/ejabberd_http_client/api/last_api.rb +150 -0
  183. data/lib/ejabberd_http_client/api/logs_api.rb +249 -0
  184. data/lib/ejabberd_http_client/api/mam_api.rb +146 -0
  185. data/lib/ejabberd_http_client/api/mnesia_api.rb +1119 -0
  186. data/lib/ejabberd_http_client/api/modules_api.rb +441 -0
  187. data/lib/ejabberd_http_client/api/muc_api.rb +726 -0
  188. data/lib/ejabberd_http_client/api/muc_room_api.rb +986 -0
  189. data/lib/ejabberd_http_client/api/oauth_api.rb +399 -0
  190. data/lib/ejabberd_http_client/api/offline_api.rb +88 -0
  191. data/lib/ejabberd_http_client/api/private_api.rb +212 -0
  192. data/lib/ejabberd_http_client/api/purge_api.rb +848 -0
  193. data/lib/ejabberd_http_client/api/roster_api.rb +400 -0
  194. data/lib/ejabberd_http_client/api/s2s_api.rb +187 -0
  195. data/lib/ejabberd_http_client/api/server_api.rb +582 -0
  196. data/lib/ejabberd_http_client/api/session_api.rb +1011 -0
  197. data/lib/ejabberd_http_client/api/shared_roster_group_api.rb +456 -0
  198. data/lib/ejabberd_http_client/api/sql_api.rb +205 -0
  199. data/lib/ejabberd_http_client/api/stanza_api.rb +270 -0
  200. data/lib/ejabberd_http_client/api/statistics_api.rb +435 -0
  201. data/lib/ejabberd_http_client/api/vcard_api.rb +468 -0
  202. data/lib/ejabberd_http_client/api_client.rb +391 -0
  203. data/lib/ejabberd_http_client/api_error.rb +58 -0
  204. data/lib/ejabberd_http_client/configuration.rb +290 -0
  205. data/lib/ejabberd_http_client/models/abort_delete_old_mam_messages200_response.rb +215 -0
  206. data/lib/ejabberd_http_client/models/abort_delete_old_mam_messages_request.rb +215 -0
  207. data/lib/ejabberd_http_client/models/add_o_auth_client_implicit_request.rb +235 -0
  208. data/lib/ejabberd_http_client/models/add_o_auth_client_password_request.rb +235 -0
  209. data/lib/ejabberd_http_client/models/add_roster_item_request.rb +275 -0
  210. data/lib/ejabberd_http_client/models/backup_request.rb +215 -0
  211. data/lib/ejabberd_http_client/models/ban_account_request.rb +235 -0
  212. data/lib/ejabberd_http_client/models/bookmarks_to_pep_request.rb +225 -0
  213. data/lib/ejabberd_http_client/models/change_node_name_request.rb +245 -0
  214. data/lib/ejabberd_http_client/models/change_password_request.rb +235 -0
  215. data/lib/ejabberd_http_client/models/change_room_option_request.rb +245 -0
  216. data/lib/ejabberd_http_client/models/check_account_request.rb +225 -0
  217. data/lib/ejabberd_http_client/models/check_module_request.rb +215 -0
  218. data/lib/ejabberd_http_client/models/check_password_hash_request.rb +245 -0
  219. data/lib/ejabberd_http_client/models/check_password_request.rb +235 -0
  220. data/lib/ejabberd_http_client/models/compile_request.rb +215 -0
  221. data/lib/ejabberd_http_client/models/connected_users_info200_response_inner.rb +305 -0
  222. data/lib/ejabberd_http_client/models/connected_users_number200_response.rb +215 -0
  223. data/lib/ejabberd_http_client/models/connected_users_v_host_request.rb +215 -0
  224. data/lib/ejabberd_http_client/models/convert_to_scram_request.rb +215 -0
  225. data/lib/ejabberd_http_client/models/convert_to_yaml_request.rb +225 -0
  226. data/lib/ejabberd_http_client/models/create_room_request.rb +235 -0
  227. data/lib/ejabberd_http_client/models/create_room_with_options_request.rb +246 -0
  228. data/lib/ejabberd_http_client/models/create_room_with_options_request_options_inner.rb +225 -0
  229. data/lib/ejabberd_http_client/models/create_rooms_file_request.rb +215 -0
  230. data/lib/ejabberd_http_client/models/delete_mnesia_request.rb +215 -0
  231. data/lib/ejabberd_http_client/models/delete_old_mam_messages_batch_request.rb +255 -0
  232. data/lib/ejabberd_http_client/models/delete_old_mam_messages_request.rb +225 -0
  233. data/lib/ejabberd_http_client/models/delete_old_mam_messages_status_request.rb +215 -0
  234. data/lib/ejabberd_http_client/models/delete_old_messages_batch_request.rb +245 -0
  235. data/lib/ejabberd_http_client/models/delete_old_messages_request.rb +215 -0
  236. data/lib/ejabberd_http_client/models/delete_old_pubsub_items_request.rb +215 -0
  237. data/lib/ejabberd_http_client/models/delete_old_users_request.rb +215 -0
  238. data/lib/ejabberd_http_client/models/dump_config_request.rb +215 -0
  239. data/lib/ejabberd_http_client/models/dump_request.rb +215 -0
  240. data/lib/ejabberd_http_client/models/dump_table_request.rb +225 -0
  241. data/lib/ejabberd_http_client/models/export2sql_request.rb +225 -0
  242. data/lib/ejabberd_http_client/models/export_piefxis_host_request.rb +225 -0
  243. data/lib/ejabberd_http_client/models/export_piefxis_request.rb +215 -0
  244. data/lib/ejabberd_http_client/models/gen_html_doc_for_commands_request.rb +235 -0
  245. data/lib/ejabberd_http_client/models/gen_markdown_doc_for_tags_request.rb +215 -0
  246. data/lib/ejabberd_http_client/models/get_cookie200_response.rb +215 -0
  247. data/lib/ejabberd_http_client/models/get_last200_response.rb +225 -0
  248. data/lib/ejabberd_http_client/models/get_last_request.rb +225 -0
  249. data/lib/ejabberd_http_client/models/get_loglevel200_response.rb +215 -0
  250. data/lib/ejabberd_http_client/models/get_num_resources200_response.rb +214 -0
  251. data/lib/ejabberd_http_client/models/get_offline_count200_response.rb +215 -0
  252. data/lib/ejabberd_http_client/models/get_offline_count_request.rb +223 -0
  253. data/lib/ejabberd_http_client/models/get_outgoing_s2s_number200_response.rb +214 -0
  254. data/lib/ejabberd_http_client/models/get_presence200_response.rb +235 -0
  255. data/lib/ejabberd_http_client/models/get_room_affiliation200_response.rb +215 -0
  256. data/lib/ejabberd_http_client/models/get_room_affiliation_request.rb +235 -0
  257. data/lib/ejabberd_http_client/models/get_room_affiliations200_response_inner.rb +241 -0
  258. data/lib/ejabberd_http_client/models/get_room_affiliations_request.rb +225 -0
  259. data/lib/ejabberd_http_client/models/get_room_history200_response_inner.rb +223 -0
  260. data/lib/ejabberd_http_client/models/get_room_occupants200_response_inner.rb +232 -0
  261. data/lib/ejabberd_http_client/models/get_room_occupants_number200_response.rb +214 -0
  262. data/lib/ejabberd_http_client/models/get_room_options200_response_inner.rb +223 -0
  263. data/lib/ejabberd_http_client/models/get_roster200_response_inner.rb +252 -0
  264. data/lib/ejabberd_http_client/models/get_stats200_response.rb +215 -0
  265. data/lib/ejabberd_http_client/models/get_stats_host_request.rb +225 -0
  266. data/lib/ejabberd_http_client/models/get_stats_request.rb +215 -0
  267. data/lib/ejabberd_http_client/models/get_status_list200_response_inner.rb +255 -0
  268. data/lib/ejabberd_http_client/models/get_status_list_host_request.rb +225 -0
  269. data/lib/ejabberd_http_client/models/get_status_list_request.rb +215 -0
  270. data/lib/ejabberd_http_client/models/get_status_num200_response.rb +215 -0
  271. data/lib/ejabberd_http_client/models/get_user_rooms_request.rb +225 -0
  272. data/lib/ejabberd_http_client/models/get_user_sessions_info200_response_inner.rb +295 -0
  273. data/lib/ejabberd_http_client/models/get_user_subscriptions200_response_inner.rb +234 -0
  274. data/lib/ejabberd_http_client/models/get_vcard200_response.rb +214 -0
  275. data/lib/ejabberd_http_client/models/get_vcard2_multi_request.rb +241 -0
  276. data/lib/ejabberd_http_client/models/get_vcard2_request.rb +245 -0
  277. data/lib/ejabberd_http_client/models/get_vcard_request.rb +235 -0
  278. data/lib/ejabberd_http_client/models/import_dir200_response.rb +214 -0
  279. data/lib/ejabberd_http_client/models/import_dir_request.rb +215 -0
  280. data/lib/ejabberd_http_client/models/import_file_request.rb +215 -0
  281. data/lib/ejabberd_http_client/models/import_piefxis_request.rb +215 -0
  282. data/lib/ejabberd_http_client/models/import_prosody_request.rb +215 -0
  283. data/lib/ejabberd_http_client/models/incoming_s2s_number200_response.rb +214 -0
  284. data/lib/ejabberd_http_client/models/install_fallback_request.rb +215 -0
  285. data/lib/ejabberd_http_client/models/issue_o_auth_token200_response.rb +232 -0
  286. data/lib/ejabberd_http_client/models/issue_o_auth_token_request.rb +235 -0
  287. data/lib/ejabberd_http_client/models/join_cluster_request.rb +215 -0
  288. data/lib/ejabberd_http_client/models/kick_session_request.rb +245 -0
  289. data/lib/ejabberd_http_client/models/kick_user200_response.rb +215 -0
  290. data/lib/ejabberd_http_client/models/leave_cluster_request.rb +215 -0
  291. data/lib/ejabberd_http_client/models/list_certificates200_response_inner.rb +235 -0
  292. data/lib/ejabberd_http_client/models/list_muc_online_rooms_by_regex200_response_inner.rb +232 -0
  293. data/lib/ejabberd_http_client/models/list_muc_online_rooms_by_regex_request.rb +225 -0
  294. data/lib/ejabberd_http_client/models/list_muc_online_rooms_request.rb +215 -0
  295. data/lib/ejabberd_http_client/models/list_o_auth_tokens200_response_inner.rb +241 -0
  296. data/lib/ejabberd_http_client/models/load_database_request.rb +215 -0
  297. data/lib/ejabberd_http_client/models/privacy_set_request.rb +232 -0
  298. data/lib/ejabberd_http_client/models/private_get_request.rb +241 -0
  299. data/lib/ejabberd_http_client/models/private_set_request.rb +232 -0
  300. data/lib/ejabberd_http_client/models/process_roster_items200_response_inner.rb +223 -0
  301. data/lib/ejabberd_http_client/models/process_roster_items_request.rb +250 -0
  302. data/lib/ejabberd_http_client/models/push_all_to_all_request.rb +223 -0
  303. data/lib/ejabberd_http_client/models/push_roster_all_request.rb +214 -0
  304. data/lib/ejabberd_http_client/models/push_roster_request.rb +232 -0
  305. data/lib/ejabberd_http_client/models/register_muc_nick_request.rb +235 -0
  306. data/lib/ejabberd_http_client/models/register_request.rb +232 -0
  307. data/lib/ejabberd_http_client/models/registered_users_request.rb +214 -0
  308. data/lib/ejabberd_http_client/models/remove_mam_for_user_with_peer_request.rb +232 -0
  309. data/lib/ejabberd_http_client/models/remove_o_auth_client_request.rb +215 -0
  310. data/lib/ejabberd_http_client/models/request_certificate_request.rb +215 -0
  311. data/lib/ejabberd_http_client/models/resource_num200_response.rb +214 -0
  312. data/lib/ejabberd_http_client/models/resource_num_request.rb +235 -0
  313. data/lib/ejabberd_http_client/models/restart_module200_response.rb +214 -0
  314. data/lib/ejabberd_http_client/models/restart_module_request.rb +225 -0
  315. data/lib/ejabberd_http_client/models/restore_request.rb +215 -0
  316. data/lib/ejabberd_http_client/models/revoke_certificate_request.rb +215 -0
  317. data/lib/ejabberd_http_client/models/revoke_o_auth_token_request.rb +215 -0
  318. data/lib/ejabberd_http_client/models/rooms_empty_destroy_request.rb +215 -0
  319. data/lib/ejabberd_http_client/models/rooms_unused_destroy_request.rb +225 -0
  320. data/lib/ejabberd_http_client/models/send_direct_invitation_request.rb +255 -0
  321. data/lib/ejabberd_http_client/models/send_message_request.rb +255 -0
  322. data/lib/ejabberd_http_client/models/send_stanza_c2_s_request.rb +245 -0
  323. data/lib/ejabberd_http_client/models/send_stanza_request.rb +235 -0
  324. data/lib/ejabberd_http_client/models/set_last_request.rb +245 -0
  325. data/lib/ejabberd_http_client/models/set_loglevel_request.rb +215 -0
  326. data/lib/ejabberd_http_client/models/set_master_request.rb +215 -0
  327. data/lib/ejabberd_http_client/models/set_nickname_request.rb +235 -0
  328. data/lib/ejabberd_http_client/models/set_presence_request.rb +275 -0
  329. data/lib/ejabberd_http_client/models/set_room_affiliation_request.rb +245 -0
  330. data/lib/ejabberd_http_client/models/set_vcard2_multi_request.rb +257 -0
  331. data/lib/ejabberd_http_client/models/set_vcard2_request.rb +255 -0
  332. data/lib/ejabberd_http_client/models/set_vcard_request.rb +245 -0
  333. data/lib/ejabberd_http_client/models/srg_create_request.rb +255 -0
  334. data/lib/ejabberd_http_client/models/srg_delete_request.rb +225 -0
  335. data/lib/ejabberd_http_client/models/srg_get_info200_response_inner.rb +225 -0
  336. data/lib/ejabberd_http_client/models/srg_user_add_request.rb +245 -0
  337. data/lib/ejabberd_http_client/models/stop_kindly_request.rb +225 -0
  338. data/lib/ejabberd_http_client/models/subscribe_to_room_many_request.rb +236 -0
  339. data/lib/ejabberd_http_client/models/subscribe_to_room_many_request_users_inner.rb +225 -0
  340. data/lib/ejabberd_http_client/models/subscribe_to_room_request.rb +245 -0
  341. data/lib/ejabberd_http_client/models/table_mnesia_info_request.rb +215 -0
  342. data/lib/ejabberd_http_client/models/unban_ip200_response.rb +215 -0
  343. data/lib/ejabberd_http_client/models/unban_ip_request.rb +215 -0
  344. data/lib/ejabberd_http_client/models/unregister_muc_nick_request.rb +225 -0
  345. data/lib/ejabberd_http_client/models/unregister_user_request.rb +225 -0
  346. data/lib/ejabberd_http_client/models/unsubscribe_from_room_request.rb +225 -0
  347. data/lib/ejabberd_http_client/version.rb +15 -0
  348. data/lib/ejabberd_http_client.rb +207 -0
  349. data/spec/api/accounts_api_spec.rb +145 -0
  350. data/spec/api/acme_api_spec.rb +67 -0
  351. data/spec/api/cluster_api_spec.rb +78 -0
  352. data/spec/api/config_api_spec.rb +67 -0
  353. data/spec/api/documentation_api_spec.rb +78 -0
  354. data/spec/api/erlang_api_spec.rb +67 -0
  355. data/spec/api/last_api_spec.rb +57 -0
  356. data/spec/api/logs_api_spec.rb +76 -0
  357. data/spec/api/mam_api_spec.rb +57 -0
  358. data/spec/api/mnesia_api_spec.rb +221 -0
  359. data/spec/api/modules_api_spec.rb +109 -0
  360. data/spec/api/muc_api_spec.rb +156 -0
  361. data/spec/api/muc_room_api_spec.rb +200 -0
  362. data/spec/api/oauth_api_spec.rb +100 -0
  363. data/spec/api/offline_api_spec.rb +46 -0
  364. data/spec/api/private_api_spec.rb +68 -0
  365. data/spec/api/purge_api_spec.rb +176 -0
  366. data/spec/api/roster_api_spec.rb +101 -0
  367. data/spec/api/s2s_api_spec.rb +65 -0
  368. data/spec/api/server_api_spec.rb +137 -0
  369. data/spec/api/session_api_spec.rb +208 -0
  370. data/spec/api/shared_roster_group_api_spec.rb +112 -0
  371. data/spec/api/sql_api_spec.rb +67 -0
  372. data/spec/api/stanza_api_spec.rb +79 -0
  373. data/spec/api/statistics_api_spec.rb +109 -0
  374. data/spec/api/vcard_api_spec.rb +112 -0
  375. data/spec/api_client_spec.rb +228 -0
  376. data/spec/configuration_spec.rb +42 -0
  377. data/spec/models/abort_delete_old_mam_messages200_response_spec.rb +34 -0
  378. data/spec/models/abort_delete_old_mam_messages_request_spec.rb +34 -0
  379. data/spec/models/add_o_auth_client_implicit_request_spec.rb +46 -0
  380. data/spec/models/add_o_auth_client_password_request_spec.rb +46 -0
  381. data/spec/models/add_roster_item_request_spec.rb +70 -0
  382. data/spec/models/backup_request_spec.rb +34 -0
  383. data/spec/models/ban_account_request_spec.rb +46 -0
  384. data/spec/models/bookmarks_to_pep_request_spec.rb +40 -0
  385. data/spec/models/change_node_name_request_spec.rb +52 -0
  386. data/spec/models/change_password_request_spec.rb +46 -0
  387. data/spec/models/change_room_option_request_spec.rb +52 -0
  388. data/spec/models/check_account_request_spec.rb +40 -0
  389. data/spec/models/check_module_request_spec.rb +34 -0
  390. data/spec/models/check_password_hash_request_spec.rb +52 -0
  391. data/spec/models/check_password_request_spec.rb +46 -0
  392. data/spec/models/compile_request_spec.rb +34 -0
  393. data/spec/models/connected_users_info200_response_inner_spec.rb +88 -0
  394. data/spec/models/connected_users_number200_response_spec.rb +34 -0
  395. data/spec/models/connected_users_v_host_request_spec.rb +34 -0
  396. data/spec/models/convert_to_scram_request_spec.rb +34 -0
  397. data/spec/models/convert_to_yaml_request_spec.rb +40 -0
  398. data/spec/models/create_room_request_spec.rb +46 -0
  399. data/spec/models/create_room_with_options_request_options_inner_spec.rb +40 -0
  400. data/spec/models/create_room_with_options_request_spec.rb +52 -0
  401. data/spec/models/create_rooms_file_request_spec.rb +34 -0
  402. data/spec/models/delete_mnesia_request_spec.rb +34 -0
  403. data/spec/models/delete_old_mam_messages_batch_request_spec.rb +58 -0
  404. data/spec/models/delete_old_mam_messages_request_spec.rb +40 -0
  405. data/spec/models/delete_old_mam_messages_status_request_spec.rb +34 -0
  406. data/spec/models/delete_old_messages_batch_request_spec.rb +52 -0
  407. data/spec/models/delete_old_messages_request_spec.rb +34 -0
  408. data/spec/models/delete_old_pubsub_items_request_spec.rb +34 -0
  409. data/spec/models/delete_old_users_request_spec.rb +34 -0
  410. data/spec/models/dump_config_request_spec.rb +34 -0
  411. data/spec/models/dump_request_spec.rb +34 -0
  412. data/spec/models/dump_table_request_spec.rb +40 -0
  413. data/spec/models/export2sql_request_spec.rb +40 -0
  414. data/spec/models/export_piefxis_host_request_spec.rb +40 -0
  415. data/spec/models/export_piefxis_request_spec.rb +34 -0
  416. data/spec/models/gen_html_doc_for_commands_request_spec.rb +46 -0
  417. data/spec/models/gen_markdown_doc_for_tags_request_spec.rb +34 -0
  418. data/spec/models/get_cookie200_response_spec.rb +34 -0
  419. data/spec/models/get_last200_response_spec.rb +40 -0
  420. data/spec/models/get_last_request_spec.rb +40 -0
  421. data/spec/models/get_loglevel200_response_spec.rb +34 -0
  422. data/spec/models/get_num_resources200_response_spec.rb +34 -0
  423. data/spec/models/get_offline_count200_response_spec.rb +34 -0
  424. data/spec/models/get_offline_count_request_spec.rb +40 -0
  425. data/spec/models/get_outgoing_s2s_number200_response_spec.rb +34 -0
  426. data/spec/models/get_presence200_response_spec.rb +46 -0
  427. data/spec/models/get_room_affiliation200_response_spec.rb +34 -0
  428. data/spec/models/get_room_affiliation_request_spec.rb +46 -0
  429. data/spec/models/get_room_affiliations200_response_inner_spec.rb +52 -0
  430. data/spec/models/get_room_affiliations_request_spec.rb +40 -0
  431. data/spec/models/get_room_history200_response_inner_spec.rb +40 -0
  432. data/spec/models/get_room_occupants200_response_inner_spec.rb +46 -0
  433. data/spec/models/get_room_occupants_number200_response_spec.rb +34 -0
  434. data/spec/models/get_room_options200_response_inner_spec.rb +40 -0
  435. data/spec/models/get_roster200_response_inner_spec.rb +58 -0
  436. data/spec/models/get_stats200_response_spec.rb +34 -0
  437. data/spec/models/get_stats_host_request_spec.rb +40 -0
  438. data/spec/models/get_stats_request_spec.rb +34 -0
  439. data/spec/models/get_status_list200_response_inner_spec.rb +58 -0
  440. data/spec/models/get_status_list_host_request_spec.rb +40 -0
  441. data/spec/models/get_status_list_request_spec.rb +34 -0
  442. data/spec/models/get_status_num200_response_spec.rb +34 -0
  443. data/spec/models/get_user_rooms_request_spec.rb +40 -0
  444. data/spec/models/get_user_sessions_info200_response_inner_spec.rb +82 -0
  445. data/spec/models/get_user_subscriptions200_response_inner_spec.rb +46 -0
  446. data/spec/models/get_vcard200_response_spec.rb +34 -0
  447. data/spec/models/get_vcard2_multi_request_spec.rb +52 -0
  448. data/spec/models/get_vcard2_request_spec.rb +52 -0
  449. data/spec/models/get_vcard_request_spec.rb +46 -0
  450. data/spec/models/import_dir200_response_spec.rb +34 -0
  451. data/spec/models/import_dir_request_spec.rb +34 -0
  452. data/spec/models/import_file_request_spec.rb +34 -0
  453. data/spec/models/import_piefxis_request_spec.rb +34 -0
  454. data/spec/models/import_prosody_request_spec.rb +34 -0
  455. data/spec/models/incoming_s2s_number200_response_spec.rb +34 -0
  456. data/spec/models/install_fallback_request_spec.rb +34 -0
  457. data/spec/models/issue_o_auth_token200_response_spec.rb +46 -0
  458. data/spec/models/issue_o_auth_token_request_spec.rb +46 -0
  459. data/spec/models/join_cluster_request_spec.rb +34 -0
  460. data/spec/models/kick_session_request_spec.rb +52 -0
  461. data/spec/models/kick_user200_response_spec.rb +34 -0
  462. data/spec/models/leave_cluster_request_spec.rb +34 -0
  463. data/spec/models/list_certificates200_response_inner_spec.rb +46 -0
  464. data/spec/models/list_muc_online_rooms_by_regex200_response_inner_spec.rb +46 -0
  465. data/spec/models/list_muc_online_rooms_by_regex_request_spec.rb +40 -0
  466. data/spec/models/list_muc_online_rooms_request_spec.rb +34 -0
  467. data/spec/models/list_o_auth_tokens200_response_inner_spec.rb +52 -0
  468. data/spec/models/load_database_request_spec.rb +34 -0
  469. data/spec/models/privacy_set_request_spec.rb +46 -0
  470. data/spec/models/private_get_request_spec.rb +52 -0
  471. data/spec/models/private_set_request_spec.rb +46 -0
  472. data/spec/models/process_roster_items200_response_inner_spec.rb +40 -0
  473. data/spec/models/process_roster_items_request_spec.rb +58 -0
  474. data/spec/models/push_all_to_all_request_spec.rb +40 -0
  475. data/spec/models/push_roster_all_request_spec.rb +34 -0
  476. data/spec/models/push_roster_request_spec.rb +46 -0
  477. data/spec/models/register_muc_nick_request_spec.rb +46 -0
  478. data/spec/models/register_request_spec.rb +46 -0
  479. data/spec/models/registered_users_request_spec.rb +34 -0
  480. data/spec/models/remove_mam_for_user_with_peer_request_spec.rb +46 -0
  481. data/spec/models/remove_o_auth_client_request_spec.rb +34 -0
  482. data/spec/models/request_certificate_request_spec.rb +34 -0
  483. data/spec/models/resource_num200_response_spec.rb +34 -0
  484. data/spec/models/resource_num_request_spec.rb +46 -0
  485. data/spec/models/restart_module200_response_spec.rb +34 -0
  486. data/spec/models/restart_module_request_spec.rb +40 -0
  487. data/spec/models/restore_request_spec.rb +34 -0
  488. data/spec/models/revoke_certificate_request_spec.rb +34 -0
  489. data/spec/models/revoke_o_auth_token_request_spec.rb +34 -0
  490. data/spec/models/rooms_empty_destroy_request_spec.rb +34 -0
  491. data/spec/models/rooms_unused_destroy_request_spec.rb +40 -0
  492. data/spec/models/send_direct_invitation_request_spec.rb +58 -0
  493. data/spec/models/send_message_request_spec.rb +58 -0
  494. data/spec/models/send_stanza_c2_s_request_spec.rb +52 -0
  495. data/spec/models/send_stanza_request_spec.rb +46 -0
  496. data/spec/models/set_last_request_spec.rb +52 -0
  497. data/spec/models/set_loglevel_request_spec.rb +34 -0
  498. data/spec/models/set_master_request_spec.rb +34 -0
  499. data/spec/models/set_nickname_request_spec.rb +46 -0
  500. data/spec/models/set_presence_request_spec.rb +70 -0
  501. data/spec/models/set_room_affiliation_request_spec.rb +52 -0
  502. data/spec/models/set_vcard2_multi_request_spec.rb +58 -0
  503. data/spec/models/set_vcard2_request_spec.rb +58 -0
  504. data/spec/models/set_vcard_request_spec.rb +52 -0
  505. data/spec/models/srg_create_request_spec.rb +58 -0
  506. data/spec/models/srg_delete_request_spec.rb +40 -0
  507. data/spec/models/srg_get_info200_response_inner_spec.rb +40 -0
  508. data/spec/models/srg_user_add_request_spec.rb +52 -0
  509. data/spec/models/stop_kindly_request_spec.rb +40 -0
  510. data/spec/models/subscribe_to_room_many_request_spec.rb +46 -0
  511. data/spec/models/subscribe_to_room_many_request_users_inner_spec.rb +40 -0
  512. data/spec/models/subscribe_to_room_request_spec.rb +52 -0
  513. data/spec/models/table_mnesia_info_request_spec.rb +34 -0
  514. data/spec/models/unban_ip200_response_spec.rb +34 -0
  515. data/spec/models/unban_ip_request_spec.rb +34 -0
  516. data/spec/models/unregister_muc_nick_request_spec.rb +40 -0
  517. data/spec/models/unregister_user_request_spec.rb +40 -0
  518. data/spec/models/unsubscribe_from_room_request_spec.rb +40 -0
  519. data/spec/spec_helper.rb +114 -0
  520. metadata +772 -0
data/docs/MnesiaApi.md ADDED
@@ -0,0 +1,1071 @@
1
+ # EjabberdHttpClient::MnesiaApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**backup**](MnesiaApi.md#backup) | **POST** /api/backup | Backup the Mnesia database to a binary file. |
8
+ | [**change_node_name**](MnesiaApi.md#change_node_name) | **POST** /api/mnesia_change_nodename | Change the erlang node name in a backup file. |
9
+ | [**delete_mnesia**](MnesiaApi.md#delete_mnesia) | **POST** /api/delete_mnesia | Delete elements in Mnesia database for a given vhost. |
10
+ | [**dump**](MnesiaApi.md#dump) | **POST** /api/dump | Dump the Mnesia database to a text file. |
11
+ | [**dump_table**](MnesiaApi.md#dump_table) | **POST** /api/dump_table | Dump a Mnesia table to a text file. |
12
+ | [**export2sql**](MnesiaApi.md#export2sql) | **POST** /api/export2sql | Export virtual host information from Mnesia tables to SQL file. |
13
+ | [**export_piefxis**](MnesiaApi.md#export_piefxis) | **POST** /api/export_piefxis | Export data of all users in the server to PIEFXIS files (XEP-0227). |
14
+ | [**export_piefxis_host**](MnesiaApi.md#export_piefxis_host) | **POST** /api/export_piefxis_host | Export data of users in a host to PIEFXIS files (XEP-0227). |
15
+ | [**global_mnesia_info**](MnesiaApi.md#global_mnesia_info) | **POST** /api/mnesia_info | Dump info on global Mnesia state. |
16
+ | [**import_dir**](MnesiaApi.md#import_dir) | **POST** /api/import_dir | Import users data from jabberd14 spool dir. |
17
+ | [**import_file**](MnesiaApi.md#import_file) | **POST** /api/import_file | Import user data from jabberd14 spool file. |
18
+ | [**import_piefxis**](MnesiaApi.md#import_piefxis) | **POST** /api/import_piefxis | Import users data from a PIEFXIS file (XEP-0227). |
19
+ | [**import_prosody**](MnesiaApi.md#import_prosody) | **POST** /api/import_prosody | Import data from Prosody. |
20
+ | [**install_fallback**](MnesiaApi.md#install_fallback) | **POST** /api/install_fallback | Install Mnesia database from a binary backup file. |
21
+ | [**load_database**](MnesiaApi.md#load_database) | **POST** /api/load | Restore Mnesia database from a text dump file. |
22
+ | [**restore**](MnesiaApi.md#restore) | **POST** /api/restore | Restore the Mnesia database from a binary backup file. |
23
+ | [**table_mnesia_info**](MnesiaApi.md#table_mnesia_info) | **POST** /api/mnesia_table_info | Dump info on Mnesia table state. |
24
+
25
+
26
+ ## backup
27
+
28
+ > backup(backup_request)
29
+
30
+ Backup the Mnesia database to a binary file.
31
+
32
+ ### Examples
33
+
34
+ ```ruby
35
+ require 'time'
36
+ require 'ejabberd_http_client'
37
+
38
+ api_instance = EjabberdHttpClient::MnesiaApi.new
39
+ backup_request = EjabberdHttpClient::BackupRequest.new # BackupRequest |
40
+
41
+ begin
42
+ # Backup the Mnesia database to a binary file.
43
+ api_instance.backup(backup_request)
44
+ rescue EjabberdHttpClient::ApiError => e
45
+ puts "Error when calling MnesiaApi->backup: #{e}"
46
+ end
47
+ ```
48
+
49
+ #### Using the backup_with_http_info variant
50
+
51
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
52
+
53
+ > <Array(nil, Integer, Hash)> backup_with_http_info(backup_request)
54
+
55
+ ```ruby
56
+ begin
57
+ # Backup the Mnesia database to a binary file.
58
+ data, status_code, headers = api_instance.backup_with_http_info(backup_request)
59
+ p status_code # => 2xx
60
+ p headers # => { ... }
61
+ p data # => nil
62
+ rescue EjabberdHttpClient::ApiError => e
63
+ puts "Error when calling MnesiaApi->backup_with_http_info: #{e}"
64
+ end
65
+ ```
66
+
67
+ ### Parameters
68
+
69
+ | Name | Type | Description | Notes |
70
+ | ---- | ---- | ----------- | ----- |
71
+ | **backup_request** | [**BackupRequest**](BackupRequest.md) | | |
72
+
73
+ ### Return type
74
+
75
+ nil (empty response body)
76
+
77
+ ### Authorization
78
+
79
+ No authorization required
80
+
81
+ ### HTTP request headers
82
+
83
+ - **Content-Type**: application/json
84
+ - **Accept**: text/plain
85
+
86
+
87
+ ## change_node_name
88
+
89
+ > change_node_name(change_node_name_request)
90
+
91
+ Change the erlang node name in a backup file.
92
+
93
+ ### Examples
94
+
95
+ ```ruby
96
+ require 'time'
97
+ require 'ejabberd_http_client'
98
+
99
+ api_instance = EjabberdHttpClient::MnesiaApi.new
100
+ change_node_name_request = EjabberdHttpClient::ChangeNodeNameRequest.new # ChangeNodeNameRequest |
101
+
102
+ begin
103
+ # Change the erlang node name in a backup file.
104
+ api_instance.change_node_name(change_node_name_request)
105
+ rescue EjabberdHttpClient::ApiError => e
106
+ puts "Error when calling MnesiaApi->change_node_name: #{e}"
107
+ end
108
+ ```
109
+
110
+ #### Using the change_node_name_with_http_info variant
111
+
112
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
113
+
114
+ > <Array(nil, Integer, Hash)> change_node_name_with_http_info(change_node_name_request)
115
+
116
+ ```ruby
117
+ begin
118
+ # Change the erlang node name in a backup file.
119
+ data, status_code, headers = api_instance.change_node_name_with_http_info(change_node_name_request)
120
+ p status_code # => 2xx
121
+ p headers # => { ... }
122
+ p data # => nil
123
+ rescue EjabberdHttpClient::ApiError => e
124
+ puts "Error when calling MnesiaApi->change_node_name_with_http_info: #{e}"
125
+ end
126
+ ```
127
+
128
+ ### Parameters
129
+
130
+ | Name | Type | Description | Notes |
131
+ | ---- | ---- | ----------- | ----- |
132
+ | **change_node_name_request** | [**ChangeNodeNameRequest**](ChangeNodeNameRequest.md) | | |
133
+
134
+ ### Return type
135
+
136
+ nil (empty response body)
137
+
138
+ ### Authorization
139
+
140
+ No authorization required
141
+
142
+ ### HTTP request headers
143
+
144
+ - **Content-Type**: application/json
145
+ - **Accept**: Not defined
146
+
147
+
148
+ ## delete_mnesia
149
+
150
+ > delete_mnesia(delete_mnesia_request)
151
+
152
+ Delete elements in Mnesia database for a given vhost.
153
+
154
+ ### Examples
155
+
156
+ ```ruby
157
+ require 'time'
158
+ require 'ejabberd_http_client'
159
+
160
+ api_instance = EjabberdHttpClient::MnesiaApi.new
161
+ delete_mnesia_request = EjabberdHttpClient::DeleteMnesiaRequest.new # DeleteMnesiaRequest |
162
+
163
+ begin
164
+ # Delete elements in Mnesia database for a given vhost.
165
+ api_instance.delete_mnesia(delete_mnesia_request)
166
+ rescue EjabberdHttpClient::ApiError => e
167
+ puts "Error when calling MnesiaApi->delete_mnesia: #{e}"
168
+ end
169
+ ```
170
+
171
+ #### Using the delete_mnesia_with_http_info variant
172
+
173
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
174
+
175
+ > <Array(nil, Integer, Hash)> delete_mnesia_with_http_info(delete_mnesia_request)
176
+
177
+ ```ruby
178
+ begin
179
+ # Delete elements in Mnesia database for a given vhost.
180
+ data, status_code, headers = api_instance.delete_mnesia_with_http_info(delete_mnesia_request)
181
+ p status_code # => 2xx
182
+ p headers # => { ... }
183
+ p data # => nil
184
+ rescue EjabberdHttpClient::ApiError => e
185
+ puts "Error when calling MnesiaApi->delete_mnesia_with_http_info: #{e}"
186
+ end
187
+ ```
188
+
189
+ ### Parameters
190
+
191
+ | Name | Type | Description | Notes |
192
+ | ---- | ---- | ----------- | ----- |
193
+ | **delete_mnesia_request** | [**DeleteMnesiaRequest**](DeleteMnesiaRequest.md) | | |
194
+
195
+ ### Return type
196
+
197
+ nil (empty response body)
198
+
199
+ ### Authorization
200
+
201
+ No authorization required
202
+
203
+ ### HTTP request headers
204
+
205
+ - **Content-Type**: application/json
206
+ - **Accept**: Not defined
207
+
208
+
209
+ ## dump
210
+
211
+ > String dump(dump_request)
212
+
213
+ Dump the Mnesia database to a text file.
214
+
215
+ ### Examples
216
+
217
+ ```ruby
218
+ require 'time'
219
+ require 'ejabberd_http_client'
220
+
221
+ api_instance = EjabberdHttpClient::MnesiaApi.new
222
+ dump_request = EjabberdHttpClient::DumpRequest.new # DumpRequest |
223
+
224
+ begin
225
+ # Dump the Mnesia database to a text file.
226
+ result = api_instance.dump(dump_request)
227
+ p result
228
+ rescue EjabberdHttpClient::ApiError => e
229
+ puts "Error when calling MnesiaApi->dump: #{e}"
230
+ end
231
+ ```
232
+
233
+ #### Using the dump_with_http_info variant
234
+
235
+ This returns an Array which contains the response data, status code and headers.
236
+
237
+ > <Array(String, Integer, Hash)> dump_with_http_info(dump_request)
238
+
239
+ ```ruby
240
+ begin
241
+ # Dump the Mnesia database to a text file.
242
+ data, status_code, headers = api_instance.dump_with_http_info(dump_request)
243
+ p status_code # => 2xx
244
+ p headers # => { ... }
245
+ p data # => String
246
+ rescue EjabberdHttpClient::ApiError => e
247
+ puts "Error when calling MnesiaApi->dump_with_http_info: #{e}"
248
+ end
249
+ ```
250
+
251
+ ### Parameters
252
+
253
+ | Name | Type | Description | Notes |
254
+ | ---- | ---- | ----------- | ----- |
255
+ | **dump_request** | [**DumpRequest**](DumpRequest.md) | | |
256
+
257
+ ### Return type
258
+
259
+ **String**
260
+
261
+ ### Authorization
262
+
263
+ No authorization required
264
+
265
+ ### HTTP request headers
266
+
267
+ - **Content-Type**: application/json
268
+ - **Accept**: application/json
269
+
270
+
271
+ ## dump_table
272
+
273
+ > String dump_table(dump_table_request)
274
+
275
+ Dump a Mnesia table to a text file.
276
+
277
+ ### Examples
278
+
279
+ ```ruby
280
+ require 'time'
281
+ require 'ejabberd_http_client'
282
+
283
+ api_instance = EjabberdHttpClient::MnesiaApi.new
284
+ dump_table_request = EjabberdHttpClient::DumpTableRequest.new # DumpTableRequest |
285
+
286
+ begin
287
+ # Dump a Mnesia table to a text file.
288
+ result = api_instance.dump_table(dump_table_request)
289
+ p result
290
+ rescue EjabberdHttpClient::ApiError => e
291
+ puts "Error when calling MnesiaApi->dump_table: #{e}"
292
+ end
293
+ ```
294
+
295
+ #### Using the dump_table_with_http_info variant
296
+
297
+ This returns an Array which contains the response data, status code and headers.
298
+
299
+ > <Array(String, Integer, Hash)> dump_table_with_http_info(dump_table_request)
300
+
301
+ ```ruby
302
+ begin
303
+ # Dump a Mnesia table to a text file.
304
+ data, status_code, headers = api_instance.dump_table_with_http_info(dump_table_request)
305
+ p status_code # => 2xx
306
+ p headers # => { ... }
307
+ p data # => String
308
+ rescue EjabberdHttpClient::ApiError => e
309
+ puts "Error when calling MnesiaApi->dump_table_with_http_info: #{e}"
310
+ end
311
+ ```
312
+
313
+ ### Parameters
314
+
315
+ | Name | Type | Description | Notes |
316
+ | ---- | ---- | ----------- | ----- |
317
+ | **dump_table_request** | [**DumpTableRequest**](DumpTableRequest.md) | | |
318
+
319
+ ### Return type
320
+
321
+ **String**
322
+
323
+ ### Authorization
324
+
325
+ No authorization required
326
+
327
+ ### HTTP request headers
328
+
329
+ - **Content-Type**: application/json
330
+ - **Accept**: application/json
331
+
332
+
333
+ ## export2sql
334
+
335
+ > Integer export2sql(export2sql_request)
336
+
337
+ Export virtual host information from Mnesia tables to SQL file.
338
+
339
+ ### Examples
340
+
341
+ ```ruby
342
+ require 'time'
343
+ require 'ejabberd_http_client'
344
+
345
+ api_instance = EjabberdHttpClient::MnesiaApi.new
346
+ export2sql_request = EjabberdHttpClient::Export2sqlRequest.new # Export2sqlRequest |
347
+
348
+ begin
349
+ # Export virtual host information from Mnesia tables to SQL file.
350
+ result = api_instance.export2sql(export2sql_request)
351
+ p result
352
+ rescue EjabberdHttpClient::ApiError => e
353
+ puts "Error when calling MnesiaApi->export2sql: #{e}"
354
+ end
355
+ ```
356
+
357
+ #### Using the export2sql_with_http_info variant
358
+
359
+ This returns an Array which contains the response data, status code and headers.
360
+
361
+ > <Array(Integer, Integer, Hash)> export2sql_with_http_info(export2sql_request)
362
+
363
+ ```ruby
364
+ begin
365
+ # Export virtual host information from Mnesia tables to SQL file.
366
+ data, status_code, headers = api_instance.export2sql_with_http_info(export2sql_request)
367
+ p status_code # => 2xx
368
+ p headers # => { ... }
369
+ p data # => Integer
370
+ rescue EjabberdHttpClient::ApiError => e
371
+ puts "Error when calling MnesiaApi->export2sql_with_http_info: #{e}"
372
+ end
373
+ ```
374
+
375
+ ### Parameters
376
+
377
+ | Name | Type | Description | Notes |
378
+ | ---- | ---- | ----------- | ----- |
379
+ | **export2sql_request** | [**Export2sqlRequest**](Export2sqlRequest.md) | | |
380
+
381
+ ### Return type
382
+
383
+ **Integer**
384
+
385
+ ### Authorization
386
+
387
+ No authorization required
388
+
389
+ ### HTTP request headers
390
+
391
+ - **Content-Type**: application/json
392
+ - **Accept**: application/json
393
+
394
+
395
+ ## export_piefxis
396
+
397
+ > Integer export_piefxis(export_piefxis_request)
398
+
399
+ Export data of all users in the server to PIEFXIS files (XEP-0227).
400
+
401
+ ### Examples
402
+
403
+ ```ruby
404
+ require 'time'
405
+ require 'ejabberd_http_client'
406
+
407
+ api_instance = EjabberdHttpClient::MnesiaApi.new
408
+ export_piefxis_request = EjabberdHttpClient::ExportPiefxisRequest.new # ExportPiefxisRequest |
409
+
410
+ begin
411
+ # Export data of all users in the server to PIEFXIS files (XEP-0227).
412
+ result = api_instance.export_piefxis(export_piefxis_request)
413
+ p result
414
+ rescue EjabberdHttpClient::ApiError => e
415
+ puts "Error when calling MnesiaApi->export_piefxis: #{e}"
416
+ end
417
+ ```
418
+
419
+ #### Using the export_piefxis_with_http_info variant
420
+
421
+ This returns an Array which contains the response data, status code and headers.
422
+
423
+ > <Array(Integer, Integer, Hash)> export_piefxis_with_http_info(export_piefxis_request)
424
+
425
+ ```ruby
426
+ begin
427
+ # Export data of all users in the server to PIEFXIS files (XEP-0227).
428
+ data, status_code, headers = api_instance.export_piefxis_with_http_info(export_piefxis_request)
429
+ p status_code # => 2xx
430
+ p headers # => { ... }
431
+ p data # => Integer
432
+ rescue EjabberdHttpClient::ApiError => e
433
+ puts "Error when calling MnesiaApi->export_piefxis_with_http_info: #{e}"
434
+ end
435
+ ```
436
+
437
+ ### Parameters
438
+
439
+ | Name | Type | Description | Notes |
440
+ | ---- | ---- | ----------- | ----- |
441
+ | **export_piefxis_request** | [**ExportPiefxisRequest**](ExportPiefxisRequest.md) | | |
442
+
443
+ ### Return type
444
+
445
+ **Integer**
446
+
447
+ ### Authorization
448
+
449
+ No authorization required
450
+
451
+ ### HTTP request headers
452
+
453
+ - **Content-Type**: application/json
454
+ - **Accept**: application/json
455
+
456
+
457
+ ## export_piefxis_host
458
+
459
+ > Integer export_piefxis_host(export_piefxis_host_request)
460
+
461
+ Export data of users in a host to PIEFXIS files (XEP-0227).
462
+
463
+ ### Examples
464
+
465
+ ```ruby
466
+ require 'time'
467
+ require 'ejabberd_http_client'
468
+
469
+ api_instance = EjabberdHttpClient::MnesiaApi.new
470
+ export_piefxis_host_request = EjabberdHttpClient::ExportPiefxisHostRequest.new # ExportPiefxisHostRequest |
471
+
472
+ begin
473
+ # Export data of users in a host to PIEFXIS files (XEP-0227).
474
+ result = api_instance.export_piefxis_host(export_piefxis_host_request)
475
+ p result
476
+ rescue EjabberdHttpClient::ApiError => e
477
+ puts "Error when calling MnesiaApi->export_piefxis_host: #{e}"
478
+ end
479
+ ```
480
+
481
+ #### Using the export_piefxis_host_with_http_info variant
482
+
483
+ This returns an Array which contains the response data, status code and headers.
484
+
485
+ > <Array(Integer, Integer, Hash)> export_piefxis_host_with_http_info(export_piefxis_host_request)
486
+
487
+ ```ruby
488
+ begin
489
+ # Export data of users in a host to PIEFXIS files (XEP-0227).
490
+ data, status_code, headers = api_instance.export_piefxis_host_with_http_info(export_piefxis_host_request)
491
+ p status_code # => 2xx
492
+ p headers # => { ... }
493
+ p data # => Integer
494
+ rescue EjabberdHttpClient::ApiError => e
495
+ puts "Error when calling MnesiaApi->export_piefxis_host_with_http_info: #{e}"
496
+ end
497
+ ```
498
+
499
+ ### Parameters
500
+
501
+ | Name | Type | Description | Notes |
502
+ | ---- | ---- | ----------- | ----- |
503
+ | **export_piefxis_host_request** | [**ExportPiefxisHostRequest**](ExportPiefxisHostRequest.md) | | |
504
+
505
+ ### Return type
506
+
507
+ **Integer**
508
+
509
+ ### Authorization
510
+
511
+ No authorization required
512
+
513
+ ### HTTP request headers
514
+
515
+ - **Content-Type**: application/json
516
+ - **Accept**: application/json
517
+
518
+
519
+ ## global_mnesia_info
520
+
521
+ > <ImportDir200Response> global_mnesia_info
522
+
523
+ Dump info on global Mnesia state.
524
+
525
+ ### Examples
526
+
527
+ ```ruby
528
+ require 'time'
529
+ require 'ejabberd_http_client'
530
+
531
+ api_instance = EjabberdHttpClient::MnesiaApi.new
532
+
533
+ begin
534
+ # Dump info on global Mnesia state.
535
+ result = api_instance.global_mnesia_info
536
+ p result
537
+ rescue EjabberdHttpClient::ApiError => e
538
+ puts "Error when calling MnesiaApi->global_mnesia_info: #{e}"
539
+ end
540
+ ```
541
+
542
+ #### Using the global_mnesia_info_with_http_info variant
543
+
544
+ This returns an Array which contains the response data, status code and headers.
545
+
546
+ > <Array(<ImportDir200Response>, Integer, Hash)> global_mnesia_info_with_http_info
547
+
548
+ ```ruby
549
+ begin
550
+ # Dump info on global Mnesia state.
551
+ data, status_code, headers = api_instance.global_mnesia_info_with_http_info
552
+ p status_code # => 2xx
553
+ p headers # => { ... }
554
+ p data # => <ImportDir200Response>
555
+ rescue EjabberdHttpClient::ApiError => e
556
+ puts "Error when calling MnesiaApi->global_mnesia_info_with_http_info: #{e}"
557
+ end
558
+ ```
559
+
560
+ ### Parameters
561
+
562
+ This endpoint does not need any parameter.
563
+
564
+ ### Return type
565
+
566
+ [**ImportDir200Response**](ImportDir200Response.md)
567
+
568
+ ### Authorization
569
+
570
+ No authorization required
571
+
572
+ ### HTTP request headers
573
+
574
+ - **Content-Type**: Not defined
575
+ - **Accept**: application/json
576
+
577
+
578
+ ## import_dir
579
+
580
+ > <ImportDir200Response> import_dir(import_dir_request)
581
+
582
+ Import users data from jabberd14 spool dir.
583
+
584
+ ### Examples
585
+
586
+ ```ruby
587
+ require 'time'
588
+ require 'ejabberd_http_client'
589
+
590
+ api_instance = EjabberdHttpClient::MnesiaApi.new
591
+ import_dir_request = EjabberdHttpClient::ImportDirRequest.new # ImportDirRequest |
592
+
593
+ begin
594
+ # Import users data from jabberd14 spool dir.
595
+ result = api_instance.import_dir(import_dir_request)
596
+ p result
597
+ rescue EjabberdHttpClient::ApiError => e
598
+ puts "Error when calling MnesiaApi->import_dir: #{e}"
599
+ end
600
+ ```
601
+
602
+ #### Using the import_dir_with_http_info variant
603
+
604
+ This returns an Array which contains the response data, status code and headers.
605
+
606
+ > <Array(<ImportDir200Response>, Integer, Hash)> import_dir_with_http_info(import_dir_request)
607
+
608
+ ```ruby
609
+ begin
610
+ # Import users data from jabberd14 spool dir.
611
+ data, status_code, headers = api_instance.import_dir_with_http_info(import_dir_request)
612
+ p status_code # => 2xx
613
+ p headers # => { ... }
614
+ p data # => <ImportDir200Response>
615
+ rescue EjabberdHttpClient::ApiError => e
616
+ puts "Error when calling MnesiaApi->import_dir_with_http_info: #{e}"
617
+ end
618
+ ```
619
+
620
+ ### Parameters
621
+
622
+ | Name | Type | Description | Notes |
623
+ | ---- | ---- | ----------- | ----- |
624
+ | **import_dir_request** | [**ImportDirRequest**](ImportDirRequest.md) | | |
625
+
626
+ ### Return type
627
+
628
+ [**ImportDir200Response**](ImportDir200Response.md)
629
+
630
+ ### Authorization
631
+
632
+ No authorization required
633
+
634
+ ### HTTP request headers
635
+
636
+ - **Content-Type**: application/json
637
+ - **Accept**: application/json
638
+
639
+
640
+ ## import_file
641
+
642
+ > <ImportDir200Response> import_file(import_file_request)
643
+
644
+ Import user data from jabberd14 spool file.
645
+
646
+ ### Examples
647
+
648
+ ```ruby
649
+ require 'time'
650
+ require 'ejabberd_http_client'
651
+
652
+ api_instance = EjabberdHttpClient::MnesiaApi.new
653
+ import_file_request = EjabberdHttpClient::ImportFileRequest.new # ImportFileRequest |
654
+
655
+ begin
656
+ # Import user data from jabberd14 spool file.
657
+ result = api_instance.import_file(import_file_request)
658
+ p result
659
+ rescue EjabberdHttpClient::ApiError => e
660
+ puts "Error when calling MnesiaApi->import_file: #{e}"
661
+ end
662
+ ```
663
+
664
+ #### Using the import_file_with_http_info variant
665
+
666
+ This returns an Array which contains the response data, status code and headers.
667
+
668
+ > <Array(<ImportDir200Response>, Integer, Hash)> import_file_with_http_info(import_file_request)
669
+
670
+ ```ruby
671
+ begin
672
+ # Import user data from jabberd14 spool file.
673
+ data, status_code, headers = api_instance.import_file_with_http_info(import_file_request)
674
+ p status_code # => 2xx
675
+ p headers # => { ... }
676
+ p data # => <ImportDir200Response>
677
+ rescue EjabberdHttpClient::ApiError => e
678
+ puts "Error when calling MnesiaApi->import_file_with_http_info: #{e}"
679
+ end
680
+ ```
681
+
682
+ ### Parameters
683
+
684
+ | Name | Type | Description | Notes |
685
+ | ---- | ---- | ----------- | ----- |
686
+ | **import_file_request** | [**ImportFileRequest**](ImportFileRequest.md) | | |
687
+
688
+ ### Return type
689
+
690
+ [**ImportDir200Response**](ImportDir200Response.md)
691
+
692
+ ### Authorization
693
+
694
+ No authorization required
695
+
696
+ ### HTTP request headers
697
+
698
+ - **Content-Type**: application/json
699
+ - **Accept**: application/json
700
+
701
+
702
+ ## import_piefxis
703
+
704
+ > import_piefxis(import_piefxis_request)
705
+
706
+ Import users data from a PIEFXIS file (XEP-0227).
707
+
708
+ ### Examples
709
+
710
+ ```ruby
711
+ require 'time'
712
+ require 'ejabberd_http_client'
713
+
714
+ api_instance = EjabberdHttpClient::MnesiaApi.new
715
+ import_piefxis_request = EjabberdHttpClient::ImportPiefxisRequest.new # ImportPiefxisRequest |
716
+
717
+ begin
718
+ # Import users data from a PIEFXIS file (XEP-0227).
719
+ api_instance.import_piefxis(import_piefxis_request)
720
+ rescue EjabberdHttpClient::ApiError => e
721
+ puts "Error when calling MnesiaApi->import_piefxis: #{e}"
722
+ end
723
+ ```
724
+
725
+ #### Using the import_piefxis_with_http_info variant
726
+
727
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
728
+
729
+ > <Array(nil, Integer, Hash)> import_piefxis_with_http_info(import_piefxis_request)
730
+
731
+ ```ruby
732
+ begin
733
+ # Import users data from a PIEFXIS file (XEP-0227).
734
+ data, status_code, headers = api_instance.import_piefxis_with_http_info(import_piefxis_request)
735
+ p status_code # => 2xx
736
+ p headers # => { ... }
737
+ p data # => nil
738
+ rescue EjabberdHttpClient::ApiError => e
739
+ puts "Error when calling MnesiaApi->import_piefxis_with_http_info: #{e}"
740
+ end
741
+ ```
742
+
743
+ ### Parameters
744
+
745
+ | Name | Type | Description | Notes |
746
+ | ---- | ---- | ----------- | ----- |
747
+ | **import_piefxis_request** | [**ImportPiefxisRequest**](ImportPiefxisRequest.md) | | |
748
+
749
+ ### Return type
750
+
751
+ nil (empty response body)
752
+
753
+ ### Authorization
754
+
755
+ No authorization required
756
+
757
+ ### HTTP request headers
758
+
759
+ - **Content-Type**: application/json
760
+ - **Accept**: Not defined
761
+
762
+
763
+ ## import_prosody
764
+
765
+ > import_prosody(import_prosody_request)
766
+
767
+ Import data from Prosody.
768
+
769
+ ### Examples
770
+
771
+ ```ruby
772
+ require 'time'
773
+ require 'ejabberd_http_client'
774
+
775
+ api_instance = EjabberdHttpClient::MnesiaApi.new
776
+ import_prosody_request = EjabberdHttpClient::ImportProsodyRequest.new # ImportProsodyRequest |
777
+
778
+ begin
779
+ # Import data from Prosody.
780
+ api_instance.import_prosody(import_prosody_request)
781
+ rescue EjabberdHttpClient::ApiError => e
782
+ puts "Error when calling MnesiaApi->import_prosody: #{e}"
783
+ end
784
+ ```
785
+
786
+ #### Using the import_prosody_with_http_info variant
787
+
788
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
789
+
790
+ > <Array(nil, Integer, Hash)> import_prosody_with_http_info(import_prosody_request)
791
+
792
+ ```ruby
793
+ begin
794
+ # Import data from Prosody.
795
+ data, status_code, headers = api_instance.import_prosody_with_http_info(import_prosody_request)
796
+ p status_code # => 2xx
797
+ p headers # => { ... }
798
+ p data # => nil
799
+ rescue EjabberdHttpClient::ApiError => e
800
+ puts "Error when calling MnesiaApi->import_prosody_with_http_info: #{e}"
801
+ end
802
+ ```
803
+
804
+ ### Parameters
805
+
806
+ | Name | Type | Description | Notes |
807
+ | ---- | ---- | ----------- | ----- |
808
+ | **import_prosody_request** | [**ImportProsodyRequest**](ImportProsodyRequest.md) | | |
809
+
810
+ ### Return type
811
+
812
+ nil (empty response body)
813
+
814
+ ### Authorization
815
+
816
+ No authorization required
817
+
818
+ ### HTTP request headers
819
+
820
+ - **Content-Type**: application/json
821
+ - **Accept**: Not defined
822
+
823
+
824
+ ## install_fallback
825
+
826
+ > <ImportDir200Response> install_fallback(install_fallback_request)
827
+
828
+ Install Mnesia database from a binary backup file.
829
+
830
+ ### Examples
831
+
832
+ ```ruby
833
+ require 'time'
834
+ require 'ejabberd_http_client'
835
+
836
+ api_instance = EjabberdHttpClient::MnesiaApi.new
837
+ install_fallback_request = EjabberdHttpClient::InstallFallbackRequest.new # InstallFallbackRequest |
838
+
839
+ begin
840
+ # Install Mnesia database from a binary backup file.
841
+ result = api_instance.install_fallback(install_fallback_request)
842
+ p result
843
+ rescue EjabberdHttpClient::ApiError => e
844
+ puts "Error when calling MnesiaApi->install_fallback: #{e}"
845
+ end
846
+ ```
847
+
848
+ #### Using the install_fallback_with_http_info variant
849
+
850
+ This returns an Array which contains the response data, status code and headers.
851
+
852
+ > <Array(<ImportDir200Response>, Integer, Hash)> install_fallback_with_http_info(install_fallback_request)
853
+
854
+ ```ruby
855
+ begin
856
+ # Install Mnesia database from a binary backup file.
857
+ data, status_code, headers = api_instance.install_fallback_with_http_info(install_fallback_request)
858
+ p status_code # => 2xx
859
+ p headers # => { ... }
860
+ p data # => <ImportDir200Response>
861
+ rescue EjabberdHttpClient::ApiError => e
862
+ puts "Error when calling MnesiaApi->install_fallback_with_http_info: #{e}"
863
+ end
864
+ ```
865
+
866
+ ### Parameters
867
+
868
+ | Name | Type | Description | Notes |
869
+ | ---- | ---- | ----------- | ----- |
870
+ | **install_fallback_request** | [**InstallFallbackRequest**](InstallFallbackRequest.md) | | |
871
+
872
+ ### Return type
873
+
874
+ [**ImportDir200Response**](ImportDir200Response.md)
875
+
876
+ ### Authorization
877
+
878
+ No authorization required
879
+
880
+ ### HTTP request headers
881
+
882
+ - **Content-Type**: application/json
883
+ - **Accept**: application/json
884
+
885
+
886
+ ## load_database
887
+
888
+ > load_database(load_database_request)
889
+
890
+ Restore Mnesia database from a text dump file.
891
+
892
+ ### Examples
893
+
894
+ ```ruby
895
+ require 'time'
896
+ require 'ejabberd_http_client'
897
+
898
+ api_instance = EjabberdHttpClient::MnesiaApi.new
899
+ load_database_request = EjabberdHttpClient::LoadDatabaseRequest.new # LoadDatabaseRequest |
900
+
901
+ begin
902
+ # Restore Mnesia database from a text dump file.
903
+ api_instance.load_database(load_database_request)
904
+ rescue EjabberdHttpClient::ApiError => e
905
+ puts "Error when calling MnesiaApi->load_database: #{e}"
906
+ end
907
+ ```
908
+
909
+ #### Using the load_database_with_http_info variant
910
+
911
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
912
+
913
+ > <Array(nil, Integer, Hash)> load_database_with_http_info(load_database_request)
914
+
915
+ ```ruby
916
+ begin
917
+ # Restore Mnesia database from a text dump file.
918
+ data, status_code, headers = api_instance.load_database_with_http_info(load_database_request)
919
+ p status_code # => 2xx
920
+ p headers # => { ... }
921
+ p data # => nil
922
+ rescue EjabberdHttpClient::ApiError => e
923
+ puts "Error when calling MnesiaApi->load_database_with_http_info: #{e}"
924
+ end
925
+ ```
926
+
927
+ ### Parameters
928
+
929
+ | Name | Type | Description | Notes |
930
+ | ---- | ---- | ----------- | ----- |
931
+ | **load_database_request** | [**LoadDatabaseRequest**](LoadDatabaseRequest.md) | | |
932
+
933
+ ### Return type
934
+
935
+ nil (empty response body)
936
+
937
+ ### Authorization
938
+
939
+ No authorization required
940
+
941
+ ### HTTP request headers
942
+
943
+ - **Content-Type**: application/json
944
+ - **Accept**: Not defined
945
+
946
+
947
+ ## restore
948
+
949
+ > String restore(opts)
950
+
951
+ Restore the Mnesia database from a binary backup file.
952
+
953
+ ### Examples
954
+
955
+ ```ruby
956
+ require 'time'
957
+ require 'ejabberd_http_client'
958
+
959
+ api_instance = EjabberdHttpClient::MnesiaApi.new
960
+ opts = {
961
+ restore_request: EjabberdHttpClient::RestoreRequest.new # RestoreRequest |
962
+ }
963
+
964
+ begin
965
+ # Restore the Mnesia database from a binary backup file.
966
+ result = api_instance.restore(opts)
967
+ p result
968
+ rescue EjabberdHttpClient::ApiError => e
969
+ puts "Error when calling MnesiaApi->restore: #{e}"
970
+ end
971
+ ```
972
+
973
+ #### Using the restore_with_http_info variant
974
+
975
+ This returns an Array which contains the response data, status code and headers.
976
+
977
+ > <Array(String, Integer, Hash)> restore_with_http_info(opts)
978
+
979
+ ```ruby
980
+ begin
981
+ # Restore the Mnesia database from a binary backup file.
982
+ data, status_code, headers = api_instance.restore_with_http_info(opts)
983
+ p status_code # => 2xx
984
+ p headers # => { ... }
985
+ p data # => String
986
+ rescue EjabberdHttpClient::ApiError => e
987
+ puts "Error when calling MnesiaApi->restore_with_http_info: #{e}"
988
+ end
989
+ ```
990
+
991
+ ### Parameters
992
+
993
+ | Name | Type | Description | Notes |
994
+ | ---- | ---- | ----------- | ----- |
995
+ | **restore_request** | [**RestoreRequest**](RestoreRequest.md) | | [optional] |
996
+
997
+ ### Return type
998
+
999
+ **String**
1000
+
1001
+ ### Authorization
1002
+
1003
+ No authorization required
1004
+
1005
+ ### HTTP request headers
1006
+
1007
+ - **Content-Type**: application/json
1008
+ - **Accept**: application/json
1009
+
1010
+
1011
+ ## table_mnesia_info
1012
+
1013
+ > <ImportDir200Response> table_mnesia_info(table_mnesia_info_request)
1014
+
1015
+ Dump info on Mnesia table state.
1016
+
1017
+ ### Examples
1018
+
1019
+ ```ruby
1020
+ require 'time'
1021
+ require 'ejabberd_http_client'
1022
+
1023
+ api_instance = EjabberdHttpClient::MnesiaApi.new
1024
+ table_mnesia_info_request = EjabberdHttpClient::TableMnesiaInfoRequest.new # TableMnesiaInfoRequest |
1025
+
1026
+ begin
1027
+ # Dump info on Mnesia table state.
1028
+ result = api_instance.table_mnesia_info(table_mnesia_info_request)
1029
+ p result
1030
+ rescue EjabberdHttpClient::ApiError => e
1031
+ puts "Error when calling MnesiaApi->table_mnesia_info: #{e}"
1032
+ end
1033
+ ```
1034
+
1035
+ #### Using the table_mnesia_info_with_http_info variant
1036
+
1037
+ This returns an Array which contains the response data, status code and headers.
1038
+
1039
+ > <Array(<ImportDir200Response>, Integer, Hash)> table_mnesia_info_with_http_info(table_mnesia_info_request)
1040
+
1041
+ ```ruby
1042
+ begin
1043
+ # Dump info on Mnesia table state.
1044
+ data, status_code, headers = api_instance.table_mnesia_info_with_http_info(table_mnesia_info_request)
1045
+ p status_code # => 2xx
1046
+ p headers # => { ... }
1047
+ p data # => <ImportDir200Response>
1048
+ rescue EjabberdHttpClient::ApiError => e
1049
+ puts "Error when calling MnesiaApi->table_mnesia_info_with_http_info: #{e}"
1050
+ end
1051
+ ```
1052
+
1053
+ ### Parameters
1054
+
1055
+ | Name | Type | Description | Notes |
1056
+ | ---- | ---- | ----------- | ----- |
1057
+ | **table_mnesia_info_request** | [**TableMnesiaInfoRequest**](TableMnesiaInfoRequest.md) | | |
1058
+
1059
+ ### Return type
1060
+
1061
+ [**ImportDir200Response**](ImportDir200Response.md)
1062
+
1063
+ ### Authorization
1064
+
1065
+ No authorization required
1066
+
1067
+ ### HTTP request headers
1068
+
1069
+ - **Content-Type**: application/json
1070
+ - **Accept**: application/json
1071
+