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,848 @@
|
|
|
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 PurgeApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Abort currently running delete old MAM messages operation.
|
|
23
|
+
# @param abort_delete_old_mam_messages_request [AbortDeleteOldMamMessagesRequest]
|
|
24
|
+
# @param [Hash] opts the optional parameters
|
|
25
|
+
# @return [AbortDeleteOldMamMessages200Response]
|
|
26
|
+
def abort_delete_old_mam_messages(abort_delete_old_mam_messages_request, opts = {})
|
|
27
|
+
data, _status_code, _headers = abort_delete_old_mam_messages_with_http_info(abort_delete_old_mam_messages_request, opts)
|
|
28
|
+
data
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
# Abort currently running delete old MAM messages operation.
|
|
32
|
+
# @param abort_delete_old_mam_messages_request [AbortDeleteOldMamMessagesRequest]
|
|
33
|
+
# @param [Hash] opts the optional parameters
|
|
34
|
+
# @return [Array<(AbortDeleteOldMamMessages200Response, Integer, Hash)>] AbortDeleteOldMamMessages200Response data, response status code and response headers
|
|
35
|
+
def abort_delete_old_mam_messages_with_http_info(abort_delete_old_mam_messages_request, opts = {})
|
|
36
|
+
if @api_client.config.debugging
|
|
37
|
+
@api_client.config.logger.debug 'Calling API: PurgeApi.abort_delete_old_mam_messages ...'
|
|
38
|
+
end
|
|
39
|
+
# verify the required parameter 'abort_delete_old_mam_messages_request' is set
|
|
40
|
+
if @api_client.config.client_side_validation && abort_delete_old_mam_messages_request.nil?
|
|
41
|
+
fail ArgumentError, "Missing the required parameter 'abort_delete_old_mam_messages_request' when calling PurgeApi.abort_delete_old_mam_messages"
|
|
42
|
+
end
|
|
43
|
+
# resource path
|
|
44
|
+
local_var_path = '/api/abort_delete_old_mam_messages'
|
|
45
|
+
|
|
46
|
+
# query parameters
|
|
47
|
+
query_params = opts[:query_params] || {}
|
|
48
|
+
|
|
49
|
+
# header parameters
|
|
50
|
+
header_params = opts[:header_params] || {}
|
|
51
|
+
# HTTP header 'Accept' (if needed)
|
|
52
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
53
|
+
# HTTP header 'Content-Type'
|
|
54
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
55
|
+
if !content_type.nil?
|
|
56
|
+
header_params['Content-Type'] = content_type
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
# form parameters
|
|
60
|
+
form_params = opts[:form_params] || {}
|
|
61
|
+
|
|
62
|
+
# http body (model)
|
|
63
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(abort_delete_old_mam_messages_request)
|
|
64
|
+
|
|
65
|
+
# return_type
|
|
66
|
+
return_type = opts[:debug_return_type] || 'AbortDeleteOldMamMessages200Response'
|
|
67
|
+
|
|
68
|
+
# auth_names
|
|
69
|
+
auth_names = opts[:debug_auth_names] || []
|
|
70
|
+
|
|
71
|
+
new_options = opts.merge(
|
|
72
|
+
:operation => :"PurgeApi.abort_delete_old_mam_messages",
|
|
73
|
+
:header_params => header_params,
|
|
74
|
+
:query_params => query_params,
|
|
75
|
+
:form_params => form_params,
|
|
76
|
+
:body => post_body,
|
|
77
|
+
:auth_names => auth_names,
|
|
78
|
+
:return_type => return_type
|
|
79
|
+
)
|
|
80
|
+
|
|
81
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
82
|
+
if @api_client.config.debugging
|
|
83
|
+
@api_client.config.logger.debug "API called: PurgeApi#abort_delete_old_mam_messages\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
84
|
+
end
|
|
85
|
+
return data, status_code, headers
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# Abort currently running delete old offline messages operation.
|
|
89
|
+
# @param abort_delete_old_mam_messages_request [AbortDeleteOldMamMessagesRequest]
|
|
90
|
+
# @param [Hash] opts the optional parameters
|
|
91
|
+
# @return [AbortDeleteOldMamMessages200Response]
|
|
92
|
+
def abort_delete_old_messages(abort_delete_old_mam_messages_request, opts = {})
|
|
93
|
+
data, _status_code, _headers = abort_delete_old_messages_with_http_info(abort_delete_old_mam_messages_request, opts)
|
|
94
|
+
data
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
# Abort currently running delete old offline messages operation.
|
|
98
|
+
# @param abort_delete_old_mam_messages_request [AbortDeleteOldMamMessagesRequest]
|
|
99
|
+
# @param [Hash] opts the optional parameters
|
|
100
|
+
# @return [Array<(AbortDeleteOldMamMessages200Response, Integer, Hash)>] AbortDeleteOldMamMessages200Response data, response status code and response headers
|
|
101
|
+
def abort_delete_old_messages_with_http_info(abort_delete_old_mam_messages_request, opts = {})
|
|
102
|
+
if @api_client.config.debugging
|
|
103
|
+
@api_client.config.logger.debug 'Calling API: PurgeApi.abort_delete_old_messages ...'
|
|
104
|
+
end
|
|
105
|
+
# verify the required parameter 'abort_delete_old_mam_messages_request' is set
|
|
106
|
+
if @api_client.config.client_side_validation && abort_delete_old_mam_messages_request.nil?
|
|
107
|
+
fail ArgumentError, "Missing the required parameter 'abort_delete_old_mam_messages_request' when calling PurgeApi.abort_delete_old_messages"
|
|
108
|
+
end
|
|
109
|
+
# resource path
|
|
110
|
+
local_var_path = '/api/abort_delete_old_messages'
|
|
111
|
+
|
|
112
|
+
# query parameters
|
|
113
|
+
query_params = opts[:query_params] || {}
|
|
114
|
+
|
|
115
|
+
# header parameters
|
|
116
|
+
header_params = opts[:header_params] || {}
|
|
117
|
+
# HTTP header 'Accept' (if needed)
|
|
118
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
119
|
+
# HTTP header 'Content-Type'
|
|
120
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
121
|
+
if !content_type.nil?
|
|
122
|
+
header_params['Content-Type'] = content_type
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
# form parameters
|
|
126
|
+
form_params = opts[:form_params] || {}
|
|
127
|
+
|
|
128
|
+
# http body (model)
|
|
129
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(abort_delete_old_mam_messages_request)
|
|
130
|
+
|
|
131
|
+
# return_type
|
|
132
|
+
return_type = opts[:debug_return_type] || 'AbortDeleteOldMamMessages200Response'
|
|
133
|
+
|
|
134
|
+
# auth_names
|
|
135
|
+
auth_names = opts[:debug_auth_names] || []
|
|
136
|
+
|
|
137
|
+
new_options = opts.merge(
|
|
138
|
+
:operation => :"PurgeApi.abort_delete_old_messages",
|
|
139
|
+
:header_params => header_params,
|
|
140
|
+
:query_params => query_params,
|
|
141
|
+
:form_params => form_params,
|
|
142
|
+
:body => post_body,
|
|
143
|
+
:auth_names => auth_names,
|
|
144
|
+
:return_type => return_type
|
|
145
|
+
)
|
|
146
|
+
|
|
147
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
148
|
+
if @api_client.config.debugging
|
|
149
|
+
@api_client.config.logger.debug "API called: PurgeApi#abort_delete_old_messages\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
150
|
+
end
|
|
151
|
+
return data, status_code, headers
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
# Delete expired offline messages from database.
|
|
155
|
+
# @param [Hash] opts the optional parameters
|
|
156
|
+
# @return [nil]
|
|
157
|
+
def delete_expired_messages(opts = {})
|
|
158
|
+
delete_expired_messages_with_http_info(opts)
|
|
159
|
+
nil
|
|
160
|
+
end
|
|
161
|
+
|
|
162
|
+
# Delete expired offline messages from database.
|
|
163
|
+
# @param [Hash] opts the optional parameters
|
|
164
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
165
|
+
def delete_expired_messages_with_http_info(opts = {})
|
|
166
|
+
if @api_client.config.debugging
|
|
167
|
+
@api_client.config.logger.debug 'Calling API: PurgeApi.delete_expired_messages ...'
|
|
168
|
+
end
|
|
169
|
+
# resource path
|
|
170
|
+
local_var_path = '/api/delete_expired_messages'
|
|
171
|
+
|
|
172
|
+
# query parameters
|
|
173
|
+
query_params = opts[:query_params] || {}
|
|
174
|
+
|
|
175
|
+
# header parameters
|
|
176
|
+
header_params = opts[:header_params] || {}
|
|
177
|
+
|
|
178
|
+
# form parameters
|
|
179
|
+
form_params = opts[:form_params] || {}
|
|
180
|
+
|
|
181
|
+
# http body (model)
|
|
182
|
+
post_body = opts[:debug_body]
|
|
183
|
+
|
|
184
|
+
# return_type
|
|
185
|
+
return_type = opts[:debug_return_type]
|
|
186
|
+
|
|
187
|
+
# auth_names
|
|
188
|
+
auth_names = opts[:debug_auth_names] || []
|
|
189
|
+
|
|
190
|
+
new_options = opts.merge(
|
|
191
|
+
:operation => :"PurgeApi.delete_expired_messages",
|
|
192
|
+
:header_params => header_params,
|
|
193
|
+
:query_params => query_params,
|
|
194
|
+
:form_params => form_params,
|
|
195
|
+
:body => post_body,
|
|
196
|
+
:auth_names => auth_names,
|
|
197
|
+
:return_type => return_type
|
|
198
|
+
)
|
|
199
|
+
|
|
200
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
201
|
+
if @api_client.config.debugging
|
|
202
|
+
@api_client.config.logger.debug "API called: PurgeApi#delete_expired_messages\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
203
|
+
end
|
|
204
|
+
return data, status_code, headers
|
|
205
|
+
end
|
|
206
|
+
|
|
207
|
+
# Delete expired PubSub items.
|
|
208
|
+
# @param [Hash] opts the optional parameters
|
|
209
|
+
# @return [nil]
|
|
210
|
+
def delete_expired_pubsub_items(opts = {})
|
|
211
|
+
delete_expired_pubsub_items_with_http_info(opts)
|
|
212
|
+
nil
|
|
213
|
+
end
|
|
214
|
+
|
|
215
|
+
# Delete expired PubSub items.
|
|
216
|
+
# @param [Hash] opts the optional parameters
|
|
217
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
218
|
+
def delete_expired_pubsub_items_with_http_info(opts = {})
|
|
219
|
+
if @api_client.config.debugging
|
|
220
|
+
@api_client.config.logger.debug 'Calling API: PurgeApi.delete_expired_pubsub_items ...'
|
|
221
|
+
end
|
|
222
|
+
# resource path
|
|
223
|
+
local_var_path = '/api/delete_expired_pubsub_items'
|
|
224
|
+
|
|
225
|
+
# query parameters
|
|
226
|
+
query_params = opts[:query_params] || {}
|
|
227
|
+
|
|
228
|
+
# header parameters
|
|
229
|
+
header_params = opts[:header_params] || {}
|
|
230
|
+
|
|
231
|
+
# form parameters
|
|
232
|
+
form_params = opts[:form_params] || {}
|
|
233
|
+
|
|
234
|
+
# http body (model)
|
|
235
|
+
post_body = opts[:debug_body]
|
|
236
|
+
|
|
237
|
+
# return_type
|
|
238
|
+
return_type = opts[:debug_return_type]
|
|
239
|
+
|
|
240
|
+
# auth_names
|
|
241
|
+
auth_names = opts[:debug_auth_names] || []
|
|
242
|
+
|
|
243
|
+
new_options = opts.merge(
|
|
244
|
+
:operation => :"PurgeApi.delete_expired_pubsub_items",
|
|
245
|
+
:header_params => header_params,
|
|
246
|
+
:query_params => query_params,
|
|
247
|
+
:form_params => form_params,
|
|
248
|
+
:body => post_body,
|
|
249
|
+
:auth_names => auth_names,
|
|
250
|
+
:return_type => return_type
|
|
251
|
+
)
|
|
252
|
+
|
|
253
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
254
|
+
if @api_client.config.debugging
|
|
255
|
+
@api_client.config.logger.debug "API called: PurgeApi#delete_expired_pubsub_items\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
256
|
+
end
|
|
257
|
+
return data, status_code, headers
|
|
258
|
+
end
|
|
259
|
+
|
|
260
|
+
# Delete MAM messages older than DAYS.
|
|
261
|
+
# @param delete_old_mam_messages_request [DeleteOldMAMMessagesRequest]
|
|
262
|
+
# @param [Hash] opts the optional parameters
|
|
263
|
+
# @return [nil]
|
|
264
|
+
def delete_old_mam_messages(delete_old_mam_messages_request, opts = {})
|
|
265
|
+
delete_old_mam_messages_with_http_info(delete_old_mam_messages_request, opts)
|
|
266
|
+
nil
|
|
267
|
+
end
|
|
268
|
+
|
|
269
|
+
# Delete MAM messages older than DAYS.
|
|
270
|
+
# @param delete_old_mam_messages_request [DeleteOldMAMMessagesRequest]
|
|
271
|
+
# @param [Hash] opts the optional parameters
|
|
272
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
273
|
+
def delete_old_mam_messages_with_http_info(delete_old_mam_messages_request, opts = {})
|
|
274
|
+
if @api_client.config.debugging
|
|
275
|
+
@api_client.config.logger.debug 'Calling API: PurgeApi.delete_old_mam_messages ...'
|
|
276
|
+
end
|
|
277
|
+
# verify the required parameter 'delete_old_mam_messages_request' is set
|
|
278
|
+
if @api_client.config.client_side_validation && delete_old_mam_messages_request.nil?
|
|
279
|
+
fail ArgumentError, "Missing the required parameter 'delete_old_mam_messages_request' when calling PurgeApi.delete_old_mam_messages"
|
|
280
|
+
end
|
|
281
|
+
# resource path
|
|
282
|
+
local_var_path = '/api/delete_old_mam_messages'
|
|
283
|
+
|
|
284
|
+
# query parameters
|
|
285
|
+
query_params = opts[:query_params] || {}
|
|
286
|
+
|
|
287
|
+
# header parameters
|
|
288
|
+
header_params = opts[:header_params] || {}
|
|
289
|
+
# HTTP header 'Content-Type'
|
|
290
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
291
|
+
if !content_type.nil?
|
|
292
|
+
header_params['Content-Type'] = content_type
|
|
293
|
+
end
|
|
294
|
+
|
|
295
|
+
# form parameters
|
|
296
|
+
form_params = opts[:form_params] || {}
|
|
297
|
+
|
|
298
|
+
# http body (model)
|
|
299
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(delete_old_mam_messages_request)
|
|
300
|
+
|
|
301
|
+
# return_type
|
|
302
|
+
return_type = opts[:debug_return_type]
|
|
303
|
+
|
|
304
|
+
# auth_names
|
|
305
|
+
auth_names = opts[:debug_auth_names] || []
|
|
306
|
+
|
|
307
|
+
new_options = opts.merge(
|
|
308
|
+
:operation => :"PurgeApi.delete_old_mam_messages",
|
|
309
|
+
:header_params => header_params,
|
|
310
|
+
:query_params => query_params,
|
|
311
|
+
:form_params => form_params,
|
|
312
|
+
:body => post_body,
|
|
313
|
+
:auth_names => auth_names,
|
|
314
|
+
:return_type => return_type
|
|
315
|
+
)
|
|
316
|
+
|
|
317
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
318
|
+
if @api_client.config.debugging
|
|
319
|
+
@api_client.config.logger.debug "API called: PurgeApi#delete_old_mam_messages\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
320
|
+
end
|
|
321
|
+
return data, status_code, headers
|
|
322
|
+
end
|
|
323
|
+
|
|
324
|
+
# Delete MAM messages older than DAYS in batches.
|
|
325
|
+
# @param delete_old_mam_messages_batch_request [DeleteOldMAMMessagesBatchRequest]
|
|
326
|
+
# @param [Hash] opts the optional parameters
|
|
327
|
+
# @return [nil]
|
|
328
|
+
def delete_old_mam_messages_batch(delete_old_mam_messages_batch_request, opts = {})
|
|
329
|
+
delete_old_mam_messages_batch_with_http_info(delete_old_mam_messages_batch_request, opts)
|
|
330
|
+
nil
|
|
331
|
+
end
|
|
332
|
+
|
|
333
|
+
# Delete MAM messages older than DAYS in batches.
|
|
334
|
+
# @param delete_old_mam_messages_batch_request [DeleteOldMAMMessagesBatchRequest]
|
|
335
|
+
# @param [Hash] opts the optional parameters
|
|
336
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
337
|
+
def delete_old_mam_messages_batch_with_http_info(delete_old_mam_messages_batch_request, opts = {})
|
|
338
|
+
if @api_client.config.debugging
|
|
339
|
+
@api_client.config.logger.debug 'Calling API: PurgeApi.delete_old_mam_messages_batch ...'
|
|
340
|
+
end
|
|
341
|
+
# verify the required parameter 'delete_old_mam_messages_batch_request' is set
|
|
342
|
+
if @api_client.config.client_side_validation && delete_old_mam_messages_batch_request.nil?
|
|
343
|
+
fail ArgumentError, "Missing the required parameter 'delete_old_mam_messages_batch_request' when calling PurgeApi.delete_old_mam_messages_batch"
|
|
344
|
+
end
|
|
345
|
+
# resource path
|
|
346
|
+
local_var_path = '/api/delete_old_mam_messages_batch'
|
|
347
|
+
|
|
348
|
+
# query parameters
|
|
349
|
+
query_params = opts[:query_params] || {}
|
|
350
|
+
|
|
351
|
+
# header parameters
|
|
352
|
+
header_params = opts[:header_params] || {}
|
|
353
|
+
# HTTP header 'Content-Type'
|
|
354
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
355
|
+
if !content_type.nil?
|
|
356
|
+
header_params['Content-Type'] = content_type
|
|
357
|
+
end
|
|
358
|
+
|
|
359
|
+
# form parameters
|
|
360
|
+
form_params = opts[:form_params] || {}
|
|
361
|
+
|
|
362
|
+
# http body (model)
|
|
363
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(delete_old_mam_messages_batch_request)
|
|
364
|
+
|
|
365
|
+
# return_type
|
|
366
|
+
return_type = opts[:debug_return_type]
|
|
367
|
+
|
|
368
|
+
# auth_names
|
|
369
|
+
auth_names = opts[:debug_auth_names] || []
|
|
370
|
+
|
|
371
|
+
new_options = opts.merge(
|
|
372
|
+
:operation => :"PurgeApi.delete_old_mam_messages_batch",
|
|
373
|
+
:header_params => header_params,
|
|
374
|
+
:query_params => query_params,
|
|
375
|
+
:form_params => form_params,
|
|
376
|
+
:body => post_body,
|
|
377
|
+
:auth_names => auth_names,
|
|
378
|
+
:return_type => return_type
|
|
379
|
+
)
|
|
380
|
+
|
|
381
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
382
|
+
if @api_client.config.debugging
|
|
383
|
+
@api_client.config.logger.debug "API called: PurgeApi#delete_old_mam_messages_batch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
384
|
+
end
|
|
385
|
+
return data, status_code, headers
|
|
386
|
+
end
|
|
387
|
+
|
|
388
|
+
# Status of delete old MAM messages operation.
|
|
389
|
+
# @param delete_old_mam_messages_status_request [DeleteOldMAMMessagesStatusRequest]
|
|
390
|
+
# @param [Hash] opts the optional parameters
|
|
391
|
+
# @return [AbortDeleteOldMamMessages200Response]
|
|
392
|
+
def delete_old_mam_messages_status(delete_old_mam_messages_status_request, opts = {})
|
|
393
|
+
data, _status_code, _headers = delete_old_mam_messages_status_with_http_info(delete_old_mam_messages_status_request, opts)
|
|
394
|
+
data
|
|
395
|
+
end
|
|
396
|
+
|
|
397
|
+
# Status of delete old MAM messages operation.
|
|
398
|
+
# @param delete_old_mam_messages_status_request [DeleteOldMAMMessagesStatusRequest]
|
|
399
|
+
# @param [Hash] opts the optional parameters
|
|
400
|
+
# @return [Array<(AbortDeleteOldMamMessages200Response, Integer, Hash)>] AbortDeleteOldMamMessages200Response data, response status code and response headers
|
|
401
|
+
def delete_old_mam_messages_status_with_http_info(delete_old_mam_messages_status_request, opts = {})
|
|
402
|
+
if @api_client.config.debugging
|
|
403
|
+
@api_client.config.logger.debug 'Calling API: PurgeApi.delete_old_mam_messages_status ...'
|
|
404
|
+
end
|
|
405
|
+
# verify the required parameter 'delete_old_mam_messages_status_request' is set
|
|
406
|
+
if @api_client.config.client_side_validation && delete_old_mam_messages_status_request.nil?
|
|
407
|
+
fail ArgumentError, "Missing the required parameter 'delete_old_mam_messages_status_request' when calling PurgeApi.delete_old_mam_messages_status"
|
|
408
|
+
end
|
|
409
|
+
# resource path
|
|
410
|
+
local_var_path = '/api/delete_old_mam_messages_status'
|
|
411
|
+
|
|
412
|
+
# query parameters
|
|
413
|
+
query_params = opts[:query_params] || {}
|
|
414
|
+
|
|
415
|
+
# header parameters
|
|
416
|
+
header_params = opts[:header_params] || {}
|
|
417
|
+
# HTTP header 'Accept' (if needed)
|
|
418
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
419
|
+
# HTTP header 'Content-Type'
|
|
420
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
421
|
+
if !content_type.nil?
|
|
422
|
+
header_params['Content-Type'] = content_type
|
|
423
|
+
end
|
|
424
|
+
|
|
425
|
+
# form parameters
|
|
426
|
+
form_params = opts[:form_params] || {}
|
|
427
|
+
|
|
428
|
+
# http body (model)
|
|
429
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(delete_old_mam_messages_status_request)
|
|
430
|
+
|
|
431
|
+
# return_type
|
|
432
|
+
return_type = opts[:debug_return_type] || 'AbortDeleteOldMamMessages200Response'
|
|
433
|
+
|
|
434
|
+
# auth_names
|
|
435
|
+
auth_names = opts[:debug_auth_names] || []
|
|
436
|
+
|
|
437
|
+
new_options = opts.merge(
|
|
438
|
+
:operation => :"PurgeApi.delete_old_mam_messages_status",
|
|
439
|
+
:header_params => header_params,
|
|
440
|
+
:query_params => query_params,
|
|
441
|
+
:form_params => form_params,
|
|
442
|
+
:body => post_body,
|
|
443
|
+
:auth_names => auth_names,
|
|
444
|
+
:return_type => return_type
|
|
445
|
+
)
|
|
446
|
+
|
|
447
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
448
|
+
if @api_client.config.debugging
|
|
449
|
+
@api_client.config.logger.debug "API called: PurgeApi#delete_old_mam_messages_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
450
|
+
end
|
|
451
|
+
return data, status_code, headers
|
|
452
|
+
end
|
|
453
|
+
|
|
454
|
+
# Delete offline messages older than DAYS.
|
|
455
|
+
# @param delete_old_messages_request [DeleteOldMessagesRequest]
|
|
456
|
+
# @param [Hash] opts the optional parameters
|
|
457
|
+
# @return [nil]
|
|
458
|
+
def delete_old_messages(delete_old_messages_request, opts = {})
|
|
459
|
+
delete_old_messages_with_http_info(delete_old_messages_request, opts)
|
|
460
|
+
nil
|
|
461
|
+
end
|
|
462
|
+
|
|
463
|
+
# Delete offline messages older than DAYS.
|
|
464
|
+
# @param delete_old_messages_request [DeleteOldMessagesRequest]
|
|
465
|
+
# @param [Hash] opts the optional parameters
|
|
466
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
467
|
+
def delete_old_messages_with_http_info(delete_old_messages_request, opts = {})
|
|
468
|
+
if @api_client.config.debugging
|
|
469
|
+
@api_client.config.logger.debug 'Calling API: PurgeApi.delete_old_messages ...'
|
|
470
|
+
end
|
|
471
|
+
# verify the required parameter 'delete_old_messages_request' is set
|
|
472
|
+
if @api_client.config.client_side_validation && delete_old_messages_request.nil?
|
|
473
|
+
fail ArgumentError, "Missing the required parameter 'delete_old_messages_request' when calling PurgeApi.delete_old_messages"
|
|
474
|
+
end
|
|
475
|
+
# resource path
|
|
476
|
+
local_var_path = '/api/delete_old_messages'
|
|
477
|
+
|
|
478
|
+
# query parameters
|
|
479
|
+
query_params = opts[:query_params] || {}
|
|
480
|
+
|
|
481
|
+
# header parameters
|
|
482
|
+
header_params = opts[:header_params] || {}
|
|
483
|
+
# HTTP header 'Content-Type'
|
|
484
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
485
|
+
if !content_type.nil?
|
|
486
|
+
header_params['Content-Type'] = content_type
|
|
487
|
+
end
|
|
488
|
+
|
|
489
|
+
# form parameters
|
|
490
|
+
form_params = opts[:form_params] || {}
|
|
491
|
+
|
|
492
|
+
# http body (model)
|
|
493
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(delete_old_messages_request)
|
|
494
|
+
|
|
495
|
+
# return_type
|
|
496
|
+
return_type = opts[:debug_return_type]
|
|
497
|
+
|
|
498
|
+
# auth_names
|
|
499
|
+
auth_names = opts[:debug_auth_names] || []
|
|
500
|
+
|
|
501
|
+
new_options = opts.merge(
|
|
502
|
+
:operation => :"PurgeApi.delete_old_messages",
|
|
503
|
+
:header_params => header_params,
|
|
504
|
+
:query_params => query_params,
|
|
505
|
+
:form_params => form_params,
|
|
506
|
+
:body => post_body,
|
|
507
|
+
:auth_names => auth_names,
|
|
508
|
+
:return_type => return_type
|
|
509
|
+
)
|
|
510
|
+
|
|
511
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
512
|
+
if @api_client.config.debugging
|
|
513
|
+
@api_client.config.logger.debug "API called: PurgeApi#delete_old_messages\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
514
|
+
end
|
|
515
|
+
return data, status_code, headers
|
|
516
|
+
end
|
|
517
|
+
|
|
518
|
+
# Delete offline messages older than DAYS.
|
|
519
|
+
# @param delete_old_messages_batch_request [DeleteOldMessagesBatchRequest]
|
|
520
|
+
# @param [Hash] opts the optional parameters
|
|
521
|
+
# @return [String]
|
|
522
|
+
def delete_old_messages_batch(delete_old_messages_batch_request, opts = {})
|
|
523
|
+
data, _status_code, _headers = delete_old_messages_batch_with_http_info(delete_old_messages_batch_request, opts)
|
|
524
|
+
data
|
|
525
|
+
end
|
|
526
|
+
|
|
527
|
+
# Delete offline messages older than DAYS.
|
|
528
|
+
# @param delete_old_messages_batch_request [DeleteOldMessagesBatchRequest]
|
|
529
|
+
# @param [Hash] opts the optional parameters
|
|
530
|
+
# @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
|
|
531
|
+
def delete_old_messages_batch_with_http_info(delete_old_messages_batch_request, opts = {})
|
|
532
|
+
if @api_client.config.debugging
|
|
533
|
+
@api_client.config.logger.debug 'Calling API: PurgeApi.delete_old_messages_batch ...'
|
|
534
|
+
end
|
|
535
|
+
# verify the required parameter 'delete_old_messages_batch_request' is set
|
|
536
|
+
if @api_client.config.client_side_validation && delete_old_messages_batch_request.nil?
|
|
537
|
+
fail ArgumentError, "Missing the required parameter 'delete_old_messages_batch_request' when calling PurgeApi.delete_old_messages_batch"
|
|
538
|
+
end
|
|
539
|
+
# resource path
|
|
540
|
+
local_var_path = '/api/delete_old_messages_batch'
|
|
541
|
+
|
|
542
|
+
# query parameters
|
|
543
|
+
query_params = opts[:query_params] || {}
|
|
544
|
+
|
|
545
|
+
# header parameters
|
|
546
|
+
header_params = opts[:header_params] || {}
|
|
547
|
+
# HTTP header 'Accept' (if needed)
|
|
548
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
549
|
+
# HTTP header 'Content-Type'
|
|
550
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
551
|
+
if !content_type.nil?
|
|
552
|
+
header_params['Content-Type'] = content_type
|
|
553
|
+
end
|
|
554
|
+
|
|
555
|
+
# form parameters
|
|
556
|
+
form_params = opts[:form_params] || {}
|
|
557
|
+
|
|
558
|
+
# http body (model)
|
|
559
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(delete_old_messages_batch_request)
|
|
560
|
+
|
|
561
|
+
# return_type
|
|
562
|
+
return_type = opts[:debug_return_type] || 'String'
|
|
563
|
+
|
|
564
|
+
# auth_names
|
|
565
|
+
auth_names = opts[:debug_auth_names] || []
|
|
566
|
+
|
|
567
|
+
new_options = opts.merge(
|
|
568
|
+
:operation => :"PurgeApi.delete_old_messages_batch",
|
|
569
|
+
:header_params => header_params,
|
|
570
|
+
:query_params => query_params,
|
|
571
|
+
:form_params => form_params,
|
|
572
|
+
:body => post_body,
|
|
573
|
+
:auth_names => auth_names,
|
|
574
|
+
:return_type => return_type
|
|
575
|
+
)
|
|
576
|
+
|
|
577
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
578
|
+
if @api_client.config.debugging
|
|
579
|
+
@api_client.config.logger.debug "API called: PurgeApi#delete_old_messages_batch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
580
|
+
end
|
|
581
|
+
return data, status_code, headers
|
|
582
|
+
end
|
|
583
|
+
|
|
584
|
+
# Status of delete old offline messages operation.
|
|
585
|
+
# @param delete_old_mam_messages_status_request [DeleteOldMAMMessagesStatusRequest]
|
|
586
|
+
# @param [Hash] opts the optional parameters
|
|
587
|
+
# @return [AbortDeleteOldMamMessages200Response]
|
|
588
|
+
def delete_old_messages_status(delete_old_mam_messages_status_request, opts = {})
|
|
589
|
+
data, _status_code, _headers = delete_old_messages_status_with_http_info(delete_old_mam_messages_status_request, opts)
|
|
590
|
+
data
|
|
591
|
+
end
|
|
592
|
+
|
|
593
|
+
# Status of delete old offline messages operation.
|
|
594
|
+
# @param delete_old_mam_messages_status_request [DeleteOldMAMMessagesStatusRequest]
|
|
595
|
+
# @param [Hash] opts the optional parameters
|
|
596
|
+
# @return [Array<(AbortDeleteOldMamMessages200Response, Integer, Hash)>] AbortDeleteOldMamMessages200Response data, response status code and response headers
|
|
597
|
+
def delete_old_messages_status_with_http_info(delete_old_mam_messages_status_request, opts = {})
|
|
598
|
+
if @api_client.config.debugging
|
|
599
|
+
@api_client.config.logger.debug 'Calling API: PurgeApi.delete_old_messages_status ...'
|
|
600
|
+
end
|
|
601
|
+
# verify the required parameter 'delete_old_mam_messages_status_request' is set
|
|
602
|
+
if @api_client.config.client_side_validation && delete_old_mam_messages_status_request.nil?
|
|
603
|
+
fail ArgumentError, "Missing the required parameter 'delete_old_mam_messages_status_request' when calling PurgeApi.delete_old_messages_status"
|
|
604
|
+
end
|
|
605
|
+
# resource path
|
|
606
|
+
local_var_path = '/api/delete_old_messages_status'
|
|
607
|
+
|
|
608
|
+
# query parameters
|
|
609
|
+
query_params = opts[:query_params] || {}
|
|
610
|
+
|
|
611
|
+
# header parameters
|
|
612
|
+
header_params = opts[:header_params] || {}
|
|
613
|
+
# HTTP header 'Accept' (if needed)
|
|
614
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
615
|
+
# HTTP header 'Content-Type'
|
|
616
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
617
|
+
if !content_type.nil?
|
|
618
|
+
header_params['Content-Type'] = content_type
|
|
619
|
+
end
|
|
620
|
+
|
|
621
|
+
# form parameters
|
|
622
|
+
form_params = opts[:form_params] || {}
|
|
623
|
+
|
|
624
|
+
# http body (model)
|
|
625
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(delete_old_mam_messages_status_request)
|
|
626
|
+
|
|
627
|
+
# return_type
|
|
628
|
+
return_type = opts[:debug_return_type] || 'AbortDeleteOldMamMessages200Response'
|
|
629
|
+
|
|
630
|
+
# auth_names
|
|
631
|
+
auth_names = opts[:debug_auth_names] || []
|
|
632
|
+
|
|
633
|
+
new_options = opts.merge(
|
|
634
|
+
:operation => :"PurgeApi.delete_old_messages_status",
|
|
635
|
+
:header_params => header_params,
|
|
636
|
+
:query_params => query_params,
|
|
637
|
+
:form_params => form_params,
|
|
638
|
+
:body => post_body,
|
|
639
|
+
:auth_names => auth_names,
|
|
640
|
+
:return_type => return_type
|
|
641
|
+
)
|
|
642
|
+
|
|
643
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
644
|
+
if @api_client.config.debugging
|
|
645
|
+
@api_client.config.logger.debug "API called: PurgeApi#delete_old_messages_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
646
|
+
end
|
|
647
|
+
return data, status_code, headers
|
|
648
|
+
end
|
|
649
|
+
|
|
650
|
+
# Keep only NUMBER of PubSub items per node.
|
|
651
|
+
# @param delete_old_pubsub_items_request [DeleteOldPubsubItemsRequest]
|
|
652
|
+
# @param [Hash] opts the optional parameters
|
|
653
|
+
# @return [Integer]
|
|
654
|
+
def delete_old_pubsub_items(delete_old_pubsub_items_request, opts = {})
|
|
655
|
+
data, _status_code, _headers = delete_old_pubsub_items_with_http_info(delete_old_pubsub_items_request, opts)
|
|
656
|
+
data
|
|
657
|
+
end
|
|
658
|
+
|
|
659
|
+
# Keep only NUMBER of PubSub items per node.
|
|
660
|
+
# @param delete_old_pubsub_items_request [DeleteOldPubsubItemsRequest]
|
|
661
|
+
# @param [Hash] opts the optional parameters
|
|
662
|
+
# @return [Array<(Integer, Integer, Hash)>] Integer data, response status code and response headers
|
|
663
|
+
def delete_old_pubsub_items_with_http_info(delete_old_pubsub_items_request, opts = {})
|
|
664
|
+
if @api_client.config.debugging
|
|
665
|
+
@api_client.config.logger.debug 'Calling API: PurgeApi.delete_old_pubsub_items ...'
|
|
666
|
+
end
|
|
667
|
+
# verify the required parameter 'delete_old_pubsub_items_request' is set
|
|
668
|
+
if @api_client.config.client_side_validation && delete_old_pubsub_items_request.nil?
|
|
669
|
+
fail ArgumentError, "Missing the required parameter 'delete_old_pubsub_items_request' when calling PurgeApi.delete_old_pubsub_items"
|
|
670
|
+
end
|
|
671
|
+
# resource path
|
|
672
|
+
local_var_path = '/api/delete_old_pubsub_items'
|
|
673
|
+
|
|
674
|
+
# query parameters
|
|
675
|
+
query_params = opts[:query_params] || {}
|
|
676
|
+
|
|
677
|
+
# header parameters
|
|
678
|
+
header_params = opts[:header_params] || {}
|
|
679
|
+
# HTTP header 'Accept' (if needed)
|
|
680
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
681
|
+
# HTTP header 'Content-Type'
|
|
682
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
683
|
+
if !content_type.nil?
|
|
684
|
+
header_params['Content-Type'] = content_type
|
|
685
|
+
end
|
|
686
|
+
|
|
687
|
+
# form parameters
|
|
688
|
+
form_params = opts[:form_params] || {}
|
|
689
|
+
|
|
690
|
+
# http body (model)
|
|
691
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(delete_old_pubsub_items_request)
|
|
692
|
+
|
|
693
|
+
# return_type
|
|
694
|
+
return_type = opts[:debug_return_type] || 'Integer'
|
|
695
|
+
|
|
696
|
+
# auth_names
|
|
697
|
+
auth_names = opts[:debug_auth_names] || []
|
|
698
|
+
|
|
699
|
+
new_options = opts.merge(
|
|
700
|
+
:operation => :"PurgeApi.delete_old_pubsub_items",
|
|
701
|
+
:header_params => header_params,
|
|
702
|
+
:query_params => query_params,
|
|
703
|
+
:form_params => form_params,
|
|
704
|
+
:body => post_body,
|
|
705
|
+
:auth_names => auth_names,
|
|
706
|
+
:return_type => return_type
|
|
707
|
+
)
|
|
708
|
+
|
|
709
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
710
|
+
if @api_client.config.debugging
|
|
711
|
+
@api_client.config.logger.debug "API called: PurgeApi#delete_old_pubsub_items\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
712
|
+
end
|
|
713
|
+
return data, status_code, headers
|
|
714
|
+
end
|
|
715
|
+
|
|
716
|
+
# Remove push sessions older than DAYS.
|
|
717
|
+
# @param delete_old_messages_request [DeleteOldMessagesRequest]
|
|
718
|
+
# @param [Hash] opts the optional parameters
|
|
719
|
+
# @return [Integer]
|
|
720
|
+
def delete_old_push_sessions(delete_old_messages_request, opts = {})
|
|
721
|
+
data, _status_code, _headers = delete_old_push_sessions_with_http_info(delete_old_messages_request, opts)
|
|
722
|
+
data
|
|
723
|
+
end
|
|
724
|
+
|
|
725
|
+
# Remove push sessions older than DAYS.
|
|
726
|
+
# @param delete_old_messages_request [DeleteOldMessagesRequest]
|
|
727
|
+
# @param [Hash] opts the optional parameters
|
|
728
|
+
# @return [Array<(Integer, Integer, Hash)>] Integer data, response status code and response headers
|
|
729
|
+
def delete_old_push_sessions_with_http_info(delete_old_messages_request, opts = {})
|
|
730
|
+
if @api_client.config.debugging
|
|
731
|
+
@api_client.config.logger.debug 'Calling API: PurgeApi.delete_old_push_sessions ...'
|
|
732
|
+
end
|
|
733
|
+
# verify the required parameter 'delete_old_messages_request' is set
|
|
734
|
+
if @api_client.config.client_side_validation && delete_old_messages_request.nil?
|
|
735
|
+
fail ArgumentError, "Missing the required parameter 'delete_old_messages_request' when calling PurgeApi.delete_old_push_sessions"
|
|
736
|
+
end
|
|
737
|
+
# resource path
|
|
738
|
+
local_var_path = '/api/delete_old_push_sessions'
|
|
739
|
+
|
|
740
|
+
# query parameters
|
|
741
|
+
query_params = opts[:query_params] || {}
|
|
742
|
+
|
|
743
|
+
# header parameters
|
|
744
|
+
header_params = opts[:header_params] || {}
|
|
745
|
+
# HTTP header 'Accept' (if needed)
|
|
746
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
747
|
+
# HTTP header 'Content-Type'
|
|
748
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
749
|
+
if !content_type.nil?
|
|
750
|
+
header_params['Content-Type'] = content_type
|
|
751
|
+
end
|
|
752
|
+
|
|
753
|
+
# form parameters
|
|
754
|
+
form_params = opts[:form_params] || {}
|
|
755
|
+
|
|
756
|
+
# http body (model)
|
|
757
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(delete_old_messages_request)
|
|
758
|
+
|
|
759
|
+
# return_type
|
|
760
|
+
return_type = opts[:debug_return_type] || 'Integer'
|
|
761
|
+
|
|
762
|
+
# auth_names
|
|
763
|
+
auth_names = opts[:debug_auth_names] || []
|
|
764
|
+
|
|
765
|
+
new_options = opts.merge(
|
|
766
|
+
:operation => :"PurgeApi.delete_old_push_sessions",
|
|
767
|
+
:header_params => header_params,
|
|
768
|
+
:query_params => query_params,
|
|
769
|
+
:form_params => form_params,
|
|
770
|
+
:body => post_body,
|
|
771
|
+
:auth_names => auth_names,
|
|
772
|
+
:return_type => return_type
|
|
773
|
+
)
|
|
774
|
+
|
|
775
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
776
|
+
if @api_client.config.debugging
|
|
777
|
+
@api_client.config.logger.debug "API called: PurgeApi#delete_old_push_sessions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
778
|
+
end
|
|
779
|
+
return data, status_code, headers
|
|
780
|
+
end
|
|
781
|
+
|
|
782
|
+
# Delete users that didn't log in last days, or that never logged.
|
|
783
|
+
# @param delete_old_users_request [DeleteOldUsersRequest]
|
|
784
|
+
# @param [Hash] opts the optional parameters
|
|
785
|
+
# @return [String]
|
|
786
|
+
def delete_old_users(delete_old_users_request, opts = {})
|
|
787
|
+
data, _status_code, _headers = delete_old_users_with_http_info(delete_old_users_request, opts)
|
|
788
|
+
data
|
|
789
|
+
end
|
|
790
|
+
|
|
791
|
+
# Delete users that didn't log in last days, or that never logged.
|
|
792
|
+
# @param delete_old_users_request [DeleteOldUsersRequest]
|
|
793
|
+
# @param [Hash] opts the optional parameters
|
|
794
|
+
# @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
|
|
795
|
+
def delete_old_users_with_http_info(delete_old_users_request, opts = {})
|
|
796
|
+
if @api_client.config.debugging
|
|
797
|
+
@api_client.config.logger.debug 'Calling API: PurgeApi.delete_old_users ...'
|
|
798
|
+
end
|
|
799
|
+
# verify the required parameter 'delete_old_users_request' is set
|
|
800
|
+
if @api_client.config.client_side_validation && delete_old_users_request.nil?
|
|
801
|
+
fail ArgumentError, "Missing the required parameter 'delete_old_users_request' when calling PurgeApi.delete_old_users"
|
|
802
|
+
end
|
|
803
|
+
# resource path
|
|
804
|
+
local_var_path = '/api/delete_old_users'
|
|
805
|
+
|
|
806
|
+
# query parameters
|
|
807
|
+
query_params = opts[:query_params] || {}
|
|
808
|
+
|
|
809
|
+
# header parameters
|
|
810
|
+
header_params = opts[:header_params] || {}
|
|
811
|
+
# HTTP header 'Accept' (if needed)
|
|
812
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
813
|
+
# HTTP header 'Content-Type'
|
|
814
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
815
|
+
if !content_type.nil?
|
|
816
|
+
header_params['Content-Type'] = content_type
|
|
817
|
+
end
|
|
818
|
+
|
|
819
|
+
# form parameters
|
|
820
|
+
form_params = opts[:form_params] || {}
|
|
821
|
+
|
|
822
|
+
# http body (model)
|
|
823
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(delete_old_users_request)
|
|
824
|
+
|
|
825
|
+
# return_type
|
|
826
|
+
return_type = opts[:debug_return_type] || 'String'
|
|
827
|
+
|
|
828
|
+
# auth_names
|
|
829
|
+
auth_names = opts[:debug_auth_names] || []
|
|
830
|
+
|
|
831
|
+
new_options = opts.merge(
|
|
832
|
+
:operation => :"PurgeApi.delete_old_users",
|
|
833
|
+
:header_params => header_params,
|
|
834
|
+
:query_params => query_params,
|
|
835
|
+
:form_params => form_params,
|
|
836
|
+
:body => post_body,
|
|
837
|
+
:auth_names => auth_names,
|
|
838
|
+
:return_type => return_type
|
|
839
|
+
)
|
|
840
|
+
|
|
841
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
842
|
+
if @api_client.config.debugging
|
|
843
|
+
@api_client.config.logger.debug "API called: PurgeApi#delete_old_users\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
844
|
+
end
|
|
845
|
+
return data, status_code, headers
|
|
846
|
+
end
|
|
847
|
+
end
|
|
848
|
+
end
|