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.
Files changed (693) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +21 -0
  3. data/README.md +210 -0
  4. data/client/Gemfile +9 -0
  5. data/client/README.md +407 -0
  6. data/client/Rakefile +10 -0
  7. data/client/docs/APIAuditLog.md +40 -0
  8. data/client/docs/APIComment.md +122 -0
  9. data/client/docs/APICommentBase.md +122 -0
  10. data/client/docs/APICreateUserBadgeResponse.md +20 -0
  11. data/client/docs/APIEmptyResponse.md +18 -0
  12. data/client/docs/APIEmptySuccessResponse.md +18 -0
  13. data/client/docs/APIError.md +32 -0
  14. data/client/docs/APIGetCommentResponse.md +20 -0
  15. data/client/docs/APIGetCommentsResponse.md +20 -0
  16. data/client/docs/APIGetUserBadgeProgressListResponse.md +20 -0
  17. data/client/docs/APIGetUserBadgeProgressResponse.md +20 -0
  18. data/client/docs/APIGetUserBadgeResponse.md +20 -0
  19. data/client/docs/APIGetUserBadgesResponse.md +20 -0
  20. data/client/docs/APIPage.md +34 -0
  21. data/client/docs/APISSOUser.md +56 -0
  22. data/client/docs/APIStatus.md +15 -0
  23. data/client/docs/APIUserSubscription.md +30 -0
  24. data/client/docs/AddDomainConfig200Response.md +24 -0
  25. data/client/docs/AddDomainConfig200ResponseAnyOf.md +20 -0
  26. data/client/docs/AddDomainConfigParams.md +30 -0
  27. data/client/docs/AddPageAPIResponse.md +24 -0
  28. data/client/docs/AddSSOUserAPIResponse.md +24 -0
  29. data/client/docs/AggregateQuestionResults200Response.md +34 -0
  30. data/client/docs/AggregateQuestionResultsResponse.md +20 -0
  31. data/client/docs/AggregateTimeBucket.md +15 -0
  32. data/client/docs/AggregationItem.md +18 -0
  33. data/client/docs/AggregationOpType.md +15 -0
  34. data/client/docs/AggregationOperation.md +24 -0
  35. data/client/docs/AggregationRequest.md +26 -0
  36. data/client/docs/AggregationRequestSort.md +20 -0
  37. data/client/docs/AggregationResponse.md +22 -0
  38. data/client/docs/AggregationResponseStats.md +20 -0
  39. data/client/docs/AggregationValue.md +26 -0
  40. data/client/docs/BlockFromCommentParams.md +18 -0
  41. data/client/docs/BlockFromCommentPublic200Response.md +34 -0
  42. data/client/docs/BlockSuccess.md +20 -0
  43. data/client/docs/BulkAggregateQuestionItem.md +28 -0
  44. data/client/docs/BulkAggregateQuestionResults200Response.md +34 -0
  45. data/client/docs/BulkAggregateQuestionResultsRequest.md +18 -0
  46. data/client/docs/BulkAggregateQuestionResultsResponse.md +20 -0
  47. data/client/docs/ChangeCommentPinStatusResponse.md +20 -0
  48. data/client/docs/CheckBlockedCommentsResponse.md +20 -0
  49. data/client/docs/CheckedCommentsForBlocked200Response.md +34 -0
  50. data/client/docs/CombineCommentsWithQuestionResults200Response.md +34 -0
  51. data/client/docs/CombineQuestionResultsWithCommentsResponse.md +20 -0
  52. data/client/docs/CommentData.md +64 -0
  53. data/client/docs/CommentHTMLRenderingMode.md +15 -0
  54. data/client/docs/CommentLogData.md +102 -0
  55. data/client/docs/CommentLogEntry.md +22 -0
  56. data/client/docs/CommentLogType.md +15 -0
  57. data/client/docs/CommentQuestionResultsRenderingType.md +15 -0
  58. data/client/docs/CommentQuestionsRequired.md +15 -0
  59. data/client/docs/CommentTextUpdateRequest.md +22 -0
  60. data/client/docs/CommentThreadDeletionMode.md +15 -0
  61. data/client/docs/CommentUserBadgeInfo.md +34 -0
  62. data/client/docs/CommentUserHashTagInfo.md +24 -0
  63. data/client/docs/CommentUserMentionInfo.md +26 -0
  64. data/client/docs/CommenterNameFormats.md +15 -0
  65. data/client/docs/CreateAPIPageData.md +28 -0
  66. data/client/docs/CreateAPISSOUserData.md +56 -0
  67. data/client/docs/CreateAPIUserSubscriptionData.md +26 -0
  68. data/client/docs/CreateCommentParams.md +84 -0
  69. data/client/docs/CreateCommentPublic200Response.md +40 -0
  70. data/client/docs/CreateFeedPost200Response.md +34 -0
  71. data/client/docs/CreateFeedPostParams.md +32 -0
  72. data/client/docs/CreateFeedPostPublic200Response.md +34 -0
  73. data/client/docs/CreateFeedPostResponse.md +20 -0
  74. data/client/docs/CreateFeedPostsResponse.md +20 -0
  75. data/client/docs/CreateSubscriptionAPIResponse.md +24 -0
  76. data/client/docs/CreateUserBadge200Response.md +34 -0
  77. data/client/docs/CreateUserBadgeParams.md +22 -0
  78. data/client/docs/CustomConfigParameters.md +160 -0
  79. data/client/docs/DefaultApi.md +3601 -0
  80. data/client/docs/DeleteComment200Response.md +34 -0
  81. data/client/docs/DeleteCommentAction.md +15 -0
  82. data/client/docs/DeleteCommentPublic200Response.md +36 -0
  83. data/client/docs/DeleteCommentResult.md +20 -0
  84. data/client/docs/DeleteCommentVote200Response.md +34 -0
  85. data/client/docs/DeleteDomainConfig200Response.md +18 -0
  86. data/client/docs/DeleteFeedPostPublic200Response.md +32 -0
  87. data/client/docs/DeleteFeedPostPublic200ResponseAnyOf.md +18 -0
  88. data/client/docs/DeletePageAPIResponse.md +22 -0
  89. data/client/docs/DeleteSSOUserAPIResponse.md +24 -0
  90. data/client/docs/DeleteSubscriptionAPIResponse.md +22 -0
  91. data/client/docs/DeletedCommentResultComment.md +24 -0
  92. data/client/docs/EventLogEntry.md +28 -0
  93. data/client/docs/FComment.md +158 -0
  94. data/client/docs/FCommentMeta.md +20 -0
  95. data/client/docs/FeedPost.md +48 -0
  96. data/client/docs/FeedPostLink.md +24 -0
  97. data/client/docs/FeedPostMediaItem.md +22 -0
  98. data/client/docs/FeedPostMediaItemAsset.md +22 -0
  99. data/client/docs/FeedPostStats.md +20 -0
  100. data/client/docs/FeedPostsStatsResponse.md +20 -0
  101. data/client/docs/FindCommentsByRangeItem.md +20 -0
  102. data/client/docs/FindCommentsByRangeResponse.md +20 -0
  103. data/client/docs/FlagComment200Response.md +36 -0
  104. data/client/docs/FlagCommentPublic200Response.md +32 -0
  105. data/client/docs/FlagCommentResponse.md +26 -0
  106. data/client/docs/GetAuditLogs200Response.md +34 -0
  107. data/client/docs/GetAuditLogsResponse.md +20 -0
  108. data/client/docs/GetComment200Response.md +34 -0
  109. data/client/docs/GetCommentText200Response.md +36 -0
  110. data/client/docs/GetCommentVoteUserNames200Response.md +36 -0
  111. data/client/docs/GetCommentVoteUserNamesSuccessResponse.md +22 -0
  112. data/client/docs/GetComments200Response.md +34 -0
  113. data/client/docs/GetCommentsPublic200Response.md +78 -0
  114. data/client/docs/GetCommentsResponsePublicComment.md +64 -0
  115. data/client/docs/GetCommentsResponseWithPresencePublicComment.md +70 -0
  116. data/client/docs/GetDomainConfig200Response.md +24 -0
  117. data/client/docs/GetDomainConfigs200Response.md +24 -0
  118. data/client/docs/GetDomainConfigs200ResponseAnyOf.md +20 -0
  119. data/client/docs/GetDomainConfigs200ResponseAnyOf1.md +22 -0
  120. data/client/docs/GetEventLog200Response.md +34 -0
  121. data/client/docs/GetEventLogResponse.md +20 -0
  122. data/client/docs/GetFeedPosts200Response.md +34 -0
  123. data/client/docs/GetFeedPostsPublic200Response.md +44 -0
  124. data/client/docs/GetFeedPostsResponse.md +20 -0
  125. data/client/docs/GetFeedPostsStats200Response.md +34 -0
  126. data/client/docs/GetMyNotificationsResponse.md +26 -0
  127. data/client/docs/GetPageByURLIdAPIResponse.md +24 -0
  128. data/client/docs/GetPagesAPIResponse.md +24 -0
  129. data/client/docs/GetPublicFeedPostsResponse.md +22 -0
  130. data/client/docs/GetSSOUserByEmailAPIResponse.md +24 -0
  131. data/client/docs/GetSSOUserByIdAPIResponse.md +24 -0
  132. data/client/docs/GetSSOUsers200Response.md +20 -0
  133. data/client/docs/GetSubscriptionsAPIResponse.md +24 -0
  134. data/client/docs/GetUserBadge200Response.md +34 -0
  135. data/client/docs/GetUserBadgeProgressById200Response.md +34 -0
  136. data/client/docs/GetUserBadgeProgressList200Response.md +34 -0
  137. data/client/docs/GetUserBadges200Response.md +34 -0
  138. data/client/docs/GetUserNotificationCount200Response.md +34 -0
  139. data/client/docs/GetUserNotificationCountResponse.md +20 -0
  140. data/client/docs/GetUserNotifications200Response.md +40 -0
  141. data/client/docs/GetUserPresenceStatuses200Response.md +34 -0
  142. data/client/docs/GetUserPresenceStatusesResponse.md +20 -0
  143. data/client/docs/GetUserReactsPublic200Response.md +34 -0
  144. data/client/docs/GifRating.md +15 -0
  145. data/client/docs/HeaderState.md +26 -0
  146. data/client/docs/IgnoredResponse.md +20 -0
  147. data/client/docs/ImageContentProfanityLevel.md +15 -0
  148. data/client/docs/LiveEvent.md +48 -0
  149. data/client/docs/LiveEventExtraInfo.md +18 -0
  150. data/client/docs/LiveEventType.md +15 -0
  151. data/client/docs/LockComment200Response.md +32 -0
  152. data/client/docs/MediaAsset.md +22 -0
  153. data/client/docs/MetaItem.md +20 -0
  154. data/client/docs/NotificationAndCount.md +20 -0
  155. data/client/docs/NotificationObjectType.md +15 -0
  156. data/client/docs/NotificationType.md +15 -0
  157. data/client/docs/PatchDomainConfigParams.md +30 -0
  158. data/client/docs/PatchPageAPIResponse.md +24 -0
  159. data/client/docs/PatchSSOUserAPIResponse.md +24 -0
  160. data/client/docs/PinComment200Response.md +34 -0
  161. data/client/docs/PubSubComment.md +102 -0
  162. data/client/docs/PubSubCommentBase.md +96 -0
  163. data/client/docs/PubSubVote.md +34 -0
  164. data/client/docs/PublicAPIDeleteCommentResponse.md +22 -0
  165. data/client/docs/PublicAPIGetCommentTextResponse.md +22 -0
  166. data/client/docs/PublicAPISetCommentTextResponse.md +20 -0
  167. data/client/docs/PublicApi.md +2596 -0
  168. data/client/docs/PublicBlockFromCommentParams.md +18 -0
  169. data/client/docs/PublicComment.md +92 -0
  170. data/client/docs/PublicCommentBase.md +72 -0
  171. data/client/docs/PublicFeedPostsResponse.md +30 -0
  172. data/client/docs/PutSSOUserAPIResponse.md +24 -0
  173. data/client/docs/QueryPredicate.md +22 -0
  174. data/client/docs/QueryPredicateValue.md +15 -0
  175. data/client/docs/QuestionDatum.md +20 -0
  176. data/client/docs/QuestionRenderingType.md +15 -0
  177. data/client/docs/QuestionResult.md +38 -0
  178. data/client/docs/QuestionResultAggregationOverall.md +28 -0
  179. data/client/docs/QuestionSubQuestionVisibility.md +15 -0
  180. data/client/docs/QuestionWhenSave.md +15 -0
  181. data/client/docs/ReactBodyParams.md +18 -0
  182. data/client/docs/ReactFeedPostPublic200Response.md +36 -0
  183. data/client/docs/ReactFeedPostResponse.md +22 -0
  184. data/client/docs/RecordStringBeforeStringOrNullAfterStringOrNullValue.md +20 -0
  185. data/client/docs/RecordStringStringOrNumberValue.md +15 -0
  186. data/client/docs/RenderableUserNotification.md +58 -0
  187. data/client/docs/RepeatCommentCheckIgnoredReason.md +15 -0
  188. data/client/docs/RepeatCommentHandlingAction.md +15 -0
  189. data/client/docs/ResetUserNotifications200Response.md +32 -0
  190. data/client/docs/ResetUserNotificationsResponse.md +20 -0
  191. data/client/docs/SORTDIR.md +15 -0
  192. data/client/docs/SSOSecurityLevel.md +15 -0
  193. data/client/docs/SaveComment200Response.md +38 -0
  194. data/client/docs/SaveCommentResponse.md +24 -0
  195. data/client/docs/SaveCommentResponseOptimized.md +24 -0
  196. data/client/docs/SaveCommentsResponseWithPresence.md +26 -0
  197. data/client/docs/SearchUsers200Response.md +34 -0
  198. data/client/docs/SearchUsersResponse.md +20 -0
  199. data/client/docs/SetCommentText200Response.md +34 -0
  200. data/client/docs/SetCommentTextResult.md +20 -0
  201. data/client/docs/SizePreset.md +15 -0
  202. data/client/docs/SortDirections.md +15 -0
  203. data/client/docs/SpamRule.md +20 -0
  204. data/client/docs/UnBlockCommentPublic200Response.md +34 -0
  205. data/client/docs/UnBlockFromCommentParams.md +18 -0
  206. data/client/docs/UnblockSuccess.md +20 -0
  207. data/client/docs/UpdatableCommentParams.md +94 -0
  208. data/client/docs/UpdateAPIPageData.md +26 -0
  209. data/client/docs/UpdateAPISSOUserData.md +56 -0
  210. data/client/docs/UpdateDomainConfigParams.md +30 -0
  211. data/client/docs/UpdateFeedPostParams.md +28 -0
  212. data/client/docs/UpdateUserBadge200Response.md +32 -0
  213. data/client/docs/UpdateUserBadgeParams.md +18 -0
  214. data/client/docs/UpdateUserNotificationStatus200Response.md +38 -0
  215. data/client/docs/UploadImageResponse.md +26 -0
  216. data/client/docs/UserBadge.md +52 -0
  217. data/client/docs/UserBadgeProgress.md +32 -0
  218. data/client/docs/UserNotification.md +64 -0
  219. data/client/docs/UserNotificationWriteResponse.md +22 -0
  220. data/client/docs/UserPresenceData.md +22 -0
  221. data/client/docs/UserReactsResponse.md +20 -0
  222. data/client/docs/UserSearchResult.md +26 -0
  223. data/client/docs/UserSessionInfo.md +42 -0
  224. data/client/docs/VoteBodyParams.md +24 -0
  225. data/client/docs/VoteComment200Response.md +40 -0
  226. data/client/docs/VoteDeleteResponse.md +20 -0
  227. data/client/docs/VoteResponse.md +26 -0
  228. data/client/docs/VoteResponseStatus.md +15 -0
  229. data/client/docs/VoteResponseUser.md +18 -0
  230. data/client/docs/VoteStyle.md +15 -0
  231. data/client/fastcomments-client.gemspec +39 -0
  232. data/client/git_push.sh +57 -0
  233. data/client/lib/fastcomments-client/api/default_api.rb +3463 -0
  234. data/client/lib/fastcomments-client/api/public_api.rb +2858 -0
  235. data/client/lib/fastcomments-client/api_client.rb +393 -0
  236. data/client/lib/fastcomments-client/api_error.rb +58 -0
  237. data/client/lib/fastcomments-client/configuration.rb +312 -0
  238. data/client/lib/fastcomments-client/models/add_domain_config200_response.rb +104 -0
  239. data/client/lib/fastcomments-client/models/add_domain_config200_response_any_of.rb +235 -0
  240. data/client/lib/fastcomments-client/models/add_domain_config_params.rb +294 -0
  241. data/client/lib/fastcomments-client/models/add_page_api_response.rb +264 -0
  242. data/client/lib/fastcomments-client/models/add_sso_user_api_response.rb +264 -0
  243. data/client/lib/fastcomments-client/models/aggregate_question_results200_response.rb +104 -0
  244. data/client/lib/fastcomments-client/models/aggregate_question_results_response.rb +285 -0
  245. data/client/lib/fastcomments-client/models/aggregate_time_bucket.rb +41 -0
  246. data/client/lib/fastcomments-client/models/aggregation_item.rb +223 -0
  247. data/client/lib/fastcomments-client/models/aggregation_op_type.rb +45 -0
  248. data/client/lib/fastcomments-client/models/aggregation_operation.rb +306 -0
  249. data/client/lib/fastcomments-client/models/aggregation_request.rb +297 -0
  250. data/client/lib/fastcomments-client/models/aggregation_request_sort.rb +287 -0
  251. data/client/lib/fastcomments-client/models/aggregation_response.rb +297 -0
  252. data/client/lib/fastcomments-client/models/aggregation_response_stats.rb +263 -0
  253. data/client/lib/fastcomments-client/models/aggregation_value.rb +262 -0
  254. data/client/lib/fastcomments-client/models/api_audit_log.rb +412 -0
  255. data/client/lib/fastcomments-client/models/api_comment.rb +888 -0
  256. data/client/lib/fastcomments-client/models/api_comment_base.rb +881 -0
  257. data/client/lib/fastcomments-client/models/api_create_user_badge_response.rb +285 -0
  258. data/client/lib/fastcomments-client/models/api_empty_response.rb +259 -0
  259. data/client/lib/fastcomments-client/models/api_empty_success_response.rb +259 -0
  260. data/client/lib/fastcomments-client/models/api_error.rb +356 -0
  261. data/client/lib/fastcomments-client/models/api_get_comment_response.rb +285 -0
  262. data/client/lib/fastcomments-client/models/api_get_comments_response.rb +287 -0
  263. data/client/lib/fastcomments-client/models/api_get_user_badge_progress_list_response.rb +287 -0
  264. data/client/lib/fastcomments-client/models/api_get_user_badge_progress_response.rb +285 -0
  265. data/client/lib/fastcomments-client/models/api_get_user_badge_response.rb +285 -0
  266. data/client/lib/fastcomments-client/models/api_get_user_badges_response.rb +287 -0
  267. data/client/lib/fastcomments-client/models/api_page.rb +396 -0
  268. data/client/lib/fastcomments-client/models/api_status.rb +40 -0
  269. data/client/lib/fastcomments-client/models/api_user_subscription.rb +325 -0
  270. data/client/lib/fastcomments-client/models/apisso_user.rb +597 -0
  271. data/client/lib/fastcomments-client/models/block_from_comment_params.rb +222 -0
  272. data/client/lib/fastcomments-client/models/block_from_comment_public200_response.rb +104 -0
  273. data/client/lib/fastcomments-client/models/block_success.rb +288 -0
  274. data/client/lib/fastcomments-client/models/bulk_aggregate_question_item.rb +306 -0
  275. data/client/lib/fastcomments-client/models/bulk_aggregate_question_results200_response.rb +104 -0
  276. data/client/lib/fastcomments-client/models/bulk_aggregate_question_results_request.rb +239 -0
  277. data/client/lib/fastcomments-client/models/bulk_aggregate_question_results_response.rb +288 -0
  278. data/client/lib/fastcomments-client/models/change_comment_pin_status_response.rb +288 -0
  279. data/client/lib/fastcomments-client/models/check_blocked_comments_response.rb +288 -0
  280. data/client/lib/fastcomments-client/models/checked_comments_for_blocked200_response.rb +104 -0
  281. data/client/lib/fastcomments-client/models/combine_comments_with_question_results200_response.rb +104 -0
  282. data/client/lib/fastcomments-client/models/combine_question_results_with_comments_response.rb +285 -0
  283. data/client/lib/fastcomments-client/models/comment_data.rb +511 -0
  284. data/client/lib/fastcomments-client/models/comment_html_rendering_mode.rb +40 -0
  285. data/client/lib/fastcomments-client/models/comment_log_data.rb +642 -0
  286. data/client/lib/fastcomments-client/models/comment_log_entry.rb +294 -0
  287. data/client/lib/fastcomments-client/models/comment_log_type.rb +93 -0
  288. data/client/lib/fastcomments-client/models/comment_question_results_rendering_type.rb +41 -0
  289. data/client/lib/fastcomments-client/models/comment_questions_required.rb +40 -0
  290. data/client/lib/fastcomments-client/models/comment_text_update_request.rb +259 -0
  291. data/client/lib/fastcomments-client/models/comment_thread_deletion_mode.rb +42 -0
  292. data/client/lib/fastcomments-client/models/comment_user_badge_info.rb +349 -0
  293. data/client/lib/fastcomments-client/models/comment_user_hash_tag_info.rb +284 -0
  294. data/client/lib/fastcomments-client/models/comment_user_mention_info.rb +324 -0
  295. data/client/lib/fastcomments-client/models/commenter_name_formats.rb +43 -0
  296. data/client/lib/fastcomments-client/models/create_api_page_data.rb +318 -0
  297. data/client/lib/fastcomments-client/models/create_api_user_subscription_data.rb +273 -0
  298. data/client/lib/fastcomments-client/models/create_apisso_user_data.rb +444 -0
  299. data/client/lib/fastcomments-client/models/create_comment_params.rb +619 -0
  300. data/client/lib/fastcomments-client/models/create_comment_public200_response.rb +104 -0
  301. data/client/lib/fastcomments-client/models/create_feed_post200_response.rb +104 -0
  302. data/client/lib/fastcomments-client/models/create_feed_post_params.rb +292 -0
  303. data/client/lib/fastcomments-client/models/create_feed_post_public200_response.rb +104 -0
  304. data/client/lib/fastcomments-client/models/create_feed_post_response.rb +285 -0
  305. data/client/lib/fastcomments-client/models/create_feed_posts_response.rb +285 -0
  306. data/client/lib/fastcomments-client/models/create_subscription_api_response.rb +264 -0
  307. data/client/lib/fastcomments-client/models/create_user_badge200_response.rb +104 -0
  308. data/client/lib/fastcomments-client/models/create_user_badge_params.rb +272 -0
  309. data/client/lib/fastcomments-client/models/custom_config_parameters.rb +906 -0
  310. data/client/lib/fastcomments-client/models/delete_comment200_response.rb +104 -0
  311. data/client/lib/fastcomments-client/models/delete_comment_action.rb +41 -0
  312. data/client/lib/fastcomments-client/models/delete_comment_public200_response.rb +104 -0
  313. data/client/lib/fastcomments-client/models/delete_comment_result.rb +285 -0
  314. data/client/lib/fastcomments-client/models/delete_comment_vote200_response.rb +104 -0
  315. data/client/lib/fastcomments-client/models/delete_domain_config200_response.rb +223 -0
  316. data/client/lib/fastcomments-client/models/delete_feed_post_public200_response.rb +104 -0
  317. data/client/lib/fastcomments-client/models/delete_feed_post_public200_response_any_of.rb +259 -0
  318. data/client/lib/fastcomments-client/models/delete_page_api_response.rb +255 -0
  319. data/client/lib/fastcomments-client/models/delete_sso_user_api_response.rb +264 -0
  320. data/client/lib/fastcomments-client/models/delete_subscription_api_response.rb +255 -0
  321. data/client/lib/fastcomments-client/models/deleted_comment_result_comment.rb +282 -0
  322. data/client/lib/fastcomments-client/models/event_log_entry.rb +367 -0
  323. data/client/lib/fastcomments-client/models/f_comment.rb +1054 -0
  324. data/client/lib/fastcomments-client/models/f_comment_meta.rb +229 -0
  325. data/client/lib/fastcomments-client/models/feed_post.rb +420 -0
  326. data/client/lib/fastcomments-client/models/feed_post_link.rb +247 -0
  327. data/client/lib/fastcomments-client/models/feed_post_media_item.rb +257 -0
  328. data/client/lib/fastcomments-client/models/feed_post_media_item_asset.rb +289 -0
  329. data/client/lib/fastcomments-client/models/feed_post_stats.rb +231 -0
  330. data/client/lib/fastcomments-client/models/feed_posts_stats_response.rb +287 -0
  331. data/client/lib/fastcomments-client/models/find_comments_by_range_item.rb +249 -0
  332. data/client/lib/fastcomments-client/models/find_comments_by_range_response.rb +265 -0
  333. data/client/lib/fastcomments-client/models/flag_comment200_response.rb +104 -0
  334. data/client/lib/fastcomments-client/models/flag_comment_public200_response.rb +104 -0
  335. data/client/lib/fastcomments-client/models/flag_comment_response.rb +295 -0
  336. data/client/lib/fastcomments-client/models/get_audit_logs200_response.rb +104 -0
  337. data/client/lib/fastcomments-client/models/get_audit_logs_response.rb +287 -0
  338. data/client/lib/fastcomments-client/models/get_comment200_response.rb +104 -0
  339. data/client/lib/fastcomments-client/models/get_comment_text200_response.rb +104 -0
  340. data/client/lib/fastcomments-client/models/get_comment_vote_user_names200_response.rb +104 -0
  341. data/client/lib/fastcomments-client/models/get_comment_vote_user_names_success_response.rb +313 -0
  342. data/client/lib/fastcomments-client/models/get_comments200_response.rb +104 -0
  343. data/client/lib/fastcomments-client/models/get_comments_public200_response.rb +104 -0
  344. data/client/lib/fastcomments-client/models/get_comments_response_public_comment.rb +487 -0
  345. data/client/lib/fastcomments-client/models/get_comments_response_with_presence_public_comment.rb +522 -0
  346. data/client/lib/fastcomments-client/models/get_domain_config200_response.rb +104 -0
  347. data/client/lib/fastcomments-client/models/get_domain_configs200_response.rb +104 -0
  348. data/client/lib/fastcomments-client/models/get_domain_configs200_response_any_of.rb +235 -0
  349. data/client/lib/fastcomments-client/models/get_domain_configs200_response_any_of1.rb +275 -0
  350. data/client/lib/fastcomments-client/models/get_event_log200_response.rb +104 -0
  351. data/client/lib/fastcomments-client/models/get_event_log_response.rb +287 -0
  352. data/client/lib/fastcomments-client/models/get_feed_posts200_response.rb +104 -0
  353. data/client/lib/fastcomments-client/models/get_feed_posts_public200_response.rb +104 -0
  354. data/client/lib/fastcomments-client/models/get_feed_posts_response.rb +287 -0
  355. data/client/lib/fastcomments-client/models/get_feed_posts_stats200_response.rb +104 -0
  356. data/client/lib/fastcomments-client/models/get_my_notifications_response.rb +351 -0
  357. data/client/lib/fastcomments-client/models/get_page_by_urlid_api_response.rb +264 -0
  358. data/client/lib/fastcomments-client/models/get_pages_api_response.rb +266 -0
  359. data/client/lib/fastcomments-client/models/get_public_feed_posts_response.rb +297 -0
  360. data/client/lib/fastcomments-client/models/get_sso_user_by_email_api_response.rb +264 -0
  361. data/client/lib/fastcomments-client/models/get_sso_user_by_id_api_response.rb +264 -0
  362. data/client/lib/fastcomments-client/models/get_sso_users200_response.rb +265 -0
  363. data/client/lib/fastcomments-client/models/get_subscriptions_api_response.rb +266 -0
  364. data/client/lib/fastcomments-client/models/get_user_badge200_response.rb +104 -0
  365. data/client/lib/fastcomments-client/models/get_user_badge_progress_by_id200_response.rb +104 -0
  366. data/client/lib/fastcomments-client/models/get_user_badge_progress_list200_response.rb +104 -0
  367. data/client/lib/fastcomments-client/models/get_user_badges200_response.rb +104 -0
  368. data/client/lib/fastcomments-client/models/get_user_notification_count200_response.rb +104 -0
  369. data/client/lib/fastcomments-client/models/get_user_notification_count_response.rb +285 -0
  370. data/client/lib/fastcomments-client/models/get_user_notifications200_response.rb +104 -0
  371. data/client/lib/fastcomments-client/models/get_user_presence_statuses200_response.rb +104 -0
  372. data/client/lib/fastcomments-client/models/get_user_presence_statuses_response.rb +288 -0
  373. data/client/lib/fastcomments-client/models/get_user_reacts_public200_response.rb +104 -0
  374. data/client/lib/fastcomments-client/models/gif_rating.rb +42 -0
  375. data/client/lib/fastcomments-client/models/header_state.rb +365 -0
  376. data/client/lib/fastcomments-client/models/ignored_response.rb +287 -0
  377. data/client/lib/fastcomments-client/models/image_content_profanity_level.rb +42 -0
  378. data/client/lib/fastcomments-client/models/live_event.rb +402 -0
  379. data/client/lib/fastcomments-client/models/live_event_extra_info.rb +223 -0
  380. data/client/lib/fastcomments-client/models/live_event_type.rb +55 -0
  381. data/client/lib/fastcomments-client/models/lock_comment200_response.rb +104 -0
  382. data/client/lib/fastcomments-client/models/media_asset.rb +289 -0
  383. data/client/lib/fastcomments-client/models/meta_item.rb +265 -0
  384. data/client/lib/fastcomments-client/models/notification_and_count.rb +285 -0
  385. data/client/lib/fastcomments-client/models/notification_object_type.rb +41 -0
  386. data/client/lib/fastcomments-client/models/notification_type.rb +51 -0
  387. data/client/lib/fastcomments-client/models/patch_domain_config_params.rb +277 -0
  388. data/client/lib/fastcomments-client/models/patch_page_api_response.rb +264 -0
  389. data/client/lib/fastcomments-client/models/patch_sso_user_api_response.rb +264 -0
  390. data/client/lib/fastcomments-client/models/pin_comment200_response.rb +104 -0
  391. data/client/lib/fastcomments-client/models/pub_sub_comment.rb +803 -0
  392. data/client/lib/fastcomments-client/models/pub_sub_comment_base.rb +752 -0
  393. data/client/lib/fastcomments-client/models/pub_sub_vote.rb +415 -0
  394. data/client/lib/fastcomments-client/models/public_api_delete_comment_response.rb +294 -0
  395. data/client/lib/fastcomments-client/models/public_api_get_comment_text_response.rb +311 -0
  396. data/client/lib/fastcomments-client/models/public_api_set_comment_text_response.rb +285 -0
  397. data/client/lib/fastcomments-client/models/public_block_from_comment_params.rb +226 -0
  398. data/client/lib/fastcomments-client/models/public_comment.rb +654 -0
  399. data/client/lib/fastcomments-client/models/public_comment_base.rb +552 -0
  400. data/client/lib/fastcomments-client/models/public_feed_posts_response.rb +343 -0
  401. data/client/lib/fastcomments-client/models/put_sso_user_api_response.rb +265 -0
  402. data/client/lib/fastcomments-client/models/query_predicate.rb +313 -0
  403. data/client/lib/fastcomments-client/models/query_predicate_value.rb +105 -0
  404. data/client/lib/fastcomments-client/models/question_datum.rb +266 -0
  405. data/client/lib/fastcomments-client/models/question_rendering_type.rb +40 -0
  406. data/client/lib/fastcomments-client/models/question_result.rb +467 -0
  407. data/client/lib/fastcomments-client/models/question_result_aggregation_overall.rb +307 -0
  408. data/client/lib/fastcomments-client/models/question_sub_question_visibility.rb +40 -0
  409. data/client/lib/fastcomments-client/models/question_when_save.rb +40 -0
  410. data/client/lib/fastcomments-client/models/react_body_params.rb +220 -0
  411. data/client/lib/fastcomments-client/models/react_feed_post_public200_response.rb +104 -0
  412. data/client/lib/fastcomments-client/models/react_feed_post_response.rb +311 -0
  413. data/client/lib/fastcomments-client/models/record_string_before_string_or_null_after_string_or_null_value.rb +263 -0
  414. data/client/lib/fastcomments-client/models/record_string_string_or_number_value.rb +104 -0
  415. data/client/lib/fastcomments-client/models/renderable_user_notification.rb +603 -0
  416. data/client/lib/fastcomments-client/models/repeat_comment_check_ignored_reason.rb +45 -0
  417. data/client/lib/fastcomments-client/models/repeat_comment_handling_action.rb +41 -0
  418. data/client/lib/fastcomments-client/models/reset_user_notifications200_response.rb +104 -0
  419. data/client/lib/fastcomments-client/models/reset_user_notifications_response.rb +280 -0
  420. data/client/lib/fastcomments-client/models/save_comment200_response.rb +104 -0
  421. data/client/lib/fastcomments-client/models/save_comment_response.rb +309 -0
  422. data/client/lib/fastcomments-client/models/save_comment_response_optimized.rb +309 -0
  423. data/client/lib/fastcomments-client/models/save_comments_response_with_presence.rb +325 -0
  424. data/client/lib/fastcomments-client/models/search_users200_response.rb +104 -0
  425. data/client/lib/fastcomments-client/models/search_users_response.rb +287 -0
  426. data/client/lib/fastcomments-client/models/set_comment_text200_response.rb +104 -0
  427. data/client/lib/fastcomments-client/models/set_comment_text_result.rb +263 -0
  428. data/client/lib/fastcomments-client/models/size_preset.rb +40 -0
  429. data/client/lib/fastcomments-client/models/sort_directions.rb +41 -0
  430. data/client/lib/fastcomments-client/models/sortdir.rb +40 -0
  431. data/client/lib/fastcomments-client/models/spam_rule.rb +260 -0
  432. data/client/lib/fastcomments-client/models/sso_security_level.rb +40 -0
  433. data/client/lib/fastcomments-client/models/un_block_comment_public200_response.rb +104 -0
  434. data/client/lib/fastcomments-client/models/un_block_from_comment_params.rb +222 -0
  435. data/client/lib/fastcomments-client/models/unblock_success.rb +288 -0
  436. data/client/lib/fastcomments-client/models/updatable_comment_params.rb +587 -0
  437. data/client/lib/fastcomments-client/models/update_api_page_data.rb +258 -0
  438. data/client/lib/fastcomments-client/models/update_apisso_user_data.rb +393 -0
  439. data/client/lib/fastcomments-client/models/update_domain_config_params.rb +294 -0
  440. data/client/lib/fastcomments-client/models/update_feed_post_params.rb +274 -0
  441. data/client/lib/fastcomments-client/models/update_user_badge200_response.rb +104 -0
  442. data/client/lib/fastcomments-client/models/update_user_badge_params.rb +220 -0
  443. data/client/lib/fastcomments-client/models/update_user_notification_status200_response.rb +105 -0
  444. data/client/lib/fastcomments-client/models/upload_image_response.rb +297 -0
  445. data/client/lib/fastcomments-client/models/user_badge.rb +582 -0
  446. data/client/lib/fastcomments-client/models/user_badge_progress.rb +388 -0
  447. data/client/lib/fastcomments-client/models/user_notification.rb +667 -0
  448. data/client/lib/fastcomments-client/models/user_notification_write_response.rb +311 -0
  449. data/client/lib/fastcomments-client/models/user_presence_data.rb +238 -0
  450. data/client/lib/fastcomments-client/models/user_reacts_response.rb +287 -0
  451. data/client/lib/fastcomments-client/models/user_search_result.rb +332 -0
  452. data/client/lib/fastcomments-client/models/user_session_info.rb +335 -0
  453. data/client/lib/fastcomments-client/models/vote_body_params.rb +297 -0
  454. data/client/lib/fastcomments-client/models/vote_comment200_response.rb +104 -0
  455. data/client/lib/fastcomments-client/models/vote_delete_response.rb +268 -0
  456. data/client/lib/fastcomments-client/models/vote_response.rb +273 -0
  457. data/client/lib/fastcomments-client/models/vote_response_status.rb +104 -0
  458. data/client/lib/fastcomments-client/models/vote_response_user.rb +221 -0
  459. data/client/lib/fastcomments-client/models/vote_style.rb +40 -0
  460. data/client/lib/fastcomments-client/version.rb +15 -0
  461. data/client/lib/fastcomments-client.rb +263 -0
  462. data/client/spec/api/default_api_spec.rb +633 -0
  463. data/client/spec/api/public_api_spec.rb +545 -0
  464. data/client/spec/models/add_domain_config200_response_any_of_spec.rb +42 -0
  465. data/client/spec/models/add_domain_config200_response_spec.rb +21 -0
  466. data/client/spec/models/add_domain_config_params_spec.rb +72 -0
  467. data/client/spec/models/add_page_api_response_spec.rb +54 -0
  468. data/client/spec/models/add_sso_user_api_response_spec.rb +54 -0
  469. data/client/spec/models/aggregate_question_results200_response_spec.rb +21 -0
  470. data/client/spec/models/aggregate_question_results_response_spec.rb +42 -0
  471. data/client/spec/models/aggregate_time_bucket_spec.rb +30 -0
  472. data/client/spec/models/aggregation_item_spec.rb +36 -0
  473. data/client/spec/models/aggregation_op_type_spec.rb +30 -0
  474. data/client/spec/models/aggregation_operation_spec.rb +54 -0
  475. data/client/spec/models/aggregation_request_sort_spec.rb +46 -0
  476. data/client/spec/models/aggregation_request_spec.rb +60 -0
  477. data/client/spec/models/aggregation_response_spec.rb +48 -0
  478. data/client/spec/models/aggregation_response_stats_spec.rb +42 -0
  479. data/client/spec/models/aggregation_value_spec.rb +60 -0
  480. data/client/spec/models/api_audit_log_spec.rb +110 -0
  481. data/client/spec/models/api_comment_base_spec.rb +348 -0
  482. data/client/spec/models/api_comment_spec.rb +348 -0
  483. data/client/spec/models/api_create_user_badge_response_spec.rb +42 -0
  484. data/client/spec/models/api_empty_response_spec.rb +36 -0
  485. data/client/spec/models/api_empty_success_response_spec.rb +36 -0
  486. data/client/spec/models/api_error_spec.rb +78 -0
  487. data/client/spec/models/api_get_comment_response_spec.rb +42 -0
  488. data/client/spec/models/api_get_comments_response_spec.rb +42 -0
  489. data/client/spec/models/api_get_user_badge_progress_list_response_spec.rb +42 -0
  490. data/client/spec/models/api_get_user_badge_progress_response_spec.rb +42 -0
  491. data/client/spec/models/api_get_user_badge_response_spec.rb +42 -0
  492. data/client/spec/models/api_get_user_badges_response_spec.rb +42 -0
  493. data/client/spec/models/api_page_spec.rb +84 -0
  494. data/client/spec/models/api_status_spec.rb +30 -0
  495. data/client/spec/models/api_user_subscription_spec.rb +72 -0
  496. data/client/spec/models/apisso_user_spec.rb +150 -0
  497. data/client/spec/models/block_from_comment_params_spec.rb +36 -0
  498. data/client/spec/models/block_from_comment_public200_response_spec.rb +21 -0
  499. data/client/spec/models/block_success_spec.rb +42 -0
  500. data/client/spec/models/bulk_aggregate_question_item_spec.rb +66 -0
  501. data/client/spec/models/bulk_aggregate_question_results200_response_spec.rb +21 -0
  502. data/client/spec/models/bulk_aggregate_question_results_request_spec.rb +36 -0
  503. data/client/spec/models/bulk_aggregate_question_results_response_spec.rb +42 -0
  504. data/client/spec/models/change_comment_pin_status_response_spec.rb +42 -0
  505. data/client/spec/models/check_blocked_comments_response_spec.rb +42 -0
  506. data/client/spec/models/checked_comments_for_blocked200_response_spec.rb +21 -0
  507. data/client/spec/models/combine_comments_with_question_results200_response_spec.rb +21 -0
  508. data/client/spec/models/combine_question_results_with_comments_response_spec.rb +42 -0
  509. data/client/spec/models/comment_data_spec.rb +174 -0
  510. data/client/spec/models/comment_html_rendering_mode_spec.rb +30 -0
  511. data/client/spec/models/comment_log_data_spec.rb +292 -0
  512. data/client/spec/models/comment_log_entry_spec.rb +48 -0
  513. data/client/spec/models/comment_log_type_spec.rb +30 -0
  514. data/client/spec/models/comment_question_results_rendering_type_spec.rb +30 -0
  515. data/client/spec/models/comment_questions_required_spec.rb +30 -0
  516. data/client/spec/models/comment_text_update_request_spec.rb +48 -0
  517. data/client/spec/models/comment_thread_deletion_mode_spec.rb +30 -0
  518. data/client/spec/models/comment_user_badge_info_spec.rb +84 -0
  519. data/client/spec/models/comment_user_hash_tag_info_spec.rb +54 -0
  520. data/client/spec/models/comment_user_mention_info_spec.rb +64 -0
  521. data/client/spec/models/commenter_name_formats_spec.rb +30 -0
  522. data/client/spec/models/create_api_page_data_spec.rb +66 -0
  523. data/client/spec/models/create_api_user_subscription_data_spec.rb +60 -0
  524. data/client/spec/models/create_apisso_user_data_spec.rb +150 -0
  525. data/client/spec/models/create_comment_params_spec.rb +234 -0
  526. data/client/spec/models/create_comment_public200_response_spec.rb +21 -0
  527. data/client/spec/models/create_feed_post200_response_spec.rb +21 -0
  528. data/client/spec/models/create_feed_post_params_spec.rb +78 -0
  529. data/client/spec/models/create_feed_post_public200_response_spec.rb +21 -0
  530. data/client/spec/models/create_feed_post_response_spec.rb +42 -0
  531. data/client/spec/models/create_feed_posts_response_spec.rb +42 -0
  532. data/client/spec/models/create_subscription_api_response_spec.rb +54 -0
  533. data/client/spec/models/create_user_badge200_response_spec.rb +21 -0
  534. data/client/spec/models/create_user_badge_params_spec.rb +48 -0
  535. data/client/spec/models/custom_config_parameters_spec.rb +462 -0
  536. data/client/spec/models/delete_comment200_response_spec.rb +21 -0
  537. data/client/spec/models/delete_comment_action_spec.rb +30 -0
  538. data/client/spec/models/delete_comment_public200_response_spec.rb +21 -0
  539. data/client/spec/models/delete_comment_result_spec.rb +42 -0
  540. data/client/spec/models/delete_comment_vote200_response_spec.rb +21 -0
  541. data/client/spec/models/delete_domain_config200_response_spec.rb +36 -0
  542. data/client/spec/models/delete_feed_post_public200_response_any_of_spec.rb +36 -0
  543. data/client/spec/models/delete_feed_post_public200_response_spec.rb +21 -0
  544. data/client/spec/models/delete_page_api_response_spec.rb +48 -0
  545. data/client/spec/models/delete_sso_user_api_response_spec.rb +54 -0
  546. data/client/spec/models/delete_subscription_api_response_spec.rb +48 -0
  547. data/client/spec/models/deleted_comment_result_comment_spec.rb +54 -0
  548. data/client/spec/models/event_log_entry_spec.rb +66 -0
  549. data/client/spec/models/f_comment_meta_spec.rb +42 -0
  550. data/client/spec/models/f_comment_spec.rb +456 -0
  551. data/client/spec/models/feed_post_link_spec.rb +54 -0
  552. data/client/spec/models/feed_post_media_item_asset_spec.rb +48 -0
  553. data/client/spec/models/feed_post_media_item_spec.rb +48 -0
  554. data/client/spec/models/feed_post_spec.rb +126 -0
  555. data/client/spec/models/feed_post_stats_spec.rb +42 -0
  556. data/client/spec/models/feed_posts_stats_response_spec.rb +42 -0
  557. data/client/spec/models/find_comments_by_range_item_spec.rb +42 -0
  558. data/client/spec/models/find_comments_by_range_response_spec.rb +42 -0
  559. data/client/spec/models/flag_comment200_response_spec.rb +21 -0
  560. data/client/spec/models/flag_comment_public200_response_spec.rb +21 -0
  561. data/client/spec/models/flag_comment_response_spec.rb +60 -0
  562. data/client/spec/models/get_audit_logs200_response_spec.rb +21 -0
  563. data/client/spec/models/get_audit_logs_response_spec.rb +42 -0
  564. data/client/spec/models/get_comment200_response_spec.rb +21 -0
  565. data/client/spec/models/get_comment_text200_response_spec.rb +21 -0
  566. data/client/spec/models/get_comment_vote_user_names200_response_spec.rb +21 -0
  567. data/client/spec/models/get_comment_vote_user_names_success_response_spec.rb +48 -0
  568. data/client/spec/models/get_comments200_response_spec.rb +21 -0
  569. data/client/spec/models/get_comments_public200_response_spec.rb +21 -0
  570. data/client/spec/models/get_comments_response_public_comment_spec.rb +174 -0
  571. data/client/spec/models/get_comments_response_with_presence_public_comment_spec.rb +192 -0
  572. data/client/spec/models/get_domain_config200_response_spec.rb +21 -0
  573. data/client/spec/models/get_domain_configs200_response_any_of1_spec.rb +48 -0
  574. data/client/spec/models/get_domain_configs200_response_any_of_spec.rb +42 -0
  575. data/client/spec/models/get_domain_configs200_response_spec.rb +21 -0
  576. data/client/spec/models/get_event_log200_response_spec.rb +21 -0
  577. data/client/spec/models/get_event_log_response_spec.rb +42 -0
  578. data/client/spec/models/get_feed_posts200_response_spec.rb +21 -0
  579. data/client/spec/models/get_feed_posts_public200_response_spec.rb +21 -0
  580. data/client/spec/models/get_feed_posts_response_spec.rb +42 -0
  581. data/client/spec/models/get_feed_posts_stats200_response_spec.rb +21 -0
  582. data/client/spec/models/get_my_notifications_response_spec.rb +60 -0
  583. data/client/spec/models/get_page_by_urlid_api_response_spec.rb +54 -0
  584. data/client/spec/models/get_pages_api_response_spec.rb +54 -0
  585. data/client/spec/models/get_public_feed_posts_response_spec.rb +48 -0
  586. data/client/spec/models/get_sso_user_by_email_api_response_spec.rb +54 -0
  587. data/client/spec/models/get_sso_user_by_id_api_response_spec.rb +54 -0
  588. data/client/spec/models/get_sso_users200_response_spec.rb +42 -0
  589. data/client/spec/models/get_subscriptions_api_response_spec.rb +54 -0
  590. data/client/spec/models/get_user_badge200_response_spec.rb +21 -0
  591. data/client/spec/models/get_user_badge_progress_by_id200_response_spec.rb +21 -0
  592. data/client/spec/models/get_user_badge_progress_list200_response_spec.rb +21 -0
  593. data/client/spec/models/get_user_badges200_response_spec.rb +21 -0
  594. data/client/spec/models/get_user_notification_count200_response_spec.rb +21 -0
  595. data/client/spec/models/get_user_notification_count_response_spec.rb +42 -0
  596. data/client/spec/models/get_user_notifications200_response_spec.rb +21 -0
  597. data/client/spec/models/get_user_presence_statuses200_response_spec.rb +21 -0
  598. data/client/spec/models/get_user_presence_statuses_response_spec.rb +42 -0
  599. data/client/spec/models/get_user_reacts_public200_response_spec.rb +21 -0
  600. data/client/spec/models/gif_rating_spec.rb +30 -0
  601. data/client/spec/models/header_state_spec.rb +60 -0
  602. data/client/spec/models/ignored_response_spec.rb +46 -0
  603. data/client/spec/models/image_content_profanity_level_spec.rb +30 -0
  604. data/client/spec/models/live_event_extra_info_spec.rb +36 -0
  605. data/client/spec/models/live_event_spec.rb +126 -0
  606. data/client/spec/models/live_event_type_spec.rb +30 -0
  607. data/client/spec/models/lock_comment200_response_spec.rb +21 -0
  608. data/client/spec/models/media_asset_spec.rb +48 -0
  609. data/client/spec/models/meta_item_spec.rb +42 -0
  610. data/client/spec/models/notification_and_count_spec.rb +42 -0
  611. data/client/spec/models/notification_object_type_spec.rb +30 -0
  612. data/client/spec/models/notification_type_spec.rb +30 -0
  613. data/client/spec/models/patch_domain_config_params_spec.rb +72 -0
  614. data/client/spec/models/patch_page_api_response_spec.rb +54 -0
  615. data/client/spec/models/patch_sso_user_api_response_spec.rb +54 -0
  616. data/client/spec/models/pin_comment200_response_spec.rb +21 -0
  617. data/client/spec/models/pub_sub_comment_base_spec.rb +270 -0
  618. data/client/spec/models/pub_sub_comment_spec.rb +288 -0
  619. data/client/spec/models/pub_sub_vote_spec.rb +84 -0
  620. data/client/spec/models/public_api_delete_comment_response_spec.rb +48 -0
  621. data/client/spec/models/public_api_get_comment_text_response_spec.rb +48 -0
  622. data/client/spec/models/public_api_set_comment_text_response_spec.rb +42 -0
  623. data/client/spec/models/public_block_from_comment_params_spec.rb +36 -0
  624. data/client/spec/models/public_comment_base_spec.rb +198 -0
  625. data/client/spec/models/public_comment_spec.rb +258 -0
  626. data/client/spec/models/public_feed_posts_response_spec.rb +72 -0
  627. data/client/spec/models/put_sso_user_api_response_spec.rb +54 -0
  628. data/client/spec/models/query_predicate_spec.rb +52 -0
  629. data/client/spec/models/query_predicate_value_spec.rb +21 -0
  630. data/client/spec/models/question_datum_spec.rb +42 -0
  631. data/client/spec/models/question_rendering_type_spec.rb +30 -0
  632. data/client/spec/models/question_result_aggregation_overall_spec.rb +66 -0
  633. data/client/spec/models/question_result_spec.rb +96 -0
  634. data/client/spec/models/question_sub_question_visibility_spec.rb +30 -0
  635. data/client/spec/models/question_when_save_spec.rb +30 -0
  636. data/client/spec/models/react_body_params_spec.rb +36 -0
  637. data/client/spec/models/react_feed_post_public200_response_spec.rb +21 -0
  638. data/client/spec/models/react_feed_post_response_spec.rb +48 -0
  639. data/client/spec/models/record_string_before_string_or_null_after_string_or_null_value_spec.rb +42 -0
  640. data/client/spec/models/record_string_string_or_number_value_spec.rb +21 -0
  641. data/client/spec/models/renderable_user_notification_spec.rb +156 -0
  642. data/client/spec/models/repeat_comment_check_ignored_reason_spec.rb +30 -0
  643. data/client/spec/models/repeat_comment_handling_action_spec.rb +30 -0
  644. data/client/spec/models/reset_user_notifications200_response_spec.rb +21 -0
  645. data/client/spec/models/reset_user_notifications_response_spec.rb +46 -0
  646. data/client/spec/models/save_comment200_response_spec.rb +21 -0
  647. data/client/spec/models/save_comment_response_optimized_spec.rb +54 -0
  648. data/client/spec/models/save_comment_response_spec.rb +54 -0
  649. data/client/spec/models/save_comments_response_with_presence_spec.rb +60 -0
  650. data/client/spec/models/search_users200_response_spec.rb +21 -0
  651. data/client/spec/models/search_users_response_spec.rb +42 -0
  652. data/client/spec/models/set_comment_text200_response_spec.rb +21 -0
  653. data/client/spec/models/set_comment_text_result_spec.rb +42 -0
  654. data/client/spec/models/size_preset_spec.rb +30 -0
  655. data/client/spec/models/sort_directions_spec.rb +30 -0
  656. data/client/spec/models/sortdir_spec.rb +30 -0
  657. data/client/spec/models/spam_rule_spec.rb +46 -0
  658. data/client/spec/models/sso_security_level_spec.rb +30 -0
  659. data/client/spec/models/un_block_comment_public200_response_spec.rb +21 -0
  660. data/client/spec/models/un_block_from_comment_params_spec.rb +36 -0
  661. data/client/spec/models/unblock_success_spec.rb +42 -0
  662. data/client/spec/models/updatable_comment_params_spec.rb +264 -0
  663. data/client/spec/models/update_api_page_data_spec.rb +60 -0
  664. data/client/spec/models/update_apisso_user_data_spec.rb +150 -0
  665. data/client/spec/models/update_domain_config_params_spec.rb +72 -0
  666. data/client/spec/models/update_feed_post_params_spec.rb +66 -0
  667. data/client/spec/models/update_user_badge200_response_spec.rb +21 -0
  668. data/client/spec/models/update_user_badge_params_spec.rb +36 -0
  669. data/client/spec/models/update_user_notification_status200_response_spec.rb +21 -0
  670. data/client/spec/models/upload_image_response_spec.rb +60 -0
  671. data/client/spec/models/user_badge_progress_spec.rb +78 -0
  672. data/client/spec/models/user_badge_spec.rb +138 -0
  673. data/client/spec/models/user_notification_spec.rb +174 -0
  674. data/client/spec/models/user_notification_write_response_spec.rb +48 -0
  675. data/client/spec/models/user_presence_data_spec.rb +48 -0
  676. data/client/spec/models/user_reacts_response_spec.rb +42 -0
  677. data/client/spec/models/user_search_result_spec.rb +64 -0
  678. data/client/spec/models/user_session_info_spec.rb +108 -0
  679. data/client/spec/models/vote_body_params_spec.rb +58 -0
  680. data/client/spec/models/vote_comment200_response_spec.rb +21 -0
  681. data/client/spec/models/vote_delete_response_spec.rb +42 -0
  682. data/client/spec/models/vote_response_spec.rb +60 -0
  683. data/client/spec/models/vote_response_status_spec.rb +21 -0
  684. data/client/spec/models/vote_response_user_spec.rb +36 -0
  685. data/client/spec/models/vote_style_spec.rb +30 -0
  686. data/client/spec/spec_helper.rb +111 -0
  687. data/lib/fastcomments/sso/fastcomments_sso.rb +81 -0
  688. data/lib/fastcomments/sso/helpers.rb +26 -0
  689. data/lib/fastcomments/sso/secure_sso_payload.rb +23 -0
  690. data/lib/fastcomments/sso/secure_sso_user_data.rb +31 -0
  691. data/lib/fastcomments/sso/simple_sso_user_data.rb +23 -0
  692. data/lib/fastcomments.rb +9 -0
  693. metadata +787 -0
@@ -0,0 +1,1054 @@
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 FComment
18
+ attr_accessor :_id
19
+
20
+ attr_accessor :tenant_id
21
+
22
+ attr_accessor :url_id
23
+
24
+ attr_accessor :url_id_raw
25
+
26
+ attr_accessor :url
27
+
28
+ attr_accessor :page_title
29
+
30
+ attr_accessor :user_id
31
+
32
+ attr_accessor :anon_user_id
33
+
34
+ attr_accessor :commenter_email
35
+
36
+ attr_accessor :commenter_name
37
+
38
+ attr_accessor :commenter_link
39
+
40
+ attr_accessor :comment
41
+
42
+ attr_accessor :comment_html
43
+
44
+ attr_accessor :parent_id
45
+
46
+ attr_accessor :date
47
+
48
+ attr_accessor :local_date_string
49
+
50
+ attr_accessor :local_date_hours
51
+
52
+ attr_accessor :votes
53
+
54
+ attr_accessor :votes_up
55
+
56
+ attr_accessor :votes_down
57
+
58
+ attr_accessor :expire_at
59
+
60
+ attr_accessor :verified
61
+
62
+ attr_accessor :verified_date
63
+
64
+ attr_accessor :verification_id
65
+
66
+ attr_accessor :notification_sent_for_parent
67
+
68
+ attr_accessor :notification_sent_for_parent_tenant
69
+
70
+ attr_accessor :reviewed
71
+
72
+ attr_accessor :imported
73
+
74
+ attr_accessor :external_id
75
+
76
+ attr_accessor :external_parent_id
77
+
78
+ attr_accessor :avatar_src
79
+
80
+ attr_accessor :is_spam
81
+
82
+ attr_accessor :perm_not_spam
83
+
84
+ attr_accessor :ai_determined_spam
85
+
86
+ attr_accessor :has_images
87
+
88
+ attr_accessor :page_number
89
+
90
+ attr_accessor :page_number_of
91
+
92
+ attr_accessor :page_number_nf
93
+
94
+ attr_accessor :has_links
95
+
96
+ attr_accessor :has_code
97
+
98
+ attr_accessor :approved
99
+
100
+ attr_accessor :locale
101
+
102
+ attr_accessor :is_deleted
103
+
104
+ attr_accessor :is_deleted_user
105
+
106
+ attr_accessor :is_banned_user
107
+
108
+ attr_accessor :is_by_admin
109
+
110
+ attr_accessor :is_by_moderator
111
+
112
+ attr_accessor :is_pinned
113
+
114
+ attr_accessor :is_locked
115
+
116
+ attr_accessor :flag_count
117
+
118
+ attr_accessor :rating
119
+
120
+ attr_accessor :display_label
121
+
122
+ attr_accessor :from_product_id
123
+
124
+ attr_accessor :meta
125
+
126
+ attr_accessor :ip_hash
127
+
128
+ attr_accessor :mentions
129
+
130
+ attr_accessor :hash_tags
131
+
132
+ attr_accessor :badges
133
+
134
+ attr_accessor :domain
135
+
136
+ attr_accessor :veteran_badge_processed
137
+
138
+ attr_accessor :moderation_group_ids
139
+
140
+ attr_accessor :did_process_badges
141
+
142
+ attr_accessor :from_offline_restore
143
+
144
+ attr_accessor :autoplay_job_id
145
+
146
+ attr_accessor :autoplay_delay_ms
147
+
148
+ attr_accessor :feedback_ids
149
+
150
+ attr_accessor :logs
151
+
152
+ attr_accessor :group_ids
153
+
154
+ attr_accessor :view_count
155
+
156
+ attr_accessor :requires_verification
157
+
158
+ attr_accessor :edit_key
159
+
160
+ # Attribute mapping from ruby-style variable name to JSON key.
161
+ def self.attribute_map
162
+ {
163
+ :'_id' => :'_id',
164
+ :'tenant_id' => :'tenantId',
165
+ :'url_id' => :'urlId',
166
+ :'url_id_raw' => :'urlIdRaw',
167
+ :'url' => :'url',
168
+ :'page_title' => :'pageTitle',
169
+ :'user_id' => :'userId',
170
+ :'anon_user_id' => :'anonUserId',
171
+ :'commenter_email' => :'commenterEmail',
172
+ :'commenter_name' => :'commenterName',
173
+ :'commenter_link' => :'commenterLink',
174
+ :'comment' => :'comment',
175
+ :'comment_html' => :'commentHTML',
176
+ :'parent_id' => :'parentId',
177
+ :'date' => :'date',
178
+ :'local_date_string' => :'localDateString',
179
+ :'local_date_hours' => :'localDateHours',
180
+ :'votes' => :'votes',
181
+ :'votes_up' => :'votesUp',
182
+ :'votes_down' => :'votesDown',
183
+ :'expire_at' => :'expireAt',
184
+ :'verified' => :'verified',
185
+ :'verified_date' => :'verifiedDate',
186
+ :'verification_id' => :'verificationId',
187
+ :'notification_sent_for_parent' => :'notificationSentForParent',
188
+ :'notification_sent_for_parent_tenant' => :'notificationSentForParentTenant',
189
+ :'reviewed' => :'reviewed',
190
+ :'imported' => :'imported',
191
+ :'external_id' => :'externalId',
192
+ :'external_parent_id' => :'externalParentId',
193
+ :'avatar_src' => :'avatarSrc',
194
+ :'is_spam' => :'isSpam',
195
+ :'perm_not_spam' => :'permNotSpam',
196
+ :'ai_determined_spam' => :'aiDeterminedSpam',
197
+ :'has_images' => :'hasImages',
198
+ :'page_number' => :'pageNumber',
199
+ :'page_number_of' => :'pageNumberOF',
200
+ :'page_number_nf' => :'pageNumberNF',
201
+ :'has_links' => :'hasLinks',
202
+ :'has_code' => :'hasCode',
203
+ :'approved' => :'approved',
204
+ :'locale' => :'locale',
205
+ :'is_deleted' => :'isDeleted',
206
+ :'is_deleted_user' => :'isDeletedUser',
207
+ :'is_banned_user' => :'isBannedUser',
208
+ :'is_by_admin' => :'isByAdmin',
209
+ :'is_by_moderator' => :'isByModerator',
210
+ :'is_pinned' => :'isPinned',
211
+ :'is_locked' => :'isLocked',
212
+ :'flag_count' => :'flagCount',
213
+ :'rating' => :'rating',
214
+ :'display_label' => :'displayLabel',
215
+ :'from_product_id' => :'fromProductId',
216
+ :'meta' => :'meta',
217
+ :'ip_hash' => :'ipHash',
218
+ :'mentions' => :'mentions',
219
+ :'hash_tags' => :'hashTags',
220
+ :'badges' => :'badges',
221
+ :'domain' => :'domain',
222
+ :'veteran_badge_processed' => :'veteranBadgeProcessed',
223
+ :'moderation_group_ids' => :'moderationGroupIds',
224
+ :'did_process_badges' => :'didProcessBadges',
225
+ :'from_offline_restore' => :'fromOfflineRestore',
226
+ :'autoplay_job_id' => :'autoplayJobId',
227
+ :'autoplay_delay_ms' => :'autoplayDelayMS',
228
+ :'feedback_ids' => :'feedbackIds',
229
+ :'logs' => :'logs',
230
+ :'group_ids' => :'groupIds',
231
+ :'view_count' => :'viewCount',
232
+ :'requires_verification' => :'requiresVerification',
233
+ :'edit_key' => :'editKey'
234
+ }
235
+ end
236
+
237
+ # Returns attribute mapping this model knows about
238
+ def self.acceptable_attribute_map
239
+ attribute_map
240
+ end
241
+
242
+ # Returns all the JSON keys this model knows about
243
+ def self.acceptable_attributes
244
+ acceptable_attribute_map.values
245
+ end
246
+
247
+ # Attribute type mapping.
248
+ def self.openapi_types
249
+ {
250
+ :'_id' => :'String',
251
+ :'tenant_id' => :'String',
252
+ :'url_id' => :'String',
253
+ :'url_id_raw' => :'String',
254
+ :'url' => :'String',
255
+ :'page_title' => :'String',
256
+ :'user_id' => :'String',
257
+ :'anon_user_id' => :'String',
258
+ :'commenter_email' => :'String',
259
+ :'commenter_name' => :'String',
260
+ :'commenter_link' => :'String',
261
+ :'comment' => :'String',
262
+ :'comment_html' => :'String',
263
+ :'parent_id' => :'String',
264
+ :'date' => :'Time',
265
+ :'local_date_string' => :'String',
266
+ :'local_date_hours' => :'Integer',
267
+ :'votes' => :'Integer',
268
+ :'votes_up' => :'Integer',
269
+ :'votes_down' => :'Integer',
270
+ :'expire_at' => :'Time',
271
+ :'verified' => :'Boolean',
272
+ :'verified_date' => :'Time',
273
+ :'verification_id' => :'String',
274
+ :'notification_sent_for_parent' => :'Boolean',
275
+ :'notification_sent_for_parent_tenant' => :'Boolean',
276
+ :'reviewed' => :'Boolean',
277
+ :'imported' => :'Boolean',
278
+ :'external_id' => :'String',
279
+ :'external_parent_id' => :'String',
280
+ :'avatar_src' => :'String',
281
+ :'is_spam' => :'Boolean',
282
+ :'perm_not_spam' => :'Boolean',
283
+ :'ai_determined_spam' => :'Boolean',
284
+ :'has_images' => :'Boolean',
285
+ :'page_number' => :'Integer',
286
+ :'page_number_of' => :'Integer',
287
+ :'page_number_nf' => :'Integer',
288
+ :'has_links' => :'Boolean',
289
+ :'has_code' => :'Boolean',
290
+ :'approved' => :'Boolean',
291
+ :'locale' => :'String',
292
+ :'is_deleted' => :'Boolean',
293
+ :'is_deleted_user' => :'Boolean',
294
+ :'is_banned_user' => :'Boolean',
295
+ :'is_by_admin' => :'Boolean',
296
+ :'is_by_moderator' => :'Boolean',
297
+ :'is_pinned' => :'Boolean',
298
+ :'is_locked' => :'Boolean',
299
+ :'flag_count' => :'Integer',
300
+ :'rating' => :'Float',
301
+ :'display_label' => :'String',
302
+ :'from_product_id' => :'Integer',
303
+ :'meta' => :'FCommentMeta',
304
+ :'ip_hash' => :'String',
305
+ :'mentions' => :'Array<CommentUserMentionInfo>',
306
+ :'hash_tags' => :'Array<CommentUserHashTagInfo>',
307
+ :'badges' => :'Array<CommentUserBadgeInfo>',
308
+ :'domain' => :'String',
309
+ :'veteran_badge_processed' => :'String',
310
+ :'moderation_group_ids' => :'Array<String>',
311
+ :'did_process_badges' => :'Boolean',
312
+ :'from_offline_restore' => :'Boolean',
313
+ :'autoplay_job_id' => :'String',
314
+ :'autoplay_delay_ms' => :'Integer',
315
+ :'feedback_ids' => :'Array<String>',
316
+ :'logs' => :'Array<CommentLogEntry>',
317
+ :'group_ids' => :'Array<String>',
318
+ :'view_count' => :'Integer',
319
+ :'requires_verification' => :'Boolean',
320
+ :'edit_key' => :'String'
321
+ }
322
+ end
323
+
324
+ # List of attributes with nullable: true
325
+ def self.openapi_nullable
326
+ Set.new([
327
+ :'page_title',
328
+ :'user_id',
329
+ :'anon_user_id',
330
+ :'commenter_email',
331
+ :'commenter_link',
332
+ :'parent_id',
333
+ :'date',
334
+ :'local_date_string',
335
+ :'local_date_hours',
336
+ :'votes',
337
+ :'votes_up',
338
+ :'votes_down',
339
+ :'expire_at',
340
+ :'verified_date',
341
+ :'verification_id',
342
+ :'external_parent_id',
343
+ :'avatar_src',
344
+ :'page_number',
345
+ :'page_number_of',
346
+ :'page_number_nf',
347
+ :'locale',
348
+ :'is_pinned',
349
+ :'is_locked',
350
+ :'flag_count',
351
+ :'rating',
352
+ :'display_label',
353
+ :'meta',
354
+ :'badges',
355
+ :'domain',
356
+ :'moderation_group_ids',
357
+ :'logs',
358
+ :'group_ids',
359
+ :'view_count',
360
+ ])
361
+ end
362
+
363
+ # Initializes the object
364
+ # @param [Hash] attributes Model attributes in the form of hash
365
+ def initialize(attributes = {})
366
+ if (!attributes.is_a?(Hash))
367
+ fail ArgumentError, "The input argument (attributes) must be a hash in `FastCommentsClient::FComment` initialize method"
368
+ end
369
+
370
+ # check to see if the attribute exists and convert string to symbol for hash key
371
+ acceptable_attribute_map = self.class.acceptable_attribute_map
372
+ attributes = attributes.each_with_object({}) { |(k, v), h|
373
+ if (!acceptable_attribute_map.key?(k.to_sym))
374
+ fail ArgumentError, "`#{k}` is not a valid attribute in `FastCommentsClient::FComment`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
375
+ end
376
+ h[k.to_sym] = v
377
+ }
378
+
379
+ if attributes.key?(:'_id')
380
+ self._id = attributes[:'_id']
381
+ else
382
+ self._id = nil
383
+ end
384
+
385
+ if attributes.key?(:'tenant_id')
386
+ self.tenant_id = attributes[:'tenant_id']
387
+ else
388
+ self.tenant_id = nil
389
+ end
390
+
391
+ if attributes.key?(:'url_id')
392
+ self.url_id = attributes[:'url_id']
393
+ else
394
+ self.url_id = nil
395
+ end
396
+
397
+ if attributes.key?(:'url_id_raw')
398
+ self.url_id_raw = attributes[:'url_id_raw']
399
+ end
400
+
401
+ if attributes.key?(:'url')
402
+ self.url = attributes[:'url']
403
+ else
404
+ self.url = nil
405
+ end
406
+
407
+ if attributes.key?(:'page_title')
408
+ self.page_title = attributes[:'page_title']
409
+ end
410
+
411
+ if attributes.key?(:'user_id')
412
+ self.user_id = attributes[:'user_id']
413
+ end
414
+
415
+ if attributes.key?(:'anon_user_id')
416
+ self.anon_user_id = attributes[:'anon_user_id']
417
+ end
418
+
419
+ if attributes.key?(:'commenter_email')
420
+ self.commenter_email = attributes[:'commenter_email']
421
+ end
422
+
423
+ if attributes.key?(:'commenter_name')
424
+ self.commenter_name = attributes[:'commenter_name']
425
+ else
426
+ self.commenter_name = nil
427
+ end
428
+
429
+ if attributes.key?(:'commenter_link')
430
+ self.commenter_link = attributes[:'commenter_link']
431
+ end
432
+
433
+ if attributes.key?(:'comment')
434
+ self.comment = attributes[:'comment']
435
+ else
436
+ self.comment = nil
437
+ end
438
+
439
+ if attributes.key?(:'comment_html')
440
+ self.comment_html = attributes[:'comment_html']
441
+ else
442
+ self.comment_html = nil
443
+ end
444
+
445
+ if attributes.key?(:'parent_id')
446
+ self.parent_id = attributes[:'parent_id']
447
+ end
448
+
449
+ if attributes.key?(:'date')
450
+ self.date = attributes[:'date']
451
+ else
452
+ self.date = nil
453
+ end
454
+
455
+ if attributes.key?(:'local_date_string')
456
+ self.local_date_string = attributes[:'local_date_string']
457
+ end
458
+
459
+ if attributes.key?(:'local_date_hours')
460
+ self.local_date_hours = attributes[:'local_date_hours']
461
+ end
462
+
463
+ if attributes.key?(:'votes')
464
+ self.votes = attributes[:'votes']
465
+ end
466
+
467
+ if attributes.key?(:'votes_up')
468
+ self.votes_up = attributes[:'votes_up']
469
+ end
470
+
471
+ if attributes.key?(:'votes_down')
472
+ self.votes_down = attributes[:'votes_down']
473
+ end
474
+
475
+ if attributes.key?(:'expire_at')
476
+ self.expire_at = attributes[:'expire_at']
477
+ end
478
+
479
+ if attributes.key?(:'verified')
480
+ self.verified = attributes[:'verified']
481
+ else
482
+ self.verified = nil
483
+ end
484
+
485
+ if attributes.key?(:'verified_date')
486
+ self.verified_date = attributes[:'verified_date']
487
+ end
488
+
489
+ if attributes.key?(:'verification_id')
490
+ self.verification_id = attributes[:'verification_id']
491
+ end
492
+
493
+ if attributes.key?(:'notification_sent_for_parent')
494
+ self.notification_sent_for_parent = attributes[:'notification_sent_for_parent']
495
+ end
496
+
497
+ if attributes.key?(:'notification_sent_for_parent_tenant')
498
+ self.notification_sent_for_parent_tenant = attributes[:'notification_sent_for_parent_tenant']
499
+ end
500
+
501
+ if attributes.key?(:'reviewed')
502
+ self.reviewed = attributes[:'reviewed']
503
+ end
504
+
505
+ if attributes.key?(:'imported')
506
+ self.imported = attributes[:'imported']
507
+ end
508
+
509
+ if attributes.key?(:'external_id')
510
+ self.external_id = attributes[:'external_id']
511
+ end
512
+
513
+ if attributes.key?(:'external_parent_id')
514
+ self.external_parent_id = attributes[:'external_parent_id']
515
+ end
516
+
517
+ if attributes.key?(:'avatar_src')
518
+ self.avatar_src = attributes[:'avatar_src']
519
+ end
520
+
521
+ if attributes.key?(:'is_spam')
522
+ self.is_spam = attributes[:'is_spam']
523
+ end
524
+
525
+ if attributes.key?(:'perm_not_spam')
526
+ self.perm_not_spam = attributes[:'perm_not_spam']
527
+ end
528
+
529
+ if attributes.key?(:'ai_determined_spam')
530
+ self.ai_determined_spam = attributes[:'ai_determined_spam']
531
+ end
532
+
533
+ if attributes.key?(:'has_images')
534
+ self.has_images = attributes[:'has_images']
535
+ end
536
+
537
+ if attributes.key?(:'page_number')
538
+ self.page_number = attributes[:'page_number']
539
+ end
540
+
541
+ if attributes.key?(:'page_number_of')
542
+ self.page_number_of = attributes[:'page_number_of']
543
+ end
544
+
545
+ if attributes.key?(:'page_number_nf')
546
+ self.page_number_nf = attributes[:'page_number_nf']
547
+ end
548
+
549
+ if attributes.key?(:'has_links')
550
+ self.has_links = attributes[:'has_links']
551
+ end
552
+
553
+ if attributes.key?(:'has_code')
554
+ self.has_code = attributes[:'has_code']
555
+ end
556
+
557
+ if attributes.key?(:'approved')
558
+ self.approved = attributes[:'approved']
559
+ else
560
+ self.approved = nil
561
+ end
562
+
563
+ if attributes.key?(:'locale')
564
+ self.locale = attributes[:'locale']
565
+ else
566
+ self.locale = nil
567
+ end
568
+
569
+ if attributes.key?(:'is_deleted')
570
+ self.is_deleted = attributes[:'is_deleted']
571
+ end
572
+
573
+ if attributes.key?(:'is_deleted_user')
574
+ self.is_deleted_user = attributes[:'is_deleted_user']
575
+ end
576
+
577
+ if attributes.key?(:'is_banned_user')
578
+ self.is_banned_user = attributes[:'is_banned_user']
579
+ end
580
+
581
+ if attributes.key?(:'is_by_admin')
582
+ self.is_by_admin = attributes[:'is_by_admin']
583
+ end
584
+
585
+ if attributes.key?(:'is_by_moderator')
586
+ self.is_by_moderator = attributes[:'is_by_moderator']
587
+ end
588
+
589
+ if attributes.key?(:'is_pinned')
590
+ self.is_pinned = attributes[:'is_pinned']
591
+ end
592
+
593
+ if attributes.key?(:'is_locked')
594
+ self.is_locked = attributes[:'is_locked']
595
+ end
596
+
597
+ if attributes.key?(:'flag_count')
598
+ self.flag_count = attributes[:'flag_count']
599
+ end
600
+
601
+ if attributes.key?(:'rating')
602
+ self.rating = attributes[:'rating']
603
+ end
604
+
605
+ if attributes.key?(:'display_label')
606
+ self.display_label = attributes[:'display_label']
607
+ end
608
+
609
+ if attributes.key?(:'from_product_id')
610
+ self.from_product_id = attributes[:'from_product_id']
611
+ end
612
+
613
+ if attributes.key?(:'meta')
614
+ self.meta = attributes[:'meta']
615
+ end
616
+
617
+ if attributes.key?(:'ip_hash')
618
+ self.ip_hash = attributes[:'ip_hash']
619
+ end
620
+
621
+ if attributes.key?(:'mentions')
622
+ if (value = attributes[:'mentions']).is_a?(Array)
623
+ self.mentions = value
624
+ end
625
+ end
626
+
627
+ if attributes.key?(:'hash_tags')
628
+ if (value = attributes[:'hash_tags']).is_a?(Array)
629
+ self.hash_tags = value
630
+ end
631
+ end
632
+
633
+ if attributes.key?(:'badges')
634
+ if (value = attributes[:'badges']).is_a?(Array)
635
+ self.badges = value
636
+ end
637
+ end
638
+
639
+ if attributes.key?(:'domain')
640
+ self.domain = attributes[:'domain']
641
+ end
642
+
643
+ if attributes.key?(:'veteran_badge_processed')
644
+ self.veteran_badge_processed = attributes[:'veteran_badge_processed']
645
+ end
646
+
647
+ if attributes.key?(:'moderation_group_ids')
648
+ if (value = attributes[:'moderation_group_ids']).is_a?(Array)
649
+ self.moderation_group_ids = value
650
+ end
651
+ end
652
+
653
+ if attributes.key?(:'did_process_badges')
654
+ self.did_process_badges = attributes[:'did_process_badges']
655
+ end
656
+
657
+ if attributes.key?(:'from_offline_restore')
658
+ self.from_offline_restore = attributes[:'from_offline_restore']
659
+ end
660
+
661
+ if attributes.key?(:'autoplay_job_id')
662
+ self.autoplay_job_id = attributes[:'autoplay_job_id']
663
+ end
664
+
665
+ if attributes.key?(:'autoplay_delay_ms')
666
+ self.autoplay_delay_ms = attributes[:'autoplay_delay_ms']
667
+ end
668
+
669
+ if attributes.key?(:'feedback_ids')
670
+ if (value = attributes[:'feedback_ids']).is_a?(Array)
671
+ self.feedback_ids = value
672
+ end
673
+ end
674
+
675
+ if attributes.key?(:'logs')
676
+ if (value = attributes[:'logs']).is_a?(Array)
677
+ self.logs = value
678
+ end
679
+ end
680
+
681
+ if attributes.key?(:'group_ids')
682
+ if (value = attributes[:'group_ids']).is_a?(Array)
683
+ self.group_ids = value
684
+ end
685
+ end
686
+
687
+ if attributes.key?(:'view_count')
688
+ self.view_count = attributes[:'view_count']
689
+ end
690
+
691
+ if attributes.key?(:'requires_verification')
692
+ self.requires_verification = attributes[:'requires_verification']
693
+ end
694
+
695
+ if attributes.key?(:'edit_key')
696
+ self.edit_key = attributes[:'edit_key']
697
+ end
698
+ end
699
+
700
+ # Show invalid properties with the reasons. Usually used together with valid?
701
+ # @return Array for valid properties with the reasons
702
+ def list_invalid_properties
703
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
704
+ invalid_properties = Array.new
705
+ if @_id.nil?
706
+ invalid_properties.push('invalid value for "_id", _id cannot be nil.')
707
+ end
708
+
709
+ if @tenant_id.nil?
710
+ invalid_properties.push('invalid value for "tenant_id", tenant_id cannot be nil.')
711
+ end
712
+
713
+ if @url_id.nil?
714
+ invalid_properties.push('invalid value for "url_id", url_id cannot be nil.')
715
+ end
716
+
717
+ if @url.nil?
718
+ invalid_properties.push('invalid value for "url", url cannot be nil.')
719
+ end
720
+
721
+ if @commenter_name.nil?
722
+ invalid_properties.push('invalid value for "commenter_name", commenter_name cannot be nil.')
723
+ end
724
+
725
+ if @comment.nil?
726
+ invalid_properties.push('invalid value for "comment", comment cannot be nil.')
727
+ end
728
+
729
+ if @comment_html.nil?
730
+ invalid_properties.push('invalid value for "comment_html", comment_html cannot be nil.')
731
+ end
732
+
733
+ if @verified.nil?
734
+ invalid_properties.push('invalid value for "verified", verified cannot be nil.')
735
+ end
736
+
737
+ if @approved.nil?
738
+ invalid_properties.push('invalid value for "approved", approved cannot be nil.')
739
+ end
740
+
741
+ invalid_properties
742
+ end
743
+
744
+ # Check to see if the all the properties in the model are valid
745
+ # @return true if the model is valid
746
+ def valid?
747
+ warn '[DEPRECATED] the `valid?` method is obsolete'
748
+ return false if @_id.nil?
749
+ return false if @tenant_id.nil?
750
+ return false if @url_id.nil?
751
+ return false if @url.nil?
752
+ return false if @commenter_name.nil?
753
+ return false if @comment.nil?
754
+ return false if @comment_html.nil?
755
+ return false if @verified.nil?
756
+ return false if @approved.nil?
757
+ true
758
+ end
759
+
760
+ # Custom attribute writer method with validation
761
+ # @param [Object] _id Value to be assigned
762
+ def _id=(_id)
763
+ if _id.nil?
764
+ fail ArgumentError, '_id cannot be nil'
765
+ end
766
+
767
+ @_id = _id
768
+ end
769
+
770
+ # Custom attribute writer method with validation
771
+ # @param [Object] tenant_id Value to be assigned
772
+ def tenant_id=(tenant_id)
773
+ if tenant_id.nil?
774
+ fail ArgumentError, 'tenant_id cannot be nil'
775
+ end
776
+
777
+ @tenant_id = tenant_id
778
+ end
779
+
780
+ # Custom attribute writer method with validation
781
+ # @param [Object] url_id Value to be assigned
782
+ def url_id=(url_id)
783
+ if url_id.nil?
784
+ fail ArgumentError, 'url_id cannot be nil'
785
+ end
786
+
787
+ @url_id = url_id
788
+ end
789
+
790
+ # Custom attribute writer method with validation
791
+ # @param [Object] url Value to be assigned
792
+ def url=(url)
793
+ if url.nil?
794
+ fail ArgumentError, 'url cannot be nil'
795
+ end
796
+
797
+ @url = url
798
+ end
799
+
800
+ # Custom attribute writer method with validation
801
+ # @param [Object] commenter_name Value to be assigned
802
+ def commenter_name=(commenter_name)
803
+ if commenter_name.nil?
804
+ fail ArgumentError, 'commenter_name cannot be nil'
805
+ end
806
+
807
+ @commenter_name = commenter_name
808
+ end
809
+
810
+ # Custom attribute writer method with validation
811
+ # @param [Object] comment Value to be assigned
812
+ def comment=(comment)
813
+ if comment.nil?
814
+ fail ArgumentError, 'comment cannot be nil'
815
+ end
816
+
817
+ @comment = comment
818
+ end
819
+
820
+ # Custom attribute writer method with validation
821
+ # @param [Object] comment_html Value to be assigned
822
+ def comment_html=(comment_html)
823
+ if comment_html.nil?
824
+ fail ArgumentError, 'comment_html cannot be nil'
825
+ end
826
+
827
+ @comment_html = comment_html
828
+ end
829
+
830
+ # Custom attribute writer method with validation
831
+ # @param [Object] verified Value to be assigned
832
+ def verified=(verified)
833
+ if verified.nil?
834
+ fail ArgumentError, 'verified cannot be nil'
835
+ end
836
+
837
+ @verified = verified
838
+ end
839
+
840
+ # Custom attribute writer method with validation
841
+ # @param [Object] approved Value to be assigned
842
+ def approved=(approved)
843
+ if approved.nil?
844
+ fail ArgumentError, 'approved cannot be nil'
845
+ end
846
+
847
+ @approved = approved
848
+ end
849
+
850
+ # Checks equality by comparing each attribute.
851
+ # @param [Object] Object to be compared
852
+ def ==(o)
853
+ return true if self.equal?(o)
854
+ self.class == o.class &&
855
+ _id == o._id &&
856
+ tenant_id == o.tenant_id &&
857
+ url_id == o.url_id &&
858
+ url_id_raw == o.url_id_raw &&
859
+ url == o.url &&
860
+ page_title == o.page_title &&
861
+ user_id == o.user_id &&
862
+ anon_user_id == o.anon_user_id &&
863
+ commenter_email == o.commenter_email &&
864
+ commenter_name == o.commenter_name &&
865
+ commenter_link == o.commenter_link &&
866
+ comment == o.comment &&
867
+ comment_html == o.comment_html &&
868
+ parent_id == o.parent_id &&
869
+ date == o.date &&
870
+ local_date_string == o.local_date_string &&
871
+ local_date_hours == o.local_date_hours &&
872
+ votes == o.votes &&
873
+ votes_up == o.votes_up &&
874
+ votes_down == o.votes_down &&
875
+ expire_at == o.expire_at &&
876
+ verified == o.verified &&
877
+ verified_date == o.verified_date &&
878
+ verification_id == o.verification_id &&
879
+ notification_sent_for_parent == o.notification_sent_for_parent &&
880
+ notification_sent_for_parent_tenant == o.notification_sent_for_parent_tenant &&
881
+ reviewed == o.reviewed &&
882
+ imported == o.imported &&
883
+ external_id == o.external_id &&
884
+ external_parent_id == o.external_parent_id &&
885
+ avatar_src == o.avatar_src &&
886
+ is_spam == o.is_spam &&
887
+ perm_not_spam == o.perm_not_spam &&
888
+ ai_determined_spam == o.ai_determined_spam &&
889
+ has_images == o.has_images &&
890
+ page_number == o.page_number &&
891
+ page_number_of == o.page_number_of &&
892
+ page_number_nf == o.page_number_nf &&
893
+ has_links == o.has_links &&
894
+ has_code == o.has_code &&
895
+ approved == o.approved &&
896
+ locale == o.locale &&
897
+ is_deleted == o.is_deleted &&
898
+ is_deleted_user == o.is_deleted_user &&
899
+ is_banned_user == o.is_banned_user &&
900
+ is_by_admin == o.is_by_admin &&
901
+ is_by_moderator == o.is_by_moderator &&
902
+ is_pinned == o.is_pinned &&
903
+ is_locked == o.is_locked &&
904
+ flag_count == o.flag_count &&
905
+ rating == o.rating &&
906
+ display_label == o.display_label &&
907
+ from_product_id == o.from_product_id &&
908
+ meta == o.meta &&
909
+ ip_hash == o.ip_hash &&
910
+ mentions == o.mentions &&
911
+ hash_tags == o.hash_tags &&
912
+ badges == o.badges &&
913
+ domain == o.domain &&
914
+ veteran_badge_processed == o.veteran_badge_processed &&
915
+ moderation_group_ids == o.moderation_group_ids &&
916
+ did_process_badges == o.did_process_badges &&
917
+ from_offline_restore == o.from_offline_restore &&
918
+ autoplay_job_id == o.autoplay_job_id &&
919
+ autoplay_delay_ms == o.autoplay_delay_ms &&
920
+ feedback_ids == o.feedback_ids &&
921
+ logs == o.logs &&
922
+ group_ids == o.group_ids &&
923
+ view_count == o.view_count &&
924
+ requires_verification == o.requires_verification &&
925
+ edit_key == o.edit_key
926
+ end
927
+
928
+ # @see the `==` method
929
+ # @param [Object] Object to be compared
930
+ def eql?(o)
931
+ self == o
932
+ end
933
+
934
+ # Calculates hash code according to all attributes.
935
+ # @return [Integer] Hash code
936
+ def hash
937
+ [_id, tenant_id, url_id, url_id_raw, url, page_title, user_id, anon_user_id, commenter_email, commenter_name, commenter_link, comment, comment_html, parent_id, date, local_date_string, local_date_hours, votes, votes_up, votes_down, expire_at, verified, verified_date, verification_id, notification_sent_for_parent, notification_sent_for_parent_tenant, reviewed, imported, external_id, external_parent_id, avatar_src, is_spam, perm_not_spam, ai_determined_spam, has_images, page_number, page_number_of, page_number_nf, has_links, has_code, approved, locale, is_deleted, is_deleted_user, is_banned_user, is_by_admin, is_by_moderator, is_pinned, is_locked, flag_count, rating, display_label, from_product_id, meta, ip_hash, mentions, hash_tags, badges, domain, veteran_badge_processed, moderation_group_ids, did_process_badges, from_offline_restore, autoplay_job_id, autoplay_delay_ms, feedback_ids, logs, group_ids, view_count, requires_verification, edit_key].hash
938
+ end
939
+
940
+ # Builds the object from hash
941
+ # @param [Hash] attributes Model attributes in the form of hash
942
+ # @return [Object] Returns the model itself
943
+ def self.build_from_hash(attributes)
944
+ return nil unless attributes.is_a?(Hash)
945
+ attributes = attributes.transform_keys(&:to_sym)
946
+ transformed_hash = {}
947
+ openapi_types.each_pair do |key, type|
948
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
949
+ transformed_hash["#{key}"] = nil
950
+ elsif type =~ /\AArray<(.*)>/i
951
+ # check to ensure the input is an array given that the attribute
952
+ # is documented as an array but the input is not
953
+ if attributes[attribute_map[key]].is_a?(Array)
954
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
955
+ end
956
+ elsif !attributes[attribute_map[key]].nil?
957
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
958
+ end
959
+ end
960
+ new(transformed_hash)
961
+ end
962
+
963
+ # Deserializes the data based on type
964
+ # @param string type Data type
965
+ # @param string value Value to be deserialized
966
+ # @return [Object] Deserialized data
967
+ def self._deserialize(type, value)
968
+ case type.to_sym
969
+ when :Time
970
+ Time.parse(value)
971
+ when :Date
972
+ Date.parse(value)
973
+ when :String
974
+ value.to_s
975
+ when :Integer
976
+ value.to_i
977
+ when :Float
978
+ value.to_f
979
+ when :Boolean
980
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
981
+ true
982
+ else
983
+ false
984
+ end
985
+ when :Object
986
+ # generic object (usually a Hash), return directly
987
+ value
988
+ when /\AArray<(?<inner_type>.+)>\z/
989
+ inner_type = Regexp.last_match[:inner_type]
990
+ value.map { |v| _deserialize(inner_type, v) }
991
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
992
+ k_type = Regexp.last_match[:k_type]
993
+ v_type = Regexp.last_match[:v_type]
994
+ {}.tap do |hash|
995
+ value.each do |k, v|
996
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
997
+ end
998
+ end
999
+ else # model
1000
+ # models (e.g. Pet) or oneOf
1001
+ klass = FastCommentsClient.const_get(type)
1002
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
1003
+ end
1004
+ end
1005
+
1006
+ # Returns the string representation of the object
1007
+ # @return [String] String presentation of the object
1008
+ def to_s
1009
+ to_hash.to_s
1010
+ end
1011
+
1012
+ # to_body is an alias to to_hash (backward compatibility)
1013
+ # @return [Hash] Returns the object in the form of hash
1014
+ def to_body
1015
+ to_hash
1016
+ end
1017
+
1018
+ # Returns the object in the form of hash
1019
+ # @return [Hash] Returns the object in the form of hash
1020
+ def to_hash
1021
+ hash = {}
1022
+ self.class.attribute_map.each_pair do |attr, param|
1023
+ value = self.send(attr)
1024
+ if value.nil?
1025
+ is_nullable = self.class.openapi_nullable.include?(attr)
1026
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
1027
+ end
1028
+
1029
+ hash[param] = _to_hash(value)
1030
+ end
1031
+ hash
1032
+ end
1033
+
1034
+ # Outputs non-array value in the form of hash
1035
+ # For object, use to_hash. Otherwise, just return the value
1036
+ # @param [Object] value Any valid value
1037
+ # @return [Hash] Returns the value in the form of hash
1038
+ def _to_hash(value)
1039
+ if value.is_a?(Array)
1040
+ value.compact.map { |v| _to_hash(v) }
1041
+ elsif value.is_a?(Hash)
1042
+ {}.tap do |hash|
1043
+ value.each { |k, v| hash[k] = _to_hash(v) }
1044
+ end
1045
+ elsif value.respond_to? :to_hash
1046
+ value.to_hash
1047
+ else
1048
+ value
1049
+ end
1050
+ end
1051
+
1052
+ end
1053
+
1054
+ end