ejabberd_http_client 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +13 -0
- data/Gemfile.lock +72 -0
- data/README.md +411 -0
- data/Rakefile +10 -0
- data/docs/AbortDeleteOldMamMessages200Response.md +18 -0
- data/docs/AbortDeleteOldMamMessagesRequest.md +18 -0
- data/docs/AccountsApi.md +640 -0
- data/docs/AcmeApi.md +197 -0
- data/docs/AddOAuthClientImplicitRequest.md +22 -0
- data/docs/AddOAuthClientPasswordRequest.md +22 -0
- data/docs/AddRosterItemRequest.md +30 -0
- data/docs/BackupRequest.md +18 -0
- data/docs/BanAccountRequest.md +22 -0
- data/docs/BookmarksToPepRequest.md +20 -0
- data/docs/ChangeNodeNameRequest.md +24 -0
- data/docs/ChangePasswordRequest.md +22 -0
- data/docs/ChangeRoomOptionRequest.md +24 -0
- data/docs/CheckAccountRequest.md +20 -0
- data/docs/CheckModuleRequest.md +18 -0
- data/docs/CheckPasswordHashRequest.md +24 -0
- data/docs/CheckPasswordRequest.md +22 -0
- data/docs/ClusterApi.md +256 -0
- data/docs/CompileRequest.md +18 -0
- data/docs/ConfigApi.md +192 -0
- data/docs/ConnectedUsersInfo200ResponseInner.md +36 -0
- data/docs/ConnectedUsersNumber200Response.md +18 -0
- data/docs/ConnectedUsersVHostRequest.md +18 -0
- data/docs/ConvertToScramRequest.md +18 -0
- data/docs/ConvertToYamlRequest.md +20 -0
- data/docs/CreateRoomRequest.md +22 -0
- data/docs/CreateRoomWithOptionsRequest.md +24 -0
- data/docs/CreateRoomWithOptionsRequestOptionsInner.md +20 -0
- data/docs/CreateRoomsFileRequest.md +18 -0
- data/docs/DeleteMnesiaRequest.md +18 -0
- data/docs/DeleteOldMAMMessagesBatchRequest.md +26 -0
- data/docs/DeleteOldMAMMessagesRequest.md +20 -0
- data/docs/DeleteOldMAMMessagesStatusRequest.md +18 -0
- data/docs/DeleteOldMessagesBatchRequest.md +24 -0
- data/docs/DeleteOldMessagesRequest.md +18 -0
- data/docs/DeleteOldPubsubItemsRequest.md +18 -0
- data/docs/DeleteOldUsersRequest.md +18 -0
- data/docs/DocumentationApi.md +255 -0
- data/docs/DumpConfigRequest.md +18 -0
- data/docs/DumpRequest.md +18 -0
- data/docs/DumpTableRequest.md +20 -0
- data/docs/ErlangApi.md +194 -0
- data/docs/Export2sqlRequest.md +20 -0
- data/docs/ExportPiefxisHostRequest.md +20 -0
- data/docs/ExportPiefxisRequest.md +18 -0
- data/docs/GenHtmlDocForCommandsRequest.md +22 -0
- data/docs/GenMarkdownDocForTagsRequest.md +18 -0
- data/docs/GetCookie200Response.md +18 -0
- data/docs/GetLast200Response.md +20 -0
- data/docs/GetLastRequest.md +20 -0
- data/docs/GetLoglevel200Response.md +18 -0
- data/docs/GetNumResources200Response.md +18 -0
- data/docs/GetOfflineCount200Response.md +18 -0
- data/docs/GetOfflineCountRequest.md +20 -0
- data/docs/GetOutgoingS2sNumber200Response.md +18 -0
- data/docs/GetPresence200Response.md +22 -0
- data/docs/GetRoomAffiliation200Response.md +18 -0
- data/docs/GetRoomAffiliationRequest.md +22 -0
- data/docs/GetRoomAffiliations200ResponseInner.md +24 -0
- data/docs/GetRoomAffiliationsRequest.md +20 -0
- data/docs/GetRoomHistory200ResponseInner.md +20 -0
- data/docs/GetRoomOccupants200ResponseInner.md +22 -0
- data/docs/GetRoomOccupantsNumber200Response.md +18 -0
- data/docs/GetRoomOptions200ResponseInner.md +20 -0
- data/docs/GetRoster200ResponseInner.md +26 -0
- data/docs/GetStats200Response.md +18 -0
- data/docs/GetStatsHostRequest.md +20 -0
- data/docs/GetStatsRequest.md +18 -0
- data/docs/GetStatusList200ResponseInner.md +26 -0
- data/docs/GetStatusListHostRequest.md +20 -0
- data/docs/GetStatusListRequest.md +18 -0
- data/docs/GetStatusNum200Response.md +18 -0
- data/docs/GetUserRoomsRequest.md +20 -0
- data/docs/GetUserSessionsInfo200ResponseInner.md +34 -0
- data/docs/GetUserSubscriptions200ResponseInner.md +22 -0
- data/docs/GetVcard200Response.md +18 -0
- data/docs/GetVcard2MultiRequest.md +24 -0
- data/docs/GetVcard2Request.md +24 -0
- data/docs/GetVcardRequest.md +22 -0
- data/docs/ImportDir200Response.md +18 -0
- data/docs/ImportDirRequest.md +18 -0
- data/docs/ImportFileRequest.md +18 -0
- data/docs/ImportPiefxisRequest.md +18 -0
- data/docs/ImportProsodyRequest.md +18 -0
- data/docs/IncomingS2sNumber200Response.md +18 -0
- data/docs/InstallFallbackRequest.md +18 -0
- data/docs/IssueOAuthToken200Response.md +22 -0
- data/docs/IssueOAuthTokenRequest.md +22 -0
- data/docs/JoinClusterRequest.md +18 -0
- data/docs/KickSessionRequest.md +24 -0
- data/docs/KickUser200Response.md +18 -0
- data/docs/LastApi.md +135 -0
- data/docs/LeaveClusterRequest.md +18 -0
- data/docs/ListCertificates200ResponseInner.md +22 -0
- data/docs/ListMucOnlineRoomsByRegex200ResponseInner.md +22 -0
- data/docs/ListMucOnlineRoomsByRegexRequest.md +20 -0
- data/docs/ListMucOnlineRoomsRequest.md +18 -0
- data/docs/ListOAuthTokens200ResponseInner.md +24 -0
- data/docs/LoadDatabaseRequest.md +18 -0
- data/docs/LogsApi.md +252 -0
- data/docs/MamApi.md +137 -0
- data/docs/MnesiaApi.md +1071 -0
- data/docs/ModulesApi.md +434 -0
- data/docs/MucApi.md +705 -0
- data/docs/MucRoomApi.md +959 -0
- data/docs/OauthApi.md +378 -0
- data/docs/OfflineApi.md +70 -0
- data/docs/PrivacySetRequest.md +22 -0
- data/docs/PrivateApi.md +199 -0
- data/docs/PrivateGetRequest.md +24 -0
- data/docs/PrivateSetRequest.md +22 -0
- data/docs/ProcessRosterItems200ResponseInner.md +20 -0
- data/docs/ProcessRosterItemsRequest.md +26 -0
- data/docs/PurgeApi.md +815 -0
- data/docs/PushAllToAllRequest.md +20 -0
- data/docs/PushRosterAllRequest.md +18 -0
- data/docs/PushRosterRequest.md +22 -0
- data/docs/RegisterMucNickRequest.md +22 -0
- data/docs/RegisterRequest.md +22 -0
- data/docs/RegisteredUsersRequest.md +18 -0
- data/docs/RemoveMamForUserWithPeerRequest.md +22 -0
- data/docs/RemoveOAuthClientRequest.md +18 -0
- data/docs/RequestCertificateRequest.md +18 -0
- data/docs/ResourceNum200Response.md +18 -0
- data/docs/ResourceNumRequest.md +22 -0
- data/docs/RestartModule200Response.md +18 -0
- data/docs/RestartModuleRequest.md +20 -0
- data/docs/RestoreRequest.md +18 -0
- data/docs/RevokeCertificateRequest.md +18 -0
- data/docs/RevokeOAuthTokenRequest.md +18 -0
- data/docs/RoomsEmptyDestroyRequest.md +18 -0
- data/docs/RoomsUnusedDestroyRequest.md +20 -0
- data/docs/RosterApi.md +392 -0
- data/docs/S2sApi.md +187 -0
- data/docs/SendDirectInvitationRequest.md +26 -0
- data/docs/SendMessageRequest.md +26 -0
- data/docs/SendStanzaC2SRequest.md +24 -0
- data/docs/SendStanzaRequest.md +22 -0
- data/docs/ServerApi.md +615 -0
- data/docs/SessionApi.md +1021 -0
- data/docs/SetLastRequest.md +24 -0
- data/docs/SetLoglevelRequest.md +18 -0
- data/docs/SetMasterRequest.md +18 -0
- data/docs/SetNicknameRequest.md +22 -0
- data/docs/SetPresenceRequest.md +30 -0
- data/docs/SetRoomAffiliationRequest.md +24 -0
- data/docs/SetVcard2MultiRequest.md +26 -0
- data/docs/SetVcard2Request.md +26 -0
- data/docs/SetVcardRequest.md +24 -0
- data/docs/SharedRosterGroupApi.md +462 -0
- data/docs/SqlApi.md +191 -0
- data/docs/SrgCreateRequest.md +26 -0
- data/docs/SrgDeleteRequest.md +20 -0
- data/docs/SrgGetInfo200ResponseInner.md +20 -0
- data/docs/SrgUserAddRequest.md +24 -0
- data/docs/StanzaApi.md +267 -0
- data/docs/StatisticsApi.md +447 -0
- data/docs/StopKindlyRequest.md +20 -0
- data/docs/SubscribeToRoomManyRequest.md +22 -0
- data/docs/SubscribeToRoomManyRequestUsersInner.md +20 -0
- data/docs/SubscribeToRoomRequest.md +24 -0
- data/docs/TableMnesiaInfoRequest.md +18 -0
- data/docs/UnbanIp200Response.md +18 -0
- data/docs/UnbanIpRequest.md +18 -0
- data/docs/UnregisterMucNickRequest.md +20 -0
- data/docs/UnregisterUserRequest.md +20 -0
- data/docs/UnsubscribeFromRoomRequest.md +20 -0
- data/docs/VcardApi.md +456 -0
- data/ejabberd_http_client.gemspec +37 -0
- data/git_push.sh +57 -0
- data/lib/ejabberd_http_client/api/accounts_api.rb +656 -0
- data/lib/ejabberd_http_client/api/acme_api.rb +201 -0
- data/lib/ejabberd_http_client/api/cluster_api.rb +267 -0
- data/lib/ejabberd_http_client/api/config_api.rb +207 -0
- data/lib/ejabberd_http_client/api/documentation_api.rb +273 -0
- data/lib/ejabberd_http_client/api/erlang_api.rb +203 -0
- data/lib/ejabberd_http_client/api/last_api.rb +150 -0
- data/lib/ejabberd_http_client/api/logs_api.rb +249 -0
- data/lib/ejabberd_http_client/api/mam_api.rb +146 -0
- data/lib/ejabberd_http_client/api/mnesia_api.rb +1119 -0
- data/lib/ejabberd_http_client/api/modules_api.rb +441 -0
- data/lib/ejabberd_http_client/api/muc_api.rb +726 -0
- data/lib/ejabberd_http_client/api/muc_room_api.rb +986 -0
- data/lib/ejabberd_http_client/api/oauth_api.rb +399 -0
- data/lib/ejabberd_http_client/api/offline_api.rb +88 -0
- data/lib/ejabberd_http_client/api/private_api.rb +212 -0
- data/lib/ejabberd_http_client/api/purge_api.rb +848 -0
- data/lib/ejabberd_http_client/api/roster_api.rb +400 -0
- data/lib/ejabberd_http_client/api/s2s_api.rb +187 -0
- data/lib/ejabberd_http_client/api/server_api.rb +582 -0
- data/lib/ejabberd_http_client/api/session_api.rb +1011 -0
- data/lib/ejabberd_http_client/api/shared_roster_group_api.rb +456 -0
- data/lib/ejabberd_http_client/api/sql_api.rb +205 -0
- data/lib/ejabberd_http_client/api/stanza_api.rb +270 -0
- data/lib/ejabberd_http_client/api/statistics_api.rb +435 -0
- data/lib/ejabberd_http_client/api/vcard_api.rb +468 -0
- data/lib/ejabberd_http_client/api_client.rb +391 -0
- data/lib/ejabberd_http_client/api_error.rb +58 -0
- data/lib/ejabberd_http_client/configuration.rb +290 -0
- data/lib/ejabberd_http_client/models/abort_delete_old_mam_messages200_response.rb +215 -0
- data/lib/ejabberd_http_client/models/abort_delete_old_mam_messages_request.rb +215 -0
- data/lib/ejabberd_http_client/models/add_o_auth_client_implicit_request.rb +235 -0
- data/lib/ejabberd_http_client/models/add_o_auth_client_password_request.rb +235 -0
- data/lib/ejabberd_http_client/models/add_roster_item_request.rb +275 -0
- data/lib/ejabberd_http_client/models/backup_request.rb +215 -0
- data/lib/ejabberd_http_client/models/ban_account_request.rb +235 -0
- data/lib/ejabberd_http_client/models/bookmarks_to_pep_request.rb +225 -0
- data/lib/ejabberd_http_client/models/change_node_name_request.rb +245 -0
- data/lib/ejabberd_http_client/models/change_password_request.rb +235 -0
- data/lib/ejabberd_http_client/models/change_room_option_request.rb +245 -0
- data/lib/ejabberd_http_client/models/check_account_request.rb +225 -0
- data/lib/ejabberd_http_client/models/check_module_request.rb +215 -0
- data/lib/ejabberd_http_client/models/check_password_hash_request.rb +245 -0
- data/lib/ejabberd_http_client/models/check_password_request.rb +235 -0
- data/lib/ejabberd_http_client/models/compile_request.rb +215 -0
- data/lib/ejabberd_http_client/models/connected_users_info200_response_inner.rb +305 -0
- data/lib/ejabberd_http_client/models/connected_users_number200_response.rb +215 -0
- data/lib/ejabberd_http_client/models/connected_users_v_host_request.rb +215 -0
- data/lib/ejabberd_http_client/models/convert_to_scram_request.rb +215 -0
- data/lib/ejabberd_http_client/models/convert_to_yaml_request.rb +225 -0
- data/lib/ejabberd_http_client/models/create_room_request.rb +235 -0
- data/lib/ejabberd_http_client/models/create_room_with_options_request.rb +246 -0
- data/lib/ejabberd_http_client/models/create_room_with_options_request_options_inner.rb +225 -0
- data/lib/ejabberd_http_client/models/create_rooms_file_request.rb +215 -0
- data/lib/ejabberd_http_client/models/delete_mnesia_request.rb +215 -0
- data/lib/ejabberd_http_client/models/delete_old_mam_messages_batch_request.rb +255 -0
- data/lib/ejabberd_http_client/models/delete_old_mam_messages_request.rb +225 -0
- data/lib/ejabberd_http_client/models/delete_old_mam_messages_status_request.rb +215 -0
- data/lib/ejabberd_http_client/models/delete_old_messages_batch_request.rb +245 -0
- data/lib/ejabberd_http_client/models/delete_old_messages_request.rb +215 -0
- data/lib/ejabberd_http_client/models/delete_old_pubsub_items_request.rb +215 -0
- data/lib/ejabberd_http_client/models/delete_old_users_request.rb +215 -0
- data/lib/ejabberd_http_client/models/dump_config_request.rb +215 -0
- data/lib/ejabberd_http_client/models/dump_request.rb +215 -0
- data/lib/ejabberd_http_client/models/dump_table_request.rb +225 -0
- data/lib/ejabberd_http_client/models/export2sql_request.rb +225 -0
- data/lib/ejabberd_http_client/models/export_piefxis_host_request.rb +225 -0
- data/lib/ejabberd_http_client/models/export_piefxis_request.rb +215 -0
- data/lib/ejabberd_http_client/models/gen_html_doc_for_commands_request.rb +235 -0
- data/lib/ejabberd_http_client/models/gen_markdown_doc_for_tags_request.rb +215 -0
- data/lib/ejabberd_http_client/models/get_cookie200_response.rb +215 -0
- data/lib/ejabberd_http_client/models/get_last200_response.rb +225 -0
- data/lib/ejabberd_http_client/models/get_last_request.rb +225 -0
- data/lib/ejabberd_http_client/models/get_loglevel200_response.rb +215 -0
- data/lib/ejabberd_http_client/models/get_num_resources200_response.rb +214 -0
- data/lib/ejabberd_http_client/models/get_offline_count200_response.rb +215 -0
- data/lib/ejabberd_http_client/models/get_offline_count_request.rb +223 -0
- data/lib/ejabberd_http_client/models/get_outgoing_s2s_number200_response.rb +214 -0
- data/lib/ejabberd_http_client/models/get_presence200_response.rb +235 -0
- data/lib/ejabberd_http_client/models/get_room_affiliation200_response.rb +215 -0
- data/lib/ejabberd_http_client/models/get_room_affiliation_request.rb +235 -0
- data/lib/ejabberd_http_client/models/get_room_affiliations200_response_inner.rb +241 -0
- data/lib/ejabberd_http_client/models/get_room_affiliations_request.rb +225 -0
- data/lib/ejabberd_http_client/models/get_room_history200_response_inner.rb +223 -0
- data/lib/ejabberd_http_client/models/get_room_occupants200_response_inner.rb +232 -0
- data/lib/ejabberd_http_client/models/get_room_occupants_number200_response.rb +214 -0
- data/lib/ejabberd_http_client/models/get_room_options200_response_inner.rb +223 -0
- data/lib/ejabberd_http_client/models/get_roster200_response_inner.rb +252 -0
- data/lib/ejabberd_http_client/models/get_stats200_response.rb +215 -0
- data/lib/ejabberd_http_client/models/get_stats_host_request.rb +225 -0
- data/lib/ejabberd_http_client/models/get_stats_request.rb +215 -0
- data/lib/ejabberd_http_client/models/get_status_list200_response_inner.rb +255 -0
- data/lib/ejabberd_http_client/models/get_status_list_host_request.rb +225 -0
- data/lib/ejabberd_http_client/models/get_status_list_request.rb +215 -0
- data/lib/ejabberd_http_client/models/get_status_num200_response.rb +215 -0
- data/lib/ejabberd_http_client/models/get_user_rooms_request.rb +225 -0
- data/lib/ejabberd_http_client/models/get_user_sessions_info200_response_inner.rb +295 -0
- data/lib/ejabberd_http_client/models/get_user_subscriptions200_response_inner.rb +234 -0
- data/lib/ejabberd_http_client/models/get_vcard200_response.rb +214 -0
- data/lib/ejabberd_http_client/models/get_vcard2_multi_request.rb +241 -0
- data/lib/ejabberd_http_client/models/get_vcard2_request.rb +245 -0
- data/lib/ejabberd_http_client/models/get_vcard_request.rb +235 -0
- data/lib/ejabberd_http_client/models/import_dir200_response.rb +214 -0
- data/lib/ejabberd_http_client/models/import_dir_request.rb +215 -0
- data/lib/ejabberd_http_client/models/import_file_request.rb +215 -0
- data/lib/ejabberd_http_client/models/import_piefxis_request.rb +215 -0
- data/lib/ejabberd_http_client/models/import_prosody_request.rb +215 -0
- data/lib/ejabberd_http_client/models/incoming_s2s_number200_response.rb +214 -0
- data/lib/ejabberd_http_client/models/install_fallback_request.rb +215 -0
- data/lib/ejabberd_http_client/models/issue_o_auth_token200_response.rb +232 -0
- data/lib/ejabberd_http_client/models/issue_o_auth_token_request.rb +235 -0
- data/lib/ejabberd_http_client/models/join_cluster_request.rb +215 -0
- data/lib/ejabberd_http_client/models/kick_session_request.rb +245 -0
- data/lib/ejabberd_http_client/models/kick_user200_response.rb +215 -0
- data/lib/ejabberd_http_client/models/leave_cluster_request.rb +215 -0
- data/lib/ejabberd_http_client/models/list_certificates200_response_inner.rb +235 -0
- data/lib/ejabberd_http_client/models/list_muc_online_rooms_by_regex200_response_inner.rb +232 -0
- data/lib/ejabberd_http_client/models/list_muc_online_rooms_by_regex_request.rb +225 -0
- data/lib/ejabberd_http_client/models/list_muc_online_rooms_request.rb +215 -0
- data/lib/ejabberd_http_client/models/list_o_auth_tokens200_response_inner.rb +241 -0
- data/lib/ejabberd_http_client/models/load_database_request.rb +215 -0
- data/lib/ejabberd_http_client/models/privacy_set_request.rb +232 -0
- data/lib/ejabberd_http_client/models/private_get_request.rb +241 -0
- data/lib/ejabberd_http_client/models/private_set_request.rb +232 -0
- data/lib/ejabberd_http_client/models/process_roster_items200_response_inner.rb +223 -0
- data/lib/ejabberd_http_client/models/process_roster_items_request.rb +250 -0
- data/lib/ejabberd_http_client/models/push_all_to_all_request.rb +223 -0
- data/lib/ejabberd_http_client/models/push_roster_all_request.rb +214 -0
- data/lib/ejabberd_http_client/models/push_roster_request.rb +232 -0
- data/lib/ejabberd_http_client/models/register_muc_nick_request.rb +235 -0
- data/lib/ejabberd_http_client/models/register_request.rb +232 -0
- data/lib/ejabberd_http_client/models/registered_users_request.rb +214 -0
- data/lib/ejabberd_http_client/models/remove_mam_for_user_with_peer_request.rb +232 -0
- data/lib/ejabberd_http_client/models/remove_o_auth_client_request.rb +215 -0
- data/lib/ejabberd_http_client/models/request_certificate_request.rb +215 -0
- data/lib/ejabberd_http_client/models/resource_num200_response.rb +214 -0
- data/lib/ejabberd_http_client/models/resource_num_request.rb +235 -0
- data/lib/ejabberd_http_client/models/restart_module200_response.rb +214 -0
- data/lib/ejabberd_http_client/models/restart_module_request.rb +225 -0
- data/lib/ejabberd_http_client/models/restore_request.rb +215 -0
- data/lib/ejabberd_http_client/models/revoke_certificate_request.rb +215 -0
- data/lib/ejabberd_http_client/models/revoke_o_auth_token_request.rb +215 -0
- data/lib/ejabberd_http_client/models/rooms_empty_destroy_request.rb +215 -0
- data/lib/ejabberd_http_client/models/rooms_unused_destroy_request.rb +225 -0
- data/lib/ejabberd_http_client/models/send_direct_invitation_request.rb +255 -0
- data/lib/ejabberd_http_client/models/send_message_request.rb +255 -0
- data/lib/ejabberd_http_client/models/send_stanza_c2_s_request.rb +245 -0
- data/lib/ejabberd_http_client/models/send_stanza_request.rb +235 -0
- data/lib/ejabberd_http_client/models/set_last_request.rb +245 -0
- data/lib/ejabberd_http_client/models/set_loglevel_request.rb +215 -0
- data/lib/ejabberd_http_client/models/set_master_request.rb +215 -0
- data/lib/ejabberd_http_client/models/set_nickname_request.rb +235 -0
- data/lib/ejabberd_http_client/models/set_presence_request.rb +275 -0
- data/lib/ejabberd_http_client/models/set_room_affiliation_request.rb +245 -0
- data/lib/ejabberd_http_client/models/set_vcard2_multi_request.rb +257 -0
- data/lib/ejabberd_http_client/models/set_vcard2_request.rb +255 -0
- data/lib/ejabberd_http_client/models/set_vcard_request.rb +245 -0
- data/lib/ejabberd_http_client/models/srg_create_request.rb +255 -0
- data/lib/ejabberd_http_client/models/srg_delete_request.rb +225 -0
- data/lib/ejabberd_http_client/models/srg_get_info200_response_inner.rb +225 -0
- data/lib/ejabberd_http_client/models/srg_user_add_request.rb +245 -0
- data/lib/ejabberd_http_client/models/stop_kindly_request.rb +225 -0
- data/lib/ejabberd_http_client/models/subscribe_to_room_many_request.rb +236 -0
- data/lib/ejabberd_http_client/models/subscribe_to_room_many_request_users_inner.rb +225 -0
- data/lib/ejabberd_http_client/models/subscribe_to_room_request.rb +245 -0
- data/lib/ejabberd_http_client/models/table_mnesia_info_request.rb +215 -0
- data/lib/ejabberd_http_client/models/unban_ip200_response.rb +215 -0
- data/lib/ejabberd_http_client/models/unban_ip_request.rb +215 -0
- data/lib/ejabberd_http_client/models/unregister_muc_nick_request.rb +225 -0
- data/lib/ejabberd_http_client/models/unregister_user_request.rb +225 -0
- data/lib/ejabberd_http_client/models/unsubscribe_from_room_request.rb +225 -0
- data/lib/ejabberd_http_client/version.rb +15 -0
- data/lib/ejabberd_http_client.rb +207 -0
- data/spec/api/accounts_api_spec.rb +145 -0
- data/spec/api/acme_api_spec.rb +67 -0
- data/spec/api/cluster_api_spec.rb +78 -0
- data/spec/api/config_api_spec.rb +67 -0
- data/spec/api/documentation_api_spec.rb +78 -0
- data/spec/api/erlang_api_spec.rb +67 -0
- data/spec/api/last_api_spec.rb +57 -0
- data/spec/api/logs_api_spec.rb +76 -0
- data/spec/api/mam_api_spec.rb +57 -0
- data/spec/api/mnesia_api_spec.rb +221 -0
- data/spec/api/modules_api_spec.rb +109 -0
- data/spec/api/muc_api_spec.rb +156 -0
- data/spec/api/muc_room_api_spec.rb +200 -0
- data/spec/api/oauth_api_spec.rb +100 -0
- data/spec/api/offline_api_spec.rb +46 -0
- data/spec/api/private_api_spec.rb +68 -0
- data/spec/api/purge_api_spec.rb +176 -0
- data/spec/api/roster_api_spec.rb +101 -0
- data/spec/api/s2s_api_spec.rb +65 -0
- data/spec/api/server_api_spec.rb +137 -0
- data/spec/api/session_api_spec.rb +208 -0
- data/spec/api/shared_roster_group_api_spec.rb +112 -0
- data/spec/api/sql_api_spec.rb +67 -0
- data/spec/api/stanza_api_spec.rb +79 -0
- data/spec/api/statistics_api_spec.rb +109 -0
- data/spec/api/vcard_api_spec.rb +112 -0
- data/spec/api_client_spec.rb +228 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/abort_delete_old_mam_messages200_response_spec.rb +34 -0
- data/spec/models/abort_delete_old_mam_messages_request_spec.rb +34 -0
- data/spec/models/add_o_auth_client_implicit_request_spec.rb +46 -0
- data/spec/models/add_o_auth_client_password_request_spec.rb +46 -0
- data/spec/models/add_roster_item_request_spec.rb +70 -0
- data/spec/models/backup_request_spec.rb +34 -0
- data/spec/models/ban_account_request_spec.rb +46 -0
- data/spec/models/bookmarks_to_pep_request_spec.rb +40 -0
- data/spec/models/change_node_name_request_spec.rb +52 -0
- data/spec/models/change_password_request_spec.rb +46 -0
- data/spec/models/change_room_option_request_spec.rb +52 -0
- data/spec/models/check_account_request_spec.rb +40 -0
- data/spec/models/check_module_request_spec.rb +34 -0
- data/spec/models/check_password_hash_request_spec.rb +52 -0
- data/spec/models/check_password_request_spec.rb +46 -0
- data/spec/models/compile_request_spec.rb +34 -0
- data/spec/models/connected_users_info200_response_inner_spec.rb +88 -0
- data/spec/models/connected_users_number200_response_spec.rb +34 -0
- data/spec/models/connected_users_v_host_request_spec.rb +34 -0
- data/spec/models/convert_to_scram_request_spec.rb +34 -0
- data/spec/models/convert_to_yaml_request_spec.rb +40 -0
- data/spec/models/create_room_request_spec.rb +46 -0
- data/spec/models/create_room_with_options_request_options_inner_spec.rb +40 -0
- data/spec/models/create_room_with_options_request_spec.rb +52 -0
- data/spec/models/create_rooms_file_request_spec.rb +34 -0
- data/spec/models/delete_mnesia_request_spec.rb +34 -0
- data/spec/models/delete_old_mam_messages_batch_request_spec.rb +58 -0
- data/spec/models/delete_old_mam_messages_request_spec.rb +40 -0
- data/spec/models/delete_old_mam_messages_status_request_spec.rb +34 -0
- data/spec/models/delete_old_messages_batch_request_spec.rb +52 -0
- data/spec/models/delete_old_messages_request_spec.rb +34 -0
- data/spec/models/delete_old_pubsub_items_request_spec.rb +34 -0
- data/spec/models/delete_old_users_request_spec.rb +34 -0
- data/spec/models/dump_config_request_spec.rb +34 -0
- data/spec/models/dump_request_spec.rb +34 -0
- data/spec/models/dump_table_request_spec.rb +40 -0
- data/spec/models/export2sql_request_spec.rb +40 -0
- data/spec/models/export_piefxis_host_request_spec.rb +40 -0
- data/spec/models/export_piefxis_request_spec.rb +34 -0
- data/spec/models/gen_html_doc_for_commands_request_spec.rb +46 -0
- data/spec/models/gen_markdown_doc_for_tags_request_spec.rb +34 -0
- data/spec/models/get_cookie200_response_spec.rb +34 -0
- data/spec/models/get_last200_response_spec.rb +40 -0
- data/spec/models/get_last_request_spec.rb +40 -0
- data/spec/models/get_loglevel200_response_spec.rb +34 -0
- data/spec/models/get_num_resources200_response_spec.rb +34 -0
- data/spec/models/get_offline_count200_response_spec.rb +34 -0
- data/spec/models/get_offline_count_request_spec.rb +40 -0
- data/spec/models/get_outgoing_s2s_number200_response_spec.rb +34 -0
- data/spec/models/get_presence200_response_spec.rb +46 -0
- data/spec/models/get_room_affiliation200_response_spec.rb +34 -0
- data/spec/models/get_room_affiliation_request_spec.rb +46 -0
- data/spec/models/get_room_affiliations200_response_inner_spec.rb +52 -0
- data/spec/models/get_room_affiliations_request_spec.rb +40 -0
- data/spec/models/get_room_history200_response_inner_spec.rb +40 -0
- data/spec/models/get_room_occupants200_response_inner_spec.rb +46 -0
- data/spec/models/get_room_occupants_number200_response_spec.rb +34 -0
- data/spec/models/get_room_options200_response_inner_spec.rb +40 -0
- data/spec/models/get_roster200_response_inner_spec.rb +58 -0
- data/spec/models/get_stats200_response_spec.rb +34 -0
- data/spec/models/get_stats_host_request_spec.rb +40 -0
- data/spec/models/get_stats_request_spec.rb +34 -0
- data/spec/models/get_status_list200_response_inner_spec.rb +58 -0
- data/spec/models/get_status_list_host_request_spec.rb +40 -0
- data/spec/models/get_status_list_request_spec.rb +34 -0
- data/spec/models/get_status_num200_response_spec.rb +34 -0
- data/spec/models/get_user_rooms_request_spec.rb +40 -0
- data/spec/models/get_user_sessions_info200_response_inner_spec.rb +82 -0
- data/spec/models/get_user_subscriptions200_response_inner_spec.rb +46 -0
- data/spec/models/get_vcard200_response_spec.rb +34 -0
- data/spec/models/get_vcard2_multi_request_spec.rb +52 -0
- data/spec/models/get_vcard2_request_spec.rb +52 -0
- data/spec/models/get_vcard_request_spec.rb +46 -0
- data/spec/models/import_dir200_response_spec.rb +34 -0
- data/spec/models/import_dir_request_spec.rb +34 -0
- data/spec/models/import_file_request_spec.rb +34 -0
- data/spec/models/import_piefxis_request_spec.rb +34 -0
- data/spec/models/import_prosody_request_spec.rb +34 -0
- data/spec/models/incoming_s2s_number200_response_spec.rb +34 -0
- data/spec/models/install_fallback_request_spec.rb +34 -0
- data/spec/models/issue_o_auth_token200_response_spec.rb +46 -0
- data/spec/models/issue_o_auth_token_request_spec.rb +46 -0
- data/spec/models/join_cluster_request_spec.rb +34 -0
- data/spec/models/kick_session_request_spec.rb +52 -0
- data/spec/models/kick_user200_response_spec.rb +34 -0
- data/spec/models/leave_cluster_request_spec.rb +34 -0
- data/spec/models/list_certificates200_response_inner_spec.rb +46 -0
- data/spec/models/list_muc_online_rooms_by_regex200_response_inner_spec.rb +46 -0
- data/spec/models/list_muc_online_rooms_by_regex_request_spec.rb +40 -0
- data/spec/models/list_muc_online_rooms_request_spec.rb +34 -0
- data/spec/models/list_o_auth_tokens200_response_inner_spec.rb +52 -0
- data/spec/models/load_database_request_spec.rb +34 -0
- data/spec/models/privacy_set_request_spec.rb +46 -0
- data/spec/models/private_get_request_spec.rb +52 -0
- data/spec/models/private_set_request_spec.rb +46 -0
- data/spec/models/process_roster_items200_response_inner_spec.rb +40 -0
- data/spec/models/process_roster_items_request_spec.rb +58 -0
- data/spec/models/push_all_to_all_request_spec.rb +40 -0
- data/spec/models/push_roster_all_request_spec.rb +34 -0
- data/spec/models/push_roster_request_spec.rb +46 -0
- data/spec/models/register_muc_nick_request_spec.rb +46 -0
- data/spec/models/register_request_spec.rb +46 -0
- data/spec/models/registered_users_request_spec.rb +34 -0
- data/spec/models/remove_mam_for_user_with_peer_request_spec.rb +46 -0
- data/spec/models/remove_o_auth_client_request_spec.rb +34 -0
- data/spec/models/request_certificate_request_spec.rb +34 -0
- data/spec/models/resource_num200_response_spec.rb +34 -0
- data/spec/models/resource_num_request_spec.rb +46 -0
- data/spec/models/restart_module200_response_spec.rb +34 -0
- data/spec/models/restart_module_request_spec.rb +40 -0
- data/spec/models/restore_request_spec.rb +34 -0
- data/spec/models/revoke_certificate_request_spec.rb +34 -0
- data/spec/models/revoke_o_auth_token_request_spec.rb +34 -0
- data/spec/models/rooms_empty_destroy_request_spec.rb +34 -0
- data/spec/models/rooms_unused_destroy_request_spec.rb +40 -0
- data/spec/models/send_direct_invitation_request_spec.rb +58 -0
- data/spec/models/send_message_request_spec.rb +58 -0
- data/spec/models/send_stanza_c2_s_request_spec.rb +52 -0
- data/spec/models/send_stanza_request_spec.rb +46 -0
- data/spec/models/set_last_request_spec.rb +52 -0
- data/spec/models/set_loglevel_request_spec.rb +34 -0
- data/spec/models/set_master_request_spec.rb +34 -0
- data/spec/models/set_nickname_request_spec.rb +46 -0
- data/spec/models/set_presence_request_spec.rb +70 -0
- data/spec/models/set_room_affiliation_request_spec.rb +52 -0
- data/spec/models/set_vcard2_multi_request_spec.rb +58 -0
- data/spec/models/set_vcard2_request_spec.rb +58 -0
- data/spec/models/set_vcard_request_spec.rb +52 -0
- data/spec/models/srg_create_request_spec.rb +58 -0
- data/spec/models/srg_delete_request_spec.rb +40 -0
- data/spec/models/srg_get_info200_response_inner_spec.rb +40 -0
- data/spec/models/srg_user_add_request_spec.rb +52 -0
- data/spec/models/stop_kindly_request_spec.rb +40 -0
- data/spec/models/subscribe_to_room_many_request_spec.rb +46 -0
- data/spec/models/subscribe_to_room_many_request_users_inner_spec.rb +40 -0
- data/spec/models/subscribe_to_room_request_spec.rb +52 -0
- data/spec/models/table_mnesia_info_request_spec.rb +34 -0
- data/spec/models/unban_ip200_response_spec.rb +34 -0
- data/spec/models/unban_ip_request_spec.rb +34 -0
- data/spec/models/unregister_muc_nick_request_spec.rb +40 -0
- data/spec/models/unregister_user_request_spec.rb +40 -0
- data/spec/models/unsubscribe_from_room_request_spec.rb +40 -0
- data/spec/spec_helper.rb +114 -0
- metadata +772 -0
@@ -0,0 +1,270 @@
|
|
1
|
+
=begin
|
2
|
+
#OpenAPI Documentation for Ejabberd HTTP APIs
|
3
|
+
|
4
|
+
#APIs for managing Ejabberd server
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
|
8
|
+
|
9
|
+
OpenAPI Generator version: 7.0.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'cgi'
|
14
|
+
|
15
|
+
module EjabberdHttpClient
|
16
|
+
class StanzaApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Send a IQ set privacy stanza for a local account.
|
23
|
+
# @param [Hash] opts the optional parameters
|
24
|
+
# @option opts [PrivacySetRequest] :privacy_set_request
|
25
|
+
# @return [Integer]
|
26
|
+
def privacy_set(opts = {})
|
27
|
+
data, _status_code, _headers = privacy_set_with_http_info(opts)
|
28
|
+
data
|
29
|
+
end
|
30
|
+
|
31
|
+
# Send a IQ set privacy stanza for a local account.
|
32
|
+
# @param [Hash] opts the optional parameters
|
33
|
+
# @option opts [PrivacySetRequest] :privacy_set_request
|
34
|
+
# @return [Array<(Integer, Integer, Hash)>] Integer data, response status code and response headers
|
35
|
+
def privacy_set_with_http_info(opts = {})
|
36
|
+
if @api_client.config.debugging
|
37
|
+
@api_client.config.logger.debug 'Calling API: StanzaApi.privacy_set ...'
|
38
|
+
end
|
39
|
+
# resource path
|
40
|
+
local_var_path = '/api/privacy_set'
|
41
|
+
|
42
|
+
# query parameters
|
43
|
+
query_params = opts[:query_params] || {}
|
44
|
+
|
45
|
+
# header parameters
|
46
|
+
header_params = opts[:header_params] || {}
|
47
|
+
# HTTP header 'Accept' (if needed)
|
48
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
49
|
+
# HTTP header 'Content-Type'
|
50
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
51
|
+
if !content_type.nil?
|
52
|
+
header_params['Content-Type'] = content_type
|
53
|
+
end
|
54
|
+
|
55
|
+
# form parameters
|
56
|
+
form_params = opts[:form_params] || {}
|
57
|
+
|
58
|
+
# http body (model)
|
59
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'privacy_set_request'])
|
60
|
+
|
61
|
+
# return_type
|
62
|
+
return_type = opts[:debug_return_type] || 'Integer'
|
63
|
+
|
64
|
+
# auth_names
|
65
|
+
auth_names = opts[:debug_auth_names] || []
|
66
|
+
|
67
|
+
new_options = opts.merge(
|
68
|
+
:operation => :"StanzaApi.privacy_set",
|
69
|
+
:header_params => header_params,
|
70
|
+
:query_params => query_params,
|
71
|
+
:form_params => form_params,
|
72
|
+
:body => post_body,
|
73
|
+
:auth_names => auth_names,
|
74
|
+
:return_type => return_type
|
75
|
+
)
|
76
|
+
|
77
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
78
|
+
if @api_client.config.debugging
|
79
|
+
@api_client.config.logger.debug "API called: StanzaApi#privacy_set\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
80
|
+
end
|
81
|
+
return data, status_code, headers
|
82
|
+
end
|
83
|
+
|
84
|
+
# Send a message to a local or remote bare of full JID.
|
85
|
+
# @param [Hash] opts the optional parameters
|
86
|
+
# @option opts [SendMessageRequest] :send_message_request
|
87
|
+
# @return [Integer]
|
88
|
+
def send_message(opts = {})
|
89
|
+
data, _status_code, _headers = send_message_with_http_info(opts)
|
90
|
+
data
|
91
|
+
end
|
92
|
+
|
93
|
+
# Send a message to a local or remote bare of full JID.
|
94
|
+
# @param [Hash] opts the optional parameters
|
95
|
+
# @option opts [SendMessageRequest] :send_message_request
|
96
|
+
# @return [Array<(Integer, Integer, Hash)>] Integer data, response status code and response headers
|
97
|
+
def send_message_with_http_info(opts = {})
|
98
|
+
if @api_client.config.debugging
|
99
|
+
@api_client.config.logger.debug 'Calling API: StanzaApi.send_message ...'
|
100
|
+
end
|
101
|
+
# resource path
|
102
|
+
local_var_path = '/api/send_message'
|
103
|
+
|
104
|
+
# query parameters
|
105
|
+
query_params = opts[:query_params] || {}
|
106
|
+
|
107
|
+
# header parameters
|
108
|
+
header_params = opts[:header_params] || {}
|
109
|
+
# HTTP header 'Accept' (if needed)
|
110
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
111
|
+
# HTTP header 'Content-Type'
|
112
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
113
|
+
if !content_type.nil?
|
114
|
+
header_params['Content-Type'] = content_type
|
115
|
+
end
|
116
|
+
|
117
|
+
# form parameters
|
118
|
+
form_params = opts[:form_params] || {}
|
119
|
+
|
120
|
+
# http body (model)
|
121
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'send_message_request'])
|
122
|
+
|
123
|
+
# return_type
|
124
|
+
return_type = opts[:debug_return_type] || 'Integer'
|
125
|
+
|
126
|
+
# auth_names
|
127
|
+
auth_names = opts[:debug_auth_names] || []
|
128
|
+
|
129
|
+
new_options = opts.merge(
|
130
|
+
:operation => :"StanzaApi.send_message",
|
131
|
+
:header_params => header_params,
|
132
|
+
:query_params => query_params,
|
133
|
+
:form_params => form_params,
|
134
|
+
:body => post_body,
|
135
|
+
:auth_names => auth_names,
|
136
|
+
:return_type => return_type
|
137
|
+
)
|
138
|
+
|
139
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
140
|
+
if @api_client.config.debugging
|
141
|
+
@api_client.config.logger.debug "API called: StanzaApi#send_message\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
142
|
+
end
|
143
|
+
return data, status_code, headers
|
144
|
+
end
|
145
|
+
|
146
|
+
# Send a stanza; provide From JID and valid To JID.
|
147
|
+
# @param [Hash] opts the optional parameters
|
148
|
+
# @option opts [SendStanzaRequest] :send_stanza_request
|
149
|
+
# @return [Integer]
|
150
|
+
def send_stanza(opts = {})
|
151
|
+
data, _status_code, _headers = send_stanza_with_http_info(opts)
|
152
|
+
data
|
153
|
+
end
|
154
|
+
|
155
|
+
# Send a stanza; provide From JID and valid To JID.
|
156
|
+
# @param [Hash] opts the optional parameters
|
157
|
+
# @option opts [SendStanzaRequest] :send_stanza_request
|
158
|
+
# @return [Array<(Integer, Integer, Hash)>] Integer data, response status code and response headers
|
159
|
+
def send_stanza_with_http_info(opts = {})
|
160
|
+
if @api_client.config.debugging
|
161
|
+
@api_client.config.logger.debug 'Calling API: StanzaApi.send_stanza ...'
|
162
|
+
end
|
163
|
+
# resource path
|
164
|
+
local_var_path = '/api/send_stanza'
|
165
|
+
|
166
|
+
# query parameters
|
167
|
+
query_params = opts[:query_params] || {}
|
168
|
+
|
169
|
+
# header parameters
|
170
|
+
header_params = opts[:header_params] || {}
|
171
|
+
# HTTP header 'Accept' (if needed)
|
172
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
173
|
+
# HTTP header 'Content-Type'
|
174
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
175
|
+
if !content_type.nil?
|
176
|
+
header_params['Content-Type'] = content_type
|
177
|
+
end
|
178
|
+
|
179
|
+
# form parameters
|
180
|
+
form_params = opts[:form_params] || {}
|
181
|
+
|
182
|
+
# http body (model)
|
183
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'send_stanza_request'])
|
184
|
+
|
185
|
+
# return_type
|
186
|
+
return_type = opts[:debug_return_type] || 'Integer'
|
187
|
+
|
188
|
+
# auth_names
|
189
|
+
auth_names = opts[:debug_auth_names] || []
|
190
|
+
|
191
|
+
new_options = opts.merge(
|
192
|
+
:operation => :"StanzaApi.send_stanza",
|
193
|
+
:header_params => header_params,
|
194
|
+
:query_params => query_params,
|
195
|
+
:form_params => form_params,
|
196
|
+
:body => post_body,
|
197
|
+
:auth_names => auth_names,
|
198
|
+
:return_type => return_type
|
199
|
+
)
|
200
|
+
|
201
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
202
|
+
if @api_client.config.debugging
|
203
|
+
@api_client.config.logger.debug "API called: StanzaApi#send_stanza\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
204
|
+
end
|
205
|
+
return data, status_code, headers
|
206
|
+
end
|
207
|
+
|
208
|
+
# Send a stanza from an existing C2S session.
|
209
|
+
# @param [Hash] opts the optional parameters
|
210
|
+
# @option opts [SendStanzaC2SRequest] :send_stanza_c2_s_request
|
211
|
+
# @return [Integer]
|
212
|
+
def send_stanza_c2_s(opts = {})
|
213
|
+
data, _status_code, _headers = send_stanza_c2_s_with_http_info(opts)
|
214
|
+
data
|
215
|
+
end
|
216
|
+
|
217
|
+
# Send a stanza from an existing C2S session.
|
218
|
+
# @param [Hash] opts the optional parameters
|
219
|
+
# @option opts [SendStanzaC2SRequest] :send_stanza_c2_s_request
|
220
|
+
# @return [Array<(Integer, Integer, Hash)>] Integer data, response status code and response headers
|
221
|
+
def send_stanza_c2_s_with_http_info(opts = {})
|
222
|
+
if @api_client.config.debugging
|
223
|
+
@api_client.config.logger.debug 'Calling API: StanzaApi.send_stanza_c2_s ...'
|
224
|
+
end
|
225
|
+
# resource path
|
226
|
+
local_var_path = '/api/send_stanza_c2s'
|
227
|
+
|
228
|
+
# query parameters
|
229
|
+
query_params = opts[:query_params] || {}
|
230
|
+
|
231
|
+
# header parameters
|
232
|
+
header_params = opts[:header_params] || {}
|
233
|
+
# HTTP header 'Accept' (if needed)
|
234
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
235
|
+
# HTTP header 'Content-Type'
|
236
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
237
|
+
if !content_type.nil?
|
238
|
+
header_params['Content-Type'] = content_type
|
239
|
+
end
|
240
|
+
|
241
|
+
# form parameters
|
242
|
+
form_params = opts[:form_params] || {}
|
243
|
+
|
244
|
+
# http body (model)
|
245
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'send_stanza_c2_s_request'])
|
246
|
+
|
247
|
+
# return_type
|
248
|
+
return_type = opts[:debug_return_type] || 'Integer'
|
249
|
+
|
250
|
+
# auth_names
|
251
|
+
auth_names = opts[:debug_auth_names] || []
|
252
|
+
|
253
|
+
new_options = opts.merge(
|
254
|
+
:operation => :"StanzaApi.send_stanza_c2_s",
|
255
|
+
:header_params => header_params,
|
256
|
+
:query_params => query_params,
|
257
|
+
:form_params => form_params,
|
258
|
+
:body => post_body,
|
259
|
+
:auth_names => auth_names,
|
260
|
+
:return_type => return_type
|
261
|
+
)
|
262
|
+
|
263
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
264
|
+
if @api_client.config.debugging
|
265
|
+
@api_client.config.logger.debug "API called: StanzaApi#send_stanza_c2_s\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
266
|
+
end
|
267
|
+
return data, status_code, headers
|
268
|
+
end
|
269
|
+
end
|
270
|
+
end
|
@@ -0,0 +1,435 @@
|
|
1
|
+
=begin
|
2
|
+
#OpenAPI Documentation for Ejabberd HTTP APIs
|
3
|
+
|
4
|
+
#APIs for managing Ejabberd server
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
|
8
|
+
|
9
|
+
OpenAPI Generator version: 7.0.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'cgi'
|
14
|
+
|
15
|
+
module EjabberdHttpClient
|
16
|
+
class StatisticsApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Get the number of established sessions.
|
23
|
+
# @param [Hash] opts the optional parameters
|
24
|
+
# @return [ConnectedUsersNumber200Response]
|
25
|
+
def connected_users_number(opts = {})
|
26
|
+
data, _status_code, _headers = connected_users_number_with_http_info(opts)
|
27
|
+
data
|
28
|
+
end
|
29
|
+
|
30
|
+
# Get the number of established sessions.
|
31
|
+
# @param [Hash] opts the optional parameters
|
32
|
+
# @return [Array<(ConnectedUsersNumber200Response, Integer, Hash)>] ConnectedUsersNumber200Response data, response status code and response headers
|
33
|
+
def connected_users_number_with_http_info(opts = {})
|
34
|
+
if @api_client.config.debugging
|
35
|
+
@api_client.config.logger.debug 'Calling API: StatisticsApi.connected_users_number ...'
|
36
|
+
end
|
37
|
+
# resource path
|
38
|
+
local_var_path = '/api/connected_users_number'
|
39
|
+
|
40
|
+
# query parameters
|
41
|
+
query_params = opts[:query_params] || {}
|
42
|
+
|
43
|
+
# header parameters
|
44
|
+
header_params = opts[:header_params] || {}
|
45
|
+
# HTTP header 'Accept' (if needed)
|
46
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
47
|
+
|
48
|
+
# form parameters
|
49
|
+
form_params = opts[:form_params] || {}
|
50
|
+
|
51
|
+
# http body (model)
|
52
|
+
post_body = opts[:debug_body]
|
53
|
+
|
54
|
+
# return_type
|
55
|
+
return_type = opts[:debug_return_type] || 'ConnectedUsersNumber200Response'
|
56
|
+
|
57
|
+
# auth_names
|
58
|
+
auth_names = opts[:debug_auth_names] || []
|
59
|
+
|
60
|
+
new_options = opts.merge(
|
61
|
+
:operation => :"StatisticsApi.connected_users_number",
|
62
|
+
:header_params => header_params,
|
63
|
+
:query_params => query_params,
|
64
|
+
:form_params => form_params,
|
65
|
+
:body => post_body,
|
66
|
+
:auth_names => auth_names,
|
67
|
+
:return_type => return_type
|
68
|
+
)
|
69
|
+
|
70
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
71
|
+
if @api_client.config.debugging
|
72
|
+
@api_client.config.logger.debug "API called: StatisticsApi#connected_users_number\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
73
|
+
end
|
74
|
+
return data, status_code, headers
|
75
|
+
end
|
76
|
+
|
77
|
+
# Number of outgoing s2s connections on the node.
|
78
|
+
# @param [Hash] opts the optional parameters
|
79
|
+
# @return [GetOutgoingS2sNumber200Response]
|
80
|
+
def get_outgoing_s2s_number(opts = {})
|
81
|
+
data, _status_code, _headers = get_outgoing_s2s_number_with_http_info(opts)
|
82
|
+
data
|
83
|
+
end
|
84
|
+
|
85
|
+
# Number of outgoing s2s connections on the node.
|
86
|
+
# @param [Hash] opts the optional parameters
|
87
|
+
# @return [Array<(GetOutgoingS2sNumber200Response, Integer, Hash)>] GetOutgoingS2sNumber200Response data, response status code and response headers
|
88
|
+
def get_outgoing_s2s_number_with_http_info(opts = {})
|
89
|
+
if @api_client.config.debugging
|
90
|
+
@api_client.config.logger.debug 'Calling API: StatisticsApi.get_outgoing_s2s_number ...'
|
91
|
+
end
|
92
|
+
# resource path
|
93
|
+
local_var_path = '/api/outgoing_s2s_number'
|
94
|
+
|
95
|
+
# query parameters
|
96
|
+
query_params = opts[:query_params] || {}
|
97
|
+
|
98
|
+
# header parameters
|
99
|
+
header_params = opts[:header_params] || {}
|
100
|
+
# HTTP header 'Accept' (if needed)
|
101
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
102
|
+
|
103
|
+
# form parameters
|
104
|
+
form_params = opts[:form_params] || {}
|
105
|
+
|
106
|
+
# http body (model)
|
107
|
+
post_body = opts[:debug_body]
|
108
|
+
|
109
|
+
# return_type
|
110
|
+
return_type = opts[:debug_return_type] || 'GetOutgoingS2sNumber200Response'
|
111
|
+
|
112
|
+
# auth_names
|
113
|
+
auth_names = opts[:debug_auth_names] || []
|
114
|
+
|
115
|
+
new_options = opts.merge(
|
116
|
+
:operation => :"StatisticsApi.get_outgoing_s2s_number",
|
117
|
+
:header_params => header_params,
|
118
|
+
:query_params => query_params,
|
119
|
+
:form_params => form_params,
|
120
|
+
:body => post_body,
|
121
|
+
:auth_names => auth_names,
|
122
|
+
:return_type => return_type
|
123
|
+
)
|
124
|
+
|
125
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
126
|
+
if @api_client.config.debugging
|
127
|
+
@api_client.config.logger.debug "API called: StatisticsApi#get_outgoing_s2s_number\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
128
|
+
end
|
129
|
+
return data, status_code, headers
|
130
|
+
end
|
131
|
+
|
132
|
+
# Get statistical value - registeredusers, onlineusers, onlineusersnode, uptimeseconds, processes.
|
133
|
+
# @param [Hash] opts the optional parameters
|
134
|
+
# @option opts [GetStatsRequest] :get_stats_request
|
135
|
+
# @return [GetStats200Response]
|
136
|
+
def get_stats(opts = {})
|
137
|
+
data, _status_code, _headers = get_stats_with_http_info(opts)
|
138
|
+
data
|
139
|
+
end
|
140
|
+
|
141
|
+
# Get statistical value - registeredusers, onlineusers, onlineusersnode, uptimeseconds, processes.
|
142
|
+
# @param [Hash] opts the optional parameters
|
143
|
+
# @option opts [GetStatsRequest] :get_stats_request
|
144
|
+
# @return [Array<(GetStats200Response, Integer, Hash)>] GetStats200Response data, response status code and response headers
|
145
|
+
def get_stats_with_http_info(opts = {})
|
146
|
+
if @api_client.config.debugging
|
147
|
+
@api_client.config.logger.debug 'Calling API: StatisticsApi.get_stats ...'
|
148
|
+
end
|
149
|
+
# resource path
|
150
|
+
local_var_path = '/api/stats'
|
151
|
+
|
152
|
+
# query parameters
|
153
|
+
query_params = opts[:query_params] || {}
|
154
|
+
|
155
|
+
# header parameters
|
156
|
+
header_params = opts[:header_params] || {}
|
157
|
+
# HTTP header 'Accept' (if needed)
|
158
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
159
|
+
# HTTP header 'Content-Type'
|
160
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
161
|
+
if !content_type.nil?
|
162
|
+
header_params['Content-Type'] = content_type
|
163
|
+
end
|
164
|
+
|
165
|
+
# form parameters
|
166
|
+
form_params = opts[:form_params] || {}
|
167
|
+
|
168
|
+
# http body (model)
|
169
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'get_stats_request'])
|
170
|
+
|
171
|
+
# return_type
|
172
|
+
return_type = opts[:debug_return_type] || 'GetStats200Response'
|
173
|
+
|
174
|
+
# auth_names
|
175
|
+
auth_names = opts[:debug_auth_names] || []
|
176
|
+
|
177
|
+
new_options = opts.merge(
|
178
|
+
:operation => :"StatisticsApi.get_stats",
|
179
|
+
:header_params => header_params,
|
180
|
+
:query_params => query_params,
|
181
|
+
:form_params => form_params,
|
182
|
+
:body => post_body,
|
183
|
+
:auth_names => auth_names,
|
184
|
+
:return_type => return_type
|
185
|
+
)
|
186
|
+
|
187
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
188
|
+
if @api_client.config.debugging
|
189
|
+
@api_client.config.logger.debug "API called: StatisticsApi#get_stats\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
190
|
+
end
|
191
|
+
return data, status_code, headers
|
192
|
+
end
|
193
|
+
|
194
|
+
# Get statistical value for this host - registeredusers, onlineusers.
|
195
|
+
# @param [Hash] opts the optional parameters
|
196
|
+
# @option opts [GetStatsHostRequest] :get_stats_host_request
|
197
|
+
# @return [GetStats200Response]
|
198
|
+
def get_stats_host(opts = {})
|
199
|
+
data, _status_code, _headers = get_stats_host_with_http_info(opts)
|
200
|
+
data
|
201
|
+
end
|
202
|
+
|
203
|
+
# Get statistical value for this host - registeredusers, onlineusers.
|
204
|
+
# @param [Hash] opts the optional parameters
|
205
|
+
# @option opts [GetStatsHostRequest] :get_stats_host_request
|
206
|
+
# @return [Array<(GetStats200Response, Integer, Hash)>] GetStats200Response data, response status code and response headers
|
207
|
+
def get_stats_host_with_http_info(opts = {})
|
208
|
+
if @api_client.config.debugging
|
209
|
+
@api_client.config.logger.debug 'Calling API: StatisticsApi.get_stats_host ...'
|
210
|
+
end
|
211
|
+
# resource path
|
212
|
+
local_var_path = '/api/stats_host'
|
213
|
+
|
214
|
+
# query parameters
|
215
|
+
query_params = opts[:query_params] || {}
|
216
|
+
|
217
|
+
# header parameters
|
218
|
+
header_params = opts[:header_params] || {}
|
219
|
+
# HTTP header 'Accept' (if needed)
|
220
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
221
|
+
# HTTP header 'Content-Type'
|
222
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
223
|
+
if !content_type.nil?
|
224
|
+
header_params['Content-Type'] = content_type
|
225
|
+
end
|
226
|
+
|
227
|
+
# form parameters
|
228
|
+
form_params = opts[:form_params] || {}
|
229
|
+
|
230
|
+
# http body (model)
|
231
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'get_stats_host_request'])
|
232
|
+
|
233
|
+
# return_type
|
234
|
+
return_type = opts[:debug_return_type] || 'GetStats200Response'
|
235
|
+
|
236
|
+
# auth_names
|
237
|
+
auth_names = opts[:debug_auth_names] || []
|
238
|
+
|
239
|
+
new_options = opts.merge(
|
240
|
+
:operation => :"StatisticsApi.get_stats_host",
|
241
|
+
:header_params => header_params,
|
242
|
+
:query_params => query_params,
|
243
|
+
:form_params => form_params,
|
244
|
+
:body => post_body,
|
245
|
+
:auth_names => auth_names,
|
246
|
+
:return_type => return_type
|
247
|
+
)
|
248
|
+
|
249
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
250
|
+
if @api_client.config.debugging
|
251
|
+
@api_client.config.logger.debug "API called: StatisticsApi#get_stats_host\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
252
|
+
end
|
253
|
+
return data, status_code, headers
|
254
|
+
end
|
255
|
+
|
256
|
+
# Number of logged users with a specific status.
|
257
|
+
# @param [Hash] opts the optional parameters
|
258
|
+
# @option opts [GetStatusListRequest] :get_status_list_request
|
259
|
+
# @return [GetStatusNum200Response]
|
260
|
+
def get_status_num(opts = {})
|
261
|
+
data, _status_code, _headers = get_status_num_with_http_info(opts)
|
262
|
+
data
|
263
|
+
end
|
264
|
+
|
265
|
+
# Number of logged users with a specific status.
|
266
|
+
# @param [Hash] opts the optional parameters
|
267
|
+
# @option opts [GetStatusListRequest] :get_status_list_request
|
268
|
+
# @return [Array<(GetStatusNum200Response, Integer, Hash)>] GetStatusNum200Response data, response status code and response headers
|
269
|
+
def get_status_num_with_http_info(opts = {})
|
270
|
+
if @api_client.config.debugging
|
271
|
+
@api_client.config.logger.debug 'Calling API: StatisticsApi.get_status_num ...'
|
272
|
+
end
|
273
|
+
# resource path
|
274
|
+
local_var_path = '/api/status_num'
|
275
|
+
|
276
|
+
# query parameters
|
277
|
+
query_params = opts[:query_params] || {}
|
278
|
+
|
279
|
+
# header parameters
|
280
|
+
header_params = opts[:header_params] || {}
|
281
|
+
# HTTP header 'Accept' (if needed)
|
282
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
283
|
+
# HTTP header 'Content-Type'
|
284
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
285
|
+
if !content_type.nil?
|
286
|
+
header_params['Content-Type'] = content_type
|
287
|
+
end
|
288
|
+
|
289
|
+
# form parameters
|
290
|
+
form_params = opts[:form_params] || {}
|
291
|
+
|
292
|
+
# http body (model)
|
293
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'get_status_list_request'])
|
294
|
+
|
295
|
+
# return_type
|
296
|
+
return_type = opts[:debug_return_type] || 'GetStatusNum200Response'
|
297
|
+
|
298
|
+
# auth_names
|
299
|
+
auth_names = opts[:debug_auth_names] || []
|
300
|
+
|
301
|
+
new_options = opts.merge(
|
302
|
+
:operation => :"StatisticsApi.get_status_num",
|
303
|
+
:header_params => header_params,
|
304
|
+
:query_params => query_params,
|
305
|
+
:form_params => form_params,
|
306
|
+
:body => post_body,
|
307
|
+
:auth_names => auth_names,
|
308
|
+
:return_type => return_type
|
309
|
+
)
|
310
|
+
|
311
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
312
|
+
if @api_client.config.debugging
|
313
|
+
@api_client.config.logger.debug "API called: StatisticsApi#get_status_num\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
314
|
+
end
|
315
|
+
return data, status_code, headers
|
316
|
+
end
|
317
|
+
|
318
|
+
# Number of logged users with a specific status in a host.
|
319
|
+
# @param [Hash] opts the optional parameters
|
320
|
+
# @option opts [GetStatusListHostRequest] :get_status_list_host_request
|
321
|
+
# @return [GetStatusNum200Response]
|
322
|
+
def get_status_num_host(opts = {})
|
323
|
+
data, _status_code, _headers = get_status_num_host_with_http_info(opts)
|
324
|
+
data
|
325
|
+
end
|
326
|
+
|
327
|
+
# Number of logged users with a specific status in a host.
|
328
|
+
# @param [Hash] opts the optional parameters
|
329
|
+
# @option opts [GetStatusListHostRequest] :get_status_list_host_request
|
330
|
+
# @return [Array<(GetStatusNum200Response, Integer, Hash)>] GetStatusNum200Response data, response status code and response headers
|
331
|
+
def get_status_num_host_with_http_info(opts = {})
|
332
|
+
if @api_client.config.debugging
|
333
|
+
@api_client.config.logger.debug 'Calling API: StatisticsApi.get_status_num_host ...'
|
334
|
+
end
|
335
|
+
# resource path
|
336
|
+
local_var_path = '/api/status_num_host'
|
337
|
+
|
338
|
+
# query parameters
|
339
|
+
query_params = opts[:query_params] || {}
|
340
|
+
|
341
|
+
# header parameters
|
342
|
+
header_params = opts[:header_params] || {}
|
343
|
+
# HTTP header 'Accept' (if needed)
|
344
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
345
|
+
# HTTP header 'Content-Type'
|
346
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
347
|
+
if !content_type.nil?
|
348
|
+
header_params['Content-Type'] = content_type
|
349
|
+
end
|
350
|
+
|
351
|
+
# form parameters
|
352
|
+
form_params = opts[:form_params] || {}
|
353
|
+
|
354
|
+
# http body (model)
|
355
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'get_status_list_host_request'])
|
356
|
+
|
357
|
+
# return_type
|
358
|
+
return_type = opts[:debug_return_type] || 'GetStatusNum200Response'
|
359
|
+
|
360
|
+
# auth_names
|
361
|
+
auth_names = opts[:debug_auth_names] || []
|
362
|
+
|
363
|
+
new_options = opts.merge(
|
364
|
+
:operation => :"StatisticsApi.get_status_num_host",
|
365
|
+
:header_params => header_params,
|
366
|
+
:query_params => query_params,
|
367
|
+
:form_params => form_params,
|
368
|
+
:body => post_body,
|
369
|
+
:auth_names => auth_names,
|
370
|
+
:return_type => return_type
|
371
|
+
)
|
372
|
+
|
373
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
374
|
+
if @api_client.config.debugging
|
375
|
+
@api_client.config.logger.debug "API called: StatisticsApi#get_status_num_host\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
376
|
+
end
|
377
|
+
return data, status_code, headers
|
378
|
+
end
|
379
|
+
|
380
|
+
# Number of incoming s2s connections on the node.
|
381
|
+
# @param [Hash] opts the optional parameters
|
382
|
+
# @return [IncomingS2sNumber200Response]
|
383
|
+
def incoming_s2s_number(opts = {})
|
384
|
+
data, _status_code, _headers = incoming_s2s_number_with_http_info(opts)
|
385
|
+
data
|
386
|
+
end
|
387
|
+
|
388
|
+
# Number of incoming s2s connections on the node.
|
389
|
+
# @param [Hash] opts the optional parameters
|
390
|
+
# @return [Array<(IncomingS2sNumber200Response, Integer, Hash)>] IncomingS2sNumber200Response data, response status code and response headers
|
391
|
+
def incoming_s2s_number_with_http_info(opts = {})
|
392
|
+
if @api_client.config.debugging
|
393
|
+
@api_client.config.logger.debug 'Calling API: StatisticsApi.incoming_s2s_number ...'
|
394
|
+
end
|
395
|
+
# resource path
|
396
|
+
local_var_path = '/api/incoming_s2s_number'
|
397
|
+
|
398
|
+
# query parameters
|
399
|
+
query_params = opts[:query_params] || {}
|
400
|
+
|
401
|
+
# header parameters
|
402
|
+
header_params = opts[:header_params] || {}
|
403
|
+
# HTTP header 'Accept' (if needed)
|
404
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
405
|
+
|
406
|
+
# form parameters
|
407
|
+
form_params = opts[:form_params] || {}
|
408
|
+
|
409
|
+
# http body (model)
|
410
|
+
post_body = opts[:debug_body]
|
411
|
+
|
412
|
+
# return_type
|
413
|
+
return_type = opts[:debug_return_type] || 'IncomingS2sNumber200Response'
|
414
|
+
|
415
|
+
# auth_names
|
416
|
+
auth_names = opts[:debug_auth_names] || []
|
417
|
+
|
418
|
+
new_options = opts.merge(
|
419
|
+
:operation => :"StatisticsApi.incoming_s2s_number",
|
420
|
+
:header_params => header_params,
|
421
|
+
:query_params => query_params,
|
422
|
+
:form_params => form_params,
|
423
|
+
:body => post_body,
|
424
|
+
:auth_names => auth_names,
|
425
|
+
:return_type => return_type
|
426
|
+
)
|
427
|
+
|
428
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
429
|
+
if @api_client.config.debugging
|
430
|
+
@api_client.config.logger.debug "API called: StatisticsApi#incoming_s2s_number\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
431
|
+
end
|
432
|
+
return data, status_code, headers
|
433
|
+
end
|
434
|
+
end
|
435
|
+
end
|