fastcomments 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE +21 -0
- data/README.md +210 -0
- data/client/Gemfile +9 -0
- data/client/README.md +407 -0
- data/client/Rakefile +10 -0
- data/client/docs/APIAuditLog.md +40 -0
- data/client/docs/APIComment.md +122 -0
- data/client/docs/APICommentBase.md +122 -0
- data/client/docs/APICreateUserBadgeResponse.md +20 -0
- data/client/docs/APIEmptyResponse.md +18 -0
- data/client/docs/APIEmptySuccessResponse.md +18 -0
- data/client/docs/APIError.md +32 -0
- data/client/docs/APIGetCommentResponse.md +20 -0
- data/client/docs/APIGetCommentsResponse.md +20 -0
- data/client/docs/APIGetUserBadgeProgressListResponse.md +20 -0
- data/client/docs/APIGetUserBadgeProgressResponse.md +20 -0
- data/client/docs/APIGetUserBadgeResponse.md +20 -0
- data/client/docs/APIGetUserBadgesResponse.md +20 -0
- data/client/docs/APIPage.md +34 -0
- data/client/docs/APISSOUser.md +56 -0
- data/client/docs/APIStatus.md +15 -0
- data/client/docs/APIUserSubscription.md +30 -0
- data/client/docs/AddDomainConfig200Response.md +24 -0
- data/client/docs/AddDomainConfig200ResponseAnyOf.md +20 -0
- data/client/docs/AddDomainConfigParams.md +30 -0
- data/client/docs/AddPageAPIResponse.md +24 -0
- data/client/docs/AddSSOUserAPIResponse.md +24 -0
- data/client/docs/AggregateQuestionResults200Response.md +34 -0
- data/client/docs/AggregateQuestionResultsResponse.md +20 -0
- data/client/docs/AggregateTimeBucket.md +15 -0
- data/client/docs/AggregationItem.md +18 -0
- data/client/docs/AggregationOpType.md +15 -0
- data/client/docs/AggregationOperation.md +24 -0
- data/client/docs/AggregationRequest.md +26 -0
- data/client/docs/AggregationRequestSort.md +20 -0
- data/client/docs/AggregationResponse.md +22 -0
- data/client/docs/AggregationResponseStats.md +20 -0
- data/client/docs/AggregationValue.md +26 -0
- data/client/docs/BlockFromCommentParams.md +18 -0
- data/client/docs/BlockFromCommentPublic200Response.md +34 -0
- data/client/docs/BlockSuccess.md +20 -0
- data/client/docs/BulkAggregateQuestionItem.md +28 -0
- data/client/docs/BulkAggregateQuestionResults200Response.md +34 -0
- data/client/docs/BulkAggregateQuestionResultsRequest.md +18 -0
- data/client/docs/BulkAggregateQuestionResultsResponse.md +20 -0
- data/client/docs/ChangeCommentPinStatusResponse.md +20 -0
- data/client/docs/CheckBlockedCommentsResponse.md +20 -0
- data/client/docs/CheckedCommentsForBlocked200Response.md +34 -0
- data/client/docs/CombineCommentsWithQuestionResults200Response.md +34 -0
- data/client/docs/CombineQuestionResultsWithCommentsResponse.md +20 -0
- data/client/docs/CommentData.md +64 -0
- data/client/docs/CommentHTMLRenderingMode.md +15 -0
- data/client/docs/CommentLogData.md +102 -0
- data/client/docs/CommentLogEntry.md +22 -0
- data/client/docs/CommentLogType.md +15 -0
- data/client/docs/CommentQuestionResultsRenderingType.md +15 -0
- data/client/docs/CommentQuestionsRequired.md +15 -0
- data/client/docs/CommentTextUpdateRequest.md +22 -0
- data/client/docs/CommentThreadDeletionMode.md +15 -0
- data/client/docs/CommentUserBadgeInfo.md +34 -0
- data/client/docs/CommentUserHashTagInfo.md +24 -0
- data/client/docs/CommentUserMentionInfo.md +26 -0
- data/client/docs/CommenterNameFormats.md +15 -0
- data/client/docs/CreateAPIPageData.md +28 -0
- data/client/docs/CreateAPISSOUserData.md +56 -0
- data/client/docs/CreateAPIUserSubscriptionData.md +26 -0
- data/client/docs/CreateCommentParams.md +84 -0
- data/client/docs/CreateCommentPublic200Response.md +40 -0
- data/client/docs/CreateFeedPost200Response.md +34 -0
- data/client/docs/CreateFeedPostParams.md +32 -0
- data/client/docs/CreateFeedPostPublic200Response.md +34 -0
- data/client/docs/CreateFeedPostResponse.md +20 -0
- data/client/docs/CreateFeedPostsResponse.md +20 -0
- data/client/docs/CreateSubscriptionAPIResponse.md +24 -0
- data/client/docs/CreateUserBadge200Response.md +34 -0
- data/client/docs/CreateUserBadgeParams.md +22 -0
- data/client/docs/CustomConfigParameters.md +160 -0
- data/client/docs/DefaultApi.md +3601 -0
- data/client/docs/DeleteComment200Response.md +34 -0
- data/client/docs/DeleteCommentAction.md +15 -0
- data/client/docs/DeleteCommentPublic200Response.md +36 -0
- data/client/docs/DeleteCommentResult.md +20 -0
- data/client/docs/DeleteCommentVote200Response.md +34 -0
- data/client/docs/DeleteDomainConfig200Response.md +18 -0
- data/client/docs/DeleteFeedPostPublic200Response.md +32 -0
- data/client/docs/DeleteFeedPostPublic200ResponseAnyOf.md +18 -0
- data/client/docs/DeletePageAPIResponse.md +22 -0
- data/client/docs/DeleteSSOUserAPIResponse.md +24 -0
- data/client/docs/DeleteSubscriptionAPIResponse.md +22 -0
- data/client/docs/DeletedCommentResultComment.md +24 -0
- data/client/docs/EventLogEntry.md +28 -0
- data/client/docs/FComment.md +158 -0
- data/client/docs/FCommentMeta.md +20 -0
- data/client/docs/FeedPost.md +48 -0
- data/client/docs/FeedPostLink.md +24 -0
- data/client/docs/FeedPostMediaItem.md +22 -0
- data/client/docs/FeedPostMediaItemAsset.md +22 -0
- data/client/docs/FeedPostStats.md +20 -0
- data/client/docs/FeedPostsStatsResponse.md +20 -0
- data/client/docs/FindCommentsByRangeItem.md +20 -0
- data/client/docs/FindCommentsByRangeResponse.md +20 -0
- data/client/docs/FlagComment200Response.md +36 -0
- data/client/docs/FlagCommentPublic200Response.md +32 -0
- data/client/docs/FlagCommentResponse.md +26 -0
- data/client/docs/GetAuditLogs200Response.md +34 -0
- data/client/docs/GetAuditLogsResponse.md +20 -0
- data/client/docs/GetComment200Response.md +34 -0
- data/client/docs/GetCommentText200Response.md +36 -0
- data/client/docs/GetCommentVoteUserNames200Response.md +36 -0
- data/client/docs/GetCommentVoteUserNamesSuccessResponse.md +22 -0
- data/client/docs/GetComments200Response.md +34 -0
- data/client/docs/GetCommentsPublic200Response.md +78 -0
- data/client/docs/GetCommentsResponsePublicComment.md +64 -0
- data/client/docs/GetCommentsResponseWithPresencePublicComment.md +70 -0
- data/client/docs/GetDomainConfig200Response.md +24 -0
- data/client/docs/GetDomainConfigs200Response.md +24 -0
- data/client/docs/GetDomainConfigs200ResponseAnyOf.md +20 -0
- data/client/docs/GetDomainConfigs200ResponseAnyOf1.md +22 -0
- data/client/docs/GetEventLog200Response.md +34 -0
- data/client/docs/GetEventLogResponse.md +20 -0
- data/client/docs/GetFeedPosts200Response.md +34 -0
- data/client/docs/GetFeedPostsPublic200Response.md +44 -0
- data/client/docs/GetFeedPostsResponse.md +20 -0
- data/client/docs/GetFeedPostsStats200Response.md +34 -0
- data/client/docs/GetMyNotificationsResponse.md +26 -0
- data/client/docs/GetPageByURLIdAPIResponse.md +24 -0
- data/client/docs/GetPagesAPIResponse.md +24 -0
- data/client/docs/GetPublicFeedPostsResponse.md +22 -0
- data/client/docs/GetSSOUserByEmailAPIResponse.md +24 -0
- data/client/docs/GetSSOUserByIdAPIResponse.md +24 -0
- data/client/docs/GetSSOUsers200Response.md +20 -0
- data/client/docs/GetSubscriptionsAPIResponse.md +24 -0
- data/client/docs/GetUserBadge200Response.md +34 -0
- data/client/docs/GetUserBadgeProgressById200Response.md +34 -0
- data/client/docs/GetUserBadgeProgressList200Response.md +34 -0
- data/client/docs/GetUserBadges200Response.md +34 -0
- data/client/docs/GetUserNotificationCount200Response.md +34 -0
- data/client/docs/GetUserNotificationCountResponse.md +20 -0
- data/client/docs/GetUserNotifications200Response.md +40 -0
- data/client/docs/GetUserPresenceStatuses200Response.md +34 -0
- data/client/docs/GetUserPresenceStatusesResponse.md +20 -0
- data/client/docs/GetUserReactsPublic200Response.md +34 -0
- data/client/docs/GifRating.md +15 -0
- data/client/docs/HeaderState.md +26 -0
- data/client/docs/IgnoredResponse.md +20 -0
- data/client/docs/ImageContentProfanityLevel.md +15 -0
- data/client/docs/LiveEvent.md +48 -0
- data/client/docs/LiveEventExtraInfo.md +18 -0
- data/client/docs/LiveEventType.md +15 -0
- data/client/docs/LockComment200Response.md +32 -0
- data/client/docs/MediaAsset.md +22 -0
- data/client/docs/MetaItem.md +20 -0
- data/client/docs/NotificationAndCount.md +20 -0
- data/client/docs/NotificationObjectType.md +15 -0
- data/client/docs/NotificationType.md +15 -0
- data/client/docs/PatchDomainConfigParams.md +30 -0
- data/client/docs/PatchPageAPIResponse.md +24 -0
- data/client/docs/PatchSSOUserAPIResponse.md +24 -0
- data/client/docs/PinComment200Response.md +34 -0
- data/client/docs/PubSubComment.md +102 -0
- data/client/docs/PubSubCommentBase.md +96 -0
- data/client/docs/PubSubVote.md +34 -0
- data/client/docs/PublicAPIDeleteCommentResponse.md +22 -0
- data/client/docs/PublicAPIGetCommentTextResponse.md +22 -0
- data/client/docs/PublicAPISetCommentTextResponse.md +20 -0
- data/client/docs/PublicApi.md +2596 -0
- data/client/docs/PublicBlockFromCommentParams.md +18 -0
- data/client/docs/PublicComment.md +92 -0
- data/client/docs/PublicCommentBase.md +72 -0
- data/client/docs/PublicFeedPostsResponse.md +30 -0
- data/client/docs/PutSSOUserAPIResponse.md +24 -0
- data/client/docs/QueryPredicate.md +22 -0
- data/client/docs/QueryPredicateValue.md +15 -0
- data/client/docs/QuestionDatum.md +20 -0
- data/client/docs/QuestionRenderingType.md +15 -0
- data/client/docs/QuestionResult.md +38 -0
- data/client/docs/QuestionResultAggregationOverall.md +28 -0
- data/client/docs/QuestionSubQuestionVisibility.md +15 -0
- data/client/docs/QuestionWhenSave.md +15 -0
- data/client/docs/ReactBodyParams.md +18 -0
- data/client/docs/ReactFeedPostPublic200Response.md +36 -0
- data/client/docs/ReactFeedPostResponse.md +22 -0
- data/client/docs/RecordStringBeforeStringOrNullAfterStringOrNullValue.md +20 -0
- data/client/docs/RecordStringStringOrNumberValue.md +15 -0
- data/client/docs/RenderableUserNotification.md +58 -0
- data/client/docs/RepeatCommentCheckIgnoredReason.md +15 -0
- data/client/docs/RepeatCommentHandlingAction.md +15 -0
- data/client/docs/ResetUserNotifications200Response.md +32 -0
- data/client/docs/ResetUserNotificationsResponse.md +20 -0
- data/client/docs/SORTDIR.md +15 -0
- data/client/docs/SSOSecurityLevel.md +15 -0
- data/client/docs/SaveComment200Response.md +38 -0
- data/client/docs/SaveCommentResponse.md +24 -0
- data/client/docs/SaveCommentResponseOptimized.md +24 -0
- data/client/docs/SaveCommentsResponseWithPresence.md +26 -0
- data/client/docs/SearchUsers200Response.md +34 -0
- data/client/docs/SearchUsersResponse.md +20 -0
- data/client/docs/SetCommentText200Response.md +34 -0
- data/client/docs/SetCommentTextResult.md +20 -0
- data/client/docs/SizePreset.md +15 -0
- data/client/docs/SortDirections.md +15 -0
- data/client/docs/SpamRule.md +20 -0
- data/client/docs/UnBlockCommentPublic200Response.md +34 -0
- data/client/docs/UnBlockFromCommentParams.md +18 -0
- data/client/docs/UnblockSuccess.md +20 -0
- data/client/docs/UpdatableCommentParams.md +94 -0
- data/client/docs/UpdateAPIPageData.md +26 -0
- data/client/docs/UpdateAPISSOUserData.md +56 -0
- data/client/docs/UpdateDomainConfigParams.md +30 -0
- data/client/docs/UpdateFeedPostParams.md +28 -0
- data/client/docs/UpdateUserBadge200Response.md +32 -0
- data/client/docs/UpdateUserBadgeParams.md +18 -0
- data/client/docs/UpdateUserNotificationStatus200Response.md +38 -0
- data/client/docs/UploadImageResponse.md +26 -0
- data/client/docs/UserBadge.md +52 -0
- data/client/docs/UserBadgeProgress.md +32 -0
- data/client/docs/UserNotification.md +64 -0
- data/client/docs/UserNotificationWriteResponse.md +22 -0
- data/client/docs/UserPresenceData.md +22 -0
- data/client/docs/UserReactsResponse.md +20 -0
- data/client/docs/UserSearchResult.md +26 -0
- data/client/docs/UserSessionInfo.md +42 -0
- data/client/docs/VoteBodyParams.md +24 -0
- data/client/docs/VoteComment200Response.md +40 -0
- data/client/docs/VoteDeleteResponse.md +20 -0
- data/client/docs/VoteResponse.md +26 -0
- data/client/docs/VoteResponseStatus.md +15 -0
- data/client/docs/VoteResponseUser.md +18 -0
- data/client/docs/VoteStyle.md +15 -0
- data/client/fastcomments-client.gemspec +39 -0
- data/client/git_push.sh +57 -0
- data/client/lib/fastcomments-client/api/default_api.rb +3463 -0
- data/client/lib/fastcomments-client/api/public_api.rb +2858 -0
- data/client/lib/fastcomments-client/api_client.rb +393 -0
- data/client/lib/fastcomments-client/api_error.rb +58 -0
- data/client/lib/fastcomments-client/configuration.rb +312 -0
- data/client/lib/fastcomments-client/models/add_domain_config200_response.rb +104 -0
- data/client/lib/fastcomments-client/models/add_domain_config200_response_any_of.rb +235 -0
- data/client/lib/fastcomments-client/models/add_domain_config_params.rb +294 -0
- data/client/lib/fastcomments-client/models/add_page_api_response.rb +264 -0
- data/client/lib/fastcomments-client/models/add_sso_user_api_response.rb +264 -0
- data/client/lib/fastcomments-client/models/aggregate_question_results200_response.rb +104 -0
- data/client/lib/fastcomments-client/models/aggregate_question_results_response.rb +285 -0
- data/client/lib/fastcomments-client/models/aggregate_time_bucket.rb +41 -0
- data/client/lib/fastcomments-client/models/aggregation_item.rb +223 -0
- data/client/lib/fastcomments-client/models/aggregation_op_type.rb +45 -0
- data/client/lib/fastcomments-client/models/aggregation_operation.rb +306 -0
- data/client/lib/fastcomments-client/models/aggregation_request.rb +297 -0
- data/client/lib/fastcomments-client/models/aggregation_request_sort.rb +287 -0
- data/client/lib/fastcomments-client/models/aggregation_response.rb +297 -0
- data/client/lib/fastcomments-client/models/aggregation_response_stats.rb +263 -0
- data/client/lib/fastcomments-client/models/aggregation_value.rb +262 -0
- data/client/lib/fastcomments-client/models/api_audit_log.rb +412 -0
- data/client/lib/fastcomments-client/models/api_comment.rb +888 -0
- data/client/lib/fastcomments-client/models/api_comment_base.rb +881 -0
- data/client/lib/fastcomments-client/models/api_create_user_badge_response.rb +285 -0
- data/client/lib/fastcomments-client/models/api_empty_response.rb +259 -0
- data/client/lib/fastcomments-client/models/api_empty_success_response.rb +259 -0
- data/client/lib/fastcomments-client/models/api_error.rb +356 -0
- data/client/lib/fastcomments-client/models/api_get_comment_response.rb +285 -0
- data/client/lib/fastcomments-client/models/api_get_comments_response.rb +287 -0
- data/client/lib/fastcomments-client/models/api_get_user_badge_progress_list_response.rb +287 -0
- data/client/lib/fastcomments-client/models/api_get_user_badge_progress_response.rb +285 -0
- data/client/lib/fastcomments-client/models/api_get_user_badge_response.rb +285 -0
- data/client/lib/fastcomments-client/models/api_get_user_badges_response.rb +287 -0
- data/client/lib/fastcomments-client/models/api_page.rb +396 -0
- data/client/lib/fastcomments-client/models/api_status.rb +40 -0
- data/client/lib/fastcomments-client/models/api_user_subscription.rb +325 -0
- data/client/lib/fastcomments-client/models/apisso_user.rb +597 -0
- data/client/lib/fastcomments-client/models/block_from_comment_params.rb +222 -0
- data/client/lib/fastcomments-client/models/block_from_comment_public200_response.rb +104 -0
- data/client/lib/fastcomments-client/models/block_success.rb +288 -0
- data/client/lib/fastcomments-client/models/bulk_aggregate_question_item.rb +306 -0
- data/client/lib/fastcomments-client/models/bulk_aggregate_question_results200_response.rb +104 -0
- data/client/lib/fastcomments-client/models/bulk_aggregate_question_results_request.rb +239 -0
- data/client/lib/fastcomments-client/models/bulk_aggregate_question_results_response.rb +288 -0
- data/client/lib/fastcomments-client/models/change_comment_pin_status_response.rb +288 -0
- data/client/lib/fastcomments-client/models/check_blocked_comments_response.rb +288 -0
- data/client/lib/fastcomments-client/models/checked_comments_for_blocked200_response.rb +104 -0
- data/client/lib/fastcomments-client/models/combine_comments_with_question_results200_response.rb +104 -0
- data/client/lib/fastcomments-client/models/combine_question_results_with_comments_response.rb +285 -0
- data/client/lib/fastcomments-client/models/comment_data.rb +511 -0
- data/client/lib/fastcomments-client/models/comment_html_rendering_mode.rb +40 -0
- data/client/lib/fastcomments-client/models/comment_log_data.rb +642 -0
- data/client/lib/fastcomments-client/models/comment_log_entry.rb +294 -0
- data/client/lib/fastcomments-client/models/comment_log_type.rb +93 -0
- data/client/lib/fastcomments-client/models/comment_question_results_rendering_type.rb +41 -0
- data/client/lib/fastcomments-client/models/comment_questions_required.rb +40 -0
- data/client/lib/fastcomments-client/models/comment_text_update_request.rb +259 -0
- data/client/lib/fastcomments-client/models/comment_thread_deletion_mode.rb +42 -0
- data/client/lib/fastcomments-client/models/comment_user_badge_info.rb +349 -0
- data/client/lib/fastcomments-client/models/comment_user_hash_tag_info.rb +284 -0
- data/client/lib/fastcomments-client/models/comment_user_mention_info.rb +324 -0
- data/client/lib/fastcomments-client/models/commenter_name_formats.rb +43 -0
- data/client/lib/fastcomments-client/models/create_api_page_data.rb +318 -0
- data/client/lib/fastcomments-client/models/create_api_user_subscription_data.rb +273 -0
- data/client/lib/fastcomments-client/models/create_apisso_user_data.rb +444 -0
- data/client/lib/fastcomments-client/models/create_comment_params.rb +619 -0
- data/client/lib/fastcomments-client/models/create_comment_public200_response.rb +104 -0
- data/client/lib/fastcomments-client/models/create_feed_post200_response.rb +104 -0
- data/client/lib/fastcomments-client/models/create_feed_post_params.rb +292 -0
- data/client/lib/fastcomments-client/models/create_feed_post_public200_response.rb +104 -0
- data/client/lib/fastcomments-client/models/create_feed_post_response.rb +285 -0
- data/client/lib/fastcomments-client/models/create_feed_posts_response.rb +285 -0
- data/client/lib/fastcomments-client/models/create_subscription_api_response.rb +264 -0
- data/client/lib/fastcomments-client/models/create_user_badge200_response.rb +104 -0
- data/client/lib/fastcomments-client/models/create_user_badge_params.rb +272 -0
- data/client/lib/fastcomments-client/models/custom_config_parameters.rb +906 -0
- data/client/lib/fastcomments-client/models/delete_comment200_response.rb +104 -0
- data/client/lib/fastcomments-client/models/delete_comment_action.rb +41 -0
- data/client/lib/fastcomments-client/models/delete_comment_public200_response.rb +104 -0
- data/client/lib/fastcomments-client/models/delete_comment_result.rb +285 -0
- data/client/lib/fastcomments-client/models/delete_comment_vote200_response.rb +104 -0
- data/client/lib/fastcomments-client/models/delete_domain_config200_response.rb +223 -0
- data/client/lib/fastcomments-client/models/delete_feed_post_public200_response.rb +104 -0
- data/client/lib/fastcomments-client/models/delete_feed_post_public200_response_any_of.rb +259 -0
- data/client/lib/fastcomments-client/models/delete_page_api_response.rb +255 -0
- data/client/lib/fastcomments-client/models/delete_sso_user_api_response.rb +264 -0
- data/client/lib/fastcomments-client/models/delete_subscription_api_response.rb +255 -0
- data/client/lib/fastcomments-client/models/deleted_comment_result_comment.rb +282 -0
- data/client/lib/fastcomments-client/models/event_log_entry.rb +367 -0
- data/client/lib/fastcomments-client/models/f_comment.rb +1054 -0
- data/client/lib/fastcomments-client/models/f_comment_meta.rb +229 -0
- data/client/lib/fastcomments-client/models/feed_post.rb +420 -0
- data/client/lib/fastcomments-client/models/feed_post_link.rb +247 -0
- data/client/lib/fastcomments-client/models/feed_post_media_item.rb +257 -0
- data/client/lib/fastcomments-client/models/feed_post_media_item_asset.rb +289 -0
- data/client/lib/fastcomments-client/models/feed_post_stats.rb +231 -0
- data/client/lib/fastcomments-client/models/feed_posts_stats_response.rb +287 -0
- data/client/lib/fastcomments-client/models/find_comments_by_range_item.rb +249 -0
- data/client/lib/fastcomments-client/models/find_comments_by_range_response.rb +265 -0
- data/client/lib/fastcomments-client/models/flag_comment200_response.rb +104 -0
- data/client/lib/fastcomments-client/models/flag_comment_public200_response.rb +104 -0
- data/client/lib/fastcomments-client/models/flag_comment_response.rb +295 -0
- data/client/lib/fastcomments-client/models/get_audit_logs200_response.rb +104 -0
- data/client/lib/fastcomments-client/models/get_audit_logs_response.rb +287 -0
- data/client/lib/fastcomments-client/models/get_comment200_response.rb +104 -0
- data/client/lib/fastcomments-client/models/get_comment_text200_response.rb +104 -0
- data/client/lib/fastcomments-client/models/get_comment_vote_user_names200_response.rb +104 -0
- data/client/lib/fastcomments-client/models/get_comment_vote_user_names_success_response.rb +313 -0
- data/client/lib/fastcomments-client/models/get_comments200_response.rb +104 -0
- data/client/lib/fastcomments-client/models/get_comments_public200_response.rb +104 -0
- data/client/lib/fastcomments-client/models/get_comments_response_public_comment.rb +487 -0
- data/client/lib/fastcomments-client/models/get_comments_response_with_presence_public_comment.rb +522 -0
- data/client/lib/fastcomments-client/models/get_domain_config200_response.rb +104 -0
- data/client/lib/fastcomments-client/models/get_domain_configs200_response.rb +104 -0
- data/client/lib/fastcomments-client/models/get_domain_configs200_response_any_of.rb +235 -0
- data/client/lib/fastcomments-client/models/get_domain_configs200_response_any_of1.rb +275 -0
- data/client/lib/fastcomments-client/models/get_event_log200_response.rb +104 -0
- data/client/lib/fastcomments-client/models/get_event_log_response.rb +287 -0
- data/client/lib/fastcomments-client/models/get_feed_posts200_response.rb +104 -0
- data/client/lib/fastcomments-client/models/get_feed_posts_public200_response.rb +104 -0
- data/client/lib/fastcomments-client/models/get_feed_posts_response.rb +287 -0
- data/client/lib/fastcomments-client/models/get_feed_posts_stats200_response.rb +104 -0
- data/client/lib/fastcomments-client/models/get_my_notifications_response.rb +351 -0
- data/client/lib/fastcomments-client/models/get_page_by_urlid_api_response.rb +264 -0
- data/client/lib/fastcomments-client/models/get_pages_api_response.rb +266 -0
- data/client/lib/fastcomments-client/models/get_public_feed_posts_response.rb +297 -0
- data/client/lib/fastcomments-client/models/get_sso_user_by_email_api_response.rb +264 -0
- data/client/lib/fastcomments-client/models/get_sso_user_by_id_api_response.rb +264 -0
- data/client/lib/fastcomments-client/models/get_sso_users200_response.rb +265 -0
- data/client/lib/fastcomments-client/models/get_subscriptions_api_response.rb +266 -0
- data/client/lib/fastcomments-client/models/get_user_badge200_response.rb +104 -0
- data/client/lib/fastcomments-client/models/get_user_badge_progress_by_id200_response.rb +104 -0
- data/client/lib/fastcomments-client/models/get_user_badge_progress_list200_response.rb +104 -0
- data/client/lib/fastcomments-client/models/get_user_badges200_response.rb +104 -0
- data/client/lib/fastcomments-client/models/get_user_notification_count200_response.rb +104 -0
- data/client/lib/fastcomments-client/models/get_user_notification_count_response.rb +285 -0
- data/client/lib/fastcomments-client/models/get_user_notifications200_response.rb +104 -0
- data/client/lib/fastcomments-client/models/get_user_presence_statuses200_response.rb +104 -0
- data/client/lib/fastcomments-client/models/get_user_presence_statuses_response.rb +288 -0
- data/client/lib/fastcomments-client/models/get_user_reacts_public200_response.rb +104 -0
- data/client/lib/fastcomments-client/models/gif_rating.rb +42 -0
- data/client/lib/fastcomments-client/models/header_state.rb +365 -0
- data/client/lib/fastcomments-client/models/ignored_response.rb +287 -0
- data/client/lib/fastcomments-client/models/image_content_profanity_level.rb +42 -0
- data/client/lib/fastcomments-client/models/live_event.rb +402 -0
- data/client/lib/fastcomments-client/models/live_event_extra_info.rb +223 -0
- data/client/lib/fastcomments-client/models/live_event_type.rb +55 -0
- data/client/lib/fastcomments-client/models/lock_comment200_response.rb +104 -0
- data/client/lib/fastcomments-client/models/media_asset.rb +289 -0
- data/client/lib/fastcomments-client/models/meta_item.rb +265 -0
- data/client/lib/fastcomments-client/models/notification_and_count.rb +285 -0
- data/client/lib/fastcomments-client/models/notification_object_type.rb +41 -0
- data/client/lib/fastcomments-client/models/notification_type.rb +51 -0
- data/client/lib/fastcomments-client/models/patch_domain_config_params.rb +277 -0
- data/client/lib/fastcomments-client/models/patch_page_api_response.rb +264 -0
- data/client/lib/fastcomments-client/models/patch_sso_user_api_response.rb +264 -0
- data/client/lib/fastcomments-client/models/pin_comment200_response.rb +104 -0
- data/client/lib/fastcomments-client/models/pub_sub_comment.rb +803 -0
- data/client/lib/fastcomments-client/models/pub_sub_comment_base.rb +752 -0
- data/client/lib/fastcomments-client/models/pub_sub_vote.rb +415 -0
- data/client/lib/fastcomments-client/models/public_api_delete_comment_response.rb +294 -0
- data/client/lib/fastcomments-client/models/public_api_get_comment_text_response.rb +311 -0
- data/client/lib/fastcomments-client/models/public_api_set_comment_text_response.rb +285 -0
- data/client/lib/fastcomments-client/models/public_block_from_comment_params.rb +226 -0
- data/client/lib/fastcomments-client/models/public_comment.rb +654 -0
- data/client/lib/fastcomments-client/models/public_comment_base.rb +552 -0
- data/client/lib/fastcomments-client/models/public_feed_posts_response.rb +343 -0
- data/client/lib/fastcomments-client/models/put_sso_user_api_response.rb +265 -0
- data/client/lib/fastcomments-client/models/query_predicate.rb +313 -0
- data/client/lib/fastcomments-client/models/query_predicate_value.rb +105 -0
- data/client/lib/fastcomments-client/models/question_datum.rb +266 -0
- data/client/lib/fastcomments-client/models/question_rendering_type.rb +40 -0
- data/client/lib/fastcomments-client/models/question_result.rb +467 -0
- data/client/lib/fastcomments-client/models/question_result_aggregation_overall.rb +307 -0
- data/client/lib/fastcomments-client/models/question_sub_question_visibility.rb +40 -0
- data/client/lib/fastcomments-client/models/question_when_save.rb +40 -0
- data/client/lib/fastcomments-client/models/react_body_params.rb +220 -0
- data/client/lib/fastcomments-client/models/react_feed_post_public200_response.rb +104 -0
- data/client/lib/fastcomments-client/models/react_feed_post_response.rb +311 -0
- data/client/lib/fastcomments-client/models/record_string_before_string_or_null_after_string_or_null_value.rb +263 -0
- data/client/lib/fastcomments-client/models/record_string_string_or_number_value.rb +104 -0
- data/client/lib/fastcomments-client/models/renderable_user_notification.rb +603 -0
- data/client/lib/fastcomments-client/models/repeat_comment_check_ignored_reason.rb +45 -0
- data/client/lib/fastcomments-client/models/repeat_comment_handling_action.rb +41 -0
- data/client/lib/fastcomments-client/models/reset_user_notifications200_response.rb +104 -0
- data/client/lib/fastcomments-client/models/reset_user_notifications_response.rb +280 -0
- data/client/lib/fastcomments-client/models/save_comment200_response.rb +104 -0
- data/client/lib/fastcomments-client/models/save_comment_response.rb +309 -0
- data/client/lib/fastcomments-client/models/save_comment_response_optimized.rb +309 -0
- data/client/lib/fastcomments-client/models/save_comments_response_with_presence.rb +325 -0
- data/client/lib/fastcomments-client/models/search_users200_response.rb +104 -0
- data/client/lib/fastcomments-client/models/search_users_response.rb +287 -0
- data/client/lib/fastcomments-client/models/set_comment_text200_response.rb +104 -0
- data/client/lib/fastcomments-client/models/set_comment_text_result.rb +263 -0
- data/client/lib/fastcomments-client/models/size_preset.rb +40 -0
- data/client/lib/fastcomments-client/models/sort_directions.rb +41 -0
- data/client/lib/fastcomments-client/models/sortdir.rb +40 -0
- data/client/lib/fastcomments-client/models/spam_rule.rb +260 -0
- data/client/lib/fastcomments-client/models/sso_security_level.rb +40 -0
- data/client/lib/fastcomments-client/models/un_block_comment_public200_response.rb +104 -0
- data/client/lib/fastcomments-client/models/un_block_from_comment_params.rb +222 -0
- data/client/lib/fastcomments-client/models/unblock_success.rb +288 -0
- data/client/lib/fastcomments-client/models/updatable_comment_params.rb +587 -0
- data/client/lib/fastcomments-client/models/update_api_page_data.rb +258 -0
- data/client/lib/fastcomments-client/models/update_apisso_user_data.rb +393 -0
- data/client/lib/fastcomments-client/models/update_domain_config_params.rb +294 -0
- data/client/lib/fastcomments-client/models/update_feed_post_params.rb +274 -0
- data/client/lib/fastcomments-client/models/update_user_badge200_response.rb +104 -0
- data/client/lib/fastcomments-client/models/update_user_badge_params.rb +220 -0
- data/client/lib/fastcomments-client/models/update_user_notification_status200_response.rb +105 -0
- data/client/lib/fastcomments-client/models/upload_image_response.rb +297 -0
- data/client/lib/fastcomments-client/models/user_badge.rb +582 -0
- data/client/lib/fastcomments-client/models/user_badge_progress.rb +388 -0
- data/client/lib/fastcomments-client/models/user_notification.rb +667 -0
- data/client/lib/fastcomments-client/models/user_notification_write_response.rb +311 -0
- data/client/lib/fastcomments-client/models/user_presence_data.rb +238 -0
- data/client/lib/fastcomments-client/models/user_reacts_response.rb +287 -0
- data/client/lib/fastcomments-client/models/user_search_result.rb +332 -0
- data/client/lib/fastcomments-client/models/user_session_info.rb +335 -0
- data/client/lib/fastcomments-client/models/vote_body_params.rb +297 -0
- data/client/lib/fastcomments-client/models/vote_comment200_response.rb +104 -0
- data/client/lib/fastcomments-client/models/vote_delete_response.rb +268 -0
- data/client/lib/fastcomments-client/models/vote_response.rb +273 -0
- data/client/lib/fastcomments-client/models/vote_response_status.rb +104 -0
- data/client/lib/fastcomments-client/models/vote_response_user.rb +221 -0
- data/client/lib/fastcomments-client/models/vote_style.rb +40 -0
- data/client/lib/fastcomments-client/version.rb +15 -0
- data/client/lib/fastcomments-client.rb +263 -0
- data/client/spec/api/default_api_spec.rb +633 -0
- data/client/spec/api/public_api_spec.rb +545 -0
- data/client/spec/models/add_domain_config200_response_any_of_spec.rb +42 -0
- data/client/spec/models/add_domain_config200_response_spec.rb +21 -0
- data/client/spec/models/add_domain_config_params_spec.rb +72 -0
- data/client/spec/models/add_page_api_response_spec.rb +54 -0
- data/client/spec/models/add_sso_user_api_response_spec.rb +54 -0
- data/client/spec/models/aggregate_question_results200_response_spec.rb +21 -0
- data/client/spec/models/aggregate_question_results_response_spec.rb +42 -0
- data/client/spec/models/aggregate_time_bucket_spec.rb +30 -0
- data/client/spec/models/aggregation_item_spec.rb +36 -0
- data/client/spec/models/aggregation_op_type_spec.rb +30 -0
- data/client/spec/models/aggregation_operation_spec.rb +54 -0
- data/client/spec/models/aggregation_request_sort_spec.rb +46 -0
- data/client/spec/models/aggregation_request_spec.rb +60 -0
- data/client/spec/models/aggregation_response_spec.rb +48 -0
- data/client/spec/models/aggregation_response_stats_spec.rb +42 -0
- data/client/spec/models/aggregation_value_spec.rb +60 -0
- data/client/spec/models/api_audit_log_spec.rb +110 -0
- data/client/spec/models/api_comment_base_spec.rb +348 -0
- data/client/spec/models/api_comment_spec.rb +348 -0
- data/client/spec/models/api_create_user_badge_response_spec.rb +42 -0
- data/client/spec/models/api_empty_response_spec.rb +36 -0
- data/client/spec/models/api_empty_success_response_spec.rb +36 -0
- data/client/spec/models/api_error_spec.rb +78 -0
- data/client/spec/models/api_get_comment_response_spec.rb +42 -0
- data/client/spec/models/api_get_comments_response_spec.rb +42 -0
- data/client/spec/models/api_get_user_badge_progress_list_response_spec.rb +42 -0
- data/client/spec/models/api_get_user_badge_progress_response_spec.rb +42 -0
- data/client/spec/models/api_get_user_badge_response_spec.rb +42 -0
- data/client/spec/models/api_get_user_badges_response_spec.rb +42 -0
- data/client/spec/models/api_page_spec.rb +84 -0
- data/client/spec/models/api_status_spec.rb +30 -0
- data/client/spec/models/api_user_subscription_spec.rb +72 -0
- data/client/spec/models/apisso_user_spec.rb +150 -0
- data/client/spec/models/block_from_comment_params_spec.rb +36 -0
- data/client/spec/models/block_from_comment_public200_response_spec.rb +21 -0
- data/client/spec/models/block_success_spec.rb +42 -0
- data/client/spec/models/bulk_aggregate_question_item_spec.rb +66 -0
- data/client/spec/models/bulk_aggregate_question_results200_response_spec.rb +21 -0
- data/client/spec/models/bulk_aggregate_question_results_request_spec.rb +36 -0
- data/client/spec/models/bulk_aggregate_question_results_response_spec.rb +42 -0
- data/client/spec/models/change_comment_pin_status_response_spec.rb +42 -0
- data/client/spec/models/check_blocked_comments_response_spec.rb +42 -0
- data/client/spec/models/checked_comments_for_blocked200_response_spec.rb +21 -0
- data/client/spec/models/combine_comments_with_question_results200_response_spec.rb +21 -0
- data/client/spec/models/combine_question_results_with_comments_response_spec.rb +42 -0
- data/client/spec/models/comment_data_spec.rb +174 -0
- data/client/spec/models/comment_html_rendering_mode_spec.rb +30 -0
- data/client/spec/models/comment_log_data_spec.rb +292 -0
- data/client/spec/models/comment_log_entry_spec.rb +48 -0
- data/client/spec/models/comment_log_type_spec.rb +30 -0
- data/client/spec/models/comment_question_results_rendering_type_spec.rb +30 -0
- data/client/spec/models/comment_questions_required_spec.rb +30 -0
- data/client/spec/models/comment_text_update_request_spec.rb +48 -0
- data/client/spec/models/comment_thread_deletion_mode_spec.rb +30 -0
- data/client/spec/models/comment_user_badge_info_spec.rb +84 -0
- data/client/spec/models/comment_user_hash_tag_info_spec.rb +54 -0
- data/client/spec/models/comment_user_mention_info_spec.rb +64 -0
- data/client/spec/models/commenter_name_formats_spec.rb +30 -0
- data/client/spec/models/create_api_page_data_spec.rb +66 -0
- data/client/spec/models/create_api_user_subscription_data_spec.rb +60 -0
- data/client/spec/models/create_apisso_user_data_spec.rb +150 -0
- data/client/spec/models/create_comment_params_spec.rb +234 -0
- data/client/spec/models/create_comment_public200_response_spec.rb +21 -0
- data/client/spec/models/create_feed_post200_response_spec.rb +21 -0
- data/client/spec/models/create_feed_post_params_spec.rb +78 -0
- data/client/spec/models/create_feed_post_public200_response_spec.rb +21 -0
- data/client/spec/models/create_feed_post_response_spec.rb +42 -0
- data/client/spec/models/create_feed_posts_response_spec.rb +42 -0
- data/client/spec/models/create_subscription_api_response_spec.rb +54 -0
- data/client/spec/models/create_user_badge200_response_spec.rb +21 -0
- data/client/spec/models/create_user_badge_params_spec.rb +48 -0
- data/client/spec/models/custom_config_parameters_spec.rb +462 -0
- data/client/spec/models/delete_comment200_response_spec.rb +21 -0
- data/client/spec/models/delete_comment_action_spec.rb +30 -0
- data/client/spec/models/delete_comment_public200_response_spec.rb +21 -0
- data/client/spec/models/delete_comment_result_spec.rb +42 -0
- data/client/spec/models/delete_comment_vote200_response_spec.rb +21 -0
- data/client/spec/models/delete_domain_config200_response_spec.rb +36 -0
- data/client/spec/models/delete_feed_post_public200_response_any_of_spec.rb +36 -0
- data/client/spec/models/delete_feed_post_public200_response_spec.rb +21 -0
- data/client/spec/models/delete_page_api_response_spec.rb +48 -0
- data/client/spec/models/delete_sso_user_api_response_spec.rb +54 -0
- data/client/spec/models/delete_subscription_api_response_spec.rb +48 -0
- data/client/spec/models/deleted_comment_result_comment_spec.rb +54 -0
- data/client/spec/models/event_log_entry_spec.rb +66 -0
- data/client/spec/models/f_comment_meta_spec.rb +42 -0
- data/client/spec/models/f_comment_spec.rb +456 -0
- data/client/spec/models/feed_post_link_spec.rb +54 -0
- data/client/spec/models/feed_post_media_item_asset_spec.rb +48 -0
- data/client/spec/models/feed_post_media_item_spec.rb +48 -0
- data/client/spec/models/feed_post_spec.rb +126 -0
- data/client/spec/models/feed_post_stats_spec.rb +42 -0
- data/client/spec/models/feed_posts_stats_response_spec.rb +42 -0
- data/client/spec/models/find_comments_by_range_item_spec.rb +42 -0
- data/client/spec/models/find_comments_by_range_response_spec.rb +42 -0
- data/client/spec/models/flag_comment200_response_spec.rb +21 -0
- data/client/spec/models/flag_comment_public200_response_spec.rb +21 -0
- data/client/spec/models/flag_comment_response_spec.rb +60 -0
- data/client/spec/models/get_audit_logs200_response_spec.rb +21 -0
- data/client/spec/models/get_audit_logs_response_spec.rb +42 -0
- data/client/spec/models/get_comment200_response_spec.rb +21 -0
- data/client/spec/models/get_comment_text200_response_spec.rb +21 -0
- data/client/spec/models/get_comment_vote_user_names200_response_spec.rb +21 -0
- data/client/spec/models/get_comment_vote_user_names_success_response_spec.rb +48 -0
- data/client/spec/models/get_comments200_response_spec.rb +21 -0
- data/client/spec/models/get_comments_public200_response_spec.rb +21 -0
- data/client/spec/models/get_comments_response_public_comment_spec.rb +174 -0
- data/client/spec/models/get_comments_response_with_presence_public_comment_spec.rb +192 -0
- data/client/spec/models/get_domain_config200_response_spec.rb +21 -0
- data/client/spec/models/get_domain_configs200_response_any_of1_spec.rb +48 -0
- data/client/spec/models/get_domain_configs200_response_any_of_spec.rb +42 -0
- data/client/spec/models/get_domain_configs200_response_spec.rb +21 -0
- data/client/spec/models/get_event_log200_response_spec.rb +21 -0
- data/client/spec/models/get_event_log_response_spec.rb +42 -0
- data/client/spec/models/get_feed_posts200_response_spec.rb +21 -0
- data/client/spec/models/get_feed_posts_public200_response_spec.rb +21 -0
- data/client/spec/models/get_feed_posts_response_spec.rb +42 -0
- data/client/spec/models/get_feed_posts_stats200_response_spec.rb +21 -0
- data/client/spec/models/get_my_notifications_response_spec.rb +60 -0
- data/client/spec/models/get_page_by_urlid_api_response_spec.rb +54 -0
- data/client/spec/models/get_pages_api_response_spec.rb +54 -0
- data/client/spec/models/get_public_feed_posts_response_spec.rb +48 -0
- data/client/spec/models/get_sso_user_by_email_api_response_spec.rb +54 -0
- data/client/spec/models/get_sso_user_by_id_api_response_spec.rb +54 -0
- data/client/spec/models/get_sso_users200_response_spec.rb +42 -0
- data/client/spec/models/get_subscriptions_api_response_spec.rb +54 -0
- data/client/spec/models/get_user_badge200_response_spec.rb +21 -0
- data/client/spec/models/get_user_badge_progress_by_id200_response_spec.rb +21 -0
- data/client/spec/models/get_user_badge_progress_list200_response_spec.rb +21 -0
- data/client/spec/models/get_user_badges200_response_spec.rb +21 -0
- data/client/spec/models/get_user_notification_count200_response_spec.rb +21 -0
- data/client/spec/models/get_user_notification_count_response_spec.rb +42 -0
- data/client/spec/models/get_user_notifications200_response_spec.rb +21 -0
- data/client/spec/models/get_user_presence_statuses200_response_spec.rb +21 -0
- data/client/spec/models/get_user_presence_statuses_response_spec.rb +42 -0
- data/client/spec/models/get_user_reacts_public200_response_spec.rb +21 -0
- data/client/spec/models/gif_rating_spec.rb +30 -0
- data/client/spec/models/header_state_spec.rb +60 -0
- data/client/spec/models/ignored_response_spec.rb +46 -0
- data/client/spec/models/image_content_profanity_level_spec.rb +30 -0
- data/client/spec/models/live_event_extra_info_spec.rb +36 -0
- data/client/spec/models/live_event_spec.rb +126 -0
- data/client/spec/models/live_event_type_spec.rb +30 -0
- data/client/spec/models/lock_comment200_response_spec.rb +21 -0
- data/client/spec/models/media_asset_spec.rb +48 -0
- data/client/spec/models/meta_item_spec.rb +42 -0
- data/client/spec/models/notification_and_count_spec.rb +42 -0
- data/client/spec/models/notification_object_type_spec.rb +30 -0
- data/client/spec/models/notification_type_spec.rb +30 -0
- data/client/spec/models/patch_domain_config_params_spec.rb +72 -0
- data/client/spec/models/patch_page_api_response_spec.rb +54 -0
- data/client/spec/models/patch_sso_user_api_response_spec.rb +54 -0
- data/client/spec/models/pin_comment200_response_spec.rb +21 -0
- data/client/spec/models/pub_sub_comment_base_spec.rb +270 -0
- data/client/spec/models/pub_sub_comment_spec.rb +288 -0
- data/client/spec/models/pub_sub_vote_spec.rb +84 -0
- data/client/spec/models/public_api_delete_comment_response_spec.rb +48 -0
- data/client/spec/models/public_api_get_comment_text_response_spec.rb +48 -0
- data/client/spec/models/public_api_set_comment_text_response_spec.rb +42 -0
- data/client/spec/models/public_block_from_comment_params_spec.rb +36 -0
- data/client/spec/models/public_comment_base_spec.rb +198 -0
- data/client/spec/models/public_comment_spec.rb +258 -0
- data/client/spec/models/public_feed_posts_response_spec.rb +72 -0
- data/client/spec/models/put_sso_user_api_response_spec.rb +54 -0
- data/client/spec/models/query_predicate_spec.rb +52 -0
- data/client/spec/models/query_predicate_value_spec.rb +21 -0
- data/client/spec/models/question_datum_spec.rb +42 -0
- data/client/spec/models/question_rendering_type_spec.rb +30 -0
- data/client/spec/models/question_result_aggregation_overall_spec.rb +66 -0
- data/client/spec/models/question_result_spec.rb +96 -0
- data/client/spec/models/question_sub_question_visibility_spec.rb +30 -0
- data/client/spec/models/question_when_save_spec.rb +30 -0
- data/client/spec/models/react_body_params_spec.rb +36 -0
- data/client/spec/models/react_feed_post_public200_response_spec.rb +21 -0
- data/client/spec/models/react_feed_post_response_spec.rb +48 -0
- data/client/spec/models/record_string_before_string_or_null_after_string_or_null_value_spec.rb +42 -0
- data/client/spec/models/record_string_string_or_number_value_spec.rb +21 -0
- data/client/spec/models/renderable_user_notification_spec.rb +156 -0
- data/client/spec/models/repeat_comment_check_ignored_reason_spec.rb +30 -0
- data/client/spec/models/repeat_comment_handling_action_spec.rb +30 -0
- data/client/spec/models/reset_user_notifications200_response_spec.rb +21 -0
- data/client/spec/models/reset_user_notifications_response_spec.rb +46 -0
- data/client/spec/models/save_comment200_response_spec.rb +21 -0
- data/client/spec/models/save_comment_response_optimized_spec.rb +54 -0
- data/client/spec/models/save_comment_response_spec.rb +54 -0
- data/client/spec/models/save_comments_response_with_presence_spec.rb +60 -0
- data/client/spec/models/search_users200_response_spec.rb +21 -0
- data/client/spec/models/search_users_response_spec.rb +42 -0
- data/client/spec/models/set_comment_text200_response_spec.rb +21 -0
- data/client/spec/models/set_comment_text_result_spec.rb +42 -0
- data/client/spec/models/size_preset_spec.rb +30 -0
- data/client/spec/models/sort_directions_spec.rb +30 -0
- data/client/spec/models/sortdir_spec.rb +30 -0
- data/client/spec/models/spam_rule_spec.rb +46 -0
- data/client/spec/models/sso_security_level_spec.rb +30 -0
- data/client/spec/models/un_block_comment_public200_response_spec.rb +21 -0
- data/client/spec/models/un_block_from_comment_params_spec.rb +36 -0
- data/client/spec/models/unblock_success_spec.rb +42 -0
- data/client/spec/models/updatable_comment_params_spec.rb +264 -0
- data/client/spec/models/update_api_page_data_spec.rb +60 -0
- data/client/spec/models/update_apisso_user_data_spec.rb +150 -0
- data/client/spec/models/update_domain_config_params_spec.rb +72 -0
- data/client/spec/models/update_feed_post_params_spec.rb +66 -0
- data/client/spec/models/update_user_badge200_response_spec.rb +21 -0
- data/client/spec/models/update_user_badge_params_spec.rb +36 -0
- data/client/spec/models/update_user_notification_status200_response_spec.rb +21 -0
- data/client/spec/models/upload_image_response_spec.rb +60 -0
- data/client/spec/models/user_badge_progress_spec.rb +78 -0
- data/client/spec/models/user_badge_spec.rb +138 -0
- data/client/spec/models/user_notification_spec.rb +174 -0
- data/client/spec/models/user_notification_write_response_spec.rb +48 -0
- data/client/spec/models/user_presence_data_spec.rb +48 -0
- data/client/spec/models/user_reacts_response_spec.rb +42 -0
- data/client/spec/models/user_search_result_spec.rb +64 -0
- data/client/spec/models/user_session_info_spec.rb +108 -0
- data/client/spec/models/vote_body_params_spec.rb +58 -0
- data/client/spec/models/vote_comment200_response_spec.rb +21 -0
- data/client/spec/models/vote_delete_response_spec.rb +42 -0
- data/client/spec/models/vote_response_spec.rb +60 -0
- data/client/spec/models/vote_response_status_spec.rb +21 -0
- data/client/spec/models/vote_response_user_spec.rb +36 -0
- data/client/spec/models/vote_style_spec.rb +30 -0
- data/client/spec/spec_helper.rb +111 -0
- data/lib/fastcomments/sso/fastcomments_sso.rb +81 -0
- data/lib/fastcomments/sso/helpers.rb +26 -0
- data/lib/fastcomments/sso/secure_sso_payload.rb +23 -0
- data/lib/fastcomments/sso/secure_sso_user_data.rb +31 -0
- data/lib/fastcomments/sso/simple_sso_user_data.rb +23 -0
- data/lib/fastcomments.rb +9 -0
- metadata +787 -0
|
@@ -0,0 +1,906 @@
|
|
|
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.14.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module FastCommentsClient
|
|
17
|
+
class CustomConfigParameters
|
|
18
|
+
attr_accessor :absolute_and_relative_dates
|
|
19
|
+
|
|
20
|
+
attr_accessor :absolute_dates
|
|
21
|
+
|
|
22
|
+
attr_accessor :allow_anon
|
|
23
|
+
|
|
24
|
+
attr_accessor :allow_anon_flag
|
|
25
|
+
|
|
26
|
+
attr_accessor :allow_anon_votes
|
|
27
|
+
|
|
28
|
+
attr_accessor :allowed_languages
|
|
29
|
+
|
|
30
|
+
attr_accessor :collapse_replies
|
|
31
|
+
|
|
32
|
+
attr_accessor :comment_count_format
|
|
33
|
+
|
|
34
|
+
attr_accessor :comment_html_rendering_mode
|
|
35
|
+
|
|
36
|
+
attr_accessor :comment_thread_delete_mode
|
|
37
|
+
|
|
38
|
+
attr_accessor :commenter_name_format
|
|
39
|
+
|
|
40
|
+
attr_accessor :count_above_toggle
|
|
41
|
+
|
|
42
|
+
attr_accessor :custom_css
|
|
43
|
+
|
|
44
|
+
attr_accessor :default_avatar_src
|
|
45
|
+
|
|
46
|
+
attr_accessor :default_sort_direction
|
|
47
|
+
|
|
48
|
+
attr_accessor :default_username
|
|
49
|
+
|
|
50
|
+
attr_accessor :disable_auto_admin_migration
|
|
51
|
+
|
|
52
|
+
attr_accessor :disable_auto_hash_tag_creation
|
|
53
|
+
|
|
54
|
+
attr_accessor :disable_blocking
|
|
55
|
+
|
|
56
|
+
attr_accessor :disable_commenter_comment_delete
|
|
57
|
+
|
|
58
|
+
attr_accessor :disable_commenter_comment_edit
|
|
59
|
+
|
|
60
|
+
attr_accessor :disable_email_inputs
|
|
61
|
+
|
|
62
|
+
attr_accessor :disable_live_commenting
|
|
63
|
+
|
|
64
|
+
attr_accessor :disable_notification_bell
|
|
65
|
+
|
|
66
|
+
attr_accessor :disable_profiles
|
|
67
|
+
|
|
68
|
+
attr_accessor :disable_success_message
|
|
69
|
+
|
|
70
|
+
attr_accessor :disable_toolbar
|
|
71
|
+
|
|
72
|
+
attr_accessor :disable_unverified_label
|
|
73
|
+
|
|
74
|
+
attr_accessor :disable_voting
|
|
75
|
+
|
|
76
|
+
attr_accessor :enable_commenter_links
|
|
77
|
+
|
|
78
|
+
attr_accessor :enable_search
|
|
79
|
+
|
|
80
|
+
attr_accessor :enable_spoilers
|
|
81
|
+
|
|
82
|
+
attr_accessor :enable_third_party_cookie_bypass
|
|
83
|
+
|
|
84
|
+
attr_accessor :enable_view_counts
|
|
85
|
+
|
|
86
|
+
attr_accessor :enable_vote_list
|
|
87
|
+
|
|
88
|
+
attr_accessor :enable_wysiwyg
|
|
89
|
+
|
|
90
|
+
attr_accessor :gif_rating
|
|
91
|
+
|
|
92
|
+
attr_accessor :has_dark_background
|
|
93
|
+
|
|
94
|
+
attr_accessor :header_html
|
|
95
|
+
|
|
96
|
+
attr_accessor :hide_avatars
|
|
97
|
+
|
|
98
|
+
attr_accessor :hide_comments_under_count_text_format
|
|
99
|
+
|
|
100
|
+
attr_accessor :image_content_profanity_level
|
|
101
|
+
|
|
102
|
+
attr_accessor :input_after_comments
|
|
103
|
+
|
|
104
|
+
attr_accessor :limit_comments_by_groups
|
|
105
|
+
|
|
106
|
+
attr_accessor :locale
|
|
107
|
+
|
|
108
|
+
attr_accessor :max_comment_character_length
|
|
109
|
+
|
|
110
|
+
attr_accessor :max_comment_created_count_pupm
|
|
111
|
+
|
|
112
|
+
attr_accessor :no_custom_config
|
|
113
|
+
|
|
114
|
+
attr_accessor :no_image_uploads
|
|
115
|
+
|
|
116
|
+
attr_accessor :no_styles
|
|
117
|
+
|
|
118
|
+
attr_accessor :page_size
|
|
119
|
+
|
|
120
|
+
attr_accessor :readonly
|
|
121
|
+
|
|
122
|
+
attr_accessor :require_sso
|
|
123
|
+
|
|
124
|
+
attr_accessor :enable_resize_handle
|
|
125
|
+
|
|
126
|
+
attr_accessor :restricted_link_domains
|
|
127
|
+
|
|
128
|
+
attr_accessor :show_badges_in_top_bar
|
|
129
|
+
|
|
130
|
+
attr_accessor :show_comment_save_success
|
|
131
|
+
|
|
132
|
+
attr_accessor :show_live_right_away
|
|
133
|
+
|
|
134
|
+
attr_accessor :show_question
|
|
135
|
+
|
|
136
|
+
attr_accessor :spam_rules
|
|
137
|
+
|
|
138
|
+
attr_accessor :sso_sec_lvl
|
|
139
|
+
|
|
140
|
+
# Construct a type with a set of properties K of type T
|
|
141
|
+
attr_accessor :translations
|
|
142
|
+
|
|
143
|
+
attr_accessor :use_show_comments_toggle
|
|
144
|
+
|
|
145
|
+
attr_accessor :use_single_line_comment_input
|
|
146
|
+
|
|
147
|
+
attr_accessor :vote_style
|
|
148
|
+
|
|
149
|
+
attr_accessor :widget_question_id
|
|
150
|
+
|
|
151
|
+
attr_accessor :widget_question_results_style
|
|
152
|
+
|
|
153
|
+
attr_accessor :widget_question_style
|
|
154
|
+
|
|
155
|
+
attr_accessor :widget_question_when_to_save
|
|
156
|
+
|
|
157
|
+
attr_accessor :widget_questions_required
|
|
158
|
+
|
|
159
|
+
attr_accessor :widget_sub_question_visibility
|
|
160
|
+
|
|
161
|
+
attr_accessor :wrap
|
|
162
|
+
|
|
163
|
+
class EnumAttributeValidator
|
|
164
|
+
attr_reader :datatype
|
|
165
|
+
attr_reader :allowable_values
|
|
166
|
+
|
|
167
|
+
def initialize(datatype, allowable_values)
|
|
168
|
+
@allowable_values = allowable_values.map do |value|
|
|
169
|
+
case datatype.to_s
|
|
170
|
+
when /Integer/i
|
|
171
|
+
value.to_i
|
|
172
|
+
when /Float/i
|
|
173
|
+
value.to_f
|
|
174
|
+
else
|
|
175
|
+
value
|
|
176
|
+
end
|
|
177
|
+
end
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
def valid?(value)
|
|
181
|
+
!value || allowable_values.include?(value)
|
|
182
|
+
end
|
|
183
|
+
end
|
|
184
|
+
|
|
185
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
186
|
+
def self.attribute_map
|
|
187
|
+
{
|
|
188
|
+
:'absolute_and_relative_dates' => :'absoluteAndRelativeDates',
|
|
189
|
+
:'absolute_dates' => :'absoluteDates',
|
|
190
|
+
:'allow_anon' => :'allowAnon',
|
|
191
|
+
:'allow_anon_flag' => :'allowAnonFlag',
|
|
192
|
+
:'allow_anon_votes' => :'allowAnonVotes',
|
|
193
|
+
:'allowed_languages' => :'allowedLanguages',
|
|
194
|
+
:'collapse_replies' => :'collapseReplies',
|
|
195
|
+
:'comment_count_format' => :'commentCountFormat',
|
|
196
|
+
:'comment_html_rendering_mode' => :'commentHTMLRenderingMode',
|
|
197
|
+
:'comment_thread_delete_mode' => :'commentThreadDeleteMode',
|
|
198
|
+
:'commenter_name_format' => :'commenterNameFormat',
|
|
199
|
+
:'count_above_toggle' => :'countAboveToggle',
|
|
200
|
+
:'custom_css' => :'customCSS',
|
|
201
|
+
:'default_avatar_src' => :'defaultAvatarSrc',
|
|
202
|
+
:'default_sort_direction' => :'defaultSortDirection',
|
|
203
|
+
:'default_username' => :'defaultUsername',
|
|
204
|
+
:'disable_auto_admin_migration' => :'disableAutoAdminMigration',
|
|
205
|
+
:'disable_auto_hash_tag_creation' => :'disableAutoHashTagCreation',
|
|
206
|
+
:'disable_blocking' => :'disableBlocking',
|
|
207
|
+
:'disable_commenter_comment_delete' => :'disableCommenterCommentDelete',
|
|
208
|
+
:'disable_commenter_comment_edit' => :'disableCommenterCommentEdit',
|
|
209
|
+
:'disable_email_inputs' => :'disableEmailInputs',
|
|
210
|
+
:'disable_live_commenting' => :'disableLiveCommenting',
|
|
211
|
+
:'disable_notification_bell' => :'disableNotificationBell',
|
|
212
|
+
:'disable_profiles' => :'disableProfiles',
|
|
213
|
+
:'disable_success_message' => :'disableSuccessMessage',
|
|
214
|
+
:'disable_toolbar' => :'disableToolbar',
|
|
215
|
+
:'disable_unverified_label' => :'disableUnverifiedLabel',
|
|
216
|
+
:'disable_voting' => :'disableVoting',
|
|
217
|
+
:'enable_commenter_links' => :'enableCommenterLinks',
|
|
218
|
+
:'enable_search' => :'enableSearch',
|
|
219
|
+
:'enable_spoilers' => :'enableSpoilers',
|
|
220
|
+
:'enable_third_party_cookie_bypass' => :'enableThirdPartyCookieBypass',
|
|
221
|
+
:'enable_view_counts' => :'enableViewCounts',
|
|
222
|
+
:'enable_vote_list' => :'enableVoteList',
|
|
223
|
+
:'enable_wysiwyg' => :'enableWYSIWYG',
|
|
224
|
+
:'gif_rating' => :'gifRating',
|
|
225
|
+
:'has_dark_background' => :'hasDarkBackground',
|
|
226
|
+
:'header_html' => :'headerHTML',
|
|
227
|
+
:'hide_avatars' => :'hideAvatars',
|
|
228
|
+
:'hide_comments_under_count_text_format' => :'hideCommentsUnderCountTextFormat',
|
|
229
|
+
:'image_content_profanity_level' => :'imageContentProfanityLevel',
|
|
230
|
+
:'input_after_comments' => :'inputAfterComments',
|
|
231
|
+
:'limit_comments_by_groups' => :'limitCommentsByGroups',
|
|
232
|
+
:'locale' => :'locale',
|
|
233
|
+
:'max_comment_character_length' => :'maxCommentCharacterLength',
|
|
234
|
+
:'max_comment_created_count_pupm' => :'maxCommentCreatedCountPUPM',
|
|
235
|
+
:'no_custom_config' => :'noCustomConfig',
|
|
236
|
+
:'no_image_uploads' => :'noImageUploads',
|
|
237
|
+
:'no_styles' => :'noStyles',
|
|
238
|
+
:'page_size' => :'pageSize',
|
|
239
|
+
:'readonly' => :'readonly',
|
|
240
|
+
:'require_sso' => :'requireSSO',
|
|
241
|
+
:'enable_resize_handle' => :'enableResizeHandle',
|
|
242
|
+
:'restricted_link_domains' => :'restrictedLinkDomains',
|
|
243
|
+
:'show_badges_in_top_bar' => :'showBadgesInTopBar',
|
|
244
|
+
:'show_comment_save_success' => :'showCommentSaveSuccess',
|
|
245
|
+
:'show_live_right_away' => :'showLiveRightAway',
|
|
246
|
+
:'show_question' => :'showQuestion',
|
|
247
|
+
:'spam_rules' => :'spamRules',
|
|
248
|
+
:'sso_sec_lvl' => :'ssoSecLvl',
|
|
249
|
+
:'translations' => :'translations',
|
|
250
|
+
:'use_show_comments_toggle' => :'useShowCommentsToggle',
|
|
251
|
+
:'use_single_line_comment_input' => :'useSingleLineCommentInput',
|
|
252
|
+
:'vote_style' => :'voteStyle',
|
|
253
|
+
:'widget_question_id' => :'widgetQuestionId',
|
|
254
|
+
:'widget_question_results_style' => :'widgetQuestionResultsStyle',
|
|
255
|
+
:'widget_question_style' => :'widgetQuestionStyle',
|
|
256
|
+
:'widget_question_when_to_save' => :'widgetQuestionWhenToSave',
|
|
257
|
+
:'widget_questions_required' => :'widgetQuestionsRequired',
|
|
258
|
+
:'widget_sub_question_visibility' => :'widgetSubQuestionVisibility',
|
|
259
|
+
:'wrap' => :'wrap'
|
|
260
|
+
}
|
|
261
|
+
end
|
|
262
|
+
|
|
263
|
+
# Returns attribute mapping this model knows about
|
|
264
|
+
def self.acceptable_attribute_map
|
|
265
|
+
attribute_map
|
|
266
|
+
end
|
|
267
|
+
|
|
268
|
+
# Returns all the JSON keys this model knows about
|
|
269
|
+
def self.acceptable_attributes
|
|
270
|
+
acceptable_attribute_map.values
|
|
271
|
+
end
|
|
272
|
+
|
|
273
|
+
# Attribute type mapping.
|
|
274
|
+
def self.openapi_types
|
|
275
|
+
{
|
|
276
|
+
:'absolute_and_relative_dates' => :'Boolean',
|
|
277
|
+
:'absolute_dates' => :'Boolean',
|
|
278
|
+
:'allow_anon' => :'Boolean',
|
|
279
|
+
:'allow_anon_flag' => :'Boolean',
|
|
280
|
+
:'allow_anon_votes' => :'Boolean',
|
|
281
|
+
:'allowed_languages' => :'Array<String>',
|
|
282
|
+
:'collapse_replies' => :'Boolean',
|
|
283
|
+
:'comment_count_format' => :'String',
|
|
284
|
+
:'comment_html_rendering_mode' => :'CommentHTMLRenderingMode',
|
|
285
|
+
:'comment_thread_delete_mode' => :'CommentThreadDeletionMode',
|
|
286
|
+
:'commenter_name_format' => :'CommenterNameFormats',
|
|
287
|
+
:'count_above_toggle' => :'Integer',
|
|
288
|
+
:'custom_css' => :'String',
|
|
289
|
+
:'default_avatar_src' => :'String',
|
|
290
|
+
:'default_sort_direction' => :'SortDirections',
|
|
291
|
+
:'default_username' => :'String',
|
|
292
|
+
:'disable_auto_admin_migration' => :'Boolean',
|
|
293
|
+
:'disable_auto_hash_tag_creation' => :'Boolean',
|
|
294
|
+
:'disable_blocking' => :'Boolean',
|
|
295
|
+
:'disable_commenter_comment_delete' => :'Boolean',
|
|
296
|
+
:'disable_commenter_comment_edit' => :'Boolean',
|
|
297
|
+
:'disable_email_inputs' => :'Boolean',
|
|
298
|
+
:'disable_live_commenting' => :'Boolean',
|
|
299
|
+
:'disable_notification_bell' => :'Boolean',
|
|
300
|
+
:'disable_profiles' => :'Boolean',
|
|
301
|
+
:'disable_success_message' => :'Boolean',
|
|
302
|
+
:'disable_toolbar' => :'Boolean',
|
|
303
|
+
:'disable_unverified_label' => :'Boolean',
|
|
304
|
+
:'disable_voting' => :'Boolean',
|
|
305
|
+
:'enable_commenter_links' => :'Boolean',
|
|
306
|
+
:'enable_search' => :'Boolean',
|
|
307
|
+
:'enable_spoilers' => :'Boolean',
|
|
308
|
+
:'enable_third_party_cookie_bypass' => :'Boolean',
|
|
309
|
+
:'enable_view_counts' => :'Boolean',
|
|
310
|
+
:'enable_vote_list' => :'Boolean',
|
|
311
|
+
:'enable_wysiwyg' => :'Boolean',
|
|
312
|
+
:'gif_rating' => :'GifRating',
|
|
313
|
+
:'has_dark_background' => :'Boolean',
|
|
314
|
+
:'header_html' => :'String',
|
|
315
|
+
:'hide_avatars' => :'Boolean',
|
|
316
|
+
:'hide_comments_under_count_text_format' => :'String',
|
|
317
|
+
:'image_content_profanity_level' => :'ImageContentProfanityLevel',
|
|
318
|
+
:'input_after_comments' => :'Boolean',
|
|
319
|
+
:'limit_comments_by_groups' => :'Boolean',
|
|
320
|
+
:'locale' => :'String',
|
|
321
|
+
:'max_comment_character_length' => :'Integer',
|
|
322
|
+
:'max_comment_created_count_pupm' => :'Integer',
|
|
323
|
+
:'no_custom_config' => :'Boolean',
|
|
324
|
+
:'no_image_uploads' => :'Boolean',
|
|
325
|
+
:'no_styles' => :'Boolean',
|
|
326
|
+
:'page_size' => :'Integer',
|
|
327
|
+
:'readonly' => :'Boolean',
|
|
328
|
+
:'require_sso' => :'Boolean',
|
|
329
|
+
:'enable_resize_handle' => :'Boolean',
|
|
330
|
+
:'restricted_link_domains' => :'Array<String>',
|
|
331
|
+
:'show_badges_in_top_bar' => :'Boolean',
|
|
332
|
+
:'show_comment_save_success' => :'Boolean',
|
|
333
|
+
:'show_live_right_away' => :'Boolean',
|
|
334
|
+
:'show_question' => :'Boolean',
|
|
335
|
+
:'spam_rules' => :'Array<SpamRule>',
|
|
336
|
+
:'sso_sec_lvl' => :'SSOSecurityLevel',
|
|
337
|
+
:'translations' => :'Hash<String, String>',
|
|
338
|
+
:'use_show_comments_toggle' => :'Boolean',
|
|
339
|
+
:'use_single_line_comment_input' => :'Boolean',
|
|
340
|
+
:'vote_style' => :'VoteStyle',
|
|
341
|
+
:'widget_question_id' => :'String',
|
|
342
|
+
:'widget_question_results_style' => :'CommentQuestionResultsRenderingType',
|
|
343
|
+
:'widget_question_style' => :'QuestionRenderingType',
|
|
344
|
+
:'widget_question_when_to_save' => :'QuestionWhenSave',
|
|
345
|
+
:'widget_questions_required' => :'CommentQuestionsRequired',
|
|
346
|
+
:'widget_sub_question_visibility' => :'QuestionSubQuestionVisibility',
|
|
347
|
+
:'wrap' => :'Boolean'
|
|
348
|
+
}
|
|
349
|
+
end
|
|
350
|
+
|
|
351
|
+
# List of attributes with nullable: true
|
|
352
|
+
def self.openapi_nullable
|
|
353
|
+
Set.new([
|
|
354
|
+
:'allowed_languages',
|
|
355
|
+
:'comment_count_format',
|
|
356
|
+
:'comment_thread_delete_mode',
|
|
357
|
+
:'commenter_name_format',
|
|
358
|
+
:'custom_css',
|
|
359
|
+
:'default_avatar_src',
|
|
360
|
+
:'default_sort_direction',
|
|
361
|
+
:'default_username',
|
|
362
|
+
:'header_html',
|
|
363
|
+
:'hide_comments_under_count_text_format',
|
|
364
|
+
:'locale',
|
|
365
|
+
:'max_comment_character_length',
|
|
366
|
+
:'max_comment_created_count_pupm',
|
|
367
|
+
:'page_size',
|
|
368
|
+
:'restricted_link_domains',
|
|
369
|
+
:'translations',
|
|
370
|
+
])
|
|
371
|
+
end
|
|
372
|
+
|
|
373
|
+
# Initializes the object
|
|
374
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
375
|
+
def initialize(attributes = {})
|
|
376
|
+
if (!attributes.is_a?(Hash))
|
|
377
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `FastCommentsClient::CustomConfigParameters` initialize method"
|
|
378
|
+
end
|
|
379
|
+
|
|
380
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
381
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
382
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
383
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
384
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `FastCommentsClient::CustomConfigParameters`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
385
|
+
end
|
|
386
|
+
h[k.to_sym] = v
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
if attributes.key?(:'absolute_and_relative_dates')
|
|
390
|
+
self.absolute_and_relative_dates = attributes[:'absolute_and_relative_dates']
|
|
391
|
+
end
|
|
392
|
+
|
|
393
|
+
if attributes.key?(:'absolute_dates')
|
|
394
|
+
self.absolute_dates = attributes[:'absolute_dates']
|
|
395
|
+
end
|
|
396
|
+
|
|
397
|
+
if attributes.key?(:'allow_anon')
|
|
398
|
+
self.allow_anon = attributes[:'allow_anon']
|
|
399
|
+
end
|
|
400
|
+
|
|
401
|
+
if attributes.key?(:'allow_anon_flag')
|
|
402
|
+
self.allow_anon_flag = attributes[:'allow_anon_flag']
|
|
403
|
+
end
|
|
404
|
+
|
|
405
|
+
if attributes.key?(:'allow_anon_votes')
|
|
406
|
+
self.allow_anon_votes = attributes[:'allow_anon_votes']
|
|
407
|
+
end
|
|
408
|
+
|
|
409
|
+
if attributes.key?(:'allowed_languages')
|
|
410
|
+
if (value = attributes[:'allowed_languages']).is_a?(Array)
|
|
411
|
+
self.allowed_languages = value
|
|
412
|
+
end
|
|
413
|
+
end
|
|
414
|
+
|
|
415
|
+
if attributes.key?(:'collapse_replies')
|
|
416
|
+
self.collapse_replies = attributes[:'collapse_replies']
|
|
417
|
+
end
|
|
418
|
+
|
|
419
|
+
if attributes.key?(:'comment_count_format')
|
|
420
|
+
self.comment_count_format = attributes[:'comment_count_format']
|
|
421
|
+
end
|
|
422
|
+
|
|
423
|
+
if attributes.key?(:'comment_html_rendering_mode')
|
|
424
|
+
self.comment_html_rendering_mode = attributes[:'comment_html_rendering_mode']
|
|
425
|
+
end
|
|
426
|
+
|
|
427
|
+
if attributes.key?(:'comment_thread_delete_mode')
|
|
428
|
+
self.comment_thread_delete_mode = attributes[:'comment_thread_delete_mode']
|
|
429
|
+
end
|
|
430
|
+
|
|
431
|
+
if attributes.key?(:'commenter_name_format')
|
|
432
|
+
self.commenter_name_format = attributes[:'commenter_name_format']
|
|
433
|
+
end
|
|
434
|
+
|
|
435
|
+
if attributes.key?(:'count_above_toggle')
|
|
436
|
+
self.count_above_toggle = attributes[:'count_above_toggle']
|
|
437
|
+
end
|
|
438
|
+
|
|
439
|
+
if attributes.key?(:'custom_css')
|
|
440
|
+
self.custom_css = attributes[:'custom_css']
|
|
441
|
+
end
|
|
442
|
+
|
|
443
|
+
if attributes.key?(:'default_avatar_src')
|
|
444
|
+
self.default_avatar_src = attributes[:'default_avatar_src']
|
|
445
|
+
end
|
|
446
|
+
|
|
447
|
+
if attributes.key?(:'default_sort_direction')
|
|
448
|
+
self.default_sort_direction = attributes[:'default_sort_direction']
|
|
449
|
+
end
|
|
450
|
+
|
|
451
|
+
if attributes.key?(:'default_username')
|
|
452
|
+
self.default_username = attributes[:'default_username']
|
|
453
|
+
end
|
|
454
|
+
|
|
455
|
+
if attributes.key?(:'disable_auto_admin_migration')
|
|
456
|
+
self.disable_auto_admin_migration = attributes[:'disable_auto_admin_migration']
|
|
457
|
+
end
|
|
458
|
+
|
|
459
|
+
if attributes.key?(:'disable_auto_hash_tag_creation')
|
|
460
|
+
self.disable_auto_hash_tag_creation = attributes[:'disable_auto_hash_tag_creation']
|
|
461
|
+
end
|
|
462
|
+
|
|
463
|
+
if attributes.key?(:'disable_blocking')
|
|
464
|
+
self.disable_blocking = attributes[:'disable_blocking']
|
|
465
|
+
end
|
|
466
|
+
|
|
467
|
+
if attributes.key?(:'disable_commenter_comment_delete')
|
|
468
|
+
self.disable_commenter_comment_delete = attributes[:'disable_commenter_comment_delete']
|
|
469
|
+
end
|
|
470
|
+
|
|
471
|
+
if attributes.key?(:'disable_commenter_comment_edit')
|
|
472
|
+
self.disable_commenter_comment_edit = attributes[:'disable_commenter_comment_edit']
|
|
473
|
+
end
|
|
474
|
+
|
|
475
|
+
if attributes.key?(:'disable_email_inputs')
|
|
476
|
+
self.disable_email_inputs = attributes[:'disable_email_inputs']
|
|
477
|
+
end
|
|
478
|
+
|
|
479
|
+
if attributes.key?(:'disable_live_commenting')
|
|
480
|
+
self.disable_live_commenting = attributes[:'disable_live_commenting']
|
|
481
|
+
end
|
|
482
|
+
|
|
483
|
+
if attributes.key?(:'disable_notification_bell')
|
|
484
|
+
self.disable_notification_bell = attributes[:'disable_notification_bell']
|
|
485
|
+
end
|
|
486
|
+
|
|
487
|
+
if attributes.key?(:'disable_profiles')
|
|
488
|
+
self.disable_profiles = attributes[:'disable_profiles']
|
|
489
|
+
end
|
|
490
|
+
|
|
491
|
+
if attributes.key?(:'disable_success_message')
|
|
492
|
+
self.disable_success_message = attributes[:'disable_success_message']
|
|
493
|
+
end
|
|
494
|
+
|
|
495
|
+
if attributes.key?(:'disable_toolbar')
|
|
496
|
+
self.disable_toolbar = attributes[:'disable_toolbar']
|
|
497
|
+
end
|
|
498
|
+
|
|
499
|
+
if attributes.key?(:'disable_unverified_label')
|
|
500
|
+
self.disable_unverified_label = attributes[:'disable_unverified_label']
|
|
501
|
+
end
|
|
502
|
+
|
|
503
|
+
if attributes.key?(:'disable_voting')
|
|
504
|
+
self.disable_voting = attributes[:'disable_voting']
|
|
505
|
+
end
|
|
506
|
+
|
|
507
|
+
if attributes.key?(:'enable_commenter_links')
|
|
508
|
+
self.enable_commenter_links = attributes[:'enable_commenter_links']
|
|
509
|
+
end
|
|
510
|
+
|
|
511
|
+
if attributes.key?(:'enable_search')
|
|
512
|
+
self.enable_search = attributes[:'enable_search']
|
|
513
|
+
end
|
|
514
|
+
|
|
515
|
+
if attributes.key?(:'enable_spoilers')
|
|
516
|
+
self.enable_spoilers = attributes[:'enable_spoilers']
|
|
517
|
+
end
|
|
518
|
+
|
|
519
|
+
if attributes.key?(:'enable_third_party_cookie_bypass')
|
|
520
|
+
self.enable_third_party_cookie_bypass = attributes[:'enable_third_party_cookie_bypass']
|
|
521
|
+
end
|
|
522
|
+
|
|
523
|
+
if attributes.key?(:'enable_view_counts')
|
|
524
|
+
self.enable_view_counts = attributes[:'enable_view_counts']
|
|
525
|
+
end
|
|
526
|
+
|
|
527
|
+
if attributes.key?(:'enable_vote_list')
|
|
528
|
+
self.enable_vote_list = attributes[:'enable_vote_list']
|
|
529
|
+
end
|
|
530
|
+
|
|
531
|
+
if attributes.key?(:'enable_wysiwyg')
|
|
532
|
+
self.enable_wysiwyg = attributes[:'enable_wysiwyg']
|
|
533
|
+
end
|
|
534
|
+
|
|
535
|
+
if attributes.key?(:'gif_rating')
|
|
536
|
+
self.gif_rating = attributes[:'gif_rating']
|
|
537
|
+
end
|
|
538
|
+
|
|
539
|
+
if attributes.key?(:'has_dark_background')
|
|
540
|
+
self.has_dark_background = attributes[:'has_dark_background']
|
|
541
|
+
end
|
|
542
|
+
|
|
543
|
+
if attributes.key?(:'header_html')
|
|
544
|
+
self.header_html = attributes[:'header_html']
|
|
545
|
+
end
|
|
546
|
+
|
|
547
|
+
if attributes.key?(:'hide_avatars')
|
|
548
|
+
self.hide_avatars = attributes[:'hide_avatars']
|
|
549
|
+
end
|
|
550
|
+
|
|
551
|
+
if attributes.key?(:'hide_comments_under_count_text_format')
|
|
552
|
+
self.hide_comments_under_count_text_format = attributes[:'hide_comments_under_count_text_format']
|
|
553
|
+
end
|
|
554
|
+
|
|
555
|
+
if attributes.key?(:'image_content_profanity_level')
|
|
556
|
+
self.image_content_profanity_level = attributes[:'image_content_profanity_level']
|
|
557
|
+
end
|
|
558
|
+
|
|
559
|
+
if attributes.key?(:'input_after_comments')
|
|
560
|
+
self.input_after_comments = attributes[:'input_after_comments']
|
|
561
|
+
end
|
|
562
|
+
|
|
563
|
+
if attributes.key?(:'limit_comments_by_groups')
|
|
564
|
+
self.limit_comments_by_groups = attributes[:'limit_comments_by_groups']
|
|
565
|
+
end
|
|
566
|
+
|
|
567
|
+
if attributes.key?(:'locale')
|
|
568
|
+
self.locale = attributes[:'locale']
|
|
569
|
+
end
|
|
570
|
+
|
|
571
|
+
if attributes.key?(:'max_comment_character_length')
|
|
572
|
+
self.max_comment_character_length = attributes[:'max_comment_character_length']
|
|
573
|
+
end
|
|
574
|
+
|
|
575
|
+
if attributes.key?(:'max_comment_created_count_pupm')
|
|
576
|
+
self.max_comment_created_count_pupm = attributes[:'max_comment_created_count_pupm']
|
|
577
|
+
end
|
|
578
|
+
|
|
579
|
+
if attributes.key?(:'no_custom_config')
|
|
580
|
+
self.no_custom_config = attributes[:'no_custom_config']
|
|
581
|
+
end
|
|
582
|
+
|
|
583
|
+
if attributes.key?(:'no_image_uploads')
|
|
584
|
+
self.no_image_uploads = attributes[:'no_image_uploads']
|
|
585
|
+
end
|
|
586
|
+
|
|
587
|
+
if attributes.key?(:'no_styles')
|
|
588
|
+
self.no_styles = attributes[:'no_styles']
|
|
589
|
+
end
|
|
590
|
+
|
|
591
|
+
if attributes.key?(:'page_size')
|
|
592
|
+
self.page_size = attributes[:'page_size']
|
|
593
|
+
end
|
|
594
|
+
|
|
595
|
+
if attributes.key?(:'readonly')
|
|
596
|
+
self.readonly = attributes[:'readonly']
|
|
597
|
+
end
|
|
598
|
+
|
|
599
|
+
if attributes.key?(:'require_sso')
|
|
600
|
+
self.require_sso = attributes[:'require_sso']
|
|
601
|
+
end
|
|
602
|
+
|
|
603
|
+
if attributes.key?(:'enable_resize_handle')
|
|
604
|
+
self.enable_resize_handle = attributes[:'enable_resize_handle']
|
|
605
|
+
end
|
|
606
|
+
|
|
607
|
+
if attributes.key?(:'restricted_link_domains')
|
|
608
|
+
if (value = attributes[:'restricted_link_domains']).is_a?(Array)
|
|
609
|
+
self.restricted_link_domains = value
|
|
610
|
+
end
|
|
611
|
+
end
|
|
612
|
+
|
|
613
|
+
if attributes.key?(:'show_badges_in_top_bar')
|
|
614
|
+
self.show_badges_in_top_bar = attributes[:'show_badges_in_top_bar']
|
|
615
|
+
end
|
|
616
|
+
|
|
617
|
+
if attributes.key?(:'show_comment_save_success')
|
|
618
|
+
self.show_comment_save_success = attributes[:'show_comment_save_success']
|
|
619
|
+
end
|
|
620
|
+
|
|
621
|
+
if attributes.key?(:'show_live_right_away')
|
|
622
|
+
self.show_live_right_away = attributes[:'show_live_right_away']
|
|
623
|
+
end
|
|
624
|
+
|
|
625
|
+
if attributes.key?(:'show_question')
|
|
626
|
+
self.show_question = attributes[:'show_question']
|
|
627
|
+
end
|
|
628
|
+
|
|
629
|
+
if attributes.key?(:'spam_rules')
|
|
630
|
+
if (value = attributes[:'spam_rules']).is_a?(Array)
|
|
631
|
+
self.spam_rules = value
|
|
632
|
+
end
|
|
633
|
+
end
|
|
634
|
+
|
|
635
|
+
if attributes.key?(:'sso_sec_lvl')
|
|
636
|
+
self.sso_sec_lvl = attributes[:'sso_sec_lvl']
|
|
637
|
+
end
|
|
638
|
+
|
|
639
|
+
if attributes.key?(:'translations')
|
|
640
|
+
if (value = attributes[:'translations']).is_a?(Hash)
|
|
641
|
+
self.translations = value
|
|
642
|
+
end
|
|
643
|
+
end
|
|
644
|
+
|
|
645
|
+
if attributes.key?(:'use_show_comments_toggle')
|
|
646
|
+
self.use_show_comments_toggle = attributes[:'use_show_comments_toggle']
|
|
647
|
+
end
|
|
648
|
+
|
|
649
|
+
if attributes.key?(:'use_single_line_comment_input')
|
|
650
|
+
self.use_single_line_comment_input = attributes[:'use_single_line_comment_input']
|
|
651
|
+
end
|
|
652
|
+
|
|
653
|
+
if attributes.key?(:'vote_style')
|
|
654
|
+
self.vote_style = attributes[:'vote_style']
|
|
655
|
+
end
|
|
656
|
+
|
|
657
|
+
if attributes.key?(:'widget_question_id')
|
|
658
|
+
self.widget_question_id = attributes[:'widget_question_id']
|
|
659
|
+
end
|
|
660
|
+
|
|
661
|
+
if attributes.key?(:'widget_question_results_style')
|
|
662
|
+
self.widget_question_results_style = attributes[:'widget_question_results_style']
|
|
663
|
+
end
|
|
664
|
+
|
|
665
|
+
if attributes.key?(:'widget_question_style')
|
|
666
|
+
self.widget_question_style = attributes[:'widget_question_style']
|
|
667
|
+
end
|
|
668
|
+
|
|
669
|
+
if attributes.key?(:'widget_question_when_to_save')
|
|
670
|
+
self.widget_question_when_to_save = attributes[:'widget_question_when_to_save']
|
|
671
|
+
end
|
|
672
|
+
|
|
673
|
+
if attributes.key?(:'widget_questions_required')
|
|
674
|
+
self.widget_questions_required = attributes[:'widget_questions_required']
|
|
675
|
+
end
|
|
676
|
+
|
|
677
|
+
if attributes.key?(:'widget_sub_question_visibility')
|
|
678
|
+
self.widget_sub_question_visibility = attributes[:'widget_sub_question_visibility']
|
|
679
|
+
end
|
|
680
|
+
|
|
681
|
+
if attributes.key?(:'wrap')
|
|
682
|
+
self.wrap = attributes[:'wrap']
|
|
683
|
+
end
|
|
684
|
+
end
|
|
685
|
+
|
|
686
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
687
|
+
# @return Array for valid properties with the reasons
|
|
688
|
+
def list_invalid_properties
|
|
689
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
690
|
+
invalid_properties = Array.new
|
|
691
|
+
invalid_properties
|
|
692
|
+
end
|
|
693
|
+
|
|
694
|
+
# Check to see if the all the properties in the model are valid
|
|
695
|
+
# @return true if the model is valid
|
|
696
|
+
def valid?
|
|
697
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
698
|
+
true
|
|
699
|
+
end
|
|
700
|
+
|
|
701
|
+
# Checks equality by comparing each attribute.
|
|
702
|
+
# @param [Object] Object to be compared
|
|
703
|
+
def ==(o)
|
|
704
|
+
return true if self.equal?(o)
|
|
705
|
+
self.class == o.class &&
|
|
706
|
+
absolute_and_relative_dates == o.absolute_and_relative_dates &&
|
|
707
|
+
absolute_dates == o.absolute_dates &&
|
|
708
|
+
allow_anon == o.allow_anon &&
|
|
709
|
+
allow_anon_flag == o.allow_anon_flag &&
|
|
710
|
+
allow_anon_votes == o.allow_anon_votes &&
|
|
711
|
+
allowed_languages == o.allowed_languages &&
|
|
712
|
+
collapse_replies == o.collapse_replies &&
|
|
713
|
+
comment_count_format == o.comment_count_format &&
|
|
714
|
+
comment_html_rendering_mode == o.comment_html_rendering_mode &&
|
|
715
|
+
comment_thread_delete_mode == o.comment_thread_delete_mode &&
|
|
716
|
+
commenter_name_format == o.commenter_name_format &&
|
|
717
|
+
count_above_toggle == o.count_above_toggle &&
|
|
718
|
+
custom_css == o.custom_css &&
|
|
719
|
+
default_avatar_src == o.default_avatar_src &&
|
|
720
|
+
default_sort_direction == o.default_sort_direction &&
|
|
721
|
+
default_username == o.default_username &&
|
|
722
|
+
disable_auto_admin_migration == o.disable_auto_admin_migration &&
|
|
723
|
+
disable_auto_hash_tag_creation == o.disable_auto_hash_tag_creation &&
|
|
724
|
+
disable_blocking == o.disable_blocking &&
|
|
725
|
+
disable_commenter_comment_delete == o.disable_commenter_comment_delete &&
|
|
726
|
+
disable_commenter_comment_edit == o.disable_commenter_comment_edit &&
|
|
727
|
+
disable_email_inputs == o.disable_email_inputs &&
|
|
728
|
+
disable_live_commenting == o.disable_live_commenting &&
|
|
729
|
+
disable_notification_bell == o.disable_notification_bell &&
|
|
730
|
+
disable_profiles == o.disable_profiles &&
|
|
731
|
+
disable_success_message == o.disable_success_message &&
|
|
732
|
+
disable_toolbar == o.disable_toolbar &&
|
|
733
|
+
disable_unverified_label == o.disable_unverified_label &&
|
|
734
|
+
disable_voting == o.disable_voting &&
|
|
735
|
+
enable_commenter_links == o.enable_commenter_links &&
|
|
736
|
+
enable_search == o.enable_search &&
|
|
737
|
+
enable_spoilers == o.enable_spoilers &&
|
|
738
|
+
enable_third_party_cookie_bypass == o.enable_third_party_cookie_bypass &&
|
|
739
|
+
enable_view_counts == o.enable_view_counts &&
|
|
740
|
+
enable_vote_list == o.enable_vote_list &&
|
|
741
|
+
enable_wysiwyg == o.enable_wysiwyg &&
|
|
742
|
+
gif_rating == o.gif_rating &&
|
|
743
|
+
has_dark_background == o.has_dark_background &&
|
|
744
|
+
header_html == o.header_html &&
|
|
745
|
+
hide_avatars == o.hide_avatars &&
|
|
746
|
+
hide_comments_under_count_text_format == o.hide_comments_under_count_text_format &&
|
|
747
|
+
image_content_profanity_level == o.image_content_profanity_level &&
|
|
748
|
+
input_after_comments == o.input_after_comments &&
|
|
749
|
+
limit_comments_by_groups == o.limit_comments_by_groups &&
|
|
750
|
+
locale == o.locale &&
|
|
751
|
+
max_comment_character_length == o.max_comment_character_length &&
|
|
752
|
+
max_comment_created_count_pupm == o.max_comment_created_count_pupm &&
|
|
753
|
+
no_custom_config == o.no_custom_config &&
|
|
754
|
+
no_image_uploads == o.no_image_uploads &&
|
|
755
|
+
no_styles == o.no_styles &&
|
|
756
|
+
page_size == o.page_size &&
|
|
757
|
+
readonly == o.readonly &&
|
|
758
|
+
require_sso == o.require_sso &&
|
|
759
|
+
enable_resize_handle == o.enable_resize_handle &&
|
|
760
|
+
restricted_link_domains == o.restricted_link_domains &&
|
|
761
|
+
show_badges_in_top_bar == o.show_badges_in_top_bar &&
|
|
762
|
+
show_comment_save_success == o.show_comment_save_success &&
|
|
763
|
+
show_live_right_away == o.show_live_right_away &&
|
|
764
|
+
show_question == o.show_question &&
|
|
765
|
+
spam_rules == o.spam_rules &&
|
|
766
|
+
sso_sec_lvl == o.sso_sec_lvl &&
|
|
767
|
+
translations == o.translations &&
|
|
768
|
+
use_show_comments_toggle == o.use_show_comments_toggle &&
|
|
769
|
+
use_single_line_comment_input == o.use_single_line_comment_input &&
|
|
770
|
+
vote_style == o.vote_style &&
|
|
771
|
+
widget_question_id == o.widget_question_id &&
|
|
772
|
+
widget_question_results_style == o.widget_question_results_style &&
|
|
773
|
+
widget_question_style == o.widget_question_style &&
|
|
774
|
+
widget_question_when_to_save == o.widget_question_when_to_save &&
|
|
775
|
+
widget_questions_required == o.widget_questions_required &&
|
|
776
|
+
widget_sub_question_visibility == o.widget_sub_question_visibility &&
|
|
777
|
+
wrap == o.wrap
|
|
778
|
+
end
|
|
779
|
+
|
|
780
|
+
# @see the `==` method
|
|
781
|
+
# @param [Object] Object to be compared
|
|
782
|
+
def eql?(o)
|
|
783
|
+
self == o
|
|
784
|
+
end
|
|
785
|
+
|
|
786
|
+
# Calculates hash code according to all attributes.
|
|
787
|
+
# @return [Integer] Hash code
|
|
788
|
+
def hash
|
|
789
|
+
[absolute_and_relative_dates, absolute_dates, allow_anon, allow_anon_flag, allow_anon_votes, allowed_languages, collapse_replies, comment_count_format, comment_html_rendering_mode, comment_thread_delete_mode, commenter_name_format, count_above_toggle, custom_css, default_avatar_src, default_sort_direction, default_username, disable_auto_admin_migration, disable_auto_hash_tag_creation, disable_blocking, disable_commenter_comment_delete, disable_commenter_comment_edit, disable_email_inputs, disable_live_commenting, disable_notification_bell, disable_profiles, disable_success_message, disable_toolbar, disable_unverified_label, disable_voting, enable_commenter_links, enable_search, enable_spoilers, enable_third_party_cookie_bypass, enable_view_counts, enable_vote_list, enable_wysiwyg, gif_rating, has_dark_background, header_html, hide_avatars, hide_comments_under_count_text_format, image_content_profanity_level, input_after_comments, limit_comments_by_groups, locale, max_comment_character_length, max_comment_created_count_pupm, no_custom_config, no_image_uploads, no_styles, page_size, readonly, require_sso, enable_resize_handle, restricted_link_domains, show_badges_in_top_bar, show_comment_save_success, show_live_right_away, show_question, spam_rules, sso_sec_lvl, translations, use_show_comments_toggle, use_single_line_comment_input, vote_style, widget_question_id, widget_question_results_style, widget_question_style, widget_question_when_to_save, widget_questions_required, widget_sub_question_visibility, wrap].hash
|
|
790
|
+
end
|
|
791
|
+
|
|
792
|
+
# Builds the object from hash
|
|
793
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
794
|
+
# @return [Object] Returns the model itself
|
|
795
|
+
def self.build_from_hash(attributes)
|
|
796
|
+
return nil unless attributes.is_a?(Hash)
|
|
797
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
798
|
+
transformed_hash = {}
|
|
799
|
+
openapi_types.each_pair do |key, type|
|
|
800
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
801
|
+
transformed_hash["#{key}"] = nil
|
|
802
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
803
|
+
# check to ensure the input is an array given that the attribute
|
|
804
|
+
# is documented as an array but the input is not
|
|
805
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
806
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
807
|
+
end
|
|
808
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
809
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
810
|
+
end
|
|
811
|
+
end
|
|
812
|
+
new(transformed_hash)
|
|
813
|
+
end
|
|
814
|
+
|
|
815
|
+
# Deserializes the data based on type
|
|
816
|
+
# @param string type Data type
|
|
817
|
+
# @param string value Value to be deserialized
|
|
818
|
+
# @return [Object] Deserialized data
|
|
819
|
+
def self._deserialize(type, value)
|
|
820
|
+
case type.to_sym
|
|
821
|
+
when :Time
|
|
822
|
+
Time.parse(value)
|
|
823
|
+
when :Date
|
|
824
|
+
Date.parse(value)
|
|
825
|
+
when :String
|
|
826
|
+
value.to_s
|
|
827
|
+
when :Integer
|
|
828
|
+
value.to_i
|
|
829
|
+
when :Float
|
|
830
|
+
value.to_f
|
|
831
|
+
when :Boolean
|
|
832
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
833
|
+
true
|
|
834
|
+
else
|
|
835
|
+
false
|
|
836
|
+
end
|
|
837
|
+
when :Object
|
|
838
|
+
# generic object (usually a Hash), return directly
|
|
839
|
+
value
|
|
840
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
841
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
842
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
843
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
844
|
+
k_type = Regexp.last_match[:k_type]
|
|
845
|
+
v_type = Regexp.last_match[:v_type]
|
|
846
|
+
{}.tap do |hash|
|
|
847
|
+
value.each do |k, v|
|
|
848
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
849
|
+
end
|
|
850
|
+
end
|
|
851
|
+
else # model
|
|
852
|
+
# models (e.g. Pet) or oneOf
|
|
853
|
+
klass = FastCommentsClient.const_get(type)
|
|
854
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
855
|
+
end
|
|
856
|
+
end
|
|
857
|
+
|
|
858
|
+
# Returns the string representation of the object
|
|
859
|
+
# @return [String] String presentation of the object
|
|
860
|
+
def to_s
|
|
861
|
+
to_hash.to_s
|
|
862
|
+
end
|
|
863
|
+
|
|
864
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
865
|
+
# @return [Hash] Returns the object in the form of hash
|
|
866
|
+
def to_body
|
|
867
|
+
to_hash
|
|
868
|
+
end
|
|
869
|
+
|
|
870
|
+
# Returns the object in the form of hash
|
|
871
|
+
# @return [Hash] Returns the object in the form of hash
|
|
872
|
+
def to_hash
|
|
873
|
+
hash = {}
|
|
874
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
875
|
+
value = self.send(attr)
|
|
876
|
+
if value.nil?
|
|
877
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
878
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
879
|
+
end
|
|
880
|
+
|
|
881
|
+
hash[param] = _to_hash(value)
|
|
882
|
+
end
|
|
883
|
+
hash
|
|
884
|
+
end
|
|
885
|
+
|
|
886
|
+
# Outputs non-array value in the form of hash
|
|
887
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
888
|
+
# @param [Object] value Any valid value
|
|
889
|
+
# @return [Hash] Returns the value in the form of hash
|
|
890
|
+
def _to_hash(value)
|
|
891
|
+
if value.is_a?(Array)
|
|
892
|
+
value.compact.map { |v| _to_hash(v) }
|
|
893
|
+
elsif value.is_a?(Hash)
|
|
894
|
+
{}.tap do |hash|
|
|
895
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
896
|
+
end
|
|
897
|
+
elsif value.respond_to? :to_hash
|
|
898
|
+
value.to_hash
|
|
899
|
+
else
|
|
900
|
+
value
|
|
901
|
+
end
|
|
902
|
+
end
|
|
903
|
+
|
|
904
|
+
end
|
|
905
|
+
|
|
906
|
+
end
|