ejabberd_http_client 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +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,986 @@
|
|
|
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 MucRoomApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Change an option in a MUC room.
|
|
23
|
+
# @param change_room_option_request [ChangeRoomOptionRequest]
|
|
24
|
+
# @param [Hash] opts the optional parameters
|
|
25
|
+
# @return [nil]
|
|
26
|
+
def change_room_option(change_room_option_request, opts = {})
|
|
27
|
+
change_room_option_with_http_info(change_room_option_request, opts)
|
|
28
|
+
nil
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
# Change an option in a MUC room.
|
|
32
|
+
# @param change_room_option_request [ChangeRoomOptionRequest]
|
|
33
|
+
# @param [Hash] opts the optional parameters
|
|
34
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
35
|
+
def change_room_option_with_http_info(change_room_option_request, opts = {})
|
|
36
|
+
if @api_client.config.debugging
|
|
37
|
+
@api_client.config.logger.debug 'Calling API: MucRoomApi.change_room_option ...'
|
|
38
|
+
end
|
|
39
|
+
# verify the required parameter 'change_room_option_request' is set
|
|
40
|
+
if @api_client.config.client_side_validation && change_room_option_request.nil?
|
|
41
|
+
fail ArgumentError, "Missing the required parameter 'change_room_option_request' when calling MucRoomApi.change_room_option"
|
|
42
|
+
end
|
|
43
|
+
# resource path
|
|
44
|
+
local_var_path = '/api/change_room_option'
|
|
45
|
+
|
|
46
|
+
# query parameters
|
|
47
|
+
query_params = opts[:query_params] || {}
|
|
48
|
+
|
|
49
|
+
# header parameters
|
|
50
|
+
header_params = opts[:header_params] || {}
|
|
51
|
+
# HTTP header 'Content-Type'
|
|
52
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
53
|
+
if !content_type.nil?
|
|
54
|
+
header_params['Content-Type'] = content_type
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
# form parameters
|
|
58
|
+
form_params = opts[:form_params] || {}
|
|
59
|
+
|
|
60
|
+
# http body (model)
|
|
61
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(change_room_option_request)
|
|
62
|
+
|
|
63
|
+
# return_type
|
|
64
|
+
return_type = opts[:debug_return_type]
|
|
65
|
+
|
|
66
|
+
# auth_names
|
|
67
|
+
auth_names = opts[:debug_auth_names] || []
|
|
68
|
+
|
|
69
|
+
new_options = opts.merge(
|
|
70
|
+
:operation => :"MucRoomApi.change_room_option",
|
|
71
|
+
:header_params => header_params,
|
|
72
|
+
:query_params => query_params,
|
|
73
|
+
:form_params => form_params,
|
|
74
|
+
:body => post_body,
|
|
75
|
+
:auth_names => auth_names,
|
|
76
|
+
:return_type => return_type
|
|
77
|
+
)
|
|
78
|
+
|
|
79
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
80
|
+
if @api_client.config.debugging
|
|
81
|
+
@api_client.config.logger.debug "API called: MucRoomApi#change_room_option\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
82
|
+
end
|
|
83
|
+
return data, status_code, headers
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# Create a MUC room using name@service in the given host.
|
|
87
|
+
# @param create_room_request [CreateRoomRequest]
|
|
88
|
+
# @param [Hash] opts the optional parameters
|
|
89
|
+
# @return [nil]
|
|
90
|
+
def create_room(create_room_request, opts = {})
|
|
91
|
+
create_room_with_http_info(create_room_request, opts)
|
|
92
|
+
nil
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
# Create a MUC room using name@service in the given host.
|
|
96
|
+
# @param create_room_request [CreateRoomRequest]
|
|
97
|
+
# @param [Hash] opts the optional parameters
|
|
98
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
99
|
+
def create_room_with_http_info(create_room_request, opts = {})
|
|
100
|
+
if @api_client.config.debugging
|
|
101
|
+
@api_client.config.logger.debug 'Calling API: MucRoomApi.create_room ...'
|
|
102
|
+
end
|
|
103
|
+
# verify the required parameter 'create_room_request' is set
|
|
104
|
+
if @api_client.config.client_side_validation && create_room_request.nil?
|
|
105
|
+
fail ArgumentError, "Missing the required parameter 'create_room_request' when calling MucRoomApi.create_room"
|
|
106
|
+
end
|
|
107
|
+
# resource path
|
|
108
|
+
local_var_path = '/api/create_room'
|
|
109
|
+
|
|
110
|
+
# query parameters
|
|
111
|
+
query_params = opts[:query_params] || {}
|
|
112
|
+
|
|
113
|
+
# header parameters
|
|
114
|
+
header_params = opts[:header_params] || {}
|
|
115
|
+
# HTTP header 'Content-Type'
|
|
116
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
117
|
+
if !content_type.nil?
|
|
118
|
+
header_params['Content-Type'] = content_type
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
# form parameters
|
|
122
|
+
form_params = opts[:form_params] || {}
|
|
123
|
+
|
|
124
|
+
# http body (model)
|
|
125
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_room_request)
|
|
126
|
+
|
|
127
|
+
# return_type
|
|
128
|
+
return_type = opts[:debug_return_type]
|
|
129
|
+
|
|
130
|
+
# auth_names
|
|
131
|
+
auth_names = opts[:debug_auth_names] || []
|
|
132
|
+
|
|
133
|
+
new_options = opts.merge(
|
|
134
|
+
:operation => :"MucRoomApi.create_room",
|
|
135
|
+
:header_params => header_params,
|
|
136
|
+
:query_params => query_params,
|
|
137
|
+
:form_params => form_params,
|
|
138
|
+
:body => post_body,
|
|
139
|
+
:auth_names => auth_names,
|
|
140
|
+
:return_type => return_type
|
|
141
|
+
)
|
|
142
|
+
|
|
143
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
144
|
+
if @api_client.config.debugging
|
|
145
|
+
@api_client.config.logger.debug "API called: MucRoomApi#create_room\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
146
|
+
end
|
|
147
|
+
return data, status_code, headers
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
# Create a MUC room using name@service in the given host with specific options.
|
|
151
|
+
# @param create_room_with_options_request [CreateRoomWithOptionsRequest]
|
|
152
|
+
# @param [Hash] opts the optional parameters
|
|
153
|
+
# @return [nil]
|
|
154
|
+
def create_room_with_options(create_room_with_options_request, opts = {})
|
|
155
|
+
create_room_with_options_with_http_info(create_room_with_options_request, opts)
|
|
156
|
+
nil
|
|
157
|
+
end
|
|
158
|
+
|
|
159
|
+
# Create a MUC room using name@service in the given host with specific options.
|
|
160
|
+
# @param create_room_with_options_request [CreateRoomWithOptionsRequest]
|
|
161
|
+
# @param [Hash] opts the optional parameters
|
|
162
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
163
|
+
def create_room_with_options_with_http_info(create_room_with_options_request, opts = {})
|
|
164
|
+
if @api_client.config.debugging
|
|
165
|
+
@api_client.config.logger.debug 'Calling API: MucRoomApi.create_room_with_options ...'
|
|
166
|
+
end
|
|
167
|
+
# verify the required parameter 'create_room_with_options_request' is set
|
|
168
|
+
if @api_client.config.client_side_validation && create_room_with_options_request.nil?
|
|
169
|
+
fail ArgumentError, "Missing the required parameter 'create_room_with_options_request' when calling MucRoomApi.create_room_with_options"
|
|
170
|
+
end
|
|
171
|
+
# resource path
|
|
172
|
+
local_var_path = '/api/create_room_with_opts'
|
|
173
|
+
|
|
174
|
+
# query parameters
|
|
175
|
+
query_params = opts[:query_params] || {}
|
|
176
|
+
|
|
177
|
+
# header parameters
|
|
178
|
+
header_params = opts[:header_params] || {}
|
|
179
|
+
# HTTP header 'Content-Type'
|
|
180
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
181
|
+
if !content_type.nil?
|
|
182
|
+
header_params['Content-Type'] = content_type
|
|
183
|
+
end
|
|
184
|
+
|
|
185
|
+
# form parameters
|
|
186
|
+
form_params = opts[:form_params] || {}
|
|
187
|
+
|
|
188
|
+
# http body (model)
|
|
189
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_room_with_options_request)
|
|
190
|
+
|
|
191
|
+
# return_type
|
|
192
|
+
return_type = opts[:debug_return_type]
|
|
193
|
+
|
|
194
|
+
# auth_names
|
|
195
|
+
auth_names = opts[:debug_auth_names] || []
|
|
196
|
+
|
|
197
|
+
new_options = opts.merge(
|
|
198
|
+
:operation => :"MucRoomApi.create_room_with_options",
|
|
199
|
+
:header_params => header_params,
|
|
200
|
+
:query_params => query_params,
|
|
201
|
+
:form_params => form_params,
|
|
202
|
+
:body => post_body,
|
|
203
|
+
:auth_names => auth_names,
|
|
204
|
+
:return_type => return_type
|
|
205
|
+
)
|
|
206
|
+
|
|
207
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
208
|
+
if @api_client.config.debugging
|
|
209
|
+
@api_client.config.logger.debug "API called: MucRoomApi#create_room_with_options\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
210
|
+
end
|
|
211
|
+
return data, status_code, headers
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
# Get affiliation of a user in MUC room.
|
|
215
|
+
# @param get_room_affiliation_request [GetRoomAffiliationRequest]
|
|
216
|
+
# @param [Hash] opts the optional parameters
|
|
217
|
+
# @return [GetRoomAffiliation200Response]
|
|
218
|
+
def get_room_affiliation(get_room_affiliation_request, opts = {})
|
|
219
|
+
data, _status_code, _headers = get_room_affiliation_with_http_info(get_room_affiliation_request, opts)
|
|
220
|
+
data
|
|
221
|
+
end
|
|
222
|
+
|
|
223
|
+
# Get affiliation of a user in MUC room.
|
|
224
|
+
# @param get_room_affiliation_request [GetRoomAffiliationRequest]
|
|
225
|
+
# @param [Hash] opts the optional parameters
|
|
226
|
+
# @return [Array<(GetRoomAffiliation200Response, Integer, Hash)>] GetRoomAffiliation200Response data, response status code and response headers
|
|
227
|
+
def get_room_affiliation_with_http_info(get_room_affiliation_request, opts = {})
|
|
228
|
+
if @api_client.config.debugging
|
|
229
|
+
@api_client.config.logger.debug 'Calling API: MucRoomApi.get_room_affiliation ...'
|
|
230
|
+
end
|
|
231
|
+
# verify the required parameter 'get_room_affiliation_request' is set
|
|
232
|
+
if @api_client.config.client_side_validation && get_room_affiliation_request.nil?
|
|
233
|
+
fail ArgumentError, "Missing the required parameter 'get_room_affiliation_request' when calling MucRoomApi.get_room_affiliation"
|
|
234
|
+
end
|
|
235
|
+
# resource path
|
|
236
|
+
local_var_path = '/api/get_room_affiliation'
|
|
237
|
+
|
|
238
|
+
# query parameters
|
|
239
|
+
query_params = opts[:query_params] || {}
|
|
240
|
+
|
|
241
|
+
# header parameters
|
|
242
|
+
header_params = opts[:header_params] || {}
|
|
243
|
+
# HTTP header 'Accept' (if needed)
|
|
244
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
245
|
+
# HTTP header 'Content-Type'
|
|
246
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
247
|
+
if !content_type.nil?
|
|
248
|
+
header_params['Content-Type'] = content_type
|
|
249
|
+
end
|
|
250
|
+
|
|
251
|
+
# form parameters
|
|
252
|
+
form_params = opts[:form_params] || {}
|
|
253
|
+
|
|
254
|
+
# http body (model)
|
|
255
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(get_room_affiliation_request)
|
|
256
|
+
|
|
257
|
+
# return_type
|
|
258
|
+
return_type = opts[:debug_return_type] || 'GetRoomAffiliation200Response'
|
|
259
|
+
|
|
260
|
+
# auth_names
|
|
261
|
+
auth_names = opts[:debug_auth_names] || []
|
|
262
|
+
|
|
263
|
+
new_options = opts.merge(
|
|
264
|
+
:operation => :"MucRoomApi.get_room_affiliation",
|
|
265
|
+
:header_params => header_params,
|
|
266
|
+
:query_params => query_params,
|
|
267
|
+
:form_params => form_params,
|
|
268
|
+
:body => post_body,
|
|
269
|
+
:auth_names => auth_names,
|
|
270
|
+
:return_type => return_type
|
|
271
|
+
)
|
|
272
|
+
|
|
273
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
274
|
+
if @api_client.config.debugging
|
|
275
|
+
@api_client.config.logger.debug "API called: MucRoomApi#get_room_affiliation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
276
|
+
end
|
|
277
|
+
return data, status_code, headers
|
|
278
|
+
end
|
|
279
|
+
|
|
280
|
+
# Get the list of affiliations of a MUC room.
|
|
281
|
+
# @param get_room_affiliations_request [GetRoomAffiliationsRequest]
|
|
282
|
+
# @param [Hash] opts the optional parameters
|
|
283
|
+
# @return [Array<GetRoomAffiliations200ResponseInner>]
|
|
284
|
+
def get_room_affiliations(get_room_affiliations_request, opts = {})
|
|
285
|
+
data, _status_code, _headers = get_room_affiliations_with_http_info(get_room_affiliations_request, opts)
|
|
286
|
+
data
|
|
287
|
+
end
|
|
288
|
+
|
|
289
|
+
# Get the list of affiliations of a MUC room.
|
|
290
|
+
# @param get_room_affiliations_request [GetRoomAffiliationsRequest]
|
|
291
|
+
# @param [Hash] opts the optional parameters
|
|
292
|
+
# @return [Array<(Array<GetRoomAffiliations200ResponseInner>, Integer, Hash)>] Array<GetRoomAffiliations200ResponseInner> data, response status code and response headers
|
|
293
|
+
def get_room_affiliations_with_http_info(get_room_affiliations_request, opts = {})
|
|
294
|
+
if @api_client.config.debugging
|
|
295
|
+
@api_client.config.logger.debug 'Calling API: MucRoomApi.get_room_affiliations ...'
|
|
296
|
+
end
|
|
297
|
+
# verify the required parameter 'get_room_affiliations_request' is set
|
|
298
|
+
if @api_client.config.client_side_validation && get_room_affiliations_request.nil?
|
|
299
|
+
fail ArgumentError, "Missing the required parameter 'get_room_affiliations_request' when calling MucRoomApi.get_room_affiliations"
|
|
300
|
+
end
|
|
301
|
+
# resource path
|
|
302
|
+
local_var_path = '/api/get_room_affiliations'
|
|
303
|
+
|
|
304
|
+
# query parameters
|
|
305
|
+
query_params = opts[:query_params] || {}
|
|
306
|
+
|
|
307
|
+
# header parameters
|
|
308
|
+
header_params = opts[:header_params] || {}
|
|
309
|
+
# HTTP header 'Accept' (if needed)
|
|
310
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
311
|
+
# HTTP header 'Content-Type'
|
|
312
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
313
|
+
if !content_type.nil?
|
|
314
|
+
header_params['Content-Type'] = content_type
|
|
315
|
+
end
|
|
316
|
+
|
|
317
|
+
# form parameters
|
|
318
|
+
form_params = opts[:form_params] || {}
|
|
319
|
+
|
|
320
|
+
# http body (model)
|
|
321
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(get_room_affiliations_request)
|
|
322
|
+
|
|
323
|
+
# return_type
|
|
324
|
+
return_type = opts[:debug_return_type] || 'Array<GetRoomAffiliations200ResponseInner>'
|
|
325
|
+
|
|
326
|
+
# auth_names
|
|
327
|
+
auth_names = opts[:debug_auth_names] || []
|
|
328
|
+
|
|
329
|
+
new_options = opts.merge(
|
|
330
|
+
:operation => :"MucRoomApi.get_room_affiliations",
|
|
331
|
+
:header_params => header_params,
|
|
332
|
+
:query_params => query_params,
|
|
333
|
+
:form_params => form_params,
|
|
334
|
+
:body => post_body,
|
|
335
|
+
:auth_names => auth_names,
|
|
336
|
+
:return_type => return_type
|
|
337
|
+
)
|
|
338
|
+
|
|
339
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
340
|
+
if @api_client.config.debugging
|
|
341
|
+
@api_client.config.logger.debug "API called: MucRoomApi#get_room_affiliations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
342
|
+
end
|
|
343
|
+
return data, status_code, headers
|
|
344
|
+
end
|
|
345
|
+
|
|
346
|
+
# Get history of messages stored inside MUC room state.
|
|
347
|
+
# @param get_room_affiliations_request [GetRoomAffiliationsRequest]
|
|
348
|
+
# @param [Hash] opts the optional parameters
|
|
349
|
+
# @return [Array<GetRoomHistory200ResponseInner>]
|
|
350
|
+
def get_room_history(get_room_affiliations_request, opts = {})
|
|
351
|
+
data, _status_code, _headers = get_room_history_with_http_info(get_room_affiliations_request, opts)
|
|
352
|
+
data
|
|
353
|
+
end
|
|
354
|
+
|
|
355
|
+
# Get history of messages stored inside MUC room state.
|
|
356
|
+
# @param get_room_affiliations_request [GetRoomAffiliationsRequest]
|
|
357
|
+
# @param [Hash] opts the optional parameters
|
|
358
|
+
# @return [Array<(Array<GetRoomHistory200ResponseInner>, Integer, Hash)>] Array<GetRoomHistory200ResponseInner> data, response status code and response headers
|
|
359
|
+
def get_room_history_with_http_info(get_room_affiliations_request, opts = {})
|
|
360
|
+
if @api_client.config.debugging
|
|
361
|
+
@api_client.config.logger.debug 'Calling API: MucRoomApi.get_room_history ...'
|
|
362
|
+
end
|
|
363
|
+
# verify the required parameter 'get_room_affiliations_request' is set
|
|
364
|
+
if @api_client.config.client_side_validation && get_room_affiliations_request.nil?
|
|
365
|
+
fail ArgumentError, "Missing the required parameter 'get_room_affiliations_request' when calling MucRoomApi.get_room_history"
|
|
366
|
+
end
|
|
367
|
+
# resource path
|
|
368
|
+
local_var_path = '/api/get_room_history'
|
|
369
|
+
|
|
370
|
+
# query parameters
|
|
371
|
+
query_params = opts[:query_params] || {}
|
|
372
|
+
|
|
373
|
+
# header parameters
|
|
374
|
+
header_params = opts[:header_params] || {}
|
|
375
|
+
# HTTP header 'Accept' (if needed)
|
|
376
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
377
|
+
# HTTP header 'Content-Type'
|
|
378
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
379
|
+
if !content_type.nil?
|
|
380
|
+
header_params['Content-Type'] = content_type
|
|
381
|
+
end
|
|
382
|
+
|
|
383
|
+
# form parameters
|
|
384
|
+
form_params = opts[:form_params] || {}
|
|
385
|
+
|
|
386
|
+
# http body (model)
|
|
387
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(get_room_affiliations_request)
|
|
388
|
+
|
|
389
|
+
# return_type
|
|
390
|
+
return_type = opts[:debug_return_type] || 'Array<GetRoomHistory200ResponseInner>'
|
|
391
|
+
|
|
392
|
+
# auth_names
|
|
393
|
+
auth_names = opts[:debug_auth_names] || []
|
|
394
|
+
|
|
395
|
+
new_options = opts.merge(
|
|
396
|
+
:operation => :"MucRoomApi.get_room_history",
|
|
397
|
+
:header_params => header_params,
|
|
398
|
+
:query_params => query_params,
|
|
399
|
+
:form_params => form_params,
|
|
400
|
+
:body => post_body,
|
|
401
|
+
:auth_names => auth_names,
|
|
402
|
+
:return_type => return_type
|
|
403
|
+
)
|
|
404
|
+
|
|
405
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
406
|
+
if @api_client.config.debugging
|
|
407
|
+
@api_client.config.logger.debug "API called: MucRoomApi#get_room_history\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
408
|
+
end
|
|
409
|
+
return data, status_code, headers
|
|
410
|
+
end
|
|
411
|
+
|
|
412
|
+
# Get the list of occupants of a MUC room.
|
|
413
|
+
# @param get_room_affiliations_request [GetRoomAffiliationsRequest]
|
|
414
|
+
# @param [Hash] opts the optional parameters
|
|
415
|
+
# @return [Array<GetRoomOccupants200ResponseInner>]
|
|
416
|
+
def get_room_occupants(get_room_affiliations_request, opts = {})
|
|
417
|
+
data, _status_code, _headers = get_room_occupants_with_http_info(get_room_affiliations_request, opts)
|
|
418
|
+
data
|
|
419
|
+
end
|
|
420
|
+
|
|
421
|
+
# Get the list of occupants of a MUC room.
|
|
422
|
+
# @param get_room_affiliations_request [GetRoomAffiliationsRequest]
|
|
423
|
+
# @param [Hash] opts the optional parameters
|
|
424
|
+
# @return [Array<(Array<GetRoomOccupants200ResponseInner>, Integer, Hash)>] Array<GetRoomOccupants200ResponseInner> data, response status code and response headers
|
|
425
|
+
def get_room_occupants_with_http_info(get_room_affiliations_request, opts = {})
|
|
426
|
+
if @api_client.config.debugging
|
|
427
|
+
@api_client.config.logger.debug 'Calling API: MucRoomApi.get_room_occupants ...'
|
|
428
|
+
end
|
|
429
|
+
# verify the required parameter 'get_room_affiliations_request' is set
|
|
430
|
+
if @api_client.config.client_side_validation && get_room_affiliations_request.nil?
|
|
431
|
+
fail ArgumentError, "Missing the required parameter 'get_room_affiliations_request' when calling MucRoomApi.get_room_occupants"
|
|
432
|
+
end
|
|
433
|
+
# resource path
|
|
434
|
+
local_var_path = '/api/get_room_occupants'
|
|
435
|
+
|
|
436
|
+
# query parameters
|
|
437
|
+
query_params = opts[:query_params] || {}
|
|
438
|
+
|
|
439
|
+
# header parameters
|
|
440
|
+
header_params = opts[:header_params] || {}
|
|
441
|
+
# HTTP header 'Accept' (if needed)
|
|
442
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
443
|
+
# HTTP header 'Content-Type'
|
|
444
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
445
|
+
if !content_type.nil?
|
|
446
|
+
header_params['Content-Type'] = content_type
|
|
447
|
+
end
|
|
448
|
+
|
|
449
|
+
# form parameters
|
|
450
|
+
form_params = opts[:form_params] || {}
|
|
451
|
+
|
|
452
|
+
# http body (model)
|
|
453
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(get_room_affiliations_request)
|
|
454
|
+
|
|
455
|
+
# return_type
|
|
456
|
+
return_type = opts[:debug_return_type] || 'Array<GetRoomOccupants200ResponseInner>'
|
|
457
|
+
|
|
458
|
+
# auth_names
|
|
459
|
+
auth_names = opts[:debug_auth_names] || []
|
|
460
|
+
|
|
461
|
+
new_options = opts.merge(
|
|
462
|
+
:operation => :"MucRoomApi.get_room_occupants",
|
|
463
|
+
:header_params => header_params,
|
|
464
|
+
:query_params => query_params,
|
|
465
|
+
:form_params => form_params,
|
|
466
|
+
:body => post_body,
|
|
467
|
+
:auth_names => auth_names,
|
|
468
|
+
:return_type => return_type
|
|
469
|
+
)
|
|
470
|
+
|
|
471
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
472
|
+
if @api_client.config.debugging
|
|
473
|
+
@api_client.config.logger.debug "API called: MucRoomApi#get_room_occupants\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
474
|
+
end
|
|
475
|
+
return data, status_code, headers
|
|
476
|
+
end
|
|
477
|
+
|
|
478
|
+
# Get the number of occupants of a MUC room.
|
|
479
|
+
# @param get_room_affiliations_request [GetRoomAffiliationsRequest]
|
|
480
|
+
# @param [Hash] opts the optional parameters
|
|
481
|
+
# @return [GetRoomOccupantsNumber200Response]
|
|
482
|
+
def get_room_occupants_number(get_room_affiliations_request, opts = {})
|
|
483
|
+
data, _status_code, _headers = get_room_occupants_number_with_http_info(get_room_affiliations_request, opts)
|
|
484
|
+
data
|
|
485
|
+
end
|
|
486
|
+
|
|
487
|
+
# Get the number of occupants of a MUC room.
|
|
488
|
+
# @param get_room_affiliations_request [GetRoomAffiliationsRequest]
|
|
489
|
+
# @param [Hash] opts the optional parameters
|
|
490
|
+
# @return [Array<(GetRoomOccupantsNumber200Response, Integer, Hash)>] GetRoomOccupantsNumber200Response data, response status code and response headers
|
|
491
|
+
def get_room_occupants_number_with_http_info(get_room_affiliations_request, opts = {})
|
|
492
|
+
if @api_client.config.debugging
|
|
493
|
+
@api_client.config.logger.debug 'Calling API: MucRoomApi.get_room_occupants_number ...'
|
|
494
|
+
end
|
|
495
|
+
# verify the required parameter 'get_room_affiliations_request' is set
|
|
496
|
+
if @api_client.config.client_side_validation && get_room_affiliations_request.nil?
|
|
497
|
+
fail ArgumentError, "Missing the required parameter 'get_room_affiliations_request' when calling MucRoomApi.get_room_occupants_number"
|
|
498
|
+
end
|
|
499
|
+
# resource path
|
|
500
|
+
local_var_path = '/api/get_room_occupants_number'
|
|
501
|
+
|
|
502
|
+
# query parameters
|
|
503
|
+
query_params = opts[:query_params] || {}
|
|
504
|
+
|
|
505
|
+
# header parameters
|
|
506
|
+
header_params = opts[:header_params] || {}
|
|
507
|
+
# HTTP header 'Accept' (if needed)
|
|
508
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
509
|
+
# HTTP header 'Content-Type'
|
|
510
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
511
|
+
if !content_type.nil?
|
|
512
|
+
header_params['Content-Type'] = content_type
|
|
513
|
+
end
|
|
514
|
+
|
|
515
|
+
# form parameters
|
|
516
|
+
form_params = opts[:form_params] || {}
|
|
517
|
+
|
|
518
|
+
# http body (model)
|
|
519
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(get_room_affiliations_request)
|
|
520
|
+
|
|
521
|
+
# return_type
|
|
522
|
+
return_type = opts[:debug_return_type] || 'GetRoomOccupantsNumber200Response'
|
|
523
|
+
|
|
524
|
+
# auth_names
|
|
525
|
+
auth_names = opts[:debug_auth_names] || []
|
|
526
|
+
|
|
527
|
+
new_options = opts.merge(
|
|
528
|
+
:operation => :"MucRoomApi.get_room_occupants_number",
|
|
529
|
+
:header_params => header_params,
|
|
530
|
+
:query_params => query_params,
|
|
531
|
+
:form_params => form_params,
|
|
532
|
+
:body => post_body,
|
|
533
|
+
:auth_names => auth_names,
|
|
534
|
+
:return_type => return_type
|
|
535
|
+
)
|
|
536
|
+
|
|
537
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
538
|
+
if @api_client.config.debugging
|
|
539
|
+
@api_client.config.logger.debug "API called: MucRoomApi#get_room_occupants_number\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
540
|
+
end
|
|
541
|
+
return data, status_code, headers
|
|
542
|
+
end
|
|
543
|
+
|
|
544
|
+
# Get options from a MUC room.
|
|
545
|
+
# @param get_room_affiliations_request [GetRoomAffiliationsRequest]
|
|
546
|
+
# @param [Hash] opts the optional parameters
|
|
547
|
+
# @return [Array<GetRoomOptions200ResponseInner>]
|
|
548
|
+
def get_room_options(get_room_affiliations_request, opts = {})
|
|
549
|
+
data, _status_code, _headers = get_room_options_with_http_info(get_room_affiliations_request, opts)
|
|
550
|
+
data
|
|
551
|
+
end
|
|
552
|
+
|
|
553
|
+
# Get options from a MUC room.
|
|
554
|
+
# @param get_room_affiliations_request [GetRoomAffiliationsRequest]
|
|
555
|
+
# @param [Hash] opts the optional parameters
|
|
556
|
+
# @return [Array<(Array<GetRoomOptions200ResponseInner>, Integer, Hash)>] Array<GetRoomOptions200ResponseInner> data, response status code and response headers
|
|
557
|
+
def get_room_options_with_http_info(get_room_affiliations_request, opts = {})
|
|
558
|
+
if @api_client.config.debugging
|
|
559
|
+
@api_client.config.logger.debug 'Calling API: MucRoomApi.get_room_options ...'
|
|
560
|
+
end
|
|
561
|
+
# verify the required parameter 'get_room_affiliations_request' is set
|
|
562
|
+
if @api_client.config.client_side_validation && get_room_affiliations_request.nil?
|
|
563
|
+
fail ArgumentError, "Missing the required parameter 'get_room_affiliations_request' when calling MucRoomApi.get_room_options"
|
|
564
|
+
end
|
|
565
|
+
# resource path
|
|
566
|
+
local_var_path = '/api/get_room_options'
|
|
567
|
+
|
|
568
|
+
# query parameters
|
|
569
|
+
query_params = opts[:query_params] || {}
|
|
570
|
+
|
|
571
|
+
# header parameters
|
|
572
|
+
header_params = opts[:header_params] || {}
|
|
573
|
+
# HTTP header 'Accept' (if needed)
|
|
574
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
575
|
+
# HTTP header 'Content-Type'
|
|
576
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
577
|
+
if !content_type.nil?
|
|
578
|
+
header_params['Content-Type'] = content_type
|
|
579
|
+
end
|
|
580
|
+
|
|
581
|
+
# form parameters
|
|
582
|
+
form_params = opts[:form_params] || {}
|
|
583
|
+
|
|
584
|
+
# http body (model)
|
|
585
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(get_room_affiliations_request)
|
|
586
|
+
|
|
587
|
+
# return_type
|
|
588
|
+
return_type = opts[:debug_return_type] || 'Array<GetRoomOptions200ResponseInner>'
|
|
589
|
+
|
|
590
|
+
# auth_names
|
|
591
|
+
auth_names = opts[:debug_auth_names] || []
|
|
592
|
+
|
|
593
|
+
new_options = opts.merge(
|
|
594
|
+
:operation => :"MucRoomApi.get_room_options",
|
|
595
|
+
:header_params => header_params,
|
|
596
|
+
:query_params => query_params,
|
|
597
|
+
:form_params => form_params,
|
|
598
|
+
:body => post_body,
|
|
599
|
+
:auth_names => auth_names,
|
|
600
|
+
:return_type => return_type
|
|
601
|
+
)
|
|
602
|
+
|
|
603
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
604
|
+
if @api_client.config.debugging
|
|
605
|
+
@api_client.config.logger.debug "API called: MucRoomApi#get_room_options\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
606
|
+
end
|
|
607
|
+
return data, status_code, headers
|
|
608
|
+
end
|
|
609
|
+
|
|
610
|
+
# List subscribers of a MUC conference.
|
|
611
|
+
# @param get_room_affiliations_request [GetRoomAffiliationsRequest]
|
|
612
|
+
# @param [Hash] opts the optional parameters
|
|
613
|
+
# @return [Array<String>]
|
|
614
|
+
def get_subscribers(get_room_affiliations_request, opts = {})
|
|
615
|
+
data, _status_code, _headers = get_subscribers_with_http_info(get_room_affiliations_request, opts)
|
|
616
|
+
data
|
|
617
|
+
end
|
|
618
|
+
|
|
619
|
+
# List subscribers of a MUC conference.
|
|
620
|
+
# @param get_room_affiliations_request [GetRoomAffiliationsRequest]
|
|
621
|
+
# @param [Hash] opts the optional parameters
|
|
622
|
+
# @return [Array<(Array<String>, Integer, Hash)>] Array<String> data, response status code and response headers
|
|
623
|
+
def get_subscribers_with_http_info(get_room_affiliations_request, opts = {})
|
|
624
|
+
if @api_client.config.debugging
|
|
625
|
+
@api_client.config.logger.debug 'Calling API: MucRoomApi.get_subscribers ...'
|
|
626
|
+
end
|
|
627
|
+
# verify the required parameter 'get_room_affiliations_request' is set
|
|
628
|
+
if @api_client.config.client_side_validation && get_room_affiliations_request.nil?
|
|
629
|
+
fail ArgumentError, "Missing the required parameter 'get_room_affiliations_request' when calling MucRoomApi.get_subscribers"
|
|
630
|
+
end
|
|
631
|
+
# resource path
|
|
632
|
+
local_var_path = '/api/get_subscribers'
|
|
633
|
+
|
|
634
|
+
# query parameters
|
|
635
|
+
query_params = opts[:query_params] || {}
|
|
636
|
+
|
|
637
|
+
# header parameters
|
|
638
|
+
header_params = opts[:header_params] || {}
|
|
639
|
+
# HTTP header 'Accept' (if needed)
|
|
640
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
641
|
+
# HTTP header 'Content-Type'
|
|
642
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
643
|
+
if !content_type.nil?
|
|
644
|
+
header_params['Content-Type'] = content_type
|
|
645
|
+
end
|
|
646
|
+
|
|
647
|
+
# form parameters
|
|
648
|
+
form_params = opts[:form_params] || {}
|
|
649
|
+
|
|
650
|
+
# http body (model)
|
|
651
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(get_room_affiliations_request)
|
|
652
|
+
|
|
653
|
+
# return_type
|
|
654
|
+
return_type = opts[:debug_return_type] || 'Array<String>'
|
|
655
|
+
|
|
656
|
+
# auth_names
|
|
657
|
+
auth_names = opts[:debug_auth_names] || []
|
|
658
|
+
|
|
659
|
+
new_options = opts.merge(
|
|
660
|
+
:operation => :"MucRoomApi.get_subscribers",
|
|
661
|
+
:header_params => header_params,
|
|
662
|
+
:query_params => query_params,
|
|
663
|
+
:form_params => form_params,
|
|
664
|
+
:body => post_body,
|
|
665
|
+
:auth_names => auth_names,
|
|
666
|
+
:return_type => return_type
|
|
667
|
+
)
|
|
668
|
+
|
|
669
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
670
|
+
if @api_client.config.debugging
|
|
671
|
+
@api_client.config.logger.debug "API called: MucRoomApi#get_subscribers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
672
|
+
end
|
|
673
|
+
return data, status_code, headers
|
|
674
|
+
end
|
|
675
|
+
|
|
676
|
+
# Send a direct invitation to several destinations.
|
|
677
|
+
# @param [Hash] opts the optional parameters
|
|
678
|
+
# @option opts [SendDirectInvitationRequest] :send_direct_invitation_request
|
|
679
|
+
# @return [Integer]
|
|
680
|
+
def send_direct_invitation(opts = {})
|
|
681
|
+
data, _status_code, _headers = send_direct_invitation_with_http_info(opts)
|
|
682
|
+
data
|
|
683
|
+
end
|
|
684
|
+
|
|
685
|
+
# Send a direct invitation to several destinations.
|
|
686
|
+
# @param [Hash] opts the optional parameters
|
|
687
|
+
# @option opts [SendDirectInvitationRequest] :send_direct_invitation_request
|
|
688
|
+
# @return [Array<(Integer, Integer, Hash)>] Integer data, response status code and response headers
|
|
689
|
+
def send_direct_invitation_with_http_info(opts = {})
|
|
690
|
+
if @api_client.config.debugging
|
|
691
|
+
@api_client.config.logger.debug 'Calling API: MucRoomApi.send_direct_invitation ...'
|
|
692
|
+
end
|
|
693
|
+
# resource path
|
|
694
|
+
local_var_path = '/api/send_direct_invitation'
|
|
695
|
+
|
|
696
|
+
# query parameters
|
|
697
|
+
query_params = opts[:query_params] || {}
|
|
698
|
+
|
|
699
|
+
# header parameters
|
|
700
|
+
header_params = opts[:header_params] || {}
|
|
701
|
+
# HTTP header 'Accept' (if needed)
|
|
702
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
703
|
+
# HTTP header 'Content-Type'
|
|
704
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
705
|
+
if !content_type.nil?
|
|
706
|
+
header_params['Content-Type'] = content_type
|
|
707
|
+
end
|
|
708
|
+
|
|
709
|
+
# form parameters
|
|
710
|
+
form_params = opts[:form_params] || {}
|
|
711
|
+
|
|
712
|
+
# http body (model)
|
|
713
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'send_direct_invitation_request'])
|
|
714
|
+
|
|
715
|
+
# return_type
|
|
716
|
+
return_type = opts[:debug_return_type] || 'Integer'
|
|
717
|
+
|
|
718
|
+
# auth_names
|
|
719
|
+
auth_names = opts[:debug_auth_names] || []
|
|
720
|
+
|
|
721
|
+
new_options = opts.merge(
|
|
722
|
+
:operation => :"MucRoomApi.send_direct_invitation",
|
|
723
|
+
:header_params => header_params,
|
|
724
|
+
:query_params => query_params,
|
|
725
|
+
:form_params => form_params,
|
|
726
|
+
:body => post_body,
|
|
727
|
+
:auth_names => auth_names,
|
|
728
|
+
:return_type => return_type
|
|
729
|
+
)
|
|
730
|
+
|
|
731
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
732
|
+
if @api_client.config.debugging
|
|
733
|
+
@api_client.config.logger.debug "API called: MucRoomApi#send_direct_invitation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
734
|
+
end
|
|
735
|
+
return data, status_code, headers
|
|
736
|
+
end
|
|
737
|
+
|
|
738
|
+
# Change an affiliation in a MUC room.
|
|
739
|
+
# @param [Hash] opts the optional parameters
|
|
740
|
+
# @option opts [SetRoomAffiliationRequest] :set_room_affiliation_request
|
|
741
|
+
# @return [Integer]
|
|
742
|
+
def set_room_affiliation(opts = {})
|
|
743
|
+
data, _status_code, _headers = set_room_affiliation_with_http_info(opts)
|
|
744
|
+
data
|
|
745
|
+
end
|
|
746
|
+
|
|
747
|
+
# Change an affiliation in a MUC room.
|
|
748
|
+
# @param [Hash] opts the optional parameters
|
|
749
|
+
# @option opts [SetRoomAffiliationRequest] :set_room_affiliation_request
|
|
750
|
+
# @return [Array<(Integer, Integer, Hash)>] Integer data, response status code and response headers
|
|
751
|
+
def set_room_affiliation_with_http_info(opts = {})
|
|
752
|
+
if @api_client.config.debugging
|
|
753
|
+
@api_client.config.logger.debug 'Calling API: MucRoomApi.set_room_affiliation ...'
|
|
754
|
+
end
|
|
755
|
+
# resource path
|
|
756
|
+
local_var_path = '/api/set_room_affiliation'
|
|
757
|
+
|
|
758
|
+
# query parameters
|
|
759
|
+
query_params = opts[:query_params] || {}
|
|
760
|
+
|
|
761
|
+
# header parameters
|
|
762
|
+
header_params = opts[:header_params] || {}
|
|
763
|
+
# HTTP header 'Accept' (if needed)
|
|
764
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
765
|
+
# HTTP header 'Content-Type'
|
|
766
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
767
|
+
if !content_type.nil?
|
|
768
|
+
header_params['Content-Type'] = content_type
|
|
769
|
+
end
|
|
770
|
+
|
|
771
|
+
# form parameters
|
|
772
|
+
form_params = opts[:form_params] || {}
|
|
773
|
+
|
|
774
|
+
# http body (model)
|
|
775
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'set_room_affiliation_request'])
|
|
776
|
+
|
|
777
|
+
# return_type
|
|
778
|
+
return_type = opts[:debug_return_type] || 'Integer'
|
|
779
|
+
|
|
780
|
+
# auth_names
|
|
781
|
+
auth_names = opts[:debug_auth_names] || []
|
|
782
|
+
|
|
783
|
+
new_options = opts.merge(
|
|
784
|
+
:operation => :"MucRoomApi.set_room_affiliation",
|
|
785
|
+
:header_params => header_params,
|
|
786
|
+
:query_params => query_params,
|
|
787
|
+
:form_params => form_params,
|
|
788
|
+
:body => post_body,
|
|
789
|
+
:auth_names => auth_names,
|
|
790
|
+
:return_type => return_type
|
|
791
|
+
)
|
|
792
|
+
|
|
793
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
794
|
+
if @api_client.config.debugging
|
|
795
|
+
@api_client.config.logger.debug "API called: MucRoomApi#set_room_affiliation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
796
|
+
end
|
|
797
|
+
return data, status_code, headers
|
|
798
|
+
end
|
|
799
|
+
|
|
800
|
+
# Subscribe to a MUC conference.
|
|
801
|
+
# @param [Hash] opts the optional parameters
|
|
802
|
+
# @option opts [SubscribeToRoomRequest] :subscribe_to_room_request
|
|
803
|
+
# @return [Array<String>]
|
|
804
|
+
def subscribe_to_room(opts = {})
|
|
805
|
+
data, _status_code, _headers = subscribe_to_room_with_http_info(opts)
|
|
806
|
+
data
|
|
807
|
+
end
|
|
808
|
+
|
|
809
|
+
# Subscribe to a MUC conference.
|
|
810
|
+
# @param [Hash] opts the optional parameters
|
|
811
|
+
# @option opts [SubscribeToRoomRequest] :subscribe_to_room_request
|
|
812
|
+
# @return [Array<(Array<String>, Integer, Hash)>] Array<String> data, response status code and response headers
|
|
813
|
+
def subscribe_to_room_with_http_info(opts = {})
|
|
814
|
+
if @api_client.config.debugging
|
|
815
|
+
@api_client.config.logger.debug 'Calling API: MucRoomApi.subscribe_to_room ...'
|
|
816
|
+
end
|
|
817
|
+
# resource path
|
|
818
|
+
local_var_path = '/api/subscribe_room'
|
|
819
|
+
|
|
820
|
+
# query parameters
|
|
821
|
+
query_params = opts[:query_params] || {}
|
|
822
|
+
|
|
823
|
+
# header parameters
|
|
824
|
+
header_params = opts[:header_params] || {}
|
|
825
|
+
# HTTP header 'Accept' (if needed)
|
|
826
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
827
|
+
# HTTP header 'Content-Type'
|
|
828
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
829
|
+
if !content_type.nil?
|
|
830
|
+
header_params['Content-Type'] = content_type
|
|
831
|
+
end
|
|
832
|
+
|
|
833
|
+
# form parameters
|
|
834
|
+
form_params = opts[:form_params] || {}
|
|
835
|
+
|
|
836
|
+
# http body (model)
|
|
837
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'subscribe_to_room_request'])
|
|
838
|
+
|
|
839
|
+
# return_type
|
|
840
|
+
return_type = opts[:debug_return_type] || 'Array<String>'
|
|
841
|
+
|
|
842
|
+
# auth_names
|
|
843
|
+
auth_names = opts[:debug_auth_names] || []
|
|
844
|
+
|
|
845
|
+
new_options = opts.merge(
|
|
846
|
+
:operation => :"MucRoomApi.subscribe_to_room",
|
|
847
|
+
:header_params => header_params,
|
|
848
|
+
:query_params => query_params,
|
|
849
|
+
:form_params => form_params,
|
|
850
|
+
:body => post_body,
|
|
851
|
+
:auth_names => auth_names,
|
|
852
|
+
:return_type => return_type
|
|
853
|
+
)
|
|
854
|
+
|
|
855
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
856
|
+
if @api_client.config.debugging
|
|
857
|
+
@api_client.config.logger.debug "API called: MucRoomApi#subscribe_to_room\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
858
|
+
end
|
|
859
|
+
return data, status_code, headers
|
|
860
|
+
end
|
|
861
|
+
|
|
862
|
+
# Subscribe several users to a MUC conference.
|
|
863
|
+
# @param [Hash] opts the optional parameters
|
|
864
|
+
# @option opts [SubscribeToRoomManyRequest] :subscribe_to_room_many_request
|
|
865
|
+
# @return [Integer]
|
|
866
|
+
def subscribe_to_room_many(opts = {})
|
|
867
|
+
data, _status_code, _headers = subscribe_to_room_many_with_http_info(opts)
|
|
868
|
+
data
|
|
869
|
+
end
|
|
870
|
+
|
|
871
|
+
# Subscribe several users to a MUC conference.
|
|
872
|
+
# @param [Hash] opts the optional parameters
|
|
873
|
+
# @option opts [SubscribeToRoomManyRequest] :subscribe_to_room_many_request
|
|
874
|
+
# @return [Array<(Integer, Integer, Hash)>] Integer data, response status code and response headers
|
|
875
|
+
def subscribe_to_room_many_with_http_info(opts = {})
|
|
876
|
+
if @api_client.config.debugging
|
|
877
|
+
@api_client.config.logger.debug 'Calling API: MucRoomApi.subscribe_to_room_many ...'
|
|
878
|
+
end
|
|
879
|
+
# resource path
|
|
880
|
+
local_var_path = '/api/subscribe_room_many'
|
|
881
|
+
|
|
882
|
+
# query parameters
|
|
883
|
+
query_params = opts[:query_params] || {}
|
|
884
|
+
|
|
885
|
+
# header parameters
|
|
886
|
+
header_params = opts[:header_params] || {}
|
|
887
|
+
# HTTP header 'Accept' (if needed)
|
|
888
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
889
|
+
# HTTP header 'Content-Type'
|
|
890
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
891
|
+
if !content_type.nil?
|
|
892
|
+
header_params['Content-Type'] = content_type
|
|
893
|
+
end
|
|
894
|
+
|
|
895
|
+
# form parameters
|
|
896
|
+
form_params = opts[:form_params] || {}
|
|
897
|
+
|
|
898
|
+
# http body (model)
|
|
899
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'subscribe_to_room_many_request'])
|
|
900
|
+
|
|
901
|
+
# return_type
|
|
902
|
+
return_type = opts[:debug_return_type] || 'Integer'
|
|
903
|
+
|
|
904
|
+
# auth_names
|
|
905
|
+
auth_names = opts[:debug_auth_names] || []
|
|
906
|
+
|
|
907
|
+
new_options = opts.merge(
|
|
908
|
+
:operation => :"MucRoomApi.subscribe_to_room_many",
|
|
909
|
+
:header_params => header_params,
|
|
910
|
+
:query_params => query_params,
|
|
911
|
+
:form_params => form_params,
|
|
912
|
+
:body => post_body,
|
|
913
|
+
:auth_names => auth_names,
|
|
914
|
+
:return_type => return_type
|
|
915
|
+
)
|
|
916
|
+
|
|
917
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
918
|
+
if @api_client.config.debugging
|
|
919
|
+
@api_client.config.logger.debug "API called: MucRoomApi#subscribe_to_room_many\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
920
|
+
end
|
|
921
|
+
return data, status_code, headers
|
|
922
|
+
end
|
|
923
|
+
|
|
924
|
+
# Unsubscribe from a MUC conference.
|
|
925
|
+
# @param [Hash] opts the optional parameters
|
|
926
|
+
# @option opts [UnsubscribeFromRoomRequest] :unsubscribe_from_room_request
|
|
927
|
+
# @return [Integer]
|
|
928
|
+
def unsubscribe_from_room(opts = {})
|
|
929
|
+
data, _status_code, _headers = unsubscribe_from_room_with_http_info(opts)
|
|
930
|
+
data
|
|
931
|
+
end
|
|
932
|
+
|
|
933
|
+
# Unsubscribe from a MUC conference.
|
|
934
|
+
# @param [Hash] opts the optional parameters
|
|
935
|
+
# @option opts [UnsubscribeFromRoomRequest] :unsubscribe_from_room_request
|
|
936
|
+
# @return [Array<(Integer, Integer, Hash)>] Integer data, response status code and response headers
|
|
937
|
+
def unsubscribe_from_room_with_http_info(opts = {})
|
|
938
|
+
if @api_client.config.debugging
|
|
939
|
+
@api_client.config.logger.debug 'Calling API: MucRoomApi.unsubscribe_from_room ...'
|
|
940
|
+
end
|
|
941
|
+
# resource path
|
|
942
|
+
local_var_path = '/api/unsubscribe_room'
|
|
943
|
+
|
|
944
|
+
# query parameters
|
|
945
|
+
query_params = opts[:query_params] || {}
|
|
946
|
+
|
|
947
|
+
# header parameters
|
|
948
|
+
header_params = opts[:header_params] || {}
|
|
949
|
+
# HTTP header 'Accept' (if needed)
|
|
950
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
951
|
+
# HTTP header 'Content-Type'
|
|
952
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
953
|
+
if !content_type.nil?
|
|
954
|
+
header_params['Content-Type'] = content_type
|
|
955
|
+
end
|
|
956
|
+
|
|
957
|
+
# form parameters
|
|
958
|
+
form_params = opts[:form_params] || {}
|
|
959
|
+
|
|
960
|
+
# http body (model)
|
|
961
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'unsubscribe_from_room_request'])
|
|
962
|
+
|
|
963
|
+
# return_type
|
|
964
|
+
return_type = opts[:debug_return_type] || 'Integer'
|
|
965
|
+
|
|
966
|
+
# auth_names
|
|
967
|
+
auth_names = opts[:debug_auth_names] || []
|
|
968
|
+
|
|
969
|
+
new_options = opts.merge(
|
|
970
|
+
:operation => :"MucRoomApi.unsubscribe_from_room",
|
|
971
|
+
:header_params => header_params,
|
|
972
|
+
:query_params => query_params,
|
|
973
|
+
:form_params => form_params,
|
|
974
|
+
:body => post_body,
|
|
975
|
+
:auth_names => auth_names,
|
|
976
|
+
:return_type => return_type
|
|
977
|
+
)
|
|
978
|
+
|
|
979
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
980
|
+
if @api_client.config.debugging
|
|
981
|
+
@api_client.config.logger.debug "API called: MucRoomApi#unsubscribe_from_room\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
982
|
+
end
|
|
983
|
+
return data, status_code, headers
|
|
984
|
+
end
|
|
985
|
+
end
|
|
986
|
+
end
|