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,597 @@
|
|
|
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 APISSOUser
|
|
18
|
+
attr_accessor :id
|
|
19
|
+
|
|
20
|
+
attr_accessor :username
|
|
21
|
+
|
|
22
|
+
attr_accessor :website_url
|
|
23
|
+
|
|
24
|
+
attr_accessor :email
|
|
25
|
+
|
|
26
|
+
attr_accessor :sign_up_date
|
|
27
|
+
|
|
28
|
+
attr_accessor :created_from_url_id
|
|
29
|
+
|
|
30
|
+
attr_accessor :login_count
|
|
31
|
+
|
|
32
|
+
attr_accessor :avatar_src
|
|
33
|
+
|
|
34
|
+
attr_accessor :opted_in_notifications
|
|
35
|
+
|
|
36
|
+
attr_accessor :opted_in_subscription_notifications
|
|
37
|
+
|
|
38
|
+
attr_accessor :display_label
|
|
39
|
+
|
|
40
|
+
attr_accessor :display_name
|
|
41
|
+
|
|
42
|
+
attr_accessor :is_account_owner
|
|
43
|
+
|
|
44
|
+
attr_accessor :is_admin_admin
|
|
45
|
+
|
|
46
|
+
attr_accessor :is_comment_moderator_admin
|
|
47
|
+
|
|
48
|
+
attr_accessor :is_profile_activity_private
|
|
49
|
+
|
|
50
|
+
attr_accessor :is_profile_comments_private
|
|
51
|
+
|
|
52
|
+
attr_accessor :is_profile_dm_disabled
|
|
53
|
+
|
|
54
|
+
attr_accessor :has_blocked_users
|
|
55
|
+
|
|
56
|
+
attr_accessor :group_ids
|
|
57
|
+
|
|
58
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
59
|
+
def self.attribute_map
|
|
60
|
+
{
|
|
61
|
+
:'id' => :'id',
|
|
62
|
+
:'username' => :'username',
|
|
63
|
+
:'website_url' => :'websiteUrl',
|
|
64
|
+
:'email' => :'email',
|
|
65
|
+
:'sign_up_date' => :'signUpDate',
|
|
66
|
+
:'created_from_url_id' => :'createdFromUrlId',
|
|
67
|
+
:'login_count' => :'loginCount',
|
|
68
|
+
:'avatar_src' => :'avatarSrc',
|
|
69
|
+
:'opted_in_notifications' => :'optedInNotifications',
|
|
70
|
+
:'opted_in_subscription_notifications' => :'optedInSubscriptionNotifications',
|
|
71
|
+
:'display_label' => :'displayLabel',
|
|
72
|
+
:'display_name' => :'displayName',
|
|
73
|
+
:'is_account_owner' => :'isAccountOwner',
|
|
74
|
+
:'is_admin_admin' => :'isAdminAdmin',
|
|
75
|
+
:'is_comment_moderator_admin' => :'isCommentModeratorAdmin',
|
|
76
|
+
:'is_profile_activity_private' => :'isProfileActivityPrivate',
|
|
77
|
+
:'is_profile_comments_private' => :'isProfileCommentsPrivate',
|
|
78
|
+
:'is_profile_dm_disabled' => :'isProfileDMDisabled',
|
|
79
|
+
:'has_blocked_users' => :'hasBlockedUsers',
|
|
80
|
+
:'group_ids' => :'groupIds'
|
|
81
|
+
}
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
# Returns attribute mapping this model knows about
|
|
85
|
+
def self.acceptable_attribute_map
|
|
86
|
+
attribute_map
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
# Returns all the JSON keys this model knows about
|
|
90
|
+
def self.acceptable_attributes
|
|
91
|
+
acceptable_attribute_map.values
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
# Attribute type mapping.
|
|
95
|
+
def self.openapi_types
|
|
96
|
+
{
|
|
97
|
+
:'id' => :'String',
|
|
98
|
+
:'username' => :'String',
|
|
99
|
+
:'website_url' => :'String',
|
|
100
|
+
:'email' => :'String',
|
|
101
|
+
:'sign_up_date' => :'Integer',
|
|
102
|
+
:'created_from_url_id' => :'String',
|
|
103
|
+
:'login_count' => :'Integer',
|
|
104
|
+
:'avatar_src' => :'String',
|
|
105
|
+
:'opted_in_notifications' => :'Boolean',
|
|
106
|
+
:'opted_in_subscription_notifications' => :'Boolean',
|
|
107
|
+
:'display_label' => :'String',
|
|
108
|
+
:'display_name' => :'String',
|
|
109
|
+
:'is_account_owner' => :'Boolean',
|
|
110
|
+
:'is_admin_admin' => :'Boolean',
|
|
111
|
+
:'is_comment_moderator_admin' => :'Boolean',
|
|
112
|
+
:'is_profile_activity_private' => :'Boolean',
|
|
113
|
+
:'is_profile_comments_private' => :'Boolean',
|
|
114
|
+
:'is_profile_dm_disabled' => :'Boolean',
|
|
115
|
+
:'has_blocked_users' => :'Boolean',
|
|
116
|
+
:'group_ids' => :'Array<String>'
|
|
117
|
+
}
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
# List of attributes with nullable: true
|
|
121
|
+
def self.openapi_nullable
|
|
122
|
+
Set.new([
|
|
123
|
+
])
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
# Initializes the object
|
|
127
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
128
|
+
def initialize(attributes = {})
|
|
129
|
+
if (!attributes.is_a?(Hash))
|
|
130
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `FastCommentsClient::APISSOUser` initialize method"
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
134
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
135
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
136
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
137
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `FastCommentsClient::APISSOUser`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
138
|
+
end
|
|
139
|
+
h[k.to_sym] = v
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
if attributes.key?(:'id')
|
|
143
|
+
self.id = attributes[:'id']
|
|
144
|
+
else
|
|
145
|
+
self.id = nil
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
if attributes.key?(:'username')
|
|
149
|
+
self.username = attributes[:'username']
|
|
150
|
+
else
|
|
151
|
+
self.username = nil
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
if attributes.key?(:'website_url')
|
|
155
|
+
self.website_url = attributes[:'website_url']
|
|
156
|
+
else
|
|
157
|
+
self.website_url = nil
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
if attributes.key?(:'email')
|
|
161
|
+
self.email = attributes[:'email']
|
|
162
|
+
else
|
|
163
|
+
self.email = nil
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
if attributes.key?(:'sign_up_date')
|
|
167
|
+
self.sign_up_date = attributes[:'sign_up_date']
|
|
168
|
+
else
|
|
169
|
+
self.sign_up_date = nil
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
if attributes.key?(:'created_from_url_id')
|
|
173
|
+
self.created_from_url_id = attributes[:'created_from_url_id']
|
|
174
|
+
else
|
|
175
|
+
self.created_from_url_id = nil
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
if attributes.key?(:'login_count')
|
|
179
|
+
self.login_count = attributes[:'login_count']
|
|
180
|
+
else
|
|
181
|
+
self.login_count = nil
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
if attributes.key?(:'avatar_src')
|
|
185
|
+
self.avatar_src = attributes[:'avatar_src']
|
|
186
|
+
else
|
|
187
|
+
self.avatar_src = nil
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
if attributes.key?(:'opted_in_notifications')
|
|
191
|
+
self.opted_in_notifications = attributes[:'opted_in_notifications']
|
|
192
|
+
else
|
|
193
|
+
self.opted_in_notifications = nil
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
if attributes.key?(:'opted_in_subscription_notifications')
|
|
197
|
+
self.opted_in_subscription_notifications = attributes[:'opted_in_subscription_notifications']
|
|
198
|
+
else
|
|
199
|
+
self.opted_in_subscription_notifications = nil
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
if attributes.key?(:'display_label')
|
|
203
|
+
self.display_label = attributes[:'display_label']
|
|
204
|
+
else
|
|
205
|
+
self.display_label = nil
|
|
206
|
+
end
|
|
207
|
+
|
|
208
|
+
if attributes.key?(:'display_name')
|
|
209
|
+
self.display_name = attributes[:'display_name']
|
|
210
|
+
else
|
|
211
|
+
self.display_name = nil
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
if attributes.key?(:'is_account_owner')
|
|
215
|
+
self.is_account_owner = attributes[:'is_account_owner']
|
|
216
|
+
end
|
|
217
|
+
|
|
218
|
+
if attributes.key?(:'is_admin_admin')
|
|
219
|
+
self.is_admin_admin = attributes[:'is_admin_admin']
|
|
220
|
+
end
|
|
221
|
+
|
|
222
|
+
if attributes.key?(:'is_comment_moderator_admin')
|
|
223
|
+
self.is_comment_moderator_admin = attributes[:'is_comment_moderator_admin']
|
|
224
|
+
end
|
|
225
|
+
|
|
226
|
+
if attributes.key?(:'is_profile_activity_private')
|
|
227
|
+
self.is_profile_activity_private = attributes[:'is_profile_activity_private']
|
|
228
|
+
end
|
|
229
|
+
|
|
230
|
+
if attributes.key?(:'is_profile_comments_private')
|
|
231
|
+
self.is_profile_comments_private = attributes[:'is_profile_comments_private']
|
|
232
|
+
end
|
|
233
|
+
|
|
234
|
+
if attributes.key?(:'is_profile_dm_disabled')
|
|
235
|
+
self.is_profile_dm_disabled = attributes[:'is_profile_dm_disabled']
|
|
236
|
+
end
|
|
237
|
+
|
|
238
|
+
if attributes.key?(:'has_blocked_users')
|
|
239
|
+
self.has_blocked_users = attributes[:'has_blocked_users']
|
|
240
|
+
end
|
|
241
|
+
|
|
242
|
+
if attributes.key?(:'group_ids')
|
|
243
|
+
if (value = attributes[:'group_ids']).is_a?(Array)
|
|
244
|
+
self.group_ids = value
|
|
245
|
+
end
|
|
246
|
+
end
|
|
247
|
+
end
|
|
248
|
+
|
|
249
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
250
|
+
# @return Array for valid properties with the reasons
|
|
251
|
+
def list_invalid_properties
|
|
252
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
253
|
+
invalid_properties = Array.new
|
|
254
|
+
if @id.nil?
|
|
255
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
|
256
|
+
end
|
|
257
|
+
|
|
258
|
+
if @username.nil?
|
|
259
|
+
invalid_properties.push('invalid value for "username", username cannot be nil.')
|
|
260
|
+
end
|
|
261
|
+
|
|
262
|
+
if @website_url.nil?
|
|
263
|
+
invalid_properties.push('invalid value for "website_url", website_url cannot be nil.')
|
|
264
|
+
end
|
|
265
|
+
|
|
266
|
+
if @email.nil?
|
|
267
|
+
invalid_properties.push('invalid value for "email", email cannot be nil.')
|
|
268
|
+
end
|
|
269
|
+
|
|
270
|
+
if @sign_up_date.nil?
|
|
271
|
+
invalid_properties.push('invalid value for "sign_up_date", sign_up_date cannot be nil.')
|
|
272
|
+
end
|
|
273
|
+
|
|
274
|
+
if @created_from_url_id.nil?
|
|
275
|
+
invalid_properties.push('invalid value for "created_from_url_id", created_from_url_id cannot be nil.')
|
|
276
|
+
end
|
|
277
|
+
|
|
278
|
+
if @login_count.nil?
|
|
279
|
+
invalid_properties.push('invalid value for "login_count", login_count cannot be nil.')
|
|
280
|
+
end
|
|
281
|
+
|
|
282
|
+
if @avatar_src.nil?
|
|
283
|
+
invalid_properties.push('invalid value for "avatar_src", avatar_src cannot be nil.')
|
|
284
|
+
end
|
|
285
|
+
|
|
286
|
+
if @opted_in_notifications.nil?
|
|
287
|
+
invalid_properties.push('invalid value for "opted_in_notifications", opted_in_notifications cannot be nil.')
|
|
288
|
+
end
|
|
289
|
+
|
|
290
|
+
if @opted_in_subscription_notifications.nil?
|
|
291
|
+
invalid_properties.push('invalid value for "opted_in_subscription_notifications", opted_in_subscription_notifications cannot be nil.')
|
|
292
|
+
end
|
|
293
|
+
|
|
294
|
+
if @display_label.nil?
|
|
295
|
+
invalid_properties.push('invalid value for "display_label", display_label cannot be nil.')
|
|
296
|
+
end
|
|
297
|
+
|
|
298
|
+
if @display_name.nil?
|
|
299
|
+
invalid_properties.push('invalid value for "display_name", display_name cannot be nil.')
|
|
300
|
+
end
|
|
301
|
+
|
|
302
|
+
invalid_properties
|
|
303
|
+
end
|
|
304
|
+
|
|
305
|
+
# Check to see if the all the properties in the model are valid
|
|
306
|
+
# @return true if the model is valid
|
|
307
|
+
def valid?
|
|
308
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
309
|
+
return false if @id.nil?
|
|
310
|
+
return false if @username.nil?
|
|
311
|
+
return false if @website_url.nil?
|
|
312
|
+
return false if @email.nil?
|
|
313
|
+
return false if @sign_up_date.nil?
|
|
314
|
+
return false if @created_from_url_id.nil?
|
|
315
|
+
return false if @login_count.nil?
|
|
316
|
+
return false if @avatar_src.nil?
|
|
317
|
+
return false if @opted_in_notifications.nil?
|
|
318
|
+
return false if @opted_in_subscription_notifications.nil?
|
|
319
|
+
return false if @display_label.nil?
|
|
320
|
+
return false if @display_name.nil?
|
|
321
|
+
true
|
|
322
|
+
end
|
|
323
|
+
|
|
324
|
+
# Custom attribute writer method with validation
|
|
325
|
+
# @param [Object] id Value to be assigned
|
|
326
|
+
def id=(id)
|
|
327
|
+
if id.nil?
|
|
328
|
+
fail ArgumentError, 'id cannot be nil'
|
|
329
|
+
end
|
|
330
|
+
|
|
331
|
+
@id = id
|
|
332
|
+
end
|
|
333
|
+
|
|
334
|
+
# Custom attribute writer method with validation
|
|
335
|
+
# @param [Object] username Value to be assigned
|
|
336
|
+
def username=(username)
|
|
337
|
+
if username.nil?
|
|
338
|
+
fail ArgumentError, 'username cannot be nil'
|
|
339
|
+
end
|
|
340
|
+
|
|
341
|
+
@username = username
|
|
342
|
+
end
|
|
343
|
+
|
|
344
|
+
# Custom attribute writer method with validation
|
|
345
|
+
# @param [Object] website_url Value to be assigned
|
|
346
|
+
def website_url=(website_url)
|
|
347
|
+
if website_url.nil?
|
|
348
|
+
fail ArgumentError, 'website_url cannot be nil'
|
|
349
|
+
end
|
|
350
|
+
|
|
351
|
+
@website_url = website_url
|
|
352
|
+
end
|
|
353
|
+
|
|
354
|
+
# Custom attribute writer method with validation
|
|
355
|
+
# @param [Object] email Value to be assigned
|
|
356
|
+
def email=(email)
|
|
357
|
+
if email.nil?
|
|
358
|
+
fail ArgumentError, 'email cannot be nil'
|
|
359
|
+
end
|
|
360
|
+
|
|
361
|
+
@email = email
|
|
362
|
+
end
|
|
363
|
+
|
|
364
|
+
# Custom attribute writer method with validation
|
|
365
|
+
# @param [Object] sign_up_date Value to be assigned
|
|
366
|
+
def sign_up_date=(sign_up_date)
|
|
367
|
+
if sign_up_date.nil?
|
|
368
|
+
fail ArgumentError, 'sign_up_date cannot be nil'
|
|
369
|
+
end
|
|
370
|
+
|
|
371
|
+
@sign_up_date = sign_up_date
|
|
372
|
+
end
|
|
373
|
+
|
|
374
|
+
# Custom attribute writer method with validation
|
|
375
|
+
# @param [Object] created_from_url_id Value to be assigned
|
|
376
|
+
def created_from_url_id=(created_from_url_id)
|
|
377
|
+
if created_from_url_id.nil?
|
|
378
|
+
fail ArgumentError, 'created_from_url_id cannot be nil'
|
|
379
|
+
end
|
|
380
|
+
|
|
381
|
+
@created_from_url_id = created_from_url_id
|
|
382
|
+
end
|
|
383
|
+
|
|
384
|
+
# Custom attribute writer method with validation
|
|
385
|
+
# @param [Object] login_count Value to be assigned
|
|
386
|
+
def login_count=(login_count)
|
|
387
|
+
if login_count.nil?
|
|
388
|
+
fail ArgumentError, 'login_count cannot be nil'
|
|
389
|
+
end
|
|
390
|
+
|
|
391
|
+
@login_count = login_count
|
|
392
|
+
end
|
|
393
|
+
|
|
394
|
+
# Custom attribute writer method with validation
|
|
395
|
+
# @param [Object] avatar_src Value to be assigned
|
|
396
|
+
def avatar_src=(avatar_src)
|
|
397
|
+
if avatar_src.nil?
|
|
398
|
+
fail ArgumentError, 'avatar_src cannot be nil'
|
|
399
|
+
end
|
|
400
|
+
|
|
401
|
+
@avatar_src = avatar_src
|
|
402
|
+
end
|
|
403
|
+
|
|
404
|
+
# Custom attribute writer method with validation
|
|
405
|
+
# @param [Object] opted_in_notifications Value to be assigned
|
|
406
|
+
def opted_in_notifications=(opted_in_notifications)
|
|
407
|
+
if opted_in_notifications.nil?
|
|
408
|
+
fail ArgumentError, 'opted_in_notifications cannot be nil'
|
|
409
|
+
end
|
|
410
|
+
|
|
411
|
+
@opted_in_notifications = opted_in_notifications
|
|
412
|
+
end
|
|
413
|
+
|
|
414
|
+
# Custom attribute writer method with validation
|
|
415
|
+
# @param [Object] opted_in_subscription_notifications Value to be assigned
|
|
416
|
+
def opted_in_subscription_notifications=(opted_in_subscription_notifications)
|
|
417
|
+
if opted_in_subscription_notifications.nil?
|
|
418
|
+
fail ArgumentError, 'opted_in_subscription_notifications cannot be nil'
|
|
419
|
+
end
|
|
420
|
+
|
|
421
|
+
@opted_in_subscription_notifications = opted_in_subscription_notifications
|
|
422
|
+
end
|
|
423
|
+
|
|
424
|
+
# Custom attribute writer method with validation
|
|
425
|
+
# @param [Object] display_label Value to be assigned
|
|
426
|
+
def display_label=(display_label)
|
|
427
|
+
if display_label.nil?
|
|
428
|
+
fail ArgumentError, 'display_label cannot be nil'
|
|
429
|
+
end
|
|
430
|
+
|
|
431
|
+
@display_label = display_label
|
|
432
|
+
end
|
|
433
|
+
|
|
434
|
+
# Custom attribute writer method with validation
|
|
435
|
+
# @param [Object] display_name Value to be assigned
|
|
436
|
+
def display_name=(display_name)
|
|
437
|
+
if display_name.nil?
|
|
438
|
+
fail ArgumentError, 'display_name cannot be nil'
|
|
439
|
+
end
|
|
440
|
+
|
|
441
|
+
@display_name = display_name
|
|
442
|
+
end
|
|
443
|
+
|
|
444
|
+
# Checks equality by comparing each attribute.
|
|
445
|
+
# @param [Object] Object to be compared
|
|
446
|
+
def ==(o)
|
|
447
|
+
return true if self.equal?(o)
|
|
448
|
+
self.class == o.class &&
|
|
449
|
+
id == o.id &&
|
|
450
|
+
username == o.username &&
|
|
451
|
+
website_url == o.website_url &&
|
|
452
|
+
email == o.email &&
|
|
453
|
+
sign_up_date == o.sign_up_date &&
|
|
454
|
+
created_from_url_id == o.created_from_url_id &&
|
|
455
|
+
login_count == o.login_count &&
|
|
456
|
+
avatar_src == o.avatar_src &&
|
|
457
|
+
opted_in_notifications == o.opted_in_notifications &&
|
|
458
|
+
opted_in_subscription_notifications == o.opted_in_subscription_notifications &&
|
|
459
|
+
display_label == o.display_label &&
|
|
460
|
+
display_name == o.display_name &&
|
|
461
|
+
is_account_owner == o.is_account_owner &&
|
|
462
|
+
is_admin_admin == o.is_admin_admin &&
|
|
463
|
+
is_comment_moderator_admin == o.is_comment_moderator_admin &&
|
|
464
|
+
is_profile_activity_private == o.is_profile_activity_private &&
|
|
465
|
+
is_profile_comments_private == o.is_profile_comments_private &&
|
|
466
|
+
is_profile_dm_disabled == o.is_profile_dm_disabled &&
|
|
467
|
+
has_blocked_users == o.has_blocked_users &&
|
|
468
|
+
group_ids == o.group_ids
|
|
469
|
+
end
|
|
470
|
+
|
|
471
|
+
# @see the `==` method
|
|
472
|
+
# @param [Object] Object to be compared
|
|
473
|
+
def eql?(o)
|
|
474
|
+
self == o
|
|
475
|
+
end
|
|
476
|
+
|
|
477
|
+
# Calculates hash code according to all attributes.
|
|
478
|
+
# @return [Integer] Hash code
|
|
479
|
+
def hash
|
|
480
|
+
[id, username, website_url, email, sign_up_date, created_from_url_id, login_count, avatar_src, opted_in_notifications, opted_in_subscription_notifications, display_label, display_name, is_account_owner, is_admin_admin, is_comment_moderator_admin, is_profile_activity_private, is_profile_comments_private, is_profile_dm_disabled, has_blocked_users, group_ids].hash
|
|
481
|
+
end
|
|
482
|
+
|
|
483
|
+
# Builds the object from hash
|
|
484
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
485
|
+
# @return [Object] Returns the model itself
|
|
486
|
+
def self.build_from_hash(attributes)
|
|
487
|
+
return nil unless attributes.is_a?(Hash)
|
|
488
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
489
|
+
transformed_hash = {}
|
|
490
|
+
openapi_types.each_pair do |key, type|
|
|
491
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
492
|
+
transformed_hash["#{key}"] = nil
|
|
493
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
494
|
+
# check to ensure the input is an array given that the attribute
|
|
495
|
+
# is documented as an array but the input is not
|
|
496
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
497
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
498
|
+
end
|
|
499
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
500
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
501
|
+
end
|
|
502
|
+
end
|
|
503
|
+
new(transformed_hash)
|
|
504
|
+
end
|
|
505
|
+
|
|
506
|
+
# Deserializes the data based on type
|
|
507
|
+
# @param string type Data type
|
|
508
|
+
# @param string value Value to be deserialized
|
|
509
|
+
# @return [Object] Deserialized data
|
|
510
|
+
def self._deserialize(type, value)
|
|
511
|
+
case type.to_sym
|
|
512
|
+
when :Time
|
|
513
|
+
Time.parse(value)
|
|
514
|
+
when :Date
|
|
515
|
+
Date.parse(value)
|
|
516
|
+
when :String
|
|
517
|
+
value.to_s
|
|
518
|
+
when :Integer
|
|
519
|
+
value.to_i
|
|
520
|
+
when :Float
|
|
521
|
+
value.to_f
|
|
522
|
+
when :Boolean
|
|
523
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
524
|
+
true
|
|
525
|
+
else
|
|
526
|
+
false
|
|
527
|
+
end
|
|
528
|
+
when :Object
|
|
529
|
+
# generic object (usually a Hash), return directly
|
|
530
|
+
value
|
|
531
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
532
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
533
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
534
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
535
|
+
k_type = Regexp.last_match[:k_type]
|
|
536
|
+
v_type = Regexp.last_match[:v_type]
|
|
537
|
+
{}.tap do |hash|
|
|
538
|
+
value.each do |k, v|
|
|
539
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
540
|
+
end
|
|
541
|
+
end
|
|
542
|
+
else # model
|
|
543
|
+
# models (e.g. Pet) or oneOf
|
|
544
|
+
klass = FastCommentsClient.const_get(type)
|
|
545
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
546
|
+
end
|
|
547
|
+
end
|
|
548
|
+
|
|
549
|
+
# Returns the string representation of the object
|
|
550
|
+
# @return [String] String presentation of the object
|
|
551
|
+
def to_s
|
|
552
|
+
to_hash.to_s
|
|
553
|
+
end
|
|
554
|
+
|
|
555
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
556
|
+
# @return [Hash] Returns the object in the form of hash
|
|
557
|
+
def to_body
|
|
558
|
+
to_hash
|
|
559
|
+
end
|
|
560
|
+
|
|
561
|
+
# Returns the object in the form of hash
|
|
562
|
+
# @return [Hash] Returns the object in the form of hash
|
|
563
|
+
def to_hash
|
|
564
|
+
hash = {}
|
|
565
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
566
|
+
value = self.send(attr)
|
|
567
|
+
if value.nil?
|
|
568
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
569
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
570
|
+
end
|
|
571
|
+
|
|
572
|
+
hash[param] = _to_hash(value)
|
|
573
|
+
end
|
|
574
|
+
hash
|
|
575
|
+
end
|
|
576
|
+
|
|
577
|
+
# Outputs non-array value in the form of hash
|
|
578
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
579
|
+
# @param [Object] value Any valid value
|
|
580
|
+
# @return [Hash] Returns the value in the form of hash
|
|
581
|
+
def _to_hash(value)
|
|
582
|
+
if value.is_a?(Array)
|
|
583
|
+
value.compact.map { |v| _to_hash(v) }
|
|
584
|
+
elsif value.is_a?(Hash)
|
|
585
|
+
{}.tap do |hash|
|
|
586
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
587
|
+
end
|
|
588
|
+
elsif value.respond_to? :to_hash
|
|
589
|
+
value.to_hash
|
|
590
|
+
else
|
|
591
|
+
value
|
|
592
|
+
end
|
|
593
|
+
end
|
|
594
|
+
|
|
595
|
+
end
|
|
596
|
+
|
|
597
|
+
end
|