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,3463 @@
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 'cgi'
14
+
15
+ module FastCommentsClient
16
+ class DefaultApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # @param tenant_id [String]
23
+ # @param add_domain_config_params [AddDomainConfigParams]
24
+ # @param [Hash] opts the optional parameters
25
+ # @return [AddDomainConfig200Response]
26
+ def add_domain_config(tenant_id, add_domain_config_params, opts = {})
27
+ data, _status_code, _headers = add_domain_config_with_http_info(tenant_id, add_domain_config_params, opts)
28
+ data
29
+ end
30
+
31
+ # @param tenant_id [String]
32
+ # @param add_domain_config_params [AddDomainConfigParams]
33
+ # @param [Hash] opts the optional parameters
34
+ # @return [Array<(AddDomainConfig200Response, Integer, Hash)>] AddDomainConfig200Response data, response status code and response headers
35
+ def add_domain_config_with_http_info(tenant_id, add_domain_config_params, opts = {})
36
+ if @api_client.config.debugging
37
+ @api_client.config.logger.debug 'Calling API: DefaultApi.add_domain_config ...'
38
+ end
39
+ # verify the required parameter 'tenant_id' is set
40
+ if @api_client.config.client_side_validation && tenant_id.nil?
41
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.add_domain_config"
42
+ end
43
+ # verify the required parameter 'add_domain_config_params' is set
44
+ if @api_client.config.client_side_validation && add_domain_config_params.nil?
45
+ fail ArgumentError, "Missing the required parameter 'add_domain_config_params' when calling DefaultApi.add_domain_config"
46
+ end
47
+ # resource path
48
+ local_var_path = '/api/v1/domain-configs'
49
+
50
+ # query parameters
51
+ query_params = opts[:query_params] || {}
52
+ query_params[:'tenantId'] = tenant_id
53
+
54
+ # header parameters
55
+ header_params = opts[:header_params] || {}
56
+ # HTTP header 'Accept' (if needed)
57
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
58
+ # HTTP header 'Content-Type'
59
+ content_type = @api_client.select_header_content_type(['application/json'])
60
+ if !content_type.nil?
61
+ header_params['Content-Type'] = content_type
62
+ end
63
+
64
+ # form parameters
65
+ form_params = opts[:form_params] || {}
66
+
67
+ # http body (model)
68
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(add_domain_config_params)
69
+
70
+ # return_type
71
+ return_type = opts[:debug_return_type] || 'AddDomainConfig200Response'
72
+
73
+ # auth_names
74
+ auth_names = opts[:debug_auth_names] || ['api_key']
75
+
76
+ new_options = opts.merge(
77
+ :operation => :"DefaultApi.add_domain_config",
78
+ :header_params => header_params,
79
+ :query_params => query_params,
80
+ :form_params => form_params,
81
+ :body => post_body,
82
+ :auth_names => auth_names,
83
+ :return_type => return_type
84
+ )
85
+
86
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
87
+ if @api_client.config.debugging
88
+ @api_client.config.logger.debug "API called: DefaultApi#add_domain_config\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
89
+ end
90
+ return data, status_code, headers
91
+ end
92
+
93
+ # @param tenant_id [String]
94
+ # @param create_api_page_data [CreateAPIPageData]
95
+ # @param [Hash] opts the optional parameters
96
+ # @return [AddPageAPIResponse]
97
+ def add_page(tenant_id, create_api_page_data, opts = {})
98
+ data, _status_code, _headers = add_page_with_http_info(tenant_id, create_api_page_data, opts)
99
+ data
100
+ end
101
+
102
+ # @param tenant_id [String]
103
+ # @param create_api_page_data [CreateAPIPageData]
104
+ # @param [Hash] opts the optional parameters
105
+ # @return [Array<(AddPageAPIResponse, Integer, Hash)>] AddPageAPIResponse data, response status code and response headers
106
+ def add_page_with_http_info(tenant_id, create_api_page_data, opts = {})
107
+ if @api_client.config.debugging
108
+ @api_client.config.logger.debug 'Calling API: DefaultApi.add_page ...'
109
+ end
110
+ # verify the required parameter 'tenant_id' is set
111
+ if @api_client.config.client_side_validation && tenant_id.nil?
112
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.add_page"
113
+ end
114
+ # verify the required parameter 'create_api_page_data' is set
115
+ if @api_client.config.client_side_validation && create_api_page_data.nil?
116
+ fail ArgumentError, "Missing the required parameter 'create_api_page_data' when calling DefaultApi.add_page"
117
+ end
118
+ # resource path
119
+ local_var_path = '/api/v1/pages'
120
+
121
+ # query parameters
122
+ query_params = opts[:query_params] || {}
123
+ query_params[:'tenantId'] = tenant_id
124
+
125
+ # header parameters
126
+ header_params = opts[:header_params] || {}
127
+ # HTTP header 'Accept' (if needed)
128
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
129
+ # HTTP header 'Content-Type'
130
+ content_type = @api_client.select_header_content_type(['application/json'])
131
+ if !content_type.nil?
132
+ header_params['Content-Type'] = content_type
133
+ end
134
+
135
+ # form parameters
136
+ form_params = opts[:form_params] || {}
137
+
138
+ # http body (model)
139
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(create_api_page_data)
140
+
141
+ # return_type
142
+ return_type = opts[:debug_return_type] || 'AddPageAPIResponse'
143
+
144
+ # auth_names
145
+ auth_names = opts[:debug_auth_names] || ['api_key']
146
+
147
+ new_options = opts.merge(
148
+ :operation => :"DefaultApi.add_page",
149
+ :header_params => header_params,
150
+ :query_params => query_params,
151
+ :form_params => form_params,
152
+ :body => post_body,
153
+ :auth_names => auth_names,
154
+ :return_type => return_type
155
+ )
156
+
157
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
158
+ if @api_client.config.debugging
159
+ @api_client.config.logger.debug "API called: DefaultApi#add_page\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
160
+ end
161
+ return data, status_code, headers
162
+ end
163
+
164
+ # @param tenant_id [String]
165
+ # @param create_apisso_user_data [CreateAPISSOUserData]
166
+ # @param [Hash] opts the optional parameters
167
+ # @return [AddSSOUserAPIResponse]
168
+ def add_sso_user(tenant_id, create_apisso_user_data, opts = {})
169
+ data, _status_code, _headers = add_sso_user_with_http_info(tenant_id, create_apisso_user_data, opts)
170
+ data
171
+ end
172
+
173
+ # @param tenant_id [String]
174
+ # @param create_apisso_user_data [CreateAPISSOUserData]
175
+ # @param [Hash] opts the optional parameters
176
+ # @return [Array<(AddSSOUserAPIResponse, Integer, Hash)>] AddSSOUserAPIResponse data, response status code and response headers
177
+ def add_sso_user_with_http_info(tenant_id, create_apisso_user_data, opts = {})
178
+ if @api_client.config.debugging
179
+ @api_client.config.logger.debug 'Calling API: DefaultApi.add_sso_user ...'
180
+ end
181
+ # verify the required parameter 'tenant_id' is set
182
+ if @api_client.config.client_side_validation && tenant_id.nil?
183
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.add_sso_user"
184
+ end
185
+ # verify the required parameter 'create_apisso_user_data' is set
186
+ if @api_client.config.client_side_validation && create_apisso_user_data.nil?
187
+ fail ArgumentError, "Missing the required parameter 'create_apisso_user_data' when calling DefaultApi.add_sso_user"
188
+ end
189
+ # resource path
190
+ local_var_path = '/api/v1/sso-users'
191
+
192
+ # query parameters
193
+ query_params = opts[:query_params] || {}
194
+ query_params[:'tenantId'] = tenant_id
195
+
196
+ # header parameters
197
+ header_params = opts[:header_params] || {}
198
+ # HTTP header 'Accept' (if needed)
199
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
200
+ # HTTP header 'Content-Type'
201
+ content_type = @api_client.select_header_content_type(['application/json'])
202
+ if !content_type.nil?
203
+ header_params['Content-Type'] = content_type
204
+ end
205
+
206
+ # form parameters
207
+ form_params = opts[:form_params] || {}
208
+
209
+ # http body (model)
210
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(create_apisso_user_data)
211
+
212
+ # return_type
213
+ return_type = opts[:debug_return_type] || 'AddSSOUserAPIResponse'
214
+
215
+ # auth_names
216
+ auth_names = opts[:debug_auth_names] || ['api_key']
217
+
218
+ new_options = opts.merge(
219
+ :operation => :"DefaultApi.add_sso_user",
220
+ :header_params => header_params,
221
+ :query_params => query_params,
222
+ :form_params => form_params,
223
+ :body => post_body,
224
+ :auth_names => auth_names,
225
+ :return_type => return_type
226
+ )
227
+
228
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
229
+ if @api_client.config.debugging
230
+ @api_client.config.logger.debug "API called: DefaultApi#add_sso_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
231
+ end
232
+ return data, status_code, headers
233
+ end
234
+
235
+ # Aggregates documents by grouping them (if groupBy is provided) and applying multiple operations. Different operations (e.g. sum, countDistinct, avg, etc.) are supported.
236
+ # @param tenant_id [String]
237
+ # @param aggregation_request [AggregationRequest]
238
+ # @param [Hash] opts the optional parameters
239
+ # @option opts [String] :parent_tenant_id
240
+ # @option opts [Boolean] :include_stats
241
+ # @return [AggregationResponse]
242
+ def aggregate(tenant_id, aggregation_request, opts = {})
243
+ data, _status_code, _headers = aggregate_with_http_info(tenant_id, aggregation_request, opts)
244
+ data
245
+ end
246
+
247
+ # Aggregates documents by grouping them (if groupBy is provided) and applying multiple operations. Different operations (e.g. sum, countDistinct, avg, etc.) are supported.
248
+ # @param tenant_id [String]
249
+ # @param aggregation_request [AggregationRequest]
250
+ # @param [Hash] opts the optional parameters
251
+ # @option opts [String] :parent_tenant_id
252
+ # @option opts [Boolean] :include_stats
253
+ # @return [Array<(AggregationResponse, Integer, Hash)>] AggregationResponse data, response status code and response headers
254
+ def aggregate_with_http_info(tenant_id, aggregation_request, opts = {})
255
+ if @api_client.config.debugging
256
+ @api_client.config.logger.debug 'Calling API: DefaultApi.aggregate ...'
257
+ end
258
+ # verify the required parameter 'tenant_id' is set
259
+ if @api_client.config.client_side_validation && tenant_id.nil?
260
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.aggregate"
261
+ end
262
+ # verify the required parameter 'aggregation_request' is set
263
+ if @api_client.config.client_side_validation && aggregation_request.nil?
264
+ fail ArgumentError, "Missing the required parameter 'aggregation_request' when calling DefaultApi.aggregate"
265
+ end
266
+ # resource path
267
+ local_var_path = '/api/v1/aggregate'
268
+
269
+ # query parameters
270
+ query_params = opts[:query_params] || {}
271
+ query_params[:'tenantId'] = tenant_id
272
+ query_params[:'parentTenantId'] = opts[:'parent_tenant_id'] if !opts[:'parent_tenant_id'].nil?
273
+ query_params[:'includeStats'] = opts[:'include_stats'] if !opts[:'include_stats'].nil?
274
+
275
+ # header parameters
276
+ header_params = opts[:header_params] || {}
277
+ # HTTP header 'Accept' (if needed)
278
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
279
+ # HTTP header 'Content-Type'
280
+ content_type = @api_client.select_header_content_type(['application/json'])
281
+ if !content_type.nil?
282
+ header_params['Content-Type'] = content_type
283
+ end
284
+
285
+ # form parameters
286
+ form_params = opts[:form_params] || {}
287
+
288
+ # http body (model)
289
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(aggregation_request)
290
+
291
+ # return_type
292
+ return_type = opts[:debug_return_type] || 'AggregationResponse'
293
+
294
+ # auth_names
295
+ auth_names = opts[:debug_auth_names] || ['api_key']
296
+
297
+ new_options = opts.merge(
298
+ :operation => :"DefaultApi.aggregate",
299
+ :header_params => header_params,
300
+ :query_params => query_params,
301
+ :form_params => form_params,
302
+ :body => post_body,
303
+ :auth_names => auth_names,
304
+ :return_type => return_type
305
+ )
306
+
307
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
308
+ if @api_client.config.debugging
309
+ @api_client.config.logger.debug "API called: DefaultApi#aggregate\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
310
+ end
311
+ return data, status_code, headers
312
+ end
313
+
314
+ # @param tenant_id [String]
315
+ # @param [Hash] opts the optional parameters
316
+ # @option opts [String] :question_id
317
+ # @option opts [Array<String>] :question_ids
318
+ # @option opts [String] :url_id
319
+ # @option opts [AggregateTimeBucket] :time_bucket
320
+ # @option opts [Time] :start_date
321
+ # @option opts [Boolean] :force_recalculate
322
+ # @return [AggregateQuestionResults200Response]
323
+ def aggregate_question_results(tenant_id, opts = {})
324
+ data, _status_code, _headers = aggregate_question_results_with_http_info(tenant_id, opts)
325
+ data
326
+ end
327
+
328
+ # @param tenant_id [String]
329
+ # @param [Hash] opts the optional parameters
330
+ # @option opts [String] :question_id
331
+ # @option opts [Array<String>] :question_ids
332
+ # @option opts [String] :url_id
333
+ # @option opts [AggregateTimeBucket] :time_bucket
334
+ # @option opts [Time] :start_date
335
+ # @option opts [Boolean] :force_recalculate
336
+ # @return [Array<(AggregateQuestionResults200Response, Integer, Hash)>] AggregateQuestionResults200Response data, response status code and response headers
337
+ def aggregate_question_results_with_http_info(tenant_id, opts = {})
338
+ if @api_client.config.debugging
339
+ @api_client.config.logger.debug 'Calling API: DefaultApi.aggregate_question_results ...'
340
+ end
341
+ # verify the required parameter 'tenant_id' is set
342
+ if @api_client.config.client_side_validation && tenant_id.nil?
343
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.aggregate_question_results"
344
+ end
345
+ # resource path
346
+ local_var_path = '/api/v1/question-results-aggregation'
347
+
348
+ # query parameters
349
+ query_params = opts[:query_params] || {}
350
+ query_params[:'tenantId'] = tenant_id
351
+ query_params[:'questionId'] = opts[:'question_id'] if !opts[:'question_id'].nil?
352
+ query_params[:'questionIds'] = @api_client.build_collection_param(opts[:'question_ids'], :multi) if !opts[:'question_ids'].nil?
353
+ query_params[:'urlId'] = opts[:'url_id'] if !opts[:'url_id'].nil?
354
+ query_params[:'timeBucket'] = opts[:'time_bucket'] if !opts[:'time_bucket'].nil?
355
+ query_params[:'startDate'] = opts[:'start_date'] if !opts[:'start_date'].nil?
356
+ query_params[:'forceRecalculate'] = opts[:'force_recalculate'] if !opts[:'force_recalculate'].nil?
357
+
358
+ # header parameters
359
+ header_params = opts[:header_params] || {}
360
+ # HTTP header 'Accept' (if needed)
361
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
362
+
363
+ # form parameters
364
+ form_params = opts[:form_params] || {}
365
+
366
+ # http body (model)
367
+ post_body = opts[:debug_body]
368
+
369
+ # return_type
370
+ return_type = opts[:debug_return_type] || 'AggregateQuestionResults200Response'
371
+
372
+ # auth_names
373
+ auth_names = opts[:debug_auth_names] || ['api_key']
374
+
375
+ new_options = opts.merge(
376
+ :operation => :"DefaultApi.aggregate_question_results",
377
+ :header_params => header_params,
378
+ :query_params => query_params,
379
+ :form_params => form_params,
380
+ :body => post_body,
381
+ :auth_names => auth_names,
382
+ :return_type => return_type
383
+ )
384
+
385
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
386
+ if @api_client.config.debugging
387
+ @api_client.config.logger.debug "API called: DefaultApi#aggregate_question_results\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
388
+ end
389
+ return data, status_code, headers
390
+ end
391
+
392
+ # @param tenant_id [String]
393
+ # @param id [String]
394
+ # @param block_from_comment_params [BlockFromCommentParams]
395
+ # @param [Hash] opts the optional parameters
396
+ # @option opts [String] :user_id
397
+ # @option opts [String] :anon_user_id
398
+ # @return [BlockFromCommentPublic200Response]
399
+ def block_user_from_comment(tenant_id, id, block_from_comment_params, opts = {})
400
+ data, _status_code, _headers = block_user_from_comment_with_http_info(tenant_id, id, block_from_comment_params, opts)
401
+ data
402
+ end
403
+
404
+ # @param tenant_id [String]
405
+ # @param id [String]
406
+ # @param block_from_comment_params [BlockFromCommentParams]
407
+ # @param [Hash] opts the optional parameters
408
+ # @option opts [String] :user_id
409
+ # @option opts [String] :anon_user_id
410
+ # @return [Array<(BlockFromCommentPublic200Response, Integer, Hash)>] BlockFromCommentPublic200Response data, response status code and response headers
411
+ def block_user_from_comment_with_http_info(tenant_id, id, block_from_comment_params, opts = {})
412
+ if @api_client.config.debugging
413
+ @api_client.config.logger.debug 'Calling API: DefaultApi.block_user_from_comment ...'
414
+ end
415
+ # verify the required parameter 'tenant_id' is set
416
+ if @api_client.config.client_side_validation && tenant_id.nil?
417
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.block_user_from_comment"
418
+ end
419
+ # verify the required parameter 'id' is set
420
+ if @api_client.config.client_side_validation && id.nil?
421
+ fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.block_user_from_comment"
422
+ end
423
+ # verify the required parameter 'block_from_comment_params' is set
424
+ if @api_client.config.client_side_validation && block_from_comment_params.nil?
425
+ fail ArgumentError, "Missing the required parameter 'block_from_comment_params' when calling DefaultApi.block_user_from_comment"
426
+ end
427
+ # resource path
428
+ local_var_path = '/api/v1/comments/{id}/block'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
429
+
430
+ # query parameters
431
+ query_params = opts[:query_params] || {}
432
+ query_params[:'tenantId'] = tenant_id
433
+ query_params[:'userId'] = opts[:'user_id'] if !opts[:'user_id'].nil?
434
+ query_params[:'anonUserId'] = opts[:'anon_user_id'] if !opts[:'anon_user_id'].nil?
435
+
436
+ # header parameters
437
+ header_params = opts[:header_params] || {}
438
+ # HTTP header 'Accept' (if needed)
439
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
440
+ # HTTP header 'Content-Type'
441
+ content_type = @api_client.select_header_content_type(['application/json'])
442
+ if !content_type.nil?
443
+ header_params['Content-Type'] = content_type
444
+ end
445
+
446
+ # form parameters
447
+ form_params = opts[:form_params] || {}
448
+
449
+ # http body (model)
450
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(block_from_comment_params)
451
+
452
+ # return_type
453
+ return_type = opts[:debug_return_type] || 'BlockFromCommentPublic200Response'
454
+
455
+ # auth_names
456
+ auth_names = opts[:debug_auth_names] || ['api_key']
457
+
458
+ new_options = opts.merge(
459
+ :operation => :"DefaultApi.block_user_from_comment",
460
+ :header_params => header_params,
461
+ :query_params => query_params,
462
+ :form_params => form_params,
463
+ :body => post_body,
464
+ :auth_names => auth_names,
465
+ :return_type => return_type
466
+ )
467
+
468
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
469
+ if @api_client.config.debugging
470
+ @api_client.config.logger.debug "API called: DefaultApi#block_user_from_comment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
471
+ end
472
+ return data, status_code, headers
473
+ end
474
+
475
+ # @param tenant_id [String]
476
+ # @param bulk_aggregate_question_results_request [BulkAggregateQuestionResultsRequest]
477
+ # @param [Hash] opts the optional parameters
478
+ # @option opts [Boolean] :force_recalculate
479
+ # @return [BulkAggregateQuestionResults200Response]
480
+ def bulk_aggregate_question_results(tenant_id, bulk_aggregate_question_results_request, opts = {})
481
+ data, _status_code, _headers = bulk_aggregate_question_results_with_http_info(tenant_id, bulk_aggregate_question_results_request, opts)
482
+ data
483
+ end
484
+
485
+ # @param tenant_id [String]
486
+ # @param bulk_aggregate_question_results_request [BulkAggregateQuestionResultsRequest]
487
+ # @param [Hash] opts the optional parameters
488
+ # @option opts [Boolean] :force_recalculate
489
+ # @return [Array<(BulkAggregateQuestionResults200Response, Integer, Hash)>] BulkAggregateQuestionResults200Response data, response status code and response headers
490
+ def bulk_aggregate_question_results_with_http_info(tenant_id, bulk_aggregate_question_results_request, opts = {})
491
+ if @api_client.config.debugging
492
+ @api_client.config.logger.debug 'Calling API: DefaultApi.bulk_aggregate_question_results ...'
493
+ end
494
+ # verify the required parameter 'tenant_id' is set
495
+ if @api_client.config.client_side_validation && tenant_id.nil?
496
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.bulk_aggregate_question_results"
497
+ end
498
+ # verify the required parameter 'bulk_aggregate_question_results_request' is set
499
+ if @api_client.config.client_side_validation && bulk_aggregate_question_results_request.nil?
500
+ fail ArgumentError, "Missing the required parameter 'bulk_aggregate_question_results_request' when calling DefaultApi.bulk_aggregate_question_results"
501
+ end
502
+ # resource path
503
+ local_var_path = '/api/v1/question-results-aggregation/bulk'
504
+
505
+ # query parameters
506
+ query_params = opts[:query_params] || {}
507
+ query_params[:'tenantId'] = tenant_id
508
+ query_params[:'forceRecalculate'] = opts[:'force_recalculate'] if !opts[:'force_recalculate'].nil?
509
+
510
+ # header parameters
511
+ header_params = opts[:header_params] || {}
512
+ # HTTP header 'Accept' (if needed)
513
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
514
+ # HTTP header 'Content-Type'
515
+ content_type = @api_client.select_header_content_type(['application/json'])
516
+ if !content_type.nil?
517
+ header_params['Content-Type'] = content_type
518
+ end
519
+
520
+ # form parameters
521
+ form_params = opts[:form_params] || {}
522
+
523
+ # http body (model)
524
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(bulk_aggregate_question_results_request)
525
+
526
+ # return_type
527
+ return_type = opts[:debug_return_type] || 'BulkAggregateQuestionResults200Response'
528
+
529
+ # auth_names
530
+ auth_names = opts[:debug_auth_names] || ['api_key']
531
+
532
+ new_options = opts.merge(
533
+ :operation => :"DefaultApi.bulk_aggregate_question_results",
534
+ :header_params => header_params,
535
+ :query_params => query_params,
536
+ :form_params => form_params,
537
+ :body => post_body,
538
+ :auth_names => auth_names,
539
+ :return_type => return_type
540
+ )
541
+
542
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
543
+ if @api_client.config.debugging
544
+ @api_client.config.logger.debug "API called: DefaultApi#bulk_aggregate_question_results\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
545
+ end
546
+ return data, status_code, headers
547
+ end
548
+
549
+ # @param tenant_id [String]
550
+ # @param [Hash] opts the optional parameters
551
+ # @option opts [String] :question_id
552
+ # @option opts [Array<String>] :question_ids
553
+ # @option opts [String] :url_id
554
+ # @option opts [Time] :start_date
555
+ # @option opts [Boolean] :force_recalculate
556
+ # @option opts [Float] :min_value
557
+ # @option opts [Float] :max_value
558
+ # @option opts [Float] :limit
559
+ # @return [CombineCommentsWithQuestionResults200Response]
560
+ def combine_comments_with_question_results(tenant_id, opts = {})
561
+ data, _status_code, _headers = combine_comments_with_question_results_with_http_info(tenant_id, opts)
562
+ data
563
+ end
564
+
565
+ # @param tenant_id [String]
566
+ # @param [Hash] opts the optional parameters
567
+ # @option opts [String] :question_id
568
+ # @option opts [Array<String>] :question_ids
569
+ # @option opts [String] :url_id
570
+ # @option opts [Time] :start_date
571
+ # @option opts [Boolean] :force_recalculate
572
+ # @option opts [Float] :min_value
573
+ # @option opts [Float] :max_value
574
+ # @option opts [Float] :limit
575
+ # @return [Array<(CombineCommentsWithQuestionResults200Response, Integer, Hash)>] CombineCommentsWithQuestionResults200Response data, response status code and response headers
576
+ def combine_comments_with_question_results_with_http_info(tenant_id, opts = {})
577
+ if @api_client.config.debugging
578
+ @api_client.config.logger.debug 'Calling API: DefaultApi.combine_comments_with_question_results ...'
579
+ end
580
+ # verify the required parameter 'tenant_id' is set
581
+ if @api_client.config.client_side_validation && tenant_id.nil?
582
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.combine_comments_with_question_results"
583
+ end
584
+ # resource path
585
+ local_var_path = '/api/v1/question-results-aggregation/combine/comments'
586
+
587
+ # query parameters
588
+ query_params = opts[:query_params] || {}
589
+ query_params[:'tenantId'] = tenant_id
590
+ query_params[:'questionId'] = opts[:'question_id'] if !opts[:'question_id'].nil?
591
+ query_params[:'questionIds'] = @api_client.build_collection_param(opts[:'question_ids'], :multi) if !opts[:'question_ids'].nil?
592
+ query_params[:'urlId'] = opts[:'url_id'] if !opts[:'url_id'].nil?
593
+ query_params[:'startDate'] = opts[:'start_date'] if !opts[:'start_date'].nil?
594
+ query_params[:'forceRecalculate'] = opts[:'force_recalculate'] if !opts[:'force_recalculate'].nil?
595
+ query_params[:'minValue'] = opts[:'min_value'] if !opts[:'min_value'].nil?
596
+ query_params[:'maxValue'] = opts[:'max_value'] if !opts[:'max_value'].nil?
597
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
598
+
599
+ # header parameters
600
+ header_params = opts[:header_params] || {}
601
+ # HTTP header 'Accept' (if needed)
602
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
603
+
604
+ # form parameters
605
+ form_params = opts[:form_params] || {}
606
+
607
+ # http body (model)
608
+ post_body = opts[:debug_body]
609
+
610
+ # return_type
611
+ return_type = opts[:debug_return_type] || 'CombineCommentsWithQuestionResults200Response'
612
+
613
+ # auth_names
614
+ auth_names = opts[:debug_auth_names] || ['api_key']
615
+
616
+ new_options = opts.merge(
617
+ :operation => :"DefaultApi.combine_comments_with_question_results",
618
+ :header_params => header_params,
619
+ :query_params => query_params,
620
+ :form_params => form_params,
621
+ :body => post_body,
622
+ :auth_names => auth_names,
623
+ :return_type => return_type
624
+ )
625
+
626
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
627
+ if @api_client.config.debugging
628
+ @api_client.config.logger.debug "API called: DefaultApi#combine_comments_with_question_results\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
629
+ end
630
+ return data, status_code, headers
631
+ end
632
+
633
+ # @param tenant_id [String]
634
+ # @param create_feed_post_params [CreateFeedPostParams]
635
+ # @param [Hash] opts the optional parameters
636
+ # @option opts [String] :broadcast_id
637
+ # @option opts [Boolean] :is_live
638
+ # @option opts [Boolean] :do_spam_check
639
+ # @option opts [Boolean] :skip_dup_check
640
+ # @return [CreateFeedPost200Response]
641
+ def create_feed_post(tenant_id, create_feed_post_params, opts = {})
642
+ data, _status_code, _headers = create_feed_post_with_http_info(tenant_id, create_feed_post_params, opts)
643
+ data
644
+ end
645
+
646
+ # @param tenant_id [String]
647
+ # @param create_feed_post_params [CreateFeedPostParams]
648
+ # @param [Hash] opts the optional parameters
649
+ # @option opts [String] :broadcast_id
650
+ # @option opts [Boolean] :is_live
651
+ # @option opts [Boolean] :do_spam_check
652
+ # @option opts [Boolean] :skip_dup_check
653
+ # @return [Array<(CreateFeedPost200Response, Integer, Hash)>] CreateFeedPost200Response data, response status code and response headers
654
+ def create_feed_post_with_http_info(tenant_id, create_feed_post_params, opts = {})
655
+ if @api_client.config.debugging
656
+ @api_client.config.logger.debug 'Calling API: DefaultApi.create_feed_post ...'
657
+ end
658
+ # verify the required parameter 'tenant_id' is set
659
+ if @api_client.config.client_side_validation && tenant_id.nil?
660
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.create_feed_post"
661
+ end
662
+ # verify the required parameter 'create_feed_post_params' is set
663
+ if @api_client.config.client_side_validation && create_feed_post_params.nil?
664
+ fail ArgumentError, "Missing the required parameter 'create_feed_post_params' when calling DefaultApi.create_feed_post"
665
+ end
666
+ # resource path
667
+ local_var_path = '/api/v1/feed-posts'
668
+
669
+ # query parameters
670
+ query_params = opts[:query_params] || {}
671
+ query_params[:'tenantId'] = tenant_id
672
+ query_params[:'broadcastId'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil?
673
+ query_params[:'isLive'] = opts[:'is_live'] if !opts[:'is_live'].nil?
674
+ query_params[:'doSpamCheck'] = opts[:'do_spam_check'] if !opts[:'do_spam_check'].nil?
675
+ query_params[:'skipDupCheck'] = opts[:'skip_dup_check'] if !opts[:'skip_dup_check'].nil?
676
+
677
+ # header parameters
678
+ header_params = opts[:header_params] || {}
679
+ # HTTP header 'Accept' (if needed)
680
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
681
+ # HTTP header 'Content-Type'
682
+ content_type = @api_client.select_header_content_type(['application/json'])
683
+ if !content_type.nil?
684
+ header_params['Content-Type'] = content_type
685
+ end
686
+
687
+ # form parameters
688
+ form_params = opts[:form_params] || {}
689
+
690
+ # http body (model)
691
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(create_feed_post_params)
692
+
693
+ # return_type
694
+ return_type = opts[:debug_return_type] || 'CreateFeedPost200Response'
695
+
696
+ # auth_names
697
+ auth_names = opts[:debug_auth_names] || ['api_key']
698
+
699
+ new_options = opts.merge(
700
+ :operation => :"DefaultApi.create_feed_post",
701
+ :header_params => header_params,
702
+ :query_params => query_params,
703
+ :form_params => form_params,
704
+ :body => post_body,
705
+ :auth_names => auth_names,
706
+ :return_type => return_type
707
+ )
708
+
709
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
710
+ if @api_client.config.debugging
711
+ @api_client.config.logger.debug "API called: DefaultApi#create_feed_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
712
+ end
713
+ return data, status_code, headers
714
+ end
715
+
716
+ # @param tenant_id [String]
717
+ # @param create_api_user_subscription_data [CreateAPIUserSubscriptionData]
718
+ # @param [Hash] opts the optional parameters
719
+ # @return [CreateSubscriptionAPIResponse]
720
+ def create_subscription(tenant_id, create_api_user_subscription_data, opts = {})
721
+ data, _status_code, _headers = create_subscription_with_http_info(tenant_id, create_api_user_subscription_data, opts)
722
+ data
723
+ end
724
+
725
+ # @param tenant_id [String]
726
+ # @param create_api_user_subscription_data [CreateAPIUserSubscriptionData]
727
+ # @param [Hash] opts the optional parameters
728
+ # @return [Array<(CreateSubscriptionAPIResponse, Integer, Hash)>] CreateSubscriptionAPIResponse data, response status code and response headers
729
+ def create_subscription_with_http_info(tenant_id, create_api_user_subscription_data, opts = {})
730
+ if @api_client.config.debugging
731
+ @api_client.config.logger.debug 'Calling API: DefaultApi.create_subscription ...'
732
+ end
733
+ # verify the required parameter 'tenant_id' is set
734
+ if @api_client.config.client_side_validation && tenant_id.nil?
735
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.create_subscription"
736
+ end
737
+ # verify the required parameter 'create_api_user_subscription_data' is set
738
+ if @api_client.config.client_side_validation && create_api_user_subscription_data.nil?
739
+ fail ArgumentError, "Missing the required parameter 'create_api_user_subscription_data' when calling DefaultApi.create_subscription"
740
+ end
741
+ # resource path
742
+ local_var_path = '/api/v1/subscriptions'
743
+
744
+ # query parameters
745
+ query_params = opts[:query_params] || {}
746
+ query_params[:'tenantId'] = tenant_id
747
+
748
+ # header parameters
749
+ header_params = opts[:header_params] || {}
750
+ # HTTP header 'Accept' (if needed)
751
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
752
+ # HTTP header 'Content-Type'
753
+ content_type = @api_client.select_header_content_type(['application/json'])
754
+ if !content_type.nil?
755
+ header_params['Content-Type'] = content_type
756
+ end
757
+
758
+ # form parameters
759
+ form_params = opts[:form_params] || {}
760
+
761
+ # http body (model)
762
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(create_api_user_subscription_data)
763
+
764
+ # return_type
765
+ return_type = opts[:debug_return_type] || 'CreateSubscriptionAPIResponse'
766
+
767
+ # auth_names
768
+ auth_names = opts[:debug_auth_names] || ['api_key']
769
+
770
+ new_options = opts.merge(
771
+ :operation => :"DefaultApi.create_subscription",
772
+ :header_params => header_params,
773
+ :query_params => query_params,
774
+ :form_params => form_params,
775
+ :body => post_body,
776
+ :auth_names => auth_names,
777
+ :return_type => return_type
778
+ )
779
+
780
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
781
+ if @api_client.config.debugging
782
+ @api_client.config.logger.debug "API called: DefaultApi#create_subscription\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
783
+ end
784
+ return data, status_code, headers
785
+ end
786
+
787
+ # @param tenant_id [String]
788
+ # @param create_user_badge_params [CreateUserBadgeParams]
789
+ # @param [Hash] opts the optional parameters
790
+ # @return [CreateUserBadge200Response]
791
+ def create_user_badge(tenant_id, create_user_badge_params, opts = {})
792
+ data, _status_code, _headers = create_user_badge_with_http_info(tenant_id, create_user_badge_params, opts)
793
+ data
794
+ end
795
+
796
+ # @param tenant_id [String]
797
+ # @param create_user_badge_params [CreateUserBadgeParams]
798
+ # @param [Hash] opts the optional parameters
799
+ # @return [Array<(CreateUserBadge200Response, Integer, Hash)>] CreateUserBadge200Response data, response status code and response headers
800
+ def create_user_badge_with_http_info(tenant_id, create_user_badge_params, opts = {})
801
+ if @api_client.config.debugging
802
+ @api_client.config.logger.debug 'Calling API: DefaultApi.create_user_badge ...'
803
+ end
804
+ # verify the required parameter 'tenant_id' is set
805
+ if @api_client.config.client_side_validation && tenant_id.nil?
806
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.create_user_badge"
807
+ end
808
+ # verify the required parameter 'create_user_badge_params' is set
809
+ if @api_client.config.client_side_validation && create_user_badge_params.nil?
810
+ fail ArgumentError, "Missing the required parameter 'create_user_badge_params' when calling DefaultApi.create_user_badge"
811
+ end
812
+ # resource path
813
+ local_var_path = '/api/v1/user-badges'
814
+
815
+ # query parameters
816
+ query_params = opts[:query_params] || {}
817
+ query_params[:'tenantId'] = tenant_id
818
+
819
+ # header parameters
820
+ header_params = opts[:header_params] || {}
821
+ # HTTP header 'Accept' (if needed)
822
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
823
+ # HTTP header 'Content-Type'
824
+ content_type = @api_client.select_header_content_type(['application/json'])
825
+ if !content_type.nil?
826
+ header_params['Content-Type'] = content_type
827
+ end
828
+
829
+ # form parameters
830
+ form_params = opts[:form_params] || {}
831
+
832
+ # http body (model)
833
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(create_user_badge_params)
834
+
835
+ # return_type
836
+ return_type = opts[:debug_return_type] || 'CreateUserBadge200Response'
837
+
838
+ # auth_names
839
+ auth_names = opts[:debug_auth_names] || ['api_key']
840
+
841
+ new_options = opts.merge(
842
+ :operation => :"DefaultApi.create_user_badge",
843
+ :header_params => header_params,
844
+ :query_params => query_params,
845
+ :form_params => form_params,
846
+ :body => post_body,
847
+ :auth_names => auth_names,
848
+ :return_type => return_type
849
+ )
850
+
851
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
852
+ if @api_client.config.debugging
853
+ @api_client.config.logger.debug "API called: DefaultApi#create_user_badge\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
854
+ end
855
+ return data, status_code, headers
856
+ end
857
+
858
+ # @param tenant_id [String]
859
+ # @param id [String]
860
+ # @param [Hash] opts the optional parameters
861
+ # @option opts [String] :context_user_id
862
+ # @option opts [Boolean] :is_live
863
+ # @return [DeleteComment200Response]
864
+ def delete_comment(tenant_id, id, opts = {})
865
+ data, _status_code, _headers = delete_comment_with_http_info(tenant_id, id, opts)
866
+ data
867
+ end
868
+
869
+ # @param tenant_id [String]
870
+ # @param id [String]
871
+ # @param [Hash] opts the optional parameters
872
+ # @option opts [String] :context_user_id
873
+ # @option opts [Boolean] :is_live
874
+ # @return [Array<(DeleteComment200Response, Integer, Hash)>] DeleteComment200Response data, response status code and response headers
875
+ def delete_comment_with_http_info(tenant_id, id, opts = {})
876
+ if @api_client.config.debugging
877
+ @api_client.config.logger.debug 'Calling API: DefaultApi.delete_comment ...'
878
+ end
879
+ # verify the required parameter 'tenant_id' is set
880
+ if @api_client.config.client_side_validation && tenant_id.nil?
881
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.delete_comment"
882
+ end
883
+ # verify the required parameter 'id' is set
884
+ if @api_client.config.client_side_validation && id.nil?
885
+ fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.delete_comment"
886
+ end
887
+ # resource path
888
+ local_var_path = '/api/v1/comments/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
889
+
890
+ # query parameters
891
+ query_params = opts[:query_params] || {}
892
+ query_params[:'tenantId'] = tenant_id
893
+ query_params[:'contextUserId'] = opts[:'context_user_id'] if !opts[:'context_user_id'].nil?
894
+ query_params[:'isLive'] = opts[:'is_live'] if !opts[:'is_live'].nil?
895
+
896
+ # header parameters
897
+ header_params = opts[:header_params] || {}
898
+ # HTTP header 'Accept' (if needed)
899
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
900
+
901
+ # form parameters
902
+ form_params = opts[:form_params] || {}
903
+
904
+ # http body (model)
905
+ post_body = opts[:debug_body]
906
+
907
+ # return_type
908
+ return_type = opts[:debug_return_type] || 'DeleteComment200Response'
909
+
910
+ # auth_names
911
+ auth_names = opts[:debug_auth_names] || ['api_key']
912
+
913
+ new_options = opts.merge(
914
+ :operation => :"DefaultApi.delete_comment",
915
+ :header_params => header_params,
916
+ :query_params => query_params,
917
+ :form_params => form_params,
918
+ :body => post_body,
919
+ :auth_names => auth_names,
920
+ :return_type => return_type
921
+ )
922
+
923
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
924
+ if @api_client.config.debugging
925
+ @api_client.config.logger.debug "API called: DefaultApi#delete_comment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
926
+ end
927
+ return data, status_code, headers
928
+ end
929
+
930
+ # @param tenant_id [String]
931
+ # @param domain [String]
932
+ # @param [Hash] opts the optional parameters
933
+ # @return [DeleteDomainConfig200Response]
934
+ def delete_domain_config(tenant_id, domain, opts = {})
935
+ data, _status_code, _headers = delete_domain_config_with_http_info(tenant_id, domain, opts)
936
+ data
937
+ end
938
+
939
+ # @param tenant_id [String]
940
+ # @param domain [String]
941
+ # @param [Hash] opts the optional parameters
942
+ # @return [Array<(DeleteDomainConfig200Response, Integer, Hash)>] DeleteDomainConfig200Response data, response status code and response headers
943
+ def delete_domain_config_with_http_info(tenant_id, domain, opts = {})
944
+ if @api_client.config.debugging
945
+ @api_client.config.logger.debug 'Calling API: DefaultApi.delete_domain_config ...'
946
+ end
947
+ # verify the required parameter 'tenant_id' is set
948
+ if @api_client.config.client_side_validation && tenant_id.nil?
949
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.delete_domain_config"
950
+ end
951
+ # verify the required parameter 'domain' is set
952
+ if @api_client.config.client_side_validation && domain.nil?
953
+ fail ArgumentError, "Missing the required parameter 'domain' when calling DefaultApi.delete_domain_config"
954
+ end
955
+ # resource path
956
+ local_var_path = '/api/v1/domain-configs/{domain}'.sub('{' + 'domain' + '}', CGI.escape(domain.to_s))
957
+
958
+ # query parameters
959
+ query_params = opts[:query_params] || {}
960
+ query_params[:'tenantId'] = tenant_id
961
+
962
+ # header parameters
963
+ header_params = opts[:header_params] || {}
964
+ # HTTP header 'Accept' (if needed)
965
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
966
+
967
+ # form parameters
968
+ form_params = opts[:form_params] || {}
969
+
970
+ # http body (model)
971
+ post_body = opts[:debug_body]
972
+
973
+ # return_type
974
+ return_type = opts[:debug_return_type] || 'DeleteDomainConfig200Response'
975
+
976
+ # auth_names
977
+ auth_names = opts[:debug_auth_names] || ['api_key']
978
+
979
+ new_options = opts.merge(
980
+ :operation => :"DefaultApi.delete_domain_config",
981
+ :header_params => header_params,
982
+ :query_params => query_params,
983
+ :form_params => form_params,
984
+ :body => post_body,
985
+ :auth_names => auth_names,
986
+ :return_type => return_type
987
+ )
988
+
989
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
990
+ if @api_client.config.debugging
991
+ @api_client.config.logger.debug "API called: DefaultApi#delete_domain_config\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
992
+ end
993
+ return data, status_code, headers
994
+ end
995
+
996
+ # @param tenant_id [String]
997
+ # @param id [String]
998
+ # @param [Hash] opts the optional parameters
999
+ # @return [DeletePageAPIResponse]
1000
+ def delete_page(tenant_id, id, opts = {})
1001
+ data, _status_code, _headers = delete_page_with_http_info(tenant_id, id, opts)
1002
+ data
1003
+ end
1004
+
1005
+ # @param tenant_id [String]
1006
+ # @param id [String]
1007
+ # @param [Hash] opts the optional parameters
1008
+ # @return [Array<(DeletePageAPIResponse, Integer, Hash)>] DeletePageAPIResponse data, response status code and response headers
1009
+ def delete_page_with_http_info(tenant_id, id, opts = {})
1010
+ if @api_client.config.debugging
1011
+ @api_client.config.logger.debug 'Calling API: DefaultApi.delete_page ...'
1012
+ end
1013
+ # verify the required parameter 'tenant_id' is set
1014
+ if @api_client.config.client_side_validation && tenant_id.nil?
1015
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.delete_page"
1016
+ end
1017
+ # verify the required parameter 'id' is set
1018
+ if @api_client.config.client_side_validation && id.nil?
1019
+ fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.delete_page"
1020
+ end
1021
+ # resource path
1022
+ local_var_path = '/api/v1/pages/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1023
+
1024
+ # query parameters
1025
+ query_params = opts[:query_params] || {}
1026
+ query_params[:'tenantId'] = tenant_id
1027
+
1028
+ # header parameters
1029
+ header_params = opts[:header_params] || {}
1030
+ # HTTP header 'Accept' (if needed)
1031
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1032
+
1033
+ # form parameters
1034
+ form_params = opts[:form_params] || {}
1035
+
1036
+ # http body (model)
1037
+ post_body = opts[:debug_body]
1038
+
1039
+ # return_type
1040
+ return_type = opts[:debug_return_type] || 'DeletePageAPIResponse'
1041
+
1042
+ # auth_names
1043
+ auth_names = opts[:debug_auth_names] || ['api_key']
1044
+
1045
+ new_options = opts.merge(
1046
+ :operation => :"DefaultApi.delete_page",
1047
+ :header_params => header_params,
1048
+ :query_params => query_params,
1049
+ :form_params => form_params,
1050
+ :body => post_body,
1051
+ :auth_names => auth_names,
1052
+ :return_type => return_type
1053
+ )
1054
+
1055
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
1056
+ if @api_client.config.debugging
1057
+ @api_client.config.logger.debug "API called: DefaultApi#delete_page\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1058
+ end
1059
+ return data, status_code, headers
1060
+ end
1061
+
1062
+ # @param tenant_id [String]
1063
+ # @param id [String]
1064
+ # @param [Hash] opts the optional parameters
1065
+ # @option opts [Boolean] :delete_comments
1066
+ # @option opts [String] :comment_delete_mode
1067
+ # @return [DeleteSSOUserAPIResponse]
1068
+ def delete_sso_user(tenant_id, id, opts = {})
1069
+ data, _status_code, _headers = delete_sso_user_with_http_info(tenant_id, id, opts)
1070
+ data
1071
+ end
1072
+
1073
+ # @param tenant_id [String]
1074
+ # @param id [String]
1075
+ # @param [Hash] opts the optional parameters
1076
+ # @option opts [Boolean] :delete_comments
1077
+ # @option opts [String] :comment_delete_mode
1078
+ # @return [Array<(DeleteSSOUserAPIResponse, Integer, Hash)>] DeleteSSOUserAPIResponse data, response status code and response headers
1079
+ def delete_sso_user_with_http_info(tenant_id, id, opts = {})
1080
+ if @api_client.config.debugging
1081
+ @api_client.config.logger.debug 'Calling API: DefaultApi.delete_sso_user ...'
1082
+ end
1083
+ # verify the required parameter 'tenant_id' is set
1084
+ if @api_client.config.client_side_validation && tenant_id.nil?
1085
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.delete_sso_user"
1086
+ end
1087
+ # verify the required parameter 'id' is set
1088
+ if @api_client.config.client_side_validation && id.nil?
1089
+ fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.delete_sso_user"
1090
+ end
1091
+ # resource path
1092
+ local_var_path = '/api/v1/sso-users/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1093
+
1094
+ # query parameters
1095
+ query_params = opts[:query_params] || {}
1096
+ query_params[:'tenantId'] = tenant_id
1097
+ query_params[:'deleteComments'] = opts[:'delete_comments'] if !opts[:'delete_comments'].nil?
1098
+ query_params[:'commentDeleteMode'] = opts[:'comment_delete_mode'] if !opts[:'comment_delete_mode'].nil?
1099
+
1100
+ # header parameters
1101
+ header_params = opts[:header_params] || {}
1102
+ # HTTP header 'Accept' (if needed)
1103
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1104
+
1105
+ # form parameters
1106
+ form_params = opts[:form_params] || {}
1107
+
1108
+ # http body (model)
1109
+ post_body = opts[:debug_body]
1110
+
1111
+ # return_type
1112
+ return_type = opts[:debug_return_type] || 'DeleteSSOUserAPIResponse'
1113
+
1114
+ # auth_names
1115
+ auth_names = opts[:debug_auth_names] || ['api_key']
1116
+
1117
+ new_options = opts.merge(
1118
+ :operation => :"DefaultApi.delete_sso_user",
1119
+ :header_params => header_params,
1120
+ :query_params => query_params,
1121
+ :form_params => form_params,
1122
+ :body => post_body,
1123
+ :auth_names => auth_names,
1124
+ :return_type => return_type
1125
+ )
1126
+
1127
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
1128
+ if @api_client.config.debugging
1129
+ @api_client.config.logger.debug "API called: DefaultApi#delete_sso_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1130
+ end
1131
+ return data, status_code, headers
1132
+ end
1133
+
1134
+ # @param tenant_id [String]
1135
+ # @param id [String]
1136
+ # @param [Hash] opts the optional parameters
1137
+ # @option opts [String] :user_id
1138
+ # @return [DeleteSubscriptionAPIResponse]
1139
+ def delete_subscription(tenant_id, id, opts = {})
1140
+ data, _status_code, _headers = delete_subscription_with_http_info(tenant_id, id, opts)
1141
+ data
1142
+ end
1143
+
1144
+ # @param tenant_id [String]
1145
+ # @param id [String]
1146
+ # @param [Hash] opts the optional parameters
1147
+ # @option opts [String] :user_id
1148
+ # @return [Array<(DeleteSubscriptionAPIResponse, Integer, Hash)>] DeleteSubscriptionAPIResponse data, response status code and response headers
1149
+ def delete_subscription_with_http_info(tenant_id, id, opts = {})
1150
+ if @api_client.config.debugging
1151
+ @api_client.config.logger.debug 'Calling API: DefaultApi.delete_subscription ...'
1152
+ end
1153
+ # verify the required parameter 'tenant_id' is set
1154
+ if @api_client.config.client_side_validation && tenant_id.nil?
1155
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.delete_subscription"
1156
+ end
1157
+ # verify the required parameter 'id' is set
1158
+ if @api_client.config.client_side_validation && id.nil?
1159
+ fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.delete_subscription"
1160
+ end
1161
+ # resource path
1162
+ local_var_path = '/api/v1/subscriptions/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1163
+
1164
+ # query parameters
1165
+ query_params = opts[:query_params] || {}
1166
+ query_params[:'tenantId'] = tenant_id
1167
+ query_params[:'userId'] = opts[:'user_id'] if !opts[:'user_id'].nil?
1168
+
1169
+ # header parameters
1170
+ header_params = opts[:header_params] || {}
1171
+ # HTTP header 'Accept' (if needed)
1172
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1173
+
1174
+ # form parameters
1175
+ form_params = opts[:form_params] || {}
1176
+
1177
+ # http body (model)
1178
+ post_body = opts[:debug_body]
1179
+
1180
+ # return_type
1181
+ return_type = opts[:debug_return_type] || 'DeleteSubscriptionAPIResponse'
1182
+
1183
+ # auth_names
1184
+ auth_names = opts[:debug_auth_names] || ['api_key']
1185
+
1186
+ new_options = opts.merge(
1187
+ :operation => :"DefaultApi.delete_subscription",
1188
+ :header_params => header_params,
1189
+ :query_params => query_params,
1190
+ :form_params => form_params,
1191
+ :body => post_body,
1192
+ :auth_names => auth_names,
1193
+ :return_type => return_type
1194
+ )
1195
+
1196
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
1197
+ if @api_client.config.debugging
1198
+ @api_client.config.logger.debug "API called: DefaultApi#delete_subscription\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1199
+ end
1200
+ return data, status_code, headers
1201
+ end
1202
+
1203
+ # @param tenant_id [String]
1204
+ # @param id [String]
1205
+ # @param [Hash] opts the optional parameters
1206
+ # @return [UpdateUserBadge200Response]
1207
+ def delete_user_badge(tenant_id, id, opts = {})
1208
+ data, _status_code, _headers = delete_user_badge_with_http_info(tenant_id, id, opts)
1209
+ data
1210
+ end
1211
+
1212
+ # @param tenant_id [String]
1213
+ # @param id [String]
1214
+ # @param [Hash] opts the optional parameters
1215
+ # @return [Array<(UpdateUserBadge200Response, Integer, Hash)>] UpdateUserBadge200Response data, response status code and response headers
1216
+ def delete_user_badge_with_http_info(tenant_id, id, opts = {})
1217
+ if @api_client.config.debugging
1218
+ @api_client.config.logger.debug 'Calling API: DefaultApi.delete_user_badge ...'
1219
+ end
1220
+ # verify the required parameter 'tenant_id' is set
1221
+ if @api_client.config.client_side_validation && tenant_id.nil?
1222
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.delete_user_badge"
1223
+ end
1224
+ # verify the required parameter 'id' is set
1225
+ if @api_client.config.client_side_validation && id.nil?
1226
+ fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.delete_user_badge"
1227
+ end
1228
+ # resource path
1229
+ local_var_path = '/api/v1/user-badges/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1230
+
1231
+ # query parameters
1232
+ query_params = opts[:query_params] || {}
1233
+ query_params[:'tenantId'] = tenant_id
1234
+
1235
+ # header parameters
1236
+ header_params = opts[:header_params] || {}
1237
+ # HTTP header 'Accept' (if needed)
1238
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1239
+
1240
+ # form parameters
1241
+ form_params = opts[:form_params] || {}
1242
+
1243
+ # http body (model)
1244
+ post_body = opts[:debug_body]
1245
+
1246
+ # return_type
1247
+ return_type = opts[:debug_return_type] || 'UpdateUserBadge200Response'
1248
+
1249
+ # auth_names
1250
+ auth_names = opts[:debug_auth_names] || ['api_key']
1251
+
1252
+ new_options = opts.merge(
1253
+ :operation => :"DefaultApi.delete_user_badge",
1254
+ :header_params => header_params,
1255
+ :query_params => query_params,
1256
+ :form_params => form_params,
1257
+ :body => post_body,
1258
+ :auth_names => auth_names,
1259
+ :return_type => return_type
1260
+ )
1261
+
1262
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
1263
+ if @api_client.config.debugging
1264
+ @api_client.config.logger.debug "API called: DefaultApi#delete_user_badge\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1265
+ end
1266
+ return data, status_code, headers
1267
+ end
1268
+
1269
+ # @param tenant_id [String]
1270
+ # @param id [String]
1271
+ # @param [Hash] opts the optional parameters
1272
+ # @option opts [String] :user_id
1273
+ # @option opts [String] :anon_user_id
1274
+ # @return [FlagComment200Response]
1275
+ def flag_comment(tenant_id, id, opts = {})
1276
+ data, _status_code, _headers = flag_comment_with_http_info(tenant_id, id, opts)
1277
+ data
1278
+ end
1279
+
1280
+ # @param tenant_id [String]
1281
+ # @param id [String]
1282
+ # @param [Hash] opts the optional parameters
1283
+ # @option opts [String] :user_id
1284
+ # @option opts [String] :anon_user_id
1285
+ # @return [Array<(FlagComment200Response, Integer, Hash)>] FlagComment200Response data, response status code and response headers
1286
+ def flag_comment_with_http_info(tenant_id, id, opts = {})
1287
+ if @api_client.config.debugging
1288
+ @api_client.config.logger.debug 'Calling API: DefaultApi.flag_comment ...'
1289
+ end
1290
+ # verify the required parameter 'tenant_id' is set
1291
+ if @api_client.config.client_side_validation && tenant_id.nil?
1292
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.flag_comment"
1293
+ end
1294
+ # verify the required parameter 'id' is set
1295
+ if @api_client.config.client_side_validation && id.nil?
1296
+ fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.flag_comment"
1297
+ end
1298
+ # resource path
1299
+ local_var_path = '/api/v1/comments/{id}/flag'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1300
+
1301
+ # query parameters
1302
+ query_params = opts[:query_params] || {}
1303
+ query_params[:'tenantId'] = tenant_id
1304
+ query_params[:'userId'] = opts[:'user_id'] if !opts[:'user_id'].nil?
1305
+ query_params[:'anonUserId'] = opts[:'anon_user_id'] if !opts[:'anon_user_id'].nil?
1306
+
1307
+ # header parameters
1308
+ header_params = opts[:header_params] || {}
1309
+ # HTTP header 'Accept' (if needed)
1310
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1311
+
1312
+ # form parameters
1313
+ form_params = opts[:form_params] || {}
1314
+
1315
+ # http body (model)
1316
+ post_body = opts[:debug_body]
1317
+
1318
+ # return_type
1319
+ return_type = opts[:debug_return_type] || 'FlagComment200Response'
1320
+
1321
+ # auth_names
1322
+ auth_names = opts[:debug_auth_names] || ['api_key']
1323
+
1324
+ new_options = opts.merge(
1325
+ :operation => :"DefaultApi.flag_comment",
1326
+ :header_params => header_params,
1327
+ :query_params => query_params,
1328
+ :form_params => form_params,
1329
+ :body => post_body,
1330
+ :auth_names => auth_names,
1331
+ :return_type => return_type
1332
+ )
1333
+
1334
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1335
+ if @api_client.config.debugging
1336
+ @api_client.config.logger.debug "API called: DefaultApi#flag_comment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1337
+ end
1338
+ return data, status_code, headers
1339
+ end
1340
+
1341
+ # @param tenant_id [String]
1342
+ # @param [Hash] opts the optional parameters
1343
+ # @option opts [Float] :limit
1344
+ # @option opts [Float] :skip
1345
+ # @option opts [SORTDIR] :order
1346
+ # @option opts [Float] :after
1347
+ # @option opts [Float] :before
1348
+ # @return [GetAuditLogs200Response]
1349
+ def get_audit_logs(tenant_id, opts = {})
1350
+ data, _status_code, _headers = get_audit_logs_with_http_info(tenant_id, opts)
1351
+ data
1352
+ end
1353
+
1354
+ # @param tenant_id [String]
1355
+ # @param [Hash] opts the optional parameters
1356
+ # @option opts [Float] :limit
1357
+ # @option opts [Float] :skip
1358
+ # @option opts [SORTDIR] :order
1359
+ # @option opts [Float] :after
1360
+ # @option opts [Float] :before
1361
+ # @return [Array<(GetAuditLogs200Response, Integer, Hash)>] GetAuditLogs200Response data, response status code and response headers
1362
+ def get_audit_logs_with_http_info(tenant_id, opts = {})
1363
+ if @api_client.config.debugging
1364
+ @api_client.config.logger.debug 'Calling API: DefaultApi.get_audit_logs ...'
1365
+ end
1366
+ # verify the required parameter 'tenant_id' is set
1367
+ if @api_client.config.client_side_validation && tenant_id.nil?
1368
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_audit_logs"
1369
+ end
1370
+ # resource path
1371
+ local_var_path = '/api/v1/audit-logs'
1372
+
1373
+ # query parameters
1374
+ query_params = opts[:query_params] || {}
1375
+ query_params[:'tenantId'] = tenant_id
1376
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1377
+ query_params[:'skip'] = opts[:'skip'] if !opts[:'skip'].nil?
1378
+ query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
1379
+ query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
1380
+ query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
1381
+
1382
+ # header parameters
1383
+ header_params = opts[:header_params] || {}
1384
+ # HTTP header 'Accept' (if needed)
1385
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1386
+
1387
+ # form parameters
1388
+ form_params = opts[:form_params] || {}
1389
+
1390
+ # http body (model)
1391
+ post_body = opts[:debug_body]
1392
+
1393
+ # return_type
1394
+ return_type = opts[:debug_return_type] || 'GetAuditLogs200Response'
1395
+
1396
+ # auth_names
1397
+ auth_names = opts[:debug_auth_names] || ['api_key']
1398
+
1399
+ new_options = opts.merge(
1400
+ :operation => :"DefaultApi.get_audit_logs",
1401
+ :header_params => header_params,
1402
+ :query_params => query_params,
1403
+ :form_params => form_params,
1404
+ :body => post_body,
1405
+ :auth_names => auth_names,
1406
+ :return_type => return_type
1407
+ )
1408
+
1409
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1410
+ if @api_client.config.debugging
1411
+ @api_client.config.logger.debug "API called: DefaultApi#get_audit_logs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1412
+ end
1413
+ return data, status_code, headers
1414
+ end
1415
+
1416
+ # @param tenant_id [String]
1417
+ # @param id [String]
1418
+ # @param [Hash] opts the optional parameters
1419
+ # @return [GetComment200Response]
1420
+ def get_comment(tenant_id, id, opts = {})
1421
+ data, _status_code, _headers = get_comment_with_http_info(tenant_id, id, opts)
1422
+ data
1423
+ end
1424
+
1425
+ # @param tenant_id [String]
1426
+ # @param id [String]
1427
+ # @param [Hash] opts the optional parameters
1428
+ # @return [Array<(GetComment200Response, Integer, Hash)>] GetComment200Response data, response status code and response headers
1429
+ def get_comment_with_http_info(tenant_id, id, opts = {})
1430
+ if @api_client.config.debugging
1431
+ @api_client.config.logger.debug 'Calling API: DefaultApi.get_comment ...'
1432
+ end
1433
+ # verify the required parameter 'tenant_id' is set
1434
+ if @api_client.config.client_side_validation && tenant_id.nil?
1435
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_comment"
1436
+ end
1437
+ # verify the required parameter 'id' is set
1438
+ if @api_client.config.client_side_validation && id.nil?
1439
+ fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.get_comment"
1440
+ end
1441
+ # resource path
1442
+ local_var_path = '/api/v1/comments/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1443
+
1444
+ # query parameters
1445
+ query_params = opts[:query_params] || {}
1446
+ query_params[:'tenantId'] = tenant_id
1447
+
1448
+ # header parameters
1449
+ header_params = opts[:header_params] || {}
1450
+ # HTTP header 'Accept' (if needed)
1451
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1452
+
1453
+ # form parameters
1454
+ form_params = opts[:form_params] || {}
1455
+
1456
+ # http body (model)
1457
+ post_body = opts[:debug_body]
1458
+
1459
+ # return_type
1460
+ return_type = opts[:debug_return_type] || 'GetComment200Response'
1461
+
1462
+ # auth_names
1463
+ auth_names = opts[:debug_auth_names] || ['api_key']
1464
+
1465
+ new_options = opts.merge(
1466
+ :operation => :"DefaultApi.get_comment",
1467
+ :header_params => header_params,
1468
+ :query_params => query_params,
1469
+ :form_params => form_params,
1470
+ :body => post_body,
1471
+ :auth_names => auth_names,
1472
+ :return_type => return_type
1473
+ )
1474
+
1475
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1476
+ if @api_client.config.debugging
1477
+ @api_client.config.logger.debug "API called: DefaultApi#get_comment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1478
+ end
1479
+ return data, status_code, headers
1480
+ end
1481
+
1482
+ # @param tenant_id [String]
1483
+ # @param [Hash] opts the optional parameters
1484
+ # @option opts [Integer] :page
1485
+ # @option opts [Integer] :limit
1486
+ # @option opts [Integer] :skip
1487
+ # @option opts [Boolean] :as_tree
1488
+ # @option opts [Integer] :skip_children
1489
+ # @option opts [Integer] :limit_children
1490
+ # @option opts [Integer] :max_tree_depth
1491
+ # @option opts [String] :url_id
1492
+ # @option opts [String] :user_id
1493
+ # @option opts [String] :anon_user_id
1494
+ # @option opts [String] :context_user_id
1495
+ # @option opts [String] :hash_tag
1496
+ # @option opts [String] :parent_id
1497
+ # @option opts [SortDirections] :direction
1498
+ # @return [GetComments200Response]
1499
+ def get_comments(tenant_id, opts = {})
1500
+ data, _status_code, _headers = get_comments_with_http_info(tenant_id, opts)
1501
+ data
1502
+ end
1503
+
1504
+ # @param tenant_id [String]
1505
+ # @param [Hash] opts the optional parameters
1506
+ # @option opts [Integer] :page
1507
+ # @option opts [Integer] :limit
1508
+ # @option opts [Integer] :skip
1509
+ # @option opts [Boolean] :as_tree
1510
+ # @option opts [Integer] :skip_children
1511
+ # @option opts [Integer] :limit_children
1512
+ # @option opts [Integer] :max_tree_depth
1513
+ # @option opts [String] :url_id
1514
+ # @option opts [String] :user_id
1515
+ # @option opts [String] :anon_user_id
1516
+ # @option opts [String] :context_user_id
1517
+ # @option opts [String] :hash_tag
1518
+ # @option opts [String] :parent_id
1519
+ # @option opts [SortDirections] :direction
1520
+ # @return [Array<(GetComments200Response, Integer, Hash)>] GetComments200Response data, response status code and response headers
1521
+ def get_comments_with_http_info(tenant_id, opts = {})
1522
+ if @api_client.config.debugging
1523
+ @api_client.config.logger.debug 'Calling API: DefaultApi.get_comments ...'
1524
+ end
1525
+ # verify the required parameter 'tenant_id' is set
1526
+ if @api_client.config.client_side_validation && tenant_id.nil?
1527
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_comments"
1528
+ end
1529
+ # resource path
1530
+ local_var_path = '/api/v1/comments'
1531
+
1532
+ # query parameters
1533
+ query_params = opts[:query_params] || {}
1534
+ query_params[:'tenantId'] = tenant_id
1535
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
1536
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1537
+ query_params[:'skip'] = opts[:'skip'] if !opts[:'skip'].nil?
1538
+ query_params[:'asTree'] = opts[:'as_tree'] if !opts[:'as_tree'].nil?
1539
+ query_params[:'skipChildren'] = opts[:'skip_children'] if !opts[:'skip_children'].nil?
1540
+ query_params[:'limitChildren'] = opts[:'limit_children'] if !opts[:'limit_children'].nil?
1541
+ query_params[:'maxTreeDepth'] = opts[:'max_tree_depth'] if !opts[:'max_tree_depth'].nil?
1542
+ query_params[:'urlId'] = opts[:'url_id'] if !opts[:'url_id'].nil?
1543
+ query_params[:'userId'] = opts[:'user_id'] if !opts[:'user_id'].nil?
1544
+ query_params[:'anonUserId'] = opts[:'anon_user_id'] if !opts[:'anon_user_id'].nil?
1545
+ query_params[:'contextUserId'] = opts[:'context_user_id'] if !opts[:'context_user_id'].nil?
1546
+ query_params[:'hashTag'] = opts[:'hash_tag'] if !opts[:'hash_tag'].nil?
1547
+ query_params[:'parentId'] = opts[:'parent_id'] if !opts[:'parent_id'].nil?
1548
+ query_params[:'direction'] = opts[:'direction'] if !opts[:'direction'].nil?
1549
+
1550
+ # header parameters
1551
+ header_params = opts[:header_params] || {}
1552
+ # HTTP header 'Accept' (if needed)
1553
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1554
+
1555
+ # form parameters
1556
+ form_params = opts[:form_params] || {}
1557
+
1558
+ # http body (model)
1559
+ post_body = opts[:debug_body]
1560
+
1561
+ # return_type
1562
+ return_type = opts[:debug_return_type] || 'GetComments200Response'
1563
+
1564
+ # auth_names
1565
+ auth_names = opts[:debug_auth_names] || ['api_key']
1566
+
1567
+ new_options = opts.merge(
1568
+ :operation => :"DefaultApi.get_comments",
1569
+ :header_params => header_params,
1570
+ :query_params => query_params,
1571
+ :form_params => form_params,
1572
+ :body => post_body,
1573
+ :auth_names => auth_names,
1574
+ :return_type => return_type
1575
+ )
1576
+
1577
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1578
+ if @api_client.config.debugging
1579
+ @api_client.config.logger.debug "API called: DefaultApi#get_comments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1580
+ end
1581
+ return data, status_code, headers
1582
+ end
1583
+
1584
+ # @param tenant_id [String]
1585
+ # @param domain [String]
1586
+ # @param [Hash] opts the optional parameters
1587
+ # @return [GetDomainConfig200Response]
1588
+ def get_domain_config(tenant_id, domain, opts = {})
1589
+ data, _status_code, _headers = get_domain_config_with_http_info(tenant_id, domain, opts)
1590
+ data
1591
+ end
1592
+
1593
+ # @param tenant_id [String]
1594
+ # @param domain [String]
1595
+ # @param [Hash] opts the optional parameters
1596
+ # @return [Array<(GetDomainConfig200Response, Integer, Hash)>] GetDomainConfig200Response data, response status code and response headers
1597
+ def get_domain_config_with_http_info(tenant_id, domain, opts = {})
1598
+ if @api_client.config.debugging
1599
+ @api_client.config.logger.debug 'Calling API: DefaultApi.get_domain_config ...'
1600
+ end
1601
+ # verify the required parameter 'tenant_id' is set
1602
+ if @api_client.config.client_side_validation && tenant_id.nil?
1603
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_domain_config"
1604
+ end
1605
+ # verify the required parameter 'domain' is set
1606
+ if @api_client.config.client_side_validation && domain.nil?
1607
+ fail ArgumentError, "Missing the required parameter 'domain' when calling DefaultApi.get_domain_config"
1608
+ end
1609
+ # resource path
1610
+ local_var_path = '/api/v1/domain-configs/{domain}'.sub('{' + 'domain' + '}', CGI.escape(domain.to_s))
1611
+
1612
+ # query parameters
1613
+ query_params = opts[:query_params] || {}
1614
+ query_params[:'tenantId'] = tenant_id
1615
+
1616
+ # header parameters
1617
+ header_params = opts[:header_params] || {}
1618
+ # HTTP header 'Accept' (if needed)
1619
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1620
+
1621
+ # form parameters
1622
+ form_params = opts[:form_params] || {}
1623
+
1624
+ # http body (model)
1625
+ post_body = opts[:debug_body]
1626
+
1627
+ # return_type
1628
+ return_type = opts[:debug_return_type] || 'GetDomainConfig200Response'
1629
+
1630
+ # auth_names
1631
+ auth_names = opts[:debug_auth_names] || ['api_key']
1632
+
1633
+ new_options = opts.merge(
1634
+ :operation => :"DefaultApi.get_domain_config",
1635
+ :header_params => header_params,
1636
+ :query_params => query_params,
1637
+ :form_params => form_params,
1638
+ :body => post_body,
1639
+ :auth_names => auth_names,
1640
+ :return_type => return_type
1641
+ )
1642
+
1643
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1644
+ if @api_client.config.debugging
1645
+ @api_client.config.logger.debug "API called: DefaultApi#get_domain_config\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1646
+ end
1647
+ return data, status_code, headers
1648
+ end
1649
+
1650
+ # @param tenant_id [String]
1651
+ # @param [Hash] opts the optional parameters
1652
+ # @return [GetDomainConfigs200Response]
1653
+ def get_domain_configs(tenant_id, opts = {})
1654
+ data, _status_code, _headers = get_domain_configs_with_http_info(tenant_id, opts)
1655
+ data
1656
+ end
1657
+
1658
+ # @param tenant_id [String]
1659
+ # @param [Hash] opts the optional parameters
1660
+ # @return [Array<(GetDomainConfigs200Response, Integer, Hash)>] GetDomainConfigs200Response data, response status code and response headers
1661
+ def get_domain_configs_with_http_info(tenant_id, opts = {})
1662
+ if @api_client.config.debugging
1663
+ @api_client.config.logger.debug 'Calling API: DefaultApi.get_domain_configs ...'
1664
+ end
1665
+ # verify the required parameter 'tenant_id' is set
1666
+ if @api_client.config.client_side_validation && tenant_id.nil?
1667
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_domain_configs"
1668
+ end
1669
+ # resource path
1670
+ local_var_path = '/api/v1/domain-configs'
1671
+
1672
+ # query parameters
1673
+ query_params = opts[:query_params] || {}
1674
+ query_params[:'tenantId'] = tenant_id
1675
+
1676
+ # header parameters
1677
+ header_params = opts[:header_params] || {}
1678
+ # HTTP header 'Accept' (if needed)
1679
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1680
+
1681
+ # form parameters
1682
+ form_params = opts[:form_params] || {}
1683
+
1684
+ # http body (model)
1685
+ post_body = opts[:debug_body]
1686
+
1687
+ # return_type
1688
+ return_type = opts[:debug_return_type] || 'GetDomainConfigs200Response'
1689
+
1690
+ # auth_names
1691
+ auth_names = opts[:debug_auth_names] || ['api_key']
1692
+
1693
+ new_options = opts.merge(
1694
+ :operation => :"DefaultApi.get_domain_configs",
1695
+ :header_params => header_params,
1696
+ :query_params => query_params,
1697
+ :form_params => form_params,
1698
+ :body => post_body,
1699
+ :auth_names => auth_names,
1700
+ :return_type => return_type
1701
+ )
1702
+
1703
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1704
+ if @api_client.config.debugging
1705
+ @api_client.config.logger.debug "API called: DefaultApi#get_domain_configs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1706
+ end
1707
+ return data, status_code, headers
1708
+ end
1709
+
1710
+ # req tenantId afterId
1711
+ # @param tenant_id [String]
1712
+ # @param [Hash] opts the optional parameters
1713
+ # @option opts [String] :after_id
1714
+ # @option opts [Integer] :limit
1715
+ # @option opts [Array<String>] :tags
1716
+ # @return [GetFeedPosts200Response]
1717
+ def get_feed_posts(tenant_id, opts = {})
1718
+ data, _status_code, _headers = get_feed_posts_with_http_info(tenant_id, opts)
1719
+ data
1720
+ end
1721
+
1722
+ # req tenantId afterId
1723
+ # @param tenant_id [String]
1724
+ # @param [Hash] opts the optional parameters
1725
+ # @option opts [String] :after_id
1726
+ # @option opts [Integer] :limit
1727
+ # @option opts [Array<String>] :tags
1728
+ # @return [Array<(GetFeedPosts200Response, Integer, Hash)>] GetFeedPosts200Response data, response status code and response headers
1729
+ def get_feed_posts_with_http_info(tenant_id, opts = {})
1730
+ if @api_client.config.debugging
1731
+ @api_client.config.logger.debug 'Calling API: DefaultApi.get_feed_posts ...'
1732
+ end
1733
+ # verify the required parameter 'tenant_id' is set
1734
+ if @api_client.config.client_side_validation && tenant_id.nil?
1735
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_feed_posts"
1736
+ end
1737
+ # resource path
1738
+ local_var_path = '/api/v1/feed-posts'
1739
+
1740
+ # query parameters
1741
+ query_params = opts[:query_params] || {}
1742
+ query_params[:'tenantId'] = tenant_id
1743
+ query_params[:'afterId'] = opts[:'after_id'] if !opts[:'after_id'].nil?
1744
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1745
+ query_params[:'tags'] = @api_client.build_collection_param(opts[:'tags'], :multi) if !opts[:'tags'].nil?
1746
+
1747
+ # header parameters
1748
+ header_params = opts[:header_params] || {}
1749
+ # HTTP header 'Accept' (if needed)
1750
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1751
+
1752
+ # form parameters
1753
+ form_params = opts[:form_params] || {}
1754
+
1755
+ # http body (model)
1756
+ post_body = opts[:debug_body]
1757
+
1758
+ # return_type
1759
+ return_type = opts[:debug_return_type] || 'GetFeedPosts200Response'
1760
+
1761
+ # auth_names
1762
+ auth_names = opts[:debug_auth_names] || ['api_key']
1763
+
1764
+ new_options = opts.merge(
1765
+ :operation => :"DefaultApi.get_feed_posts",
1766
+ :header_params => header_params,
1767
+ :query_params => query_params,
1768
+ :form_params => form_params,
1769
+ :body => post_body,
1770
+ :auth_names => auth_names,
1771
+ :return_type => return_type
1772
+ )
1773
+
1774
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1775
+ if @api_client.config.debugging
1776
+ @api_client.config.logger.debug "API called: DefaultApi#get_feed_posts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1777
+ end
1778
+ return data, status_code, headers
1779
+ end
1780
+
1781
+ # @param tenant_id [String]
1782
+ # @param url_id [String]
1783
+ # @param [Hash] opts the optional parameters
1784
+ # @return [GetPageByURLIdAPIResponse]
1785
+ def get_page_by_urlid(tenant_id, url_id, opts = {})
1786
+ data, _status_code, _headers = get_page_by_urlid_with_http_info(tenant_id, url_id, opts)
1787
+ data
1788
+ end
1789
+
1790
+ # @param tenant_id [String]
1791
+ # @param url_id [String]
1792
+ # @param [Hash] opts the optional parameters
1793
+ # @return [Array<(GetPageByURLIdAPIResponse, Integer, Hash)>] GetPageByURLIdAPIResponse data, response status code and response headers
1794
+ def get_page_by_urlid_with_http_info(tenant_id, url_id, opts = {})
1795
+ if @api_client.config.debugging
1796
+ @api_client.config.logger.debug 'Calling API: DefaultApi.get_page_by_urlid ...'
1797
+ end
1798
+ # verify the required parameter 'tenant_id' is set
1799
+ if @api_client.config.client_side_validation && tenant_id.nil?
1800
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_page_by_urlid"
1801
+ end
1802
+ # verify the required parameter 'url_id' is set
1803
+ if @api_client.config.client_side_validation && url_id.nil?
1804
+ fail ArgumentError, "Missing the required parameter 'url_id' when calling DefaultApi.get_page_by_urlid"
1805
+ end
1806
+ # resource path
1807
+ local_var_path = '/api/v1/pages/by-url-id'
1808
+
1809
+ # query parameters
1810
+ query_params = opts[:query_params] || {}
1811
+ query_params[:'tenantId'] = tenant_id
1812
+ query_params[:'urlId'] = url_id
1813
+
1814
+ # header parameters
1815
+ header_params = opts[:header_params] || {}
1816
+ # HTTP header 'Accept' (if needed)
1817
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1818
+
1819
+ # form parameters
1820
+ form_params = opts[:form_params] || {}
1821
+
1822
+ # http body (model)
1823
+ post_body = opts[:debug_body]
1824
+
1825
+ # return_type
1826
+ return_type = opts[:debug_return_type] || 'GetPageByURLIdAPIResponse'
1827
+
1828
+ # auth_names
1829
+ auth_names = opts[:debug_auth_names] || ['api_key']
1830
+
1831
+ new_options = opts.merge(
1832
+ :operation => :"DefaultApi.get_page_by_urlid",
1833
+ :header_params => header_params,
1834
+ :query_params => query_params,
1835
+ :form_params => form_params,
1836
+ :body => post_body,
1837
+ :auth_names => auth_names,
1838
+ :return_type => return_type
1839
+ )
1840
+
1841
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1842
+ if @api_client.config.debugging
1843
+ @api_client.config.logger.debug "API called: DefaultApi#get_page_by_urlid\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1844
+ end
1845
+ return data, status_code, headers
1846
+ end
1847
+
1848
+ # @param tenant_id [String]
1849
+ # @param [Hash] opts the optional parameters
1850
+ # @return [GetPagesAPIResponse]
1851
+ def get_pages(tenant_id, opts = {})
1852
+ data, _status_code, _headers = get_pages_with_http_info(tenant_id, opts)
1853
+ data
1854
+ end
1855
+
1856
+ # @param tenant_id [String]
1857
+ # @param [Hash] opts the optional parameters
1858
+ # @return [Array<(GetPagesAPIResponse, Integer, Hash)>] GetPagesAPIResponse data, response status code and response headers
1859
+ def get_pages_with_http_info(tenant_id, opts = {})
1860
+ if @api_client.config.debugging
1861
+ @api_client.config.logger.debug 'Calling API: DefaultApi.get_pages ...'
1862
+ end
1863
+ # verify the required parameter 'tenant_id' is set
1864
+ if @api_client.config.client_side_validation && tenant_id.nil?
1865
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_pages"
1866
+ end
1867
+ # resource path
1868
+ local_var_path = '/api/v1/pages'
1869
+
1870
+ # query parameters
1871
+ query_params = opts[:query_params] || {}
1872
+ query_params[:'tenantId'] = tenant_id
1873
+
1874
+ # header parameters
1875
+ header_params = opts[:header_params] || {}
1876
+ # HTTP header 'Accept' (if needed)
1877
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1878
+
1879
+ # form parameters
1880
+ form_params = opts[:form_params] || {}
1881
+
1882
+ # http body (model)
1883
+ post_body = opts[:debug_body]
1884
+
1885
+ # return_type
1886
+ return_type = opts[:debug_return_type] || 'GetPagesAPIResponse'
1887
+
1888
+ # auth_names
1889
+ auth_names = opts[:debug_auth_names] || ['api_key']
1890
+
1891
+ new_options = opts.merge(
1892
+ :operation => :"DefaultApi.get_pages",
1893
+ :header_params => header_params,
1894
+ :query_params => query_params,
1895
+ :form_params => form_params,
1896
+ :body => post_body,
1897
+ :auth_names => auth_names,
1898
+ :return_type => return_type
1899
+ )
1900
+
1901
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1902
+ if @api_client.config.debugging
1903
+ @api_client.config.logger.debug "API called: DefaultApi#get_pages\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1904
+ end
1905
+ return data, status_code, headers
1906
+ end
1907
+
1908
+ # @param tenant_id [String]
1909
+ # @param email [String]
1910
+ # @param [Hash] opts the optional parameters
1911
+ # @return [GetSSOUserByEmailAPIResponse]
1912
+ def get_sso_user_by_email(tenant_id, email, opts = {})
1913
+ data, _status_code, _headers = get_sso_user_by_email_with_http_info(tenant_id, email, opts)
1914
+ data
1915
+ end
1916
+
1917
+ # @param tenant_id [String]
1918
+ # @param email [String]
1919
+ # @param [Hash] opts the optional parameters
1920
+ # @return [Array<(GetSSOUserByEmailAPIResponse, Integer, Hash)>] GetSSOUserByEmailAPIResponse data, response status code and response headers
1921
+ def get_sso_user_by_email_with_http_info(tenant_id, email, opts = {})
1922
+ if @api_client.config.debugging
1923
+ @api_client.config.logger.debug 'Calling API: DefaultApi.get_sso_user_by_email ...'
1924
+ end
1925
+ # verify the required parameter 'tenant_id' is set
1926
+ if @api_client.config.client_side_validation && tenant_id.nil?
1927
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_sso_user_by_email"
1928
+ end
1929
+ # verify the required parameter 'email' is set
1930
+ if @api_client.config.client_side_validation && email.nil?
1931
+ fail ArgumentError, "Missing the required parameter 'email' when calling DefaultApi.get_sso_user_by_email"
1932
+ end
1933
+ # resource path
1934
+ local_var_path = '/api/v1/sso-users/by-email/{email}'.sub('{' + 'email' + '}', CGI.escape(email.to_s))
1935
+
1936
+ # query parameters
1937
+ query_params = opts[:query_params] || {}
1938
+ query_params[:'tenantId'] = tenant_id
1939
+
1940
+ # header parameters
1941
+ header_params = opts[:header_params] || {}
1942
+ # HTTP header 'Accept' (if needed)
1943
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1944
+
1945
+ # form parameters
1946
+ form_params = opts[:form_params] || {}
1947
+
1948
+ # http body (model)
1949
+ post_body = opts[:debug_body]
1950
+
1951
+ # return_type
1952
+ return_type = opts[:debug_return_type] || 'GetSSOUserByEmailAPIResponse'
1953
+
1954
+ # auth_names
1955
+ auth_names = opts[:debug_auth_names] || ['api_key']
1956
+
1957
+ new_options = opts.merge(
1958
+ :operation => :"DefaultApi.get_sso_user_by_email",
1959
+ :header_params => header_params,
1960
+ :query_params => query_params,
1961
+ :form_params => form_params,
1962
+ :body => post_body,
1963
+ :auth_names => auth_names,
1964
+ :return_type => return_type
1965
+ )
1966
+
1967
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1968
+ if @api_client.config.debugging
1969
+ @api_client.config.logger.debug "API called: DefaultApi#get_sso_user_by_email\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1970
+ end
1971
+ return data, status_code, headers
1972
+ end
1973
+
1974
+ # @param tenant_id [String]
1975
+ # @param id [String]
1976
+ # @param [Hash] opts the optional parameters
1977
+ # @return [GetSSOUserByIdAPIResponse]
1978
+ def get_sso_user_by_id(tenant_id, id, opts = {})
1979
+ data, _status_code, _headers = get_sso_user_by_id_with_http_info(tenant_id, id, opts)
1980
+ data
1981
+ end
1982
+
1983
+ # @param tenant_id [String]
1984
+ # @param id [String]
1985
+ # @param [Hash] opts the optional parameters
1986
+ # @return [Array<(GetSSOUserByIdAPIResponse, Integer, Hash)>] GetSSOUserByIdAPIResponse data, response status code and response headers
1987
+ def get_sso_user_by_id_with_http_info(tenant_id, id, opts = {})
1988
+ if @api_client.config.debugging
1989
+ @api_client.config.logger.debug 'Calling API: DefaultApi.get_sso_user_by_id ...'
1990
+ end
1991
+ # verify the required parameter 'tenant_id' is set
1992
+ if @api_client.config.client_side_validation && tenant_id.nil?
1993
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_sso_user_by_id"
1994
+ end
1995
+ # verify the required parameter 'id' is set
1996
+ if @api_client.config.client_side_validation && id.nil?
1997
+ fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.get_sso_user_by_id"
1998
+ end
1999
+ # resource path
2000
+ local_var_path = '/api/v1/sso-users/by-id/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
2001
+
2002
+ # query parameters
2003
+ query_params = opts[:query_params] || {}
2004
+ query_params[:'tenantId'] = tenant_id
2005
+
2006
+ # header parameters
2007
+ header_params = opts[:header_params] || {}
2008
+ # HTTP header 'Accept' (if needed)
2009
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2010
+
2011
+ # form parameters
2012
+ form_params = opts[:form_params] || {}
2013
+
2014
+ # http body (model)
2015
+ post_body = opts[:debug_body]
2016
+
2017
+ # return_type
2018
+ return_type = opts[:debug_return_type] || 'GetSSOUserByIdAPIResponse'
2019
+
2020
+ # auth_names
2021
+ auth_names = opts[:debug_auth_names] || ['api_key']
2022
+
2023
+ new_options = opts.merge(
2024
+ :operation => :"DefaultApi.get_sso_user_by_id",
2025
+ :header_params => header_params,
2026
+ :query_params => query_params,
2027
+ :form_params => form_params,
2028
+ :body => post_body,
2029
+ :auth_names => auth_names,
2030
+ :return_type => return_type
2031
+ )
2032
+
2033
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2034
+ if @api_client.config.debugging
2035
+ @api_client.config.logger.debug "API called: DefaultApi#get_sso_user_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2036
+ end
2037
+ return data, status_code, headers
2038
+ end
2039
+
2040
+ # @param tenant_id [String]
2041
+ # @param [Hash] opts the optional parameters
2042
+ # @option opts [Integer] :skip
2043
+ # @return [GetSSOUsers200Response]
2044
+ def get_sso_users(tenant_id, opts = {})
2045
+ data, _status_code, _headers = get_sso_users_with_http_info(tenant_id, opts)
2046
+ data
2047
+ end
2048
+
2049
+ # @param tenant_id [String]
2050
+ # @param [Hash] opts the optional parameters
2051
+ # @option opts [Integer] :skip
2052
+ # @return [Array<(GetSSOUsers200Response, Integer, Hash)>] GetSSOUsers200Response data, response status code and response headers
2053
+ def get_sso_users_with_http_info(tenant_id, opts = {})
2054
+ if @api_client.config.debugging
2055
+ @api_client.config.logger.debug 'Calling API: DefaultApi.get_sso_users ...'
2056
+ end
2057
+ # verify the required parameter 'tenant_id' is set
2058
+ if @api_client.config.client_side_validation && tenant_id.nil?
2059
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_sso_users"
2060
+ end
2061
+ # resource path
2062
+ local_var_path = '/api/v1/sso-users'
2063
+
2064
+ # query parameters
2065
+ query_params = opts[:query_params] || {}
2066
+ query_params[:'tenantId'] = tenant_id
2067
+ query_params[:'skip'] = opts[:'skip'] if !opts[:'skip'].nil?
2068
+
2069
+ # header parameters
2070
+ header_params = opts[:header_params] || {}
2071
+ # HTTP header 'Accept' (if needed)
2072
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2073
+
2074
+ # form parameters
2075
+ form_params = opts[:form_params] || {}
2076
+
2077
+ # http body (model)
2078
+ post_body = opts[:debug_body]
2079
+
2080
+ # return_type
2081
+ return_type = opts[:debug_return_type] || 'GetSSOUsers200Response'
2082
+
2083
+ # auth_names
2084
+ auth_names = opts[:debug_auth_names] || ['api_key']
2085
+
2086
+ new_options = opts.merge(
2087
+ :operation => :"DefaultApi.get_sso_users",
2088
+ :header_params => header_params,
2089
+ :query_params => query_params,
2090
+ :form_params => form_params,
2091
+ :body => post_body,
2092
+ :auth_names => auth_names,
2093
+ :return_type => return_type
2094
+ )
2095
+
2096
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2097
+ if @api_client.config.debugging
2098
+ @api_client.config.logger.debug "API called: DefaultApi#get_sso_users\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2099
+ end
2100
+ return data, status_code, headers
2101
+ end
2102
+
2103
+ # @param tenant_id [String]
2104
+ # @param [Hash] opts the optional parameters
2105
+ # @option opts [String] :user_id
2106
+ # @return [GetSubscriptionsAPIResponse]
2107
+ def get_subscriptions(tenant_id, opts = {})
2108
+ data, _status_code, _headers = get_subscriptions_with_http_info(tenant_id, opts)
2109
+ data
2110
+ end
2111
+
2112
+ # @param tenant_id [String]
2113
+ # @param [Hash] opts the optional parameters
2114
+ # @option opts [String] :user_id
2115
+ # @return [Array<(GetSubscriptionsAPIResponse, Integer, Hash)>] GetSubscriptionsAPIResponse data, response status code and response headers
2116
+ def get_subscriptions_with_http_info(tenant_id, opts = {})
2117
+ if @api_client.config.debugging
2118
+ @api_client.config.logger.debug 'Calling API: DefaultApi.get_subscriptions ...'
2119
+ end
2120
+ # verify the required parameter 'tenant_id' is set
2121
+ if @api_client.config.client_side_validation && tenant_id.nil?
2122
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_subscriptions"
2123
+ end
2124
+ # resource path
2125
+ local_var_path = '/api/v1/subscriptions'
2126
+
2127
+ # query parameters
2128
+ query_params = opts[:query_params] || {}
2129
+ query_params[:'tenantId'] = tenant_id
2130
+ query_params[:'userId'] = opts[:'user_id'] if !opts[:'user_id'].nil?
2131
+
2132
+ # header parameters
2133
+ header_params = opts[:header_params] || {}
2134
+ # HTTP header 'Accept' (if needed)
2135
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2136
+
2137
+ # form parameters
2138
+ form_params = opts[:form_params] || {}
2139
+
2140
+ # http body (model)
2141
+ post_body = opts[:debug_body]
2142
+
2143
+ # return_type
2144
+ return_type = opts[:debug_return_type] || 'GetSubscriptionsAPIResponse'
2145
+
2146
+ # auth_names
2147
+ auth_names = opts[:debug_auth_names] || ['api_key']
2148
+
2149
+ new_options = opts.merge(
2150
+ :operation => :"DefaultApi.get_subscriptions",
2151
+ :header_params => header_params,
2152
+ :query_params => query_params,
2153
+ :form_params => form_params,
2154
+ :body => post_body,
2155
+ :auth_names => auth_names,
2156
+ :return_type => return_type
2157
+ )
2158
+
2159
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2160
+ if @api_client.config.debugging
2161
+ @api_client.config.logger.debug "API called: DefaultApi#get_subscriptions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2162
+ end
2163
+ return data, status_code, headers
2164
+ end
2165
+
2166
+ # @param tenant_id [String]
2167
+ # @param id [String]
2168
+ # @param [Hash] opts the optional parameters
2169
+ # @return [GetUserBadge200Response]
2170
+ def get_user_badge(tenant_id, id, opts = {})
2171
+ data, _status_code, _headers = get_user_badge_with_http_info(tenant_id, id, opts)
2172
+ data
2173
+ end
2174
+
2175
+ # @param tenant_id [String]
2176
+ # @param id [String]
2177
+ # @param [Hash] opts the optional parameters
2178
+ # @return [Array<(GetUserBadge200Response, Integer, Hash)>] GetUserBadge200Response data, response status code and response headers
2179
+ def get_user_badge_with_http_info(tenant_id, id, opts = {})
2180
+ if @api_client.config.debugging
2181
+ @api_client.config.logger.debug 'Calling API: DefaultApi.get_user_badge ...'
2182
+ end
2183
+ # verify the required parameter 'tenant_id' is set
2184
+ if @api_client.config.client_side_validation && tenant_id.nil?
2185
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_user_badge"
2186
+ end
2187
+ # verify the required parameter 'id' is set
2188
+ if @api_client.config.client_side_validation && id.nil?
2189
+ fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.get_user_badge"
2190
+ end
2191
+ # resource path
2192
+ local_var_path = '/api/v1/user-badges/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
2193
+
2194
+ # query parameters
2195
+ query_params = opts[:query_params] || {}
2196
+ query_params[:'tenantId'] = tenant_id
2197
+
2198
+ # header parameters
2199
+ header_params = opts[:header_params] || {}
2200
+ # HTTP header 'Accept' (if needed)
2201
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2202
+
2203
+ # form parameters
2204
+ form_params = opts[:form_params] || {}
2205
+
2206
+ # http body (model)
2207
+ post_body = opts[:debug_body]
2208
+
2209
+ # return_type
2210
+ return_type = opts[:debug_return_type] || 'GetUserBadge200Response'
2211
+
2212
+ # auth_names
2213
+ auth_names = opts[:debug_auth_names] || ['api_key']
2214
+
2215
+ new_options = opts.merge(
2216
+ :operation => :"DefaultApi.get_user_badge",
2217
+ :header_params => header_params,
2218
+ :query_params => query_params,
2219
+ :form_params => form_params,
2220
+ :body => post_body,
2221
+ :auth_names => auth_names,
2222
+ :return_type => return_type
2223
+ )
2224
+
2225
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2226
+ if @api_client.config.debugging
2227
+ @api_client.config.logger.debug "API called: DefaultApi#get_user_badge\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2228
+ end
2229
+ return data, status_code, headers
2230
+ end
2231
+
2232
+ # @param tenant_id [String]
2233
+ # @param id [String]
2234
+ # @param [Hash] opts the optional parameters
2235
+ # @return [GetUserBadgeProgressById200Response]
2236
+ def get_user_badge_progress_by_id(tenant_id, id, opts = {})
2237
+ data, _status_code, _headers = get_user_badge_progress_by_id_with_http_info(tenant_id, id, opts)
2238
+ data
2239
+ end
2240
+
2241
+ # @param tenant_id [String]
2242
+ # @param id [String]
2243
+ # @param [Hash] opts the optional parameters
2244
+ # @return [Array<(GetUserBadgeProgressById200Response, Integer, Hash)>] GetUserBadgeProgressById200Response data, response status code and response headers
2245
+ def get_user_badge_progress_by_id_with_http_info(tenant_id, id, opts = {})
2246
+ if @api_client.config.debugging
2247
+ @api_client.config.logger.debug 'Calling API: DefaultApi.get_user_badge_progress_by_id ...'
2248
+ end
2249
+ # verify the required parameter 'tenant_id' is set
2250
+ if @api_client.config.client_side_validation && tenant_id.nil?
2251
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_user_badge_progress_by_id"
2252
+ end
2253
+ # verify the required parameter 'id' is set
2254
+ if @api_client.config.client_side_validation && id.nil?
2255
+ fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.get_user_badge_progress_by_id"
2256
+ end
2257
+ # resource path
2258
+ local_var_path = '/api/v1/user-badge-progress/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
2259
+
2260
+ # query parameters
2261
+ query_params = opts[:query_params] || {}
2262
+ query_params[:'tenantId'] = tenant_id
2263
+
2264
+ # header parameters
2265
+ header_params = opts[:header_params] || {}
2266
+ # HTTP header 'Accept' (if needed)
2267
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2268
+
2269
+ # form parameters
2270
+ form_params = opts[:form_params] || {}
2271
+
2272
+ # http body (model)
2273
+ post_body = opts[:debug_body]
2274
+
2275
+ # return_type
2276
+ return_type = opts[:debug_return_type] || 'GetUserBadgeProgressById200Response'
2277
+
2278
+ # auth_names
2279
+ auth_names = opts[:debug_auth_names] || ['api_key']
2280
+
2281
+ new_options = opts.merge(
2282
+ :operation => :"DefaultApi.get_user_badge_progress_by_id",
2283
+ :header_params => header_params,
2284
+ :query_params => query_params,
2285
+ :form_params => form_params,
2286
+ :body => post_body,
2287
+ :auth_names => auth_names,
2288
+ :return_type => return_type
2289
+ )
2290
+
2291
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2292
+ if @api_client.config.debugging
2293
+ @api_client.config.logger.debug "API called: DefaultApi#get_user_badge_progress_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2294
+ end
2295
+ return data, status_code, headers
2296
+ end
2297
+
2298
+ # @param tenant_id [String]
2299
+ # @param user_id [String]
2300
+ # @param [Hash] opts the optional parameters
2301
+ # @return [GetUserBadgeProgressById200Response]
2302
+ def get_user_badge_progress_by_user_id(tenant_id, user_id, opts = {})
2303
+ data, _status_code, _headers = get_user_badge_progress_by_user_id_with_http_info(tenant_id, user_id, opts)
2304
+ data
2305
+ end
2306
+
2307
+ # @param tenant_id [String]
2308
+ # @param user_id [String]
2309
+ # @param [Hash] opts the optional parameters
2310
+ # @return [Array<(GetUserBadgeProgressById200Response, Integer, Hash)>] GetUserBadgeProgressById200Response data, response status code and response headers
2311
+ def get_user_badge_progress_by_user_id_with_http_info(tenant_id, user_id, opts = {})
2312
+ if @api_client.config.debugging
2313
+ @api_client.config.logger.debug 'Calling API: DefaultApi.get_user_badge_progress_by_user_id ...'
2314
+ end
2315
+ # verify the required parameter 'tenant_id' is set
2316
+ if @api_client.config.client_side_validation && tenant_id.nil?
2317
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_user_badge_progress_by_user_id"
2318
+ end
2319
+ # verify the required parameter 'user_id' is set
2320
+ if @api_client.config.client_side_validation && user_id.nil?
2321
+ fail ArgumentError, "Missing the required parameter 'user_id' when calling DefaultApi.get_user_badge_progress_by_user_id"
2322
+ end
2323
+ # resource path
2324
+ local_var_path = '/api/v1/user-badge-progress/user/{userId}'.sub('{' + 'userId' + '}', CGI.escape(user_id.to_s))
2325
+
2326
+ # query parameters
2327
+ query_params = opts[:query_params] || {}
2328
+ query_params[:'tenantId'] = tenant_id
2329
+
2330
+ # header parameters
2331
+ header_params = opts[:header_params] || {}
2332
+ # HTTP header 'Accept' (if needed)
2333
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2334
+
2335
+ # form parameters
2336
+ form_params = opts[:form_params] || {}
2337
+
2338
+ # http body (model)
2339
+ post_body = opts[:debug_body]
2340
+
2341
+ # return_type
2342
+ return_type = opts[:debug_return_type] || 'GetUserBadgeProgressById200Response'
2343
+
2344
+ # auth_names
2345
+ auth_names = opts[:debug_auth_names] || ['api_key']
2346
+
2347
+ new_options = opts.merge(
2348
+ :operation => :"DefaultApi.get_user_badge_progress_by_user_id",
2349
+ :header_params => header_params,
2350
+ :query_params => query_params,
2351
+ :form_params => form_params,
2352
+ :body => post_body,
2353
+ :auth_names => auth_names,
2354
+ :return_type => return_type
2355
+ )
2356
+
2357
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2358
+ if @api_client.config.debugging
2359
+ @api_client.config.logger.debug "API called: DefaultApi#get_user_badge_progress_by_user_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2360
+ end
2361
+ return data, status_code, headers
2362
+ end
2363
+
2364
+ # @param tenant_id [String]
2365
+ # @param [Hash] opts the optional parameters
2366
+ # @option opts [String] :user_id
2367
+ # @option opts [Float] :limit
2368
+ # @option opts [Float] :skip
2369
+ # @return [GetUserBadgeProgressList200Response]
2370
+ def get_user_badge_progress_list(tenant_id, opts = {})
2371
+ data, _status_code, _headers = get_user_badge_progress_list_with_http_info(tenant_id, opts)
2372
+ data
2373
+ end
2374
+
2375
+ # @param tenant_id [String]
2376
+ # @param [Hash] opts the optional parameters
2377
+ # @option opts [String] :user_id
2378
+ # @option opts [Float] :limit
2379
+ # @option opts [Float] :skip
2380
+ # @return [Array<(GetUserBadgeProgressList200Response, Integer, Hash)>] GetUserBadgeProgressList200Response data, response status code and response headers
2381
+ def get_user_badge_progress_list_with_http_info(tenant_id, opts = {})
2382
+ if @api_client.config.debugging
2383
+ @api_client.config.logger.debug 'Calling API: DefaultApi.get_user_badge_progress_list ...'
2384
+ end
2385
+ # verify the required parameter 'tenant_id' is set
2386
+ if @api_client.config.client_side_validation && tenant_id.nil?
2387
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_user_badge_progress_list"
2388
+ end
2389
+ # resource path
2390
+ local_var_path = '/api/v1/user-badge-progress'
2391
+
2392
+ # query parameters
2393
+ query_params = opts[:query_params] || {}
2394
+ query_params[:'tenantId'] = tenant_id
2395
+ query_params[:'userId'] = opts[:'user_id'] if !opts[:'user_id'].nil?
2396
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
2397
+ query_params[:'skip'] = opts[:'skip'] if !opts[:'skip'].nil?
2398
+
2399
+ # header parameters
2400
+ header_params = opts[:header_params] || {}
2401
+ # HTTP header 'Accept' (if needed)
2402
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2403
+
2404
+ # form parameters
2405
+ form_params = opts[:form_params] || {}
2406
+
2407
+ # http body (model)
2408
+ post_body = opts[:debug_body]
2409
+
2410
+ # return_type
2411
+ return_type = opts[:debug_return_type] || 'GetUserBadgeProgressList200Response'
2412
+
2413
+ # auth_names
2414
+ auth_names = opts[:debug_auth_names] || ['api_key']
2415
+
2416
+ new_options = opts.merge(
2417
+ :operation => :"DefaultApi.get_user_badge_progress_list",
2418
+ :header_params => header_params,
2419
+ :query_params => query_params,
2420
+ :form_params => form_params,
2421
+ :body => post_body,
2422
+ :auth_names => auth_names,
2423
+ :return_type => return_type
2424
+ )
2425
+
2426
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2427
+ if @api_client.config.debugging
2428
+ @api_client.config.logger.debug "API called: DefaultApi#get_user_badge_progress_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2429
+ end
2430
+ return data, status_code, headers
2431
+ end
2432
+
2433
+ # @param tenant_id [String]
2434
+ # @param [Hash] opts the optional parameters
2435
+ # @option opts [String] :user_id
2436
+ # @option opts [String] :badge_id
2437
+ # @option opts [Float] :type
2438
+ # @option opts [Boolean] :displayed_on_comments
2439
+ # @option opts [Float] :limit
2440
+ # @option opts [Float] :skip
2441
+ # @return [GetUserBadges200Response]
2442
+ def get_user_badges(tenant_id, opts = {})
2443
+ data, _status_code, _headers = get_user_badges_with_http_info(tenant_id, opts)
2444
+ data
2445
+ end
2446
+
2447
+ # @param tenant_id [String]
2448
+ # @param [Hash] opts the optional parameters
2449
+ # @option opts [String] :user_id
2450
+ # @option opts [String] :badge_id
2451
+ # @option opts [Float] :type
2452
+ # @option opts [Boolean] :displayed_on_comments
2453
+ # @option opts [Float] :limit
2454
+ # @option opts [Float] :skip
2455
+ # @return [Array<(GetUserBadges200Response, Integer, Hash)>] GetUserBadges200Response data, response status code and response headers
2456
+ def get_user_badges_with_http_info(tenant_id, opts = {})
2457
+ if @api_client.config.debugging
2458
+ @api_client.config.logger.debug 'Calling API: DefaultApi.get_user_badges ...'
2459
+ end
2460
+ # verify the required parameter 'tenant_id' is set
2461
+ if @api_client.config.client_side_validation && tenant_id.nil?
2462
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_user_badges"
2463
+ end
2464
+ # resource path
2465
+ local_var_path = '/api/v1/user-badges'
2466
+
2467
+ # query parameters
2468
+ query_params = opts[:query_params] || {}
2469
+ query_params[:'tenantId'] = tenant_id
2470
+ query_params[:'userId'] = opts[:'user_id'] if !opts[:'user_id'].nil?
2471
+ query_params[:'badgeId'] = opts[:'badge_id'] if !opts[:'badge_id'].nil?
2472
+ query_params[:'type'] = opts[:'type'] if !opts[:'type'].nil?
2473
+ query_params[:'displayedOnComments'] = opts[:'displayed_on_comments'] if !opts[:'displayed_on_comments'].nil?
2474
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
2475
+ query_params[:'skip'] = opts[:'skip'] if !opts[:'skip'].nil?
2476
+
2477
+ # header parameters
2478
+ header_params = opts[:header_params] || {}
2479
+ # HTTP header 'Accept' (if needed)
2480
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2481
+
2482
+ # form parameters
2483
+ form_params = opts[:form_params] || {}
2484
+
2485
+ # http body (model)
2486
+ post_body = opts[:debug_body]
2487
+
2488
+ # return_type
2489
+ return_type = opts[:debug_return_type] || 'GetUserBadges200Response'
2490
+
2491
+ # auth_names
2492
+ auth_names = opts[:debug_auth_names] || ['api_key']
2493
+
2494
+ new_options = opts.merge(
2495
+ :operation => :"DefaultApi.get_user_badges",
2496
+ :header_params => header_params,
2497
+ :query_params => query_params,
2498
+ :form_params => form_params,
2499
+ :body => post_body,
2500
+ :auth_names => auth_names,
2501
+ :return_type => return_type
2502
+ )
2503
+
2504
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2505
+ if @api_client.config.debugging
2506
+ @api_client.config.logger.debug "API called: DefaultApi#get_user_badges\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2507
+ end
2508
+ return data, status_code, headers
2509
+ end
2510
+
2511
+ # @param tenant_id [String]
2512
+ # @param domain_to_update [String]
2513
+ # @param patch_domain_config_params [PatchDomainConfigParams]
2514
+ # @param [Hash] opts the optional parameters
2515
+ # @return [GetDomainConfig200Response]
2516
+ def patch_domain_config(tenant_id, domain_to_update, patch_domain_config_params, opts = {})
2517
+ data, _status_code, _headers = patch_domain_config_with_http_info(tenant_id, domain_to_update, patch_domain_config_params, opts)
2518
+ data
2519
+ end
2520
+
2521
+ # @param tenant_id [String]
2522
+ # @param domain_to_update [String]
2523
+ # @param patch_domain_config_params [PatchDomainConfigParams]
2524
+ # @param [Hash] opts the optional parameters
2525
+ # @return [Array<(GetDomainConfig200Response, Integer, Hash)>] GetDomainConfig200Response data, response status code and response headers
2526
+ def patch_domain_config_with_http_info(tenant_id, domain_to_update, patch_domain_config_params, opts = {})
2527
+ if @api_client.config.debugging
2528
+ @api_client.config.logger.debug 'Calling API: DefaultApi.patch_domain_config ...'
2529
+ end
2530
+ # verify the required parameter 'tenant_id' is set
2531
+ if @api_client.config.client_side_validation && tenant_id.nil?
2532
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.patch_domain_config"
2533
+ end
2534
+ # verify the required parameter 'domain_to_update' is set
2535
+ if @api_client.config.client_side_validation && domain_to_update.nil?
2536
+ fail ArgumentError, "Missing the required parameter 'domain_to_update' when calling DefaultApi.patch_domain_config"
2537
+ end
2538
+ # verify the required parameter 'patch_domain_config_params' is set
2539
+ if @api_client.config.client_side_validation && patch_domain_config_params.nil?
2540
+ fail ArgumentError, "Missing the required parameter 'patch_domain_config_params' when calling DefaultApi.patch_domain_config"
2541
+ end
2542
+ # resource path
2543
+ local_var_path = '/api/v1/domain-configs/{domainToUpdate}'.sub('{' + 'domainToUpdate' + '}', CGI.escape(domain_to_update.to_s))
2544
+
2545
+ # query parameters
2546
+ query_params = opts[:query_params] || {}
2547
+ query_params[:'tenantId'] = tenant_id
2548
+
2549
+ # header parameters
2550
+ header_params = opts[:header_params] || {}
2551
+ # HTTP header 'Accept' (if needed)
2552
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2553
+ # HTTP header 'Content-Type'
2554
+ content_type = @api_client.select_header_content_type(['application/json'])
2555
+ if !content_type.nil?
2556
+ header_params['Content-Type'] = content_type
2557
+ end
2558
+
2559
+ # form parameters
2560
+ form_params = opts[:form_params] || {}
2561
+
2562
+ # http body (model)
2563
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(patch_domain_config_params)
2564
+
2565
+ # return_type
2566
+ return_type = opts[:debug_return_type] || 'GetDomainConfig200Response'
2567
+
2568
+ # auth_names
2569
+ auth_names = opts[:debug_auth_names] || ['api_key']
2570
+
2571
+ new_options = opts.merge(
2572
+ :operation => :"DefaultApi.patch_domain_config",
2573
+ :header_params => header_params,
2574
+ :query_params => query_params,
2575
+ :form_params => form_params,
2576
+ :body => post_body,
2577
+ :auth_names => auth_names,
2578
+ :return_type => return_type
2579
+ )
2580
+
2581
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
2582
+ if @api_client.config.debugging
2583
+ @api_client.config.logger.debug "API called: DefaultApi#patch_domain_config\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2584
+ end
2585
+ return data, status_code, headers
2586
+ end
2587
+
2588
+ # @param tenant_id [String]
2589
+ # @param id [String]
2590
+ # @param update_api_page_data [UpdateAPIPageData]
2591
+ # @param [Hash] opts the optional parameters
2592
+ # @return [PatchPageAPIResponse]
2593
+ def patch_page(tenant_id, id, update_api_page_data, opts = {})
2594
+ data, _status_code, _headers = patch_page_with_http_info(tenant_id, id, update_api_page_data, opts)
2595
+ data
2596
+ end
2597
+
2598
+ # @param tenant_id [String]
2599
+ # @param id [String]
2600
+ # @param update_api_page_data [UpdateAPIPageData]
2601
+ # @param [Hash] opts the optional parameters
2602
+ # @return [Array<(PatchPageAPIResponse, Integer, Hash)>] PatchPageAPIResponse data, response status code and response headers
2603
+ def patch_page_with_http_info(tenant_id, id, update_api_page_data, opts = {})
2604
+ if @api_client.config.debugging
2605
+ @api_client.config.logger.debug 'Calling API: DefaultApi.patch_page ...'
2606
+ end
2607
+ # verify the required parameter 'tenant_id' is set
2608
+ if @api_client.config.client_side_validation && tenant_id.nil?
2609
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.patch_page"
2610
+ end
2611
+ # verify the required parameter 'id' is set
2612
+ if @api_client.config.client_side_validation && id.nil?
2613
+ fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.patch_page"
2614
+ end
2615
+ # verify the required parameter 'update_api_page_data' is set
2616
+ if @api_client.config.client_side_validation && update_api_page_data.nil?
2617
+ fail ArgumentError, "Missing the required parameter 'update_api_page_data' when calling DefaultApi.patch_page"
2618
+ end
2619
+ # resource path
2620
+ local_var_path = '/api/v1/pages/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
2621
+
2622
+ # query parameters
2623
+ query_params = opts[:query_params] || {}
2624
+ query_params[:'tenantId'] = tenant_id
2625
+
2626
+ # header parameters
2627
+ header_params = opts[:header_params] || {}
2628
+ # HTTP header 'Accept' (if needed)
2629
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2630
+ # HTTP header 'Content-Type'
2631
+ content_type = @api_client.select_header_content_type(['application/json'])
2632
+ if !content_type.nil?
2633
+ header_params['Content-Type'] = content_type
2634
+ end
2635
+
2636
+ # form parameters
2637
+ form_params = opts[:form_params] || {}
2638
+
2639
+ # http body (model)
2640
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(update_api_page_data)
2641
+
2642
+ # return_type
2643
+ return_type = opts[:debug_return_type] || 'PatchPageAPIResponse'
2644
+
2645
+ # auth_names
2646
+ auth_names = opts[:debug_auth_names] || ['api_key']
2647
+
2648
+ new_options = opts.merge(
2649
+ :operation => :"DefaultApi.patch_page",
2650
+ :header_params => header_params,
2651
+ :query_params => query_params,
2652
+ :form_params => form_params,
2653
+ :body => post_body,
2654
+ :auth_names => auth_names,
2655
+ :return_type => return_type
2656
+ )
2657
+
2658
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
2659
+ if @api_client.config.debugging
2660
+ @api_client.config.logger.debug "API called: DefaultApi#patch_page\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2661
+ end
2662
+ return data, status_code, headers
2663
+ end
2664
+
2665
+ # @param tenant_id [String]
2666
+ # @param id [String]
2667
+ # @param update_apisso_user_data [UpdateAPISSOUserData]
2668
+ # @param [Hash] opts the optional parameters
2669
+ # @option opts [Boolean] :update_comments
2670
+ # @return [PatchSSOUserAPIResponse]
2671
+ def patch_sso_user(tenant_id, id, update_apisso_user_data, opts = {})
2672
+ data, _status_code, _headers = patch_sso_user_with_http_info(tenant_id, id, update_apisso_user_data, opts)
2673
+ data
2674
+ end
2675
+
2676
+ # @param tenant_id [String]
2677
+ # @param id [String]
2678
+ # @param update_apisso_user_data [UpdateAPISSOUserData]
2679
+ # @param [Hash] opts the optional parameters
2680
+ # @option opts [Boolean] :update_comments
2681
+ # @return [Array<(PatchSSOUserAPIResponse, Integer, Hash)>] PatchSSOUserAPIResponse data, response status code and response headers
2682
+ def patch_sso_user_with_http_info(tenant_id, id, update_apisso_user_data, opts = {})
2683
+ if @api_client.config.debugging
2684
+ @api_client.config.logger.debug 'Calling API: DefaultApi.patch_sso_user ...'
2685
+ end
2686
+ # verify the required parameter 'tenant_id' is set
2687
+ if @api_client.config.client_side_validation && tenant_id.nil?
2688
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.patch_sso_user"
2689
+ end
2690
+ # verify the required parameter 'id' is set
2691
+ if @api_client.config.client_side_validation && id.nil?
2692
+ fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.patch_sso_user"
2693
+ end
2694
+ # verify the required parameter 'update_apisso_user_data' is set
2695
+ if @api_client.config.client_side_validation && update_apisso_user_data.nil?
2696
+ fail ArgumentError, "Missing the required parameter 'update_apisso_user_data' when calling DefaultApi.patch_sso_user"
2697
+ end
2698
+ # resource path
2699
+ local_var_path = '/api/v1/sso-users/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
2700
+
2701
+ # query parameters
2702
+ query_params = opts[:query_params] || {}
2703
+ query_params[:'tenantId'] = tenant_id
2704
+ query_params[:'updateComments'] = opts[:'update_comments'] if !opts[:'update_comments'].nil?
2705
+
2706
+ # header parameters
2707
+ header_params = opts[:header_params] || {}
2708
+ # HTTP header 'Accept' (if needed)
2709
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2710
+ # HTTP header 'Content-Type'
2711
+ content_type = @api_client.select_header_content_type(['application/json'])
2712
+ if !content_type.nil?
2713
+ header_params['Content-Type'] = content_type
2714
+ end
2715
+
2716
+ # form parameters
2717
+ form_params = opts[:form_params] || {}
2718
+
2719
+ # http body (model)
2720
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(update_apisso_user_data)
2721
+
2722
+ # return_type
2723
+ return_type = opts[:debug_return_type] || 'PatchSSOUserAPIResponse'
2724
+
2725
+ # auth_names
2726
+ auth_names = opts[:debug_auth_names] || ['api_key']
2727
+
2728
+ new_options = opts.merge(
2729
+ :operation => :"DefaultApi.patch_sso_user",
2730
+ :header_params => header_params,
2731
+ :query_params => query_params,
2732
+ :form_params => form_params,
2733
+ :body => post_body,
2734
+ :auth_names => auth_names,
2735
+ :return_type => return_type
2736
+ )
2737
+
2738
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
2739
+ if @api_client.config.debugging
2740
+ @api_client.config.logger.debug "API called: DefaultApi#patch_sso_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2741
+ end
2742
+ return data, status_code, headers
2743
+ end
2744
+
2745
+ # @param tenant_id [String]
2746
+ # @param domain_to_update [String]
2747
+ # @param update_domain_config_params [UpdateDomainConfigParams]
2748
+ # @param [Hash] opts the optional parameters
2749
+ # @return [GetDomainConfig200Response]
2750
+ def put_domain_config(tenant_id, domain_to_update, update_domain_config_params, opts = {})
2751
+ data, _status_code, _headers = put_domain_config_with_http_info(tenant_id, domain_to_update, update_domain_config_params, opts)
2752
+ data
2753
+ end
2754
+
2755
+ # @param tenant_id [String]
2756
+ # @param domain_to_update [String]
2757
+ # @param update_domain_config_params [UpdateDomainConfigParams]
2758
+ # @param [Hash] opts the optional parameters
2759
+ # @return [Array<(GetDomainConfig200Response, Integer, Hash)>] GetDomainConfig200Response data, response status code and response headers
2760
+ def put_domain_config_with_http_info(tenant_id, domain_to_update, update_domain_config_params, opts = {})
2761
+ if @api_client.config.debugging
2762
+ @api_client.config.logger.debug 'Calling API: DefaultApi.put_domain_config ...'
2763
+ end
2764
+ # verify the required parameter 'tenant_id' is set
2765
+ if @api_client.config.client_side_validation && tenant_id.nil?
2766
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.put_domain_config"
2767
+ end
2768
+ # verify the required parameter 'domain_to_update' is set
2769
+ if @api_client.config.client_side_validation && domain_to_update.nil?
2770
+ fail ArgumentError, "Missing the required parameter 'domain_to_update' when calling DefaultApi.put_domain_config"
2771
+ end
2772
+ # verify the required parameter 'update_domain_config_params' is set
2773
+ if @api_client.config.client_side_validation && update_domain_config_params.nil?
2774
+ fail ArgumentError, "Missing the required parameter 'update_domain_config_params' when calling DefaultApi.put_domain_config"
2775
+ end
2776
+ # resource path
2777
+ local_var_path = '/api/v1/domain-configs/{domainToUpdate}'.sub('{' + 'domainToUpdate' + '}', CGI.escape(domain_to_update.to_s))
2778
+
2779
+ # query parameters
2780
+ query_params = opts[:query_params] || {}
2781
+ query_params[:'tenantId'] = tenant_id
2782
+
2783
+ # header parameters
2784
+ header_params = opts[:header_params] || {}
2785
+ # HTTP header 'Accept' (if needed)
2786
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2787
+ # HTTP header 'Content-Type'
2788
+ content_type = @api_client.select_header_content_type(['application/json'])
2789
+ if !content_type.nil?
2790
+ header_params['Content-Type'] = content_type
2791
+ end
2792
+
2793
+ # form parameters
2794
+ form_params = opts[:form_params] || {}
2795
+
2796
+ # http body (model)
2797
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(update_domain_config_params)
2798
+
2799
+ # return_type
2800
+ return_type = opts[:debug_return_type] || 'GetDomainConfig200Response'
2801
+
2802
+ # auth_names
2803
+ auth_names = opts[:debug_auth_names] || ['api_key']
2804
+
2805
+ new_options = opts.merge(
2806
+ :operation => :"DefaultApi.put_domain_config",
2807
+ :header_params => header_params,
2808
+ :query_params => query_params,
2809
+ :form_params => form_params,
2810
+ :body => post_body,
2811
+ :auth_names => auth_names,
2812
+ :return_type => return_type
2813
+ )
2814
+
2815
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
2816
+ if @api_client.config.debugging
2817
+ @api_client.config.logger.debug "API called: DefaultApi#put_domain_config\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2818
+ end
2819
+ return data, status_code, headers
2820
+ end
2821
+
2822
+ # @param tenant_id [String]
2823
+ # @param id [String]
2824
+ # @param update_apisso_user_data [UpdateAPISSOUserData]
2825
+ # @param [Hash] opts the optional parameters
2826
+ # @option opts [Boolean] :update_comments
2827
+ # @return [PutSSOUserAPIResponse]
2828
+ def put_sso_user(tenant_id, id, update_apisso_user_data, opts = {})
2829
+ data, _status_code, _headers = put_sso_user_with_http_info(tenant_id, id, update_apisso_user_data, opts)
2830
+ data
2831
+ end
2832
+
2833
+ # @param tenant_id [String]
2834
+ # @param id [String]
2835
+ # @param update_apisso_user_data [UpdateAPISSOUserData]
2836
+ # @param [Hash] opts the optional parameters
2837
+ # @option opts [Boolean] :update_comments
2838
+ # @return [Array<(PutSSOUserAPIResponse, Integer, Hash)>] PutSSOUserAPIResponse data, response status code and response headers
2839
+ def put_sso_user_with_http_info(tenant_id, id, update_apisso_user_data, opts = {})
2840
+ if @api_client.config.debugging
2841
+ @api_client.config.logger.debug 'Calling API: DefaultApi.put_sso_user ...'
2842
+ end
2843
+ # verify the required parameter 'tenant_id' is set
2844
+ if @api_client.config.client_side_validation && tenant_id.nil?
2845
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.put_sso_user"
2846
+ end
2847
+ # verify the required parameter 'id' is set
2848
+ if @api_client.config.client_side_validation && id.nil?
2849
+ fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.put_sso_user"
2850
+ end
2851
+ # verify the required parameter 'update_apisso_user_data' is set
2852
+ if @api_client.config.client_side_validation && update_apisso_user_data.nil?
2853
+ fail ArgumentError, "Missing the required parameter 'update_apisso_user_data' when calling DefaultApi.put_sso_user"
2854
+ end
2855
+ # resource path
2856
+ local_var_path = '/api/v1/sso-users/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
2857
+
2858
+ # query parameters
2859
+ query_params = opts[:query_params] || {}
2860
+ query_params[:'tenantId'] = tenant_id
2861
+ query_params[:'updateComments'] = opts[:'update_comments'] if !opts[:'update_comments'].nil?
2862
+
2863
+ # header parameters
2864
+ header_params = opts[:header_params] || {}
2865
+ # HTTP header 'Accept' (if needed)
2866
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2867
+ # HTTP header 'Content-Type'
2868
+ content_type = @api_client.select_header_content_type(['application/json'])
2869
+ if !content_type.nil?
2870
+ header_params['Content-Type'] = content_type
2871
+ end
2872
+
2873
+ # form parameters
2874
+ form_params = opts[:form_params] || {}
2875
+
2876
+ # http body (model)
2877
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(update_apisso_user_data)
2878
+
2879
+ # return_type
2880
+ return_type = opts[:debug_return_type] || 'PutSSOUserAPIResponse'
2881
+
2882
+ # auth_names
2883
+ auth_names = opts[:debug_auth_names] || ['api_key']
2884
+
2885
+ new_options = opts.merge(
2886
+ :operation => :"DefaultApi.put_sso_user",
2887
+ :header_params => header_params,
2888
+ :query_params => query_params,
2889
+ :form_params => form_params,
2890
+ :body => post_body,
2891
+ :auth_names => auth_names,
2892
+ :return_type => return_type
2893
+ )
2894
+
2895
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
2896
+ if @api_client.config.debugging
2897
+ @api_client.config.logger.debug "API called: DefaultApi#put_sso_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2898
+ end
2899
+ return data, status_code, headers
2900
+ end
2901
+
2902
+ # @param tenant_id [String]
2903
+ # @param create_comment_params [CreateCommentParams]
2904
+ # @param [Hash] opts the optional parameters
2905
+ # @option opts [Boolean] :is_live
2906
+ # @option opts [Boolean] :do_spam_check
2907
+ # @option opts [Boolean] :send_emails
2908
+ # @option opts [Boolean] :populate_notifications
2909
+ # @return [SaveComment200Response]
2910
+ def save_comment(tenant_id, create_comment_params, opts = {})
2911
+ data, _status_code, _headers = save_comment_with_http_info(tenant_id, create_comment_params, opts)
2912
+ data
2913
+ end
2914
+
2915
+ # @param tenant_id [String]
2916
+ # @param create_comment_params [CreateCommentParams]
2917
+ # @param [Hash] opts the optional parameters
2918
+ # @option opts [Boolean] :is_live
2919
+ # @option opts [Boolean] :do_spam_check
2920
+ # @option opts [Boolean] :send_emails
2921
+ # @option opts [Boolean] :populate_notifications
2922
+ # @return [Array<(SaveComment200Response, Integer, Hash)>] SaveComment200Response data, response status code and response headers
2923
+ def save_comment_with_http_info(tenant_id, create_comment_params, opts = {})
2924
+ if @api_client.config.debugging
2925
+ @api_client.config.logger.debug 'Calling API: DefaultApi.save_comment ...'
2926
+ end
2927
+ # verify the required parameter 'tenant_id' is set
2928
+ if @api_client.config.client_side_validation && tenant_id.nil?
2929
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.save_comment"
2930
+ end
2931
+ # verify the required parameter 'create_comment_params' is set
2932
+ if @api_client.config.client_side_validation && create_comment_params.nil?
2933
+ fail ArgumentError, "Missing the required parameter 'create_comment_params' when calling DefaultApi.save_comment"
2934
+ end
2935
+ # resource path
2936
+ local_var_path = '/api/v1/comments'
2937
+
2938
+ # query parameters
2939
+ query_params = opts[:query_params] || {}
2940
+ query_params[:'tenantId'] = tenant_id
2941
+ query_params[:'isLive'] = opts[:'is_live'] if !opts[:'is_live'].nil?
2942
+ query_params[:'doSpamCheck'] = opts[:'do_spam_check'] if !opts[:'do_spam_check'].nil?
2943
+ query_params[:'sendEmails'] = opts[:'send_emails'] if !opts[:'send_emails'].nil?
2944
+ query_params[:'populateNotifications'] = opts[:'populate_notifications'] if !opts[:'populate_notifications'].nil?
2945
+
2946
+ # header parameters
2947
+ header_params = opts[:header_params] || {}
2948
+ # HTTP header 'Accept' (if needed)
2949
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2950
+ # HTTP header 'Content-Type'
2951
+ content_type = @api_client.select_header_content_type(['application/json'])
2952
+ if !content_type.nil?
2953
+ header_params['Content-Type'] = content_type
2954
+ end
2955
+
2956
+ # form parameters
2957
+ form_params = opts[:form_params] || {}
2958
+
2959
+ # http body (model)
2960
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(create_comment_params)
2961
+
2962
+ # return_type
2963
+ return_type = opts[:debug_return_type] || 'SaveComment200Response'
2964
+
2965
+ # auth_names
2966
+ auth_names = opts[:debug_auth_names] || ['api_key']
2967
+
2968
+ new_options = opts.merge(
2969
+ :operation => :"DefaultApi.save_comment",
2970
+ :header_params => header_params,
2971
+ :query_params => query_params,
2972
+ :form_params => form_params,
2973
+ :body => post_body,
2974
+ :auth_names => auth_names,
2975
+ :return_type => return_type
2976
+ )
2977
+
2978
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2979
+ if @api_client.config.debugging
2980
+ @api_client.config.logger.debug "API called: DefaultApi#save_comment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2981
+ end
2982
+ return data, status_code, headers
2983
+ end
2984
+
2985
+ # @param tenant_id [String]
2986
+ # @param create_comment_params [Array<CreateCommentParams>]
2987
+ # @param [Hash] opts the optional parameters
2988
+ # @option opts [Boolean] :is_live
2989
+ # @option opts [Boolean] :do_spam_check
2990
+ # @option opts [Boolean] :send_emails
2991
+ # @option opts [Boolean] :populate_notifications
2992
+ # @return [Array<SaveComment200Response>]
2993
+ def save_comments_bulk(tenant_id, create_comment_params, opts = {})
2994
+ data, _status_code, _headers = save_comments_bulk_with_http_info(tenant_id, create_comment_params, opts)
2995
+ data
2996
+ end
2997
+
2998
+ # @param tenant_id [String]
2999
+ # @param create_comment_params [Array<CreateCommentParams>]
3000
+ # @param [Hash] opts the optional parameters
3001
+ # @option opts [Boolean] :is_live
3002
+ # @option opts [Boolean] :do_spam_check
3003
+ # @option opts [Boolean] :send_emails
3004
+ # @option opts [Boolean] :populate_notifications
3005
+ # @return [Array<(Array<SaveComment200Response>, Integer, Hash)>] Array<SaveComment200Response> data, response status code and response headers
3006
+ def save_comments_bulk_with_http_info(tenant_id, create_comment_params, opts = {})
3007
+ if @api_client.config.debugging
3008
+ @api_client.config.logger.debug 'Calling API: DefaultApi.save_comments_bulk ...'
3009
+ end
3010
+ # verify the required parameter 'tenant_id' is set
3011
+ if @api_client.config.client_side_validation && tenant_id.nil?
3012
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.save_comments_bulk"
3013
+ end
3014
+ # verify the required parameter 'create_comment_params' is set
3015
+ if @api_client.config.client_side_validation && create_comment_params.nil?
3016
+ fail ArgumentError, "Missing the required parameter 'create_comment_params' when calling DefaultApi.save_comments_bulk"
3017
+ end
3018
+ # resource path
3019
+ local_var_path = '/api/v1/comments/bulk'
3020
+
3021
+ # query parameters
3022
+ query_params = opts[:query_params] || {}
3023
+ query_params[:'tenantId'] = tenant_id
3024
+ query_params[:'isLive'] = opts[:'is_live'] if !opts[:'is_live'].nil?
3025
+ query_params[:'doSpamCheck'] = opts[:'do_spam_check'] if !opts[:'do_spam_check'].nil?
3026
+ query_params[:'sendEmails'] = opts[:'send_emails'] if !opts[:'send_emails'].nil?
3027
+ query_params[:'populateNotifications'] = opts[:'populate_notifications'] if !opts[:'populate_notifications'].nil?
3028
+
3029
+ # header parameters
3030
+ header_params = opts[:header_params] || {}
3031
+ # HTTP header 'Accept' (if needed)
3032
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
3033
+ # HTTP header 'Content-Type'
3034
+ content_type = @api_client.select_header_content_type(['application/json'])
3035
+ if !content_type.nil?
3036
+ header_params['Content-Type'] = content_type
3037
+ end
3038
+
3039
+ # form parameters
3040
+ form_params = opts[:form_params] || {}
3041
+
3042
+ # http body (model)
3043
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(create_comment_params)
3044
+
3045
+ # return_type
3046
+ return_type = opts[:debug_return_type] || 'Array<SaveComment200Response>'
3047
+
3048
+ # auth_names
3049
+ auth_names = opts[:debug_auth_names] || ['api_key']
3050
+
3051
+ new_options = opts.merge(
3052
+ :operation => :"DefaultApi.save_comments_bulk",
3053
+ :header_params => header_params,
3054
+ :query_params => query_params,
3055
+ :form_params => form_params,
3056
+ :body => post_body,
3057
+ :auth_names => auth_names,
3058
+ :return_type => return_type
3059
+ )
3060
+
3061
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
3062
+ if @api_client.config.debugging
3063
+ @api_client.config.logger.debug "API called: DefaultApi#save_comments_bulk\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3064
+ end
3065
+ return data, status_code, headers
3066
+ end
3067
+
3068
+ # @param tenant_id [String]
3069
+ # @param id [String]
3070
+ # @param un_block_from_comment_params [UnBlockFromCommentParams]
3071
+ # @param [Hash] opts the optional parameters
3072
+ # @option opts [String] :user_id
3073
+ # @option opts [String] :anon_user_id
3074
+ # @return [UnBlockCommentPublic200Response]
3075
+ def un_block_user_from_comment(tenant_id, id, un_block_from_comment_params, opts = {})
3076
+ data, _status_code, _headers = un_block_user_from_comment_with_http_info(tenant_id, id, un_block_from_comment_params, opts)
3077
+ data
3078
+ end
3079
+
3080
+ # @param tenant_id [String]
3081
+ # @param id [String]
3082
+ # @param un_block_from_comment_params [UnBlockFromCommentParams]
3083
+ # @param [Hash] opts the optional parameters
3084
+ # @option opts [String] :user_id
3085
+ # @option opts [String] :anon_user_id
3086
+ # @return [Array<(UnBlockCommentPublic200Response, Integer, Hash)>] UnBlockCommentPublic200Response data, response status code and response headers
3087
+ def un_block_user_from_comment_with_http_info(tenant_id, id, un_block_from_comment_params, opts = {})
3088
+ if @api_client.config.debugging
3089
+ @api_client.config.logger.debug 'Calling API: DefaultApi.un_block_user_from_comment ...'
3090
+ end
3091
+ # verify the required parameter 'tenant_id' is set
3092
+ if @api_client.config.client_side_validation && tenant_id.nil?
3093
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.un_block_user_from_comment"
3094
+ end
3095
+ # verify the required parameter 'id' is set
3096
+ if @api_client.config.client_side_validation && id.nil?
3097
+ fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.un_block_user_from_comment"
3098
+ end
3099
+ # verify the required parameter 'un_block_from_comment_params' is set
3100
+ if @api_client.config.client_side_validation && un_block_from_comment_params.nil?
3101
+ fail ArgumentError, "Missing the required parameter 'un_block_from_comment_params' when calling DefaultApi.un_block_user_from_comment"
3102
+ end
3103
+ # resource path
3104
+ local_var_path = '/api/v1/comments/{id}/un-block'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
3105
+
3106
+ # query parameters
3107
+ query_params = opts[:query_params] || {}
3108
+ query_params[:'tenantId'] = tenant_id
3109
+ query_params[:'userId'] = opts[:'user_id'] if !opts[:'user_id'].nil?
3110
+ query_params[:'anonUserId'] = opts[:'anon_user_id'] if !opts[:'anon_user_id'].nil?
3111
+
3112
+ # header parameters
3113
+ header_params = opts[:header_params] || {}
3114
+ # HTTP header 'Accept' (if needed)
3115
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
3116
+ # HTTP header 'Content-Type'
3117
+ content_type = @api_client.select_header_content_type(['application/json'])
3118
+ if !content_type.nil?
3119
+ header_params['Content-Type'] = content_type
3120
+ end
3121
+
3122
+ # form parameters
3123
+ form_params = opts[:form_params] || {}
3124
+
3125
+ # http body (model)
3126
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(un_block_from_comment_params)
3127
+
3128
+ # return_type
3129
+ return_type = opts[:debug_return_type] || 'UnBlockCommentPublic200Response'
3130
+
3131
+ # auth_names
3132
+ auth_names = opts[:debug_auth_names] || ['api_key']
3133
+
3134
+ new_options = opts.merge(
3135
+ :operation => :"DefaultApi.un_block_user_from_comment",
3136
+ :header_params => header_params,
3137
+ :query_params => query_params,
3138
+ :form_params => form_params,
3139
+ :body => post_body,
3140
+ :auth_names => auth_names,
3141
+ :return_type => return_type
3142
+ )
3143
+
3144
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
3145
+ if @api_client.config.debugging
3146
+ @api_client.config.logger.debug "API called: DefaultApi#un_block_user_from_comment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3147
+ end
3148
+ return data, status_code, headers
3149
+ end
3150
+
3151
+ # @param tenant_id [String]
3152
+ # @param id [String]
3153
+ # @param [Hash] opts the optional parameters
3154
+ # @option opts [String] :user_id
3155
+ # @option opts [String] :anon_user_id
3156
+ # @return [FlagComment200Response]
3157
+ def un_flag_comment(tenant_id, id, opts = {})
3158
+ data, _status_code, _headers = un_flag_comment_with_http_info(tenant_id, id, opts)
3159
+ data
3160
+ end
3161
+
3162
+ # @param tenant_id [String]
3163
+ # @param id [String]
3164
+ # @param [Hash] opts the optional parameters
3165
+ # @option opts [String] :user_id
3166
+ # @option opts [String] :anon_user_id
3167
+ # @return [Array<(FlagComment200Response, Integer, Hash)>] FlagComment200Response data, response status code and response headers
3168
+ def un_flag_comment_with_http_info(tenant_id, id, opts = {})
3169
+ if @api_client.config.debugging
3170
+ @api_client.config.logger.debug 'Calling API: DefaultApi.un_flag_comment ...'
3171
+ end
3172
+ # verify the required parameter 'tenant_id' is set
3173
+ if @api_client.config.client_side_validation && tenant_id.nil?
3174
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.un_flag_comment"
3175
+ end
3176
+ # verify the required parameter 'id' is set
3177
+ if @api_client.config.client_side_validation && id.nil?
3178
+ fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.un_flag_comment"
3179
+ end
3180
+ # resource path
3181
+ local_var_path = '/api/v1/comments/{id}/un-flag'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
3182
+
3183
+ # query parameters
3184
+ query_params = opts[:query_params] || {}
3185
+ query_params[:'tenantId'] = tenant_id
3186
+ query_params[:'userId'] = opts[:'user_id'] if !opts[:'user_id'].nil?
3187
+ query_params[:'anonUserId'] = opts[:'anon_user_id'] if !opts[:'anon_user_id'].nil?
3188
+
3189
+ # header parameters
3190
+ header_params = opts[:header_params] || {}
3191
+ # HTTP header 'Accept' (if needed)
3192
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
3193
+
3194
+ # form parameters
3195
+ form_params = opts[:form_params] || {}
3196
+
3197
+ # http body (model)
3198
+ post_body = opts[:debug_body]
3199
+
3200
+ # return_type
3201
+ return_type = opts[:debug_return_type] || 'FlagComment200Response'
3202
+
3203
+ # auth_names
3204
+ auth_names = opts[:debug_auth_names] || ['api_key']
3205
+
3206
+ new_options = opts.merge(
3207
+ :operation => :"DefaultApi.un_flag_comment",
3208
+ :header_params => header_params,
3209
+ :query_params => query_params,
3210
+ :form_params => form_params,
3211
+ :body => post_body,
3212
+ :auth_names => auth_names,
3213
+ :return_type => return_type
3214
+ )
3215
+
3216
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
3217
+ if @api_client.config.debugging
3218
+ @api_client.config.logger.debug "API called: DefaultApi#un_flag_comment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3219
+ end
3220
+ return data, status_code, headers
3221
+ end
3222
+
3223
+ # @param tenant_id [String]
3224
+ # @param id [String]
3225
+ # @param updatable_comment_params [UpdatableCommentParams]
3226
+ # @param [Hash] opts the optional parameters
3227
+ # @option opts [String] :context_user_id
3228
+ # @option opts [Boolean] :do_spam_check
3229
+ # @option opts [Boolean] :is_live
3230
+ # @return [FlagCommentPublic200Response]
3231
+ def update_comment(tenant_id, id, updatable_comment_params, opts = {})
3232
+ data, _status_code, _headers = update_comment_with_http_info(tenant_id, id, updatable_comment_params, opts)
3233
+ data
3234
+ end
3235
+
3236
+ # @param tenant_id [String]
3237
+ # @param id [String]
3238
+ # @param updatable_comment_params [UpdatableCommentParams]
3239
+ # @param [Hash] opts the optional parameters
3240
+ # @option opts [String] :context_user_id
3241
+ # @option opts [Boolean] :do_spam_check
3242
+ # @option opts [Boolean] :is_live
3243
+ # @return [Array<(FlagCommentPublic200Response, Integer, Hash)>] FlagCommentPublic200Response data, response status code and response headers
3244
+ def update_comment_with_http_info(tenant_id, id, updatable_comment_params, opts = {})
3245
+ if @api_client.config.debugging
3246
+ @api_client.config.logger.debug 'Calling API: DefaultApi.update_comment ...'
3247
+ end
3248
+ # verify the required parameter 'tenant_id' is set
3249
+ if @api_client.config.client_side_validation && tenant_id.nil?
3250
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.update_comment"
3251
+ end
3252
+ # verify the required parameter 'id' is set
3253
+ if @api_client.config.client_side_validation && id.nil?
3254
+ fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.update_comment"
3255
+ end
3256
+ # verify the required parameter 'updatable_comment_params' is set
3257
+ if @api_client.config.client_side_validation && updatable_comment_params.nil?
3258
+ fail ArgumentError, "Missing the required parameter 'updatable_comment_params' when calling DefaultApi.update_comment"
3259
+ end
3260
+ # resource path
3261
+ local_var_path = '/api/v1/comments/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
3262
+
3263
+ # query parameters
3264
+ query_params = opts[:query_params] || {}
3265
+ query_params[:'tenantId'] = tenant_id
3266
+ query_params[:'contextUserId'] = opts[:'context_user_id'] if !opts[:'context_user_id'].nil?
3267
+ query_params[:'doSpamCheck'] = opts[:'do_spam_check'] if !opts[:'do_spam_check'].nil?
3268
+ query_params[:'isLive'] = opts[:'is_live'] if !opts[:'is_live'].nil?
3269
+
3270
+ # header parameters
3271
+ header_params = opts[:header_params] || {}
3272
+ # HTTP header 'Accept' (if needed)
3273
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
3274
+ # HTTP header 'Content-Type'
3275
+ content_type = @api_client.select_header_content_type(['application/json'])
3276
+ if !content_type.nil?
3277
+ header_params['Content-Type'] = content_type
3278
+ end
3279
+
3280
+ # form parameters
3281
+ form_params = opts[:form_params] || {}
3282
+
3283
+ # http body (model)
3284
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(updatable_comment_params)
3285
+
3286
+ # return_type
3287
+ return_type = opts[:debug_return_type] || 'FlagCommentPublic200Response'
3288
+
3289
+ # auth_names
3290
+ auth_names = opts[:debug_auth_names] || ['api_key']
3291
+
3292
+ new_options = opts.merge(
3293
+ :operation => :"DefaultApi.update_comment",
3294
+ :header_params => header_params,
3295
+ :query_params => query_params,
3296
+ :form_params => form_params,
3297
+ :body => post_body,
3298
+ :auth_names => auth_names,
3299
+ :return_type => return_type
3300
+ )
3301
+
3302
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
3303
+ if @api_client.config.debugging
3304
+ @api_client.config.logger.debug "API called: DefaultApi#update_comment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3305
+ end
3306
+ return data, status_code, headers
3307
+ end
3308
+
3309
+ # @param tenant_id [String]
3310
+ # @param id [String]
3311
+ # @param feed_post [FeedPost]
3312
+ # @param [Hash] opts the optional parameters
3313
+ # @return [FlagCommentPublic200Response]
3314
+ def update_feed_post(tenant_id, id, feed_post, opts = {})
3315
+ data, _status_code, _headers = update_feed_post_with_http_info(tenant_id, id, feed_post, opts)
3316
+ data
3317
+ end
3318
+
3319
+ # @param tenant_id [String]
3320
+ # @param id [String]
3321
+ # @param feed_post [FeedPost]
3322
+ # @param [Hash] opts the optional parameters
3323
+ # @return [Array<(FlagCommentPublic200Response, Integer, Hash)>] FlagCommentPublic200Response data, response status code and response headers
3324
+ def update_feed_post_with_http_info(tenant_id, id, feed_post, opts = {})
3325
+ if @api_client.config.debugging
3326
+ @api_client.config.logger.debug 'Calling API: DefaultApi.update_feed_post ...'
3327
+ end
3328
+ # verify the required parameter 'tenant_id' is set
3329
+ if @api_client.config.client_side_validation && tenant_id.nil?
3330
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.update_feed_post"
3331
+ end
3332
+ # verify the required parameter 'id' is set
3333
+ if @api_client.config.client_side_validation && id.nil?
3334
+ fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.update_feed_post"
3335
+ end
3336
+ # verify the required parameter 'feed_post' is set
3337
+ if @api_client.config.client_side_validation && feed_post.nil?
3338
+ fail ArgumentError, "Missing the required parameter 'feed_post' when calling DefaultApi.update_feed_post"
3339
+ end
3340
+ # resource path
3341
+ local_var_path = '/api/v1/feed-posts/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
3342
+
3343
+ # query parameters
3344
+ query_params = opts[:query_params] || {}
3345
+ query_params[:'tenantId'] = tenant_id
3346
+
3347
+ # header parameters
3348
+ header_params = opts[:header_params] || {}
3349
+ # HTTP header 'Accept' (if needed)
3350
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
3351
+ # HTTP header 'Content-Type'
3352
+ content_type = @api_client.select_header_content_type(['application/json'])
3353
+ if !content_type.nil?
3354
+ header_params['Content-Type'] = content_type
3355
+ end
3356
+
3357
+ # form parameters
3358
+ form_params = opts[:form_params] || {}
3359
+
3360
+ # http body (model)
3361
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(feed_post)
3362
+
3363
+ # return_type
3364
+ return_type = opts[:debug_return_type] || 'FlagCommentPublic200Response'
3365
+
3366
+ # auth_names
3367
+ auth_names = opts[:debug_auth_names] || ['api_key']
3368
+
3369
+ new_options = opts.merge(
3370
+ :operation => :"DefaultApi.update_feed_post",
3371
+ :header_params => header_params,
3372
+ :query_params => query_params,
3373
+ :form_params => form_params,
3374
+ :body => post_body,
3375
+ :auth_names => auth_names,
3376
+ :return_type => return_type
3377
+ )
3378
+
3379
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
3380
+ if @api_client.config.debugging
3381
+ @api_client.config.logger.debug "API called: DefaultApi#update_feed_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3382
+ end
3383
+ return data, status_code, headers
3384
+ end
3385
+
3386
+ # @param tenant_id [String]
3387
+ # @param id [String]
3388
+ # @param update_user_badge_params [UpdateUserBadgeParams]
3389
+ # @param [Hash] opts the optional parameters
3390
+ # @return [UpdateUserBadge200Response]
3391
+ def update_user_badge(tenant_id, id, update_user_badge_params, opts = {})
3392
+ data, _status_code, _headers = update_user_badge_with_http_info(tenant_id, id, update_user_badge_params, opts)
3393
+ data
3394
+ end
3395
+
3396
+ # @param tenant_id [String]
3397
+ # @param id [String]
3398
+ # @param update_user_badge_params [UpdateUserBadgeParams]
3399
+ # @param [Hash] opts the optional parameters
3400
+ # @return [Array<(UpdateUserBadge200Response, Integer, Hash)>] UpdateUserBadge200Response data, response status code and response headers
3401
+ def update_user_badge_with_http_info(tenant_id, id, update_user_badge_params, opts = {})
3402
+ if @api_client.config.debugging
3403
+ @api_client.config.logger.debug 'Calling API: DefaultApi.update_user_badge ...'
3404
+ end
3405
+ # verify the required parameter 'tenant_id' is set
3406
+ if @api_client.config.client_side_validation && tenant_id.nil?
3407
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.update_user_badge"
3408
+ end
3409
+ # verify the required parameter 'id' is set
3410
+ if @api_client.config.client_side_validation && id.nil?
3411
+ fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.update_user_badge"
3412
+ end
3413
+ # verify the required parameter 'update_user_badge_params' is set
3414
+ if @api_client.config.client_side_validation && update_user_badge_params.nil?
3415
+ fail ArgumentError, "Missing the required parameter 'update_user_badge_params' when calling DefaultApi.update_user_badge"
3416
+ end
3417
+ # resource path
3418
+ local_var_path = '/api/v1/user-badges/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
3419
+
3420
+ # query parameters
3421
+ query_params = opts[:query_params] || {}
3422
+ query_params[:'tenantId'] = tenant_id
3423
+
3424
+ # header parameters
3425
+ header_params = opts[:header_params] || {}
3426
+ # HTTP header 'Accept' (if needed)
3427
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
3428
+ # HTTP header 'Content-Type'
3429
+ content_type = @api_client.select_header_content_type(['application/json'])
3430
+ if !content_type.nil?
3431
+ header_params['Content-Type'] = content_type
3432
+ end
3433
+
3434
+ # form parameters
3435
+ form_params = opts[:form_params] || {}
3436
+
3437
+ # http body (model)
3438
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(update_user_badge_params)
3439
+
3440
+ # return_type
3441
+ return_type = opts[:debug_return_type] || 'UpdateUserBadge200Response'
3442
+
3443
+ # auth_names
3444
+ auth_names = opts[:debug_auth_names] || ['api_key']
3445
+
3446
+ new_options = opts.merge(
3447
+ :operation => :"DefaultApi.update_user_badge",
3448
+ :header_params => header_params,
3449
+ :query_params => query_params,
3450
+ :form_params => form_params,
3451
+ :body => post_body,
3452
+ :auth_names => auth_names,
3453
+ :return_type => return_type
3454
+ )
3455
+
3456
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
3457
+ if @api_client.config.debugging
3458
+ @api_client.config.logger.debug "API called: DefaultApi#update_user_badge\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3459
+ end
3460
+ return data, status_code, headers
3461
+ end
3462
+ end
3463
+ end