fastcomments 1.2.1 → 3.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 +4 -4
- data/README.md +31 -9
- data/client/README.md +164 -102
- data/client/docs/APIBanUserChangeLog.md +24 -0
- data/client/docs/APIBanUserChangedValues.md +42 -0
- data/client/docs/APIBannedUser.md +42 -0
- data/client/docs/APIBannedUserWithMultiMatchInfo.md +34 -0
- data/client/docs/APIComment.md +2 -2
- data/client/docs/APICommentBase.md +2 -2
- data/client/docs/APICommentCommonBannedUser.md +32 -0
- data/client/docs/APIModerateGetUserBanPreferencesResponse.md +20 -0
- data/client/docs/APIModerateUserBanPreferences.md +24 -0
- data/client/docs/{SaveCommentResponse.md → APISaveCommentResponse.md} +3 -3
- data/client/docs/AddDomainConfigResponse.md +24 -0
- data/client/docs/{AddDomainConfig200ResponseAnyOf.md → AddDomainConfigResponseAnyOf.md} +2 -2
- data/client/docs/AdjustCommentVotesParams.md +18 -0
- data/client/docs/AdjustVotesResponse.md +20 -0
- data/client/docs/AggregateResponse.md +28 -0
- data/client/docs/{AddDomainConfig200Response.md → AggregationAPIError.md} +6 -6
- data/client/docs/AwardUserBadgeResponse.md +22 -0
- data/client/docs/BanUserFromCommentResult.md +24 -0
- data/client/docs/BanUserUndoParams.md +18 -0
- data/client/docs/BannedUserMatch.md +20 -0
- data/client/docs/{RecordStringStringOrNumberValue.md → BannedUserMatchMatchedOnValue.md} +2 -2
- data/client/docs/BannedUserMatchType.md +15 -0
- data/client/docs/BuildModerationFilterParams.md +26 -0
- data/client/docs/BuildModerationFilterResponse.md +20 -0
- data/client/docs/BulkCreateHashTagsResponse.md +1 -1
- data/client/docs/{PatchHashTag200Response.md → BulkCreateHashTagsResponseResultsInner.md} +5 -5
- data/client/docs/BulkPreBanParams.md +18 -0
- data/client/docs/BulkPreBanSummary.md +28 -0
- data/client/docs/CommentData.md +4 -2
- data/client/docs/CommentLogData.md +2 -0
- data/client/docs/CommentsByIdsParams.md +18 -0
- data/client/docs/CreateCommentParams.md +3 -1
- data/client/docs/CreateTenantPackageBody.md +4 -4
- data/client/docs/CreateV1PageReact.md +20 -0
- data/client/docs/CustomConfigParameters.md +10 -0
- data/client/docs/DefaultApi.md +422 -426
- data/client/docs/{DeleteDomainConfig200Response.md → DeleteDomainConfigResponse.md} +2 -2
- data/client/docs/{DeleteFeedPostPublic200ResponseAnyOf.md → DeleteFeedPostPublicResponse.md} +2 -2
- data/client/docs/{DeleteHashTagRequest.md → DeleteHashTagRequestBody.md} +2 -2
- data/client/docs/FComment.md +3 -1
- data/client/docs/GetBannedUsersCountResponse.md +20 -0
- data/client/docs/GetBannedUsersFromCommentResponse.md +22 -0
- data/client/docs/GetCommentBanStatusResponse.md +22 -0
- data/client/docs/GetCommentTextResponse.md +20 -0
- data/client/docs/GetCommentsForUserResponse.md +18 -0
- data/client/docs/{GetDomainConfig200Response.md → GetDomainConfigResponse.md} +5 -5
- data/client/docs/{GetDomainConfigs200Response.md → GetDomainConfigsResponse.md} +5 -5
- data/client/docs/{GetDomainConfigs200ResponseAnyOf.md → GetDomainConfigsResponseAnyOf.md} +2 -2
- data/client/docs/{GetDomainConfigs200ResponseAnyOf1.md → GetDomainConfigsResponseAnyOf1.md} +2 -2
- data/client/docs/GetGifsSearchResponse.md +22 -0
- data/client/docs/GetGifsTrendingResponse.md +22 -0
- data/client/docs/GetPublicPagesResponse.md +22 -0
- data/client/docs/{GetSSOUsers200Response.md → GetSSOUsersResponse.md} +2 -2
- data/client/docs/GetTenantManualBadgesResponse.md +20 -0
- data/client/docs/GetTranslationsResponse.md +20 -0
- data/client/docs/GetUserInternalProfileResponse.md +20 -0
- data/client/docs/GetUserInternalProfileResponseProfile.md +50 -0
- data/client/docs/GetUserManualBadgesResponse.md +20 -0
- data/client/docs/GetUserTrustFactorResponse.md +22 -0
- data/client/docs/GetV1PageLikes.md +26 -0
- data/client/docs/GetV2PageReactUsersResponse.md +20 -0
- data/client/docs/GetV2PageReacts.md +22 -0
- data/client/docs/GifGetLargeResponse.md +20 -0
- data/client/docs/GifSearchInternalError.md +20 -0
- data/client/docs/GifSearchResponse.md +20 -0
- data/client/docs/GifSearchResponseImagesInnerInner.md +15 -0
- data/client/docs/HeaderAccountNotification.md +3 -1
- data/client/docs/ImportedAgentApprovalNotificationFrequency.md +15 -0
- data/client/docs/LiveEvent.md +2 -0
- data/client/docs/ModerationAPIChildCommentsResponse.md +20 -0
- data/client/docs/ModerationAPIComment.md +100 -0
- data/client/docs/ModerationAPICommentLog.md +24 -0
- data/client/docs/ModerationAPICommentResponse.md +20 -0
- data/client/docs/ModerationAPICountCommentsResponse.md +20 -0
- data/client/docs/ModerationAPIGetCommentIdsResponse.md +22 -0
- data/client/docs/ModerationAPIGetCommentsResponse.md +24 -0
- data/client/docs/ModerationAPIGetLogsResponse.md +20 -0
- data/client/docs/ModerationApi.md +3098 -0
- data/client/docs/ModerationCommentSearchResponse.md +20 -0
- data/client/docs/ModerationExportResponse.md +20 -0
- data/client/docs/ModerationExportStatusResponse.md +24 -0
- data/client/docs/ModerationFilter.md +40 -0
- data/client/docs/ModerationPageSearchProjected.md +24 -0
- data/client/docs/ModerationPageSearchResponse.md +20 -0
- data/client/docs/ModerationSiteSearchProjected.md +20 -0
- data/client/docs/ModerationSiteSearchResponse.md +20 -0
- data/client/docs/ModerationSuggestResponse.md +24 -0
- data/client/docs/ModerationUserSearchProjected.md +24 -0
- data/client/docs/ModerationUserSearchResponse.md +20 -0
- data/client/docs/PageUserEntry.md +24 -0
- data/client/docs/PageUsersInfoResponse.md +20 -0
- data/client/docs/PageUsersOfflineResponse.md +24 -0
- data/client/docs/PageUsersOnlineResponse.md +28 -0
- data/client/docs/PagesSortBy.md +15 -0
- data/client/docs/PatchDomainConfigResponse.md +24 -0
- data/client/docs/PostRemoveCommentApiResponse.md +20 -0
- data/client/docs/PreBanSummary.md +22 -0
- data/client/docs/PublicApi.md +1569 -385
- data/client/docs/PublicPage.md +26 -0
- data/client/docs/PutDomainConfigResponse.md +24 -0
- data/client/docs/RemoveCommentActionResponse.md +20 -0
- data/client/docs/RemoveUserBadgeResponse.md +20 -0
- data/client/docs/{SaveComment200Response.md → SaveCommentsBulkResponse.md} +6 -6
- data/client/docs/SearchUsersResult.md +22 -0
- data/client/docs/SetCommentApprovedResponse.md +20 -0
- data/client/docs/SetCommentTextParams.md +18 -0
- data/client/docs/SetCommentTextResponse.md +20 -0
- data/client/docs/SetUserTrustFactorResponse.md +20 -0
- data/client/docs/TenantBadge.md +58 -0
- data/client/docs/TenantPackage.md +15 -1
- data/client/docs/UpdateUserNotificationCommentSubscriptionStatusResponse.md +24 -0
- data/client/docs/UpdateUserNotificationPageSubscriptionStatusResponse.md +24 -0
- data/client/docs/UpdateUserNotificationStatusResponse.md +24 -0
- data/client/docs/User.md +2 -0
- data/client/docs/UsersListLocation.md +15 -0
- data/client/fastcomments-client.gemspec +1 -1
- data/client/lib/fastcomments-client/api/default_api.rb +419 -397
- data/client/lib/fastcomments-client/api/moderation_api.rb +3162 -0
- data/client/lib/fastcomments-client/api/public_api.rb +1497 -311
- data/client/lib/fastcomments-client/api_client.rb +1 -1
- data/client/lib/fastcomments-client/api_error.rb +1 -1
- data/client/lib/fastcomments-client/api_model_base.rb +1 -1
- data/client/lib/fastcomments-client/configuration.rb +1 -1
- data/client/lib/fastcomments-client/models/add_domain_config_params.rb +1 -1
- data/client/lib/fastcomments-client/models/add_domain_config_response.rb +103 -0
- data/client/lib/fastcomments-client/models/{add_domain_config200_response_any_of.rb → add_domain_config_response_any_of.rb} +4 -4
- data/client/lib/fastcomments-client/models/add_page_api_response.rb +1 -1
- data/client/lib/fastcomments-client/models/add_sso_user_api_response.rb +1 -1
- data/client/lib/fastcomments-client/models/adjust_comment_votes_params.rb +164 -0
- data/client/lib/fastcomments-client/models/adjust_votes_response.rb +190 -0
- data/client/lib/fastcomments-client/models/aggregate_question_results_response.rb +1 -1
- data/client/lib/fastcomments-client/models/{block_from_comment_public200_response.rb → aggregate_response.rb} +4 -4
- data/client/lib/fastcomments-client/models/aggregate_time_bucket.rb +1 -1
- data/client/lib/fastcomments-client/models/aggregation_api_error.rb +249 -0
- data/client/lib/fastcomments-client/models/aggregation_item.rb +1 -1
- data/client/lib/fastcomments-client/models/aggregation_op_type.rb +1 -1
- data/client/lib/fastcomments-client/models/aggregation_operation.rb +1 -1
- data/client/lib/fastcomments-client/models/aggregation_request.rb +1 -1
- data/client/lib/fastcomments-client/models/aggregation_request_sort.rb +1 -1
- data/client/lib/fastcomments-client/models/aggregation_response.rb +1 -1
- data/client/lib/fastcomments-client/models/aggregation_response_stats.rb +1 -1
- data/client/lib/fastcomments-client/models/aggregation_value.rb +1 -1
- data/client/lib/fastcomments-client/models/api_audit_log.rb +1 -1
- data/client/lib/fastcomments-client/models/api_ban_user_change_log.rb +176 -0
- data/client/lib/fastcomments-client/models/api_ban_user_changed_values.rb +260 -0
- data/client/lib/fastcomments-client/models/api_banned_user.rb +381 -0
- data/client/lib/fastcomments-client/models/api_banned_user_with_multi_match_info.rb +302 -0
- data/client/lib/fastcomments-client/models/api_comment.rb +17 -17
- data/client/lib/fastcomments-client/models/api_comment_base.rb +17 -17
- data/client/lib/fastcomments-client/models/api_comment_base_meta.rb +1 -1
- data/client/lib/fastcomments-client/models/api_comment_common_banned_user.rb +267 -0
- data/client/lib/fastcomments-client/models/api_create_user_badge_response.rb +1 -1
- data/client/lib/fastcomments-client/models/api_domain_configuration.rb +1 -1
- data/client/lib/fastcomments-client/models/api_empty_response.rb +1 -1
- data/client/lib/fastcomments-client/models/api_empty_success_response.rb +1 -1
- data/client/lib/fastcomments-client/models/api_error.rb +1 -1
- data/client/lib/fastcomments-client/models/api_get_comment_response.rb +1 -1
- data/client/lib/fastcomments-client/models/api_get_comments_response.rb +1 -1
- data/client/lib/fastcomments-client/models/api_get_user_badge_progress_list_response.rb +1 -1
- data/client/lib/fastcomments-client/models/api_get_user_badge_progress_response.rb +1 -1
- data/client/lib/fastcomments-client/models/api_get_user_badge_response.rb +1 -1
- data/client/lib/fastcomments-client/models/api_get_user_badges_response.rb +1 -1
- data/client/lib/fastcomments-client/models/api_moderate_get_user_ban_preferences_response.rb +198 -0
- data/client/lib/fastcomments-client/models/api_moderate_user_ban_preferences.rb +242 -0
- data/client/lib/fastcomments-client/models/api_page.rb +1 -1
- data/client/lib/fastcomments-client/models/{save_comment_response.rb → api_save_comment_response.rb} +5 -5
- data/client/lib/fastcomments-client/models/api_status.rb +1 -1
- data/client/lib/fastcomments-client/models/api_tenant.rb +1 -1
- data/client/lib/fastcomments-client/models/api_tenant_daily_usage.rb +1 -1
- data/client/lib/fastcomments-client/models/api_ticket.rb +1 -1
- data/client/lib/fastcomments-client/models/api_ticket_detail.rb +1 -1
- data/client/lib/fastcomments-client/models/api_ticket_file.rb +1 -1
- data/client/lib/fastcomments-client/models/api_user_subscription.rb +1 -1
- data/client/lib/fastcomments-client/models/apisso_user.rb +1 -1
- data/client/lib/fastcomments-client/models/award_user_badge_response.rb +208 -0
- data/client/lib/fastcomments-client/models/ban_user_from_comment_result.rb +191 -0
- data/client/lib/fastcomments-client/models/ban_user_undo_params.rb +164 -0
- data/client/lib/fastcomments-client/models/banned_user_match.rb +198 -0
- data/client/lib/fastcomments-client/models/{record_string_string_or_number_value.rb → banned_user_match_matched_on_value.rb} +2 -2
- data/client/lib/fastcomments-client/models/banned_user_match_type.rb +42 -0
- data/client/lib/fastcomments-client/models/billing_info.rb +1 -1
- data/client/lib/fastcomments-client/models/block_from_comment_params.rb +1 -1
- data/client/lib/fastcomments-client/models/block_success.rb +1 -1
- data/client/lib/fastcomments-client/models/build_moderation_filter_params.rb +217 -0
- data/client/lib/fastcomments-client/models/build_moderation_filter_response.rb +190 -0
- data/client/lib/fastcomments-client/models/bulk_aggregate_question_item.rb +1 -1
- data/client/lib/fastcomments-client/models/bulk_aggregate_question_results_request.rb +1 -1
- data/client/lib/fastcomments-client/models/bulk_aggregate_question_results_response.rb +1 -1
- data/client/lib/fastcomments-client/models/bulk_create_hash_tags_body.rb +1 -1
- data/client/lib/fastcomments-client/models/bulk_create_hash_tags_body_tags_inner.rb +1 -1
- data/client/lib/fastcomments-client/models/bulk_create_hash_tags_response.rb +2 -2
- data/client/lib/fastcomments-client/models/{add_hash_tag200_response.rb → bulk_create_hash_tags_response_results_inner.rb} +2 -2
- data/client/lib/fastcomments-client/models/bulk_pre_ban_params.rb +166 -0
- data/client/lib/fastcomments-client/models/bulk_pre_ban_summary.rb +302 -0
- data/client/lib/fastcomments-client/models/change_comment_pin_status_response.rb +1 -1
- data/client/lib/fastcomments-client/models/change_ticket_state_body.rb +1 -1
- data/client/lib/fastcomments-client/models/change_ticket_state_response.rb +1 -1
- data/client/lib/fastcomments-client/models/check_blocked_comments_response.rb +1 -1
- data/client/lib/fastcomments-client/models/combine_question_results_with_comments_response.rb +1 -1
- data/client/lib/fastcomments-client/models/comment_data.rb +15 -6
- data/client/lib/fastcomments-client/models/comment_html_rendering_mode.rb +1 -1
- data/client/lib/fastcomments-client/models/comment_log_data.rb +11 -2
- data/client/lib/fastcomments-client/models/comment_log_entry.rb +1 -1
- data/client/lib/fastcomments-client/models/comment_log_type.rb +1 -1
- data/client/lib/fastcomments-client/models/comment_question_results_rendering_type.rb +1 -1
- data/client/lib/fastcomments-client/models/comment_questions_required.rb +1 -1
- data/client/lib/fastcomments-client/models/comment_text_update_request.rb +1 -1
- data/client/lib/fastcomments-client/models/comment_thread_deletion_mode.rb +1 -1
- data/client/lib/fastcomments-client/models/comment_user_badge_info.rb +1 -1
- data/client/lib/fastcomments-client/models/comment_user_hash_tag_info.rb +1 -1
- data/client/lib/fastcomments-client/models/comment_user_mention_info.rb +1 -1
- data/client/lib/fastcomments-client/models/commenter_name_formats.rb +1 -1
- data/client/lib/fastcomments-client/models/comments_by_ids_params.rb +166 -0
- data/client/lib/fastcomments-client/models/create_api_page_data.rb +1 -1
- data/client/lib/fastcomments-client/models/create_api_user_subscription_data.rb +1 -1
- data/client/lib/fastcomments-client/models/create_apisso_user_data.rb +1 -1
- data/client/lib/fastcomments-client/models/create_comment_params.rb +12 -3
- data/client/lib/fastcomments-client/models/create_email_template_body.rb +1 -1
- data/client/lib/fastcomments-client/models/create_email_template_response.rb +1 -1
- data/client/lib/fastcomments-client/models/create_feed_post_params.rb +1 -1
- data/client/lib/fastcomments-client/models/create_feed_post_response.rb +1 -1
- data/client/lib/fastcomments-client/models/create_feed_posts_response.rb +1 -1
- data/client/lib/fastcomments-client/models/create_hash_tag_body.rb +1 -1
- data/client/lib/fastcomments-client/models/create_hash_tag_response.rb +1 -1
- data/client/lib/fastcomments-client/models/create_moderator_body.rb +1 -1
- data/client/lib/fastcomments-client/models/create_moderator_response.rb +1 -1
- data/client/lib/fastcomments-client/models/create_question_config_body.rb +1 -1
- data/client/lib/fastcomments-client/models/create_question_config_response.rb +1 -1
- data/client/lib/fastcomments-client/models/create_question_result_body.rb +1 -1
- data/client/lib/fastcomments-client/models/create_question_result_response.rb +1 -1
- data/client/lib/fastcomments-client/models/create_subscription_api_response.rb +1 -1
- data/client/lib/fastcomments-client/models/create_tenant_body.rb +1 -1
- data/client/lib/fastcomments-client/models/create_tenant_package_body.rb +14 -14
- data/client/lib/fastcomments-client/models/create_tenant_package_response.rb +1 -1
- data/client/lib/fastcomments-client/models/create_tenant_response.rb +1 -1
- data/client/lib/fastcomments-client/models/create_tenant_user_body.rb +1 -1
- data/client/lib/fastcomments-client/models/create_tenant_user_response.rb +1 -1
- data/client/lib/fastcomments-client/models/create_ticket_body.rb +1 -1
- data/client/lib/fastcomments-client/models/create_ticket_response.rb +1 -1
- data/client/lib/fastcomments-client/models/create_user_badge_params.rb +1 -1
- data/client/lib/fastcomments-client/models/create_v1_page_react.rb +195 -0
- data/client/lib/fastcomments-client/models/custom_config_parameters.rb +50 -2
- data/client/lib/fastcomments-client/models/custom_email_template.rb +1 -1
- data/client/lib/fastcomments-client/models/delete_comment_action.rb +1 -1
- data/client/lib/fastcomments-client/models/delete_comment_result.rb +1 -1
- data/client/lib/fastcomments-client/models/{delete_domain_config200_response.rb → delete_domain_config_response.rb} +4 -4
- data/client/lib/fastcomments-client/models/{delete_feed_post_public200_response_any_of.rb → delete_feed_post_public_response.rb} +4 -4
- data/client/lib/fastcomments-client/models/{delete_hash_tag_request.rb → delete_hash_tag_request_body.rb} +4 -4
- data/client/lib/fastcomments-client/models/delete_page_api_response.rb +1 -1
- data/client/lib/fastcomments-client/models/delete_sso_user_api_response.rb +1 -1
- data/client/lib/fastcomments-client/models/delete_subscription_api_response.rb +1 -1
- data/client/lib/fastcomments-client/models/deleted_comment_result_comment.rb +1 -1
- data/client/lib/fastcomments-client/models/digest_email_frequency.rb +1 -1
- data/client/lib/fastcomments-client/models/email_template_definition.rb +1 -1
- data/client/lib/fastcomments-client/models/email_template_render_error_response.rb +1 -1
- data/client/lib/fastcomments-client/models/event_log_entry.rb +1 -1
- data/client/lib/fastcomments-client/models/f_comment.rb +14 -5
- data/client/lib/fastcomments-client/models/f_comment_meta.rb +1 -1
- data/client/lib/fastcomments-client/models/feed_post.rb +1 -1
- data/client/lib/fastcomments-client/models/feed_post_link.rb +1 -1
- data/client/lib/fastcomments-client/models/feed_post_media_item.rb +1 -1
- data/client/lib/fastcomments-client/models/feed_post_media_item_asset.rb +1 -1
- data/client/lib/fastcomments-client/models/feed_post_stats.rb +1 -1
- data/client/lib/fastcomments-client/models/feed_posts_stats_response.rb +1 -1
- data/client/lib/fastcomments-client/models/find_comments_by_range_item.rb +1 -1
- data/client/lib/fastcomments-client/models/find_comments_by_range_response.rb +1 -1
- data/client/lib/fastcomments-client/models/flag_comment_response.rb +1 -1
- data/client/lib/fastcomments-client/models/get_audit_logs_response.rb +1 -1
- data/client/lib/fastcomments-client/models/get_banned_users_count_response.rb +190 -0
- data/client/lib/fastcomments-client/models/get_banned_users_from_comment_response.rb +235 -0
- data/client/lib/fastcomments-client/models/get_cached_notification_count_response.rb +1 -1
- data/client/lib/fastcomments-client/models/get_comment_ban_status_response.rb +188 -0
- data/client/lib/fastcomments-client/models/get_comment_text_response.rb +196 -0
- data/client/lib/fastcomments-client/models/get_comment_vote_user_names_success_response.rb +1 -1
- data/client/lib/fastcomments-client/models/get_comments_for_user_response.rb +149 -0
- data/client/lib/fastcomments-client/models/get_comments_response_public_comment.rb +1 -1
- data/client/lib/fastcomments-client/models/get_comments_response_with_presence_public_comment.rb +1 -1
- data/client/lib/fastcomments-client/models/get_domain_config_response.rb +103 -0
- data/client/lib/fastcomments-client/models/get_domain_configs_response.rb +103 -0
- data/client/lib/fastcomments-client/models/{get_domain_configs200_response_any_of.rb → get_domain_configs_response_any_of.rb} +4 -4
- data/client/lib/fastcomments-client/models/{get_domain_configs200_response_any_of1.rb → get_domain_configs_response_any_of1.rb} +4 -4
- data/client/lib/fastcomments-client/models/get_email_template_definitions_response.rb +1 -1
- data/client/lib/fastcomments-client/models/get_email_template_render_errors_response.rb +1 -1
- data/client/lib/fastcomments-client/models/get_email_template_response.rb +1 -1
- data/client/lib/fastcomments-client/models/get_email_templates_response.rb +1 -1
- data/client/lib/fastcomments-client/models/get_event_log_response.rb +1 -1
- data/client/lib/fastcomments-client/models/get_feed_posts_response.rb +1 -1
- data/client/lib/fastcomments-client/models/{add_hash_tags_bulk200_response.rb → get_gifs_search_response.rb} +4 -4
- data/client/lib/fastcomments-client/models/{change_ticket_state200_response.rb → get_gifs_trending_response.rb} +4 -4
- data/client/lib/fastcomments-client/models/get_hash_tags_response.rb +1 -1
- data/client/lib/fastcomments-client/models/get_moderator_response.rb +1 -1
- data/client/lib/fastcomments-client/models/get_moderators_response.rb +1 -1
- data/client/lib/fastcomments-client/models/get_my_notifications_response.rb +1 -1
- data/client/lib/fastcomments-client/models/get_notification_count_response.rb +1 -1
- data/client/lib/fastcomments-client/models/get_notifications_response.rb +1 -1
- data/client/lib/fastcomments-client/models/get_page_by_urlid_api_response.rb +1 -1
- data/client/lib/fastcomments-client/models/get_pages_api_response.rb +1 -1
- data/client/lib/fastcomments-client/models/get_pending_webhook_event_count_response.rb +1 -1
- data/client/lib/fastcomments-client/models/get_pending_webhook_events_response.rb +1 -1
- data/client/lib/fastcomments-client/models/get_public_feed_posts_response.rb +1 -1
- data/client/lib/fastcomments-client/models/get_public_pages_response.rb +226 -0
- data/client/lib/fastcomments-client/models/get_question_config_response.rb +1 -1
- data/client/lib/fastcomments-client/models/get_question_configs_response.rb +1 -1
- data/client/lib/fastcomments-client/models/get_question_result_response.rb +1 -1
- data/client/lib/fastcomments-client/models/get_question_results_response.rb +1 -1
- data/client/lib/fastcomments-client/models/get_sso_user_by_email_api_response.rb +1 -1
- data/client/lib/fastcomments-client/models/get_sso_user_by_id_api_response.rb +1 -1
- data/client/lib/fastcomments-client/models/{get_sso_users200_response.rb → get_sso_users_response.rb} +4 -4
- data/client/lib/fastcomments-client/models/get_subscriptions_api_response.rb +1 -1
- data/client/lib/fastcomments-client/models/get_tenant_daily_usages_response.rb +1 -1
- data/client/lib/fastcomments-client/models/get_tenant_manual_badges_response.rb +214 -0
- data/client/lib/fastcomments-client/models/get_tenant_package_response.rb +1 -1
- data/client/lib/fastcomments-client/models/get_tenant_packages_response.rb +1 -1
- data/client/lib/fastcomments-client/models/get_tenant_response.rb +1 -1
- data/client/lib/fastcomments-client/models/get_tenant_user_response.rb +1 -1
- data/client/lib/fastcomments-client/models/get_tenant_users_response.rb +1 -1
- data/client/lib/fastcomments-client/models/get_tenants_response.rb +1 -1
- data/client/lib/fastcomments-client/models/get_ticket_response.rb +1 -1
- data/client/lib/fastcomments-client/models/get_tickets_response.rb +1 -1
- data/client/lib/fastcomments-client/models/get_translations_response.rb +215 -0
- data/client/lib/fastcomments-client/models/get_user_internal_profile_response.rb +212 -0
- data/client/lib/fastcomments-client/models/get_user_internal_profile_response_profile.rb +298 -0
- data/client/lib/fastcomments-client/models/get_user_manual_badges_response.rb +214 -0
- data/client/lib/fastcomments-client/models/get_user_notification_count_response.rb +1 -1
- data/client/lib/fastcomments-client/models/get_user_presence_statuses_response.rb +1 -1
- data/client/lib/fastcomments-client/models/get_user_response.rb +1 -1
- data/client/lib/fastcomments-client/models/get_user_trust_factor_response.rb +204 -0
- data/client/lib/fastcomments-client/models/get_v1_page_likes.rb +290 -0
- data/client/lib/fastcomments-client/models/get_v2_page_react_users_response.rb +214 -0
- data/client/lib/fastcomments-client/models/get_v2_page_reacts.rb +209 -0
- data/client/lib/fastcomments-client/models/get_votes_for_user_response.rb +1 -1
- data/client/lib/fastcomments-client/models/get_votes_response.rb +1 -1
- data/client/lib/fastcomments-client/models/gif_get_large_response.rb +212 -0
- data/client/lib/fastcomments-client/models/gif_rating.rb +1 -1
- data/client/lib/fastcomments-client/models/gif_search_internal_error.rb +212 -0
- data/client/lib/fastcomments-client/models/gif_search_response.rb +214 -0
- data/client/lib/fastcomments-client/models/{get_user200_response.rb → gif_search_response_images_inner_inner.rb} +4 -4
- data/client/lib/fastcomments-client/models/header_account_notification.rb +16 -5
- data/client/lib/fastcomments-client/models/header_state.rb +1 -1
- data/client/lib/fastcomments-client/models/ignored_response.rb +1 -1
- data/client/lib/fastcomments-client/models/image_content_profanity_level.rb +1 -1
- data/client/lib/fastcomments-client/models/imported_agent_approval_notification_frequency.rb +42 -0
- data/client/lib/fastcomments-client/models/imported_site_type.rb +1 -1
- data/client/lib/fastcomments-client/models/live_event.rb +11 -2
- data/client/lib/fastcomments-client/models/live_event_extra_info.rb +1 -1
- data/client/lib/fastcomments-client/models/live_event_type.rb +8 -2
- data/client/lib/fastcomments-client/models/media_asset.rb +1 -1
- data/client/lib/fastcomments-client/models/mention_auto_complete_mode.rb +1 -1
- data/client/lib/fastcomments-client/models/meta_item.rb +1 -1
- data/client/lib/fastcomments-client/models/moderation_api_child_comments_response.rb +214 -0
- data/client/lib/fastcomments-client/models/moderation_api_comment.rb +680 -0
- data/client/lib/fastcomments-client/models/moderation_api_comment_log.rb +225 -0
- data/client/lib/fastcomments-client/models/moderation_api_comment_response.rb +212 -0
- data/client/lib/fastcomments-client/models/moderation_api_count_comments_response.rb +212 -0
- data/client/lib/fastcomments-client/models/moderation_api_get_comment_ids_response.rb +240 -0
- data/client/lib/fastcomments-client/models/moderation_api_get_comments_response.rb +249 -0
- data/client/lib/fastcomments-client/models/moderation_api_get_logs_response.rb +214 -0
- data/client/lib/fastcomments-client/models/moderation_comment_search_response.rb +212 -0
- data/client/lib/fastcomments-client/models/moderation_export_response.rb +190 -0
- data/client/lib/fastcomments-client/models/moderation_export_status_response.rb +225 -0
- data/client/lib/fastcomments-client/models/moderation_filter.rb +252 -0
- data/client/lib/fastcomments-client/models/moderation_page_search_projected.rb +242 -0
- data/client/lib/fastcomments-client/models/moderation_page_search_response.rb +214 -0
- data/client/lib/fastcomments-client/models/moderation_site_search_projected.rb +174 -0
- data/client/lib/fastcomments-client/models/moderation_site_search_response.rb +214 -0
- data/client/lib/fastcomments-client/models/moderation_suggest_response.rb +195 -0
- data/client/lib/fastcomments-client/models/moderation_user_search_projected.rb +210 -0
- data/client/lib/fastcomments-client/models/moderation_user_search_response.rb +214 -0
- data/client/lib/fastcomments-client/models/moderator.rb +1 -1
- data/client/lib/fastcomments-client/models/notification_and_count.rb +1 -1
- data/client/lib/fastcomments-client/models/notification_object_type.rb +1 -1
- data/client/lib/fastcomments-client/models/notification_type.rb +1 -1
- data/client/lib/fastcomments-client/models/page_user_entry.rb +208 -0
- data/client/lib/fastcomments-client/models/page_users_info_response.rb +214 -0
- data/client/lib/fastcomments-client/models/page_users_offline_response.rb +238 -0
- data/client/lib/fastcomments-client/models/page_users_online_response.rb +290 -0
- data/client/lib/fastcomments-client/models/pages_sort_by.rb +41 -0
- data/client/lib/fastcomments-client/models/patch_domain_config_params.rb +1 -1
- data/client/lib/fastcomments-client/models/patch_domain_config_response.rb +103 -0
- data/client/lib/fastcomments-client/models/patch_page_api_response.rb +1 -1
- data/client/lib/fastcomments-client/models/patch_sso_user_api_response.rb +1 -1
- data/client/lib/fastcomments-client/models/pending_comment_to_sync_outbound.rb +1 -1
- data/client/lib/fastcomments-client/models/post_remove_comment_api_response.rb +103 -0
- data/client/lib/fastcomments-client/models/pre_ban_summary.rb +240 -0
- data/client/lib/fastcomments-client/models/pub_sub_comment.rb +1 -1
- data/client/lib/fastcomments-client/models/pub_sub_comment_base.rb +1 -1
- data/client/lib/fastcomments-client/models/pub_sub_vote.rb +1 -1
- data/client/lib/fastcomments-client/models/public_api_delete_comment_response.rb +1 -1
- data/client/lib/fastcomments-client/models/public_api_get_comment_text_response.rb +1 -1
- data/client/lib/fastcomments-client/models/public_api_set_comment_text_response.rb +1 -1
- data/client/lib/fastcomments-client/models/public_block_from_comment_params.rb +1 -1
- data/client/lib/fastcomments-client/models/public_comment.rb +1 -1
- data/client/lib/fastcomments-client/models/public_comment_base.rb +1 -1
- data/client/lib/fastcomments-client/models/public_feed_posts_response.rb +1 -1
- data/client/lib/fastcomments-client/models/public_page.rb +268 -0
- data/client/lib/fastcomments-client/models/public_vote.rb +1 -1
- data/client/lib/fastcomments-client/models/put_domain_config_response.rb +103 -0
- data/client/lib/fastcomments-client/models/put_sso_user_api_response.rb +1 -1
- data/client/lib/fastcomments-client/models/query_predicate.rb +1 -1
- data/client/lib/fastcomments-client/models/query_predicate_value.rb +1 -1
- data/client/lib/fastcomments-client/models/question_config.rb +1 -1
- data/client/lib/fastcomments-client/models/question_config_custom_options_inner.rb +1 -1
- data/client/lib/fastcomments-client/models/question_datum.rb +1 -1
- data/client/lib/fastcomments-client/models/question_rendering_type.rb +1 -1
- data/client/lib/fastcomments-client/models/question_result.rb +1 -1
- data/client/lib/fastcomments-client/models/question_result_aggregation_overall.rb +1 -1
- data/client/lib/fastcomments-client/models/question_sub_question_visibility.rb +1 -1
- data/client/lib/fastcomments-client/models/question_when_save.rb +1 -1
- data/client/lib/fastcomments-client/models/react_body_params.rb +1 -1
- data/client/lib/fastcomments-client/models/react_feed_post_response.rb +1 -1
- data/client/lib/fastcomments-client/models/record_string_before_string_or_null_after_string_or_null_value.rb +3 -31
- data/client/lib/fastcomments-client/models/remove_comment_action_response.rb +190 -0
- data/client/lib/fastcomments-client/models/remove_user_badge_response.rb +197 -0
- data/client/lib/fastcomments-client/models/render_email_template_body.rb +1 -1
- data/client/lib/fastcomments-client/models/render_email_template_response.rb +1 -1
- data/client/lib/fastcomments-client/models/renderable_user_notification.rb +1 -1
- data/client/lib/fastcomments-client/models/repeat_comment_check_ignored_reason.rb +1 -1
- data/client/lib/fastcomments-client/models/repeat_comment_handling_action.rb +1 -1
- data/client/lib/fastcomments-client/models/replace_tenant_package_body.rb +1 -1
- data/client/lib/fastcomments-client/models/replace_tenant_user_body.rb +1 -1
- data/client/lib/fastcomments-client/models/reset_user_notifications_response.rb +1 -1
- data/client/lib/fastcomments-client/models/save_comment_response_optimized.rb +1 -1
- data/client/lib/fastcomments-client/models/{create_tenant200_response.rb → save_comments_bulk_response.rb} +3 -3
- data/client/lib/fastcomments-client/models/save_comments_response_with_presence.rb +1 -1
- data/client/lib/fastcomments-client/models/search_users_response.rb +1 -1
- data/client/lib/fastcomments-client/models/{search_users200_response.rb → search_users_result.rb} +2 -3
- data/client/lib/fastcomments-client/models/search_users_sectioned_response.rb +1 -1
- data/client/lib/fastcomments-client/models/set_comment_approved_response.rb +195 -0
- data/client/lib/fastcomments-client/models/set_comment_text_params.rb +164 -0
- data/client/lib/fastcomments-client/models/set_comment_text_response.rb +212 -0
- data/client/lib/fastcomments-client/models/set_comment_text_result.rb +1 -1
- data/client/lib/fastcomments-client/models/set_user_trust_factor_response.rb +195 -0
- data/client/lib/fastcomments-client/models/size_preset.rb +1 -1
- data/client/lib/fastcomments-client/models/sort_directions.rb +1 -1
- data/client/lib/fastcomments-client/models/sortdir.rb +1 -1
- data/client/lib/fastcomments-client/models/spam_rule.rb +1 -1
- data/client/lib/fastcomments-client/models/sso_security_level.rb +1 -1
- data/client/lib/fastcomments-client/models/tenant_badge.rb +564 -0
- data/client/lib/fastcomments-client/models/tenant_hash_tag.rb +1 -1
- data/client/lib/fastcomments-client/models/tenant_package.rb +68 -5
- data/client/lib/fastcomments-client/models/tos_config.rb +1 -1
- data/client/lib/fastcomments-client/models/un_block_from_comment_params.rb +1 -1
- data/client/lib/fastcomments-client/models/unblock_success.rb +1 -1
- data/client/lib/fastcomments-client/models/updatable_comment_params.rb +1 -1
- data/client/lib/fastcomments-client/models/update_api_page_data.rb +1 -1
- data/client/lib/fastcomments-client/models/update_api_user_subscription_data.rb +1 -1
- data/client/lib/fastcomments-client/models/update_apisso_user_data.rb +1 -1
- data/client/lib/fastcomments-client/models/update_domain_config_params.rb +1 -1
- data/client/lib/fastcomments-client/models/update_email_template_body.rb +1 -1
- data/client/lib/fastcomments-client/models/update_feed_post_params.rb +1 -1
- data/client/lib/fastcomments-client/models/update_hash_tag_body.rb +1 -1
- data/client/lib/fastcomments-client/models/update_hash_tag_response.rb +1 -1
- data/client/lib/fastcomments-client/models/update_moderator_body.rb +1 -1
- data/client/lib/fastcomments-client/models/update_notification_body.rb +1 -1
- data/client/lib/fastcomments-client/models/update_question_config_body.rb +1 -1
- data/client/lib/fastcomments-client/models/update_question_result_body.rb +1 -1
- data/client/lib/fastcomments-client/models/update_subscription_api_response.rb +1 -1
- data/client/lib/fastcomments-client/models/update_tenant_body.rb +1 -1
- data/client/lib/fastcomments-client/models/update_tenant_package_body.rb +1 -1
- data/client/lib/fastcomments-client/models/update_tenant_user_body.rb +1 -1
- data/client/lib/fastcomments-client/models/update_user_badge_params.rb +1 -1
- data/client/lib/fastcomments-client/models/{update_user_notification_status200_response.rb → update_user_notification_comment_subscription_status_response.rb} +2 -3
- data/client/lib/fastcomments-client/models/{add_domain_config200_response.rb → update_user_notification_page_subscription_status_response.rb} +4 -4
- data/client/lib/fastcomments-client/models/{aggregate_question_results200_response.rb → update_user_notification_status_response.rb} +4 -4
- data/client/lib/fastcomments-client/models/upload_image_response.rb +1 -1
- data/client/lib/fastcomments-client/models/user.rb +11 -2
- data/client/lib/fastcomments-client/models/user_badge.rb +1 -1
- data/client/lib/fastcomments-client/models/user_badge_progress.rb +1 -1
- data/client/lib/fastcomments-client/models/user_notification.rb +1 -1
- data/client/lib/fastcomments-client/models/user_notification_count.rb +1 -1
- data/client/lib/fastcomments-client/models/user_notification_write_response.rb +1 -1
- data/client/lib/fastcomments-client/models/user_presence_data.rb +1 -1
- data/client/lib/fastcomments-client/models/user_reacts_response.rb +1 -1
- data/client/lib/fastcomments-client/models/user_search_result.rb +1 -1
- data/client/lib/fastcomments-client/models/user_search_section.rb +1 -1
- data/client/lib/fastcomments-client/models/user_search_section_result.rb +1 -1
- data/client/lib/fastcomments-client/models/user_session_info.rb +1 -1
- data/client/lib/fastcomments-client/models/users_list_location.rb +42 -0
- data/client/lib/fastcomments-client/models/vote_body_params.rb +1 -1
- data/client/lib/fastcomments-client/models/vote_delete_response.rb +1 -1
- data/client/lib/fastcomments-client/models/vote_response.rb +1 -1
- data/client/lib/fastcomments-client/models/vote_response_user.rb +1 -1
- data/client/lib/fastcomments-client/models/vote_style.rb +1 -1
- data/client/lib/fastcomments-client/version.rb +2 -2
- data/client/lib/fastcomments-client.rb +101 -98
- data/client/spec/api/default_api_spec.rb +107 -105
- data/client/spec/api/moderation_api_spec.rb +613 -0
- data/client/spec/api/public_api_spec.rb +253 -37
- data/client/spec/models/add_domain_config_params_spec.rb +1 -1
- data/client/spec/models/{add_domain_config200_response_any_of_spec.rb → add_domain_config_response_any_of_spec.rb} +7 -7
- data/client/spec/models/{create_tenant200_response_spec.rb → add_domain_config_response_spec.rb} +3 -3
- data/client/spec/models/add_page_api_response_spec.rb +1 -1
- data/client/spec/models/add_sso_user_api_response_spec.rb +1 -1
- data/client/spec/models/adjust_comment_votes_params_spec.rb +36 -0
- data/client/spec/models/adjust_votes_response_spec.rb +42 -0
- data/client/spec/models/aggregate_question_results_response_spec.rb +1 -1
- data/client/spec/models/{get_user200_response_spec.rb → aggregate_response_spec.rb} +3 -3
- data/client/spec/models/aggregate_time_bucket_spec.rb +1 -1
- data/client/spec/models/aggregation_api_error_spec.rb +54 -0
- data/client/spec/models/aggregation_item_spec.rb +1 -1
- data/client/spec/models/aggregation_op_type_spec.rb +1 -1
- data/client/spec/models/aggregation_operation_spec.rb +1 -1
- data/client/spec/models/aggregation_request_sort_spec.rb +1 -1
- data/client/spec/models/aggregation_request_spec.rb +1 -1
- data/client/spec/models/aggregation_response_spec.rb +1 -1
- data/client/spec/models/aggregation_response_stats_spec.rb +1 -1
- data/client/spec/models/aggregation_value_spec.rb +1 -1
- data/client/spec/models/api_audit_log_spec.rb +1 -1
- data/client/spec/models/api_ban_user_change_log_spec.rb +54 -0
- data/client/spec/models/api_ban_user_changed_values_spec.rb +108 -0
- data/client/spec/models/api_banned_user_spec.rb +108 -0
- data/client/spec/models/api_banned_user_with_multi_match_info_spec.rb +84 -0
- data/client/spec/models/api_comment_base_meta_spec.rb +1 -1
- data/client/spec/models/api_comment_base_spec.rb +2 -2
- data/client/spec/models/api_comment_common_banned_user_spec.rb +78 -0
- data/client/spec/models/api_comment_spec.rb +2 -2
- data/client/spec/models/api_create_user_badge_response_spec.rb +1 -1
- data/client/spec/models/api_domain_configuration_spec.rb +1 -1
- data/client/spec/models/api_empty_response_spec.rb +1 -1
- data/client/spec/models/api_empty_success_response_spec.rb +1 -1
- data/client/spec/models/api_error_spec.rb +1 -1
- data/client/spec/models/api_get_comment_response_spec.rb +1 -1
- data/client/spec/models/api_get_comments_response_spec.rb +1 -1
- data/client/spec/models/api_get_user_badge_progress_list_response_spec.rb +1 -1
- data/client/spec/models/api_get_user_badge_progress_response_spec.rb +1 -1
- data/client/spec/models/api_get_user_badge_response_spec.rb +1 -1
- data/client/spec/models/api_get_user_badges_response_spec.rb +1 -1
- data/client/spec/models/api_moderate_get_user_ban_preferences_response_spec.rb +42 -0
- data/client/spec/models/api_moderate_user_ban_preferences_spec.rb +54 -0
- data/client/spec/models/api_page_spec.rb +1 -1
- data/client/spec/models/{save_comment_response_spec.rb → api_save_comment_response_spec.rb} +7 -7
- data/client/spec/models/api_status_spec.rb +1 -1
- data/client/spec/models/api_tenant_daily_usage_spec.rb +1 -1
- data/client/spec/models/api_tenant_spec.rb +1 -1
- data/client/spec/models/api_ticket_detail_spec.rb +1 -1
- data/client/spec/models/api_ticket_file_spec.rb +1 -1
- data/client/spec/models/api_ticket_spec.rb +1 -1
- data/client/spec/models/api_user_subscription_spec.rb +1 -1
- data/client/spec/models/apisso_user_spec.rb +1 -1
- data/client/spec/models/award_user_badge_response_spec.rb +48 -0
- data/client/spec/models/ban_user_from_comment_result_spec.rb +54 -0
- data/client/spec/models/ban_user_undo_params_spec.rb +36 -0
- data/client/spec/models/{add_domain_config200_response_spec.rb → banned_user_match_matched_on_value_spec.rb} +3 -3
- data/client/spec/models/banned_user_match_spec.rb +42 -0
- data/client/spec/models/banned_user_match_type_spec.rb +30 -0
- data/client/spec/models/billing_info_spec.rb +1 -1
- data/client/spec/models/block_from_comment_params_spec.rb +1 -1
- data/client/spec/models/block_success_spec.rb +1 -1
- data/client/spec/models/build_moderation_filter_params_spec.rb +60 -0
- data/client/spec/models/build_moderation_filter_response_spec.rb +42 -0
- data/client/spec/models/bulk_aggregate_question_item_spec.rb +1 -1
- data/client/spec/models/bulk_aggregate_question_results_request_spec.rb +1 -1
- data/client/spec/models/bulk_aggregate_question_results_response_spec.rb +1 -1
- data/client/spec/models/bulk_create_hash_tags_body_spec.rb +1 -1
- data/client/spec/models/bulk_create_hash_tags_body_tags_inner_spec.rb +1 -1
- data/client/spec/models/{add_hash_tags_bulk200_response_spec.rb → bulk_create_hash_tags_response_results_inner_spec.rb} +3 -3
- data/client/spec/models/bulk_create_hash_tags_response_spec.rb +1 -1
- data/client/spec/models/bulk_pre_ban_params_spec.rb +36 -0
- data/client/spec/models/bulk_pre_ban_summary_spec.rb +66 -0
- data/client/spec/models/change_comment_pin_status_response_spec.rb +1 -1
- data/client/spec/models/change_ticket_state_body_spec.rb +1 -1
- data/client/spec/models/change_ticket_state_response_spec.rb +1 -1
- data/client/spec/models/check_blocked_comments_response_spec.rb +1 -1
- data/client/spec/models/combine_question_results_with_comments_response_spec.rb +1 -1
- data/client/spec/models/comment_data_spec.rb +7 -1
- data/client/spec/models/comment_html_rendering_mode_spec.rb +1 -1
- data/client/spec/models/comment_log_data_spec.rb +7 -1
- data/client/spec/models/comment_log_entry_spec.rb +1 -1
- data/client/spec/models/comment_log_type_spec.rb +1 -1
- data/client/spec/models/comment_question_results_rendering_type_spec.rb +1 -1
- data/client/spec/models/comment_questions_required_spec.rb +1 -1
- data/client/spec/models/comment_text_update_request_spec.rb +1 -1
- data/client/spec/models/comment_thread_deletion_mode_spec.rb +1 -1
- data/client/spec/models/comment_user_badge_info_spec.rb +1 -1
- data/client/spec/models/comment_user_hash_tag_info_spec.rb +1 -1
- data/client/spec/models/comment_user_mention_info_spec.rb +1 -1
- data/client/spec/models/commenter_name_formats_spec.rb +1 -1
- data/client/spec/models/comments_by_ids_params_spec.rb +36 -0
- data/client/spec/models/create_api_page_data_spec.rb +1 -1
- data/client/spec/models/create_api_user_subscription_data_spec.rb +1 -1
- data/client/spec/models/create_apisso_user_data_spec.rb +1 -1
- data/client/spec/models/create_comment_params_spec.rb +7 -1
- data/client/spec/models/create_email_template_body_spec.rb +1 -1
- data/client/spec/models/create_email_template_response_spec.rb +1 -1
- data/client/spec/models/create_feed_post_params_spec.rb +1 -1
- data/client/spec/models/create_feed_post_response_spec.rb +1 -1
- data/client/spec/models/create_feed_posts_response_spec.rb +1 -1
- data/client/spec/models/create_hash_tag_body_spec.rb +1 -1
- data/client/spec/models/create_hash_tag_response_spec.rb +1 -1
- data/client/spec/models/create_moderator_body_spec.rb +1 -1
- data/client/spec/models/create_moderator_response_spec.rb +1 -1
- data/client/spec/models/create_question_config_body_spec.rb +1 -1
- data/client/spec/models/create_question_config_response_spec.rb +1 -1
- data/client/spec/models/create_question_result_body_spec.rb +1 -1
- data/client/spec/models/create_question_result_response_spec.rb +1 -1
- data/client/spec/models/create_subscription_api_response_spec.rb +1 -1
- data/client/spec/models/create_tenant_body_spec.rb +1 -1
- data/client/spec/models/create_tenant_package_body_spec.rb +3 -3
- data/client/spec/models/create_tenant_package_response_spec.rb +1 -1
- data/client/spec/models/create_tenant_response_spec.rb +1 -1
- data/client/spec/models/create_tenant_user_body_spec.rb +1 -1
- data/client/spec/models/create_tenant_user_response_spec.rb +1 -1
- data/client/spec/models/create_ticket_body_spec.rb +1 -1
- data/client/spec/models/create_ticket_response_spec.rb +1 -1
- data/client/spec/models/create_user_badge_params_spec.rb +1 -1
- data/client/spec/models/create_v1_page_react_spec.rb +42 -0
- data/client/spec/models/custom_config_parameters_spec.rb +31 -1
- data/client/spec/models/custom_email_template_spec.rb +1 -1
- data/client/spec/models/delete_comment_action_spec.rb +1 -1
- data/client/spec/models/delete_comment_result_spec.rb +1 -1
- data/client/spec/models/{delete_domain_config200_response_spec.rb → delete_domain_config_response_spec.rb} +7 -7
- data/client/spec/models/{delete_feed_post_public200_response_any_of_spec.rb → delete_feed_post_public_response_spec.rb} +7 -7
- data/client/spec/models/{delete_hash_tag_request_spec.rb → delete_hash_tag_request_body_spec.rb} +7 -7
- data/client/spec/models/delete_page_api_response_spec.rb +1 -1
- data/client/spec/models/delete_sso_user_api_response_spec.rb +1 -1
- data/client/spec/models/delete_subscription_api_response_spec.rb +1 -1
- data/client/spec/models/deleted_comment_result_comment_spec.rb +1 -1
- data/client/spec/models/digest_email_frequency_spec.rb +1 -1
- data/client/spec/models/email_template_definition_spec.rb +1 -1
- data/client/spec/models/email_template_render_error_response_spec.rb +1 -1
- data/client/spec/models/event_log_entry_spec.rb +1 -1
- data/client/spec/models/f_comment_meta_spec.rb +1 -1
- data/client/spec/models/f_comment_spec.rb +7 -1
- data/client/spec/models/feed_post_link_spec.rb +1 -1
- data/client/spec/models/feed_post_media_item_asset_spec.rb +1 -1
- data/client/spec/models/feed_post_media_item_spec.rb +1 -1
- data/client/spec/models/feed_post_spec.rb +1 -1
- data/client/spec/models/feed_post_stats_spec.rb +1 -1
- data/client/spec/models/feed_posts_stats_response_spec.rb +1 -1
- data/client/spec/models/find_comments_by_range_item_spec.rb +1 -1
- data/client/spec/models/find_comments_by_range_response_spec.rb +1 -1
- data/client/spec/models/flag_comment_response_spec.rb +1 -1
- data/client/spec/models/get_audit_logs_response_spec.rb +1 -1
- data/client/spec/models/get_banned_users_count_response_spec.rb +42 -0
- data/client/spec/models/get_banned_users_from_comment_response_spec.rb +52 -0
- data/client/spec/models/get_cached_notification_count_response_spec.rb +1 -1
- data/client/spec/models/get_comment_ban_status_response_spec.rb +48 -0
- data/client/spec/models/get_comment_text_response_spec.rb +42 -0
- data/client/spec/models/get_comment_vote_user_names_success_response_spec.rb +1 -1
- data/client/spec/models/get_comments_for_user_response_spec.rb +36 -0
- data/client/spec/models/get_comments_response_public_comment_spec.rb +1 -1
- data/client/spec/models/get_comments_response_with_presence_public_comment_spec.rb +1 -1
- data/client/spec/models/{add_hash_tag200_response_spec.rb → get_domain_config_response_spec.rb} +3 -3
- data/client/spec/models/{get_domain_configs200_response_any_of1_spec.rb → get_domain_configs_response_any_of1_spec.rb} +7 -7
- data/client/spec/models/{get_domain_configs200_response_any_of_spec.rb → get_domain_configs_response_any_of_spec.rb} +7 -7
- data/client/spec/models/{delete_comment200_response_spec.rb → get_domain_configs_response_spec.rb} +3 -3
- data/client/spec/models/get_email_template_definitions_response_spec.rb +1 -1
- data/client/spec/models/get_email_template_render_errors_response_spec.rb +1 -1
- data/client/spec/models/get_email_template_response_spec.rb +1 -1
- data/client/spec/models/get_email_templates_response_spec.rb +1 -1
- data/client/spec/models/get_event_log_response_spec.rb +1 -1
- data/client/spec/models/get_feed_posts_response_spec.rb +1 -1
- data/client/spec/models/{get_comment200_response_spec.rb → get_gifs_search_response_spec.rb} +3 -3
- data/client/spec/models/{create_ticket200_response_spec.rb → get_gifs_trending_response_spec.rb} +3 -3
- data/client/spec/models/get_hash_tags_response_spec.rb +1 -1
- data/client/spec/models/get_moderator_response_spec.rb +1 -1
- data/client/spec/models/get_moderators_response_spec.rb +1 -1
- data/client/spec/models/get_my_notifications_response_spec.rb +1 -1
- data/client/spec/models/get_notification_count_response_spec.rb +1 -1
- data/client/spec/models/get_notifications_response_spec.rb +1 -1
- data/client/spec/models/get_page_by_urlid_api_response_spec.rb +1 -1
- data/client/spec/models/get_pages_api_response_spec.rb +1 -1
- data/client/spec/models/get_pending_webhook_event_count_response_spec.rb +1 -1
- data/client/spec/models/get_pending_webhook_events_response_spec.rb +1 -1
- data/client/spec/models/get_public_feed_posts_response_spec.rb +1 -1
- data/client/spec/models/get_public_pages_response_spec.rb +48 -0
- data/client/spec/models/get_question_config_response_spec.rb +1 -1
- data/client/spec/models/get_question_configs_response_spec.rb +1 -1
- data/client/spec/models/get_question_result_response_spec.rb +1 -1
- data/client/spec/models/get_question_results_response_spec.rb +1 -1
- data/client/spec/models/get_sso_user_by_email_api_response_spec.rb +1 -1
- data/client/spec/models/get_sso_user_by_id_api_response_spec.rb +1 -1
- data/client/spec/models/{get_sso_users200_response_spec.rb → get_sso_users_response_spec.rb} +7 -7
- data/client/spec/models/get_subscriptions_api_response_spec.rb +1 -1
- data/client/spec/models/get_tenant_daily_usages_response_spec.rb +1 -1
- data/client/spec/models/get_tenant_manual_badges_response_spec.rb +42 -0
- data/client/spec/models/get_tenant_package_response_spec.rb +1 -1
- data/client/spec/models/get_tenant_packages_response_spec.rb +1 -1
- data/client/spec/models/get_tenant_response_spec.rb +1 -1
- data/client/spec/models/get_tenant_user_response_spec.rb +1 -1
- data/client/spec/models/get_tenant_users_response_spec.rb +1 -1
- data/client/spec/models/get_tenants_response_spec.rb +1 -1
- data/client/spec/models/get_ticket_response_spec.rb +1 -1
- data/client/spec/models/get_tickets_response_spec.rb +1 -1
- data/client/spec/models/get_translations_response_spec.rb +42 -0
- data/client/spec/models/get_user_internal_profile_response_profile_spec.rb +132 -0
- data/client/spec/models/get_user_internal_profile_response_spec.rb +42 -0
- data/client/spec/models/get_user_manual_badges_response_spec.rb +42 -0
- data/client/spec/models/get_user_notification_count_response_spec.rb +1 -1
- data/client/spec/models/get_user_presence_statuses_response_spec.rb +1 -1
- data/client/spec/models/get_user_response_spec.rb +1 -1
- data/client/spec/models/get_user_trust_factor_response_spec.rb +48 -0
- data/client/spec/models/get_v1_page_likes_spec.rb +60 -0
- data/client/spec/models/get_v2_page_react_users_response_spec.rb +42 -0
- data/client/spec/models/get_v2_page_reacts_spec.rb +48 -0
- data/client/spec/models/get_votes_for_user_response_spec.rb +1 -1
- data/client/spec/models/get_votes_response_spec.rb +1 -1
- data/client/spec/models/gif_get_large_response_spec.rb +42 -0
- data/client/spec/models/gif_rating_spec.rb +1 -1
- data/client/spec/models/gif_search_internal_error_spec.rb +42 -0
- data/client/spec/models/{reset_user_notifications200_response_spec.rb → gif_search_response_images_inner_inner_spec.rb} +3 -3
- data/client/spec/models/gif_search_response_spec.rb +42 -0
- data/client/spec/models/header_account_notification_spec.rb +7 -1
- data/client/spec/models/header_state_spec.rb +1 -1
- data/client/spec/models/ignored_response_spec.rb +1 -1
- data/client/spec/models/image_content_profanity_level_spec.rb +1 -1
- data/client/spec/models/imported_agent_approval_notification_frequency_spec.rb +30 -0
- data/client/spec/models/imported_site_type_spec.rb +1 -1
- data/client/spec/models/live_event_extra_info_spec.rb +1 -1
- data/client/spec/models/live_event_spec.rb +7 -1
- data/client/spec/models/live_event_type_spec.rb +1 -1
- data/client/spec/models/media_asset_spec.rb +1 -1
- data/client/spec/models/mention_auto_complete_mode_spec.rb +1 -1
- data/client/spec/models/meta_item_spec.rb +1 -1
- data/client/spec/models/moderation_api_child_comments_response_spec.rb +42 -0
- data/client/spec/models/moderation_api_comment_log_spec.rb +54 -0
- data/client/spec/models/moderation_api_comment_response_spec.rb +42 -0
- data/client/spec/models/moderation_api_comment_spec.rb +282 -0
- data/client/spec/models/moderation_api_count_comments_response_spec.rb +42 -0
- data/client/spec/models/moderation_api_get_comment_ids_response_spec.rb +48 -0
- data/client/spec/models/moderation_api_get_comments_response_spec.rb +54 -0
- data/client/spec/models/moderation_api_get_logs_response_spec.rb +42 -0
- data/client/spec/models/moderation_comment_search_response_spec.rb +42 -0
- data/client/spec/models/moderation_export_response_spec.rb +42 -0
- data/client/spec/models/moderation_export_status_response_spec.rb +54 -0
- data/client/spec/models/moderation_filter_spec.rb +102 -0
- data/client/spec/models/moderation_page_search_projected_spec.rb +54 -0
- data/client/spec/models/moderation_page_search_response_spec.rb +42 -0
- data/client/spec/models/moderation_site_search_projected_spec.rb +42 -0
- data/client/spec/models/moderation_site_search_response_spec.rb +42 -0
- data/client/spec/models/moderation_suggest_response_spec.rb +54 -0
- data/client/spec/models/moderation_user_search_projected_spec.rb +54 -0
- data/client/spec/models/moderation_user_search_response_spec.rb +42 -0
- data/client/spec/models/moderator_spec.rb +1 -1
- data/client/spec/models/notification_and_count_spec.rb +1 -1
- data/client/spec/models/notification_object_type_spec.rb +1 -1
- data/client/spec/models/notification_type_spec.rb +1 -1
- data/client/spec/models/page_user_entry_spec.rb +54 -0
- data/client/spec/models/page_users_info_response_spec.rb +42 -0
- data/client/spec/models/page_users_offline_response_spec.rb +54 -0
- data/client/spec/models/page_users_online_response_spec.rb +66 -0
- data/client/spec/models/pages_sort_by_spec.rb +30 -0
- data/client/spec/models/patch_domain_config_params_spec.rb +1 -1
- data/client/spec/models/{create_feed_post200_response_spec.rb → patch_domain_config_response_spec.rb} +3 -3
- data/client/spec/models/patch_page_api_response_spec.rb +1 -1
- data/client/spec/models/patch_sso_user_api_response_spec.rb +1 -1
- data/client/spec/models/pending_comment_to_sync_outbound_spec.rb +1 -1
- data/client/spec/models/{delete_comment_vote200_response_spec.rb → post_remove_comment_api_response_spec.rb} +3 -3
- data/client/spec/models/pre_ban_summary_spec.rb +48 -0
- data/client/spec/models/pub_sub_comment_base_spec.rb +1 -1
- data/client/spec/models/pub_sub_comment_spec.rb +1 -1
- data/client/spec/models/pub_sub_vote_spec.rb +1 -1
- data/client/spec/models/public_api_delete_comment_response_spec.rb +1 -1
- data/client/spec/models/public_api_get_comment_text_response_spec.rb +1 -1
- data/client/spec/models/public_api_set_comment_text_response_spec.rb +1 -1
- data/client/spec/models/public_block_from_comment_params_spec.rb +1 -1
- data/client/spec/models/public_comment_base_spec.rb +1 -1
- data/client/spec/models/public_comment_spec.rb +1 -1
- data/client/spec/models/public_feed_posts_response_spec.rb +1 -1
- data/client/spec/models/public_page_spec.rb +60 -0
- data/client/spec/models/public_vote_spec.rb +1 -1
- data/client/spec/models/{flag_comment200_response_spec.rb → put_domain_config_response_spec.rb} +3 -3
- data/client/spec/models/put_sso_user_api_response_spec.rb +1 -1
- data/client/spec/models/query_predicate_spec.rb +1 -1
- data/client/spec/models/query_predicate_value_spec.rb +1 -1
- data/client/spec/models/question_config_custom_options_inner_spec.rb +1 -1
- data/client/spec/models/question_config_spec.rb +1 -1
- data/client/spec/models/question_datum_spec.rb +1 -1
- data/client/spec/models/question_rendering_type_spec.rb +1 -1
- data/client/spec/models/question_result_aggregation_overall_spec.rb +1 -1
- data/client/spec/models/question_result_spec.rb +1 -1
- data/client/spec/models/question_sub_question_visibility_spec.rb +1 -1
- data/client/spec/models/question_when_save_spec.rb +1 -1
- data/client/spec/models/react_body_params_spec.rb +1 -1
- data/client/spec/models/react_feed_post_response_spec.rb +1 -1
- data/client/spec/models/record_string_before_string_or_null_after_string_or_null_value_spec.rb +1 -1
- data/client/spec/models/remove_comment_action_response_spec.rb +42 -0
- data/client/spec/models/remove_user_badge_response_spec.rb +42 -0
- data/client/spec/models/render_email_template_body_spec.rb +1 -1
- data/client/spec/models/render_email_template_response_spec.rb +1 -1
- data/client/spec/models/renderable_user_notification_spec.rb +1 -1
- data/client/spec/models/repeat_comment_check_ignored_reason_spec.rb +1 -1
- data/client/spec/models/repeat_comment_handling_action_spec.rb +1 -1
- data/client/spec/models/replace_tenant_package_body_spec.rb +1 -1
- data/client/spec/models/replace_tenant_user_body_spec.rb +1 -1
- data/client/spec/models/reset_user_notifications_response_spec.rb +1 -1
- data/client/spec/models/save_comment_response_optimized_spec.rb +1 -1
- data/client/spec/models/save_comments_bulk_response_spec.rb +21 -0
- data/client/spec/models/save_comments_response_with_presence_spec.rb +1 -1
- data/client/spec/models/search_users_response_spec.rb +1 -1
- data/client/spec/models/{get_votes200_response_spec.rb → search_users_result_spec.rb} +3 -3
- data/client/spec/models/search_users_sectioned_response_spec.rb +1 -1
- data/client/spec/models/set_comment_approved_response_spec.rb +42 -0
- data/client/spec/models/set_comment_text_params_spec.rb +36 -0
- data/client/spec/models/set_comment_text_response_spec.rb +42 -0
- data/client/spec/models/set_comment_text_result_spec.rb +1 -1
- data/client/spec/models/set_user_trust_factor_response_spec.rb +42 -0
- data/client/spec/models/size_preset_spec.rb +1 -1
- data/client/spec/models/sort_directions_spec.rb +1 -1
- data/client/spec/models/sortdir_spec.rb +1 -1
- data/client/spec/models/spam_rule_spec.rb +1 -1
- data/client/spec/models/sso_security_level_spec.rb +1 -1
- data/client/spec/models/tenant_badge_spec.rb +156 -0
- data/client/spec/models/tenant_hash_tag_spec.rb +1 -1
- data/client/spec/models/tenant_package_spec.rb +43 -1
- data/client/spec/models/tos_config_spec.rb +1 -1
- data/client/spec/models/un_block_from_comment_params_spec.rb +1 -1
- data/client/spec/models/unblock_success_spec.rb +1 -1
- data/client/spec/models/updatable_comment_params_spec.rb +1 -1
- data/client/spec/models/update_api_page_data_spec.rb +1 -1
- data/client/spec/models/update_api_user_subscription_data_spec.rb +1 -1
- data/client/spec/models/update_apisso_user_data_spec.rb +1 -1
- data/client/spec/models/update_domain_config_params_spec.rb +1 -1
- data/client/spec/models/update_email_template_body_spec.rb +1 -1
- data/client/spec/models/update_feed_post_params_spec.rb +1 -1
- data/client/spec/models/update_hash_tag_body_spec.rb +1 -1
- data/client/spec/models/update_hash_tag_response_spec.rb +1 -1
- data/client/spec/models/update_moderator_body_spec.rb +1 -1
- data/client/spec/models/update_notification_body_spec.rb +1 -1
- data/client/spec/models/update_question_config_body_spec.rb +1 -1
- data/client/spec/models/update_question_result_body_spec.rb +1 -1
- data/client/spec/models/update_subscription_api_response_spec.rb +1 -1
- data/client/spec/models/update_tenant_body_spec.rb +1 -1
- data/client/spec/models/update_tenant_package_body_spec.rb +1 -1
- data/client/spec/models/update_tenant_user_body_spec.rb +1 -1
- data/client/spec/models/update_user_badge_params_spec.rb +1 -1
- data/client/spec/models/update_user_notification_comment_subscription_status_response_spec.rb +21 -0
- data/client/spec/models/{aggregate_question_results200_response_spec.rb → update_user_notification_page_subscription_status_response_spec.rb} +3 -3
- data/client/spec/models/{update_user_notification_status200_response_spec.rb → update_user_notification_status_response_spec.rb} +3 -3
- data/client/spec/models/upload_image_response_spec.rb +1 -1
- data/client/spec/models/user_badge_progress_spec.rb +1 -1
- data/client/spec/models/user_badge_spec.rb +1 -1
- data/client/spec/models/user_notification_count_spec.rb +1 -1
- data/client/spec/models/user_notification_spec.rb +1 -1
- data/client/spec/models/user_notification_write_response_spec.rb +1 -1
- data/client/spec/models/user_presence_data_spec.rb +1 -1
- data/client/spec/models/user_reacts_response_spec.rb +1 -1
- data/client/spec/models/user_search_result_spec.rb +1 -1
- data/client/spec/models/user_search_section_result_spec.rb +1 -1
- data/client/spec/models/user_search_section_spec.rb +1 -1
- data/client/spec/models/user_session_info_spec.rb +1 -1
- data/client/spec/models/user_spec.rb +7 -1
- data/client/spec/models/users_list_location_spec.rb +30 -0
- data/client/spec/models/vote_body_params_spec.rb +1 -1
- data/client/spec/models/vote_delete_response_spec.rb +1 -1
- data/client/spec/models/vote_response_spec.rb +1 -1
- data/client/spec/models/vote_response_user_spec.rb +1 -1
- data/client/spec/models/vote_style_spec.rb +1 -1
- data/client/spec/spec_helper.rb +1 -1
- data/lib/fastcomments.rb +1 -1
- metadata +302 -293
- data/client/docs/AddHashTag200Response.md +0 -34
- data/client/docs/AddHashTagsBulk200Response.md +0 -34
- data/client/docs/AggregateQuestionResults200Response.md +0 -34
- data/client/docs/BlockFromCommentPublic200Response.md +0 -34
- data/client/docs/BulkAggregateQuestionResults200Response.md +0 -34
- data/client/docs/ChangeTicketState200Response.md +0 -34
- data/client/docs/CheckedCommentsForBlocked200Response.md +0 -34
- data/client/docs/CombineCommentsWithQuestionResults200Response.md +0 -34
- data/client/docs/CreateCommentPublic200Response.md +0 -40
- data/client/docs/CreateEmailTemplate200Response.md +0 -34
- data/client/docs/CreateFeedPost200Response.md +0 -34
- data/client/docs/CreateFeedPostPublic200Response.md +0 -34
- data/client/docs/CreateModerator200Response.md +0 -34
- data/client/docs/CreateQuestionConfig200Response.md +0 -34
- data/client/docs/CreateQuestionResult200Response.md +0 -34
- data/client/docs/CreateTenant200Response.md +0 -34
- data/client/docs/CreateTenantPackage200Response.md +0 -34
- data/client/docs/CreateTenantUser200Response.md +0 -34
- data/client/docs/CreateTicket200Response.md +0 -34
- data/client/docs/CreateUserBadge200Response.md +0 -36
- data/client/docs/DeleteComment200Response.md +0 -34
- data/client/docs/DeleteCommentPublic200Response.md +0 -36
- data/client/docs/DeleteCommentVote200Response.md +0 -34
- data/client/docs/DeleteFeedPostPublic200Response.md +0 -32
- data/client/docs/FlagComment200Response.md +0 -36
- data/client/docs/FlagCommentPublic200Response.md +0 -32
- data/client/docs/GetAuditLogs200Response.md +0 -34
- data/client/docs/GetCachedNotificationCount200Response.md +0 -34
- data/client/docs/GetComment200Response.md +0 -34
- data/client/docs/GetCommentText200Response.md +0 -36
- data/client/docs/GetCommentVoteUserNames200Response.md +0 -36
- data/client/docs/GetComments200Response.md +0 -34
- data/client/docs/GetCommentsPublic200Response.md +0 -78
- data/client/docs/GetEmailTemplate200Response.md +0 -34
- data/client/docs/GetEmailTemplateDefinitions200Response.md +0 -34
- data/client/docs/GetEmailTemplateRenderErrors200Response.md +0 -34
- data/client/docs/GetEmailTemplates200Response.md +0 -34
- data/client/docs/GetEventLog200Response.md +0 -34
- data/client/docs/GetFeedPosts200Response.md +0 -34
- data/client/docs/GetFeedPostsPublic200Response.md +0 -44
- data/client/docs/GetFeedPostsStats200Response.md +0 -34
- data/client/docs/GetHashTags200Response.md +0 -34
- data/client/docs/GetModerator200Response.md +0 -34
- data/client/docs/GetModerators200Response.md +0 -34
- data/client/docs/GetNotificationCount200Response.md +0 -34
- data/client/docs/GetNotifications200Response.md +0 -34
- data/client/docs/GetPendingWebhookEventCount200Response.md +0 -34
- data/client/docs/GetPendingWebhookEvents200Response.md +0 -34
- data/client/docs/GetQuestionConfig200Response.md +0 -34
- data/client/docs/GetQuestionConfigs200Response.md +0 -34
- data/client/docs/GetQuestionResult200Response.md +0 -34
- data/client/docs/GetQuestionResults200Response.md +0 -34
- data/client/docs/GetTenant200Response.md +0 -34
- data/client/docs/GetTenantDailyUsages200Response.md +0 -34
- data/client/docs/GetTenantPackage200Response.md +0 -34
- data/client/docs/GetTenantPackages200Response.md +0 -34
- data/client/docs/GetTenantUser200Response.md +0 -34
- data/client/docs/GetTenantUsers200Response.md +0 -34
- data/client/docs/GetTenants200Response.md +0 -34
- data/client/docs/GetTicket200Response.md +0 -36
- data/client/docs/GetTickets200Response.md +0 -34
- data/client/docs/GetUser200Response.md +0 -34
- data/client/docs/GetUserBadge200Response.md +0 -34
- data/client/docs/GetUserBadgeProgressById200Response.md +0 -34
- data/client/docs/GetUserBadgeProgressList200Response.md +0 -34
- data/client/docs/GetUserBadges200Response.md +0 -34
- data/client/docs/GetUserNotificationCount200Response.md +0 -34
- data/client/docs/GetUserNotifications200Response.md +0 -40
- data/client/docs/GetUserPresenceStatuses200Response.md +0 -34
- data/client/docs/GetUserReactsPublic200Response.md +0 -34
- data/client/docs/GetVotes200Response.md +0 -38
- data/client/docs/GetVotesForUser200Response.md +0 -38
- data/client/docs/LockComment200Response.md +0 -32
- data/client/docs/PinComment200Response.md +0 -34
- data/client/docs/ReactFeedPostPublic200Response.md +0 -36
- data/client/docs/RenderEmailTemplate200Response.md +0 -34
- data/client/docs/ResetUserNotifications200Response.md +0 -32
- data/client/docs/SearchUsers200Response.md +0 -36
- data/client/docs/SetCommentText200Response.md +0 -34
- data/client/docs/UnBlockCommentPublic200Response.md +0 -34
- data/client/docs/UpdateUserBadge200Response.md +0 -32
- data/client/docs/UpdateUserNotificationStatus200Response.md +0 -38
- data/client/docs/VoteComment200Response.md +0 -40
- data/client/lib/fastcomments-client/models/bulk_aggregate_question_results200_response.rb +0 -103
- data/client/lib/fastcomments-client/models/checked_comments_for_blocked200_response.rb +0 -103
- data/client/lib/fastcomments-client/models/combine_comments_with_question_results200_response.rb +0 -103
- data/client/lib/fastcomments-client/models/create_comment_public200_response.rb +0 -103
- data/client/lib/fastcomments-client/models/create_email_template200_response.rb +0 -103
- data/client/lib/fastcomments-client/models/create_feed_post200_response.rb +0 -103
- data/client/lib/fastcomments-client/models/create_feed_post_public200_response.rb +0 -103
- data/client/lib/fastcomments-client/models/create_moderator200_response.rb +0 -103
- data/client/lib/fastcomments-client/models/create_question_config200_response.rb +0 -103
- data/client/lib/fastcomments-client/models/create_question_result200_response.rb +0 -103
- data/client/lib/fastcomments-client/models/create_tenant_package200_response.rb +0 -103
- data/client/lib/fastcomments-client/models/create_tenant_user200_response.rb +0 -103
- data/client/lib/fastcomments-client/models/create_ticket200_response.rb +0 -103
- data/client/lib/fastcomments-client/models/create_user_badge200_response.rb +0 -103
- data/client/lib/fastcomments-client/models/delete_comment200_response.rb +0 -103
- data/client/lib/fastcomments-client/models/delete_comment_public200_response.rb +0 -103
- data/client/lib/fastcomments-client/models/delete_comment_vote200_response.rb +0 -103
- data/client/lib/fastcomments-client/models/delete_feed_post_public200_response.rb +0 -103
- data/client/lib/fastcomments-client/models/flag_comment200_response.rb +0 -103
- data/client/lib/fastcomments-client/models/flag_comment_public200_response.rb +0 -103
- data/client/lib/fastcomments-client/models/get_audit_logs200_response.rb +0 -103
- data/client/lib/fastcomments-client/models/get_cached_notification_count200_response.rb +0 -103
- data/client/lib/fastcomments-client/models/get_comment200_response.rb +0 -103
- data/client/lib/fastcomments-client/models/get_comment_text200_response.rb +0 -103
- data/client/lib/fastcomments-client/models/get_comment_vote_user_names200_response.rb +0 -103
- data/client/lib/fastcomments-client/models/get_comments200_response.rb +0 -103
- data/client/lib/fastcomments-client/models/get_comments_public200_response.rb +0 -103
- data/client/lib/fastcomments-client/models/get_domain_config200_response.rb +0 -103
- data/client/lib/fastcomments-client/models/get_domain_configs200_response.rb +0 -103
- data/client/lib/fastcomments-client/models/get_email_template200_response.rb +0 -103
- data/client/lib/fastcomments-client/models/get_email_template_definitions200_response.rb +0 -103
- data/client/lib/fastcomments-client/models/get_email_template_render_errors200_response.rb +0 -103
- data/client/lib/fastcomments-client/models/get_email_templates200_response.rb +0 -103
- data/client/lib/fastcomments-client/models/get_event_log200_response.rb +0 -103
- data/client/lib/fastcomments-client/models/get_feed_posts200_response.rb +0 -103
- data/client/lib/fastcomments-client/models/get_feed_posts_public200_response.rb +0 -103
- data/client/lib/fastcomments-client/models/get_feed_posts_stats200_response.rb +0 -103
- data/client/lib/fastcomments-client/models/get_hash_tags200_response.rb +0 -103
- data/client/lib/fastcomments-client/models/get_moderator200_response.rb +0 -103
- data/client/lib/fastcomments-client/models/get_moderators200_response.rb +0 -103
- data/client/lib/fastcomments-client/models/get_notification_count200_response.rb +0 -103
- data/client/lib/fastcomments-client/models/get_notifications200_response.rb +0 -103
- data/client/lib/fastcomments-client/models/get_pending_webhook_event_count200_response.rb +0 -103
- data/client/lib/fastcomments-client/models/get_pending_webhook_events200_response.rb +0 -103
- data/client/lib/fastcomments-client/models/get_question_config200_response.rb +0 -103
- data/client/lib/fastcomments-client/models/get_question_configs200_response.rb +0 -103
- data/client/lib/fastcomments-client/models/get_question_result200_response.rb +0 -103
- data/client/lib/fastcomments-client/models/get_question_results200_response.rb +0 -103
- data/client/lib/fastcomments-client/models/get_tenant200_response.rb +0 -103
- data/client/lib/fastcomments-client/models/get_tenant_daily_usages200_response.rb +0 -103
- data/client/lib/fastcomments-client/models/get_tenant_package200_response.rb +0 -103
- data/client/lib/fastcomments-client/models/get_tenant_packages200_response.rb +0 -103
- data/client/lib/fastcomments-client/models/get_tenant_user200_response.rb +0 -103
- data/client/lib/fastcomments-client/models/get_tenant_users200_response.rb +0 -103
- data/client/lib/fastcomments-client/models/get_tenants200_response.rb +0 -103
- data/client/lib/fastcomments-client/models/get_ticket200_response.rb +0 -103
- data/client/lib/fastcomments-client/models/get_tickets200_response.rb +0 -103
- data/client/lib/fastcomments-client/models/get_user_badge200_response.rb +0 -103
- data/client/lib/fastcomments-client/models/get_user_badge_progress_by_id200_response.rb +0 -103
- data/client/lib/fastcomments-client/models/get_user_badge_progress_list200_response.rb +0 -103
- data/client/lib/fastcomments-client/models/get_user_badges200_response.rb +0 -103
- data/client/lib/fastcomments-client/models/get_user_notification_count200_response.rb +0 -103
- data/client/lib/fastcomments-client/models/get_user_notifications200_response.rb +0 -103
- data/client/lib/fastcomments-client/models/get_user_presence_statuses200_response.rb +0 -103
- data/client/lib/fastcomments-client/models/get_user_reacts_public200_response.rb +0 -103
- data/client/lib/fastcomments-client/models/get_votes200_response.rb +0 -103
- data/client/lib/fastcomments-client/models/get_votes_for_user200_response.rb +0 -103
- data/client/lib/fastcomments-client/models/lock_comment200_response.rb +0 -103
- data/client/lib/fastcomments-client/models/patch_hash_tag200_response.rb +0 -103
- data/client/lib/fastcomments-client/models/pin_comment200_response.rb +0 -103
- data/client/lib/fastcomments-client/models/react_feed_post_public200_response.rb +0 -103
- data/client/lib/fastcomments-client/models/render_email_template200_response.rb +0 -103
- data/client/lib/fastcomments-client/models/reset_user_notifications200_response.rb +0 -103
- data/client/lib/fastcomments-client/models/save_comment200_response.rb +0 -103
- data/client/lib/fastcomments-client/models/set_comment_text200_response.rb +0 -103
- data/client/lib/fastcomments-client/models/un_block_comment_public200_response.rb +0 -103
- data/client/lib/fastcomments-client/models/update_user_badge200_response.rb +0 -103
- data/client/lib/fastcomments-client/models/vote_comment200_response.rb +0 -103
- data/client/spec/models/block_from_comment_public200_response_spec.rb +0 -21
- data/client/spec/models/bulk_aggregate_question_results200_response_spec.rb +0 -21
- data/client/spec/models/change_ticket_state200_response_spec.rb +0 -21
- data/client/spec/models/checked_comments_for_blocked200_response_spec.rb +0 -21
- data/client/spec/models/combine_comments_with_question_results200_response_spec.rb +0 -21
- data/client/spec/models/create_comment_public200_response_spec.rb +0 -21
- data/client/spec/models/create_email_template200_response_spec.rb +0 -21
- data/client/spec/models/create_feed_post_public200_response_spec.rb +0 -21
- data/client/spec/models/create_moderator200_response_spec.rb +0 -21
- data/client/spec/models/create_question_config200_response_spec.rb +0 -21
- data/client/spec/models/create_question_result200_response_spec.rb +0 -21
- data/client/spec/models/create_tenant_package200_response_spec.rb +0 -21
- data/client/spec/models/create_tenant_user200_response_spec.rb +0 -21
- data/client/spec/models/create_user_badge200_response_spec.rb +0 -21
- data/client/spec/models/delete_comment_public200_response_spec.rb +0 -21
- data/client/spec/models/delete_feed_post_public200_response_spec.rb +0 -21
- data/client/spec/models/flag_comment_public200_response_spec.rb +0 -21
- data/client/spec/models/get_audit_logs200_response_spec.rb +0 -21
- data/client/spec/models/get_cached_notification_count200_response_spec.rb +0 -21
- data/client/spec/models/get_comment_text200_response_spec.rb +0 -21
- data/client/spec/models/get_comment_vote_user_names200_response_spec.rb +0 -21
- data/client/spec/models/get_comments200_response_spec.rb +0 -21
- data/client/spec/models/get_comments_public200_response_spec.rb +0 -21
- data/client/spec/models/get_domain_config200_response_spec.rb +0 -21
- data/client/spec/models/get_domain_configs200_response_spec.rb +0 -21
- data/client/spec/models/get_email_template200_response_spec.rb +0 -21
- data/client/spec/models/get_email_template_definitions200_response_spec.rb +0 -21
- data/client/spec/models/get_email_template_render_errors200_response_spec.rb +0 -21
- data/client/spec/models/get_email_templates200_response_spec.rb +0 -21
- data/client/spec/models/get_event_log200_response_spec.rb +0 -21
- data/client/spec/models/get_feed_posts200_response_spec.rb +0 -21
- data/client/spec/models/get_feed_posts_public200_response_spec.rb +0 -21
- data/client/spec/models/get_feed_posts_stats200_response_spec.rb +0 -21
- data/client/spec/models/get_hash_tags200_response_spec.rb +0 -21
- data/client/spec/models/get_moderator200_response_spec.rb +0 -21
- data/client/spec/models/get_moderators200_response_spec.rb +0 -21
- data/client/spec/models/get_notification_count200_response_spec.rb +0 -21
- data/client/spec/models/get_notifications200_response_spec.rb +0 -21
- data/client/spec/models/get_pending_webhook_event_count200_response_spec.rb +0 -21
- data/client/spec/models/get_pending_webhook_events200_response_spec.rb +0 -21
- data/client/spec/models/get_question_config200_response_spec.rb +0 -21
- data/client/spec/models/get_question_configs200_response_spec.rb +0 -21
- data/client/spec/models/get_question_result200_response_spec.rb +0 -21
- data/client/spec/models/get_question_results200_response_spec.rb +0 -21
- data/client/spec/models/get_tenant200_response_spec.rb +0 -21
- data/client/spec/models/get_tenant_daily_usages200_response_spec.rb +0 -21
- data/client/spec/models/get_tenant_package200_response_spec.rb +0 -21
- data/client/spec/models/get_tenant_packages200_response_spec.rb +0 -21
- data/client/spec/models/get_tenant_user200_response_spec.rb +0 -21
- data/client/spec/models/get_tenant_users200_response_spec.rb +0 -21
- data/client/spec/models/get_tenants200_response_spec.rb +0 -21
- data/client/spec/models/get_ticket200_response_spec.rb +0 -21
- data/client/spec/models/get_tickets200_response_spec.rb +0 -21
- data/client/spec/models/get_user_badge200_response_spec.rb +0 -21
- data/client/spec/models/get_user_badge_progress_by_id200_response_spec.rb +0 -21
- data/client/spec/models/get_user_badge_progress_list200_response_spec.rb +0 -21
- data/client/spec/models/get_user_badges200_response_spec.rb +0 -21
- data/client/spec/models/get_user_notification_count200_response_spec.rb +0 -21
- data/client/spec/models/get_user_notifications200_response_spec.rb +0 -21
- data/client/spec/models/get_user_presence_statuses200_response_spec.rb +0 -21
- data/client/spec/models/get_user_reacts_public200_response_spec.rb +0 -21
- data/client/spec/models/get_votes_for_user200_response_spec.rb +0 -21
- data/client/spec/models/lock_comment200_response_spec.rb +0 -21
- data/client/spec/models/patch_hash_tag200_response_spec.rb +0 -21
- data/client/spec/models/pin_comment200_response_spec.rb +0 -21
- data/client/spec/models/react_feed_post_public200_response_spec.rb +0 -21
- data/client/spec/models/record_string_string_or_number_value_spec.rb +0 -21
- data/client/spec/models/render_email_template200_response_spec.rb +0 -21
- data/client/spec/models/save_comment200_response_spec.rb +0 -21
- data/client/spec/models/search_users200_response_spec.rb +0 -21
- data/client/spec/models/set_comment_text200_response_spec.rb +0 -21
- data/client/spec/models/un_block_comment_public200_response_spec.rb +0 -21
- data/client/spec/models/update_user_badge200_response_spec.rb +0 -21
- data/client/spec/models/vote_comment200_response_spec.rb +0 -21
|
@@ -0,0 +1,3162 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#fastcomments
|
|
3
|
+
|
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 0.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.23.0-SNAPSHOT
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'cgi'
|
|
14
|
+
|
|
15
|
+
module FastCommentsClient
|
|
16
|
+
class ModerationApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# @param tenant_id [String]
|
|
23
|
+
# @param comment_id [String]
|
|
24
|
+
# @param vote_id [String]
|
|
25
|
+
# @param [Hash] opts the optional parameters
|
|
26
|
+
# @option opts [String] :broadcast_id
|
|
27
|
+
# @option opts [String] :sso
|
|
28
|
+
# @return [VoteDeleteResponse]
|
|
29
|
+
def delete_moderation_vote(tenant_id, comment_id, vote_id, opts = {})
|
|
30
|
+
data, _status_code, _headers = delete_moderation_vote_with_http_info(tenant_id, comment_id, vote_id, opts)
|
|
31
|
+
data
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# @param tenant_id [String]
|
|
35
|
+
# @param comment_id [String]
|
|
36
|
+
# @param vote_id [String]
|
|
37
|
+
# @param [Hash] opts the optional parameters
|
|
38
|
+
# @option opts [String] :broadcast_id
|
|
39
|
+
# @option opts [String] :sso
|
|
40
|
+
# @return [Array<(VoteDeleteResponse, Integer, Hash)>] VoteDeleteResponse data, response status code and response headers
|
|
41
|
+
def delete_moderation_vote_with_http_info(tenant_id, comment_id, vote_id, opts = {})
|
|
42
|
+
if @api_client.config.debugging
|
|
43
|
+
@api_client.config.logger.debug 'Calling API: ModerationApi.delete_moderation_vote ...'
|
|
44
|
+
end
|
|
45
|
+
# verify the required parameter 'tenant_id' is set
|
|
46
|
+
if @api_client.config.client_side_validation && tenant_id.nil?
|
|
47
|
+
fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.delete_moderation_vote"
|
|
48
|
+
end
|
|
49
|
+
# verify the required parameter 'comment_id' is set
|
|
50
|
+
if @api_client.config.client_side_validation && comment_id.nil?
|
|
51
|
+
fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.delete_moderation_vote"
|
|
52
|
+
end
|
|
53
|
+
# verify the required parameter 'vote_id' is set
|
|
54
|
+
if @api_client.config.client_side_validation && vote_id.nil?
|
|
55
|
+
fail ArgumentError, "Missing the required parameter 'vote_id' when calling ModerationApi.delete_moderation_vote"
|
|
56
|
+
end
|
|
57
|
+
# resource path
|
|
58
|
+
local_var_path = '/auth/my-account/moderate-comments/mod_api/vote/{commentId}/{voteId}'.sub('{commentId}', CGI.escape(comment_id.to_s)).sub('{voteId}', CGI.escape(vote_id.to_s))
|
|
59
|
+
|
|
60
|
+
# query parameters
|
|
61
|
+
query_params = opts[:query_params] || {}
|
|
62
|
+
query_params[:'tenantId'] = tenant_id
|
|
63
|
+
query_params[:'broadcastId'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil?
|
|
64
|
+
query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
|
|
65
|
+
|
|
66
|
+
# header parameters
|
|
67
|
+
header_params = opts[:header_params] || {}
|
|
68
|
+
# HTTP header 'Accept' (if needed)
|
|
69
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
70
|
+
|
|
71
|
+
# form parameters
|
|
72
|
+
form_params = opts[:form_params] || {}
|
|
73
|
+
|
|
74
|
+
# http body (model)
|
|
75
|
+
post_body = opts[:debug_body]
|
|
76
|
+
|
|
77
|
+
# return_type
|
|
78
|
+
return_type = opts[:debug_return_type] || 'VoteDeleteResponse'
|
|
79
|
+
|
|
80
|
+
# auth_names
|
|
81
|
+
auth_names = opts[:debug_auth_names] || []
|
|
82
|
+
|
|
83
|
+
new_options = opts.merge(
|
|
84
|
+
:operation => :"ModerationApi.delete_moderation_vote",
|
|
85
|
+
:header_params => header_params,
|
|
86
|
+
:query_params => query_params,
|
|
87
|
+
:form_params => form_params,
|
|
88
|
+
:body => post_body,
|
|
89
|
+
:auth_names => auth_names,
|
|
90
|
+
:return_type => return_type
|
|
91
|
+
)
|
|
92
|
+
|
|
93
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
94
|
+
if @api_client.config.debugging
|
|
95
|
+
@api_client.config.logger.debug "API called: ModerationApi#delete_moderation_vote\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
96
|
+
end
|
|
97
|
+
return data, status_code, headers
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
# @param tenant_id [String]
|
|
101
|
+
# @param [Hash] opts the optional parameters
|
|
102
|
+
# @option opts [Float] :page
|
|
103
|
+
# @option opts [Float] :count
|
|
104
|
+
# @option opts [String] :text_search
|
|
105
|
+
# @option opts [String] :by_ip_from_comment
|
|
106
|
+
# @option opts [String] :filters
|
|
107
|
+
# @option opts [String] :search_filters
|
|
108
|
+
# @option opts [String] :sorts
|
|
109
|
+
# @option opts [Boolean] :demo
|
|
110
|
+
# @option opts [String] :sso
|
|
111
|
+
# @return [ModerationAPIGetCommentsResponse]
|
|
112
|
+
def get_api_comments(tenant_id, opts = {})
|
|
113
|
+
data, _status_code, _headers = get_api_comments_with_http_info(tenant_id, opts)
|
|
114
|
+
data
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
# @param tenant_id [String]
|
|
118
|
+
# @param [Hash] opts the optional parameters
|
|
119
|
+
# @option opts [Float] :page
|
|
120
|
+
# @option opts [Float] :count
|
|
121
|
+
# @option opts [String] :text_search
|
|
122
|
+
# @option opts [String] :by_ip_from_comment
|
|
123
|
+
# @option opts [String] :filters
|
|
124
|
+
# @option opts [String] :search_filters
|
|
125
|
+
# @option opts [String] :sorts
|
|
126
|
+
# @option opts [Boolean] :demo
|
|
127
|
+
# @option opts [String] :sso
|
|
128
|
+
# @return [Array<(ModerationAPIGetCommentsResponse, Integer, Hash)>] ModerationAPIGetCommentsResponse data, response status code and response headers
|
|
129
|
+
def get_api_comments_with_http_info(tenant_id, opts = {})
|
|
130
|
+
if @api_client.config.debugging
|
|
131
|
+
@api_client.config.logger.debug 'Calling API: ModerationApi.get_api_comments ...'
|
|
132
|
+
end
|
|
133
|
+
# verify the required parameter 'tenant_id' is set
|
|
134
|
+
if @api_client.config.client_side_validation && tenant_id.nil?
|
|
135
|
+
fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.get_api_comments"
|
|
136
|
+
end
|
|
137
|
+
# resource path
|
|
138
|
+
local_var_path = '/auth/my-account/moderate-comments/mod_api/api/comments'
|
|
139
|
+
|
|
140
|
+
# query parameters
|
|
141
|
+
query_params = opts[:query_params] || {}
|
|
142
|
+
query_params[:'tenantId'] = tenant_id
|
|
143
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
144
|
+
query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil?
|
|
145
|
+
query_params[:'text-search'] = opts[:'text_search'] if !opts[:'text_search'].nil?
|
|
146
|
+
query_params[:'byIPFromComment'] = opts[:'by_ip_from_comment'] if !opts[:'by_ip_from_comment'].nil?
|
|
147
|
+
query_params[:'filters'] = opts[:'filters'] if !opts[:'filters'].nil?
|
|
148
|
+
query_params[:'searchFilters'] = opts[:'search_filters'] if !opts[:'search_filters'].nil?
|
|
149
|
+
query_params[:'sorts'] = opts[:'sorts'] if !opts[:'sorts'].nil?
|
|
150
|
+
query_params[:'demo'] = opts[:'demo'] if !opts[:'demo'].nil?
|
|
151
|
+
query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
|
|
152
|
+
|
|
153
|
+
# header parameters
|
|
154
|
+
header_params = opts[:header_params] || {}
|
|
155
|
+
# HTTP header 'Accept' (if needed)
|
|
156
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
157
|
+
|
|
158
|
+
# form parameters
|
|
159
|
+
form_params = opts[:form_params] || {}
|
|
160
|
+
|
|
161
|
+
# http body (model)
|
|
162
|
+
post_body = opts[:debug_body]
|
|
163
|
+
|
|
164
|
+
# return_type
|
|
165
|
+
return_type = opts[:debug_return_type] || 'ModerationAPIGetCommentsResponse'
|
|
166
|
+
|
|
167
|
+
# auth_names
|
|
168
|
+
auth_names = opts[:debug_auth_names] || []
|
|
169
|
+
|
|
170
|
+
new_options = opts.merge(
|
|
171
|
+
:operation => :"ModerationApi.get_api_comments",
|
|
172
|
+
:header_params => header_params,
|
|
173
|
+
:query_params => query_params,
|
|
174
|
+
:form_params => form_params,
|
|
175
|
+
:body => post_body,
|
|
176
|
+
:auth_names => auth_names,
|
|
177
|
+
:return_type => return_type
|
|
178
|
+
)
|
|
179
|
+
|
|
180
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
181
|
+
if @api_client.config.debugging
|
|
182
|
+
@api_client.config.logger.debug "API called: ModerationApi#get_api_comments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
183
|
+
end
|
|
184
|
+
return data, status_code, headers
|
|
185
|
+
end
|
|
186
|
+
|
|
187
|
+
# @param tenant_id [String]
|
|
188
|
+
# @param [Hash] opts the optional parameters
|
|
189
|
+
# @option opts [String] :batch_job_id
|
|
190
|
+
# @option opts [String] :sso
|
|
191
|
+
# @return [ModerationExportStatusResponse]
|
|
192
|
+
def get_api_export_status(tenant_id, opts = {})
|
|
193
|
+
data, _status_code, _headers = get_api_export_status_with_http_info(tenant_id, opts)
|
|
194
|
+
data
|
|
195
|
+
end
|
|
196
|
+
|
|
197
|
+
# @param tenant_id [String]
|
|
198
|
+
# @param [Hash] opts the optional parameters
|
|
199
|
+
# @option opts [String] :batch_job_id
|
|
200
|
+
# @option opts [String] :sso
|
|
201
|
+
# @return [Array<(ModerationExportStatusResponse, Integer, Hash)>] ModerationExportStatusResponse data, response status code and response headers
|
|
202
|
+
def get_api_export_status_with_http_info(tenant_id, opts = {})
|
|
203
|
+
if @api_client.config.debugging
|
|
204
|
+
@api_client.config.logger.debug 'Calling API: ModerationApi.get_api_export_status ...'
|
|
205
|
+
end
|
|
206
|
+
# verify the required parameter 'tenant_id' is set
|
|
207
|
+
if @api_client.config.client_side_validation && tenant_id.nil?
|
|
208
|
+
fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.get_api_export_status"
|
|
209
|
+
end
|
|
210
|
+
# resource path
|
|
211
|
+
local_var_path = '/auth/my-account/moderate-comments/mod_api/api/export/status'
|
|
212
|
+
|
|
213
|
+
# query parameters
|
|
214
|
+
query_params = opts[:query_params] || {}
|
|
215
|
+
query_params[:'tenantId'] = tenant_id
|
|
216
|
+
query_params[:'batchJobId'] = opts[:'batch_job_id'] if !opts[:'batch_job_id'].nil?
|
|
217
|
+
query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
|
|
218
|
+
|
|
219
|
+
# header parameters
|
|
220
|
+
header_params = opts[:header_params] || {}
|
|
221
|
+
# HTTP header 'Accept' (if needed)
|
|
222
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
223
|
+
|
|
224
|
+
# form parameters
|
|
225
|
+
form_params = opts[:form_params] || {}
|
|
226
|
+
|
|
227
|
+
# http body (model)
|
|
228
|
+
post_body = opts[:debug_body]
|
|
229
|
+
|
|
230
|
+
# return_type
|
|
231
|
+
return_type = opts[:debug_return_type] || 'ModerationExportStatusResponse'
|
|
232
|
+
|
|
233
|
+
# auth_names
|
|
234
|
+
auth_names = opts[:debug_auth_names] || []
|
|
235
|
+
|
|
236
|
+
new_options = opts.merge(
|
|
237
|
+
:operation => :"ModerationApi.get_api_export_status",
|
|
238
|
+
:header_params => header_params,
|
|
239
|
+
:query_params => query_params,
|
|
240
|
+
:form_params => form_params,
|
|
241
|
+
:body => post_body,
|
|
242
|
+
:auth_names => auth_names,
|
|
243
|
+
:return_type => return_type
|
|
244
|
+
)
|
|
245
|
+
|
|
246
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
247
|
+
if @api_client.config.debugging
|
|
248
|
+
@api_client.config.logger.debug "API called: ModerationApi#get_api_export_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
249
|
+
end
|
|
250
|
+
return data, status_code, headers
|
|
251
|
+
end
|
|
252
|
+
|
|
253
|
+
# @param tenant_id [String]
|
|
254
|
+
# @param [Hash] opts the optional parameters
|
|
255
|
+
# @option opts [String] :text_search
|
|
256
|
+
# @option opts [String] :by_ip_from_comment
|
|
257
|
+
# @option opts [String] :filters
|
|
258
|
+
# @option opts [String] :search_filters
|
|
259
|
+
# @option opts [String] :after_id
|
|
260
|
+
# @option opts [Boolean] :demo
|
|
261
|
+
# @option opts [String] :sso
|
|
262
|
+
# @return [ModerationAPIGetCommentIdsResponse]
|
|
263
|
+
def get_api_ids(tenant_id, opts = {})
|
|
264
|
+
data, _status_code, _headers = get_api_ids_with_http_info(tenant_id, opts)
|
|
265
|
+
data
|
|
266
|
+
end
|
|
267
|
+
|
|
268
|
+
# @param tenant_id [String]
|
|
269
|
+
# @param [Hash] opts the optional parameters
|
|
270
|
+
# @option opts [String] :text_search
|
|
271
|
+
# @option opts [String] :by_ip_from_comment
|
|
272
|
+
# @option opts [String] :filters
|
|
273
|
+
# @option opts [String] :search_filters
|
|
274
|
+
# @option opts [String] :after_id
|
|
275
|
+
# @option opts [Boolean] :demo
|
|
276
|
+
# @option opts [String] :sso
|
|
277
|
+
# @return [Array<(ModerationAPIGetCommentIdsResponse, Integer, Hash)>] ModerationAPIGetCommentIdsResponse data, response status code and response headers
|
|
278
|
+
def get_api_ids_with_http_info(tenant_id, opts = {})
|
|
279
|
+
if @api_client.config.debugging
|
|
280
|
+
@api_client.config.logger.debug 'Calling API: ModerationApi.get_api_ids ...'
|
|
281
|
+
end
|
|
282
|
+
# verify the required parameter 'tenant_id' is set
|
|
283
|
+
if @api_client.config.client_side_validation && tenant_id.nil?
|
|
284
|
+
fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.get_api_ids"
|
|
285
|
+
end
|
|
286
|
+
# resource path
|
|
287
|
+
local_var_path = '/auth/my-account/moderate-comments/mod_api/api/ids'
|
|
288
|
+
|
|
289
|
+
# query parameters
|
|
290
|
+
query_params = opts[:query_params] || {}
|
|
291
|
+
query_params[:'tenantId'] = tenant_id
|
|
292
|
+
query_params[:'text-search'] = opts[:'text_search'] if !opts[:'text_search'].nil?
|
|
293
|
+
query_params[:'byIPFromComment'] = opts[:'by_ip_from_comment'] if !opts[:'by_ip_from_comment'].nil?
|
|
294
|
+
query_params[:'filters'] = opts[:'filters'] if !opts[:'filters'].nil?
|
|
295
|
+
query_params[:'searchFilters'] = opts[:'search_filters'] if !opts[:'search_filters'].nil?
|
|
296
|
+
query_params[:'afterId'] = opts[:'after_id'] if !opts[:'after_id'].nil?
|
|
297
|
+
query_params[:'demo'] = opts[:'demo'] if !opts[:'demo'].nil?
|
|
298
|
+
query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
|
|
299
|
+
|
|
300
|
+
# header parameters
|
|
301
|
+
header_params = opts[:header_params] || {}
|
|
302
|
+
# HTTP header 'Accept' (if needed)
|
|
303
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
304
|
+
|
|
305
|
+
# form parameters
|
|
306
|
+
form_params = opts[:form_params] || {}
|
|
307
|
+
|
|
308
|
+
# http body (model)
|
|
309
|
+
post_body = opts[:debug_body]
|
|
310
|
+
|
|
311
|
+
# return_type
|
|
312
|
+
return_type = opts[:debug_return_type] || 'ModerationAPIGetCommentIdsResponse'
|
|
313
|
+
|
|
314
|
+
# auth_names
|
|
315
|
+
auth_names = opts[:debug_auth_names] || []
|
|
316
|
+
|
|
317
|
+
new_options = opts.merge(
|
|
318
|
+
:operation => :"ModerationApi.get_api_ids",
|
|
319
|
+
:header_params => header_params,
|
|
320
|
+
:query_params => query_params,
|
|
321
|
+
:form_params => form_params,
|
|
322
|
+
:body => post_body,
|
|
323
|
+
:auth_names => auth_names,
|
|
324
|
+
:return_type => return_type
|
|
325
|
+
)
|
|
326
|
+
|
|
327
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
328
|
+
if @api_client.config.debugging
|
|
329
|
+
@api_client.config.logger.debug "API called: ModerationApi#get_api_ids\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
330
|
+
end
|
|
331
|
+
return data, status_code, headers
|
|
332
|
+
end
|
|
333
|
+
|
|
334
|
+
# @param tenant_id [String]
|
|
335
|
+
# @param comment_id [String]
|
|
336
|
+
# @param [Hash] opts the optional parameters
|
|
337
|
+
# @option opts [String] :sso
|
|
338
|
+
# @return [GetBannedUsersFromCommentResponse]
|
|
339
|
+
def get_ban_users_from_comment(tenant_id, comment_id, opts = {})
|
|
340
|
+
data, _status_code, _headers = get_ban_users_from_comment_with_http_info(tenant_id, comment_id, opts)
|
|
341
|
+
data
|
|
342
|
+
end
|
|
343
|
+
|
|
344
|
+
# @param tenant_id [String]
|
|
345
|
+
# @param comment_id [String]
|
|
346
|
+
# @param [Hash] opts the optional parameters
|
|
347
|
+
# @option opts [String] :sso
|
|
348
|
+
# @return [Array<(GetBannedUsersFromCommentResponse, Integer, Hash)>] GetBannedUsersFromCommentResponse data, response status code and response headers
|
|
349
|
+
def get_ban_users_from_comment_with_http_info(tenant_id, comment_id, opts = {})
|
|
350
|
+
if @api_client.config.debugging
|
|
351
|
+
@api_client.config.logger.debug 'Calling API: ModerationApi.get_ban_users_from_comment ...'
|
|
352
|
+
end
|
|
353
|
+
# verify the required parameter 'tenant_id' is set
|
|
354
|
+
if @api_client.config.client_side_validation && tenant_id.nil?
|
|
355
|
+
fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.get_ban_users_from_comment"
|
|
356
|
+
end
|
|
357
|
+
# verify the required parameter 'comment_id' is set
|
|
358
|
+
if @api_client.config.client_side_validation && comment_id.nil?
|
|
359
|
+
fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.get_ban_users_from_comment"
|
|
360
|
+
end
|
|
361
|
+
# resource path
|
|
362
|
+
local_var_path = '/auth/my-account/moderate-comments/mod_api/ban-users/from-comment/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s))
|
|
363
|
+
|
|
364
|
+
# query parameters
|
|
365
|
+
query_params = opts[:query_params] || {}
|
|
366
|
+
query_params[:'tenantId'] = tenant_id
|
|
367
|
+
query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
|
|
368
|
+
|
|
369
|
+
# header parameters
|
|
370
|
+
header_params = opts[:header_params] || {}
|
|
371
|
+
# HTTP header 'Accept' (if needed)
|
|
372
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
373
|
+
|
|
374
|
+
# form parameters
|
|
375
|
+
form_params = opts[:form_params] || {}
|
|
376
|
+
|
|
377
|
+
# http body (model)
|
|
378
|
+
post_body = opts[:debug_body]
|
|
379
|
+
|
|
380
|
+
# return_type
|
|
381
|
+
return_type = opts[:debug_return_type] || 'GetBannedUsersFromCommentResponse'
|
|
382
|
+
|
|
383
|
+
# auth_names
|
|
384
|
+
auth_names = opts[:debug_auth_names] || []
|
|
385
|
+
|
|
386
|
+
new_options = opts.merge(
|
|
387
|
+
:operation => :"ModerationApi.get_ban_users_from_comment",
|
|
388
|
+
:header_params => header_params,
|
|
389
|
+
:query_params => query_params,
|
|
390
|
+
:form_params => form_params,
|
|
391
|
+
:body => post_body,
|
|
392
|
+
:auth_names => auth_names,
|
|
393
|
+
:return_type => return_type
|
|
394
|
+
)
|
|
395
|
+
|
|
396
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
397
|
+
if @api_client.config.debugging
|
|
398
|
+
@api_client.config.logger.debug "API called: ModerationApi#get_ban_users_from_comment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
399
|
+
end
|
|
400
|
+
return data, status_code, headers
|
|
401
|
+
end
|
|
402
|
+
|
|
403
|
+
# @param tenant_id [String]
|
|
404
|
+
# @param comment_id [String]
|
|
405
|
+
# @param [Hash] opts the optional parameters
|
|
406
|
+
# @option opts [String] :sso
|
|
407
|
+
# @return [GetCommentBanStatusResponse]
|
|
408
|
+
def get_comment_ban_status(tenant_id, comment_id, opts = {})
|
|
409
|
+
data, _status_code, _headers = get_comment_ban_status_with_http_info(tenant_id, comment_id, opts)
|
|
410
|
+
data
|
|
411
|
+
end
|
|
412
|
+
|
|
413
|
+
# @param tenant_id [String]
|
|
414
|
+
# @param comment_id [String]
|
|
415
|
+
# @param [Hash] opts the optional parameters
|
|
416
|
+
# @option opts [String] :sso
|
|
417
|
+
# @return [Array<(GetCommentBanStatusResponse, Integer, Hash)>] GetCommentBanStatusResponse data, response status code and response headers
|
|
418
|
+
def get_comment_ban_status_with_http_info(tenant_id, comment_id, opts = {})
|
|
419
|
+
if @api_client.config.debugging
|
|
420
|
+
@api_client.config.logger.debug 'Calling API: ModerationApi.get_comment_ban_status ...'
|
|
421
|
+
end
|
|
422
|
+
# verify the required parameter 'tenant_id' is set
|
|
423
|
+
if @api_client.config.client_side_validation && tenant_id.nil?
|
|
424
|
+
fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.get_comment_ban_status"
|
|
425
|
+
end
|
|
426
|
+
# verify the required parameter 'comment_id' is set
|
|
427
|
+
if @api_client.config.client_side_validation && comment_id.nil?
|
|
428
|
+
fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.get_comment_ban_status"
|
|
429
|
+
end
|
|
430
|
+
# resource path
|
|
431
|
+
local_var_path = '/auth/my-account/moderate-comments/mod_api/get-comment-ban-status/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s))
|
|
432
|
+
|
|
433
|
+
# query parameters
|
|
434
|
+
query_params = opts[:query_params] || {}
|
|
435
|
+
query_params[:'tenantId'] = tenant_id
|
|
436
|
+
query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
|
|
437
|
+
|
|
438
|
+
# header parameters
|
|
439
|
+
header_params = opts[:header_params] || {}
|
|
440
|
+
# HTTP header 'Accept' (if needed)
|
|
441
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
442
|
+
|
|
443
|
+
# form parameters
|
|
444
|
+
form_params = opts[:form_params] || {}
|
|
445
|
+
|
|
446
|
+
# http body (model)
|
|
447
|
+
post_body = opts[:debug_body]
|
|
448
|
+
|
|
449
|
+
# return_type
|
|
450
|
+
return_type = opts[:debug_return_type] || 'GetCommentBanStatusResponse'
|
|
451
|
+
|
|
452
|
+
# auth_names
|
|
453
|
+
auth_names = opts[:debug_auth_names] || []
|
|
454
|
+
|
|
455
|
+
new_options = opts.merge(
|
|
456
|
+
:operation => :"ModerationApi.get_comment_ban_status",
|
|
457
|
+
:header_params => header_params,
|
|
458
|
+
:query_params => query_params,
|
|
459
|
+
:form_params => form_params,
|
|
460
|
+
:body => post_body,
|
|
461
|
+
:auth_names => auth_names,
|
|
462
|
+
:return_type => return_type
|
|
463
|
+
)
|
|
464
|
+
|
|
465
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
466
|
+
if @api_client.config.debugging
|
|
467
|
+
@api_client.config.logger.debug "API called: ModerationApi#get_comment_ban_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
468
|
+
end
|
|
469
|
+
return data, status_code, headers
|
|
470
|
+
end
|
|
471
|
+
|
|
472
|
+
# @param tenant_id [String]
|
|
473
|
+
# @param comment_id [String]
|
|
474
|
+
# @param [Hash] opts the optional parameters
|
|
475
|
+
# @option opts [String] :sso
|
|
476
|
+
# @return [ModerationAPIChildCommentsResponse]
|
|
477
|
+
def get_comment_children(tenant_id, comment_id, opts = {})
|
|
478
|
+
data, _status_code, _headers = get_comment_children_with_http_info(tenant_id, comment_id, opts)
|
|
479
|
+
data
|
|
480
|
+
end
|
|
481
|
+
|
|
482
|
+
# @param tenant_id [String]
|
|
483
|
+
# @param comment_id [String]
|
|
484
|
+
# @param [Hash] opts the optional parameters
|
|
485
|
+
# @option opts [String] :sso
|
|
486
|
+
# @return [Array<(ModerationAPIChildCommentsResponse, Integer, Hash)>] ModerationAPIChildCommentsResponse data, response status code and response headers
|
|
487
|
+
def get_comment_children_with_http_info(tenant_id, comment_id, opts = {})
|
|
488
|
+
if @api_client.config.debugging
|
|
489
|
+
@api_client.config.logger.debug 'Calling API: ModerationApi.get_comment_children ...'
|
|
490
|
+
end
|
|
491
|
+
# verify the required parameter 'tenant_id' is set
|
|
492
|
+
if @api_client.config.client_side_validation && tenant_id.nil?
|
|
493
|
+
fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.get_comment_children"
|
|
494
|
+
end
|
|
495
|
+
# verify the required parameter 'comment_id' is set
|
|
496
|
+
if @api_client.config.client_side_validation && comment_id.nil?
|
|
497
|
+
fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.get_comment_children"
|
|
498
|
+
end
|
|
499
|
+
# resource path
|
|
500
|
+
local_var_path = '/auth/my-account/moderate-comments/mod_api/comment-children/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s))
|
|
501
|
+
|
|
502
|
+
# query parameters
|
|
503
|
+
query_params = opts[:query_params] || {}
|
|
504
|
+
query_params[:'tenantId'] = tenant_id
|
|
505
|
+
query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
|
|
506
|
+
|
|
507
|
+
# header parameters
|
|
508
|
+
header_params = opts[:header_params] || {}
|
|
509
|
+
# HTTP header 'Accept' (if needed)
|
|
510
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
511
|
+
|
|
512
|
+
# form parameters
|
|
513
|
+
form_params = opts[:form_params] || {}
|
|
514
|
+
|
|
515
|
+
# http body (model)
|
|
516
|
+
post_body = opts[:debug_body]
|
|
517
|
+
|
|
518
|
+
# return_type
|
|
519
|
+
return_type = opts[:debug_return_type] || 'ModerationAPIChildCommentsResponse'
|
|
520
|
+
|
|
521
|
+
# auth_names
|
|
522
|
+
auth_names = opts[:debug_auth_names] || []
|
|
523
|
+
|
|
524
|
+
new_options = opts.merge(
|
|
525
|
+
:operation => :"ModerationApi.get_comment_children",
|
|
526
|
+
:header_params => header_params,
|
|
527
|
+
:query_params => query_params,
|
|
528
|
+
:form_params => form_params,
|
|
529
|
+
:body => post_body,
|
|
530
|
+
:auth_names => auth_names,
|
|
531
|
+
:return_type => return_type
|
|
532
|
+
)
|
|
533
|
+
|
|
534
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
535
|
+
if @api_client.config.debugging
|
|
536
|
+
@api_client.config.logger.debug "API called: ModerationApi#get_comment_children\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
537
|
+
end
|
|
538
|
+
return data, status_code, headers
|
|
539
|
+
end
|
|
540
|
+
|
|
541
|
+
# @param tenant_id [String]
|
|
542
|
+
# @param [Hash] opts the optional parameters
|
|
543
|
+
# @option opts [String] :text_search
|
|
544
|
+
# @option opts [String] :by_ip_from_comment
|
|
545
|
+
# @option opts [String] :filter
|
|
546
|
+
# @option opts [String] :search_filters
|
|
547
|
+
# @option opts [Boolean] :demo
|
|
548
|
+
# @option opts [String] :sso
|
|
549
|
+
# @return [ModerationAPICountCommentsResponse]
|
|
550
|
+
def get_count(tenant_id, opts = {})
|
|
551
|
+
data, _status_code, _headers = get_count_with_http_info(tenant_id, opts)
|
|
552
|
+
data
|
|
553
|
+
end
|
|
554
|
+
|
|
555
|
+
# @param tenant_id [String]
|
|
556
|
+
# @param [Hash] opts the optional parameters
|
|
557
|
+
# @option opts [String] :text_search
|
|
558
|
+
# @option opts [String] :by_ip_from_comment
|
|
559
|
+
# @option opts [String] :filter
|
|
560
|
+
# @option opts [String] :search_filters
|
|
561
|
+
# @option opts [Boolean] :demo
|
|
562
|
+
# @option opts [String] :sso
|
|
563
|
+
# @return [Array<(ModerationAPICountCommentsResponse, Integer, Hash)>] ModerationAPICountCommentsResponse data, response status code and response headers
|
|
564
|
+
def get_count_with_http_info(tenant_id, opts = {})
|
|
565
|
+
if @api_client.config.debugging
|
|
566
|
+
@api_client.config.logger.debug 'Calling API: ModerationApi.get_count ...'
|
|
567
|
+
end
|
|
568
|
+
# verify the required parameter 'tenant_id' is set
|
|
569
|
+
if @api_client.config.client_side_validation && tenant_id.nil?
|
|
570
|
+
fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.get_count"
|
|
571
|
+
end
|
|
572
|
+
# resource path
|
|
573
|
+
local_var_path = '/auth/my-account/moderate-comments/mod_api/count'
|
|
574
|
+
|
|
575
|
+
# query parameters
|
|
576
|
+
query_params = opts[:query_params] || {}
|
|
577
|
+
query_params[:'tenantId'] = tenant_id
|
|
578
|
+
query_params[:'text-search'] = opts[:'text_search'] if !opts[:'text_search'].nil?
|
|
579
|
+
query_params[:'byIPFromComment'] = opts[:'by_ip_from_comment'] if !opts[:'by_ip_from_comment'].nil?
|
|
580
|
+
query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil?
|
|
581
|
+
query_params[:'searchFilters'] = opts[:'search_filters'] if !opts[:'search_filters'].nil?
|
|
582
|
+
query_params[:'demo'] = opts[:'demo'] if !opts[:'demo'].nil?
|
|
583
|
+
query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
|
|
584
|
+
|
|
585
|
+
# header parameters
|
|
586
|
+
header_params = opts[:header_params] || {}
|
|
587
|
+
# HTTP header 'Accept' (if needed)
|
|
588
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
589
|
+
|
|
590
|
+
# form parameters
|
|
591
|
+
form_params = opts[:form_params] || {}
|
|
592
|
+
|
|
593
|
+
# http body (model)
|
|
594
|
+
post_body = opts[:debug_body]
|
|
595
|
+
|
|
596
|
+
# return_type
|
|
597
|
+
return_type = opts[:debug_return_type] || 'ModerationAPICountCommentsResponse'
|
|
598
|
+
|
|
599
|
+
# auth_names
|
|
600
|
+
auth_names = opts[:debug_auth_names] || []
|
|
601
|
+
|
|
602
|
+
new_options = opts.merge(
|
|
603
|
+
:operation => :"ModerationApi.get_count",
|
|
604
|
+
:header_params => header_params,
|
|
605
|
+
:query_params => query_params,
|
|
606
|
+
:form_params => form_params,
|
|
607
|
+
:body => post_body,
|
|
608
|
+
:auth_names => auth_names,
|
|
609
|
+
:return_type => return_type
|
|
610
|
+
)
|
|
611
|
+
|
|
612
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
613
|
+
if @api_client.config.debugging
|
|
614
|
+
@api_client.config.logger.debug "API called: ModerationApi#get_count\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
615
|
+
end
|
|
616
|
+
return data, status_code, headers
|
|
617
|
+
end
|
|
618
|
+
|
|
619
|
+
# @param tenant_id [String]
|
|
620
|
+
# @param [Hash] opts the optional parameters
|
|
621
|
+
# @option opts [String] :sso
|
|
622
|
+
# @return [GetBannedUsersCountResponse]
|
|
623
|
+
def get_counts(tenant_id, opts = {})
|
|
624
|
+
data, _status_code, _headers = get_counts_with_http_info(tenant_id, opts)
|
|
625
|
+
data
|
|
626
|
+
end
|
|
627
|
+
|
|
628
|
+
# @param tenant_id [String]
|
|
629
|
+
# @param [Hash] opts the optional parameters
|
|
630
|
+
# @option opts [String] :sso
|
|
631
|
+
# @return [Array<(GetBannedUsersCountResponse, Integer, Hash)>] GetBannedUsersCountResponse data, response status code and response headers
|
|
632
|
+
def get_counts_with_http_info(tenant_id, opts = {})
|
|
633
|
+
if @api_client.config.debugging
|
|
634
|
+
@api_client.config.logger.debug 'Calling API: ModerationApi.get_counts ...'
|
|
635
|
+
end
|
|
636
|
+
# verify the required parameter 'tenant_id' is set
|
|
637
|
+
if @api_client.config.client_side_validation && tenant_id.nil?
|
|
638
|
+
fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.get_counts"
|
|
639
|
+
end
|
|
640
|
+
# resource path
|
|
641
|
+
local_var_path = '/auth/my-account/moderate-comments/banned-users/mod_api/counts'
|
|
642
|
+
|
|
643
|
+
# query parameters
|
|
644
|
+
query_params = opts[:query_params] || {}
|
|
645
|
+
query_params[:'tenantId'] = tenant_id
|
|
646
|
+
query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
|
|
647
|
+
|
|
648
|
+
# header parameters
|
|
649
|
+
header_params = opts[:header_params] || {}
|
|
650
|
+
# HTTP header 'Accept' (if needed)
|
|
651
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
652
|
+
|
|
653
|
+
# form parameters
|
|
654
|
+
form_params = opts[:form_params] || {}
|
|
655
|
+
|
|
656
|
+
# http body (model)
|
|
657
|
+
post_body = opts[:debug_body]
|
|
658
|
+
|
|
659
|
+
# return_type
|
|
660
|
+
return_type = opts[:debug_return_type] || 'GetBannedUsersCountResponse'
|
|
661
|
+
|
|
662
|
+
# auth_names
|
|
663
|
+
auth_names = opts[:debug_auth_names] || []
|
|
664
|
+
|
|
665
|
+
new_options = opts.merge(
|
|
666
|
+
:operation => :"ModerationApi.get_counts",
|
|
667
|
+
:header_params => header_params,
|
|
668
|
+
:query_params => query_params,
|
|
669
|
+
:form_params => form_params,
|
|
670
|
+
:body => post_body,
|
|
671
|
+
:auth_names => auth_names,
|
|
672
|
+
:return_type => return_type
|
|
673
|
+
)
|
|
674
|
+
|
|
675
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
676
|
+
if @api_client.config.debugging
|
|
677
|
+
@api_client.config.logger.debug "API called: ModerationApi#get_counts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
678
|
+
end
|
|
679
|
+
return data, status_code, headers
|
|
680
|
+
end
|
|
681
|
+
|
|
682
|
+
# @param tenant_id [String]
|
|
683
|
+
# @param comment_id [String]
|
|
684
|
+
# @param [Hash] opts the optional parameters
|
|
685
|
+
# @option opts [String] :sso
|
|
686
|
+
# @return [ModerationAPIGetLogsResponse]
|
|
687
|
+
def get_logs(tenant_id, comment_id, opts = {})
|
|
688
|
+
data, _status_code, _headers = get_logs_with_http_info(tenant_id, comment_id, opts)
|
|
689
|
+
data
|
|
690
|
+
end
|
|
691
|
+
|
|
692
|
+
# @param tenant_id [String]
|
|
693
|
+
# @param comment_id [String]
|
|
694
|
+
# @param [Hash] opts the optional parameters
|
|
695
|
+
# @option opts [String] :sso
|
|
696
|
+
# @return [Array<(ModerationAPIGetLogsResponse, Integer, Hash)>] ModerationAPIGetLogsResponse data, response status code and response headers
|
|
697
|
+
def get_logs_with_http_info(tenant_id, comment_id, opts = {})
|
|
698
|
+
if @api_client.config.debugging
|
|
699
|
+
@api_client.config.logger.debug 'Calling API: ModerationApi.get_logs ...'
|
|
700
|
+
end
|
|
701
|
+
# verify the required parameter 'tenant_id' is set
|
|
702
|
+
if @api_client.config.client_side_validation && tenant_id.nil?
|
|
703
|
+
fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.get_logs"
|
|
704
|
+
end
|
|
705
|
+
# verify the required parameter 'comment_id' is set
|
|
706
|
+
if @api_client.config.client_side_validation && comment_id.nil?
|
|
707
|
+
fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.get_logs"
|
|
708
|
+
end
|
|
709
|
+
# resource path
|
|
710
|
+
local_var_path = '/auth/my-account/moderate-comments/mod_api/logs/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s))
|
|
711
|
+
|
|
712
|
+
# query parameters
|
|
713
|
+
query_params = opts[:query_params] || {}
|
|
714
|
+
query_params[:'tenantId'] = tenant_id
|
|
715
|
+
query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
|
|
716
|
+
|
|
717
|
+
# header parameters
|
|
718
|
+
header_params = opts[:header_params] || {}
|
|
719
|
+
# HTTP header 'Accept' (if needed)
|
|
720
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
721
|
+
|
|
722
|
+
# form parameters
|
|
723
|
+
form_params = opts[:form_params] || {}
|
|
724
|
+
|
|
725
|
+
# http body (model)
|
|
726
|
+
post_body = opts[:debug_body]
|
|
727
|
+
|
|
728
|
+
# return_type
|
|
729
|
+
return_type = opts[:debug_return_type] || 'ModerationAPIGetLogsResponse'
|
|
730
|
+
|
|
731
|
+
# auth_names
|
|
732
|
+
auth_names = opts[:debug_auth_names] || []
|
|
733
|
+
|
|
734
|
+
new_options = opts.merge(
|
|
735
|
+
:operation => :"ModerationApi.get_logs",
|
|
736
|
+
:header_params => header_params,
|
|
737
|
+
:query_params => query_params,
|
|
738
|
+
:form_params => form_params,
|
|
739
|
+
:body => post_body,
|
|
740
|
+
:auth_names => auth_names,
|
|
741
|
+
:return_type => return_type
|
|
742
|
+
)
|
|
743
|
+
|
|
744
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
745
|
+
if @api_client.config.debugging
|
|
746
|
+
@api_client.config.logger.debug "API called: ModerationApi#get_logs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
747
|
+
end
|
|
748
|
+
return data, status_code, headers
|
|
749
|
+
end
|
|
750
|
+
|
|
751
|
+
# @param tenant_id [String]
|
|
752
|
+
# @param [Hash] opts the optional parameters
|
|
753
|
+
# @option opts [String] :sso
|
|
754
|
+
# @return [GetTenantManualBadgesResponse]
|
|
755
|
+
def get_manual_badges(tenant_id, opts = {})
|
|
756
|
+
data, _status_code, _headers = get_manual_badges_with_http_info(tenant_id, opts)
|
|
757
|
+
data
|
|
758
|
+
end
|
|
759
|
+
|
|
760
|
+
# @param tenant_id [String]
|
|
761
|
+
# @param [Hash] opts the optional parameters
|
|
762
|
+
# @option opts [String] :sso
|
|
763
|
+
# @return [Array<(GetTenantManualBadgesResponse, Integer, Hash)>] GetTenantManualBadgesResponse data, response status code and response headers
|
|
764
|
+
def get_manual_badges_with_http_info(tenant_id, opts = {})
|
|
765
|
+
if @api_client.config.debugging
|
|
766
|
+
@api_client.config.logger.debug 'Calling API: ModerationApi.get_manual_badges ...'
|
|
767
|
+
end
|
|
768
|
+
# verify the required parameter 'tenant_id' is set
|
|
769
|
+
if @api_client.config.client_side_validation && tenant_id.nil?
|
|
770
|
+
fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.get_manual_badges"
|
|
771
|
+
end
|
|
772
|
+
# resource path
|
|
773
|
+
local_var_path = '/auth/my-account/moderate-comments/mod_api/get-manual-badges'
|
|
774
|
+
|
|
775
|
+
# query parameters
|
|
776
|
+
query_params = opts[:query_params] || {}
|
|
777
|
+
query_params[:'tenantId'] = tenant_id
|
|
778
|
+
query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
|
|
779
|
+
|
|
780
|
+
# header parameters
|
|
781
|
+
header_params = opts[:header_params] || {}
|
|
782
|
+
# HTTP header 'Accept' (if needed)
|
|
783
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
784
|
+
|
|
785
|
+
# form parameters
|
|
786
|
+
form_params = opts[:form_params] || {}
|
|
787
|
+
|
|
788
|
+
# http body (model)
|
|
789
|
+
post_body = opts[:debug_body]
|
|
790
|
+
|
|
791
|
+
# return_type
|
|
792
|
+
return_type = opts[:debug_return_type] || 'GetTenantManualBadgesResponse'
|
|
793
|
+
|
|
794
|
+
# auth_names
|
|
795
|
+
auth_names = opts[:debug_auth_names] || []
|
|
796
|
+
|
|
797
|
+
new_options = opts.merge(
|
|
798
|
+
:operation => :"ModerationApi.get_manual_badges",
|
|
799
|
+
:header_params => header_params,
|
|
800
|
+
:query_params => query_params,
|
|
801
|
+
:form_params => form_params,
|
|
802
|
+
:body => post_body,
|
|
803
|
+
:auth_names => auth_names,
|
|
804
|
+
:return_type => return_type
|
|
805
|
+
)
|
|
806
|
+
|
|
807
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
808
|
+
if @api_client.config.debugging
|
|
809
|
+
@api_client.config.logger.debug "API called: ModerationApi#get_manual_badges\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
810
|
+
end
|
|
811
|
+
return data, status_code, headers
|
|
812
|
+
end
|
|
813
|
+
|
|
814
|
+
# @param tenant_id [String]
|
|
815
|
+
# @param [Hash] opts the optional parameters
|
|
816
|
+
# @option opts [String] :badges_user_id
|
|
817
|
+
# @option opts [String] :comment_id
|
|
818
|
+
# @option opts [String] :sso
|
|
819
|
+
# @return [GetUserManualBadgesResponse]
|
|
820
|
+
def get_manual_badges_for_user(tenant_id, opts = {})
|
|
821
|
+
data, _status_code, _headers = get_manual_badges_for_user_with_http_info(tenant_id, opts)
|
|
822
|
+
data
|
|
823
|
+
end
|
|
824
|
+
|
|
825
|
+
# @param tenant_id [String]
|
|
826
|
+
# @param [Hash] opts the optional parameters
|
|
827
|
+
# @option opts [String] :badges_user_id
|
|
828
|
+
# @option opts [String] :comment_id
|
|
829
|
+
# @option opts [String] :sso
|
|
830
|
+
# @return [Array<(GetUserManualBadgesResponse, Integer, Hash)>] GetUserManualBadgesResponse data, response status code and response headers
|
|
831
|
+
def get_manual_badges_for_user_with_http_info(tenant_id, opts = {})
|
|
832
|
+
if @api_client.config.debugging
|
|
833
|
+
@api_client.config.logger.debug 'Calling API: ModerationApi.get_manual_badges_for_user ...'
|
|
834
|
+
end
|
|
835
|
+
# verify the required parameter 'tenant_id' is set
|
|
836
|
+
if @api_client.config.client_side_validation && tenant_id.nil?
|
|
837
|
+
fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.get_manual_badges_for_user"
|
|
838
|
+
end
|
|
839
|
+
# resource path
|
|
840
|
+
local_var_path = '/auth/my-account/moderate-comments/mod_api/get-manual-badges-for-user'
|
|
841
|
+
|
|
842
|
+
# query parameters
|
|
843
|
+
query_params = opts[:query_params] || {}
|
|
844
|
+
query_params[:'tenantId'] = tenant_id
|
|
845
|
+
query_params[:'badgesUserId'] = opts[:'badges_user_id'] if !opts[:'badges_user_id'].nil?
|
|
846
|
+
query_params[:'commentId'] = opts[:'comment_id'] if !opts[:'comment_id'].nil?
|
|
847
|
+
query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
|
|
848
|
+
|
|
849
|
+
# header parameters
|
|
850
|
+
header_params = opts[:header_params] || {}
|
|
851
|
+
# HTTP header 'Accept' (if needed)
|
|
852
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
853
|
+
|
|
854
|
+
# form parameters
|
|
855
|
+
form_params = opts[:form_params] || {}
|
|
856
|
+
|
|
857
|
+
# http body (model)
|
|
858
|
+
post_body = opts[:debug_body]
|
|
859
|
+
|
|
860
|
+
# return_type
|
|
861
|
+
return_type = opts[:debug_return_type] || 'GetUserManualBadgesResponse'
|
|
862
|
+
|
|
863
|
+
# auth_names
|
|
864
|
+
auth_names = opts[:debug_auth_names] || []
|
|
865
|
+
|
|
866
|
+
new_options = opts.merge(
|
|
867
|
+
:operation => :"ModerationApi.get_manual_badges_for_user",
|
|
868
|
+
:header_params => header_params,
|
|
869
|
+
:query_params => query_params,
|
|
870
|
+
:form_params => form_params,
|
|
871
|
+
:body => post_body,
|
|
872
|
+
:auth_names => auth_names,
|
|
873
|
+
:return_type => return_type
|
|
874
|
+
)
|
|
875
|
+
|
|
876
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
877
|
+
if @api_client.config.debugging
|
|
878
|
+
@api_client.config.logger.debug "API called: ModerationApi#get_manual_badges_for_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
879
|
+
end
|
|
880
|
+
return data, status_code, headers
|
|
881
|
+
end
|
|
882
|
+
|
|
883
|
+
# @param tenant_id [String]
|
|
884
|
+
# @param comment_id [String]
|
|
885
|
+
# @param [Hash] opts the optional parameters
|
|
886
|
+
# @option opts [Boolean] :include_email
|
|
887
|
+
# @option opts [Boolean] :include_ip
|
|
888
|
+
# @option opts [String] :sso
|
|
889
|
+
# @return [ModerationAPICommentResponse]
|
|
890
|
+
def get_moderation_comment(tenant_id, comment_id, opts = {})
|
|
891
|
+
data, _status_code, _headers = get_moderation_comment_with_http_info(tenant_id, comment_id, opts)
|
|
892
|
+
data
|
|
893
|
+
end
|
|
894
|
+
|
|
895
|
+
# @param tenant_id [String]
|
|
896
|
+
# @param comment_id [String]
|
|
897
|
+
# @param [Hash] opts the optional parameters
|
|
898
|
+
# @option opts [Boolean] :include_email
|
|
899
|
+
# @option opts [Boolean] :include_ip
|
|
900
|
+
# @option opts [String] :sso
|
|
901
|
+
# @return [Array<(ModerationAPICommentResponse, Integer, Hash)>] ModerationAPICommentResponse data, response status code and response headers
|
|
902
|
+
def get_moderation_comment_with_http_info(tenant_id, comment_id, opts = {})
|
|
903
|
+
if @api_client.config.debugging
|
|
904
|
+
@api_client.config.logger.debug 'Calling API: ModerationApi.get_moderation_comment ...'
|
|
905
|
+
end
|
|
906
|
+
# verify the required parameter 'tenant_id' is set
|
|
907
|
+
if @api_client.config.client_side_validation && tenant_id.nil?
|
|
908
|
+
fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.get_moderation_comment"
|
|
909
|
+
end
|
|
910
|
+
# verify the required parameter 'comment_id' is set
|
|
911
|
+
if @api_client.config.client_side_validation && comment_id.nil?
|
|
912
|
+
fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.get_moderation_comment"
|
|
913
|
+
end
|
|
914
|
+
# resource path
|
|
915
|
+
local_var_path = '/auth/my-account/moderate-comments/mod_api/comment/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s))
|
|
916
|
+
|
|
917
|
+
# query parameters
|
|
918
|
+
query_params = opts[:query_params] || {}
|
|
919
|
+
query_params[:'tenantId'] = tenant_id
|
|
920
|
+
query_params[:'includeEmail'] = opts[:'include_email'] if !opts[:'include_email'].nil?
|
|
921
|
+
query_params[:'includeIP'] = opts[:'include_ip'] if !opts[:'include_ip'].nil?
|
|
922
|
+
query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
|
|
923
|
+
|
|
924
|
+
# header parameters
|
|
925
|
+
header_params = opts[:header_params] || {}
|
|
926
|
+
# HTTP header 'Accept' (if needed)
|
|
927
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
928
|
+
|
|
929
|
+
# form parameters
|
|
930
|
+
form_params = opts[:form_params] || {}
|
|
931
|
+
|
|
932
|
+
# http body (model)
|
|
933
|
+
post_body = opts[:debug_body]
|
|
934
|
+
|
|
935
|
+
# return_type
|
|
936
|
+
return_type = opts[:debug_return_type] || 'ModerationAPICommentResponse'
|
|
937
|
+
|
|
938
|
+
# auth_names
|
|
939
|
+
auth_names = opts[:debug_auth_names] || []
|
|
940
|
+
|
|
941
|
+
new_options = opts.merge(
|
|
942
|
+
:operation => :"ModerationApi.get_moderation_comment",
|
|
943
|
+
:header_params => header_params,
|
|
944
|
+
:query_params => query_params,
|
|
945
|
+
:form_params => form_params,
|
|
946
|
+
:body => post_body,
|
|
947
|
+
:auth_names => auth_names,
|
|
948
|
+
:return_type => return_type
|
|
949
|
+
)
|
|
950
|
+
|
|
951
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
952
|
+
if @api_client.config.debugging
|
|
953
|
+
@api_client.config.logger.debug "API called: ModerationApi#get_moderation_comment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
954
|
+
end
|
|
955
|
+
return data, status_code, headers
|
|
956
|
+
end
|
|
957
|
+
|
|
958
|
+
# @param tenant_id [String]
|
|
959
|
+
# @param comment_id [String]
|
|
960
|
+
# @param [Hash] opts the optional parameters
|
|
961
|
+
# @option opts [String] :sso
|
|
962
|
+
# @return [GetCommentTextResponse]
|
|
963
|
+
def get_moderation_comment_text(tenant_id, comment_id, opts = {})
|
|
964
|
+
data, _status_code, _headers = get_moderation_comment_text_with_http_info(tenant_id, comment_id, opts)
|
|
965
|
+
data
|
|
966
|
+
end
|
|
967
|
+
|
|
968
|
+
# @param tenant_id [String]
|
|
969
|
+
# @param comment_id [String]
|
|
970
|
+
# @param [Hash] opts the optional parameters
|
|
971
|
+
# @option opts [String] :sso
|
|
972
|
+
# @return [Array<(GetCommentTextResponse, Integer, Hash)>] GetCommentTextResponse data, response status code and response headers
|
|
973
|
+
def get_moderation_comment_text_with_http_info(tenant_id, comment_id, opts = {})
|
|
974
|
+
if @api_client.config.debugging
|
|
975
|
+
@api_client.config.logger.debug 'Calling API: ModerationApi.get_moderation_comment_text ...'
|
|
976
|
+
end
|
|
977
|
+
# verify the required parameter 'tenant_id' is set
|
|
978
|
+
if @api_client.config.client_side_validation && tenant_id.nil?
|
|
979
|
+
fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.get_moderation_comment_text"
|
|
980
|
+
end
|
|
981
|
+
# verify the required parameter 'comment_id' is set
|
|
982
|
+
if @api_client.config.client_side_validation && comment_id.nil?
|
|
983
|
+
fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.get_moderation_comment_text"
|
|
984
|
+
end
|
|
985
|
+
# resource path
|
|
986
|
+
local_var_path = '/auth/my-account/moderate-comments/mod_api/get-comment-text/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s))
|
|
987
|
+
|
|
988
|
+
# query parameters
|
|
989
|
+
query_params = opts[:query_params] || {}
|
|
990
|
+
query_params[:'tenantId'] = tenant_id
|
|
991
|
+
query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
|
|
992
|
+
|
|
993
|
+
# header parameters
|
|
994
|
+
header_params = opts[:header_params] || {}
|
|
995
|
+
# HTTP header 'Accept' (if needed)
|
|
996
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
997
|
+
|
|
998
|
+
# form parameters
|
|
999
|
+
form_params = opts[:form_params] || {}
|
|
1000
|
+
|
|
1001
|
+
# http body (model)
|
|
1002
|
+
post_body = opts[:debug_body]
|
|
1003
|
+
|
|
1004
|
+
# return_type
|
|
1005
|
+
return_type = opts[:debug_return_type] || 'GetCommentTextResponse'
|
|
1006
|
+
|
|
1007
|
+
# auth_names
|
|
1008
|
+
auth_names = opts[:debug_auth_names] || []
|
|
1009
|
+
|
|
1010
|
+
new_options = opts.merge(
|
|
1011
|
+
:operation => :"ModerationApi.get_moderation_comment_text",
|
|
1012
|
+
:header_params => header_params,
|
|
1013
|
+
:query_params => query_params,
|
|
1014
|
+
:form_params => form_params,
|
|
1015
|
+
:body => post_body,
|
|
1016
|
+
:auth_names => auth_names,
|
|
1017
|
+
:return_type => return_type
|
|
1018
|
+
)
|
|
1019
|
+
|
|
1020
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1021
|
+
if @api_client.config.debugging
|
|
1022
|
+
@api_client.config.logger.debug "API called: ModerationApi#get_moderation_comment_text\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1023
|
+
end
|
|
1024
|
+
return data, status_code, headers
|
|
1025
|
+
end
|
|
1026
|
+
|
|
1027
|
+
# @param tenant_id [String]
|
|
1028
|
+
# @param comment_id [String]
|
|
1029
|
+
# @param [Hash] opts the optional parameters
|
|
1030
|
+
# @option opts [Boolean] :include_by_user_id_and_email
|
|
1031
|
+
# @option opts [Boolean] :include_by_ip
|
|
1032
|
+
# @option opts [Boolean] :include_by_email_domain
|
|
1033
|
+
# @option opts [String] :sso
|
|
1034
|
+
# @return [PreBanSummary]
|
|
1035
|
+
def get_pre_ban_summary(tenant_id, comment_id, opts = {})
|
|
1036
|
+
data, _status_code, _headers = get_pre_ban_summary_with_http_info(tenant_id, comment_id, opts)
|
|
1037
|
+
data
|
|
1038
|
+
end
|
|
1039
|
+
|
|
1040
|
+
# @param tenant_id [String]
|
|
1041
|
+
# @param comment_id [String]
|
|
1042
|
+
# @param [Hash] opts the optional parameters
|
|
1043
|
+
# @option opts [Boolean] :include_by_user_id_and_email
|
|
1044
|
+
# @option opts [Boolean] :include_by_ip
|
|
1045
|
+
# @option opts [Boolean] :include_by_email_domain
|
|
1046
|
+
# @option opts [String] :sso
|
|
1047
|
+
# @return [Array<(PreBanSummary, Integer, Hash)>] PreBanSummary data, response status code and response headers
|
|
1048
|
+
def get_pre_ban_summary_with_http_info(tenant_id, comment_id, opts = {})
|
|
1049
|
+
if @api_client.config.debugging
|
|
1050
|
+
@api_client.config.logger.debug 'Calling API: ModerationApi.get_pre_ban_summary ...'
|
|
1051
|
+
end
|
|
1052
|
+
# verify the required parameter 'tenant_id' is set
|
|
1053
|
+
if @api_client.config.client_side_validation && tenant_id.nil?
|
|
1054
|
+
fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.get_pre_ban_summary"
|
|
1055
|
+
end
|
|
1056
|
+
# verify the required parameter 'comment_id' is set
|
|
1057
|
+
if @api_client.config.client_side_validation && comment_id.nil?
|
|
1058
|
+
fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.get_pre_ban_summary"
|
|
1059
|
+
end
|
|
1060
|
+
# resource path
|
|
1061
|
+
local_var_path = '/auth/my-account/moderate-comments/mod_api/pre-ban-summary/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s))
|
|
1062
|
+
|
|
1063
|
+
# query parameters
|
|
1064
|
+
query_params = opts[:query_params] || {}
|
|
1065
|
+
query_params[:'tenantId'] = tenant_id
|
|
1066
|
+
query_params[:'includeByUserIdAndEmail'] = opts[:'include_by_user_id_and_email'] if !opts[:'include_by_user_id_and_email'].nil?
|
|
1067
|
+
query_params[:'includeByIP'] = opts[:'include_by_ip'] if !opts[:'include_by_ip'].nil?
|
|
1068
|
+
query_params[:'includeByEmailDomain'] = opts[:'include_by_email_domain'] if !opts[:'include_by_email_domain'].nil?
|
|
1069
|
+
query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
|
|
1070
|
+
|
|
1071
|
+
# header parameters
|
|
1072
|
+
header_params = opts[:header_params] || {}
|
|
1073
|
+
# HTTP header 'Accept' (if needed)
|
|
1074
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1075
|
+
|
|
1076
|
+
# form parameters
|
|
1077
|
+
form_params = opts[:form_params] || {}
|
|
1078
|
+
|
|
1079
|
+
# http body (model)
|
|
1080
|
+
post_body = opts[:debug_body]
|
|
1081
|
+
|
|
1082
|
+
# return_type
|
|
1083
|
+
return_type = opts[:debug_return_type] || 'PreBanSummary'
|
|
1084
|
+
|
|
1085
|
+
# auth_names
|
|
1086
|
+
auth_names = opts[:debug_auth_names] || []
|
|
1087
|
+
|
|
1088
|
+
new_options = opts.merge(
|
|
1089
|
+
:operation => :"ModerationApi.get_pre_ban_summary",
|
|
1090
|
+
:header_params => header_params,
|
|
1091
|
+
:query_params => query_params,
|
|
1092
|
+
:form_params => form_params,
|
|
1093
|
+
:body => post_body,
|
|
1094
|
+
:auth_names => auth_names,
|
|
1095
|
+
:return_type => return_type
|
|
1096
|
+
)
|
|
1097
|
+
|
|
1098
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1099
|
+
if @api_client.config.debugging
|
|
1100
|
+
@api_client.config.logger.debug "API called: ModerationApi#get_pre_ban_summary\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1101
|
+
end
|
|
1102
|
+
return data, status_code, headers
|
|
1103
|
+
end
|
|
1104
|
+
|
|
1105
|
+
# @param tenant_id [String]
|
|
1106
|
+
# @param [Hash] opts the optional parameters
|
|
1107
|
+
# @option opts [String] :value
|
|
1108
|
+
# @option opts [String] :filters
|
|
1109
|
+
# @option opts [String] :search_filters
|
|
1110
|
+
# @option opts [String] :sso
|
|
1111
|
+
# @return [ModerationCommentSearchResponse]
|
|
1112
|
+
def get_search_comments_summary(tenant_id, opts = {})
|
|
1113
|
+
data, _status_code, _headers = get_search_comments_summary_with_http_info(tenant_id, opts)
|
|
1114
|
+
data
|
|
1115
|
+
end
|
|
1116
|
+
|
|
1117
|
+
# @param tenant_id [String]
|
|
1118
|
+
# @param [Hash] opts the optional parameters
|
|
1119
|
+
# @option opts [String] :value
|
|
1120
|
+
# @option opts [String] :filters
|
|
1121
|
+
# @option opts [String] :search_filters
|
|
1122
|
+
# @option opts [String] :sso
|
|
1123
|
+
# @return [Array<(ModerationCommentSearchResponse, Integer, Hash)>] ModerationCommentSearchResponse data, response status code and response headers
|
|
1124
|
+
def get_search_comments_summary_with_http_info(tenant_id, opts = {})
|
|
1125
|
+
if @api_client.config.debugging
|
|
1126
|
+
@api_client.config.logger.debug 'Calling API: ModerationApi.get_search_comments_summary ...'
|
|
1127
|
+
end
|
|
1128
|
+
# verify the required parameter 'tenant_id' is set
|
|
1129
|
+
if @api_client.config.client_side_validation && tenant_id.nil?
|
|
1130
|
+
fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.get_search_comments_summary"
|
|
1131
|
+
end
|
|
1132
|
+
# resource path
|
|
1133
|
+
local_var_path = '/auth/my-account/moderate-comments/mod_api/search/comments/summary'
|
|
1134
|
+
|
|
1135
|
+
# query parameters
|
|
1136
|
+
query_params = opts[:query_params] || {}
|
|
1137
|
+
query_params[:'tenantId'] = tenant_id
|
|
1138
|
+
query_params[:'value'] = opts[:'value'] if !opts[:'value'].nil?
|
|
1139
|
+
query_params[:'filters'] = opts[:'filters'] if !opts[:'filters'].nil?
|
|
1140
|
+
query_params[:'searchFilters'] = opts[:'search_filters'] if !opts[:'search_filters'].nil?
|
|
1141
|
+
query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
|
|
1142
|
+
|
|
1143
|
+
# header parameters
|
|
1144
|
+
header_params = opts[:header_params] || {}
|
|
1145
|
+
# HTTP header 'Accept' (if needed)
|
|
1146
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1147
|
+
|
|
1148
|
+
# form parameters
|
|
1149
|
+
form_params = opts[:form_params] || {}
|
|
1150
|
+
|
|
1151
|
+
# http body (model)
|
|
1152
|
+
post_body = opts[:debug_body]
|
|
1153
|
+
|
|
1154
|
+
# return_type
|
|
1155
|
+
return_type = opts[:debug_return_type] || 'ModerationCommentSearchResponse'
|
|
1156
|
+
|
|
1157
|
+
# auth_names
|
|
1158
|
+
auth_names = opts[:debug_auth_names] || []
|
|
1159
|
+
|
|
1160
|
+
new_options = opts.merge(
|
|
1161
|
+
:operation => :"ModerationApi.get_search_comments_summary",
|
|
1162
|
+
:header_params => header_params,
|
|
1163
|
+
:query_params => query_params,
|
|
1164
|
+
:form_params => form_params,
|
|
1165
|
+
:body => post_body,
|
|
1166
|
+
:auth_names => auth_names,
|
|
1167
|
+
:return_type => return_type
|
|
1168
|
+
)
|
|
1169
|
+
|
|
1170
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1171
|
+
if @api_client.config.debugging
|
|
1172
|
+
@api_client.config.logger.debug "API called: ModerationApi#get_search_comments_summary\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1173
|
+
end
|
|
1174
|
+
return data, status_code, headers
|
|
1175
|
+
end
|
|
1176
|
+
|
|
1177
|
+
# @param tenant_id [String]
|
|
1178
|
+
# @param [Hash] opts the optional parameters
|
|
1179
|
+
# @option opts [String] :value
|
|
1180
|
+
# @option opts [String] :sso
|
|
1181
|
+
# @return [ModerationPageSearchResponse]
|
|
1182
|
+
def get_search_pages(tenant_id, opts = {})
|
|
1183
|
+
data, _status_code, _headers = get_search_pages_with_http_info(tenant_id, opts)
|
|
1184
|
+
data
|
|
1185
|
+
end
|
|
1186
|
+
|
|
1187
|
+
# @param tenant_id [String]
|
|
1188
|
+
# @param [Hash] opts the optional parameters
|
|
1189
|
+
# @option opts [String] :value
|
|
1190
|
+
# @option opts [String] :sso
|
|
1191
|
+
# @return [Array<(ModerationPageSearchResponse, Integer, Hash)>] ModerationPageSearchResponse data, response status code and response headers
|
|
1192
|
+
def get_search_pages_with_http_info(tenant_id, opts = {})
|
|
1193
|
+
if @api_client.config.debugging
|
|
1194
|
+
@api_client.config.logger.debug 'Calling API: ModerationApi.get_search_pages ...'
|
|
1195
|
+
end
|
|
1196
|
+
# verify the required parameter 'tenant_id' is set
|
|
1197
|
+
if @api_client.config.client_side_validation && tenant_id.nil?
|
|
1198
|
+
fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.get_search_pages"
|
|
1199
|
+
end
|
|
1200
|
+
# resource path
|
|
1201
|
+
local_var_path = '/auth/my-account/moderate-comments/mod_api/search/pages'
|
|
1202
|
+
|
|
1203
|
+
# query parameters
|
|
1204
|
+
query_params = opts[:query_params] || {}
|
|
1205
|
+
query_params[:'tenantId'] = tenant_id
|
|
1206
|
+
query_params[:'value'] = opts[:'value'] if !opts[:'value'].nil?
|
|
1207
|
+
query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
|
|
1208
|
+
|
|
1209
|
+
# header parameters
|
|
1210
|
+
header_params = opts[:header_params] || {}
|
|
1211
|
+
# HTTP header 'Accept' (if needed)
|
|
1212
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1213
|
+
|
|
1214
|
+
# form parameters
|
|
1215
|
+
form_params = opts[:form_params] || {}
|
|
1216
|
+
|
|
1217
|
+
# http body (model)
|
|
1218
|
+
post_body = opts[:debug_body]
|
|
1219
|
+
|
|
1220
|
+
# return_type
|
|
1221
|
+
return_type = opts[:debug_return_type] || 'ModerationPageSearchResponse'
|
|
1222
|
+
|
|
1223
|
+
# auth_names
|
|
1224
|
+
auth_names = opts[:debug_auth_names] || []
|
|
1225
|
+
|
|
1226
|
+
new_options = opts.merge(
|
|
1227
|
+
:operation => :"ModerationApi.get_search_pages",
|
|
1228
|
+
:header_params => header_params,
|
|
1229
|
+
:query_params => query_params,
|
|
1230
|
+
:form_params => form_params,
|
|
1231
|
+
:body => post_body,
|
|
1232
|
+
:auth_names => auth_names,
|
|
1233
|
+
:return_type => return_type
|
|
1234
|
+
)
|
|
1235
|
+
|
|
1236
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1237
|
+
if @api_client.config.debugging
|
|
1238
|
+
@api_client.config.logger.debug "API called: ModerationApi#get_search_pages\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1239
|
+
end
|
|
1240
|
+
return data, status_code, headers
|
|
1241
|
+
end
|
|
1242
|
+
|
|
1243
|
+
# @param tenant_id [String]
|
|
1244
|
+
# @param [Hash] opts the optional parameters
|
|
1245
|
+
# @option opts [String] :value
|
|
1246
|
+
# @option opts [String] :sso
|
|
1247
|
+
# @return [ModerationSiteSearchResponse]
|
|
1248
|
+
def get_search_sites(tenant_id, opts = {})
|
|
1249
|
+
data, _status_code, _headers = get_search_sites_with_http_info(tenant_id, opts)
|
|
1250
|
+
data
|
|
1251
|
+
end
|
|
1252
|
+
|
|
1253
|
+
# @param tenant_id [String]
|
|
1254
|
+
# @param [Hash] opts the optional parameters
|
|
1255
|
+
# @option opts [String] :value
|
|
1256
|
+
# @option opts [String] :sso
|
|
1257
|
+
# @return [Array<(ModerationSiteSearchResponse, Integer, Hash)>] ModerationSiteSearchResponse data, response status code and response headers
|
|
1258
|
+
def get_search_sites_with_http_info(tenant_id, opts = {})
|
|
1259
|
+
if @api_client.config.debugging
|
|
1260
|
+
@api_client.config.logger.debug 'Calling API: ModerationApi.get_search_sites ...'
|
|
1261
|
+
end
|
|
1262
|
+
# verify the required parameter 'tenant_id' is set
|
|
1263
|
+
if @api_client.config.client_side_validation && tenant_id.nil?
|
|
1264
|
+
fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.get_search_sites"
|
|
1265
|
+
end
|
|
1266
|
+
# resource path
|
|
1267
|
+
local_var_path = '/auth/my-account/moderate-comments/mod_api/search/sites'
|
|
1268
|
+
|
|
1269
|
+
# query parameters
|
|
1270
|
+
query_params = opts[:query_params] || {}
|
|
1271
|
+
query_params[:'tenantId'] = tenant_id
|
|
1272
|
+
query_params[:'value'] = opts[:'value'] if !opts[:'value'].nil?
|
|
1273
|
+
query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
|
|
1274
|
+
|
|
1275
|
+
# header parameters
|
|
1276
|
+
header_params = opts[:header_params] || {}
|
|
1277
|
+
# HTTP header 'Accept' (if needed)
|
|
1278
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1279
|
+
|
|
1280
|
+
# form parameters
|
|
1281
|
+
form_params = opts[:form_params] || {}
|
|
1282
|
+
|
|
1283
|
+
# http body (model)
|
|
1284
|
+
post_body = opts[:debug_body]
|
|
1285
|
+
|
|
1286
|
+
# return_type
|
|
1287
|
+
return_type = opts[:debug_return_type] || 'ModerationSiteSearchResponse'
|
|
1288
|
+
|
|
1289
|
+
# auth_names
|
|
1290
|
+
auth_names = opts[:debug_auth_names] || []
|
|
1291
|
+
|
|
1292
|
+
new_options = opts.merge(
|
|
1293
|
+
:operation => :"ModerationApi.get_search_sites",
|
|
1294
|
+
:header_params => header_params,
|
|
1295
|
+
:query_params => query_params,
|
|
1296
|
+
:form_params => form_params,
|
|
1297
|
+
:body => post_body,
|
|
1298
|
+
:auth_names => auth_names,
|
|
1299
|
+
:return_type => return_type
|
|
1300
|
+
)
|
|
1301
|
+
|
|
1302
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1303
|
+
if @api_client.config.debugging
|
|
1304
|
+
@api_client.config.logger.debug "API called: ModerationApi#get_search_sites\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1305
|
+
end
|
|
1306
|
+
return data, status_code, headers
|
|
1307
|
+
end
|
|
1308
|
+
|
|
1309
|
+
# @param tenant_id [String]
|
|
1310
|
+
# @param [Hash] opts the optional parameters
|
|
1311
|
+
# @option opts [String] :text_search
|
|
1312
|
+
# @option opts [String] :sso
|
|
1313
|
+
# @return [ModerationSuggestResponse]
|
|
1314
|
+
def get_search_suggest(tenant_id, opts = {})
|
|
1315
|
+
data, _status_code, _headers = get_search_suggest_with_http_info(tenant_id, opts)
|
|
1316
|
+
data
|
|
1317
|
+
end
|
|
1318
|
+
|
|
1319
|
+
# @param tenant_id [String]
|
|
1320
|
+
# @param [Hash] opts the optional parameters
|
|
1321
|
+
# @option opts [String] :text_search
|
|
1322
|
+
# @option opts [String] :sso
|
|
1323
|
+
# @return [Array<(ModerationSuggestResponse, Integer, Hash)>] ModerationSuggestResponse data, response status code and response headers
|
|
1324
|
+
def get_search_suggest_with_http_info(tenant_id, opts = {})
|
|
1325
|
+
if @api_client.config.debugging
|
|
1326
|
+
@api_client.config.logger.debug 'Calling API: ModerationApi.get_search_suggest ...'
|
|
1327
|
+
end
|
|
1328
|
+
# verify the required parameter 'tenant_id' is set
|
|
1329
|
+
if @api_client.config.client_side_validation && tenant_id.nil?
|
|
1330
|
+
fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.get_search_suggest"
|
|
1331
|
+
end
|
|
1332
|
+
# resource path
|
|
1333
|
+
local_var_path = '/auth/my-account/moderate-comments/mod_api/search/suggest'
|
|
1334
|
+
|
|
1335
|
+
# query parameters
|
|
1336
|
+
query_params = opts[:query_params] || {}
|
|
1337
|
+
query_params[:'tenantId'] = tenant_id
|
|
1338
|
+
query_params[:'text-search'] = opts[:'text_search'] if !opts[:'text_search'].nil?
|
|
1339
|
+
query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
|
|
1340
|
+
|
|
1341
|
+
# header parameters
|
|
1342
|
+
header_params = opts[:header_params] || {}
|
|
1343
|
+
# HTTP header 'Accept' (if needed)
|
|
1344
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1345
|
+
|
|
1346
|
+
# form parameters
|
|
1347
|
+
form_params = opts[:form_params] || {}
|
|
1348
|
+
|
|
1349
|
+
# http body (model)
|
|
1350
|
+
post_body = opts[:debug_body]
|
|
1351
|
+
|
|
1352
|
+
# return_type
|
|
1353
|
+
return_type = opts[:debug_return_type] || 'ModerationSuggestResponse'
|
|
1354
|
+
|
|
1355
|
+
# auth_names
|
|
1356
|
+
auth_names = opts[:debug_auth_names] || []
|
|
1357
|
+
|
|
1358
|
+
new_options = opts.merge(
|
|
1359
|
+
:operation => :"ModerationApi.get_search_suggest",
|
|
1360
|
+
:header_params => header_params,
|
|
1361
|
+
:query_params => query_params,
|
|
1362
|
+
:form_params => form_params,
|
|
1363
|
+
:body => post_body,
|
|
1364
|
+
:auth_names => auth_names,
|
|
1365
|
+
:return_type => return_type
|
|
1366
|
+
)
|
|
1367
|
+
|
|
1368
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1369
|
+
if @api_client.config.debugging
|
|
1370
|
+
@api_client.config.logger.debug "API called: ModerationApi#get_search_suggest\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1371
|
+
end
|
|
1372
|
+
return data, status_code, headers
|
|
1373
|
+
end
|
|
1374
|
+
|
|
1375
|
+
# @param tenant_id [String]
|
|
1376
|
+
# @param [Hash] opts the optional parameters
|
|
1377
|
+
# @option opts [String] :value
|
|
1378
|
+
# @option opts [String] :sso
|
|
1379
|
+
# @return [ModerationUserSearchResponse]
|
|
1380
|
+
def get_search_users(tenant_id, opts = {})
|
|
1381
|
+
data, _status_code, _headers = get_search_users_with_http_info(tenant_id, opts)
|
|
1382
|
+
data
|
|
1383
|
+
end
|
|
1384
|
+
|
|
1385
|
+
# @param tenant_id [String]
|
|
1386
|
+
# @param [Hash] opts the optional parameters
|
|
1387
|
+
# @option opts [String] :value
|
|
1388
|
+
# @option opts [String] :sso
|
|
1389
|
+
# @return [Array<(ModerationUserSearchResponse, Integer, Hash)>] ModerationUserSearchResponse data, response status code and response headers
|
|
1390
|
+
def get_search_users_with_http_info(tenant_id, opts = {})
|
|
1391
|
+
if @api_client.config.debugging
|
|
1392
|
+
@api_client.config.logger.debug 'Calling API: ModerationApi.get_search_users ...'
|
|
1393
|
+
end
|
|
1394
|
+
# verify the required parameter 'tenant_id' is set
|
|
1395
|
+
if @api_client.config.client_side_validation && tenant_id.nil?
|
|
1396
|
+
fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.get_search_users"
|
|
1397
|
+
end
|
|
1398
|
+
# resource path
|
|
1399
|
+
local_var_path = '/auth/my-account/moderate-comments/mod_api/search/users'
|
|
1400
|
+
|
|
1401
|
+
# query parameters
|
|
1402
|
+
query_params = opts[:query_params] || {}
|
|
1403
|
+
query_params[:'tenantId'] = tenant_id
|
|
1404
|
+
query_params[:'value'] = opts[:'value'] if !opts[:'value'].nil?
|
|
1405
|
+
query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
|
|
1406
|
+
|
|
1407
|
+
# header parameters
|
|
1408
|
+
header_params = opts[:header_params] || {}
|
|
1409
|
+
# HTTP header 'Accept' (if needed)
|
|
1410
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1411
|
+
|
|
1412
|
+
# form parameters
|
|
1413
|
+
form_params = opts[:form_params] || {}
|
|
1414
|
+
|
|
1415
|
+
# http body (model)
|
|
1416
|
+
post_body = opts[:debug_body]
|
|
1417
|
+
|
|
1418
|
+
# return_type
|
|
1419
|
+
return_type = opts[:debug_return_type] || 'ModerationUserSearchResponse'
|
|
1420
|
+
|
|
1421
|
+
# auth_names
|
|
1422
|
+
auth_names = opts[:debug_auth_names] || []
|
|
1423
|
+
|
|
1424
|
+
new_options = opts.merge(
|
|
1425
|
+
:operation => :"ModerationApi.get_search_users",
|
|
1426
|
+
:header_params => header_params,
|
|
1427
|
+
:query_params => query_params,
|
|
1428
|
+
:form_params => form_params,
|
|
1429
|
+
:body => post_body,
|
|
1430
|
+
:auth_names => auth_names,
|
|
1431
|
+
:return_type => return_type
|
|
1432
|
+
)
|
|
1433
|
+
|
|
1434
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1435
|
+
if @api_client.config.debugging
|
|
1436
|
+
@api_client.config.logger.debug "API called: ModerationApi#get_search_users\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1437
|
+
end
|
|
1438
|
+
return data, status_code, headers
|
|
1439
|
+
end
|
|
1440
|
+
|
|
1441
|
+
# @param tenant_id [String]
|
|
1442
|
+
# @param [Hash] opts the optional parameters
|
|
1443
|
+
# @option opts [String] :user_id
|
|
1444
|
+
# @option opts [String] :sso
|
|
1445
|
+
# @return [GetUserTrustFactorResponse]
|
|
1446
|
+
def get_trust_factor(tenant_id, opts = {})
|
|
1447
|
+
data, _status_code, _headers = get_trust_factor_with_http_info(tenant_id, opts)
|
|
1448
|
+
data
|
|
1449
|
+
end
|
|
1450
|
+
|
|
1451
|
+
# @param tenant_id [String]
|
|
1452
|
+
# @param [Hash] opts the optional parameters
|
|
1453
|
+
# @option opts [String] :user_id
|
|
1454
|
+
# @option opts [String] :sso
|
|
1455
|
+
# @return [Array<(GetUserTrustFactorResponse, Integer, Hash)>] GetUserTrustFactorResponse data, response status code and response headers
|
|
1456
|
+
def get_trust_factor_with_http_info(tenant_id, opts = {})
|
|
1457
|
+
if @api_client.config.debugging
|
|
1458
|
+
@api_client.config.logger.debug 'Calling API: ModerationApi.get_trust_factor ...'
|
|
1459
|
+
end
|
|
1460
|
+
# verify the required parameter 'tenant_id' is set
|
|
1461
|
+
if @api_client.config.client_side_validation && tenant_id.nil?
|
|
1462
|
+
fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.get_trust_factor"
|
|
1463
|
+
end
|
|
1464
|
+
# resource path
|
|
1465
|
+
local_var_path = '/auth/my-account/moderate-comments/mod_api/get-trust-factor'
|
|
1466
|
+
|
|
1467
|
+
# query parameters
|
|
1468
|
+
query_params = opts[:query_params] || {}
|
|
1469
|
+
query_params[:'tenantId'] = tenant_id
|
|
1470
|
+
query_params[:'userId'] = opts[:'user_id'] if !opts[:'user_id'].nil?
|
|
1471
|
+
query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
|
|
1472
|
+
|
|
1473
|
+
# header parameters
|
|
1474
|
+
header_params = opts[:header_params] || {}
|
|
1475
|
+
# HTTP header 'Accept' (if needed)
|
|
1476
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1477
|
+
|
|
1478
|
+
# form parameters
|
|
1479
|
+
form_params = opts[:form_params] || {}
|
|
1480
|
+
|
|
1481
|
+
# http body (model)
|
|
1482
|
+
post_body = opts[:debug_body]
|
|
1483
|
+
|
|
1484
|
+
# return_type
|
|
1485
|
+
return_type = opts[:debug_return_type] || 'GetUserTrustFactorResponse'
|
|
1486
|
+
|
|
1487
|
+
# auth_names
|
|
1488
|
+
auth_names = opts[:debug_auth_names] || []
|
|
1489
|
+
|
|
1490
|
+
new_options = opts.merge(
|
|
1491
|
+
:operation => :"ModerationApi.get_trust_factor",
|
|
1492
|
+
:header_params => header_params,
|
|
1493
|
+
:query_params => query_params,
|
|
1494
|
+
:form_params => form_params,
|
|
1495
|
+
:body => post_body,
|
|
1496
|
+
:auth_names => auth_names,
|
|
1497
|
+
:return_type => return_type
|
|
1498
|
+
)
|
|
1499
|
+
|
|
1500
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1501
|
+
if @api_client.config.debugging
|
|
1502
|
+
@api_client.config.logger.debug "API called: ModerationApi#get_trust_factor\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1503
|
+
end
|
|
1504
|
+
return data, status_code, headers
|
|
1505
|
+
end
|
|
1506
|
+
|
|
1507
|
+
# @param tenant_id [String]
|
|
1508
|
+
# @param [Hash] opts the optional parameters
|
|
1509
|
+
# @option opts [String] :sso
|
|
1510
|
+
# @return [APIModerateGetUserBanPreferencesResponse]
|
|
1511
|
+
def get_user_ban_preference(tenant_id, opts = {})
|
|
1512
|
+
data, _status_code, _headers = get_user_ban_preference_with_http_info(tenant_id, opts)
|
|
1513
|
+
data
|
|
1514
|
+
end
|
|
1515
|
+
|
|
1516
|
+
# @param tenant_id [String]
|
|
1517
|
+
# @param [Hash] opts the optional parameters
|
|
1518
|
+
# @option opts [String] :sso
|
|
1519
|
+
# @return [Array<(APIModerateGetUserBanPreferencesResponse, Integer, Hash)>] APIModerateGetUserBanPreferencesResponse data, response status code and response headers
|
|
1520
|
+
def get_user_ban_preference_with_http_info(tenant_id, opts = {})
|
|
1521
|
+
if @api_client.config.debugging
|
|
1522
|
+
@api_client.config.logger.debug 'Calling API: ModerationApi.get_user_ban_preference ...'
|
|
1523
|
+
end
|
|
1524
|
+
# verify the required parameter 'tenant_id' is set
|
|
1525
|
+
if @api_client.config.client_side_validation && tenant_id.nil?
|
|
1526
|
+
fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.get_user_ban_preference"
|
|
1527
|
+
end
|
|
1528
|
+
# resource path
|
|
1529
|
+
local_var_path = '/auth/my-account/moderate-comments/mod_api/user-ban-preference'
|
|
1530
|
+
|
|
1531
|
+
# query parameters
|
|
1532
|
+
query_params = opts[:query_params] || {}
|
|
1533
|
+
query_params[:'tenantId'] = tenant_id
|
|
1534
|
+
query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
|
|
1535
|
+
|
|
1536
|
+
# header parameters
|
|
1537
|
+
header_params = opts[:header_params] || {}
|
|
1538
|
+
# HTTP header 'Accept' (if needed)
|
|
1539
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1540
|
+
|
|
1541
|
+
# form parameters
|
|
1542
|
+
form_params = opts[:form_params] || {}
|
|
1543
|
+
|
|
1544
|
+
# http body (model)
|
|
1545
|
+
post_body = opts[:debug_body]
|
|
1546
|
+
|
|
1547
|
+
# return_type
|
|
1548
|
+
return_type = opts[:debug_return_type] || 'APIModerateGetUserBanPreferencesResponse'
|
|
1549
|
+
|
|
1550
|
+
# auth_names
|
|
1551
|
+
auth_names = opts[:debug_auth_names] || []
|
|
1552
|
+
|
|
1553
|
+
new_options = opts.merge(
|
|
1554
|
+
:operation => :"ModerationApi.get_user_ban_preference",
|
|
1555
|
+
:header_params => header_params,
|
|
1556
|
+
:query_params => query_params,
|
|
1557
|
+
:form_params => form_params,
|
|
1558
|
+
:body => post_body,
|
|
1559
|
+
:auth_names => auth_names,
|
|
1560
|
+
:return_type => return_type
|
|
1561
|
+
)
|
|
1562
|
+
|
|
1563
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1564
|
+
if @api_client.config.debugging
|
|
1565
|
+
@api_client.config.logger.debug "API called: ModerationApi#get_user_ban_preference\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1566
|
+
end
|
|
1567
|
+
return data, status_code, headers
|
|
1568
|
+
end
|
|
1569
|
+
|
|
1570
|
+
# @param tenant_id [String]
|
|
1571
|
+
# @param [Hash] opts the optional parameters
|
|
1572
|
+
# @option opts [String] :comment_id
|
|
1573
|
+
# @option opts [String] :sso
|
|
1574
|
+
# @return [GetUserInternalProfileResponse]
|
|
1575
|
+
def get_user_internal_profile(tenant_id, opts = {})
|
|
1576
|
+
data, _status_code, _headers = get_user_internal_profile_with_http_info(tenant_id, opts)
|
|
1577
|
+
data
|
|
1578
|
+
end
|
|
1579
|
+
|
|
1580
|
+
# @param tenant_id [String]
|
|
1581
|
+
# @param [Hash] opts the optional parameters
|
|
1582
|
+
# @option opts [String] :comment_id
|
|
1583
|
+
# @option opts [String] :sso
|
|
1584
|
+
# @return [Array<(GetUserInternalProfileResponse, Integer, Hash)>] GetUserInternalProfileResponse data, response status code and response headers
|
|
1585
|
+
def get_user_internal_profile_with_http_info(tenant_id, opts = {})
|
|
1586
|
+
if @api_client.config.debugging
|
|
1587
|
+
@api_client.config.logger.debug 'Calling API: ModerationApi.get_user_internal_profile ...'
|
|
1588
|
+
end
|
|
1589
|
+
# verify the required parameter 'tenant_id' is set
|
|
1590
|
+
if @api_client.config.client_side_validation && tenant_id.nil?
|
|
1591
|
+
fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.get_user_internal_profile"
|
|
1592
|
+
end
|
|
1593
|
+
# resource path
|
|
1594
|
+
local_var_path = '/auth/my-account/moderate-comments/mod_api/get-user-internal-profile'
|
|
1595
|
+
|
|
1596
|
+
# query parameters
|
|
1597
|
+
query_params = opts[:query_params] || {}
|
|
1598
|
+
query_params[:'tenantId'] = tenant_id
|
|
1599
|
+
query_params[:'commentId'] = opts[:'comment_id'] if !opts[:'comment_id'].nil?
|
|
1600
|
+
query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
|
|
1601
|
+
|
|
1602
|
+
# header parameters
|
|
1603
|
+
header_params = opts[:header_params] || {}
|
|
1604
|
+
# HTTP header 'Accept' (if needed)
|
|
1605
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1606
|
+
|
|
1607
|
+
# form parameters
|
|
1608
|
+
form_params = opts[:form_params] || {}
|
|
1609
|
+
|
|
1610
|
+
# http body (model)
|
|
1611
|
+
post_body = opts[:debug_body]
|
|
1612
|
+
|
|
1613
|
+
# return_type
|
|
1614
|
+
return_type = opts[:debug_return_type] || 'GetUserInternalProfileResponse'
|
|
1615
|
+
|
|
1616
|
+
# auth_names
|
|
1617
|
+
auth_names = opts[:debug_auth_names] || []
|
|
1618
|
+
|
|
1619
|
+
new_options = opts.merge(
|
|
1620
|
+
:operation => :"ModerationApi.get_user_internal_profile",
|
|
1621
|
+
:header_params => header_params,
|
|
1622
|
+
:query_params => query_params,
|
|
1623
|
+
:form_params => form_params,
|
|
1624
|
+
:body => post_body,
|
|
1625
|
+
:auth_names => auth_names,
|
|
1626
|
+
:return_type => return_type
|
|
1627
|
+
)
|
|
1628
|
+
|
|
1629
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1630
|
+
if @api_client.config.debugging
|
|
1631
|
+
@api_client.config.logger.debug "API called: ModerationApi#get_user_internal_profile\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1632
|
+
end
|
|
1633
|
+
return data, status_code, headers
|
|
1634
|
+
end
|
|
1635
|
+
|
|
1636
|
+
# @param tenant_id [String]
|
|
1637
|
+
# @param comment_id [String]
|
|
1638
|
+
# @param adjust_comment_votes_params [AdjustCommentVotesParams]
|
|
1639
|
+
# @param [Hash] opts the optional parameters
|
|
1640
|
+
# @option opts [String] :broadcast_id
|
|
1641
|
+
# @option opts [String] :sso
|
|
1642
|
+
# @return [AdjustVotesResponse]
|
|
1643
|
+
def post_adjust_comment_votes(tenant_id, comment_id, adjust_comment_votes_params, opts = {})
|
|
1644
|
+
data, _status_code, _headers = post_adjust_comment_votes_with_http_info(tenant_id, comment_id, adjust_comment_votes_params, opts)
|
|
1645
|
+
data
|
|
1646
|
+
end
|
|
1647
|
+
|
|
1648
|
+
# @param tenant_id [String]
|
|
1649
|
+
# @param comment_id [String]
|
|
1650
|
+
# @param adjust_comment_votes_params [AdjustCommentVotesParams]
|
|
1651
|
+
# @param [Hash] opts the optional parameters
|
|
1652
|
+
# @option opts [String] :broadcast_id
|
|
1653
|
+
# @option opts [String] :sso
|
|
1654
|
+
# @return [Array<(AdjustVotesResponse, Integer, Hash)>] AdjustVotesResponse data, response status code and response headers
|
|
1655
|
+
def post_adjust_comment_votes_with_http_info(tenant_id, comment_id, adjust_comment_votes_params, opts = {})
|
|
1656
|
+
if @api_client.config.debugging
|
|
1657
|
+
@api_client.config.logger.debug 'Calling API: ModerationApi.post_adjust_comment_votes ...'
|
|
1658
|
+
end
|
|
1659
|
+
# verify the required parameter 'tenant_id' is set
|
|
1660
|
+
if @api_client.config.client_side_validation && tenant_id.nil?
|
|
1661
|
+
fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.post_adjust_comment_votes"
|
|
1662
|
+
end
|
|
1663
|
+
# verify the required parameter 'comment_id' is set
|
|
1664
|
+
if @api_client.config.client_side_validation && comment_id.nil?
|
|
1665
|
+
fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.post_adjust_comment_votes"
|
|
1666
|
+
end
|
|
1667
|
+
# verify the required parameter 'adjust_comment_votes_params' is set
|
|
1668
|
+
if @api_client.config.client_side_validation && adjust_comment_votes_params.nil?
|
|
1669
|
+
fail ArgumentError, "Missing the required parameter 'adjust_comment_votes_params' when calling ModerationApi.post_adjust_comment_votes"
|
|
1670
|
+
end
|
|
1671
|
+
# resource path
|
|
1672
|
+
local_var_path = '/auth/my-account/moderate-comments/mod_api/adjust-comment-votes/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s))
|
|
1673
|
+
|
|
1674
|
+
# query parameters
|
|
1675
|
+
query_params = opts[:query_params] || {}
|
|
1676
|
+
query_params[:'tenantId'] = tenant_id
|
|
1677
|
+
query_params[:'broadcastId'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil?
|
|
1678
|
+
query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
|
|
1679
|
+
|
|
1680
|
+
# header parameters
|
|
1681
|
+
header_params = opts[:header_params] || {}
|
|
1682
|
+
# HTTP header 'Accept' (if needed)
|
|
1683
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1684
|
+
# HTTP header 'Content-Type'
|
|
1685
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1686
|
+
if !content_type.nil?
|
|
1687
|
+
header_params['Content-Type'] = content_type
|
|
1688
|
+
end
|
|
1689
|
+
|
|
1690
|
+
# form parameters
|
|
1691
|
+
form_params = opts[:form_params] || {}
|
|
1692
|
+
|
|
1693
|
+
# http body (model)
|
|
1694
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(adjust_comment_votes_params)
|
|
1695
|
+
|
|
1696
|
+
# return_type
|
|
1697
|
+
return_type = opts[:debug_return_type] || 'AdjustVotesResponse'
|
|
1698
|
+
|
|
1699
|
+
# auth_names
|
|
1700
|
+
auth_names = opts[:debug_auth_names] || []
|
|
1701
|
+
|
|
1702
|
+
new_options = opts.merge(
|
|
1703
|
+
:operation => :"ModerationApi.post_adjust_comment_votes",
|
|
1704
|
+
:header_params => header_params,
|
|
1705
|
+
:query_params => query_params,
|
|
1706
|
+
:form_params => form_params,
|
|
1707
|
+
:body => post_body,
|
|
1708
|
+
:auth_names => auth_names,
|
|
1709
|
+
:return_type => return_type
|
|
1710
|
+
)
|
|
1711
|
+
|
|
1712
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1713
|
+
if @api_client.config.debugging
|
|
1714
|
+
@api_client.config.logger.debug "API called: ModerationApi#post_adjust_comment_votes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1715
|
+
end
|
|
1716
|
+
return data, status_code, headers
|
|
1717
|
+
end
|
|
1718
|
+
|
|
1719
|
+
# @param tenant_id [String]
|
|
1720
|
+
# @param [Hash] opts the optional parameters
|
|
1721
|
+
# @option opts [String] :text_search
|
|
1722
|
+
# @option opts [String] :by_ip_from_comment
|
|
1723
|
+
# @option opts [String] :filters
|
|
1724
|
+
# @option opts [String] :search_filters
|
|
1725
|
+
# @option opts [String] :sorts
|
|
1726
|
+
# @option opts [String] :sso
|
|
1727
|
+
# @return [ModerationExportResponse]
|
|
1728
|
+
def post_api_export(tenant_id, opts = {})
|
|
1729
|
+
data, _status_code, _headers = post_api_export_with_http_info(tenant_id, opts)
|
|
1730
|
+
data
|
|
1731
|
+
end
|
|
1732
|
+
|
|
1733
|
+
# @param tenant_id [String]
|
|
1734
|
+
# @param [Hash] opts the optional parameters
|
|
1735
|
+
# @option opts [String] :text_search
|
|
1736
|
+
# @option opts [String] :by_ip_from_comment
|
|
1737
|
+
# @option opts [String] :filters
|
|
1738
|
+
# @option opts [String] :search_filters
|
|
1739
|
+
# @option opts [String] :sorts
|
|
1740
|
+
# @option opts [String] :sso
|
|
1741
|
+
# @return [Array<(ModerationExportResponse, Integer, Hash)>] ModerationExportResponse data, response status code and response headers
|
|
1742
|
+
def post_api_export_with_http_info(tenant_id, opts = {})
|
|
1743
|
+
if @api_client.config.debugging
|
|
1744
|
+
@api_client.config.logger.debug 'Calling API: ModerationApi.post_api_export ...'
|
|
1745
|
+
end
|
|
1746
|
+
# verify the required parameter 'tenant_id' is set
|
|
1747
|
+
if @api_client.config.client_side_validation && tenant_id.nil?
|
|
1748
|
+
fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.post_api_export"
|
|
1749
|
+
end
|
|
1750
|
+
# resource path
|
|
1751
|
+
local_var_path = '/auth/my-account/moderate-comments/mod_api/api/export'
|
|
1752
|
+
|
|
1753
|
+
# query parameters
|
|
1754
|
+
query_params = opts[:query_params] || {}
|
|
1755
|
+
query_params[:'tenantId'] = tenant_id
|
|
1756
|
+
query_params[:'text-search'] = opts[:'text_search'] if !opts[:'text_search'].nil?
|
|
1757
|
+
query_params[:'byIPFromComment'] = opts[:'by_ip_from_comment'] if !opts[:'by_ip_from_comment'].nil?
|
|
1758
|
+
query_params[:'filters'] = opts[:'filters'] if !opts[:'filters'].nil?
|
|
1759
|
+
query_params[:'searchFilters'] = opts[:'search_filters'] if !opts[:'search_filters'].nil?
|
|
1760
|
+
query_params[:'sorts'] = opts[:'sorts'] if !opts[:'sorts'].nil?
|
|
1761
|
+
query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
|
|
1762
|
+
|
|
1763
|
+
# header parameters
|
|
1764
|
+
header_params = opts[:header_params] || {}
|
|
1765
|
+
# HTTP header 'Accept' (if needed)
|
|
1766
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1767
|
+
|
|
1768
|
+
# form parameters
|
|
1769
|
+
form_params = opts[:form_params] || {}
|
|
1770
|
+
|
|
1771
|
+
# http body (model)
|
|
1772
|
+
post_body = opts[:debug_body]
|
|
1773
|
+
|
|
1774
|
+
# return_type
|
|
1775
|
+
return_type = opts[:debug_return_type] || 'ModerationExportResponse'
|
|
1776
|
+
|
|
1777
|
+
# auth_names
|
|
1778
|
+
auth_names = opts[:debug_auth_names] || []
|
|
1779
|
+
|
|
1780
|
+
new_options = opts.merge(
|
|
1781
|
+
:operation => :"ModerationApi.post_api_export",
|
|
1782
|
+
:header_params => header_params,
|
|
1783
|
+
:query_params => query_params,
|
|
1784
|
+
:form_params => form_params,
|
|
1785
|
+
:body => post_body,
|
|
1786
|
+
:auth_names => auth_names,
|
|
1787
|
+
:return_type => return_type
|
|
1788
|
+
)
|
|
1789
|
+
|
|
1790
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1791
|
+
if @api_client.config.debugging
|
|
1792
|
+
@api_client.config.logger.debug "API called: ModerationApi#post_api_export\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1793
|
+
end
|
|
1794
|
+
return data, status_code, headers
|
|
1795
|
+
end
|
|
1796
|
+
|
|
1797
|
+
# @param tenant_id [String]
|
|
1798
|
+
# @param comment_id [String]
|
|
1799
|
+
# @param [Hash] opts the optional parameters
|
|
1800
|
+
# @option opts [Boolean] :ban_email
|
|
1801
|
+
# @option opts [Boolean] :ban_email_domain
|
|
1802
|
+
# @option opts [Boolean] :ban_ip
|
|
1803
|
+
# @option opts [Boolean] :delete_all_users_comments
|
|
1804
|
+
# @option opts [String] :banned_until
|
|
1805
|
+
# @option opts [Boolean] :is_shadow_ban
|
|
1806
|
+
# @option opts [String] :update_id
|
|
1807
|
+
# @option opts [String] :ban_reason
|
|
1808
|
+
# @option opts [String] :sso
|
|
1809
|
+
# @return [BanUserFromCommentResult]
|
|
1810
|
+
def post_ban_user_from_comment(tenant_id, comment_id, opts = {})
|
|
1811
|
+
data, _status_code, _headers = post_ban_user_from_comment_with_http_info(tenant_id, comment_id, opts)
|
|
1812
|
+
data
|
|
1813
|
+
end
|
|
1814
|
+
|
|
1815
|
+
# @param tenant_id [String]
|
|
1816
|
+
# @param comment_id [String]
|
|
1817
|
+
# @param [Hash] opts the optional parameters
|
|
1818
|
+
# @option opts [Boolean] :ban_email
|
|
1819
|
+
# @option opts [Boolean] :ban_email_domain
|
|
1820
|
+
# @option opts [Boolean] :ban_ip
|
|
1821
|
+
# @option opts [Boolean] :delete_all_users_comments
|
|
1822
|
+
# @option opts [String] :banned_until
|
|
1823
|
+
# @option opts [Boolean] :is_shadow_ban
|
|
1824
|
+
# @option opts [String] :update_id
|
|
1825
|
+
# @option opts [String] :ban_reason
|
|
1826
|
+
# @option opts [String] :sso
|
|
1827
|
+
# @return [Array<(BanUserFromCommentResult, Integer, Hash)>] BanUserFromCommentResult data, response status code and response headers
|
|
1828
|
+
def post_ban_user_from_comment_with_http_info(tenant_id, comment_id, opts = {})
|
|
1829
|
+
if @api_client.config.debugging
|
|
1830
|
+
@api_client.config.logger.debug 'Calling API: ModerationApi.post_ban_user_from_comment ...'
|
|
1831
|
+
end
|
|
1832
|
+
# verify the required parameter 'tenant_id' is set
|
|
1833
|
+
if @api_client.config.client_side_validation && tenant_id.nil?
|
|
1834
|
+
fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.post_ban_user_from_comment"
|
|
1835
|
+
end
|
|
1836
|
+
# verify the required parameter 'comment_id' is set
|
|
1837
|
+
if @api_client.config.client_side_validation && comment_id.nil?
|
|
1838
|
+
fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.post_ban_user_from_comment"
|
|
1839
|
+
end
|
|
1840
|
+
# resource path
|
|
1841
|
+
local_var_path = '/auth/my-account/moderate-comments/mod_api/ban-user/from-comment/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s))
|
|
1842
|
+
|
|
1843
|
+
# query parameters
|
|
1844
|
+
query_params = opts[:query_params] || {}
|
|
1845
|
+
query_params[:'tenantId'] = tenant_id
|
|
1846
|
+
query_params[:'banEmail'] = opts[:'ban_email'] if !opts[:'ban_email'].nil?
|
|
1847
|
+
query_params[:'banEmailDomain'] = opts[:'ban_email_domain'] if !opts[:'ban_email_domain'].nil?
|
|
1848
|
+
query_params[:'banIP'] = opts[:'ban_ip'] if !opts[:'ban_ip'].nil?
|
|
1849
|
+
query_params[:'deleteAllUsersComments'] = opts[:'delete_all_users_comments'] if !opts[:'delete_all_users_comments'].nil?
|
|
1850
|
+
query_params[:'bannedUntil'] = opts[:'banned_until'] if !opts[:'banned_until'].nil?
|
|
1851
|
+
query_params[:'isShadowBan'] = opts[:'is_shadow_ban'] if !opts[:'is_shadow_ban'].nil?
|
|
1852
|
+
query_params[:'updateId'] = opts[:'update_id'] if !opts[:'update_id'].nil?
|
|
1853
|
+
query_params[:'banReason'] = opts[:'ban_reason'] if !opts[:'ban_reason'].nil?
|
|
1854
|
+
query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
|
|
1855
|
+
|
|
1856
|
+
# header parameters
|
|
1857
|
+
header_params = opts[:header_params] || {}
|
|
1858
|
+
# HTTP header 'Accept' (if needed)
|
|
1859
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1860
|
+
|
|
1861
|
+
# form parameters
|
|
1862
|
+
form_params = opts[:form_params] || {}
|
|
1863
|
+
|
|
1864
|
+
# http body (model)
|
|
1865
|
+
post_body = opts[:debug_body]
|
|
1866
|
+
|
|
1867
|
+
# return_type
|
|
1868
|
+
return_type = opts[:debug_return_type] || 'BanUserFromCommentResult'
|
|
1869
|
+
|
|
1870
|
+
# auth_names
|
|
1871
|
+
auth_names = opts[:debug_auth_names] || []
|
|
1872
|
+
|
|
1873
|
+
new_options = opts.merge(
|
|
1874
|
+
:operation => :"ModerationApi.post_ban_user_from_comment",
|
|
1875
|
+
:header_params => header_params,
|
|
1876
|
+
:query_params => query_params,
|
|
1877
|
+
:form_params => form_params,
|
|
1878
|
+
:body => post_body,
|
|
1879
|
+
:auth_names => auth_names,
|
|
1880
|
+
:return_type => return_type
|
|
1881
|
+
)
|
|
1882
|
+
|
|
1883
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1884
|
+
if @api_client.config.debugging
|
|
1885
|
+
@api_client.config.logger.debug "API called: ModerationApi#post_ban_user_from_comment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1886
|
+
end
|
|
1887
|
+
return data, status_code, headers
|
|
1888
|
+
end
|
|
1889
|
+
|
|
1890
|
+
# @param tenant_id [String]
|
|
1891
|
+
# @param ban_user_undo_params [BanUserUndoParams]
|
|
1892
|
+
# @param [Hash] opts the optional parameters
|
|
1893
|
+
# @option opts [String] :sso
|
|
1894
|
+
# @return [APIEmptyResponse]
|
|
1895
|
+
def post_ban_user_undo(tenant_id, ban_user_undo_params, opts = {})
|
|
1896
|
+
data, _status_code, _headers = post_ban_user_undo_with_http_info(tenant_id, ban_user_undo_params, opts)
|
|
1897
|
+
data
|
|
1898
|
+
end
|
|
1899
|
+
|
|
1900
|
+
# @param tenant_id [String]
|
|
1901
|
+
# @param ban_user_undo_params [BanUserUndoParams]
|
|
1902
|
+
# @param [Hash] opts the optional parameters
|
|
1903
|
+
# @option opts [String] :sso
|
|
1904
|
+
# @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers
|
|
1905
|
+
def post_ban_user_undo_with_http_info(tenant_id, ban_user_undo_params, opts = {})
|
|
1906
|
+
if @api_client.config.debugging
|
|
1907
|
+
@api_client.config.logger.debug 'Calling API: ModerationApi.post_ban_user_undo ...'
|
|
1908
|
+
end
|
|
1909
|
+
# verify the required parameter 'tenant_id' is set
|
|
1910
|
+
if @api_client.config.client_side_validation && tenant_id.nil?
|
|
1911
|
+
fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.post_ban_user_undo"
|
|
1912
|
+
end
|
|
1913
|
+
# verify the required parameter 'ban_user_undo_params' is set
|
|
1914
|
+
if @api_client.config.client_side_validation && ban_user_undo_params.nil?
|
|
1915
|
+
fail ArgumentError, "Missing the required parameter 'ban_user_undo_params' when calling ModerationApi.post_ban_user_undo"
|
|
1916
|
+
end
|
|
1917
|
+
# resource path
|
|
1918
|
+
local_var_path = '/auth/my-account/moderate-comments/mod_api/ban-user/undo'
|
|
1919
|
+
|
|
1920
|
+
# query parameters
|
|
1921
|
+
query_params = opts[:query_params] || {}
|
|
1922
|
+
query_params[:'tenantId'] = tenant_id
|
|
1923
|
+
query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
|
|
1924
|
+
|
|
1925
|
+
# header parameters
|
|
1926
|
+
header_params = opts[:header_params] || {}
|
|
1927
|
+
# HTTP header 'Accept' (if needed)
|
|
1928
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1929
|
+
# HTTP header 'Content-Type'
|
|
1930
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1931
|
+
if !content_type.nil?
|
|
1932
|
+
header_params['Content-Type'] = content_type
|
|
1933
|
+
end
|
|
1934
|
+
|
|
1935
|
+
# form parameters
|
|
1936
|
+
form_params = opts[:form_params] || {}
|
|
1937
|
+
|
|
1938
|
+
# http body (model)
|
|
1939
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(ban_user_undo_params)
|
|
1940
|
+
|
|
1941
|
+
# return_type
|
|
1942
|
+
return_type = opts[:debug_return_type] || 'APIEmptyResponse'
|
|
1943
|
+
|
|
1944
|
+
# auth_names
|
|
1945
|
+
auth_names = opts[:debug_auth_names] || []
|
|
1946
|
+
|
|
1947
|
+
new_options = opts.merge(
|
|
1948
|
+
:operation => :"ModerationApi.post_ban_user_undo",
|
|
1949
|
+
:header_params => header_params,
|
|
1950
|
+
:query_params => query_params,
|
|
1951
|
+
:form_params => form_params,
|
|
1952
|
+
:body => post_body,
|
|
1953
|
+
:auth_names => auth_names,
|
|
1954
|
+
:return_type => return_type
|
|
1955
|
+
)
|
|
1956
|
+
|
|
1957
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1958
|
+
if @api_client.config.debugging
|
|
1959
|
+
@api_client.config.logger.debug "API called: ModerationApi#post_ban_user_undo\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1960
|
+
end
|
|
1961
|
+
return data, status_code, headers
|
|
1962
|
+
end
|
|
1963
|
+
|
|
1964
|
+
# @param tenant_id [String]
|
|
1965
|
+
# @param bulk_pre_ban_params [BulkPreBanParams]
|
|
1966
|
+
# @param [Hash] opts the optional parameters
|
|
1967
|
+
# @option opts [Boolean] :include_by_user_id_and_email
|
|
1968
|
+
# @option opts [Boolean] :include_by_ip
|
|
1969
|
+
# @option opts [Boolean] :include_by_email_domain
|
|
1970
|
+
# @option opts [String] :sso
|
|
1971
|
+
# @return [BulkPreBanSummary]
|
|
1972
|
+
def post_bulk_pre_ban_summary(tenant_id, bulk_pre_ban_params, opts = {})
|
|
1973
|
+
data, _status_code, _headers = post_bulk_pre_ban_summary_with_http_info(tenant_id, bulk_pre_ban_params, opts)
|
|
1974
|
+
data
|
|
1975
|
+
end
|
|
1976
|
+
|
|
1977
|
+
# @param tenant_id [String]
|
|
1978
|
+
# @param bulk_pre_ban_params [BulkPreBanParams]
|
|
1979
|
+
# @param [Hash] opts the optional parameters
|
|
1980
|
+
# @option opts [Boolean] :include_by_user_id_and_email
|
|
1981
|
+
# @option opts [Boolean] :include_by_ip
|
|
1982
|
+
# @option opts [Boolean] :include_by_email_domain
|
|
1983
|
+
# @option opts [String] :sso
|
|
1984
|
+
# @return [Array<(BulkPreBanSummary, Integer, Hash)>] BulkPreBanSummary data, response status code and response headers
|
|
1985
|
+
def post_bulk_pre_ban_summary_with_http_info(tenant_id, bulk_pre_ban_params, opts = {})
|
|
1986
|
+
if @api_client.config.debugging
|
|
1987
|
+
@api_client.config.logger.debug 'Calling API: ModerationApi.post_bulk_pre_ban_summary ...'
|
|
1988
|
+
end
|
|
1989
|
+
# verify the required parameter 'tenant_id' is set
|
|
1990
|
+
if @api_client.config.client_side_validation && tenant_id.nil?
|
|
1991
|
+
fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.post_bulk_pre_ban_summary"
|
|
1992
|
+
end
|
|
1993
|
+
# verify the required parameter 'bulk_pre_ban_params' is set
|
|
1994
|
+
if @api_client.config.client_side_validation && bulk_pre_ban_params.nil?
|
|
1995
|
+
fail ArgumentError, "Missing the required parameter 'bulk_pre_ban_params' when calling ModerationApi.post_bulk_pre_ban_summary"
|
|
1996
|
+
end
|
|
1997
|
+
# resource path
|
|
1998
|
+
local_var_path = '/auth/my-account/moderate-comments/mod_api/bulk-pre-ban-summary'
|
|
1999
|
+
|
|
2000
|
+
# query parameters
|
|
2001
|
+
query_params = opts[:query_params] || {}
|
|
2002
|
+
query_params[:'tenantId'] = tenant_id
|
|
2003
|
+
query_params[:'includeByUserIdAndEmail'] = opts[:'include_by_user_id_and_email'] if !opts[:'include_by_user_id_and_email'].nil?
|
|
2004
|
+
query_params[:'includeByIP'] = opts[:'include_by_ip'] if !opts[:'include_by_ip'].nil?
|
|
2005
|
+
query_params[:'includeByEmailDomain'] = opts[:'include_by_email_domain'] if !opts[:'include_by_email_domain'].nil?
|
|
2006
|
+
query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
|
|
2007
|
+
|
|
2008
|
+
# header parameters
|
|
2009
|
+
header_params = opts[:header_params] || {}
|
|
2010
|
+
# HTTP header 'Accept' (if needed)
|
|
2011
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
2012
|
+
# HTTP header 'Content-Type'
|
|
2013
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
2014
|
+
if !content_type.nil?
|
|
2015
|
+
header_params['Content-Type'] = content_type
|
|
2016
|
+
end
|
|
2017
|
+
|
|
2018
|
+
# form parameters
|
|
2019
|
+
form_params = opts[:form_params] || {}
|
|
2020
|
+
|
|
2021
|
+
# http body (model)
|
|
2022
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(bulk_pre_ban_params)
|
|
2023
|
+
|
|
2024
|
+
# return_type
|
|
2025
|
+
return_type = opts[:debug_return_type] || 'BulkPreBanSummary'
|
|
2026
|
+
|
|
2027
|
+
# auth_names
|
|
2028
|
+
auth_names = opts[:debug_auth_names] || []
|
|
2029
|
+
|
|
2030
|
+
new_options = opts.merge(
|
|
2031
|
+
:operation => :"ModerationApi.post_bulk_pre_ban_summary",
|
|
2032
|
+
:header_params => header_params,
|
|
2033
|
+
:query_params => query_params,
|
|
2034
|
+
:form_params => form_params,
|
|
2035
|
+
:body => post_body,
|
|
2036
|
+
:auth_names => auth_names,
|
|
2037
|
+
:return_type => return_type
|
|
2038
|
+
)
|
|
2039
|
+
|
|
2040
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
2041
|
+
if @api_client.config.debugging
|
|
2042
|
+
@api_client.config.logger.debug "API called: ModerationApi#post_bulk_pre_ban_summary\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2043
|
+
end
|
|
2044
|
+
return data, status_code, headers
|
|
2045
|
+
end
|
|
2046
|
+
|
|
2047
|
+
# @param tenant_id [String]
|
|
2048
|
+
# @param comments_by_ids_params [CommentsByIdsParams]
|
|
2049
|
+
# @param [Hash] opts the optional parameters
|
|
2050
|
+
# @option opts [String] :sso
|
|
2051
|
+
# @return [ModerationAPIChildCommentsResponse]
|
|
2052
|
+
def post_comments_by_ids(tenant_id, comments_by_ids_params, opts = {})
|
|
2053
|
+
data, _status_code, _headers = post_comments_by_ids_with_http_info(tenant_id, comments_by_ids_params, opts)
|
|
2054
|
+
data
|
|
2055
|
+
end
|
|
2056
|
+
|
|
2057
|
+
# @param tenant_id [String]
|
|
2058
|
+
# @param comments_by_ids_params [CommentsByIdsParams]
|
|
2059
|
+
# @param [Hash] opts the optional parameters
|
|
2060
|
+
# @option opts [String] :sso
|
|
2061
|
+
# @return [Array<(ModerationAPIChildCommentsResponse, Integer, Hash)>] ModerationAPIChildCommentsResponse data, response status code and response headers
|
|
2062
|
+
def post_comments_by_ids_with_http_info(tenant_id, comments_by_ids_params, opts = {})
|
|
2063
|
+
if @api_client.config.debugging
|
|
2064
|
+
@api_client.config.logger.debug 'Calling API: ModerationApi.post_comments_by_ids ...'
|
|
2065
|
+
end
|
|
2066
|
+
# verify the required parameter 'tenant_id' is set
|
|
2067
|
+
if @api_client.config.client_side_validation && tenant_id.nil?
|
|
2068
|
+
fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.post_comments_by_ids"
|
|
2069
|
+
end
|
|
2070
|
+
# verify the required parameter 'comments_by_ids_params' is set
|
|
2071
|
+
if @api_client.config.client_side_validation && comments_by_ids_params.nil?
|
|
2072
|
+
fail ArgumentError, "Missing the required parameter 'comments_by_ids_params' when calling ModerationApi.post_comments_by_ids"
|
|
2073
|
+
end
|
|
2074
|
+
# resource path
|
|
2075
|
+
local_var_path = '/auth/my-account/moderate-comments/mod_api/comments-by-ids'
|
|
2076
|
+
|
|
2077
|
+
# query parameters
|
|
2078
|
+
query_params = opts[:query_params] || {}
|
|
2079
|
+
query_params[:'tenantId'] = tenant_id
|
|
2080
|
+
query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
|
|
2081
|
+
|
|
2082
|
+
# header parameters
|
|
2083
|
+
header_params = opts[:header_params] || {}
|
|
2084
|
+
# HTTP header 'Accept' (if needed)
|
|
2085
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
2086
|
+
# HTTP header 'Content-Type'
|
|
2087
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
2088
|
+
if !content_type.nil?
|
|
2089
|
+
header_params['Content-Type'] = content_type
|
|
2090
|
+
end
|
|
2091
|
+
|
|
2092
|
+
# form parameters
|
|
2093
|
+
form_params = opts[:form_params] || {}
|
|
2094
|
+
|
|
2095
|
+
# http body (model)
|
|
2096
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(comments_by_ids_params)
|
|
2097
|
+
|
|
2098
|
+
# return_type
|
|
2099
|
+
return_type = opts[:debug_return_type] || 'ModerationAPIChildCommentsResponse'
|
|
2100
|
+
|
|
2101
|
+
# auth_names
|
|
2102
|
+
auth_names = opts[:debug_auth_names] || []
|
|
2103
|
+
|
|
2104
|
+
new_options = opts.merge(
|
|
2105
|
+
:operation => :"ModerationApi.post_comments_by_ids",
|
|
2106
|
+
:header_params => header_params,
|
|
2107
|
+
:query_params => query_params,
|
|
2108
|
+
:form_params => form_params,
|
|
2109
|
+
:body => post_body,
|
|
2110
|
+
:auth_names => auth_names,
|
|
2111
|
+
:return_type => return_type
|
|
2112
|
+
)
|
|
2113
|
+
|
|
2114
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
2115
|
+
if @api_client.config.debugging
|
|
2116
|
+
@api_client.config.logger.debug "API called: ModerationApi#post_comments_by_ids\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2117
|
+
end
|
|
2118
|
+
return data, status_code, headers
|
|
2119
|
+
end
|
|
2120
|
+
|
|
2121
|
+
# @param tenant_id [String]
|
|
2122
|
+
# @param comment_id [String]
|
|
2123
|
+
# @param [Hash] opts the optional parameters
|
|
2124
|
+
# @option opts [String] :broadcast_id
|
|
2125
|
+
# @option opts [String] :sso
|
|
2126
|
+
# @return [APIEmptyResponse]
|
|
2127
|
+
def post_flag_comment(tenant_id, comment_id, opts = {})
|
|
2128
|
+
data, _status_code, _headers = post_flag_comment_with_http_info(tenant_id, comment_id, opts)
|
|
2129
|
+
data
|
|
2130
|
+
end
|
|
2131
|
+
|
|
2132
|
+
# @param tenant_id [String]
|
|
2133
|
+
# @param comment_id [String]
|
|
2134
|
+
# @param [Hash] opts the optional parameters
|
|
2135
|
+
# @option opts [String] :broadcast_id
|
|
2136
|
+
# @option opts [String] :sso
|
|
2137
|
+
# @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers
|
|
2138
|
+
def post_flag_comment_with_http_info(tenant_id, comment_id, opts = {})
|
|
2139
|
+
if @api_client.config.debugging
|
|
2140
|
+
@api_client.config.logger.debug 'Calling API: ModerationApi.post_flag_comment ...'
|
|
2141
|
+
end
|
|
2142
|
+
# verify the required parameter 'tenant_id' is set
|
|
2143
|
+
if @api_client.config.client_side_validation && tenant_id.nil?
|
|
2144
|
+
fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.post_flag_comment"
|
|
2145
|
+
end
|
|
2146
|
+
# verify the required parameter 'comment_id' is set
|
|
2147
|
+
if @api_client.config.client_side_validation && comment_id.nil?
|
|
2148
|
+
fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.post_flag_comment"
|
|
2149
|
+
end
|
|
2150
|
+
# resource path
|
|
2151
|
+
local_var_path = '/auth/my-account/moderate-comments/mod_api/flag-comment/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s))
|
|
2152
|
+
|
|
2153
|
+
# query parameters
|
|
2154
|
+
query_params = opts[:query_params] || {}
|
|
2155
|
+
query_params[:'tenantId'] = tenant_id
|
|
2156
|
+
query_params[:'broadcastId'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil?
|
|
2157
|
+
query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
|
|
2158
|
+
|
|
2159
|
+
# header parameters
|
|
2160
|
+
header_params = opts[:header_params] || {}
|
|
2161
|
+
# HTTP header 'Accept' (if needed)
|
|
2162
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
2163
|
+
|
|
2164
|
+
# form parameters
|
|
2165
|
+
form_params = opts[:form_params] || {}
|
|
2166
|
+
|
|
2167
|
+
# http body (model)
|
|
2168
|
+
post_body = opts[:debug_body]
|
|
2169
|
+
|
|
2170
|
+
# return_type
|
|
2171
|
+
return_type = opts[:debug_return_type] || 'APIEmptyResponse'
|
|
2172
|
+
|
|
2173
|
+
# auth_names
|
|
2174
|
+
auth_names = opts[:debug_auth_names] || []
|
|
2175
|
+
|
|
2176
|
+
new_options = opts.merge(
|
|
2177
|
+
:operation => :"ModerationApi.post_flag_comment",
|
|
2178
|
+
:header_params => header_params,
|
|
2179
|
+
:query_params => query_params,
|
|
2180
|
+
:form_params => form_params,
|
|
2181
|
+
:body => post_body,
|
|
2182
|
+
:auth_names => auth_names,
|
|
2183
|
+
:return_type => return_type
|
|
2184
|
+
)
|
|
2185
|
+
|
|
2186
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
2187
|
+
if @api_client.config.debugging
|
|
2188
|
+
@api_client.config.logger.debug "API called: ModerationApi#post_flag_comment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2189
|
+
end
|
|
2190
|
+
return data, status_code, headers
|
|
2191
|
+
end
|
|
2192
|
+
|
|
2193
|
+
# @param tenant_id [String]
|
|
2194
|
+
# @param comment_id [String]
|
|
2195
|
+
# @param [Hash] opts the optional parameters
|
|
2196
|
+
# @option opts [String] :broadcast_id
|
|
2197
|
+
# @option opts [String] :sso
|
|
2198
|
+
# @return [PostRemoveCommentApiResponse]
|
|
2199
|
+
def post_remove_comment(tenant_id, comment_id, opts = {})
|
|
2200
|
+
data, _status_code, _headers = post_remove_comment_with_http_info(tenant_id, comment_id, opts)
|
|
2201
|
+
data
|
|
2202
|
+
end
|
|
2203
|
+
|
|
2204
|
+
# @param tenant_id [String]
|
|
2205
|
+
# @param comment_id [String]
|
|
2206
|
+
# @param [Hash] opts the optional parameters
|
|
2207
|
+
# @option opts [String] :broadcast_id
|
|
2208
|
+
# @option opts [String] :sso
|
|
2209
|
+
# @return [Array<(PostRemoveCommentApiResponse, Integer, Hash)>] PostRemoveCommentApiResponse data, response status code and response headers
|
|
2210
|
+
def post_remove_comment_with_http_info(tenant_id, comment_id, opts = {})
|
|
2211
|
+
if @api_client.config.debugging
|
|
2212
|
+
@api_client.config.logger.debug 'Calling API: ModerationApi.post_remove_comment ...'
|
|
2213
|
+
end
|
|
2214
|
+
# verify the required parameter 'tenant_id' is set
|
|
2215
|
+
if @api_client.config.client_side_validation && tenant_id.nil?
|
|
2216
|
+
fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.post_remove_comment"
|
|
2217
|
+
end
|
|
2218
|
+
# verify the required parameter 'comment_id' is set
|
|
2219
|
+
if @api_client.config.client_side_validation && comment_id.nil?
|
|
2220
|
+
fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.post_remove_comment"
|
|
2221
|
+
end
|
|
2222
|
+
# resource path
|
|
2223
|
+
local_var_path = '/auth/my-account/moderate-comments/mod_api/remove-comment/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s))
|
|
2224
|
+
|
|
2225
|
+
# query parameters
|
|
2226
|
+
query_params = opts[:query_params] || {}
|
|
2227
|
+
query_params[:'tenantId'] = tenant_id
|
|
2228
|
+
query_params[:'broadcastId'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil?
|
|
2229
|
+
query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
|
|
2230
|
+
|
|
2231
|
+
# header parameters
|
|
2232
|
+
header_params = opts[:header_params] || {}
|
|
2233
|
+
# HTTP header 'Accept' (if needed)
|
|
2234
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
2235
|
+
|
|
2236
|
+
# form parameters
|
|
2237
|
+
form_params = opts[:form_params] || {}
|
|
2238
|
+
|
|
2239
|
+
# http body (model)
|
|
2240
|
+
post_body = opts[:debug_body]
|
|
2241
|
+
|
|
2242
|
+
# return_type
|
|
2243
|
+
return_type = opts[:debug_return_type] || 'PostRemoveCommentApiResponse'
|
|
2244
|
+
|
|
2245
|
+
# auth_names
|
|
2246
|
+
auth_names = opts[:debug_auth_names] || []
|
|
2247
|
+
|
|
2248
|
+
new_options = opts.merge(
|
|
2249
|
+
:operation => :"ModerationApi.post_remove_comment",
|
|
2250
|
+
:header_params => header_params,
|
|
2251
|
+
:query_params => query_params,
|
|
2252
|
+
:form_params => form_params,
|
|
2253
|
+
:body => post_body,
|
|
2254
|
+
:auth_names => auth_names,
|
|
2255
|
+
:return_type => return_type
|
|
2256
|
+
)
|
|
2257
|
+
|
|
2258
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
2259
|
+
if @api_client.config.debugging
|
|
2260
|
+
@api_client.config.logger.debug "API called: ModerationApi#post_remove_comment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2261
|
+
end
|
|
2262
|
+
return data, status_code, headers
|
|
2263
|
+
end
|
|
2264
|
+
|
|
2265
|
+
# @param tenant_id [String]
|
|
2266
|
+
# @param comment_id [String]
|
|
2267
|
+
# @param [Hash] opts the optional parameters
|
|
2268
|
+
# @option opts [String] :broadcast_id
|
|
2269
|
+
# @option opts [String] :sso
|
|
2270
|
+
# @return [APIEmptyResponse]
|
|
2271
|
+
def post_restore_deleted_comment(tenant_id, comment_id, opts = {})
|
|
2272
|
+
data, _status_code, _headers = post_restore_deleted_comment_with_http_info(tenant_id, comment_id, opts)
|
|
2273
|
+
data
|
|
2274
|
+
end
|
|
2275
|
+
|
|
2276
|
+
# @param tenant_id [String]
|
|
2277
|
+
# @param comment_id [String]
|
|
2278
|
+
# @param [Hash] opts the optional parameters
|
|
2279
|
+
# @option opts [String] :broadcast_id
|
|
2280
|
+
# @option opts [String] :sso
|
|
2281
|
+
# @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers
|
|
2282
|
+
def post_restore_deleted_comment_with_http_info(tenant_id, comment_id, opts = {})
|
|
2283
|
+
if @api_client.config.debugging
|
|
2284
|
+
@api_client.config.logger.debug 'Calling API: ModerationApi.post_restore_deleted_comment ...'
|
|
2285
|
+
end
|
|
2286
|
+
# verify the required parameter 'tenant_id' is set
|
|
2287
|
+
if @api_client.config.client_side_validation && tenant_id.nil?
|
|
2288
|
+
fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.post_restore_deleted_comment"
|
|
2289
|
+
end
|
|
2290
|
+
# verify the required parameter 'comment_id' is set
|
|
2291
|
+
if @api_client.config.client_side_validation && comment_id.nil?
|
|
2292
|
+
fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.post_restore_deleted_comment"
|
|
2293
|
+
end
|
|
2294
|
+
# resource path
|
|
2295
|
+
local_var_path = '/auth/my-account/moderate-comments/mod_api/restore-deleted-comment/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s))
|
|
2296
|
+
|
|
2297
|
+
# query parameters
|
|
2298
|
+
query_params = opts[:query_params] || {}
|
|
2299
|
+
query_params[:'tenantId'] = tenant_id
|
|
2300
|
+
query_params[:'broadcastId'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil?
|
|
2301
|
+
query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
|
|
2302
|
+
|
|
2303
|
+
# header parameters
|
|
2304
|
+
header_params = opts[:header_params] || {}
|
|
2305
|
+
# HTTP header 'Accept' (if needed)
|
|
2306
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
2307
|
+
|
|
2308
|
+
# form parameters
|
|
2309
|
+
form_params = opts[:form_params] || {}
|
|
2310
|
+
|
|
2311
|
+
# http body (model)
|
|
2312
|
+
post_body = opts[:debug_body]
|
|
2313
|
+
|
|
2314
|
+
# return_type
|
|
2315
|
+
return_type = opts[:debug_return_type] || 'APIEmptyResponse'
|
|
2316
|
+
|
|
2317
|
+
# auth_names
|
|
2318
|
+
auth_names = opts[:debug_auth_names] || []
|
|
2319
|
+
|
|
2320
|
+
new_options = opts.merge(
|
|
2321
|
+
:operation => :"ModerationApi.post_restore_deleted_comment",
|
|
2322
|
+
:header_params => header_params,
|
|
2323
|
+
:query_params => query_params,
|
|
2324
|
+
:form_params => form_params,
|
|
2325
|
+
:body => post_body,
|
|
2326
|
+
:auth_names => auth_names,
|
|
2327
|
+
:return_type => return_type
|
|
2328
|
+
)
|
|
2329
|
+
|
|
2330
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
2331
|
+
if @api_client.config.debugging
|
|
2332
|
+
@api_client.config.logger.debug "API called: ModerationApi#post_restore_deleted_comment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2333
|
+
end
|
|
2334
|
+
return data, status_code, headers
|
|
2335
|
+
end
|
|
2336
|
+
|
|
2337
|
+
# @param tenant_id [String]
|
|
2338
|
+
# @param comment_id [String]
|
|
2339
|
+
# @param [Hash] opts the optional parameters
|
|
2340
|
+
# @option opts [Boolean] :approved
|
|
2341
|
+
# @option opts [String] :broadcast_id
|
|
2342
|
+
# @option opts [String] :sso
|
|
2343
|
+
# @return [SetCommentApprovedResponse]
|
|
2344
|
+
def post_set_comment_approval_status(tenant_id, comment_id, opts = {})
|
|
2345
|
+
data, _status_code, _headers = post_set_comment_approval_status_with_http_info(tenant_id, comment_id, opts)
|
|
2346
|
+
data
|
|
2347
|
+
end
|
|
2348
|
+
|
|
2349
|
+
# @param tenant_id [String]
|
|
2350
|
+
# @param comment_id [String]
|
|
2351
|
+
# @param [Hash] opts the optional parameters
|
|
2352
|
+
# @option opts [Boolean] :approved
|
|
2353
|
+
# @option opts [String] :broadcast_id
|
|
2354
|
+
# @option opts [String] :sso
|
|
2355
|
+
# @return [Array<(SetCommentApprovedResponse, Integer, Hash)>] SetCommentApprovedResponse data, response status code and response headers
|
|
2356
|
+
def post_set_comment_approval_status_with_http_info(tenant_id, comment_id, opts = {})
|
|
2357
|
+
if @api_client.config.debugging
|
|
2358
|
+
@api_client.config.logger.debug 'Calling API: ModerationApi.post_set_comment_approval_status ...'
|
|
2359
|
+
end
|
|
2360
|
+
# verify the required parameter 'tenant_id' is set
|
|
2361
|
+
if @api_client.config.client_side_validation && tenant_id.nil?
|
|
2362
|
+
fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.post_set_comment_approval_status"
|
|
2363
|
+
end
|
|
2364
|
+
# verify the required parameter 'comment_id' is set
|
|
2365
|
+
if @api_client.config.client_side_validation && comment_id.nil?
|
|
2366
|
+
fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.post_set_comment_approval_status"
|
|
2367
|
+
end
|
|
2368
|
+
# resource path
|
|
2369
|
+
local_var_path = '/auth/my-account/moderate-comments/mod_api/set-comment-approval-status/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s))
|
|
2370
|
+
|
|
2371
|
+
# query parameters
|
|
2372
|
+
query_params = opts[:query_params] || {}
|
|
2373
|
+
query_params[:'tenantId'] = tenant_id
|
|
2374
|
+
query_params[:'approved'] = opts[:'approved'] if !opts[:'approved'].nil?
|
|
2375
|
+
query_params[:'broadcastId'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil?
|
|
2376
|
+
query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
|
|
2377
|
+
|
|
2378
|
+
# header parameters
|
|
2379
|
+
header_params = opts[:header_params] || {}
|
|
2380
|
+
# HTTP header 'Accept' (if needed)
|
|
2381
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
2382
|
+
|
|
2383
|
+
# form parameters
|
|
2384
|
+
form_params = opts[:form_params] || {}
|
|
2385
|
+
|
|
2386
|
+
# http body (model)
|
|
2387
|
+
post_body = opts[:debug_body]
|
|
2388
|
+
|
|
2389
|
+
# return_type
|
|
2390
|
+
return_type = opts[:debug_return_type] || 'SetCommentApprovedResponse'
|
|
2391
|
+
|
|
2392
|
+
# auth_names
|
|
2393
|
+
auth_names = opts[:debug_auth_names] || []
|
|
2394
|
+
|
|
2395
|
+
new_options = opts.merge(
|
|
2396
|
+
:operation => :"ModerationApi.post_set_comment_approval_status",
|
|
2397
|
+
:header_params => header_params,
|
|
2398
|
+
:query_params => query_params,
|
|
2399
|
+
:form_params => form_params,
|
|
2400
|
+
:body => post_body,
|
|
2401
|
+
:auth_names => auth_names,
|
|
2402
|
+
:return_type => return_type
|
|
2403
|
+
)
|
|
2404
|
+
|
|
2405
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
2406
|
+
if @api_client.config.debugging
|
|
2407
|
+
@api_client.config.logger.debug "API called: ModerationApi#post_set_comment_approval_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2408
|
+
end
|
|
2409
|
+
return data, status_code, headers
|
|
2410
|
+
end
|
|
2411
|
+
|
|
2412
|
+
# @param tenant_id [String]
|
|
2413
|
+
# @param comment_id [String]
|
|
2414
|
+
# @param [Hash] opts the optional parameters
|
|
2415
|
+
# @option opts [Boolean] :reviewed
|
|
2416
|
+
# @option opts [String] :broadcast_id
|
|
2417
|
+
# @option opts [String] :sso
|
|
2418
|
+
# @return [APIEmptyResponse]
|
|
2419
|
+
def post_set_comment_review_status(tenant_id, comment_id, opts = {})
|
|
2420
|
+
data, _status_code, _headers = post_set_comment_review_status_with_http_info(tenant_id, comment_id, opts)
|
|
2421
|
+
data
|
|
2422
|
+
end
|
|
2423
|
+
|
|
2424
|
+
# @param tenant_id [String]
|
|
2425
|
+
# @param comment_id [String]
|
|
2426
|
+
# @param [Hash] opts the optional parameters
|
|
2427
|
+
# @option opts [Boolean] :reviewed
|
|
2428
|
+
# @option opts [String] :broadcast_id
|
|
2429
|
+
# @option opts [String] :sso
|
|
2430
|
+
# @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers
|
|
2431
|
+
def post_set_comment_review_status_with_http_info(tenant_id, comment_id, opts = {})
|
|
2432
|
+
if @api_client.config.debugging
|
|
2433
|
+
@api_client.config.logger.debug 'Calling API: ModerationApi.post_set_comment_review_status ...'
|
|
2434
|
+
end
|
|
2435
|
+
# verify the required parameter 'tenant_id' is set
|
|
2436
|
+
if @api_client.config.client_side_validation && tenant_id.nil?
|
|
2437
|
+
fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.post_set_comment_review_status"
|
|
2438
|
+
end
|
|
2439
|
+
# verify the required parameter 'comment_id' is set
|
|
2440
|
+
if @api_client.config.client_side_validation && comment_id.nil?
|
|
2441
|
+
fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.post_set_comment_review_status"
|
|
2442
|
+
end
|
|
2443
|
+
# resource path
|
|
2444
|
+
local_var_path = '/auth/my-account/moderate-comments/mod_api/set-comment-review-status/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s))
|
|
2445
|
+
|
|
2446
|
+
# query parameters
|
|
2447
|
+
query_params = opts[:query_params] || {}
|
|
2448
|
+
query_params[:'tenantId'] = tenant_id
|
|
2449
|
+
query_params[:'reviewed'] = opts[:'reviewed'] if !opts[:'reviewed'].nil?
|
|
2450
|
+
query_params[:'broadcastId'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil?
|
|
2451
|
+
query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
|
|
2452
|
+
|
|
2453
|
+
# header parameters
|
|
2454
|
+
header_params = opts[:header_params] || {}
|
|
2455
|
+
# HTTP header 'Accept' (if needed)
|
|
2456
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
2457
|
+
|
|
2458
|
+
# form parameters
|
|
2459
|
+
form_params = opts[:form_params] || {}
|
|
2460
|
+
|
|
2461
|
+
# http body (model)
|
|
2462
|
+
post_body = opts[:debug_body]
|
|
2463
|
+
|
|
2464
|
+
# return_type
|
|
2465
|
+
return_type = opts[:debug_return_type] || 'APIEmptyResponse'
|
|
2466
|
+
|
|
2467
|
+
# auth_names
|
|
2468
|
+
auth_names = opts[:debug_auth_names] || []
|
|
2469
|
+
|
|
2470
|
+
new_options = opts.merge(
|
|
2471
|
+
:operation => :"ModerationApi.post_set_comment_review_status",
|
|
2472
|
+
:header_params => header_params,
|
|
2473
|
+
:query_params => query_params,
|
|
2474
|
+
:form_params => form_params,
|
|
2475
|
+
:body => post_body,
|
|
2476
|
+
:auth_names => auth_names,
|
|
2477
|
+
:return_type => return_type
|
|
2478
|
+
)
|
|
2479
|
+
|
|
2480
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
2481
|
+
if @api_client.config.debugging
|
|
2482
|
+
@api_client.config.logger.debug "API called: ModerationApi#post_set_comment_review_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2483
|
+
end
|
|
2484
|
+
return data, status_code, headers
|
|
2485
|
+
end
|
|
2486
|
+
|
|
2487
|
+
# @param tenant_id [String]
|
|
2488
|
+
# @param comment_id [String]
|
|
2489
|
+
# @param [Hash] opts the optional parameters
|
|
2490
|
+
# @option opts [Boolean] :spam
|
|
2491
|
+
# @option opts [Boolean] :perm_not_spam
|
|
2492
|
+
# @option opts [String] :broadcast_id
|
|
2493
|
+
# @option opts [String] :sso
|
|
2494
|
+
# @return [APIEmptyResponse]
|
|
2495
|
+
def post_set_comment_spam_status(tenant_id, comment_id, opts = {})
|
|
2496
|
+
data, _status_code, _headers = post_set_comment_spam_status_with_http_info(tenant_id, comment_id, opts)
|
|
2497
|
+
data
|
|
2498
|
+
end
|
|
2499
|
+
|
|
2500
|
+
# @param tenant_id [String]
|
|
2501
|
+
# @param comment_id [String]
|
|
2502
|
+
# @param [Hash] opts the optional parameters
|
|
2503
|
+
# @option opts [Boolean] :spam
|
|
2504
|
+
# @option opts [Boolean] :perm_not_spam
|
|
2505
|
+
# @option opts [String] :broadcast_id
|
|
2506
|
+
# @option opts [String] :sso
|
|
2507
|
+
# @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers
|
|
2508
|
+
def post_set_comment_spam_status_with_http_info(tenant_id, comment_id, opts = {})
|
|
2509
|
+
if @api_client.config.debugging
|
|
2510
|
+
@api_client.config.logger.debug 'Calling API: ModerationApi.post_set_comment_spam_status ...'
|
|
2511
|
+
end
|
|
2512
|
+
# verify the required parameter 'tenant_id' is set
|
|
2513
|
+
if @api_client.config.client_side_validation && tenant_id.nil?
|
|
2514
|
+
fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.post_set_comment_spam_status"
|
|
2515
|
+
end
|
|
2516
|
+
# verify the required parameter 'comment_id' is set
|
|
2517
|
+
if @api_client.config.client_side_validation && comment_id.nil?
|
|
2518
|
+
fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.post_set_comment_spam_status"
|
|
2519
|
+
end
|
|
2520
|
+
# resource path
|
|
2521
|
+
local_var_path = '/auth/my-account/moderate-comments/mod_api/set-comment-spam-status/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s))
|
|
2522
|
+
|
|
2523
|
+
# query parameters
|
|
2524
|
+
query_params = opts[:query_params] || {}
|
|
2525
|
+
query_params[:'tenantId'] = tenant_id
|
|
2526
|
+
query_params[:'spam'] = opts[:'spam'] if !opts[:'spam'].nil?
|
|
2527
|
+
query_params[:'permNotSpam'] = opts[:'perm_not_spam'] if !opts[:'perm_not_spam'].nil?
|
|
2528
|
+
query_params[:'broadcastId'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil?
|
|
2529
|
+
query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
|
|
2530
|
+
|
|
2531
|
+
# header parameters
|
|
2532
|
+
header_params = opts[:header_params] || {}
|
|
2533
|
+
# HTTP header 'Accept' (if needed)
|
|
2534
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
2535
|
+
|
|
2536
|
+
# form parameters
|
|
2537
|
+
form_params = opts[:form_params] || {}
|
|
2538
|
+
|
|
2539
|
+
# http body (model)
|
|
2540
|
+
post_body = opts[:debug_body]
|
|
2541
|
+
|
|
2542
|
+
# return_type
|
|
2543
|
+
return_type = opts[:debug_return_type] || 'APIEmptyResponse'
|
|
2544
|
+
|
|
2545
|
+
# auth_names
|
|
2546
|
+
auth_names = opts[:debug_auth_names] || []
|
|
2547
|
+
|
|
2548
|
+
new_options = opts.merge(
|
|
2549
|
+
:operation => :"ModerationApi.post_set_comment_spam_status",
|
|
2550
|
+
:header_params => header_params,
|
|
2551
|
+
:query_params => query_params,
|
|
2552
|
+
:form_params => form_params,
|
|
2553
|
+
:body => post_body,
|
|
2554
|
+
:auth_names => auth_names,
|
|
2555
|
+
:return_type => return_type
|
|
2556
|
+
)
|
|
2557
|
+
|
|
2558
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
2559
|
+
if @api_client.config.debugging
|
|
2560
|
+
@api_client.config.logger.debug "API called: ModerationApi#post_set_comment_spam_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2561
|
+
end
|
|
2562
|
+
return data, status_code, headers
|
|
2563
|
+
end
|
|
2564
|
+
|
|
2565
|
+
# @param tenant_id [String]
|
|
2566
|
+
# @param comment_id [String]
|
|
2567
|
+
# @param set_comment_text_params [SetCommentTextParams]
|
|
2568
|
+
# @param [Hash] opts the optional parameters
|
|
2569
|
+
# @option opts [String] :broadcast_id
|
|
2570
|
+
# @option opts [String] :sso
|
|
2571
|
+
# @return [SetCommentTextResponse]
|
|
2572
|
+
def post_set_comment_text(tenant_id, comment_id, set_comment_text_params, opts = {})
|
|
2573
|
+
data, _status_code, _headers = post_set_comment_text_with_http_info(tenant_id, comment_id, set_comment_text_params, opts)
|
|
2574
|
+
data
|
|
2575
|
+
end
|
|
2576
|
+
|
|
2577
|
+
# @param tenant_id [String]
|
|
2578
|
+
# @param comment_id [String]
|
|
2579
|
+
# @param set_comment_text_params [SetCommentTextParams]
|
|
2580
|
+
# @param [Hash] opts the optional parameters
|
|
2581
|
+
# @option opts [String] :broadcast_id
|
|
2582
|
+
# @option opts [String] :sso
|
|
2583
|
+
# @return [Array<(SetCommentTextResponse, Integer, Hash)>] SetCommentTextResponse data, response status code and response headers
|
|
2584
|
+
def post_set_comment_text_with_http_info(tenant_id, comment_id, set_comment_text_params, opts = {})
|
|
2585
|
+
if @api_client.config.debugging
|
|
2586
|
+
@api_client.config.logger.debug 'Calling API: ModerationApi.post_set_comment_text ...'
|
|
2587
|
+
end
|
|
2588
|
+
# verify the required parameter 'tenant_id' is set
|
|
2589
|
+
if @api_client.config.client_side_validation && tenant_id.nil?
|
|
2590
|
+
fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.post_set_comment_text"
|
|
2591
|
+
end
|
|
2592
|
+
# verify the required parameter 'comment_id' is set
|
|
2593
|
+
if @api_client.config.client_side_validation && comment_id.nil?
|
|
2594
|
+
fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.post_set_comment_text"
|
|
2595
|
+
end
|
|
2596
|
+
# verify the required parameter 'set_comment_text_params' is set
|
|
2597
|
+
if @api_client.config.client_side_validation && set_comment_text_params.nil?
|
|
2598
|
+
fail ArgumentError, "Missing the required parameter 'set_comment_text_params' when calling ModerationApi.post_set_comment_text"
|
|
2599
|
+
end
|
|
2600
|
+
# resource path
|
|
2601
|
+
local_var_path = '/auth/my-account/moderate-comments/mod_api/set-comment-text/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s))
|
|
2602
|
+
|
|
2603
|
+
# query parameters
|
|
2604
|
+
query_params = opts[:query_params] || {}
|
|
2605
|
+
query_params[:'tenantId'] = tenant_id
|
|
2606
|
+
query_params[:'broadcastId'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil?
|
|
2607
|
+
query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
|
|
2608
|
+
|
|
2609
|
+
# header parameters
|
|
2610
|
+
header_params = opts[:header_params] || {}
|
|
2611
|
+
# HTTP header 'Accept' (if needed)
|
|
2612
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
2613
|
+
# HTTP header 'Content-Type'
|
|
2614
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
2615
|
+
if !content_type.nil?
|
|
2616
|
+
header_params['Content-Type'] = content_type
|
|
2617
|
+
end
|
|
2618
|
+
|
|
2619
|
+
# form parameters
|
|
2620
|
+
form_params = opts[:form_params] || {}
|
|
2621
|
+
|
|
2622
|
+
# http body (model)
|
|
2623
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(set_comment_text_params)
|
|
2624
|
+
|
|
2625
|
+
# return_type
|
|
2626
|
+
return_type = opts[:debug_return_type] || 'SetCommentTextResponse'
|
|
2627
|
+
|
|
2628
|
+
# auth_names
|
|
2629
|
+
auth_names = opts[:debug_auth_names] || []
|
|
2630
|
+
|
|
2631
|
+
new_options = opts.merge(
|
|
2632
|
+
:operation => :"ModerationApi.post_set_comment_text",
|
|
2633
|
+
:header_params => header_params,
|
|
2634
|
+
:query_params => query_params,
|
|
2635
|
+
:form_params => form_params,
|
|
2636
|
+
:body => post_body,
|
|
2637
|
+
:auth_names => auth_names,
|
|
2638
|
+
:return_type => return_type
|
|
2639
|
+
)
|
|
2640
|
+
|
|
2641
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
2642
|
+
if @api_client.config.debugging
|
|
2643
|
+
@api_client.config.logger.debug "API called: ModerationApi#post_set_comment_text\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2644
|
+
end
|
|
2645
|
+
return data, status_code, headers
|
|
2646
|
+
end
|
|
2647
|
+
|
|
2648
|
+
# @param tenant_id [String]
|
|
2649
|
+
# @param comment_id [String]
|
|
2650
|
+
# @param [Hash] opts the optional parameters
|
|
2651
|
+
# @option opts [String] :broadcast_id
|
|
2652
|
+
# @option opts [String] :sso
|
|
2653
|
+
# @return [APIEmptyResponse]
|
|
2654
|
+
def post_un_flag_comment(tenant_id, comment_id, opts = {})
|
|
2655
|
+
data, _status_code, _headers = post_un_flag_comment_with_http_info(tenant_id, comment_id, opts)
|
|
2656
|
+
data
|
|
2657
|
+
end
|
|
2658
|
+
|
|
2659
|
+
# @param tenant_id [String]
|
|
2660
|
+
# @param comment_id [String]
|
|
2661
|
+
# @param [Hash] opts the optional parameters
|
|
2662
|
+
# @option opts [String] :broadcast_id
|
|
2663
|
+
# @option opts [String] :sso
|
|
2664
|
+
# @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers
|
|
2665
|
+
def post_un_flag_comment_with_http_info(tenant_id, comment_id, opts = {})
|
|
2666
|
+
if @api_client.config.debugging
|
|
2667
|
+
@api_client.config.logger.debug 'Calling API: ModerationApi.post_un_flag_comment ...'
|
|
2668
|
+
end
|
|
2669
|
+
# verify the required parameter 'tenant_id' is set
|
|
2670
|
+
if @api_client.config.client_side_validation && tenant_id.nil?
|
|
2671
|
+
fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.post_un_flag_comment"
|
|
2672
|
+
end
|
|
2673
|
+
# verify the required parameter 'comment_id' is set
|
|
2674
|
+
if @api_client.config.client_side_validation && comment_id.nil?
|
|
2675
|
+
fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.post_un_flag_comment"
|
|
2676
|
+
end
|
|
2677
|
+
# resource path
|
|
2678
|
+
local_var_path = '/auth/my-account/moderate-comments/mod_api/un-flag-comment/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s))
|
|
2679
|
+
|
|
2680
|
+
# query parameters
|
|
2681
|
+
query_params = opts[:query_params] || {}
|
|
2682
|
+
query_params[:'tenantId'] = tenant_id
|
|
2683
|
+
query_params[:'broadcastId'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil?
|
|
2684
|
+
query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
|
|
2685
|
+
|
|
2686
|
+
# header parameters
|
|
2687
|
+
header_params = opts[:header_params] || {}
|
|
2688
|
+
# HTTP header 'Accept' (if needed)
|
|
2689
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
2690
|
+
|
|
2691
|
+
# form parameters
|
|
2692
|
+
form_params = opts[:form_params] || {}
|
|
2693
|
+
|
|
2694
|
+
# http body (model)
|
|
2695
|
+
post_body = opts[:debug_body]
|
|
2696
|
+
|
|
2697
|
+
# return_type
|
|
2698
|
+
return_type = opts[:debug_return_type] || 'APIEmptyResponse'
|
|
2699
|
+
|
|
2700
|
+
# auth_names
|
|
2701
|
+
auth_names = opts[:debug_auth_names] || []
|
|
2702
|
+
|
|
2703
|
+
new_options = opts.merge(
|
|
2704
|
+
:operation => :"ModerationApi.post_un_flag_comment",
|
|
2705
|
+
:header_params => header_params,
|
|
2706
|
+
:query_params => query_params,
|
|
2707
|
+
:form_params => form_params,
|
|
2708
|
+
:body => post_body,
|
|
2709
|
+
:auth_names => auth_names,
|
|
2710
|
+
:return_type => return_type
|
|
2711
|
+
)
|
|
2712
|
+
|
|
2713
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
2714
|
+
if @api_client.config.debugging
|
|
2715
|
+
@api_client.config.logger.debug "API called: ModerationApi#post_un_flag_comment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2716
|
+
end
|
|
2717
|
+
return data, status_code, headers
|
|
2718
|
+
end
|
|
2719
|
+
|
|
2720
|
+
# @param tenant_id [String]
|
|
2721
|
+
# @param comment_id [String]
|
|
2722
|
+
# @param [Hash] opts the optional parameters
|
|
2723
|
+
# @option opts [String] :direction
|
|
2724
|
+
# @option opts [String] :broadcast_id
|
|
2725
|
+
# @option opts [String] :sso
|
|
2726
|
+
# @return [VoteResponse]
|
|
2727
|
+
def post_vote(tenant_id, comment_id, opts = {})
|
|
2728
|
+
data, _status_code, _headers = post_vote_with_http_info(tenant_id, comment_id, opts)
|
|
2729
|
+
data
|
|
2730
|
+
end
|
|
2731
|
+
|
|
2732
|
+
# @param tenant_id [String]
|
|
2733
|
+
# @param comment_id [String]
|
|
2734
|
+
# @param [Hash] opts the optional parameters
|
|
2735
|
+
# @option opts [String] :direction
|
|
2736
|
+
# @option opts [String] :broadcast_id
|
|
2737
|
+
# @option opts [String] :sso
|
|
2738
|
+
# @return [Array<(VoteResponse, Integer, Hash)>] VoteResponse data, response status code and response headers
|
|
2739
|
+
def post_vote_with_http_info(tenant_id, comment_id, opts = {})
|
|
2740
|
+
if @api_client.config.debugging
|
|
2741
|
+
@api_client.config.logger.debug 'Calling API: ModerationApi.post_vote ...'
|
|
2742
|
+
end
|
|
2743
|
+
# verify the required parameter 'tenant_id' is set
|
|
2744
|
+
if @api_client.config.client_side_validation && tenant_id.nil?
|
|
2745
|
+
fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.post_vote"
|
|
2746
|
+
end
|
|
2747
|
+
# verify the required parameter 'comment_id' is set
|
|
2748
|
+
if @api_client.config.client_side_validation && comment_id.nil?
|
|
2749
|
+
fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.post_vote"
|
|
2750
|
+
end
|
|
2751
|
+
# resource path
|
|
2752
|
+
local_var_path = '/auth/my-account/moderate-comments/mod_api/vote/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s))
|
|
2753
|
+
|
|
2754
|
+
# query parameters
|
|
2755
|
+
query_params = opts[:query_params] || {}
|
|
2756
|
+
query_params[:'tenantId'] = tenant_id
|
|
2757
|
+
query_params[:'direction'] = opts[:'direction'] if !opts[:'direction'].nil?
|
|
2758
|
+
query_params[:'broadcastId'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil?
|
|
2759
|
+
query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
|
|
2760
|
+
|
|
2761
|
+
# header parameters
|
|
2762
|
+
header_params = opts[:header_params] || {}
|
|
2763
|
+
# HTTP header 'Accept' (if needed)
|
|
2764
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
2765
|
+
|
|
2766
|
+
# form parameters
|
|
2767
|
+
form_params = opts[:form_params] || {}
|
|
2768
|
+
|
|
2769
|
+
# http body (model)
|
|
2770
|
+
post_body = opts[:debug_body]
|
|
2771
|
+
|
|
2772
|
+
# return_type
|
|
2773
|
+
return_type = opts[:debug_return_type] || 'VoteResponse'
|
|
2774
|
+
|
|
2775
|
+
# auth_names
|
|
2776
|
+
auth_names = opts[:debug_auth_names] || []
|
|
2777
|
+
|
|
2778
|
+
new_options = opts.merge(
|
|
2779
|
+
:operation => :"ModerationApi.post_vote",
|
|
2780
|
+
:header_params => header_params,
|
|
2781
|
+
:query_params => query_params,
|
|
2782
|
+
:form_params => form_params,
|
|
2783
|
+
:body => post_body,
|
|
2784
|
+
:auth_names => auth_names,
|
|
2785
|
+
:return_type => return_type
|
|
2786
|
+
)
|
|
2787
|
+
|
|
2788
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
2789
|
+
if @api_client.config.debugging
|
|
2790
|
+
@api_client.config.logger.debug "API called: ModerationApi#post_vote\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2791
|
+
end
|
|
2792
|
+
return data, status_code, headers
|
|
2793
|
+
end
|
|
2794
|
+
|
|
2795
|
+
# @param tenant_id [String]
|
|
2796
|
+
# @param badge_id [String]
|
|
2797
|
+
# @param [Hash] opts the optional parameters
|
|
2798
|
+
# @option opts [String] :user_id
|
|
2799
|
+
# @option opts [String] :comment_id
|
|
2800
|
+
# @option opts [String] :broadcast_id
|
|
2801
|
+
# @option opts [String] :sso
|
|
2802
|
+
# @return [AwardUserBadgeResponse]
|
|
2803
|
+
def put_award_badge(tenant_id, badge_id, opts = {})
|
|
2804
|
+
data, _status_code, _headers = put_award_badge_with_http_info(tenant_id, badge_id, opts)
|
|
2805
|
+
data
|
|
2806
|
+
end
|
|
2807
|
+
|
|
2808
|
+
# @param tenant_id [String]
|
|
2809
|
+
# @param badge_id [String]
|
|
2810
|
+
# @param [Hash] opts the optional parameters
|
|
2811
|
+
# @option opts [String] :user_id
|
|
2812
|
+
# @option opts [String] :comment_id
|
|
2813
|
+
# @option opts [String] :broadcast_id
|
|
2814
|
+
# @option opts [String] :sso
|
|
2815
|
+
# @return [Array<(AwardUserBadgeResponse, Integer, Hash)>] AwardUserBadgeResponse data, response status code and response headers
|
|
2816
|
+
def put_award_badge_with_http_info(tenant_id, badge_id, opts = {})
|
|
2817
|
+
if @api_client.config.debugging
|
|
2818
|
+
@api_client.config.logger.debug 'Calling API: ModerationApi.put_award_badge ...'
|
|
2819
|
+
end
|
|
2820
|
+
# verify the required parameter 'tenant_id' is set
|
|
2821
|
+
if @api_client.config.client_side_validation && tenant_id.nil?
|
|
2822
|
+
fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.put_award_badge"
|
|
2823
|
+
end
|
|
2824
|
+
# verify the required parameter 'badge_id' is set
|
|
2825
|
+
if @api_client.config.client_side_validation && badge_id.nil?
|
|
2826
|
+
fail ArgumentError, "Missing the required parameter 'badge_id' when calling ModerationApi.put_award_badge"
|
|
2827
|
+
end
|
|
2828
|
+
# resource path
|
|
2829
|
+
local_var_path = '/auth/my-account/moderate-comments/mod_api/award-badge'
|
|
2830
|
+
|
|
2831
|
+
# query parameters
|
|
2832
|
+
query_params = opts[:query_params] || {}
|
|
2833
|
+
query_params[:'tenantId'] = tenant_id
|
|
2834
|
+
query_params[:'badgeId'] = badge_id
|
|
2835
|
+
query_params[:'userId'] = opts[:'user_id'] if !opts[:'user_id'].nil?
|
|
2836
|
+
query_params[:'commentId'] = opts[:'comment_id'] if !opts[:'comment_id'].nil?
|
|
2837
|
+
query_params[:'broadcastId'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil?
|
|
2838
|
+
query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
|
|
2839
|
+
|
|
2840
|
+
# header parameters
|
|
2841
|
+
header_params = opts[:header_params] || {}
|
|
2842
|
+
# HTTP header 'Accept' (if needed)
|
|
2843
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
2844
|
+
|
|
2845
|
+
# form parameters
|
|
2846
|
+
form_params = opts[:form_params] || {}
|
|
2847
|
+
|
|
2848
|
+
# http body (model)
|
|
2849
|
+
post_body = opts[:debug_body]
|
|
2850
|
+
|
|
2851
|
+
# return_type
|
|
2852
|
+
return_type = opts[:debug_return_type] || 'AwardUserBadgeResponse'
|
|
2853
|
+
|
|
2854
|
+
# auth_names
|
|
2855
|
+
auth_names = opts[:debug_auth_names] || []
|
|
2856
|
+
|
|
2857
|
+
new_options = opts.merge(
|
|
2858
|
+
:operation => :"ModerationApi.put_award_badge",
|
|
2859
|
+
:header_params => header_params,
|
|
2860
|
+
:query_params => query_params,
|
|
2861
|
+
:form_params => form_params,
|
|
2862
|
+
:body => post_body,
|
|
2863
|
+
:auth_names => auth_names,
|
|
2864
|
+
:return_type => return_type
|
|
2865
|
+
)
|
|
2866
|
+
|
|
2867
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
2868
|
+
if @api_client.config.debugging
|
|
2869
|
+
@api_client.config.logger.debug "API called: ModerationApi#put_award_badge\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2870
|
+
end
|
|
2871
|
+
return data, status_code, headers
|
|
2872
|
+
end
|
|
2873
|
+
|
|
2874
|
+
# @param tenant_id [String]
|
|
2875
|
+
# @param url_id [String]
|
|
2876
|
+
# @param [Hash] opts the optional parameters
|
|
2877
|
+
# @option opts [String] :sso
|
|
2878
|
+
# @return [APIEmptyResponse]
|
|
2879
|
+
def put_close_thread(tenant_id, url_id, opts = {})
|
|
2880
|
+
data, _status_code, _headers = put_close_thread_with_http_info(tenant_id, url_id, opts)
|
|
2881
|
+
data
|
|
2882
|
+
end
|
|
2883
|
+
|
|
2884
|
+
# @param tenant_id [String]
|
|
2885
|
+
# @param url_id [String]
|
|
2886
|
+
# @param [Hash] opts the optional parameters
|
|
2887
|
+
# @option opts [String] :sso
|
|
2888
|
+
# @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers
|
|
2889
|
+
def put_close_thread_with_http_info(tenant_id, url_id, opts = {})
|
|
2890
|
+
if @api_client.config.debugging
|
|
2891
|
+
@api_client.config.logger.debug 'Calling API: ModerationApi.put_close_thread ...'
|
|
2892
|
+
end
|
|
2893
|
+
# verify the required parameter 'tenant_id' is set
|
|
2894
|
+
if @api_client.config.client_side_validation && tenant_id.nil?
|
|
2895
|
+
fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.put_close_thread"
|
|
2896
|
+
end
|
|
2897
|
+
# verify the required parameter 'url_id' is set
|
|
2898
|
+
if @api_client.config.client_side_validation && url_id.nil?
|
|
2899
|
+
fail ArgumentError, "Missing the required parameter 'url_id' when calling ModerationApi.put_close_thread"
|
|
2900
|
+
end
|
|
2901
|
+
# resource path
|
|
2902
|
+
local_var_path = '/auth/my-account/moderate-comments/mod_api/close-thread'
|
|
2903
|
+
|
|
2904
|
+
# query parameters
|
|
2905
|
+
query_params = opts[:query_params] || {}
|
|
2906
|
+
query_params[:'tenantId'] = tenant_id
|
|
2907
|
+
query_params[:'urlId'] = url_id
|
|
2908
|
+
query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
|
|
2909
|
+
|
|
2910
|
+
# header parameters
|
|
2911
|
+
header_params = opts[:header_params] || {}
|
|
2912
|
+
# HTTP header 'Accept' (if needed)
|
|
2913
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
2914
|
+
|
|
2915
|
+
# form parameters
|
|
2916
|
+
form_params = opts[:form_params] || {}
|
|
2917
|
+
|
|
2918
|
+
# http body (model)
|
|
2919
|
+
post_body = opts[:debug_body]
|
|
2920
|
+
|
|
2921
|
+
# return_type
|
|
2922
|
+
return_type = opts[:debug_return_type] || 'APIEmptyResponse'
|
|
2923
|
+
|
|
2924
|
+
# auth_names
|
|
2925
|
+
auth_names = opts[:debug_auth_names] || []
|
|
2926
|
+
|
|
2927
|
+
new_options = opts.merge(
|
|
2928
|
+
:operation => :"ModerationApi.put_close_thread",
|
|
2929
|
+
:header_params => header_params,
|
|
2930
|
+
:query_params => query_params,
|
|
2931
|
+
:form_params => form_params,
|
|
2932
|
+
:body => post_body,
|
|
2933
|
+
:auth_names => auth_names,
|
|
2934
|
+
:return_type => return_type
|
|
2935
|
+
)
|
|
2936
|
+
|
|
2937
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
2938
|
+
if @api_client.config.debugging
|
|
2939
|
+
@api_client.config.logger.debug "API called: ModerationApi#put_close_thread\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2940
|
+
end
|
|
2941
|
+
return data, status_code, headers
|
|
2942
|
+
end
|
|
2943
|
+
|
|
2944
|
+
# @param tenant_id [String]
|
|
2945
|
+
# @param badge_id [String]
|
|
2946
|
+
# @param [Hash] opts the optional parameters
|
|
2947
|
+
# @option opts [String] :user_id
|
|
2948
|
+
# @option opts [String] :comment_id
|
|
2949
|
+
# @option opts [String] :broadcast_id
|
|
2950
|
+
# @option opts [String] :sso
|
|
2951
|
+
# @return [RemoveUserBadgeResponse]
|
|
2952
|
+
def put_remove_badge(tenant_id, badge_id, opts = {})
|
|
2953
|
+
data, _status_code, _headers = put_remove_badge_with_http_info(tenant_id, badge_id, opts)
|
|
2954
|
+
data
|
|
2955
|
+
end
|
|
2956
|
+
|
|
2957
|
+
# @param tenant_id [String]
|
|
2958
|
+
# @param badge_id [String]
|
|
2959
|
+
# @param [Hash] opts the optional parameters
|
|
2960
|
+
# @option opts [String] :user_id
|
|
2961
|
+
# @option opts [String] :comment_id
|
|
2962
|
+
# @option opts [String] :broadcast_id
|
|
2963
|
+
# @option opts [String] :sso
|
|
2964
|
+
# @return [Array<(RemoveUserBadgeResponse, Integer, Hash)>] RemoveUserBadgeResponse data, response status code and response headers
|
|
2965
|
+
def put_remove_badge_with_http_info(tenant_id, badge_id, opts = {})
|
|
2966
|
+
if @api_client.config.debugging
|
|
2967
|
+
@api_client.config.logger.debug 'Calling API: ModerationApi.put_remove_badge ...'
|
|
2968
|
+
end
|
|
2969
|
+
# verify the required parameter 'tenant_id' is set
|
|
2970
|
+
if @api_client.config.client_side_validation && tenant_id.nil?
|
|
2971
|
+
fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.put_remove_badge"
|
|
2972
|
+
end
|
|
2973
|
+
# verify the required parameter 'badge_id' is set
|
|
2974
|
+
if @api_client.config.client_side_validation && badge_id.nil?
|
|
2975
|
+
fail ArgumentError, "Missing the required parameter 'badge_id' when calling ModerationApi.put_remove_badge"
|
|
2976
|
+
end
|
|
2977
|
+
# resource path
|
|
2978
|
+
local_var_path = '/auth/my-account/moderate-comments/mod_api/remove-badge'
|
|
2979
|
+
|
|
2980
|
+
# query parameters
|
|
2981
|
+
query_params = opts[:query_params] || {}
|
|
2982
|
+
query_params[:'tenantId'] = tenant_id
|
|
2983
|
+
query_params[:'badgeId'] = badge_id
|
|
2984
|
+
query_params[:'userId'] = opts[:'user_id'] if !opts[:'user_id'].nil?
|
|
2985
|
+
query_params[:'commentId'] = opts[:'comment_id'] if !opts[:'comment_id'].nil?
|
|
2986
|
+
query_params[:'broadcastId'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil?
|
|
2987
|
+
query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
|
|
2988
|
+
|
|
2989
|
+
# header parameters
|
|
2990
|
+
header_params = opts[:header_params] || {}
|
|
2991
|
+
# HTTP header 'Accept' (if needed)
|
|
2992
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
2993
|
+
|
|
2994
|
+
# form parameters
|
|
2995
|
+
form_params = opts[:form_params] || {}
|
|
2996
|
+
|
|
2997
|
+
# http body (model)
|
|
2998
|
+
post_body = opts[:debug_body]
|
|
2999
|
+
|
|
3000
|
+
# return_type
|
|
3001
|
+
return_type = opts[:debug_return_type] || 'RemoveUserBadgeResponse'
|
|
3002
|
+
|
|
3003
|
+
# auth_names
|
|
3004
|
+
auth_names = opts[:debug_auth_names] || []
|
|
3005
|
+
|
|
3006
|
+
new_options = opts.merge(
|
|
3007
|
+
:operation => :"ModerationApi.put_remove_badge",
|
|
3008
|
+
:header_params => header_params,
|
|
3009
|
+
:query_params => query_params,
|
|
3010
|
+
:form_params => form_params,
|
|
3011
|
+
:body => post_body,
|
|
3012
|
+
:auth_names => auth_names,
|
|
3013
|
+
:return_type => return_type
|
|
3014
|
+
)
|
|
3015
|
+
|
|
3016
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
3017
|
+
if @api_client.config.debugging
|
|
3018
|
+
@api_client.config.logger.debug "API called: ModerationApi#put_remove_badge\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3019
|
+
end
|
|
3020
|
+
return data, status_code, headers
|
|
3021
|
+
end
|
|
3022
|
+
|
|
3023
|
+
# @param tenant_id [String]
|
|
3024
|
+
# @param url_id [String]
|
|
3025
|
+
# @param [Hash] opts the optional parameters
|
|
3026
|
+
# @option opts [String] :sso
|
|
3027
|
+
# @return [APIEmptyResponse]
|
|
3028
|
+
def put_reopen_thread(tenant_id, url_id, opts = {})
|
|
3029
|
+
data, _status_code, _headers = put_reopen_thread_with_http_info(tenant_id, url_id, opts)
|
|
3030
|
+
data
|
|
3031
|
+
end
|
|
3032
|
+
|
|
3033
|
+
# @param tenant_id [String]
|
|
3034
|
+
# @param url_id [String]
|
|
3035
|
+
# @param [Hash] opts the optional parameters
|
|
3036
|
+
# @option opts [String] :sso
|
|
3037
|
+
# @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers
|
|
3038
|
+
def put_reopen_thread_with_http_info(tenant_id, url_id, opts = {})
|
|
3039
|
+
if @api_client.config.debugging
|
|
3040
|
+
@api_client.config.logger.debug 'Calling API: ModerationApi.put_reopen_thread ...'
|
|
3041
|
+
end
|
|
3042
|
+
# verify the required parameter 'tenant_id' is set
|
|
3043
|
+
if @api_client.config.client_side_validation && tenant_id.nil?
|
|
3044
|
+
fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.put_reopen_thread"
|
|
3045
|
+
end
|
|
3046
|
+
# verify the required parameter 'url_id' is set
|
|
3047
|
+
if @api_client.config.client_side_validation && url_id.nil?
|
|
3048
|
+
fail ArgumentError, "Missing the required parameter 'url_id' when calling ModerationApi.put_reopen_thread"
|
|
3049
|
+
end
|
|
3050
|
+
# resource path
|
|
3051
|
+
local_var_path = '/auth/my-account/moderate-comments/mod_api/reopen-thread'
|
|
3052
|
+
|
|
3053
|
+
# query parameters
|
|
3054
|
+
query_params = opts[:query_params] || {}
|
|
3055
|
+
query_params[:'tenantId'] = tenant_id
|
|
3056
|
+
query_params[:'urlId'] = url_id
|
|
3057
|
+
query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
|
|
3058
|
+
|
|
3059
|
+
# header parameters
|
|
3060
|
+
header_params = opts[:header_params] || {}
|
|
3061
|
+
# HTTP header 'Accept' (if needed)
|
|
3062
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
3063
|
+
|
|
3064
|
+
# form parameters
|
|
3065
|
+
form_params = opts[:form_params] || {}
|
|
3066
|
+
|
|
3067
|
+
# http body (model)
|
|
3068
|
+
post_body = opts[:debug_body]
|
|
3069
|
+
|
|
3070
|
+
# return_type
|
|
3071
|
+
return_type = opts[:debug_return_type] || 'APIEmptyResponse'
|
|
3072
|
+
|
|
3073
|
+
# auth_names
|
|
3074
|
+
auth_names = opts[:debug_auth_names] || []
|
|
3075
|
+
|
|
3076
|
+
new_options = opts.merge(
|
|
3077
|
+
:operation => :"ModerationApi.put_reopen_thread",
|
|
3078
|
+
:header_params => header_params,
|
|
3079
|
+
:query_params => query_params,
|
|
3080
|
+
:form_params => form_params,
|
|
3081
|
+
:body => post_body,
|
|
3082
|
+
:auth_names => auth_names,
|
|
3083
|
+
:return_type => return_type
|
|
3084
|
+
)
|
|
3085
|
+
|
|
3086
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
3087
|
+
if @api_client.config.debugging
|
|
3088
|
+
@api_client.config.logger.debug "API called: ModerationApi#put_reopen_thread\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3089
|
+
end
|
|
3090
|
+
return data, status_code, headers
|
|
3091
|
+
end
|
|
3092
|
+
|
|
3093
|
+
# @param tenant_id [String]
|
|
3094
|
+
# @param [Hash] opts the optional parameters
|
|
3095
|
+
# @option opts [String] :user_id
|
|
3096
|
+
# @option opts [String] :trust_factor
|
|
3097
|
+
# @option opts [String] :sso
|
|
3098
|
+
# @return [SetUserTrustFactorResponse]
|
|
3099
|
+
def set_trust_factor(tenant_id, opts = {})
|
|
3100
|
+
data, _status_code, _headers = set_trust_factor_with_http_info(tenant_id, opts)
|
|
3101
|
+
data
|
|
3102
|
+
end
|
|
3103
|
+
|
|
3104
|
+
# @param tenant_id [String]
|
|
3105
|
+
# @param [Hash] opts the optional parameters
|
|
3106
|
+
# @option opts [String] :user_id
|
|
3107
|
+
# @option opts [String] :trust_factor
|
|
3108
|
+
# @option opts [String] :sso
|
|
3109
|
+
# @return [Array<(SetUserTrustFactorResponse, Integer, Hash)>] SetUserTrustFactorResponse data, response status code and response headers
|
|
3110
|
+
def set_trust_factor_with_http_info(tenant_id, opts = {})
|
|
3111
|
+
if @api_client.config.debugging
|
|
3112
|
+
@api_client.config.logger.debug 'Calling API: ModerationApi.set_trust_factor ...'
|
|
3113
|
+
end
|
|
3114
|
+
# verify the required parameter 'tenant_id' is set
|
|
3115
|
+
if @api_client.config.client_side_validation && tenant_id.nil?
|
|
3116
|
+
fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.set_trust_factor"
|
|
3117
|
+
end
|
|
3118
|
+
# resource path
|
|
3119
|
+
local_var_path = '/auth/my-account/moderate-comments/mod_api/set-trust-factor'
|
|
3120
|
+
|
|
3121
|
+
# query parameters
|
|
3122
|
+
query_params = opts[:query_params] || {}
|
|
3123
|
+
query_params[:'tenantId'] = tenant_id
|
|
3124
|
+
query_params[:'userId'] = opts[:'user_id'] if !opts[:'user_id'].nil?
|
|
3125
|
+
query_params[:'trustFactor'] = opts[:'trust_factor'] if !opts[:'trust_factor'].nil?
|
|
3126
|
+
query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
|
|
3127
|
+
|
|
3128
|
+
# header parameters
|
|
3129
|
+
header_params = opts[:header_params] || {}
|
|
3130
|
+
# HTTP header 'Accept' (if needed)
|
|
3131
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
3132
|
+
|
|
3133
|
+
# form parameters
|
|
3134
|
+
form_params = opts[:form_params] || {}
|
|
3135
|
+
|
|
3136
|
+
# http body (model)
|
|
3137
|
+
post_body = opts[:debug_body]
|
|
3138
|
+
|
|
3139
|
+
# return_type
|
|
3140
|
+
return_type = opts[:debug_return_type] || 'SetUserTrustFactorResponse'
|
|
3141
|
+
|
|
3142
|
+
# auth_names
|
|
3143
|
+
auth_names = opts[:debug_auth_names] || []
|
|
3144
|
+
|
|
3145
|
+
new_options = opts.merge(
|
|
3146
|
+
:operation => :"ModerationApi.set_trust_factor",
|
|
3147
|
+
:header_params => header_params,
|
|
3148
|
+
:query_params => query_params,
|
|
3149
|
+
:form_params => form_params,
|
|
3150
|
+
:body => post_body,
|
|
3151
|
+
:auth_names => auth_names,
|
|
3152
|
+
:return_type => return_type
|
|
3153
|
+
)
|
|
3154
|
+
|
|
3155
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
3156
|
+
if @api_client.config.debugging
|
|
3157
|
+
@api_client.config.logger.debug "API called: ModerationApi#set_trust_factor\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3158
|
+
end
|
|
3159
|
+
return data, status_code, headers
|
|
3160
|
+
end
|
|
3161
|
+
end
|
|
3162
|
+
end
|